Version 1.13.21.
[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.21\n"
10 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
11 "POT-Creation-Date: 2011-10-14 15:06+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:390 ../fish/guestfish-actions.pod:398 ../fish/guestfish-actions.pod:405 ../fish/guestfish-actions.pod:412 ../fish/guestfish-actions.pod:1139 ../fish/guestfish-actions.pod:1143 ../fish/guestfish-actions.pod:1147 ../fish/guestfish-actions.pod:1151 ../fish/guestfish-actions.pod:1159 ../fish/guestfish-actions.pod:1163 ../fish/guestfish-actions.pod:1167 ../fish/guestfish-actions.pod:1177 ../fish/guestfish-actions.pod:1181 ../fish/guestfish-actions.pod:1185 ../fish/guestfish-actions.pod:1275 ../fish/guestfish-actions.pod:1279 ../fish/guestfish-actions.pod:1284 ../fish/guestfish-actions.pod:1289 ../fish/guestfish-actions.pod:1331 ../fish/guestfish-actions.pod:1335 ../fish/guestfish-actions.pod:1340 ../fish/guestfish-actions.pod:1596 ../fish/guestfish-actions.pod:1603 ../fish/guestfish-actions.pod:1610 ../fish/guestfish-actions.pod:2013 ../fish/guestfish-actions.pod:2019 ../fish/guestfish-actions.pod:2027 ../fish/guestfish-actions.pod:2034 ../fish/guestfish-actions.pod:2041 ../fish/guestfish.pod:445 ../fish/guestfish.pod:449 ../fish/guestfish.pod:453 ../fish/guestfish.pod:457 ../inspector/virt-inspector.pod:393 ../inspector/virt-inspector.pod:397 ../resize/virt-resize.pod:282 ../resize/virt-resize.pod:286 ../resize/virt-resize.pod:295 ../resize/virt-resize.pod:301 ../sparsify/virt-sparsify.pod:32 ../sparsify/virt-sparsify.pod:39 ../sparsify/virt-sparsify.pod:43 ../sparsify/virt-sparsify.pod:49 ../sparsify/virt-sparsify.pod:54 ../sparsify/virt-sparsify.pod:58 ../sparsify/virt-sparsify.pod:64 ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:29 ../src/guestfs-actions.pod:588 ../src/guestfs-actions.pod:596 ../src/guestfs-actions.pod:603 ../src/guestfs-actions.pod:610 ../src/guestfs-actions.pod:1778 ../src/guestfs-actions.pod:1782 ../src/guestfs-actions.pod:1786 ../src/guestfs-actions.pod:1790 ../src/guestfs-actions.pod:1798 ../src/guestfs-actions.pod:1802 ../src/guestfs-actions.pod:1806 ../src/guestfs-actions.pod:1816 ../src/guestfs-actions.pod:1820 ../src/guestfs-actions.pod:1824 ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:1966 ../src/guestfs-actions.pod:1971 ../src/guestfs-actions.pod:1976 ../src/guestfs-actions.pod:2037 ../src/guestfs-actions.pod:2041 ../src/guestfs-actions.pod:2046 ../src/guestfs-actions.pod:2461 ../src/guestfs-actions.pod:2468 ../src/guestfs-actions.pod:2475 ../src/guestfs-actions.pod:3020 ../src/guestfs-actions.pod:3026 ../src/guestfs-actions.pod:3034 ../src/guestfs-actions.pod:3041 ../src/guestfs-actions.pod:3048 ../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:4258
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 C</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:1327 ../fish/guestfish-actions.pod:1592 ../fish/guestfish-actions.pod:2009 ../src/guestfs-actions.pod:18 ../src/guestfs-actions.pod:2033 ../src/guestfs-actions.pod:2457 ../src/guestfs-actions.pod:3016 ../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:163 ../fish/guestfish-actions.pod:177
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:166 ../fish/guestfish-actions.pod:180 ../fish/guestfish-actions.pod:1026 ../fish/guestfish-actions.pod:1386 ../fish/guestfish-actions.pod:1400 ../fish/guestfish-actions.pod:3170 ../fish/guestfish-actions.pod:3481 ../fish/guestfish-actions.pod:3529 ../fish/guestfish-actions.pod:4442 ../fish/guestfish-actions.pod:4465 ../fish/guestfish-actions.pod:4487 ../fish/guestfish-actions.pod:4525 ../fish/guestfish-actions.pod:5174 ../fish/guestfish-actions.pod:5280 ../src/guestfs-actions.pod:10 ../src/guestfs-actions.pod:252 ../src/guestfs-actions.pod:273 ../src/guestfs-actions.pod:1619 ../src/guestfs-actions.pod:2118 ../src/guestfs-actions.pod:2139 ../src/guestfs-actions.pod:4784 ../src/guestfs-actions.pod:5306 ../src/guestfs-actions.pod:5406 ../src/guestfs-actions.pod:6688 ../src/guestfs-actions.pod:6732 ../src/guestfs-actions.pod:6766 ../src/guestfs-actions.pod:6829 ../src/guestfs-actions.pod:7761 ../src/guestfs-actions.pod:7870 ../src/guestfs-actions.pod:8053
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:143 ../fish/guestfish-actions.pod:573 ../fish/guestfish-actions.pod:784 ../fish/guestfish-actions.pod:805 ../fish/guestfish-actions.pod:2048 ../fish/guestfish-actions.pod:3219 ../fish/guestfish-actions.pod:3382 ../fish/guestfish-actions.pod:3517
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:..]\n"
5406 "\n"
5407 msgstr ""
5408
5409 #. type: textblock
5410 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:160
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:165
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:171
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:3181 ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4821
5433 msgid "The optional arguments are:"
5434 msgstr ""
5435
5436 #. type: =item
5437 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:177
5438 msgid "C<readonly>"
5439 msgstr ""
5440
5441 #. type: textblock
5442 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:179
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:183
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:189
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:194
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: =head2
5483 #: ../fish/guestfish-actions.pod:145
5484 msgid "add-drive-ro"
5485 msgstr ""
5486
5487 #. type: =head2
5488 #: ../fish/guestfish-actions.pod:147
5489 msgid "add-ro"
5490 msgstr ""
5491
5492 #. type: verbatim
5493 #: ../fish/guestfish-actions.pod:149
5494 #, no-wrap
5495 msgid ""
5496 " add-drive-ro filename\n"
5497 "\n"
5498 msgstr ""
5499
5500 #. type: textblock
5501 #: ../fish/guestfish-actions.pod:151
5502 msgid ""
5503 "This function is the equivalent of calling L</add-drive-opts> with the "
5504 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
5505 "is added read-only, with the format being detected automatically."
5506 msgstr ""
5507
5508 #. type: =head2
5509 #: ../fish/guestfish-actions.pod:156
5510 msgid "add-drive-ro-with-if"
5511 msgstr ""
5512
5513 #. type: verbatim
5514 #: ../fish/guestfish-actions.pod:158
5515 #, no-wrap
5516 msgid ""
5517 " add-drive-ro-with-if filename iface\n"
5518 "\n"
5519 msgstr ""
5520
5521 #. type: textblock
5522 #: ../fish/guestfish-actions.pod:160
5523 msgid ""
5524 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
5525 "interface emulation to use at run time."
5526 msgstr ""
5527
5528 #. type: =head2
5529 #: ../fish/guestfish-actions.pod:170
5530 msgid "add-drive-with-if"
5531 msgstr ""
5532
5533 #. type: verbatim
5534 #: ../fish/guestfish-actions.pod:172
5535 #, no-wrap
5536 msgid ""
5537 " add-drive-with-if filename iface\n"
5538 "\n"
5539 msgstr ""
5540
5541 #. type: textblock
5542 #: ../fish/guestfish-actions.pod:174
5543 msgid ""
5544 "This is the same as L</add-drive> but it allows you to specify the QEMU "
5545 "interface emulation to use at run time."
5546 msgstr ""
5547
5548 #. type: =head2
5549 #: ../fish/guestfish-actions.pod:184
5550 msgid "aug-clear"
5551 msgstr ""
5552
5553 #. type: verbatim
5554 #: ../fish/guestfish-actions.pod:186
5555 #, no-wrap
5556 msgid ""
5557 " aug-clear augpath\n"
5558 "\n"
5559 msgstr ""
5560
5561 #. type: textblock
5562 #: ../fish/guestfish-actions.pod:188 ../src/guestfs-actions.pod:290
5563 msgid ""
5564 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
5565 "L<augtool(1)> C<clear> command."
5566 msgstr ""
5567
5568 #. type: =head2
5569 #: ../fish/guestfish-actions.pod:191
5570 msgid "aug-close"
5571 msgstr ""
5572
5573 #. type: verbatim
5574 #: ../fish/guestfish-actions.pod:193
5575 #, no-wrap
5576 msgid ""
5577 " aug-close\n"
5578 "\n"
5579 msgstr ""
5580
5581 #. type: textblock
5582 #: ../fish/guestfish-actions.pod:195
5583 msgid ""
5584 "Close the current Augeas handle and free up any resources used by it.  After "
5585 "calling this, you have to call L</aug-init> again before you can use any "
5586 "other Augeas functions."
5587 msgstr ""
5588
5589 #. type: =head2
5590 #: ../fish/guestfish-actions.pod:200
5591 msgid "aug-defnode"
5592 msgstr ""
5593
5594 #. type: verbatim
5595 #: ../fish/guestfish-actions.pod:202
5596 #, no-wrap
5597 msgid ""
5598 " aug-defnode name expr val\n"
5599 "\n"
5600 msgstr ""
5601
5602 #. type: textblock
5603 #: ../fish/guestfish-actions.pod:204 ../src/guestfs-actions.pod:319
5604 msgid "Defines a variable C<name> whose value is the result of evaluating C<expr>."
5605 msgstr ""
5606
5607 #. type: textblock
5608 #: ../fish/guestfish-actions.pod:207
5609 msgid ""
5610 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
5611 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
5612 "containing that single node."
5613 msgstr ""
5614
5615 #. type: textblock
5616 #: ../fish/guestfish-actions.pod:211 ../src/guestfs-actions.pod:326
5617 msgid ""
5618 "On success this returns a pair containing the number of nodes in the "
5619 "nodeset, and a boolean flag if a node was created."
5620 msgstr ""
5621
5622 #. type: =head2
5623 #: ../fish/guestfish-actions.pod:215
5624 msgid "aug-defvar"
5625 msgstr ""
5626
5627 #. type: verbatim
5628 #: ../fish/guestfish-actions.pod:217
5629 #, no-wrap
5630 msgid ""
5631 " aug-defvar name expr\n"
5632 "\n"
5633 msgstr ""
5634
5635 #. type: textblock
5636 #: ../fish/guestfish-actions.pod:219 ../src/guestfs-actions.pod:343
5637 msgid ""
5638 "Defines an Augeas variable C<name> whose value is the result of evaluating "
5639 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
5640 msgstr ""
5641
5642 #. type: textblock
5643 #: ../fish/guestfish-actions.pod:223 ../src/guestfs-actions.pod:347
5644 msgid ""
5645 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
5646 "evaluates to something which is not a nodeset."
5647 msgstr ""
5648
5649 #. type: =head2
5650 #: ../fish/guestfish-actions.pod:226
5651 msgid "aug-get"
5652 msgstr ""
5653
5654 #. type: verbatim
5655 #: ../fish/guestfish-actions.pod:228
5656 #, no-wrap
5657 msgid ""
5658 " aug-get augpath\n"
5659 "\n"
5660 msgstr ""
5661
5662 #. type: textblock
5663 #: ../fish/guestfish-actions.pod:230 ../src/guestfs-actions.pod:360
5664 msgid ""
5665 "Look up the value associated with C<path>.  If C<path> matches exactly one "
5666 "node, the C<value> is returned."
5667 msgstr ""
5668
5669 #. type: =head2
5670 #: ../fish/guestfish-actions.pod:233
5671 msgid "aug-init"
5672 msgstr ""
5673
5674 #. type: verbatim
5675 #: ../fish/guestfish-actions.pod:235
5676 #, no-wrap
5677 msgid ""
5678 " aug-init root flags\n"
5679 "\n"
5680 msgstr ""
5681
5682 #. type: textblock
5683 #: ../fish/guestfish-actions.pod:237 ../src/guestfs-actions.pod:375
5684 msgid ""
5685 "Create a new Augeas handle for editing configuration files.  If there was "
5686 "any previous Augeas handle associated with this guestfs session, then it is "
5687 "closed."
5688 msgstr ""
5689
5690 #. type: textblock
5691 #: ../fish/guestfish-actions.pod:241
5692 msgid "You must call this before using any other L</aug-*> commands."
5693 msgstr ""
5694
5695 #. type: textblock
5696 #: ../fish/guestfish-actions.pod:244 ../src/guestfs-actions.pod:382
5697 msgid "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
5698 msgstr ""
5699
5700 #. type: textblock
5701 #: ../fish/guestfish-actions.pod:247 ../src/guestfs-actions.pod:385
5702 msgid ""
5703 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
5704 "logical I<or> of the following integers:"
5705 msgstr ""
5706
5707 #. type: =item
5708 #: ../fish/guestfish-actions.pod:253 ../src/guestfs-actions.pod:391
5709 msgid "C<AUG_SAVE_BACKUP> = 1"
5710 msgstr ""
5711
5712 #. type: textblock
5713 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:393
5714 msgid "Keep the original file with a C<.augsave> extension."
5715 msgstr ""
5716
5717 #. type: =item
5718 #: ../fish/guestfish-actions.pod:257 ../src/guestfs-actions.pod:395
5719 msgid "C<AUG_SAVE_NEWFILE> = 2"
5720 msgstr ""
5721
5722 #. type: textblock
5723 #: ../fish/guestfish-actions.pod:259 ../src/guestfs-actions.pod:397
5724 msgid ""
5725 "Save changes into a file with extension C<.augnew>, and do not overwrite "
5726 "original.  Overrides C<AUG_SAVE_BACKUP>."
5727 msgstr ""
5728
5729 #. type: =item
5730 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:400
5731 msgid "C<AUG_TYPE_CHECK> = 4"
5732 msgstr ""
5733
5734 #. type: textblock
5735 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:402
5736 msgid "Typecheck lenses."
5737 msgstr ""
5738
5739 #. type: textblock
5740 #: ../fish/guestfish-actions.pod:266
5741 msgid ""
5742 "This option is only useful when debugging Augeas lenses.  Use of this option "
5743 "may require additional memory for the libguestfs appliance.  You may need to "
5744 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
5745 msgstr ""
5746
5747 #. type: =item
5748 #: ../fish/guestfish-actions.pod:271 ../src/guestfs-actions.pod:409
5749 msgid "C<AUG_NO_STDINC> = 8"
5750 msgstr ""
5751
5752 #. type: textblock
5753 #: ../fish/guestfish-actions.pod:273 ../src/guestfs-actions.pod:411
5754 msgid "Do not use standard load path for modules."
5755 msgstr ""
5756
5757 #. type: =item
5758 #: ../fish/guestfish-actions.pod:275 ../src/guestfs-actions.pod:413
5759 msgid "C<AUG_SAVE_NOOP> = 16"
5760 msgstr ""
5761
5762 #. type: textblock
5763 #: ../fish/guestfish-actions.pod:277 ../src/guestfs-actions.pod:415
5764 msgid "Make save a no-op, just record what would have been changed."
5765 msgstr ""
5766
5767 #. type: =item
5768 #: ../fish/guestfish-actions.pod:279 ../src/guestfs-actions.pod:417
5769 msgid "C<AUG_NO_LOAD> = 32"
5770 msgstr ""
5771
5772 #. type: textblock
5773 #: ../fish/guestfish-actions.pod:281
5774 msgid "Do not load the tree in L</aug-init>."
5775 msgstr ""
5776
5777 #. type: textblock
5778 #: ../fish/guestfish-actions.pod:285
5779 msgid "To close the handle, you can call L</aug-close>."
5780 msgstr ""
5781
5782 #. type: textblock
5783 #: ../fish/guestfish-actions.pod:287 ../src/guestfs-actions.pod:425
5784 msgid "To find out more about Augeas, see L<http://augeas.net/>."
5785 msgstr ""
5786
5787 #. type: =head2
5788 #: ../fish/guestfish-actions.pod:289
5789 msgid "aug-insert"
5790 msgstr ""
5791
5792 #. type: verbatim
5793 #: ../fish/guestfish-actions.pod:291
5794 #, no-wrap
5795 msgid ""
5796 " aug-insert augpath label true|false\n"
5797 "\n"
5798 msgstr ""
5799
5800 #. type: textblock
5801 #: ../fish/guestfish-actions.pod:293 ../src/guestfs-actions.pod:439
5802 msgid ""
5803 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
5804 "or after C<path> (depending on the boolean flag C<before>)."
5805 msgstr ""
5806
5807 #. type: textblock
5808 #: ../fish/guestfish-actions.pod:297 ../src/guestfs-actions.pod:443
5809 msgid ""
5810 "C<path> must match exactly one existing node in the tree, and C<label> must "
5811 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
5812 msgstr ""
5813
5814 #. type: =head2
5815 #: ../fish/guestfish-actions.pod:301
5816 msgid "aug-load"
5817 msgstr ""
5818
5819 #. type: verbatim
5820 #: ../fish/guestfish-actions.pod:303
5821 #, no-wrap
5822 msgid ""
5823 " aug-load\n"
5824 "\n"
5825 msgstr ""
5826
5827 #. type: textblock
5828 #: ../fish/guestfish-actions.pod:305 ../src/guestfs-actions.pod:456
5829 msgid "Load files into the tree."
5830 msgstr ""
5831
5832 #. type: textblock
5833 #: ../fish/guestfish-actions.pod:307 ../src/guestfs-actions.pod:458
5834 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
5835 msgstr ""
5836
5837 #. type: =head2
5838 #: ../fish/guestfish-actions.pod:310
5839 msgid "aug-ls"
5840 msgstr ""
5841
5842 #. type: verbatim
5843 #: ../fish/guestfish-actions.pod:312
5844 #, no-wrap
5845 msgid ""
5846 " aug-ls augpath\n"
5847 "\n"
5848 msgstr ""
5849
5850 #. type: textblock
5851 #: ../fish/guestfish-actions.pod:314
5852 msgid ""
5853 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
5854 "resulting nodes into alphabetical order."
5855 msgstr ""
5856
5857 #. type: =head2
5858 #: ../fish/guestfish-actions.pod:317
5859 msgid "aug-match"
5860 msgstr ""
5861
5862 #. type: verbatim
5863 #: ../fish/guestfish-actions.pod:319
5864 #, no-wrap
5865 msgid ""
5866 " aug-match augpath\n"
5867 "\n"
5868 msgstr ""
5869
5870 #. type: textblock
5871 #: ../fish/guestfish-actions.pod:321 ../src/guestfs-actions.pod:486
5872 msgid ""
5873 "Returns a list of paths which match the path expression C<path>.  The "
5874 "returned paths are sufficiently qualified so that they match exactly one "
5875 "node in the current tree."
5876 msgstr ""
5877
5878 #. type: =head2
5879 #: ../fish/guestfish-actions.pod:325
5880 msgid "aug-mv"
5881 msgstr ""
5882
5883 #. type: verbatim
5884 #: ../fish/guestfish-actions.pod:327
5885 #, no-wrap
5886 msgid ""
5887 " aug-mv src dest\n"
5888 "\n"
5889 msgstr ""
5890
5891 #. type: textblock
5892 #: ../fish/guestfish-actions.pod:329 ../src/guestfs-actions.pod:503
5893 msgid ""
5894 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
5895 "C<dest> is overwritten if it exists."
5896 msgstr ""
5897
5898 #. type: =head2
5899 #: ../fish/guestfish-actions.pod:332
5900 msgid "aug-rm"
5901 msgstr ""
5902
5903 #. type: verbatim
5904 #: ../fish/guestfish-actions.pod:334
5905 #, no-wrap
5906 msgid ""
5907 " aug-rm augpath\n"
5908 "\n"
5909 msgstr ""
5910
5911 #. type: textblock
5912 #: ../fish/guestfish-actions.pod:336 ../src/guestfs-actions.pod:516
5913 msgid "Remove C<path> and all of its children."
5914 msgstr ""
5915
5916 #. type: textblock
5917 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:518
5918 msgid "On success this returns the number of entries which were removed."
5919 msgstr ""
5920
5921 #. type: =head2
5922 #: ../fish/guestfish-actions.pod:340
5923 msgid "aug-save"
5924 msgstr ""
5925
5926 #. type: verbatim
5927 #: ../fish/guestfish-actions.pod:342
5928 #, no-wrap
5929 msgid ""
5930 " aug-save\n"
5931 "\n"
5932 msgstr ""
5933
5934 #. type: textblock
5935 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:529
5936 msgid "This writes all pending changes to disk."
5937 msgstr ""
5938
5939 #. type: textblock
5940 #: ../fish/guestfish-actions.pod:346
5941 msgid ""
5942 "The flags which were passed to L</aug-init> affect exactly how files are "
5943 "saved."
5944 msgstr ""
5945
5946 #. type: =head2
5947 #: ../fish/guestfish-actions.pod:349
5948 msgid "aug-set"
5949 msgstr ""
5950
5951 #. type: verbatim
5952 #: ../fish/guestfish-actions.pod:351
5953 #, no-wrap
5954 msgid ""
5955 " aug-set augpath val\n"
5956 "\n"
5957 msgstr ""
5958
5959 #. type: textblock
5960 #: ../fish/guestfish-actions.pod:353 ../src/guestfs-actions.pod:545
5961 msgid "Set the value associated with C<path> to C<val>."
5962 msgstr ""
5963
5964 #. type: textblock
5965 #: ../fish/guestfish-actions.pod:355
5966 msgid ""
5967 "In the Augeas API, it is possible to clear a node by setting the value to "
5968 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
5969 "this call.  Instead you must use the L</aug-clear> call."
5970 msgstr ""
5971
5972 #. type: =head2
5973 #: ../fish/guestfish-actions.pod:360
5974 msgid "available"
5975 msgstr ""
5976
5977 #. type: verbatim
5978 #: ../fish/guestfish-actions.pod:362
5979 #, no-wrap
5980 msgid ""
5981 " available 'groups ...'\n"
5982 "\n"
5983 msgstr ""
5984
5985 #. type: textblock
5986 #: ../fish/guestfish-actions.pod:364 ../src/guestfs-actions.pod:562
5987 msgid ""
5988 "This command is used to check the availability of some groups of "
5989 "functionality in the appliance, which not all builds of the libguestfs "
5990 "appliance will be able to provide."
5991 msgstr ""
5992
5993 #. type: textblock
5994 #: ../fish/guestfish-actions.pod:368
5995 msgid ""
5996 "The libguestfs groups, and the functions that those groups correspond to, "
5997 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
5998 "runtime by calling L</available-all-groups>."
5999 msgstr ""
6000
6001 #. type: textblock
6002 #: ../fish/guestfish-actions.pod:373 ../src/guestfs-actions.pod:571
6003 msgid ""
6004 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", "
6005 "\"augeas\"]> would check for the availability of the Linux inotify functions "
6006 "and Augeas (configuration file editing) functions."
6007 msgstr ""
6008
6009 #. type: textblock
6010 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:576
6011 msgid "The command returns no error if I<all> requested groups are available."
6012 msgstr ""
6013
6014 #. type: textblock
6015 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:578
6016 msgid ""
6017 "It fails with an error if one or more of the requested groups is unavailable "
6018 "in the appliance."
6019 msgstr ""
6020
6021 #. type: textblock
6022 #: ../fish/guestfish-actions.pod:383 ../src/guestfs-actions.pod:581
6023 msgid ""
6024 "If an unknown group name is included in the list of groups then an error is "
6025 "always returned."
6026 msgstr ""
6027
6028 #. type: textblock
6029 #: ../fish/guestfish-actions.pod:386 ../src/guestfs-actions.pod:584
6030 msgid "I<Notes:>"
6031 msgstr ""
6032
6033 #. type: textblock
6034 #: ../fish/guestfish-actions.pod:392
6035 msgid "You must call L</launch> before calling this function."
6036 msgstr ""
6037
6038 #. type: textblock
6039 #: ../fish/guestfish-actions.pod:394 ../src/guestfs-actions.pod:592
6040 msgid ""
6041 "The reason is because we don't know what groups are supported by the "
6042 "appliance/daemon until it is running and can be queried."
6043 msgstr ""
6044
6045 #. type: textblock
6046 #: ../fish/guestfish-actions.pod:400 ../src/guestfs-actions.pod:598
6047 msgid ""
6048 "If a group of functions is available, this does not necessarily mean that "
6049 "they will work.  You still have to check for errors when calling individual "
6050 "API functions even if they are available."
6051 msgstr ""
6052
6053 #. type: textblock
6054 #: ../fish/guestfish-actions.pod:407 ../src/guestfs-actions.pod:605
6055 msgid ""
6056 "It is usually the job of distro packagers to build complete functionality "
6057 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
6058 "with all requirements satisfied, will support everything."
6059 msgstr ""
6060
6061 #. type: textblock
6062 #: ../fish/guestfish-actions.pod:414
6063 msgid ""
6064 "This call was added in version C<1.0.80>.  In previous versions of "
6065 "libguestfs all you could do would be to speculatively execute a command to "
6066 "find out if the daemon implemented it.  See also L</version>."
6067 msgstr ""
6068
6069 #. type: =head2
6070 #: ../fish/guestfish-actions.pod:421
6071 msgid "available-all-groups"
6072 msgstr ""
6073
6074 #. type: verbatim
6075 #: ../fish/guestfish-actions.pod:423
6076 #, no-wrap
6077 msgid ""
6078 " available-all-groups\n"
6079 "\n"
6080 msgstr ""
6081
6082 #. type: textblock
6083 #: ../fish/guestfish-actions.pod:425
6084 msgid ""
6085 "This command returns a list of all optional groups that this daemon knows "
6086 "about.  Note this returns both supported and unsupported groups.  To find "
6087 "out which ones the daemon can actually support you have to call "
6088 "L</available> on each member of the returned list."
6089 msgstr ""
6090
6091 #. type: textblock
6092 #: ../fish/guestfish-actions.pod:431
6093 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
6094 msgstr ""
6095
6096 #. type: =head2
6097 #: ../fish/guestfish-actions.pod:433
6098 msgid "base64-in"
6099 msgstr ""
6100
6101 #. type: verbatim
6102 #: ../fish/guestfish-actions.pod:435
6103 #, no-wrap
6104 msgid ""
6105 " base64-in (base64file|-) filename\n"
6106 "\n"
6107 msgstr ""
6108
6109 #. type: textblock
6110 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:649
6111 msgid "This command uploads base64-encoded data from C<base64file> to C<filename>."
6112 msgstr ""
6113
6114 #. type: textblock
6115 #: ../fish/guestfish-actions.pod:440 ../fish/guestfish-actions.pod:449 ../fish/guestfish-actions.pod:698 ../fish/guestfish-actions.pod:782 ../fish/guestfish-actions.pod:803 ../fish/guestfish-actions.pod:902 ../fish/guestfish-actions.pod:921 ../fish/guestfish-actions.pod:1295 ../fish/guestfish-actions.pod:4745 ../fish/guestfish-actions.pod:4757 ../fish/guestfish-actions.pod:4768 ../fish/guestfish-actions.pod:4779 ../fish/guestfish-actions.pod:4831 ../fish/guestfish-actions.pod:4840 ../fish/guestfish-actions.pod:4894 ../fish/guestfish-actions.pod:4917
6116 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
6117 msgstr ""
6118
6119 #. type: =head2
6120 #: ../fish/guestfish-actions.pod:442
6121 msgid "base64-out"
6122 msgstr ""
6123
6124 #. type: verbatim
6125 #: ../fish/guestfish-actions.pod:444
6126 #, no-wrap
6127 msgid ""
6128 " base64-out filename (base64file|-)\n"
6129 "\n"
6130 msgstr ""
6131
6132 #. type: textblock
6133 #: ../fish/guestfish-actions.pod:446 ../src/guestfs-actions.pod:663
6134 msgid ""
6135 "This command downloads the contents of C<filename>, writing it out to local "
6136 "file C<base64file> encoded as base64."
6137 msgstr ""
6138
6139 #. type: =head2
6140 #: ../fish/guestfish-actions.pod:451
6141 msgid "blockdev-flushbufs"
6142 msgstr ""
6143
6144 #. type: verbatim
6145 #: ../fish/guestfish-actions.pod:453
6146 #, no-wrap
6147 msgid ""
6148 " blockdev-flushbufs device\n"
6149 "\n"
6150 msgstr ""
6151
6152 #. type: textblock
6153 #: ../fish/guestfish-actions.pod:455 ../src/guestfs-actions.pod:676
6154 msgid "This tells the kernel to flush internal buffers associated with C<device>."
6155 msgstr ""
6156
6157 #. type: textblock
6158 #: ../fish/guestfish-actions.pod:458 ../fish/guestfish-actions.pod:469 ../fish/guestfish-actions.pod:478 ../fish/guestfish-actions.pod:488 ../fish/guestfish-actions.pod:500 ../fish/guestfish-actions.pod:513 ../fish/guestfish-actions.pod:521 ../fish/guestfish-actions.pod:532 ../fish/guestfish-actions.pod:540 ../fish/guestfish-actions.pod:548 ../src/guestfs-actions.pod:679 ../src/guestfs-actions.pod:696 ../src/guestfs-actions.pod:711 ../src/guestfs-actions.pod:727 ../src/guestfs-actions.pod:745 ../src/guestfs-actions.pod:764 ../src/guestfs-actions.pod:778 ../src/guestfs-actions.pod:796 ../src/guestfs-actions.pod:810 ../src/guestfs-actions.pod:824
6159 msgid "This uses the L<blockdev(8)> command."
6160 msgstr ""
6161
6162 #. type: =head2
6163 #: ../fish/guestfish-actions.pod:460
6164 msgid "blockdev-getbsz"
6165 msgstr ""
6166
6167 #. type: verbatim
6168 #: ../fish/guestfish-actions.pod:462
6169 #, no-wrap
6170 msgid ""
6171 " blockdev-getbsz device\n"
6172 "\n"
6173 msgstr ""
6174
6175 #. type: textblock
6176 #: ../fish/guestfish-actions.pod:464 ../src/guestfs-actions.pod:691
6177 msgid "This returns the block size of a device."
6178 msgstr ""
6179
6180 #. type: textblock
6181 #: ../fish/guestfish-actions.pod:466 ../fish/guestfish-actions.pod:529 ../src/guestfs-actions.pod:693 ../src/guestfs-actions.pod:793
6182 msgid ""
6183 "(Note this is different from both I<size in blocks> and I<filesystem block "
6184 "size>)."
6185 msgstr ""
6186
6187 #. type: =head2
6188 #: ../fish/guestfish-actions.pod:471
6189 msgid "blockdev-getro"
6190 msgstr ""
6191
6192 #. type: verbatim
6193 #: ../fish/guestfish-actions.pod:473
6194 #, no-wrap
6195 msgid ""
6196 " blockdev-getro device\n"
6197 "\n"
6198 msgstr ""
6199
6200 #. type: textblock
6201 #: ../fish/guestfish-actions.pod:475 ../src/guestfs-actions.pod:708
6202 msgid ""
6203 "Returns a boolean indicating if the block device is read-only (true if "
6204 "read-only, false if not)."
6205 msgstr ""
6206
6207 #. type: =head2
6208 #: ../fish/guestfish-actions.pod:480
6209 msgid "blockdev-getsize64"
6210 msgstr ""
6211
6212 #. type: verbatim
6213 #: ../fish/guestfish-actions.pod:482
6214 #, no-wrap
6215 msgid ""
6216 " blockdev-getsize64 device\n"
6217 "\n"
6218 msgstr ""
6219
6220 #. type: textblock
6221 #: ../fish/guestfish-actions.pod:484 ../src/guestfs-actions.pod:723
6222 msgid "This returns the size of the device in bytes."
6223 msgstr ""
6224
6225 #. type: textblock
6226 #: ../fish/guestfish-actions.pod:486
6227 msgid "See also L</blockdev-getsz>."
6228 msgstr ""
6229
6230 #. type: =head2
6231 #: ../fish/guestfish-actions.pod:490
6232 msgid "blockdev-getss"
6233 msgstr ""
6234
6235 #. type: verbatim
6236 #: ../fish/guestfish-actions.pod:492
6237 #, no-wrap
6238 msgid ""
6239 " blockdev-getss device\n"
6240 "\n"
6241 msgstr ""
6242
6243 #. type: textblock
6244 #: ../fish/guestfish-actions.pod:494 ../src/guestfs-actions.pod:739
6245 msgid ""
6246 "This returns the size of sectors on a block device.  Usually 512, but can be "
6247 "larger for modern devices."
6248 msgstr ""
6249
6250 #. type: textblock
6251 #: ../fish/guestfish-actions.pod:497
6252 msgid "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
6253 msgstr ""
6254
6255 #. type: =head2
6256 #: ../fish/guestfish-actions.pod:502
6257 msgid "blockdev-getsz"
6258 msgstr ""
6259
6260 #. type: verbatim
6261 #: ../fish/guestfish-actions.pod:504
6262 #, no-wrap
6263 msgid ""
6264 " blockdev-getsz device\n"
6265 "\n"
6266 msgstr ""
6267
6268 #. type: textblock
6269 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:757
6270 msgid ""
6271 "This returns the size of the device in units of 512-byte sectors (even if "
6272 "the sectorsize isn't 512 bytes ... weird)."
6273 msgstr ""
6274
6275 #. type: textblock
6276 #: ../fish/guestfish-actions.pod:509
6277 msgid ""
6278 "See also L</blockdev-getss> for the real sector size of the device, and "
6279 "L</blockdev-getsize64> for the more useful I<size in bytes>."
6280 msgstr ""
6281
6282 #. type: =head2
6283 #: ../fish/guestfish-actions.pod:515
6284 msgid "blockdev-rereadpt"
6285 msgstr ""
6286
6287 #. type: verbatim
6288 #: ../fish/guestfish-actions.pod:517
6289 #, no-wrap
6290 msgid ""
6291 " blockdev-rereadpt device\n"
6292 "\n"
6293 msgstr ""
6294
6295 #. type: textblock
6296 #: ../fish/guestfish-actions.pod:519 ../src/guestfs-actions.pod:776
6297 msgid "Reread the partition table on C<device>."
6298 msgstr ""
6299
6300 #. type: =head2
6301 #: ../fish/guestfish-actions.pod:523
6302 msgid "blockdev-setbsz"
6303 msgstr ""
6304
6305 #. type: verbatim
6306 #: ../fish/guestfish-actions.pod:525
6307 #, no-wrap
6308 msgid ""
6309 " blockdev-setbsz device blocksize\n"
6310 "\n"
6311 msgstr ""
6312
6313 #. type: textblock
6314 #: ../fish/guestfish-actions.pod:527 ../src/guestfs-actions.pod:791
6315 msgid "This sets the block size of a device."
6316 msgstr ""
6317
6318 #. type: =head2
6319 #: ../fish/guestfish-actions.pod:534
6320 msgid "blockdev-setro"
6321 msgstr ""
6322
6323 #. type: verbatim
6324 #: ../fish/guestfish-actions.pod:536
6325 #, no-wrap
6326 msgid ""
6327 " blockdev-setro device\n"
6328 "\n"
6329 msgstr ""
6330
6331 #. type: textblock
6332 #: ../fish/guestfish-actions.pod:538 ../src/guestfs-actions.pod:808
6333 msgid "Sets the block device named C<device> to read-only."
6334 msgstr ""
6335
6336 #. type: =head2
6337 #: ../fish/guestfish-actions.pod:542
6338 msgid "blockdev-setrw"
6339 msgstr ""
6340
6341 #. type: verbatim
6342 #: ../fish/guestfish-actions.pod:544
6343 #, no-wrap
6344 msgid ""
6345 " blockdev-setrw device\n"
6346 "\n"
6347 msgstr ""
6348
6349 #. type: textblock
6350 #: ../fish/guestfish-actions.pod:546 ../src/guestfs-actions.pod:822
6351 msgid "Sets the block device named C<device> to read-write."
6352 msgstr ""
6353
6354 #. type: =head2
6355 #: ../fish/guestfish-actions.pod:550
6356 msgid "btrfs-filesystem-resize"
6357 msgstr ""
6358
6359 #. type: verbatim
6360 #: ../fish/guestfish-actions.pod:552
6361 #, no-wrap
6362 msgid ""
6363 " btrfs-filesystem-resize mountpoint [size:..]\n"
6364 "\n"
6365 msgstr ""
6366
6367 #. type: textblock
6368 #: ../fish/guestfish-actions.pod:554 ../src/guestfs-actions.pod:844
6369 msgid "This command resizes a btrfs filesystem."
6370 msgstr ""
6371
6372 #. type: textblock
6373 #: ../fish/guestfish-actions.pod:556 ../src/guestfs-actions.pod:846
6374 msgid ""
6375 "Note that unlike other resize calls, the filesystem has to be mounted and "
6376 "the parameter is the mountpoint not the device (this is a requirement of "
6377 "btrfs itself)."
6378 msgstr ""
6379
6380 #. type: textblock
6381 #: ../fish/guestfish-actions.pod:560 ../fish/guestfish-actions.pod:3492 ../src/guestfs-actions.pod:850 ../src/guestfs-actions.pod:5345
6382 msgid "The optional parameters are:"
6383 msgstr ""
6384
6385 #. type: =item
6386 #: ../fish/guestfish-actions.pod:564 ../fish/guestfish-actions.pod:3496 ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:5349
6387 msgid "C<size>"
6388 msgstr ""
6389
6390 #. type: textblock
6391 #: ../fish/guestfish-actions.pod:566 ../src/guestfs-actions.pod:856
6392 msgid ""
6393 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
6394 "resized to the maximum size."
6395 msgstr ""
6396
6397 #. type: textblock
6398 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:861
6399 msgid "See also L<btrfs(8)>."
6400 msgstr ""
6401
6402 #. type: =head2
6403 #: ../fish/guestfish-actions.pod:575
6404 msgid "case-sensitive-path"
6405 msgstr ""
6406
6407 #. type: verbatim
6408 #: ../fish/guestfish-actions.pod:577
6409 #, no-wrap
6410 msgid ""
6411 " case-sensitive-path path\n"
6412 "\n"
6413 msgstr ""
6414
6415 #. type: textblock
6416 #: ../fish/guestfish-actions.pod:579 ../src/guestfs-actions.pod:895
6417 msgid ""
6418 "This can be used to resolve case insensitive paths on a filesystem which is "
6419 "case sensitive.  The use case is to resolve paths which you have read from "
6420 "Windows configuration files or the Windows Registry, to the true path."
6421 msgstr ""
6422
6423 #. type: textblock
6424 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:900
6425 msgid ""
6426 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
6427 "(and probably others), which is that although the underlying filesystem is "
6428 "case-insensitive, the driver exports the filesystem to Linux as "
6429 "case-sensitive."
6430 msgstr ""
6431
6432 #. type: textblock
6433 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:905
6434 msgid ""
6435 "One consequence of this is that special directories such as C<c:\\windows> "
6436 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
6437 "precise details of how they were created.  In Windows itself this would not "
6438 "be a problem."
6439 msgstr ""
6440
6441 #. type: textblock
6442 #: ../fish/guestfish-actions.pod:595 ../src/guestfs-actions.pod:911
6443 msgid ""
6444 "Bug or feature? You decide: "
6445 "L<http://www.tuxera.com/community/ntfs-3g-faq/#posixfilenames1>"
6446 msgstr ""
6447
6448 #. type: textblock
6449 #: ../fish/guestfish-actions.pod:598 ../src/guestfs-actions.pod:914
6450 msgid ""
6451 "This function resolves the true case of each element in the path and returns "
6452 "the case-sensitive path."
6453 msgstr ""
6454
6455 #. type: textblock
6456 #: ../fish/guestfish-actions.pod:601
6457 msgid ""
6458 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return "
6459 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
6460 "how the directories were originally created under Windows)."
6461 msgstr ""
6462
6463 #. type: textblock
6464 #: ../fish/guestfish-actions.pod:606 ../src/guestfs-actions.pod:922
6465 msgid "I<Note>: This function does not handle drive names, backslashes etc."
6466 msgstr ""
6467
6468 #. type: textblock
6469 #: ../fish/guestfish-actions.pod:609
6470 msgid "See also L</realpath>."
6471 msgstr ""
6472
6473 #. type: =head2
6474 #: ../fish/guestfish-actions.pod:611
6475 msgid "cat"
6476 msgstr ""
6477
6478 #. type: verbatim
6479 #: ../fish/guestfish-actions.pod:613
6480 #, no-wrap
6481 msgid ""
6482 " cat path\n"
6483 "\n"
6484 msgstr ""
6485
6486 #. type: textblock
6487 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3912 ../src/guestfs-actions.pod:938 ../src/guestfs-actions.pod:5988
6488 msgid "Return the contents of the file named C<path>."
6489 msgstr ""
6490
6491 #. type: textblock
6492 #: ../fish/guestfish-actions.pod:617
6493 msgid ""
6494 "Note that this function cannot correctly handle binary files (specifically, "
6495 "files containing C<\\0> character which is treated as end of string).  For "
6496 "those you need to use the L</read-file> or L</download> functions which have "
6497 "a more complex interface."
6498 msgstr ""
6499
6500 #. type: textblock
6501 #: ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:757 ../fish/guestfish-actions.pod:769 ../fish/guestfish-actions.pod:980 ../fish/guestfish-actions.pod:990 ../fish/guestfish-actions.pod:1057 ../fish/guestfish-actions.pod:1067 ../fish/guestfish-actions.pod:1259 ../fish/guestfish-actions.pod:1572 ../fish/guestfish-actions.pod:1582 ../fish/guestfish-actions.pod:1632 ../fish/guestfish-actions.pod:1647 ../fish/guestfish-actions.pod:1657 ../fish/guestfish-actions.pod:1676 ../fish/guestfish-actions.pod:3782 ../fish/guestfish-actions.pod:3797 ../fish/guestfish-actions.pod:3873 ../fish/guestfish-actions.pod:3890 ../fish/guestfish-actions.pod:3905 ../fish/guestfish-actions.pod:4586 ../fish/guestfish-actions.pod:4632 ../fish/guestfish-actions.pod:4717 ../fish/guestfish-actions.pod:4732 ../fish/guestfish-actions.pod:5138 ../fish/guestfish-actions.pod:5150 ../fish/guestfish-actions.pod:5168 ../fish/guestfish-actions.pod:5185 ../fish/guestfish-actions.pod:5195 ../fish/guestfish-actions.pod:5252 ../fish/guestfish-actions.pod:5262 ../fish/guestfish-actions.pod:5291 ../fish/guestfish-actions.pod:5301 ../src/guestfs-actions.pod:948 ../src/guestfs-actions.pod:1127 ../src/guestfs-actions.pod:1147 ../src/guestfs-actions.pod:1554 ../src/guestfs-actions.pod:1573 ../src/guestfs-actions.pod:1676 ../src/guestfs-actions.pod:1695 ../src/guestfs-actions.pod:1941 ../src/guestfs-actions.pod:2423 ../src/guestfs-actions.pod:2442 ../src/guestfs-actions.pod:2507 ../src/guestfs-actions.pod:2531 ../src/guestfs-actions.pod:2548 ../src/guestfs-actions.pod:2577 ../src/guestfs-actions.pod:5770 ../src/guestfs-actions.pod:5796 ../src/guestfs-actions.pod:5927 ../src/guestfs-actions.pod:5953 ../src/guestfs-actions.pod:5977 ../src/guestfs-actions.pod:6944 ../src/guestfs-actions.pod:6999 ../src/guestfs-actions.pod:7145 ../src/guestfs-actions.pod:7169 ../src/guestfs-actions.pod:7834 ../src/guestfs-actions.pod:7854 ../src/guestfs-actions.pod:7887 ../src/guestfs-actions.pod:7906 ../src/guestfs-actions.pod:7925 ../src/guestfs-actions.pod:8019 ../src/guestfs-actions.pod:8038 ../src/guestfs-actions.pod:8084 ../src/guestfs-actions.pod:8103
6502 msgid ""
6503 "Because of the message protocol, there is a transfer limit of somewhere "
6504 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
6505 msgstr ""
6506
6507 #. type: =head2
6508 #: ../fish/guestfish-actions.pod:625
6509 msgid "checksum"
6510 msgstr ""
6511
6512 #. type: verbatim
6513 #: ../fish/guestfish-actions.pod:627
6514 #, no-wrap
6515 msgid ""
6516 " checksum csumtype path\n"
6517 "\n"
6518 msgstr ""
6519
6520 #. type: textblock
6521 #: ../fish/guestfish-actions.pod:629 ../src/guestfs-actions.pod:960
6522 msgid "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
6523 msgstr ""
6524
6525 #. type: textblock
6526 #: ../fish/guestfish-actions.pod:632 ../src/guestfs-actions.pod:963
6527 msgid ""
6528 "The type of checksum to compute is given by the C<csumtype> parameter which "
6529 "must have one of the following values:"
6530 msgstr ""
6531
6532 #. type: =item
6533 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:968
6534 msgid "C<crc>"
6535 msgstr ""
6536
6537 #. type: textblock
6538 #: ../fish/guestfish-actions.pod:639 ../src/guestfs-actions.pod:970
6539 msgid ""
6540 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
6541 "C<cksum> command."
6542 msgstr ""
6543
6544 #. type: =item
6545 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:973
6546 msgid "C<md5>"
6547 msgstr ""
6548
6549 #. type: textblock
6550 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:975
6551 msgid "Compute the MD5 hash (using the C<md5sum> program)."
6552 msgstr ""
6553
6554 #. type: =item
6555 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:977
6556 msgid "C<sha1>"
6557 msgstr ""
6558
6559 #. type: textblock
6560 #: ../fish/guestfish-actions.pod:648 ../src/guestfs-actions.pod:979
6561 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
6562 msgstr ""
6563
6564 #. type: =item
6565 #: ../fish/guestfish-actions.pod:650 ../src/guestfs-actions.pod:981
6566 msgid "C<sha224>"
6567 msgstr ""
6568
6569 #. type: textblock
6570 #: ../fish/guestfish-actions.pod:652 ../src/guestfs-actions.pod:983
6571 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
6572 msgstr ""
6573
6574 #. type: =item
6575 #: ../fish/guestfish-actions.pod:654 ../src/guestfs-actions.pod:985
6576 msgid "C<sha256>"
6577 msgstr ""
6578
6579 #. type: textblock
6580 #: ../fish/guestfish-actions.pod:656 ../src/guestfs-actions.pod:987
6581 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
6582 msgstr ""
6583
6584 #. type: =item
6585 #: ../fish/guestfish-actions.pod:658 ../src/guestfs-actions.pod:989
6586 msgid "C<sha384>"
6587 msgstr ""
6588
6589 #. type: textblock
6590 #: ../fish/guestfish-actions.pod:660 ../src/guestfs-actions.pod:991
6591 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
6592 msgstr ""
6593
6594 #. type: =item
6595 #: ../fish/guestfish-actions.pod:662 ../src/guestfs-actions.pod:993
6596 msgid "C<sha512>"
6597 msgstr ""
6598
6599 #. type: textblock
6600 #: ../fish/guestfish-actions.pod:664 ../src/guestfs-actions.pod:995
6601 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
6602 msgstr ""
6603
6604 #. type: textblock
6605 #: ../fish/guestfish-actions.pod:668 ../src/guestfs-actions.pod:999
6606 msgid "The checksum is returned as a printable string."
6607 msgstr ""
6608
6609 #. type: textblock
6610 #: ../fish/guestfish-actions.pod:670
6611 msgid "To get the checksum for a device, use L</checksum-device>."
6612 msgstr ""
6613
6614 #. type: textblock
6615 #: ../fish/guestfish-actions.pod:672
6616 msgid "To get the checksums for many files, use L</checksums-out>."
6617 msgstr ""
6618
6619 #. type: =head2
6620 #: ../fish/guestfish-actions.pod:674
6621 msgid "checksum-device"
6622 msgstr ""
6623
6624 #. type: verbatim
6625 #: ../fish/guestfish-actions.pod:676
6626 #, no-wrap
6627 msgid ""
6628 " checksum-device csumtype device\n"
6629 "\n"
6630 msgstr ""
6631
6632 #. type: textblock
6633 #: ../fish/guestfish-actions.pod:678
6634 msgid ""
6635 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
6636 "device named C<device>.  For the types of checksums supported see the "
6637 "L</checksum> command."
6638 msgstr ""
6639
6640 #. type: =head2
6641 #: ../fish/guestfish-actions.pod:682
6642 msgid "checksums-out"
6643 msgstr ""
6644
6645 #. type: verbatim
6646 #: ../fish/guestfish-actions.pod:684
6647 #, no-wrap
6648 msgid ""
6649 " checksums-out csumtype directory (sumsfile|-)\n"
6650 "\n"
6651 msgstr ""
6652
6653 #. type: textblock
6654 #: ../fish/guestfish-actions.pod:686 ../src/guestfs-actions.pod:1034
6655 msgid ""
6656 "This command computes the checksums of all regular files in C<directory> and "
6657 "then emits a list of those checksums to the local output file C<sumsfile>."
6658 msgstr ""
6659
6660 #. type: textblock
6661 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1038
6662 msgid ""
6663 "This can be used for verifying the integrity of a virtual machine.  However "
6664 "to be properly secure you should pay attention to the output of the checksum "
6665 "command (it uses the ones from GNU coreutils).  In particular when the "
6666 "filename is not printable, coreutils uses a special backslash syntax.  For "
6667 "more information, see the GNU coreutils info file."
6668 msgstr ""
6669
6670 #. type: =head2
6671 #: ../fish/guestfish-actions.pod:700
6672 msgid "chmod"
6673 msgstr ""
6674
6675 #. type: verbatim
6676 #: ../fish/guestfish-actions.pod:702
6677 #, no-wrap
6678 msgid ""
6679 " chmod mode path\n"
6680 "\n"
6681 msgstr ""
6682
6683 #. type: textblock
6684 #: ../fish/guestfish-actions.pod:704 ../src/guestfs-actions.pod:1057
6685 msgid ""
6686 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
6687 "supported."
6688 msgstr ""
6689
6690 #. type: textblock
6691 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1060
6692 msgid ""
6693 "I<Note>: When using this command from guestfish, C<mode> by default would be "
6694 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
6695 "C<700>."
6696 msgstr ""
6697
6698 #. type: textblock
6699 #: ../fish/guestfish-actions.pod:711 ../fish/guestfish-actions.pod:3145 ../fish/guestfish-actions.pod:3284 ../fish/guestfish-actions.pod:3294 ../fish/guestfish-actions.pod:3304 ../src/guestfs-actions.pod:1064 ../src/guestfs-actions.pod:4752 ../src/guestfs-actions.pod:4961 ../src/guestfs-actions.pod:4980 ../src/guestfs-actions.pod:4999
6700 msgid "The mode actually set is affected by the umask."
6701 msgstr ""
6702
6703 #. type: =head2
6704 #: ../fish/guestfish-actions.pod:713
6705 msgid "chown"
6706 msgstr ""
6707
6708 #. type: verbatim
6709 #: ../fish/guestfish-actions.pod:715
6710 #, no-wrap
6711 msgid ""
6712 " chown owner group path\n"
6713 "\n"
6714 msgstr ""
6715
6716 #. type: textblock
6717 #: ../fish/guestfish-actions.pod:717 ../src/guestfs-actions.pod:1078
6718 msgid "Change the file owner to C<owner> and group to C<group>."
6719 msgstr ""
6720
6721 #. type: textblock
6722 #: ../fish/guestfish-actions.pod:719 ../fish/guestfish-actions.pod:2580 ../src/guestfs-actions.pod:1080 ../src/guestfs-actions.pod:3823
6723 msgid ""
6724 "Only numeric uid and gid are supported.  If you want to use names, you will "
6725 "need to locate and parse the password file yourself (Augeas support makes "
6726 "this relatively easy)."
6727 msgstr ""
6728
6729 #. type: =head2
6730 #: ../fish/guestfish-actions.pod:723
6731 msgid "command"
6732 msgstr ""
6733
6734 #. type: verbatim
6735 #: ../fish/guestfish-actions.pod:725
6736 #, no-wrap
6737 msgid ""
6738 " command 'arguments ...'\n"
6739 "\n"
6740 msgstr ""
6741
6742 #. type: textblock
6743 #: ../fish/guestfish-actions.pod:727 ../src/guestfs-actions.pod:1094
6744 msgid ""
6745 "This call runs a command from the guest filesystem.  The filesystem must be "
6746 "mounted, and must contain a compatible operating system (ie. something "
6747 "Linux, with the same or compatible processor architecture)."
6748 msgstr ""
6749
6750 #. type: textblock
6751 #: ../fish/guestfish-actions.pod:732
6752 msgid ""
6753 "The single parameter is an argv-style list of arguments.  The first element "
6754 "is the name of the program to run.  Subsequent elements are parameters.  The "
6755 "list must be non-empty (ie. must contain a program name).  Note that the "
6756 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
6757 msgstr ""
6758
6759 #. type: textblock
6760 #: ../fish/guestfish-actions.pod:739 ../src/guestfs-actions.pod:1106
6761 msgid "The return value is anything printed to I<stdout> by the command."
6762 msgstr ""
6763
6764 #. type: textblock
6765 #: ../fish/guestfish-actions.pod:742 ../src/guestfs-actions.pod:1109
6766 msgid ""
6767 "If the command returns a non-zero exit status, then this function returns an "
6768 "error message.  The error message string is the content of I<stderr> from "
6769 "the command."
6770 msgstr ""
6771
6772 #. type: textblock
6773 #: ../fish/guestfish-actions.pod:746 ../src/guestfs-actions.pod:1113
6774 msgid ""
6775 "The C<$PATH> environment variable will contain at least C</usr/bin> and "
6776 "C</bin>.  If you require a program from another location, you should provide "
6777 "the full path in the first parameter."
6778 msgstr ""
6779
6780 #. type: textblock
6781 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1118
6782 msgid ""
6783 "Shared libraries and data files required by the program must be available on "
6784 "filesystems which are mounted in the correct places.  It is the caller's "
6785 "responsibility to ensure all filesystems that are needed are mounted at the "
6786 "right locations."
6787 msgstr ""
6788
6789 #. type: =head2
6790 #: ../fish/guestfish-actions.pod:760
6791 msgid "command-lines"
6792 msgstr ""
6793
6794 #. type: verbatim
6795 #: ../fish/guestfish-actions.pod:762
6796 #, no-wrap
6797 msgid ""
6798 " command-lines 'arguments ...'\n"
6799 "\n"
6800 msgstr ""
6801
6802 #. type: textblock
6803 #: ../fish/guestfish-actions.pod:764
6804 msgid "This is the same as L</command>, but splits the result into a list of lines."
6805 msgstr ""
6806
6807 #. type: textblock
6808 #: ../fish/guestfish-actions.pod:767
6809 msgid "See also: L</sh-lines>"
6810 msgstr ""
6811
6812 #. type: =head2
6813 #: ../fish/guestfish-actions.pod:772
6814 msgid "compress-device-out"
6815 msgstr ""
6816
6817 #. type: verbatim
6818 #: ../fish/guestfish-actions.pod:774
6819 #, no-wrap
6820 msgid ""
6821 " compress-device-out ctype device (zdevice|-) [level:..]\n"
6822 "\n"
6823 msgstr ""
6824
6825 #. type: textblock
6826 #: ../fish/guestfish-actions.pod:776 ../src/guestfs-actions.pod:1168
6827 msgid ""
6828 "This command compresses C<device> and writes it out to the local file "
6829 "C<zdevice>."
6830 msgstr ""
6831
6832 #. type: textblock
6833 #: ../fish/guestfish-actions.pod:779
6834 msgid ""
6835 "The C<ctype> and optional C<level> parameters have the same meaning as in "
6836 "L</compress-out>."
6837 msgstr ""
6838
6839 #. type: =head2
6840 #: ../fish/guestfish-actions.pod:786
6841 msgid "compress-out"
6842 msgstr ""
6843
6844 #. type: verbatim
6845 #: ../fish/guestfish-actions.pod:788
6846 #, no-wrap
6847 msgid ""
6848 " compress-out ctype file (zfile|-) [level:..]\n"
6849 "\n"
6850 msgstr ""
6851
6852 #. type: textblock
6853 #: ../fish/guestfish-actions.pod:790 ../src/guestfs-actions.pod:1220
6854 msgid ""
6855 "This command compresses C<file> and writes it out to the local file "
6856 "C<zfile>."
6857 msgstr ""
6858
6859 #. type: textblock
6860 #: ../fish/guestfish-actions.pod:793 ../src/guestfs-actions.pod:1223
6861 msgid ""
6862 "The compression program used is controlled by the C<ctype> parameter.  "
6863 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>.  "
6864 "Some compression types may not be supported by particular builds of "
6865 "libguestfs, in which case you will get an error containing the substring "
6866 "\"not supported\"."
6867 msgstr ""
6868
6869 #. type: textblock
6870 #: ../fish/guestfish-actions.pod:799 ../src/guestfs-actions.pod:1229
6871 msgid ""
6872 "The optional C<level> parameter controls compression level.  The meaning and "
6873 "default for this parameter depends on the compression program being used."
6874 msgstr ""
6875
6876 #. type: =head2
6877 #: ../fish/guestfish-actions.pod:807
6878 msgid "config"
6879 msgstr ""
6880
6881 #. type: verbatim
6882 #: ../fish/guestfish-actions.pod:809
6883 #, no-wrap
6884 msgid ""
6885 " config qemuparam qemuvalue\n"
6886 "\n"
6887 msgstr ""
6888
6889 #. type: textblock
6890 #: ../fish/guestfish-actions.pod:811 ../src/guestfs-actions.pod:1270
6891 msgid ""
6892 "This can be used to add arbitrary qemu command line parameters of the form "
6893 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
6894 "setting some parameters which would interfere with parameters that we use."
6895 msgstr ""
6896
6897 #. type: textblock
6898 #: ../fish/guestfish-actions.pod:816 ../src/guestfs-actions.pod:1275
6899 msgid "The first character of C<param> string must be a C<-> (dash)."
6900 msgstr ""
6901
6902 #. type: textblock
6903 #: ../fish/guestfish-actions.pod:818 ../src/guestfs-actions.pod:1277
6904 msgid "C<value> can be NULL."
6905 msgstr ""
6906
6907 #. type: =head2
6908 #: ../fish/guestfish-actions.pod:820
6909 msgid "copy-size"
6910 msgstr ""
6911
6912 #. type: verbatim
6913 #: ../fish/guestfish-actions.pod:822
6914 #, no-wrap
6915 msgid ""
6916 " copy-size src dest size\n"
6917 "\n"
6918 msgstr ""
6919
6920 #. type: textblock
6921 #: ../fish/guestfish-actions.pod:824 ../src/guestfs-actions.pod:1291
6922 msgid ""
6923 "This command copies exactly C<size> bytes from one source device or file "
6924 "C<src> to another destination device or file C<dest>."
6925 msgstr ""
6926
6927 #. type: textblock
6928 #: ../fish/guestfish-actions.pod:827 ../src/guestfs-actions.pod:1294
6929 msgid ""
6930 "Note this will fail if the source is too short or if the destination is not "
6931 "large enough."
6932 msgstr ""
6933
6934 #. type: =head2
6935 #: ../fish/guestfish-actions.pod:830
6936 msgid "cp"
6937 msgstr ""
6938
6939 #. type: verbatim
6940 #: ../fish/guestfish-actions.pod:832
6941 #, no-wrap
6942 msgid ""
6943 " cp src dest\n"
6944 "\n"
6945 msgstr ""
6946
6947 #. type: textblock
6948 #: ../fish/guestfish-actions.pod:834 ../src/guestfs-actions.pod:1313
6949 msgid ""
6950 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6951 "destination filename or destination directory."
6952 msgstr ""
6953
6954 #. type: =head2
6955 #: ../fish/guestfish-actions.pod:837
6956 msgid "cp-a"
6957 msgstr ""
6958
6959 #. type: verbatim
6960 #: ../fish/guestfish-actions.pod:839
6961 #, no-wrap
6962 msgid ""
6963 " cp-a src dest\n"
6964 "\n"
6965 msgstr ""
6966
6967 #. type: textblock
6968 #: ../fish/guestfish-actions.pod:841 ../src/guestfs-actions.pod:1327
6969 msgid ""
6970 "This copies a file or directory from C<src> to C<dest> recursively using the "
6971 "C<cp -a> command."
6972 msgstr ""
6973
6974 #. type: =head2
6975 #: ../fish/guestfish-actions.pod:844
6976 msgid "dd"
6977 msgstr ""
6978
6979 #. type: verbatim
6980 #: ../fish/guestfish-actions.pod:846
6981 #, no-wrap
6982 msgid ""
6983 " dd src dest\n"
6984 "\n"
6985 msgstr ""
6986
6987 #. type: textblock
6988 #: ../fish/guestfish-actions.pod:848 ../src/guestfs-actions.pod:1341
6989 msgid ""
6990 "This command copies from one source device or file C<src> to another "
6991 "destination device or file C<dest>.  Normally you would use this to copy to "
6992 "or from a device or partition, for example to duplicate a filesystem."
6993 msgstr ""
6994
6995 #. type: textblock
6996 #: ../fish/guestfish-actions.pod:853
6997 msgid ""
6998 "If the destination is a device, it must be as large or larger than the "
6999 "source file or device, otherwise the copy will fail.  This command cannot do "
7000 "partial copies (see L</copy-size>)."
7001 msgstr ""
7002
7003 #. type: =head2
7004 #: ../fish/guestfish-actions.pod:857
7005 msgid "df"
7006 msgstr ""
7007
7008 #. type: verbatim
7009 #: ../fish/guestfish-actions.pod:859
7010 #, no-wrap
7011 msgid ""
7012 " df\n"
7013 "\n"
7014 msgstr ""
7015
7016 #. type: textblock
7017 #: ../fish/guestfish-actions.pod:861 ../src/guestfs-actions.pod:1359
7018 msgid "This command runs the C<df> command to report disk space used."
7019 msgstr ""
7020
7021 #. type: textblock
7022 #: ../fish/guestfish-actions.pod:863 ../fish/guestfish-actions.pod:874
7023 msgid ""
7024 "This command is mostly useful for interactive sessions.  It is I<not> "
7025 "intended that you try to parse the output string.  Use L</statvfs> from "
7026 "programs."
7027 msgstr ""
7028
7029 #. type: =head2
7030 #: ../fish/guestfish-actions.pod:867
7031 msgid "df-h"
7032 msgstr ""
7033
7034 #. type: verbatim
7035 #: ../fish/guestfish-actions.pod:869
7036 #, no-wrap
7037 msgid ""
7038 " df-h\n"
7039 "\n"
7040 msgstr ""
7041
7042 #. type: textblock
7043 #: ../fish/guestfish-actions.pod:871 ../src/guestfs-actions.pod:1375
7044 msgid ""
7045 "This command runs the C<df -h> command to report disk space used in "
7046 "human-readable format."
7047 msgstr ""
7048
7049 #. type: =head2
7050 #: ../fish/guestfish-actions.pod:878
7051 msgid "dmesg"
7052 msgstr ""
7053
7054 #. type: verbatim
7055 #: ../fish/guestfish-actions.pod:880
7056 #, no-wrap
7057 msgid ""
7058 " dmesg\n"
7059 "\n"
7060 msgstr ""
7061
7062 #. type: textblock
7063 #: ../fish/guestfish-actions.pod:882 ../src/guestfs-actions.pod:1392
7064 msgid ""
7065 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
7066 "This is sometimes useful for extended debugging of problems."
7067 msgstr ""
7068
7069 #. type: textblock
7070 #: ../fish/guestfish-actions.pod:886
7071 msgid ""
7072 "Another way to get the same information is to enable verbose messages with "
7073 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
7074 "before running the program."
7075 msgstr ""
7076
7077 #. type: =head2
7078 #: ../fish/guestfish-actions.pod:891
7079 msgid "download"
7080 msgstr ""
7081
7082 #. type: verbatim
7083 #: ../fish/guestfish-actions.pod:893
7084 #, no-wrap
7085 msgid ""
7086 " download remotefilename (filename|-)\n"
7087 "\n"
7088 msgstr ""
7089
7090 #. type: textblock
7091 #: ../fish/guestfish-actions.pod:895 ../fish/guestfish-actions.pod:908 ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:1438
7092 msgid ""
7093 "Download file C<remotefilename> and save it as C<filename> on the local "
7094 "machine."
7095 msgstr ""
7096
7097 #. type: textblock
7098 #: ../fish/guestfish-actions.pod:898 ../fish/guestfish-actions.pod:4890 ../src/guestfs-actions.pod:1416 ../src/guestfs-actions.pod:7404
7099 msgid "C<filename> can also be a named pipe."
7100 msgstr ""
7101
7102 #. type: textblock
7103 #: ../fish/guestfish-actions.pod:900
7104 msgid "See also L</upload>, L</cat>."
7105 msgstr ""
7106
7107 #. type: =head2
7108 #: ../fish/guestfish-actions.pod:904
7109 msgid "download-offset"
7110 msgstr ""
7111
7112 #. type: verbatim
7113 #: ../fish/guestfish-actions.pod:906
7114 #, no-wrap
7115 msgid ""
7116 " download-offset remotefilename (filename|-) offset size\n"
7117 "\n"
7118 msgstr ""
7119
7120 #. type: textblock
7121 #: ../fish/guestfish-actions.pod:911 ../src/guestfs-actions.pod:1441
7122 msgid ""
7123 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
7124 "region must be within the file or device)."
7125 msgstr ""
7126
7127 #. type: textblock
7128 #: ../fish/guestfish-actions.pod:914
7129 msgid ""
7130 "Note that there is no limit on the amount of data that can be downloaded "
7131 "with this call, unlike with L</pread>, and this call always reads the full "
7132 "amount unless an error occurs."
7133 msgstr ""
7134
7135 #. type: textblock
7136 #: ../fish/guestfish-actions.pod:919
7137 msgid "See also L</download>, L</pread>."
7138 msgstr ""
7139
7140 #. type: =head2
7141 #: ../fish/guestfish-actions.pod:923
7142 msgid "drop-caches"
7143 msgstr ""
7144
7145 #. type: verbatim
7146 #: ../fish/guestfish-actions.pod:925
7147 #, no-wrap
7148 msgid ""
7149 " drop-caches whattodrop\n"
7150 "\n"
7151 msgstr ""
7152
7153 #. type: textblock
7154 #: ../fish/guestfish-actions.pod:927 ../src/guestfs-actions.pod:1466
7155 msgid ""
7156 "This instructs the guest kernel to drop its page cache, and/or dentries and "
7157 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
7158 "to drop, see L<http://linux-mm.org/Drop_Caches>"
7159 msgstr ""
7160
7161 #. type: textblock
7162 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1471
7163 msgid "Setting C<whattodrop> to 3 should drop everything."
7164 msgstr ""
7165
7166 #. type: textblock
7167 #: ../fish/guestfish-actions.pod:934 ../src/guestfs-actions.pod:1473
7168 msgid ""
7169 "This automatically calls L<sync(2)> before the operation, so that the "
7170 "maximum guest memory is freed."
7171 msgstr ""
7172
7173 #. type: =head2
7174 #: ../fish/guestfish-actions.pod:937
7175 msgid "du"
7176 msgstr ""
7177
7178 #. type: verbatim
7179 #: ../fish/guestfish-actions.pod:939
7180 #, no-wrap
7181 msgid ""
7182 " du path\n"
7183 "\n"
7184 msgstr ""
7185
7186 #. type: textblock
7187 #: ../fish/guestfish-actions.pod:941 ../src/guestfs-actions.pod:1486
7188 msgid ""
7189 "This command runs the C<du -s> command to estimate file space usage for "
7190 "C<path>."
7191 msgstr ""
7192
7193 #. type: textblock
7194 #: ../fish/guestfish-actions.pod:944 ../src/guestfs-actions.pod:1489
7195 msgid ""
7196 "C<path> can be a file or a directory.  If C<path> is a directory then the "
7197 "estimate includes the contents of the directory and all subdirectories "
7198 "(recursively)."
7199 msgstr ""
7200
7201 #. type: textblock
7202 #: ../fish/guestfish-actions.pod:948 ../src/guestfs-actions.pod:1493
7203 msgid "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
7204 msgstr ""
7205
7206 #. type: =head2
7207 #: ../fish/guestfish-actions.pod:951
7208 msgid "e2fsck-f"
7209 msgstr ""
7210
7211 #. type: verbatim
7212 #: ../fish/guestfish-actions.pod:953
7213 #, no-wrap
7214 msgid ""
7215 " e2fsck-f device\n"
7216 "\n"
7217 msgstr ""
7218
7219 #. type: textblock
7220 #: ../fish/guestfish-actions.pod:955 ../src/guestfs-actions.pod:1511
7221 msgid ""
7222 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
7223 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
7224 "clean (I<-f>)."
7225 msgstr ""
7226
7227 #. type: textblock
7228 #: ../fish/guestfish-actions.pod:959
7229 msgid ""
7230 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
7231 "should use L</fsck>."
7232 msgstr ""
7233
7234 #. type: =head2
7235 #: ../fish/guestfish-actions.pod:962
7236 msgid "echo-daemon"
7237 msgstr ""
7238
7239 #. type: verbatim
7240 #: ../fish/guestfish-actions.pod:964
7241 #, no-wrap
7242 msgid ""
7243 " echo-daemon 'words ...'\n"
7244 "\n"
7245 msgstr ""
7246
7247 #. type: textblock
7248 #: ../fish/guestfish-actions.pod:966 ../src/guestfs-actions.pod:1528
7249 msgid ""
7250 "This command concatenates the list of C<words> passed with single spaces "
7251 "between them and returns the resulting string."
7252 msgstr ""
7253
7254 #. type: textblock
7255 #: ../fish/guestfish-actions.pod:969 ../src/guestfs-actions.pod:1531
7256 msgid "You can use this command to test the connection through to the daemon."
7257 msgstr ""
7258
7259 #. type: textblock
7260 #: ../fish/guestfish-actions.pod:971
7261 msgid "See also L</ping-daemon>."
7262 msgstr ""
7263
7264 #. type: =head2
7265 #: ../fish/guestfish-actions.pod:973
7266 msgid "egrep"
7267 msgstr ""
7268
7269 #. type: verbatim
7270 #: ../fish/guestfish-actions.pod:975
7271 #, no-wrap
7272 msgid ""
7273 " egrep regex path\n"
7274 "\n"
7275 msgstr ""
7276
7277 #. type: textblock
7278 #: ../fish/guestfish-actions.pod:977 ../src/guestfs-actions.pod:1547
7279 msgid "This calls the external C<egrep> program and returns the matching lines."
7280 msgstr ""
7281
7282 #. type: =head2
7283 #: ../fish/guestfish-actions.pod:983
7284 msgid "egrepi"
7285 msgstr ""
7286
7287 #. type: verbatim
7288 #: ../fish/guestfish-actions.pod:985
7289 #, no-wrap
7290 msgid ""
7291 " egrepi regex path\n"
7292 "\n"
7293 msgstr ""
7294
7295 #. type: textblock
7296 #: ../fish/guestfish-actions.pod:987 ../src/guestfs-actions.pod:1566
7297 msgid "This calls the external C<egrep -i> program and returns the matching lines."
7298 msgstr ""
7299
7300 #. type: =head2
7301 #: ../fish/guestfish-actions.pod:993
7302 msgid "equal"
7303 msgstr ""
7304
7305 #. type: verbatim
7306 #: ../fish/guestfish-actions.pod:995
7307 #, no-wrap
7308 msgid ""
7309 " equal file1 file2\n"
7310 "\n"
7311 msgstr ""
7312
7313 #. type: textblock
7314 #: ../fish/guestfish-actions.pod:997 ../src/guestfs-actions.pod:1585
7315 msgid ""
7316 "This compares the two files C<file1> and C<file2> and returns true if their "
7317 "content is exactly equal, or false otherwise."
7318 msgstr ""
7319
7320 #. type: textblock
7321 #: ../fish/guestfish-actions.pod:1000 ../src/guestfs-actions.pod:1588
7322 msgid "The external L<cmp(1)> program is used for the comparison."
7323 msgstr ""
7324
7325 #. type: =head2
7326 #: ../fish/guestfish-actions.pod:1002
7327 msgid "exists"
7328 msgstr ""
7329
7330 #. type: verbatim
7331 #: ../fish/guestfish-actions.pod:1004
7332 #, no-wrap
7333 msgid ""
7334 " exists path\n"
7335 "\n"
7336 msgstr ""
7337
7338 #. type: textblock
7339 #: ../fish/guestfish-actions.pod:1006 ../src/guestfs-actions.pod:1600
7340 msgid ""
7341 "This returns C<true> if and only if there is a file, directory (or anything) "
7342 "with the given C<path> name."
7343 msgstr ""
7344
7345 #. type: textblock
7346 #: ../fish/guestfish-actions.pod:1009
7347 msgid "See also L</is-file>, L</is-dir>, L</stat>."
7348 msgstr ""
7349
7350 #. type: =head2
7351 #: ../fish/guestfish-actions.pod:1011
7352 msgid "fallocate"
7353 msgstr ""
7354
7355 #. type: verbatim
7356 #: ../fish/guestfish-actions.pod:1013
7357 #, no-wrap
7358 msgid ""
7359 " fallocate path len\n"
7360 "\n"
7361 msgstr ""
7362
7363 #. type: textblock
7364 #: ../fish/guestfish-actions.pod:1015 ../fish/guestfish-actions.pod:1034 ../src/guestfs-actions.pod:1623 ../src/guestfs-actions.pod:1642
7365 msgid ""
7366 "This command preallocates a file (containing zero bytes) named C<path> of "
7367 "size C<len> bytes.  If the file exists already, it is overwritten."
7368 msgstr ""
7369
7370 #. type: textblock
7371 #: ../fish/guestfish-actions.pod:1019 ../src/guestfs-actions.pod:1627
7372 msgid ""
7373 "Do not confuse this with the guestfish-specific C<alloc> command which "
7374 "allocates a file in the host and attaches it as a device."
7375 msgstr ""
7376
7377 #. type: textblock
7378 #: ../fish/guestfish-actions.pod:1023
7379 msgid ""
7380 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
7381 "instead."
7382 msgstr ""
7383
7384 #. type: =head2
7385 #: ../fish/guestfish-actions.pod:1030
7386 msgid "fallocate64"
7387 msgstr ""
7388
7389 #. type: verbatim
7390 #: ../fish/guestfish-actions.pod:1032
7391 #, no-wrap
7392 msgid ""
7393 " fallocate64 path len\n"
7394 "\n"
7395 msgstr ""
7396
7397 #. type: textblock
7398 #: ../fish/guestfish-actions.pod:1038
7399 msgid ""
7400 "Note that this call allocates disk blocks for the file.  To create a sparse "
7401 "file use L</truncate-size> instead."
7402 msgstr ""
7403
7404 #. type: textblock
7405 #: ../fish/guestfish-actions.pod:1041
7406 msgid ""
7407 "The deprecated call L</fallocate> does the same, but owing to an oversight "
7408 "it only allowed 30 bit lengths to be specified, effectively limiting the "
7409 "maximum size of files created through that call to 1GB."
7410 msgstr ""
7411
7412 #. type: textblock
7413 #: ../fish/guestfish-actions.pod:1046 ../src/guestfs-actions.pod:1654
7414 msgid ""
7415 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
7416 "commands which create a file in the host and attach it as a device."
7417 msgstr ""
7418
7419 #. type: =head2
7420 #: ../fish/guestfish-actions.pod:1050
7421 msgid "fgrep"
7422 msgstr ""
7423
7424 #. type: verbatim
7425 #: ../fish/guestfish-actions.pod:1052
7426 #, no-wrap
7427 msgid ""
7428 " fgrep pattern path\n"
7429 "\n"
7430 msgstr ""
7431
7432 #. type: textblock
7433 #: ../fish/guestfish-actions.pod:1054 ../src/guestfs-actions.pod:1669
7434 msgid "This calls the external C<fgrep> program and returns the matching lines."
7435 msgstr ""
7436
7437 #. type: =head2
7438 #: ../fish/guestfish-actions.pod:1060
7439 msgid "fgrepi"
7440 msgstr ""
7441
7442 #. type: verbatim
7443 #: ../fish/guestfish-actions.pod:1062
7444 #, no-wrap
7445 msgid ""
7446 " fgrepi pattern path\n"
7447 "\n"
7448 msgstr ""
7449
7450 #. type: textblock
7451 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1688
7452 msgid "This calls the external C<fgrep -i> program and returns the matching lines."
7453 msgstr ""
7454
7455 #. type: =head2
7456 #: ../fish/guestfish-actions.pod:1070
7457 msgid "file"
7458 msgstr ""
7459
7460 #. type: verbatim
7461 #: ../fish/guestfish-actions.pod:1072
7462 #, no-wrap
7463 msgid ""
7464 " file path\n"
7465 "\n"
7466 msgstr ""
7467
7468 #. type: textblock
7469 #: ../fish/guestfish-actions.pod:1074 ../src/guestfs-actions.pod:1706
7470 msgid ""
7471 "This call uses the standard L<file(1)> command to determine the type or "
7472 "contents of the file."
7473 msgstr ""
7474
7475 #. type: textblock
7476 #: ../fish/guestfish-actions.pod:1077 ../src/guestfs-actions.pod:1709
7477 msgid ""
7478 "This call will also transparently look inside various types of compressed "
7479 "file."
7480 msgstr ""
7481
7482 #. type: textblock
7483 #: ../fish/guestfish-actions.pod:1080 ../src/guestfs-actions.pod:1712
7484 msgid ""
7485 "The exact command which runs is C<file -zb path>.  Note in particular that "
7486 "the filename is not prepended to the output (the I<-b> option)."
7487 msgstr ""
7488
7489 #. type: textblock
7490 #: ../fish/guestfish-actions.pod:1084 ../src/guestfs-actions.pod:1716
7491 msgid ""
7492 "The output depends on the output of the underlying L<file(1)> command and it "
7493 "can change in future in ways beyond our control.  In other words, the output "
7494 "is not guaranteed by the ABI."
7495 msgstr ""
7496
7497 #. type: textblock
7498 #: ../fish/guestfish-actions.pod:1088
7499 msgid ""
7500 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
7501 "(etc), L</is-zero>."
7502 msgstr ""
7503
7504 #. type: =head2
7505 #: ../fish/guestfish-actions.pod:1091
7506 msgid "file-architecture"
7507 msgstr ""
7508
7509 #. type: verbatim
7510 #: ../fish/guestfish-actions.pod:1093
7511 #, no-wrap
7512 msgid ""
7513 " file-architecture filename\n"
7514 "\n"
7515 msgstr ""
7516
7517 #. type: textblock
7518 #: ../fish/guestfish-actions.pod:1095 ../src/guestfs-actions.pod:1734
7519 msgid ""
7520 "This detects the architecture of the binary C<filename>, and returns it if "
7521 "known."
7522 msgstr ""
7523
7524 #. type: textblock
7525 #: ../fish/guestfish-actions.pod:1098 ../src/guestfs-actions.pod:1737
7526 msgid "Currently defined architectures are:"
7527 msgstr ""
7528
7529 #. type: =item
7530 #: ../fish/guestfish-actions.pod:1102 ../src/guestfs-actions.pod:1741
7531 msgid "\"i386\""
7532 msgstr ""
7533
7534 #. type: textblock
7535 #: ../fish/guestfish-actions.pod:1104 ../src/guestfs-actions.pod:1743
7536 msgid ""
7537 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
7538 "irrespective of the precise processor requirements of the binary."
7539 msgstr ""
7540
7541 #. type: =item
7542 #: ../fish/guestfish-actions.pod:1107 ../src/guestfs-actions.pod:1746
7543 msgid "\"x86_64\""
7544 msgstr ""
7545
7546 #. type: textblock
7547 #: ../fish/guestfish-actions.pod:1109 ../src/guestfs-actions.pod:1748
7548 msgid "64 bit x86-64."
7549 msgstr ""
7550
7551 #. type: =item
7552 #: ../fish/guestfish-actions.pod:1111 ../src/guestfs-actions.pod:1750
7553 msgid "\"sparc\""
7554 msgstr ""
7555
7556 #. type: textblock
7557 #: ../fish/guestfish-actions.pod:1113 ../src/guestfs-actions.pod:1752
7558 msgid "32 bit SPARC."
7559 msgstr ""
7560
7561 #. type: =item
7562 #: ../fish/guestfish-actions.pod:1115 ../src/guestfs-actions.pod:1754
7563 msgid "\"sparc64\""
7564 msgstr ""
7565
7566 #. type: textblock
7567 #: ../fish/guestfish-actions.pod:1117 ../src/guestfs-actions.pod:1756
7568 msgid "64 bit SPARC V9 and above."
7569 msgstr ""
7570
7571 #. type: =item
7572 #: ../fish/guestfish-actions.pod:1119 ../src/guestfs-actions.pod:1758
7573 msgid "\"ia64\""
7574 msgstr ""
7575
7576 #. type: textblock
7577 #: ../fish/guestfish-actions.pod:1121 ../src/guestfs-actions.pod:1760
7578 msgid "Intel Itanium."
7579 msgstr ""
7580
7581 #. type: =item
7582 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1762
7583 msgid "\"ppc\""
7584 msgstr ""
7585
7586 #. type: textblock
7587 #: ../fish/guestfish-actions.pod:1125 ../src/guestfs-actions.pod:1764
7588 msgid "32 bit Power PC."
7589 msgstr ""
7590
7591 #. type: =item
7592 #: ../fish/guestfish-actions.pod:1127 ../src/guestfs-actions.pod:1766
7593 msgid "\"ppc64\""
7594 msgstr ""
7595
7596 #. type: textblock
7597 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1768
7598 msgid "64 bit Power PC."
7599 msgstr ""
7600
7601 #. type: textblock
7602 #: ../fish/guestfish-actions.pod:1133 ../src/guestfs-actions.pod:1772
7603 msgid "Libguestfs may return other architecture strings in future."
7604 msgstr ""
7605
7606 #. type: textblock
7607 #: ../fish/guestfish-actions.pod:1135 ../src/guestfs-actions.pod:1774
7608 msgid "The function works on at least the following types of files:"
7609 msgstr ""
7610
7611 #. type: textblock
7612 #: ../fish/guestfish-actions.pod:1141 ../src/guestfs-actions.pod:1780
7613 msgid "many types of Un*x and Linux binary"
7614 msgstr ""
7615
7616 #. type: textblock
7617 #: ../fish/guestfish-actions.pod:1145 ../src/guestfs-actions.pod:1784
7618 msgid "many types of Un*x and Linux shared library"
7619 msgstr ""
7620
7621 #. type: textblock
7622 #: ../fish/guestfish-actions.pod:1149 ../src/guestfs-actions.pod:1788
7623 msgid "Windows Win32 and Win64 binaries"
7624 msgstr ""
7625
7626 #. type: textblock
7627 #: ../fish/guestfish-actions.pod:1153 ../src/guestfs-actions.pod:1792
7628 msgid "Windows Win32 and Win64 DLLs"
7629 msgstr ""
7630
7631 #. type: textblock
7632 #: ../fish/guestfish-actions.pod:1155 ../src/guestfs-actions.pod:1794
7633 msgid "Win32 binaries and DLLs return C<i386>."
7634 msgstr ""
7635
7636 #. type: textblock
7637 #: ../fish/guestfish-actions.pod:1157 ../src/guestfs-actions.pod:1796
7638 msgid "Win64 binaries and DLLs return C<x86_64>."
7639 msgstr ""
7640
7641 #. type: textblock
7642 #: ../fish/guestfish-actions.pod:1161 ../src/guestfs-actions.pod:1800
7643 msgid "Linux kernel modules"
7644 msgstr ""
7645
7646 #. type: textblock
7647 #: ../fish/guestfish-actions.pod:1165 ../src/guestfs-actions.pod:1804
7648 msgid "Linux new-style initrd images"
7649 msgstr ""
7650
7651 #. type: textblock
7652 #: ../fish/guestfish-actions.pod:1169 ../src/guestfs-actions.pod:1808
7653 msgid "some non-x86 Linux vmlinuz kernels"
7654 msgstr ""
7655
7656 #. type: textblock
7657 #: ../fish/guestfish-actions.pod:1173 ../src/guestfs-actions.pod:1812
7658 msgid "What it can't do currently:"
7659 msgstr ""
7660
7661 #. type: textblock
7662 #: ../fish/guestfish-actions.pod:1179 ../src/guestfs-actions.pod:1818
7663 msgid "static libraries (libfoo.a)"
7664 msgstr ""
7665
7666 #. type: textblock
7667 #: ../fish/guestfish-actions.pod:1183 ../src/guestfs-actions.pod:1822
7668 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
7669 msgstr ""
7670
7671 #. type: textblock
7672 #: ../fish/guestfish-actions.pod:1187 ../src/guestfs-actions.pod:1826
7673 msgid "x86 Linux vmlinuz kernels"
7674 msgstr ""
7675
7676 #. type: textblock
7677 #: ../fish/guestfish-actions.pod:1189 ../src/guestfs-actions.pod:1828
7678 msgid ""
7679 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
7680 "compressed code, and are horribly hard to unpack.  If you want to find the "
7681 "architecture of a kernel, use the architecture of the associated initrd or "
7682 "kernel module(s) instead."
7683 msgstr ""
7684
7685 #. type: =head2
7686 #: ../fish/guestfish-actions.pod:1196
7687 msgid "filesize"
7688 msgstr ""
7689
7690 #. type: verbatim
7691 #: ../fish/guestfish-actions.pod:1198
7692 #, no-wrap
7693 msgid ""
7694 " filesize file\n"
7695 "\n"
7696 msgstr ""
7697
7698 #. type: textblock
7699 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:1846
7700 msgid "This command returns the size of C<file> in bytes."
7701 msgstr ""
7702
7703 #. type: textblock
7704 #: ../fish/guestfish-actions.pod:1202
7705 msgid ""
7706 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, "
7707 "L</is-file> etc.  To get the size of block devices, use "
7708 "L</blockdev-getsize64>."
7709 msgstr ""
7710
7711 #. type: =head2
7712 #: ../fish/guestfish-actions.pod:1206
7713 msgid "fill"
7714 msgstr ""
7715
7716 #. type: verbatim
7717 #: ../fish/guestfish-actions.pod:1208
7718 #, no-wrap
7719 msgid ""
7720 " fill c len path\n"
7721 "\n"
7722 msgstr ""
7723
7724 #. type: textblock
7725 #: ../fish/guestfish-actions.pod:1210 ../src/guestfs-actions.pod:1864
7726 msgid ""
7727 "This command creates a new file called C<path>.  The initial content of the "
7728 "file is C<len> octets of C<c>, where C<c> must be a number in the range "
7729 "C<[0..255]>."
7730 msgstr ""
7731
7732 #. type: textblock
7733 #: ../fish/guestfish-actions.pod:1214
7734 msgid ""
7735 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
7736 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
7737 "L</fill-pattern>."
7738 msgstr ""
7739
7740 #. type: =head2
7741 #: ../fish/guestfish-actions.pod:1219
7742 msgid "fill-pattern"
7743 msgstr ""
7744
7745 #. type: verbatim
7746 #: ../fish/guestfish-actions.pod:1221
7747 #, no-wrap
7748 msgid ""
7749 " fill-pattern pattern len path\n"
7750 "\n"
7751 msgstr ""
7752
7753 #. type: textblock
7754 #: ../fish/guestfish-actions.pod:1223
7755 msgid ""
7756 "This function is like L</fill> except that it creates a new file of length "
7757 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
7758 "is truncated if necessary to ensure the length of the file is exactly C<len> "
7759 "bytes."
7760 msgstr ""
7761
7762 #. type: =head2
7763 #: ../fish/guestfish-actions.pod:1228
7764 msgid "find"
7765 msgstr ""
7766
7767 #. type: verbatim
7768 #: ../fish/guestfish-actions.pod:1230
7769 #, no-wrap
7770 msgid ""
7771 " find directory\n"
7772 "\n"
7773 msgstr ""
7774
7775 #. type: textblock
7776 #: ../fish/guestfish-actions.pod:1232 ../src/guestfs-actions.pod:1910
7777 msgid ""
7778 "This command lists out all files and directories, recursively, starting at "
7779 "C<directory>.  It is essentially equivalent to running the shell command "
7780 "C<find directory -print> but some post-processing happens on the output, "
7781 "described below."
7782 msgstr ""
7783
7784 #. type: textblock
7785 #: ../fish/guestfish-actions.pod:1237 ../src/guestfs-actions.pod:1915
7786 msgid ""
7787 "This returns a list of strings I<without any prefix>.  Thus if the directory "
7788 "structure was:"
7789 msgstr ""
7790
7791 #. type: verbatim
7792 #: ../fish/guestfish-actions.pod:1240 ../src/guestfs-actions.pod:1918
7793 #, no-wrap
7794 msgid ""
7795 " /tmp/a\n"
7796 " /tmp/b\n"
7797 " /tmp/c/d\n"
7798 "\n"
7799 msgstr ""
7800
7801 #. type: textblock
7802 #: ../fish/guestfish-actions.pod:1244
7803 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
7804 msgstr ""
7805
7806 #. type: verbatim
7807 #: ../fish/guestfish-actions.pod:1247 ../src/guestfs-actions.pod:1925
7808 #, no-wrap
7809 msgid ""
7810 " a\n"
7811 " b\n"
7812 " c\n"
7813 " c/d\n"
7814 "\n"
7815 msgstr ""
7816
7817 #. type: textblock
7818 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:1930
7819 msgid "If C<directory> is not a directory, then this command returns an error."
7820 msgstr ""
7821
7822 #. type: textblock
7823 #: ../fish/guestfish-actions.pod:1255 ../src/guestfs-actions.pod:1933
7824 msgid "The returned list is sorted."
7825 msgstr ""
7826
7827 #. type: textblock
7828 #: ../fish/guestfish-actions.pod:1257
7829 msgid "See also L</find0>."
7830 msgstr ""
7831
7832 #. type: =head2
7833 #: ../fish/guestfish-actions.pod:1262
7834 msgid "find0"
7835 msgstr ""
7836
7837 #. type: verbatim
7838 #: ../fish/guestfish-actions.pod:1264
7839 #, no-wrap
7840 msgid ""
7841 " find0 directory (files|-)\n"
7842 "\n"
7843 msgstr ""
7844
7845 #. type: textblock
7846 #: ../fish/guestfish-actions.pod:1266 ../src/guestfs-actions.pod:1953
7847 msgid ""
7848 "This command lists out all files and directories, recursively, starting at "
7849 "C<directory>, placing the resulting list in the external file called "
7850 "C<files>."
7851 msgstr ""
7852
7853 #. type: textblock
7854 #: ../fish/guestfish-actions.pod:1270
7855 msgid "This command works the same way as L</find> with the following exceptions:"
7856 msgstr ""
7857
7858 #. type: textblock
7859 #: ../fish/guestfish-actions.pod:1277 ../src/guestfs-actions.pod:1964
7860 msgid "The resulting list is written to an external file."
7861 msgstr ""
7862
7863 #. type: textblock
7864 #: ../fish/guestfish-actions.pod:1281 ../src/guestfs-actions.pod:1968
7865 msgid ""
7866 "Items (filenames) in the result are separated by C<\\0> characters.  See "
7867 "L<find(1)> option I<-print0>."
7868 msgstr ""
7869
7870 #. type: textblock
7871 #: ../fish/guestfish-actions.pod:1286 ../src/guestfs-actions.pod:1973
7872 msgid "This command is not limited in the number of names that it can return."
7873 msgstr ""
7874
7875 #. type: textblock
7876 #: ../fish/guestfish-actions.pod:1291 ../src/guestfs-actions.pod:1978
7877 msgid "The result list is not sorted."
7878 msgstr ""
7879
7880 #. type: =head2
7881 #: ../fish/guestfish-actions.pod:1297
7882 msgid "findfs-label"
7883 msgstr ""
7884
7885 #. type: verbatim
7886 #: ../fish/guestfish-actions.pod:1299
7887 #, no-wrap
7888 msgid ""
7889 " findfs-label label\n"
7890 "\n"
7891 msgstr ""
7892
7893 #. type: textblock
7894 #: ../fish/guestfish-actions.pod:1301 ../src/guestfs-actions.pod:1992
7895 msgid ""
7896 "This command searches the filesystems and returns the one which has the "
7897 "given label.  An error is returned if no such filesystem can be found."
7898 msgstr ""
7899
7900 #. type: textblock
7901 #: ../fish/guestfish-actions.pod:1305
7902 msgid "To find the label of a filesystem, use L</vfs-label>."
7903 msgstr ""
7904
7905 #. type: =head2
7906 #: ../fish/guestfish-actions.pod:1307
7907 msgid "findfs-uuid"
7908 msgstr ""
7909
7910 #. type: verbatim
7911 #: ../fish/guestfish-actions.pod:1309
7912 #, no-wrap
7913 msgid ""
7914 " findfs-uuid uuid\n"
7915 "\n"
7916 msgstr ""
7917
7918 #. type: textblock
7919 #: ../fish/guestfish-actions.pod:1311 ../src/guestfs-actions.pod:2009
7920 msgid ""
7921 "This command searches the filesystems and returns the one which has the "
7922 "given UUID.  An error is returned if no such filesystem can be found."
7923 msgstr ""
7924
7925 #. type: textblock
7926 #: ../fish/guestfish-actions.pod:1315
7927 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
7928 msgstr ""
7929
7930 #. type: =head2
7931 #: ../fish/guestfish-actions.pod:1317
7932 msgid "fsck"
7933 msgstr ""
7934
7935 #. type: verbatim
7936 #: ../fish/guestfish-actions.pod:1319
7937 #, no-wrap
7938 msgid ""
7939 " fsck fstype device\n"
7940 "\n"
7941 msgstr ""
7942
7943 #. type: textblock
7944 #: ../fish/guestfish-actions.pod:1321 ../src/guestfs-actions.pod:2027
7945 msgid ""
7946 "This runs the filesystem checker (fsck) on C<device> which should have "
7947 "filesystem type C<fstype>."
7948 msgstr ""
7949
7950 #. type: textblock
7951 #: ../fish/guestfish-actions.pod:1324 ../src/guestfs-actions.pod:2030
7952 msgid ""
7953 "The returned integer is the status.  See L<fsck(8)> for the list of status "
7954 "codes from C<fsck>."
7955 msgstr ""
7956
7957 #. type: textblock
7958 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:2039
7959 msgid "Multiple status codes can be summed together."
7960 msgstr ""
7961
7962 #. type: textblock
7963 #: ../fish/guestfish-actions.pod:1337 ../src/guestfs-actions.pod:2043
7964 msgid ""
7965 "A non-zero return code can mean \"success\", for example if errors have been "
7966 "corrected on the filesystem."
7967 msgstr ""
7968
7969 #. type: textblock
7970 #: ../fish/guestfish-actions.pod:1342 ../src/guestfs-actions.pod:2048
7971 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7972 msgstr ""
7973
7974 #. type: textblock
7975 #: ../fish/guestfish-actions.pod:1347 ../src/guestfs-actions.pod:2053
7976 msgid "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7977 msgstr ""
7978
7979 #. type: =head2
7980 #: ../fish/guestfish-actions.pod:1349
7981 msgid "get-append"
7982 msgstr ""
7983
7984 #. type: verbatim
7985 #: ../fish/guestfish-actions.pod:1351
7986 #, no-wrap
7987 msgid ""
7988 " get-append\n"
7989 "\n"
7990 msgstr ""
7991
7992 #. type: textblock
7993 #: ../fish/guestfish-actions.pod:1353 ../src/guestfs-actions.pod:2064
7994 msgid ""
7995 "Return the additional kernel options which are added to the guest kernel "
7996 "command line."
7997 msgstr ""
7998
7999 #. type: textblock
8000 #: ../fish/guestfish-actions.pod:1356 ../src/guestfs-actions.pod:2067
8001 msgid "If C<NULL> then no options are added."
8002 msgstr ""
8003
8004 #. type: =head2
8005 #: ../fish/guestfish-actions.pod:1358
8006 msgid "get-attach-method"
8007 msgstr ""
8008
8009 #. type: verbatim
8010 #: ../fish/guestfish-actions.pod:1360
8011 #, no-wrap
8012 msgid ""
8013 " get-attach-method\n"
8014 "\n"
8015 msgstr ""
8016
8017 #. type: textblock
8018 #: ../fish/guestfish-actions.pod:1362
8019 msgid "Return the current attach method.  See L</set-attach-method>."
8020 msgstr ""
8021
8022 #. type: =head2
8023 #: ../fish/guestfish-actions.pod:1364
8024 msgid "get-autosync"
8025 msgstr ""
8026
8027 #. type: verbatim
8028 #: ../fish/guestfish-actions.pod:1366
8029 #, no-wrap
8030 msgid ""
8031 " get-autosync\n"
8032 "\n"
8033 msgstr ""
8034
8035 #. type: textblock
8036 #: ../fish/guestfish-actions.pod:1368 ../src/guestfs-actions.pod:2092
8037 msgid "Get the autosync flag."
8038 msgstr ""
8039
8040 #. type: =head2
8041 #: ../fish/guestfish-actions.pod:1370
8042 msgid "get-direct"
8043 msgstr ""
8044
8045 #. type: verbatim
8046 #: ../fish/guestfish-actions.pod:1372
8047 #, no-wrap
8048 msgid ""
8049 " get-direct\n"
8050 "\n"
8051 msgstr ""
8052
8053 #. type: textblock
8054 #: ../fish/guestfish-actions.pod:1374 ../src/guestfs-actions.pod:2103
8055 msgid "Return the direct appliance mode flag."
8056 msgstr ""
8057
8058 #. type: =head2
8059 #: ../fish/guestfish-actions.pod:1376
8060 msgid "get-e2label"
8061 msgstr ""
8062
8063 #. type: verbatim
8064 #: ../fish/guestfish-actions.pod:1378
8065 #, no-wrap
8066 msgid ""
8067 " get-e2label device\n"
8068 "\n"
8069 msgstr ""
8070
8071 #. type: textblock
8072 #: ../fish/guestfish-actions.pod:1380 ../src/guestfs-actions.pod:2122
8073 msgid "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
8074 msgstr ""
8075
8076 #. type: textblock
8077 #: ../fish/guestfish-actions.pod:1383
8078 msgid ""
8079 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
8080 "instead."
8081 msgstr ""
8082
8083 #. type: =head2
8084 #: ../fish/guestfish-actions.pod:1390
8085 msgid "get-e2uuid"
8086 msgstr ""
8087
8088 #. type: verbatim
8089 #: ../fish/guestfish-actions.pod:1392
8090 #, no-wrap
8091 msgid ""
8092 " get-e2uuid device\n"
8093 "\n"
8094 msgstr ""
8095
8096 #. type: textblock
8097 #: ../fish/guestfish-actions.pod:1394 ../src/guestfs-actions.pod:2143
8098 msgid "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
8099 msgstr ""
8100
8101 #. type: textblock
8102 #: ../fish/guestfish-actions.pod:1397
8103 msgid ""
8104 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
8105 "instead."
8106 msgstr ""
8107
8108 #. type: =head2
8109 #: ../fish/guestfish-actions.pod:1404
8110 msgid "get-memsize"
8111 msgstr ""
8112
8113 #. type: verbatim
8114 #: ../fish/guestfish-actions.pod:1406
8115 #, no-wrap
8116 msgid ""
8117 " get-memsize\n"
8118 "\n"
8119 msgstr ""
8120
8121 #. type: textblock
8122 #: ../fish/guestfish-actions.pod:1408 ../src/guestfs-actions.pod:2156
8123 msgid "This gets the memory size in megabytes allocated to the qemu subprocess."
8124 msgstr ""
8125
8126 #. type: textblock
8127 #: ../fish/guestfish-actions.pod:1411
8128 msgid ""
8129 "If L</set-memsize> was not called on this handle, and if "
8130 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
8131 "value for memsize."
8132 msgstr ""
8133
8134 #. type: textblock
8135 #: ../fish/guestfish-actions.pod:1415 ../fish/guestfish-actions.pod:1472 ../fish/guestfish-actions.pod:4238 ../fish/guestfish-actions.pod:4340 ../src/guestfs-actions.pod:2163 ../src/guestfs-actions.pod:2255 ../src/guestfs-actions.pod:6449 ../src/guestfs-actions.pod:6575
8136 msgid "For more information on the architecture of libguestfs, see L<guestfs(3)>."
8137 msgstr ""
8138
8139 #. type: =head2
8140 #: ../fish/guestfish-actions.pod:1418
8141 msgid "get-network"
8142 msgstr ""
8143
8144 #. type: verbatim
8145 #: ../fish/guestfish-actions.pod:1420
8146 #, no-wrap
8147 msgid ""
8148 " get-network\n"
8149 "\n"
8150 msgstr ""
8151
8152 #. type: textblock
8153 #: ../fish/guestfish-actions.pod:1422 ../src/guestfs-actions.pod:2175
8154 msgid "This returns the enable network flag."
8155 msgstr ""
8156
8157 #. type: =head2
8158 #: ../fish/guestfish-actions.pod:1424
8159 msgid "get-path"
8160 msgstr ""
8161
8162 #. type: verbatim
8163 #: ../fish/guestfish-actions.pod:1426
8164 #, no-wrap
8165 msgid ""
8166 " get-path\n"
8167 "\n"
8168 msgstr ""
8169
8170 #. type: textblock
8171 #: ../fish/guestfish-actions.pod:1428 ../src/guestfs-actions.pod:2186
8172 msgid "Return the current search path."
8173 msgstr ""
8174
8175 #. type: textblock
8176 #: ../fish/guestfish-actions.pod:1430 ../src/guestfs-actions.pod:2188
8177 msgid ""
8178 "This is always non-NULL.  If it wasn't set already, then this will return "
8179 "the default path."
8180 msgstr ""
8181
8182 #. type: =head2
8183 #: ../fish/guestfish-actions.pod:1433
8184 msgid "get-pgroup"
8185 msgstr ""
8186
8187 #. type: verbatim
8188 #: ../fish/guestfish-actions.pod:1435
8189 #, no-wrap
8190 msgid ""
8191 " get-pgroup\n"
8192 "\n"
8193 msgstr ""
8194
8195 #. type: textblock
8196 #: ../fish/guestfish-actions.pod:1437 ../src/guestfs-actions.pod:2201
8197 msgid "This returns the process group flag."
8198 msgstr ""
8199
8200 #. type: =head2
8201 #: ../fish/guestfish-actions.pod:1439
8202 msgid "get-pid"
8203 msgstr ""
8204
8205 #. type: =head2
8206 #: ../fish/guestfish-actions.pod:1441
8207 msgid "pid"
8208 msgstr ""
8209
8210 #. type: verbatim
8211 #: ../fish/guestfish-actions.pod:1443
8212 #, no-wrap
8213 msgid ""
8214 " get-pid\n"
8215 "\n"
8216 msgstr ""
8217
8218 #. type: textblock
8219 #: ../fish/guestfish-actions.pod:1445 ../src/guestfs-actions.pod:2212
8220 msgid ""
8221 "Return the process ID of the qemu subprocess.  If there is no qemu "
8222 "subprocess, then this will return an error."
8223 msgstr ""
8224
8225 #. type: textblock
8226 #: ../fish/guestfish-actions.pod:1448 ../src/guestfs-actions.pod:2215
8227 msgid "This is an internal call used for debugging and testing."
8228 msgstr ""
8229
8230 #. type: =head2
8231 #: ../fish/guestfish-actions.pod:1450
8232 msgid "get-qemu"
8233 msgstr ""
8234
8235 #. type: verbatim
8236 #: ../fish/guestfish-actions.pod:1452
8237 #, no-wrap
8238 msgid ""
8239 " get-qemu\n"
8240 "\n"
8241 msgstr ""
8242
8243 #. type: textblock
8244 #: ../fish/guestfish-actions.pod:1454 ../src/guestfs-actions.pod:2226
8245 msgid "Return the current qemu binary."
8246 msgstr ""
8247
8248 #. type: textblock
8249 #: ../fish/guestfish-actions.pod:1456 ../src/guestfs-actions.pod:2228
8250 msgid ""
8251 "This is always non-NULL.  If it wasn't set already, then this will return "
8252 "the default qemu binary name."
8253 msgstr ""
8254
8255 #. type: =head2
8256 #: ../fish/guestfish-actions.pod:1459
8257 msgid "get-recovery-proc"
8258 msgstr ""
8259
8260 #. type: verbatim
8261 #: ../fish/guestfish-actions.pod:1461
8262 #, no-wrap
8263 msgid ""
8264 " get-recovery-proc\n"
8265 "\n"
8266 msgstr ""
8267
8268 #. type: textblock
8269 #: ../fish/guestfish-actions.pod:1463 ../src/guestfs-actions.pod:2241
8270 msgid "Return the recovery process enabled flag."
8271 msgstr ""
8272
8273 #. type: =head2
8274 #: ../fish/guestfish-actions.pod:1465
8275 msgid "get-selinux"
8276 msgstr ""
8277
8278 #. type: verbatim
8279 #: ../fish/guestfish-actions.pod:1467
8280 #, no-wrap
8281 msgid ""
8282 " get-selinux\n"
8283 "\n"
8284 msgstr ""
8285
8286 #. type: textblock
8287 #: ../fish/guestfish-actions.pod:1469
8288 msgid ""
8289 "This returns the current setting of the selinux flag which is passed to the "
8290 "appliance at boot time.  See L</set-selinux>."
8291 msgstr ""
8292
8293 #. type: =head2
8294 #: ../fish/guestfish-actions.pod:1475
8295 msgid "get-smp"
8296 msgstr ""
8297
8298 #. type: verbatim
8299 #: ../fish/guestfish-actions.pod:1477
8300 #, no-wrap
8301 msgid ""
8302 " get-smp\n"
8303 "\n"
8304 msgstr ""
8305
8306 #. type: textblock
8307 #: ../fish/guestfish-actions.pod:1479 ../src/guestfs-actions.pod:2267
8308 msgid "This returns the number of virtual CPUs assigned to the appliance."
8309 msgstr ""
8310
8311 #. type: =head2
8312 #: ../fish/guestfish-actions.pod:1481
8313 msgid "get-state"
8314 msgstr ""
8315
8316 #. type: verbatim
8317 #: ../fish/guestfish-actions.pod:1483
8318 #, no-wrap
8319 msgid ""
8320 " get-state\n"
8321 "\n"
8322 msgstr ""
8323
8324 #. type: textblock
8325 #: ../fish/guestfish-actions.pod:1485 ../src/guestfs-actions.pod:2278
8326 msgid ""
8327 "This returns the current state as an opaque integer.  This is only useful "
8328 "for printing debug and internal error messages."
8329 msgstr ""
8330
8331 #. type: textblock
8332 #: ../fish/guestfish-actions.pod:1488 ../fish/guestfish-actions.pod:2447 ../fish/guestfish-actions.pod:2465 ../fish/guestfish-actions.pod:2503 ../fish/guestfish-actions.pod:2519 ../src/guestfs-actions.pod:2281 ../src/guestfs-actions.pod:3600 ../src/guestfs-actions.pod:3629 ../src/guestfs-actions.pod:3690 ../src/guestfs-actions.pod:3717
8333 msgid "For more information on states, see L<guestfs(3)>."
8334 msgstr ""
8335
8336 #. type: =head2
8337 #: ../fish/guestfish-actions.pod:1490
8338 msgid "get-trace"
8339 msgstr ""
8340
8341 #. type: verbatim
8342 #: ../fish/guestfish-actions.pod:1492
8343 #, no-wrap
8344 msgid ""
8345 " get-trace\n"
8346 "\n"
8347 msgstr ""
8348
8349 #. type: textblock
8350 #: ../fish/guestfish-actions.pod:1494 ../src/guestfs-actions.pod:2292
8351 msgid "Return the command trace flag."
8352 msgstr ""
8353
8354 #. type: =head2
8355 #: ../fish/guestfish-actions.pod:1496
8356 msgid "get-umask"
8357 msgstr ""
8358
8359 #. type: verbatim
8360 #: ../fish/guestfish-actions.pod:1498
8361 #, no-wrap
8362 msgid ""
8363 " get-umask\n"
8364 "\n"
8365 msgstr ""
8366
8367 #. type: textblock
8368 #: ../fish/guestfish-actions.pod:1500
8369 msgid ""
8370 "Return the current umask.  By default the umask is C<022> unless it has been "
8371 "set by calling L</umask>."
8372 msgstr ""
8373
8374 #. type: =head2
8375 #: ../fish/guestfish-actions.pod:1503
8376 msgid "get-verbose"
8377 msgstr ""
8378
8379 #. type: verbatim
8380 #: ../fish/guestfish-actions.pod:1505
8381 #, no-wrap
8382 msgid ""
8383 " get-verbose\n"
8384 "\n"
8385 msgstr ""
8386
8387 #. type: textblock
8388 #: ../fish/guestfish-actions.pod:1507 ../src/guestfs-actions.pod:2315
8389 msgid "This returns the verbose messages flag."
8390 msgstr ""
8391
8392 #. type: =head2
8393 #: ../fish/guestfish-actions.pod:1509
8394 msgid "getcon"
8395 msgstr ""
8396
8397 #. type: verbatim
8398 #: ../fish/guestfish-actions.pod:1511
8399 #, no-wrap
8400 msgid ""
8401 " getcon\n"
8402 "\n"
8403 msgstr ""
8404
8405 #. type: textblock
8406 #: ../fish/guestfish-actions.pod:1513 ../src/guestfs-actions.pod:2326
8407 msgid "This gets the SELinux security context of the daemon."
8408 msgstr ""
8409
8410 #. type: textblock
8411 #: ../fish/guestfish-actions.pod:1515
8412 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
8413 msgstr ""
8414
8415 #. type: =head2
8416 #: ../fish/guestfish-actions.pod:1518
8417 msgid "getxattr"
8418 msgstr ""
8419
8420 #. type: verbatim
8421 #: ../fish/guestfish-actions.pod:1520
8422 #, no-wrap
8423 msgid ""
8424 " getxattr path name\n"
8425 "\n"
8426 msgstr ""
8427
8428 #. type: textblock
8429 #: ../fish/guestfish-actions.pod:1522
8430 msgid ""
8431 "Get a single extended attribute from file C<path> named C<name>.  This call "
8432 "follows symlinks.  If you want to lookup an extended attribute for the "
8433 "symlink itself, use L</lgetxattr>."
8434 msgstr ""
8435
8436 #. type: textblock
8437 #: ../fish/guestfish-actions.pod:1526 ../fish/guestfish-actions.pod:2592
8438 msgid ""
8439 "Normally it is better to get all extended attributes from a file in one go "
8440 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
8441 "buggy and do not provide a way to list out attributes.  For these "
8442 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
8443 "attributes you want in advance and call this function."
8444 msgstr ""
8445
8446 #. type: textblock
8447 #: ../fish/guestfish-actions.pod:1533 ../fish/guestfish-actions.pod:2599 ../src/guestfs-actions.pod:2355 ../src/guestfs-actions.pod:3850
8448 msgid ""
8449 "Extended attribute values are blobs of binary data.  If there is no extended "
8450 "attribute named C<name>, this returns an error."
8451 msgstr ""
8452
8453 #. type: textblock
8454 #: ../fish/guestfish-actions.pod:1536
8455 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
8456 msgstr ""
8457
8458 #. type: =head2
8459 #: ../fish/guestfish-actions.pod:1538
8460 msgid "getxattrs"
8461 msgstr ""
8462
8463 #. type: verbatim
8464 #: ../fish/guestfish-actions.pod:1540
8465 #, no-wrap
8466 msgid ""
8467 " getxattrs path\n"
8468 "\n"
8469 msgstr ""
8470
8471 #. type: textblock
8472 #: ../fish/guestfish-actions.pod:1542 ../src/guestfs-actions.pod:2372
8473 msgid "This call lists the extended attributes of the file or directory C<path>."
8474 msgstr ""
8475
8476 #. type: textblock
8477 #: ../fish/guestfish-actions.pod:1545 ../src/guestfs-actions.pod:2375
8478 msgid ""
8479 "At the system call level, this is a combination of the L<listxattr(2)> and "
8480 "L<getxattr(2)> calls."
8481 msgstr ""
8482
8483 #. type: textblock
8484 #: ../fish/guestfish-actions.pod:1548
8485 msgid "See also: L</lgetxattrs>, L<attr(5)>."
8486 msgstr ""
8487
8488 #. type: =head2
8489 #: ../fish/guestfish-actions.pod:1550
8490 msgid "glob-expand"
8491 msgstr ""
8492
8493 #. type: verbatim
8494 #: ../fish/guestfish-actions.pod:1552
8495 #, no-wrap
8496 msgid ""
8497 " glob-expand pattern\n"
8498 "\n"
8499 msgstr ""
8500
8501 #. type: textblock
8502 #: ../fish/guestfish-actions.pod:1554 ../src/guestfs-actions.pod:2392
8503 msgid ""
8504 "This command searches for all the pathnames matching C<pattern> according to "
8505 "the wildcard expansion rules used by the shell."
8506 msgstr ""
8507
8508 #. type: textblock
8509 #: ../fish/guestfish-actions.pod:1558 ../src/guestfs-actions.pod:2396
8510 msgid "If no paths match, then this returns an empty list (note: not an error)."
8511 msgstr ""
8512
8513 #. type: textblock
8514 #: ../fish/guestfish-actions.pod:1561 ../src/guestfs-actions.pod:2399
8515 msgid ""
8516 "It is just a wrapper around the C L<glob(3)> function with flags "
8517 "C<GLOB_MARK|GLOB_BRACE>.  See that manual page for more details."
8518 msgstr ""
8519
8520 #. type: =head2
8521 #: ../fish/guestfish-actions.pod:1565
8522 msgid "grep"
8523 msgstr ""
8524
8525 #. type: verbatim
8526 #: ../fish/guestfish-actions.pod:1567
8527 #, no-wrap
8528 msgid ""
8529 " grep regex path\n"
8530 "\n"
8531 msgstr ""
8532
8533 #. type: textblock
8534 #: ../fish/guestfish-actions.pod:1569 ../src/guestfs-actions.pod:2416
8535 msgid "This calls the external C<grep> program and returns the matching lines."
8536 msgstr ""
8537
8538 #. type: =head2
8539 #: ../fish/guestfish-actions.pod:1575
8540 msgid "grepi"
8541 msgstr ""
8542
8543 #. type: verbatim
8544 #: ../fish/guestfish-actions.pod:1577
8545 #, no-wrap
8546 msgid ""
8547 " grepi regex path\n"
8548 "\n"
8549 msgstr ""
8550
8551 #. type: textblock
8552 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2435
8553 msgid "This calls the external C<grep -i> program and returns the matching lines."
8554 msgstr ""
8555
8556 #. type: =head2
8557 #: ../fish/guestfish-actions.pod:1585
8558 msgid "grub-install"
8559 msgstr ""
8560
8561 #. type: verbatim
8562 #: ../fish/guestfish-actions.pod:1587
8563 #, no-wrap
8564 msgid ""
8565 " grub-install root device\n"
8566 "\n"
8567 msgstr ""
8568
8569 #. type: textblock
8570 #: ../fish/guestfish-actions.pod:1589 ../src/guestfs-actions.pod:2454
8571 msgid ""
8572 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
8573 "with the root directory being C<root>."
8574 msgstr ""
8575
8576 #. type: textblock
8577 #: ../fish/guestfish-actions.pod:1598 ../src/guestfs-actions.pod:2463
8578 msgid ""
8579 "There is currently no way in the API to install grub2, which is used by most "
8580 "modern Linux guests.  It is possible to run the grub2 command from the "
8581 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
8582 msgstr ""
8583
8584 #. type: textblock
8585 #: ../fish/guestfish-actions.pod:1605 ../src/guestfs-actions.pod:2470
8586 msgid ""
8587 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
8588 "compatible with itself, so this only works in rather narrow circumstances.  "
8589 "Careful testing with each guest version is advisable."
8590 msgstr ""
8591
8592 #. type: textblock
8593 #: ../fish/guestfish-actions.pod:1612 ../src/guestfs-actions.pod:2477
8594 msgid ""
8595 "If grub-install reports the error \"No suitable drive was found in the "
8596 "generated device map.\" it may be that you need to create a "
8597 "C</boot/grub/device.map> file first that contains the mapping between grub "
8598 "device names and Linux device names.  It is usually sufficient to create a "
8599 "file containing:"
8600 msgstr ""
8601
8602 #. type: verbatim
8603 #: ../fish/guestfish-actions.pod:1619 ../src/guestfs-actions.pod:2484
8604 #, no-wrap
8605 msgid ""
8606 " (hd0) /dev/vda\n"
8607 "\n"
8608 msgstr ""
8609
8610 #. type: textblock
8611 #: ../fish/guestfish-actions.pod:1621 ../src/guestfs-actions.pod:2486
8612 msgid "replacing C</dev/vda> with the name of the installation device."
8613 msgstr ""
8614
8615 #. type: =head2
8616 #: ../fish/guestfish-actions.pod:1625
8617 msgid "head"
8618 msgstr ""
8619
8620 #. type: verbatim
8621 #: ../fish/guestfish-actions.pod:1627
8622 #, no-wrap
8623 msgid ""
8624 " head path\n"
8625 "\n"
8626 msgstr ""
8627
8628 #. type: textblock
8629 #: ../fish/guestfish-actions.pod:1629 ../src/guestfs-actions.pod:2500
8630 msgid ""
8631 "This command returns up to the first 10 lines of a file as a list of "
8632 "strings."
8633 msgstr ""
8634
8635 #. type: =head2
8636 #: ../fish/guestfish-actions.pod:1635
8637 msgid "head-n"
8638 msgstr ""
8639
8640 #. type: verbatim
8641 #: ../fish/guestfish-actions.pod:1637
8642 #, no-wrap
8643 msgid ""
8644 " head-n nrlines path\n"
8645 "\n"
8646 msgstr ""
8647
8648 #. type: textblock
8649 #: ../fish/guestfish-actions.pod:1639 ../src/guestfs-actions.pod:2519
8650 msgid ""
8651 "If the parameter C<nrlines> is a positive number, this returns the first "
8652 "C<nrlines> lines of the file C<path>."
8653 msgstr ""
8654
8655 #. type: textblock
8656 #: ../fish/guestfish-actions.pod:1642 ../src/guestfs-actions.pod:2522
8657 msgid ""
8658 "If the parameter C<nrlines> is a negative number, this returns lines from "
8659 "the file C<path>, excluding the last C<nrlines> lines."
8660 msgstr ""
8661
8662 #. type: textblock
8663 #: ../fish/guestfish-actions.pod:1645 ../fish/guestfish-actions.pod:4730 ../src/guestfs-actions.pod:2525 ../src/guestfs-actions.pod:7163
8664 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
8665 msgstr ""
8666
8667 #. type: =head2
8668 #: ../fish/guestfish-actions.pod:1650
8669 msgid "hexdump"
8670 msgstr ""
8671
8672 #. type: verbatim
8673 #: ../fish/guestfish-actions.pod:1652
8674 #, no-wrap
8675 msgid ""
8676 " hexdump path\n"
8677 "\n"
8678 msgstr ""
8679
8680 #. type: textblock
8681 #: ../fish/guestfish-actions.pod:1654 ../src/guestfs-actions.pod:2542
8682 msgid ""
8683 "This runs C<hexdump -C> on the given C<path>.  The result is the "
8684 "human-readable, canonical hex dump of the file."
8685 msgstr ""
8686
8687 #. type: =head2
8688 #: ../fish/guestfish-actions.pod:1660
8689 msgid "initrd-cat"
8690 msgstr ""
8691
8692 #. type: verbatim
8693 #: ../fish/guestfish-actions.pod:1662
8694 #, no-wrap
8695 msgid ""
8696 " initrd-cat initrdpath filename\n"
8697 "\n"
8698 msgstr ""
8699
8700 #. type: textblock
8701 #: ../fish/guestfish-actions.pod:1664 ../src/guestfs-actions.pod:2561
8702 msgid ""
8703 "This command unpacks the file C<filename> from the initrd file called "
8704 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
8705 "character."
8706 msgstr ""
8707
8708 #. type: textblock
8709 #: ../fish/guestfish-actions.pod:1668 ../src/guestfs-actions.pod:2565
8710 msgid ""
8711 "For example, in guestfish you could use the following command to examine the "
8712 "boot script (usually called C</init>)  contained in a Linux initrd or "
8713 "initramfs image:"
8714 msgstr ""
8715
8716 #. type: verbatim
8717 #: ../fish/guestfish-actions.pod:1672 ../src/guestfs-actions.pod:2569
8718 #, no-wrap
8719 msgid ""
8720 " initrd-cat /boot/initrd-<version>.img init\n"
8721 "\n"
8722 msgstr ""
8723
8724 #. type: textblock
8725 #: ../fish/guestfish-actions.pod:1674
8726 msgid "See also L</initrd-list>."
8727 msgstr ""
8728
8729 #. type: =head2
8730 #: ../fish/guestfish-actions.pod:1679
8731 msgid "initrd-list"
8732 msgstr ""
8733
8734 #. type: verbatim
8735 #: ../fish/guestfish-actions.pod:1681
8736 #, no-wrap
8737 msgid ""
8738 " initrd-list path\n"
8739 "\n"
8740 msgstr ""
8741
8742 #. type: textblock
8743 #: ../fish/guestfish-actions.pod:1683 ../src/guestfs-actions.pod:2588
8744 msgid "This command lists out files contained in an initrd."
8745 msgstr ""
8746
8747 #. type: textblock
8748 #: ../fish/guestfish-actions.pod:1685 ../src/guestfs-actions.pod:2590
8749 msgid ""
8750 "The files are listed without any initial C</> character.  The files are "
8751 "listed in the order they appear (not necessarily alphabetical).  Directory "
8752 "names are listed as separate items."
8753 msgstr ""
8754
8755 #. type: textblock
8756 #: ../fish/guestfish-actions.pod:1689 ../src/guestfs-actions.pod:2594
8757 msgid ""
8758 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8759 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
8760 "files)."
8761 msgstr ""
8762
8763 #. type: =head2
8764 #: ../fish/guestfish-actions.pod:1693
8765 msgid "inotify-add-watch"
8766 msgstr ""
8767
8768 #. type: verbatim
8769 #: ../fish/guestfish-actions.pod:1695
8770 #, no-wrap
8771 msgid ""
8772 " inotify-add-watch path mask\n"
8773 "\n"
8774 msgstr ""
8775
8776 #. type: textblock
8777 #: ../fish/guestfish-actions.pod:1697 ../src/guestfs-actions.pod:2611
8778 msgid "Watch C<path> for the events listed in C<mask>."
8779 msgstr ""
8780
8781 #. type: textblock
8782 #: ../fish/guestfish-actions.pod:1699 ../src/guestfs-actions.pod:2613
8783 msgid ""
8784 "Note that if C<path> is a directory then events within that directory are "
8785 "watched, but this does I<not> happen recursively (in subdirectories)."
8786 msgstr ""
8787
8788 #. type: textblock
8789 #: ../fish/guestfish-actions.pod:1703 ../src/guestfs-actions.pod:2617
8790 msgid ""
8791 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8792 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8793 msgstr ""
8794
8795 #. type: =head2
8796 #: ../fish/guestfish-actions.pod:1707
8797 msgid "inotify-close"
8798 msgstr ""
8799
8800 #. type: verbatim
8801 #: ../fish/guestfish-actions.pod:1709
8802 #, no-wrap
8803 msgid ""
8804 " inotify-close\n"
8805 "\n"
8806 msgstr ""
8807
8808 #. type: textblock
8809 #: ../fish/guestfish-actions.pod:1711 ../src/guestfs-actions.pod:2630
8810 msgid ""
8811 "This closes the inotify handle which was previously opened by inotify_init.  "
8812 "It removes all watches, throws away any pending events, and deallocates all "
8813 "resources."
8814 msgstr ""
8815
8816 #. type: =head2
8817 #: ../fish/guestfish-actions.pod:1715
8818 msgid "inotify-files"
8819 msgstr ""
8820
8821 #. type: verbatim
8822 #: ../fish/guestfish-actions.pod:1717
8823 #, no-wrap
8824 msgid ""
8825 " inotify-files\n"
8826 "\n"
8827 msgstr ""
8828
8829 #. type: textblock
8830 #: ../fish/guestfish-actions.pod:1719
8831 msgid ""
8832 "This function is a helpful wrapper around L</inotify-read> which just "
8833 "returns a list of pathnames of objects that were touched.  The returned "
8834 "pathnames are sorted and deduplicated."
8835 msgstr ""
8836
8837 #. type: =head2
8838 #: ../fish/guestfish-actions.pod:1723
8839 msgid "inotify-init"
8840 msgstr ""
8841
8842 #. type: verbatim
8843 #: ../fish/guestfish-actions.pod:1725
8844 #, no-wrap
8845 msgid ""
8846 " inotify-init maxevents\n"
8847 "\n"
8848 msgstr ""
8849
8850 #. type: textblock
8851 #: ../fish/guestfish-actions.pod:1727 ../src/guestfs-actions.pod:2659
8852 msgid ""
8853 "This command creates a new inotify handle.  The inotify subsystem can be "
8854 "used to notify events which happen to objects in the guest filesystem."
8855 msgstr ""
8856
8857 #. type: textblock
8858 #: ../fish/guestfish-actions.pod:1731
8859 msgid ""
8860 "C<maxevents> is the maximum number of events which will be queued up between "
8861 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
8862 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
8863 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
8864 "but records the fact that it threw them away by setting a flag "
8865 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
8866 msgstr ""
8867
8868 #. type: textblock
8869 #: ../fish/guestfish-actions.pod:1741
8870 msgid ""
8871 "Before any events are generated, you have to add some watches to the "
8872 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
8873 "L</inotify-watch-all>."
8874 msgstr ""
8875
8876 #. type: textblock
8877 #: ../fish/guestfish-actions.pod:1747
8878 msgid ""
8879 "Queued up events should be read periodically by calling L</inotify-read> (or "
8880 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
8881 "If you don't read the events out often enough then you risk the internal "
8882 "queue overflowing."
8883 msgstr ""
8884
8885 #. type: textblock
8886 #: ../fish/guestfish-actions.pod:1754
8887 msgid ""
8888 "The handle should be closed after use by calling L</inotify-close>.  This "
8889 "also removes any watches automatically."
8890 msgstr ""
8891
8892 #. type: textblock
8893 #: ../fish/guestfish-actions.pod:1758 ../src/guestfs-actions.pod:2690
8894 msgid ""
8895 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8896 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
8897 "that there is one global inotify handle per libguestfs instance."
8898 msgstr ""
8899
8900 #. type: =head2
8901 #: ../fish/guestfish-actions.pod:1763
8902 msgid "inotify-read"
8903 msgstr ""
8904
8905 #. type: verbatim
8906 #: ../fish/guestfish-actions.pod:1765
8907 #, no-wrap
8908 msgid ""
8909 " inotify-read\n"
8910 "\n"
8911 msgstr ""
8912
8913 #. type: textblock
8914 #: ../fish/guestfish-actions.pod:1767 ../src/guestfs-actions.pod:2704
8915 msgid ""
8916 "Return the complete queue of events that have happened since the previous "
8917 "read call."
8918 msgstr ""
8919
8920 #. type: textblock
8921 #: ../fish/guestfish-actions.pod:1770 ../src/guestfs-actions.pod:2707
8922 msgid "If no events have happened, this returns an empty list."
8923 msgstr ""
8924
8925 #. type: textblock
8926 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2709
8927 msgid ""
8928 "I<Note>: In order to make sure that all events have been read, you must call "
8929 "this function repeatedly until it returns an empty list.  The reason is that "
8930 "the call will read events up to the maximum appliance-to-host message size "
8931 "and leave remaining events in the queue."
8932 msgstr ""
8933
8934 #. type: =head2
8935 #: ../fish/guestfish-actions.pod:1778
8936 msgid "inotify-rm-watch"
8937 msgstr ""
8938
8939 #. type: verbatim
8940 #: ../fish/guestfish-actions.pod:1780
8941 #, no-wrap
8942 msgid ""
8943 " inotify-rm-watch wd\n"
8944 "\n"
8945 msgstr ""
8946
8947 #. type: textblock
8948 #: ../fish/guestfish-actions.pod:1782
8949 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
8950 msgstr ""
8951
8952 #. type: =head2
8953 #: ../fish/guestfish-actions.pod:1785
8954 msgid "inspect-get-arch"
8955 msgstr ""
8956
8957 #. type: verbatim
8958 #: ../fish/guestfish-actions.pod:1787
8959 #, no-wrap
8960 msgid ""
8961 " inspect-get-arch root\n"
8962 "\n"
8963 msgstr ""
8964
8965 #. type: textblock
8966 #: ../fish/guestfish-actions.pod:1789
8967 msgid ""
8968 "This returns the architecture of the inspected operating system.  The "
8969 "possible return values are listed under L</file-architecture>."
8970 msgstr ""
8971
8972 #. type: textblock
8973 #: ../fish/guestfish-actions.pod:1793 ../src/guestfs-actions.pod:2744
8974 msgid ""
8975 "If the architecture could not be determined, then the string C<unknown> is "
8976 "returned."
8977 msgstr ""
8978
8979 #. type: textblock
8980 #: ../fish/guestfish-actions.pod:1796 ../fish/guestfish-actions.pod:1891 ../fish/guestfish-actions.pod:1970 ../fish/guestfish-actions.pod:1982 ../fish/guestfish-actions.pod:2066 ../fish/guestfish-actions.pod:2128 ../fish/guestfish-actions.pod:2149 ../fish/guestfish-actions.pod:2163 ../fish/guestfish-actions.pod:2203 ../fish/guestfish-actions.pod:2239 ../fish/guestfish-actions.pod:2252 ../fish/guestfish-actions.pod:2265 ../fish/guestfish-actions.pod:2275 ../fish/guestfish-actions.pod:2285 ../fish/guestfish-actions.pod:2297 ../fish/guestfish-actions.pod:2393 ../fish/guestfish-actions.pod:2427 ../src/guestfs-actions.pod:2747 ../src/guestfs-actions.pod:2849 ../src/guestfs-actions.pod:2953 ../src/guestfs-actions.pod:2972 ../src/guestfs-actions.pod:3103 ../src/guestfs-actions.pod:3187 ../src/guestfs-actions.pod:3215 ../src/guestfs-actions.pod:3236 ../src/guestfs-actions.pod:3289 ../src/guestfs-actions.pod:3333 ../src/guestfs-actions.pod:3353 ../src/guestfs-actions.pod:3373 ../src/guestfs-actions.pod:3390 ../src/guestfs-actions.pod:3406 ../src/guestfs-actions.pod:3424 ../src/guestfs-actions.pod:3526 ../src/guestfs-actions.pod:3567
8981 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8982 msgstr ""
8983
8984 #. type: =head2
8985 #: ../fish/guestfish-actions.pod:1798
8986 msgid "inspect-get-distro"
8987 msgstr ""
8988
8989 #. type: verbatim
8990 #: ../fish/guestfish-actions.pod:1800
8991 #, no-wrap
8992 msgid ""
8993 " inspect-get-distro root\n"
8994 "\n"
8995 msgstr ""
8996
8997 #. type: textblock
8998 #: ../fish/guestfish-actions.pod:1802 ../src/guestfs-actions.pod:2760
8999 msgid "This returns the distro (distribution) of the inspected operating system."
9000 msgstr ""
9001
9002 #. type: textblock
9003 #: ../fish/guestfish-actions.pod:1805 ../src/guestfs-actions.pod:2763
9004 msgid "Currently defined distros are:"
9005 msgstr ""
9006
9007 #. type: =item
9008 #: ../fish/guestfish-actions.pod:1809 ../src/guestfs-actions.pod:2767
9009 msgid "\"archlinux\""
9010 msgstr ""
9011
9012 #. type: textblock
9013 #: ../fish/guestfish-actions.pod:1811 ../src/guestfs-actions.pod:2769
9014 msgid "Arch Linux."
9015 msgstr ""
9016
9017 #. type: =item
9018 #: ../fish/guestfish-actions.pod:1813 ../src/guestfs-actions.pod:2771
9019 msgid "\"centos\""
9020 msgstr ""
9021
9022 #. type: textblock
9023 #: ../fish/guestfish-actions.pod:1815 ../src/guestfs-actions.pod:2773
9024 msgid "CentOS."
9025 msgstr ""
9026
9027 #. type: =item
9028 #: ../fish/guestfish-actions.pod:1817 ../src/guestfs-actions.pod:2775
9029 msgid "\"debian\""
9030 msgstr ""
9031
9032 #. type: textblock
9033 #: ../fish/guestfish-actions.pod:1819 ../src/guestfs-actions.pod:2777
9034 msgid "Debian."
9035 msgstr ""
9036
9037 #. type: =item
9038 #: ../fish/guestfish-actions.pod:1821 ../src/guestfs-actions.pod:2779
9039 msgid "\"fedora\""
9040 msgstr ""
9041
9042 #. type: textblock
9043 #: ../fish/guestfish-actions.pod:1823 ../src/guestfs-actions.pod:2781
9044 msgid "Fedora."
9045 msgstr ""
9046
9047 #. type: =item
9048 #: ../fish/guestfish-actions.pod:1825 ../src/guestfs-actions.pod:2783
9049 msgid "\"gentoo\""
9050 msgstr ""
9051
9052 #. type: textblock
9053 #: ../fish/guestfish-actions.pod:1827 ../src/guestfs-actions.pod:2785
9054 msgid "Gentoo."
9055 msgstr ""
9056
9057 #. type: =item
9058 #: ../fish/guestfish-actions.pod:1829 ../src/guestfs-actions.pod:2787
9059 msgid "\"linuxmint\""
9060 msgstr ""
9061
9062 #. type: textblock
9063 #: ../fish/guestfish-actions.pod:1831 ../src/guestfs-actions.pod:2789
9064 msgid "Linux Mint."
9065 msgstr ""
9066
9067 #. type: =item
9068 #: ../fish/guestfish-actions.pod:1833 ../src/guestfs-actions.pod:2791
9069 msgid "\"mageia\""
9070 msgstr ""
9071
9072 #. type: textblock
9073 #: ../fish/guestfish-actions.pod:1835 ../src/guestfs-actions.pod:2793
9074 msgid "Mageia."
9075 msgstr ""
9076
9077 #. type: =item
9078 #: ../fish/guestfish-actions.pod:1837 ../src/guestfs-actions.pod:2795
9079 msgid "\"mandriva\""
9080 msgstr ""
9081
9082 #. type: textblock
9083 #: ../fish/guestfish-actions.pod:1839 ../src/guestfs-actions.pod:2797
9084 msgid "Mandriva."
9085 msgstr ""
9086
9087 #. type: =item
9088 #: ../fish/guestfish-actions.pod:1841 ../src/guestfs-actions.pod:2799
9089 msgid "\"meego\""
9090 msgstr ""
9091
9092 #. type: textblock
9093 #: ../fish/guestfish-actions.pod:1843 ../src/guestfs-actions.pod:2801
9094 msgid "MeeGo."
9095 msgstr ""
9096
9097 #. type: =item
9098 #: ../fish/guestfish-actions.pod:1845 ../src/guestfs-actions.pod:2803
9099 msgid "\"opensuse\""
9100 msgstr ""
9101
9102 #. type: textblock
9103 #: ../fish/guestfish-actions.pod:1847 ../src/guestfs-actions.pod:2805
9104 msgid "OpenSUSE."
9105 msgstr ""
9106
9107 #. type: =item
9108 #: ../fish/guestfish-actions.pod:1849 ../src/guestfs-actions.pod:2807
9109 msgid "\"pardus\""
9110 msgstr ""
9111
9112 #. type: textblock
9113 #: ../fish/guestfish-actions.pod:1851 ../src/guestfs-actions.pod:2809
9114 msgid "Pardus."
9115 msgstr ""
9116
9117 #. type: =item
9118 #: ../fish/guestfish-actions.pod:1853 ../src/guestfs-actions.pod:2811
9119 msgid "\"redhat-based\""
9120 msgstr ""
9121
9122 #. type: textblock
9123 #: ../fish/guestfish-actions.pod:1855 ../src/guestfs-actions.pod:2813
9124 msgid "Some Red Hat-derived distro."
9125 msgstr ""
9126
9127 #. type: =item
9128 #: ../fish/guestfish-actions.pod:1857 ../src/guestfs-actions.pod:2815
9129 msgid "\"rhel\""
9130 msgstr ""
9131
9132 #. type: textblock
9133 #: ../fish/guestfish-actions.pod:1859 ../src/guestfs-actions.pod:2817
9134 msgid "Red Hat Enterprise Linux."
9135 msgstr ""
9136
9137 #. type: =item
9138 #: ../fish/guestfish-actions.pod:1861 ../src/guestfs-actions.pod:2819
9139 msgid "\"scientificlinux\""
9140 msgstr ""
9141
9142 #. type: textblock
9143 #: ../fish/guestfish-actions.pod:1863 ../src/guestfs-actions.pod:2821
9144 msgid "Scientific Linux."
9145 msgstr ""
9146
9147 #. type: =item
9148 #: ../fish/guestfish-actions.pod:1865 ../src/guestfs-actions.pod:2823
9149 msgid "\"slackware\""
9150 msgstr ""
9151
9152 #. type: textblock
9153 #: ../fish/guestfish-actions.pod:1867 ../src/guestfs-actions.pod:2825
9154 msgid "Slackware."
9155 msgstr ""
9156
9157 #. type: =item
9158 #: ../fish/guestfish-actions.pod:1869 ../src/guestfs-actions.pod:2827
9159 msgid "\"ttylinux\""
9160 msgstr ""
9161
9162 #. type: textblock
9163 #: ../fish/guestfish-actions.pod:1871 ../src/guestfs-actions.pod:2829
9164 msgid "ttylinux."
9165 msgstr ""
9166
9167 #. type: =item
9168 #: ../fish/guestfish-actions.pod:1873 ../src/guestfs-actions.pod:2831
9169 msgid "\"ubuntu\""
9170 msgstr ""
9171
9172 #. type: textblock
9173 #: ../fish/guestfish-actions.pod:1875 ../src/guestfs-actions.pod:2833
9174 msgid "Ubuntu."
9175 msgstr ""
9176
9177 #. type: =item
9178 #: ../fish/guestfish-actions.pod:1877 ../fish/guestfish-actions.pod:1961 ../fish/guestfish-actions.pod:2230 ../src/guestfs-actions.pod:2835 ../src/guestfs-actions.pod:2944 ../src/guestfs-actions.pod:3324
9179 msgid "\"unknown\""
9180 msgstr ""
9181
9182 #. type: textblock
9183 #: ../fish/guestfish-actions.pod:1879 ../src/guestfs-actions.pod:2837
9184 msgid "The distro could not be determined."
9185 msgstr ""
9186
9187 #. type: =item
9188 #: ../fish/guestfish-actions.pod:1881 ../fish/guestfish-actions.pod:2218 ../src/guestfs-actions.pod:2839 ../src/guestfs-actions.pod:3312
9189 msgid "\"windows\""
9190 msgstr ""
9191
9192 #. type: textblock
9193 #: ../fish/guestfish-actions.pod:1883 ../src/guestfs-actions.pod:2841
9194 msgid ""
9195 "Windows does not have distributions.  This string is returned if the OS type "
9196 "is Windows."
9197 msgstr ""
9198
9199 #. type: textblock
9200 #: ../fish/guestfish-actions.pod:1888 ../fish/guestfish-actions.pod:1967 ../fish/guestfish-actions.pod:2236 ../src/guestfs-actions.pod:2846 ../src/guestfs-actions.pod:2950 ../src/guestfs-actions.pod:3330
9201 msgid ""
9202 "Future versions of libguestfs may return other strings here.  The caller "
9203 "should be prepared to handle any string."
9204 msgstr ""
9205
9206 #. type: =head2
9207 #: ../fish/guestfish-actions.pod:1893
9208 msgid "inspect-get-drive-mappings"
9209 msgstr ""
9210
9211 #. type: verbatim
9212 #: ../fish/guestfish-actions.pod:1895
9213 #, no-wrap
9214 msgid ""
9215 " inspect-get-drive-mappings root\n"
9216 "\n"
9217 msgstr ""
9218
9219 #. type: textblock
9220 #: ../fish/guestfish-actions.pod:1897 ../src/guestfs-actions.pod:2862
9221 msgid ""
9222 "This call is useful for Windows which uses a primitive system of assigning "
9223 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
9224 "Windows Registry to find out how disks/partitions are mapped to drive "
9225 "letters, and returns a hash table as in the example below:"
9226 msgstr ""
9227
9228 #. type: verbatim
9229 #: ../fish/guestfish-actions.pod:1903 ../src/guestfs-actions.pod:2868
9230 #, no-wrap
9231 msgid ""
9232 " C      =>     /dev/vda2\n"
9233 " E      =>     /dev/vdb1\n"
9234 " F      =>     /dev/vdc1\n"
9235 "\n"
9236 msgstr ""
9237
9238 #. type: textblock
9239 #: ../fish/guestfish-actions.pod:1907 ../src/guestfs-actions.pod:2872
9240 msgid ""
9241 "Note that keys are drive letters.  For Windows, the key is case insensitive "
9242 "and just contains the drive letter, without the customary colon separator "
9243 "character."
9244 msgstr ""
9245
9246 #. type: textblock
9247 #: ../fish/guestfish-actions.pod:1911 ../src/guestfs-actions.pod:2876
9248 msgid ""
9249 "In future we may support other operating systems that also used drive "
9250 "letters, but the keys for those might not be case insensitive and might be "
9251 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
9252 "C<h1> etc."
9253 msgstr ""
9254
9255 #. type: textblock
9256 #: ../fish/guestfish-actions.pod:1916 ../src/guestfs-actions.pod:2881
9257 msgid ""
9258 "For Windows guests, currently only hard drive mappings are returned.  "
9259 "Removable disks (eg. DVD-ROMs) are ignored."
9260 msgstr ""
9261
9262 #. type: textblock
9263 #: ../fish/guestfish-actions.pod:1919 ../src/guestfs-actions.pod:2884
9264 msgid ""
9265 "For guests that do not use drive mappings, or if the drive mappings could "
9266 "not be determined, this returns an empty hash table."
9267 msgstr ""
9268
9269 #. type: textblock
9270 #: ../fish/guestfish-actions.pod:1922
9271 msgid ""
9272 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9273 "L</inspect-get-mountpoints>, L</inspect-get-filesystems>."
9274 msgstr ""
9275
9276 #. type: =head2
9277 #: ../fish/guestfish-actions.pod:1926
9278 msgid "inspect-get-filesystems"
9279 msgstr ""
9280
9281 #. type: verbatim
9282 #: ../fish/guestfish-actions.pod:1928
9283 #, no-wrap
9284 msgid ""
9285 " inspect-get-filesystems root\n"
9286 "\n"
9287 msgstr ""
9288
9289 #. type: textblock
9290 #: ../fish/guestfish-actions.pod:1930 ../src/guestfs-actions.pod:2905
9291 msgid ""
9292 "This returns a list of all the filesystems that we think are associated with "
9293 "this operating system.  This includes the root filesystem, other ordinary "
9294 "filesystems, and non-mounted devices like swap partitions."
9295 msgstr ""
9296
9297 #. type: textblock
9298 #: ../fish/guestfish-actions.pod:1935 ../src/guestfs-actions.pod:2910
9299 msgid ""
9300 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
9301 "to be shared between operating systems."
9302 msgstr ""
9303
9304 #. type: textblock
9305 #: ../fish/guestfish-actions.pod:1938
9306 msgid ""
9307 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9308 "L</inspect-get-mountpoints>."
9309 msgstr ""
9310
9311 #. type: =head2
9312 #: ../fish/guestfish-actions.pod:1941
9313 msgid "inspect-get-format"
9314 msgstr ""
9315
9316 #. type: verbatim
9317 #: ../fish/guestfish-actions.pod:1943
9318 #, no-wrap
9319 msgid ""
9320 " inspect-get-format root\n"
9321 "\n"
9322 msgstr ""
9323
9324 #. type: textblock
9325 #: ../fish/guestfish-actions.pod:1945 ../src/guestfs-actions.pod:2928
9326 msgid ""
9327 "This returns the format of the inspected operating system.  You can use it "
9328 "to detect install images, live CDs and similar."
9329 msgstr ""
9330
9331 #. type: textblock
9332 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:2931
9333 msgid "Currently defined formats are:"
9334 msgstr ""
9335
9336 #. type: =item
9337 #: ../fish/guestfish-actions.pod:1952 ../src/guestfs-actions.pod:2935
9338 msgid "\"installed\""
9339 msgstr ""
9340
9341 #. type: textblock
9342 #: ../fish/guestfish-actions.pod:1954 ../src/guestfs-actions.pod:2937
9343 msgid "This is an installed operating system."
9344 msgstr ""
9345
9346 #. type: =item
9347 #: ../fish/guestfish-actions.pod:1956 ../src/guestfs-actions.pod:2939
9348 msgid "\"installer\""
9349 msgstr ""
9350
9351 #. type: textblock
9352 #: ../fish/guestfish-actions.pod:1958 ../src/guestfs-actions.pod:2941
9353 msgid ""
9354 "The disk image being inspected is not an installed operating system, but a "
9355 "I<bootable> install disk, live CD, or similar."
9356 msgstr ""
9357
9358 #. type: textblock
9359 #: ../fish/guestfish-actions.pod:1963 ../src/guestfs-actions.pod:2946
9360 msgid "The format of this disk image is not known."
9361 msgstr ""
9362
9363 #. type: =head2
9364 #: ../fish/guestfish-actions.pod:1972
9365 msgid "inspect-get-hostname"
9366 msgstr ""
9367
9368 #. type: verbatim
9369 #: ../fish/guestfish-actions.pod:1974
9370 #, no-wrap
9371 msgid ""
9372 " inspect-get-hostname root\n"
9373 "\n"
9374 msgstr ""
9375
9376 #. type: textblock
9377 #: ../fish/guestfish-actions.pod:1976 ../src/guestfs-actions.pod:2966
9378 msgid ""
9379 "This function returns the hostname of the operating system as found by "
9380 "inspection of the guest's configuration files."
9381 msgstr ""
9382
9383 #. type: textblock
9384 #: ../fish/guestfish-actions.pod:1979 ../src/guestfs-actions.pod:2969
9385 msgid ""
9386 "If the hostname could not be determined, then the string C<unknown> is "
9387 "returned."
9388 msgstr ""
9389
9390 #. type: =head2
9391 #: ../fish/guestfish-actions.pod:1984
9392 msgid "inspect-get-icon"
9393 msgstr ""
9394
9395 #. type: verbatim
9396 #: ../fish/guestfish-actions.pod:1986
9397 #, no-wrap
9398 msgid ""
9399 " inspect-get-icon root [favicon:..] [highquality:..]\n"
9400 "\n"
9401 msgstr ""
9402
9403 #. type: textblock
9404 #: ../fish/guestfish-actions.pod:1988 ../src/guestfs-actions.pod:2995
9405 msgid ""
9406 "This function returns an icon corresponding to the inspected operating "
9407 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
9408 "to PNG if necessary)."
9409 msgstr ""
9410
9411 #. type: textblock
9412 #: ../fish/guestfish-actions.pod:1992 ../src/guestfs-actions.pod:2999
9413 msgid ""
9414 "If it was not possible to get an icon this function returns a zero-length "
9415 "(non-NULL) buffer.  I<Callers must check for this case>."
9416 msgstr ""
9417
9418 #. type: textblock
9419 #: ../fish/guestfish-actions.pod:1995 ../src/guestfs-actions.pod:3002
9420 msgid ""
9421 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
9422 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
9423 "this file will be returned.  You can disable favicons by passing the "
9424 "optional C<favicon> boolean as false (default is true)."
9425 msgstr ""
9426
9427 #. type: textblock
9428 #: ../fish/guestfish-actions.pod:2001 ../src/guestfs-actions.pod:3008
9429 msgid ""
9430 "If finding the favicon fails, then we look in other places in the guest for "
9431 "a suitable icon."
9432 msgstr ""
9433
9434 #. type: textblock
9435 #: ../fish/guestfish-actions.pod:2004 ../src/guestfs-actions.pod:3011
9436 msgid ""
9437 "If the optional C<highquality> boolean is true then only high quality icons "
9438 "are returned, which means only icons of high resolution with an alpha "
9439 "channel.  The default (false) is to return any icon we can, even if it is of "
9440 "substandard quality."
9441 msgstr ""
9442
9443 #. type: textblock
9444 #: ../fish/guestfish-actions.pod:2015 ../src/guestfs-actions.pod:3022
9445 msgid ""
9446 "Unlike most other inspection API calls, the guest's disks must be mounted up "
9447 "before you call this, since it needs to read information from the guest "
9448 "filesystem during the call."
9449 msgstr ""
9450
9451 #. type: textblock
9452 #: ../fish/guestfish-actions.pod:2021 ../src/guestfs-actions.pod:3028
9453 msgid ""
9454 "B<Security:> The icon data comes from the untrusted guest, and should be "
9455 "treated with caution.  PNG files have been known to contain exploits.  "
9456 "Ensure that libpng (or other relevant libraries) are fully up to date before "
9457 "trying to process or display the icon."
9458 msgstr ""
9459
9460 #. type: textblock
9461 #: ../fish/guestfish-actions.pod:2029 ../src/guestfs-actions.pod:3036
9462 msgid ""
9463 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
9464 "tries to return the largest, highest quality icon available.  The "
9465 "application must scale the icon to the required size."
9466 msgstr ""
9467
9468 #. type: textblock
9469 #: ../fish/guestfish-actions.pod:2036 ../src/guestfs-actions.pod:3043
9470 msgid ""
9471 "Extracting icons from Windows guests requires the external C<wrestool> "
9472 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
9473 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
9474 "installed separately."
9475 msgstr ""
9476
9477 #. type: textblock
9478 #: ../fish/guestfish-actions.pod:2043 ../src/guestfs-actions.pod:3050
9479 msgid ""
9480 "Operating system icons are usually trademarks.  Seek legal advice before "
9481 "using trademarks in applications."
9482 msgstr ""
9483
9484 #. type: =head2
9485 #: ../fish/guestfish-actions.pod:2050
9486 msgid "inspect-get-major-version"
9487 msgstr ""
9488
9489 #. type: verbatim
9490 #: ../fish/guestfish-actions.pod:2052
9491 #, no-wrap
9492 msgid ""
9493 " inspect-get-major-version root\n"
9494 "\n"
9495 msgstr ""
9496
9497 #. type: textblock
9498 #: ../fish/guestfish-actions.pod:2054 ../src/guestfs-actions.pod:3091
9499 msgid "This returns the major version number of the inspected operating system."
9500 msgstr ""
9501
9502 #. type: textblock
9503 #: ../fish/guestfish-actions.pod:2057 ../src/guestfs-actions.pod:3094
9504 msgid ""
9505 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
9506 "popular public names used by the operating system.  Notably the operating "
9507 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
9508 "1).  You can find out the real versions corresponding to releases of Windows "
9509 "by consulting Wikipedia or MSDN."
9510 msgstr ""
9511
9512 #. type: textblock
9513 #: ../fish/guestfish-actions.pod:2064 ../fish/guestfish-actions.pod:2075 ../src/guestfs-actions.pod:3101 ../src/guestfs-actions.pod:3118
9514 msgid "If the version could not be determined, then C<0> is returned."
9515 msgstr ""
9516
9517 #. type: =head2
9518 #: ../fish/guestfish-actions.pod:2068
9519 msgid "inspect-get-minor-version"
9520 msgstr ""
9521
9522 #. type: verbatim
9523 #: ../fish/guestfish-actions.pod:2070
9524 #, no-wrap
9525 msgid ""
9526 " inspect-get-minor-version root\n"
9527 "\n"
9528 msgstr ""
9529
9530 #. type: textblock
9531 #: ../fish/guestfish-actions.pod:2072 ../src/guestfs-actions.pod:3115
9532 msgid "This returns the minor version number of the inspected operating system."
9533 msgstr ""
9534
9535 #. type: textblock
9536 #: ../fish/guestfish-actions.pod:2077
9537 msgid ""
9538 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9539 "L</inspect-get-major-version>."
9540 msgstr ""
9541
9542 #. type: =head2
9543 #: ../fish/guestfish-actions.pod:2080
9544 msgid "inspect-get-mountpoints"
9545 msgstr ""
9546
9547 #. type: verbatim
9548 #: ../fish/guestfish-actions.pod:2082
9549 #, no-wrap
9550 msgid ""
9551 " inspect-get-mountpoints root\n"
9552 "\n"
9553 msgstr ""
9554
9555 #. type: textblock
9556 #: ../fish/guestfish-actions.pod:2084 ../src/guestfs-actions.pod:3133
9557 msgid ""
9558 "This returns a hash of where we think the filesystems associated with this "
9559 "operating system should be mounted.  Callers should note that this is at "
9560 "best an educated guess made by reading configuration files such as "
9561 "C</etc/fstab>.  I<In particular note> that this may return filesystems which "
9562 "are non-existent or not mountable and callers should be prepared to handle "
9563 "or ignore failures if they try to mount them."
9564 msgstr ""
9565
9566 #. type: textblock
9567 #: ../fish/guestfish-actions.pod:2093 ../src/guestfs-actions.pod:3142
9568 msgid ""
9569 "Each element in the returned hashtable has a key which is the path of the "
9570 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
9571 "mounted there (eg. C</dev/sda1>)."
9572 msgstr ""
9573
9574 #. type: textblock
9575 #: ../fish/guestfish-actions.pod:2098 ../src/guestfs-actions.pod:3147
9576 msgid "Non-mounted devices such as swap devices are I<not> returned in this list."
9577 msgstr ""
9578
9579 #. type: textblock
9580 #: ../fish/guestfish-actions.pod:2101
9581 msgid ""
9582 "For operating systems like Windows which still use drive letters, this call "
9583 "will only return an entry for the first drive \"mounted on\" C</>.  For "
9584 "information about the mapping of drive letters to partitions, see "
9585 "L</inspect-get-drive-mappings>."
9586 msgstr ""
9587
9588 #. type: textblock
9589 #: ../fish/guestfish-actions.pod:2107
9590 msgid ""
9591 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9592 "L</inspect-get-filesystems>."
9593 msgstr ""
9594
9595 #. type: =head2
9596 #: ../fish/guestfish-actions.pod:2110
9597 msgid "inspect-get-package-format"
9598 msgstr ""
9599
9600 #. type: verbatim
9601 #: ../fish/guestfish-actions.pod:2112
9602 #, no-wrap
9603 msgid ""
9604 " inspect-get-package-format root\n"
9605 "\n"
9606 msgstr ""
9607
9608 #. type: textblock
9609 #: ../fish/guestfish-actions.pod:2114
9610 msgid ""
9611 "This function and L</inspect-get-package-management> return the package "
9612 "format and package management tool used by the inspected operating system.  "
9613 "For example for Fedora these functions would return C<rpm> (package format) "
9614 "and C<yum> (package management)."
9615 msgstr ""
9616
9617 #. type: textblock
9618 #: ../fish/guestfish-actions.pod:2120 ../src/guestfs-actions.pod:3179
9619 msgid ""
9620 "This returns the string C<unknown> if we could not determine the package "
9621 "format I<or> if the operating system does not have a real packaging system "
9622 "(eg. Windows)."
9623 msgstr ""
9624
9625 #. type: textblock
9626 #: ../fish/guestfish-actions.pod:2124 ../src/guestfs-actions.pod:3183
9627 msgid ""
9628 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>, "
9629 "C<pkgsrc>.  Future versions of libguestfs may return other strings."
9630 msgstr ""
9631
9632 #. type: =head2
9633 #: ../fish/guestfish-actions.pod:2130
9634 msgid "inspect-get-package-management"
9635 msgstr ""
9636
9637 #. type: verbatim
9638 #: ../fish/guestfish-actions.pod:2132
9639 #, no-wrap
9640 msgid ""
9641 " inspect-get-package-management root\n"
9642 "\n"
9643 msgstr ""
9644
9645 #. type: textblock
9646 #: ../fish/guestfish-actions.pod:2134
9647 msgid ""
9648 "L</inspect-get-package-format> and this function return the package format "
9649 "and package management tool used by the inspected operating system.  For "
9650 "example for Fedora these functions would return C<rpm> (package format) and "
9651 "C<yum> (package management)."
9652 msgstr ""
9653
9654 #. type: textblock
9655 #: ../fish/guestfish-actions.pod:2140 ../src/guestfs-actions.pod:3206
9656 msgid ""
9657 "This returns the string C<unknown> if we could not determine the package "
9658 "management tool I<or> if the operating system does not have a real packaging "
9659 "system (eg. Windows)."
9660 msgstr ""
9661
9662 #. type: textblock
9663 #: ../fish/guestfish-actions.pod:2144 ../src/guestfs-actions.pod:3210
9664 msgid ""
9665 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
9666 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>, C<zypper>.  Future "
9667 "versions of libguestfs may return other strings."
9668 msgstr ""
9669
9670 #. type: =head2
9671 #: ../fish/guestfish-actions.pod:2151
9672 msgid "inspect-get-product-name"
9673 msgstr ""
9674
9675 #. type: verbatim
9676 #: ../fish/guestfish-actions.pod:2153
9677 #, no-wrap
9678 msgid ""
9679 " inspect-get-product-name root\n"
9680 "\n"
9681 msgstr ""
9682
9683 #. type: textblock
9684 #: ../fish/guestfish-actions.pod:2155 ../src/guestfs-actions.pod:3228
9685 msgid ""
9686 "This returns the product name of the inspected operating system.  The "
9687 "product name is generally some freeform string which can be displayed to the "
9688 "user, but should not be parsed by programs."
9689 msgstr ""
9690
9691 #. type: textblock
9692 #: ../fish/guestfish-actions.pod:2160 ../src/guestfs-actions.pod:3233
9693 msgid ""
9694 "If the product name could not be determined, then the string C<unknown> is "
9695 "returned."
9696 msgstr ""
9697
9698 #. type: =head2
9699 #: ../fish/guestfish-actions.pod:2165
9700 msgid "inspect-get-product-variant"
9701 msgstr ""
9702
9703 #. type: verbatim
9704 #: ../fish/guestfish-actions.pod:2167
9705 #, no-wrap
9706 msgid ""
9707 " inspect-get-product-variant root\n"
9708 "\n"
9709 msgstr ""
9710
9711 #. type: textblock
9712 #: ../fish/guestfish-actions.pod:2169 ../src/guestfs-actions.pod:3249
9713 msgid "This returns the product variant of the inspected operating system."
9714 msgstr ""
9715
9716 #. type: textblock
9717 #: ../fish/guestfish-actions.pod:2172 ../src/guestfs-actions.pod:3252
9718 msgid ""
9719 "For Windows guests, this returns the contents of the Registry key "
9720 "C<HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> "
9721 "which is usually a string such as C<Client> or C<Server> (other values are "
9722 "possible).  This can be used to distinguish consumer and enterprise versions "
9723 "of Windows that have the same version number (for example, Windows 7 and "
9724 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
9725 "the latter is C<Server>)."
9726 msgstr ""
9727
9728 #. type: textblock
9729 #: ../fish/guestfish-actions.pod:2181 ../src/guestfs-actions.pod:3261
9730 msgid ""
9731 "For enterprise Linux guests, in future we intend this to return the product "
9732 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
9733 "implemented at present."
9734 msgstr ""
9735
9736 #. type: textblock
9737 #: ../fish/guestfish-actions.pod:2185 ../src/guestfs-actions.pod:3265
9738 msgid ""
9739 "If the product variant could not be determined, then the string C<unknown> "
9740 "is returned."
9741 msgstr ""
9742
9743 #. type: textblock
9744 #: ../fish/guestfish-actions.pod:2188
9745 msgid ""
9746 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9747 "L</inspect-get-product-name>, L</inspect-get-major-version>."
9748 msgstr ""
9749
9750 #. type: =head2
9751 #: ../fish/guestfish-actions.pod:2192
9752 msgid "inspect-get-roots"
9753 msgstr ""
9754
9755 #. type: verbatim
9756 #: ../fish/guestfish-actions.pod:2194
9757 #, no-wrap
9758 msgid ""
9759 " inspect-get-roots\n"
9760 "\n"
9761 msgstr ""
9762
9763 #. type: textblock
9764 #: ../fish/guestfish-actions.pod:2196
9765 msgid ""
9766 "This function is a convenient way to get the list of root devices, as "
9767 "returned from a previous call to L</inspect-os>, but without redoing the "
9768 "whole inspection process."
9769 msgstr ""
9770
9771 #. type: textblock
9772 #: ../fish/guestfish-actions.pod:2200
9773 msgid ""
9774 "This returns an empty list if either no root devices were found or the "
9775 "caller has not called L</inspect-os>."
9776 msgstr ""
9777
9778 #. type: =head2
9779 #: ../fish/guestfish-actions.pod:2205
9780 msgid "inspect-get-type"
9781 msgstr ""
9782
9783 #. type: verbatim
9784 #: ../fish/guestfish-actions.pod:2207
9785 #, no-wrap
9786 msgid ""
9787 " inspect-get-type root\n"
9788 "\n"
9789 msgstr ""
9790
9791 #. type: textblock
9792 #: ../fish/guestfish-actions.pod:2209 ../src/guestfs-actions.pod:3303
9793 msgid ""
9794 "This returns the type of the inspected operating system.  Currently defined "
9795 "types are:"
9796 msgstr ""
9797
9798 #. type: =item
9799 #: ../fish/guestfish-actions.pod:2214 ../src/guestfs-actions.pod:3308
9800 msgid "\"linux\""
9801 msgstr ""
9802
9803 #. type: textblock
9804 #: ../fish/guestfish-actions.pod:2216 ../src/guestfs-actions.pod:3310
9805 msgid "Any Linux-based operating system."
9806 msgstr ""
9807
9808 #. type: textblock
9809 #: ../fish/guestfish-actions.pod:2220 ../src/guestfs-actions.pod:3314
9810 msgid "Any Microsoft Windows operating system."
9811 msgstr ""
9812
9813 #. type: =item
9814 #: ../fish/guestfish-actions.pod:2222 ../src/guestfs-actions.pod:3316
9815 msgid "\"freebsd\""
9816 msgstr ""
9817
9818 #. type: textblock
9819 #: ../fish/guestfish-actions.pod:2224 ../src/guestfs-actions.pod:3318
9820 msgid "FreeBSD."
9821 msgstr ""
9822
9823 #. type: =item
9824 #: ../fish/guestfish-actions.pod:2226 ../src/guestfs-actions.pod:3320
9825 msgid "\"netbsd\""
9826 msgstr ""
9827
9828 #. type: textblock
9829 #: ../fish/guestfish-actions.pod:2228 ../src/guestfs-actions.pod:3322
9830 msgid "NetBSD."
9831 msgstr ""
9832
9833 #. type: textblock
9834 #: ../fish/guestfish-actions.pod:2232 ../src/guestfs-actions.pod:3326
9835 msgid "The operating system type could not be determined."
9836 msgstr ""
9837
9838 #. type: =head2
9839 #: ../fish/guestfish-actions.pod:2241
9840 msgid "inspect-get-windows-current-control-set"
9841 msgstr ""
9842
9843 #. type: verbatim
9844 #: ../fish/guestfish-actions.pod:2243
9845 #, no-wrap
9846 msgid ""
9847 " inspect-get-windows-current-control-set root\n"
9848 "\n"
9849 msgstr ""
9850
9851 #. type: textblock
9852 #: ../fish/guestfish-actions.pod:2245 ../src/guestfs-actions.pod:3346
9853 msgid ""
9854 "This returns the Windows CurrentControlSet of the inspected guest.  The "
9855 "CurrentControlSet is a registry key name such as C<ControlSet001>."
9856 msgstr ""
9857
9858 #. type: textblock
9859 #: ../fish/guestfish-actions.pod:2248 ../src/guestfs-actions.pod:3349
9860 msgid ""
9861 "This call assumes that the guest is Windows and that the Registry could be "
9862 "examined by inspection.  If this is not the case then an error is returned."
9863 msgstr ""
9864
9865 #. type: =head2
9866 #: ../fish/guestfish-actions.pod:2254
9867 msgid "inspect-get-windows-systemroot"
9868 msgstr ""
9869
9870 #. type: verbatim
9871 #: ../fish/guestfish-actions.pod:2256
9872 #, no-wrap
9873 msgid ""
9874 " inspect-get-windows-systemroot root\n"
9875 "\n"
9876 msgstr ""
9877
9878 #. type: textblock
9879 #: ../fish/guestfish-actions.pod:2258 ../src/guestfs-actions.pod:3366
9880 msgid ""
9881 "This returns the Windows systemroot of the inspected guest.  The systemroot "
9882 "is a directory path such as C</WINDOWS>."
9883 msgstr ""
9884
9885 #. type: textblock
9886 #: ../fish/guestfish-actions.pod:2261 ../src/guestfs-actions.pod:3369
9887 msgid ""
9888 "This call assumes that the guest is Windows and that the systemroot could be "
9889 "determined by inspection.  If this is not the case then an error is "
9890 "returned."
9891 msgstr ""
9892
9893 #. type: =head2
9894 #: ../fish/guestfish-actions.pod:2267
9895 msgid "inspect-is-live"
9896 msgstr ""
9897
9898 #. type: verbatim
9899 #: ../fish/guestfish-actions.pod:2269
9900 #, no-wrap
9901 msgid ""
9902 " inspect-is-live root\n"
9903 "\n"
9904 msgstr ""
9905
9906 #. type: textblock
9907 #: ../fish/guestfish-actions.pod:2271
9908 msgid ""
9909 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9910 "then this returns true if a live image was detected on the disk."
9911 msgstr ""
9912
9913 #. type: =head2
9914 #: ../fish/guestfish-actions.pod:2277
9915 msgid "inspect-is-multipart"
9916 msgstr ""
9917
9918 #. type: verbatim
9919 #: ../fish/guestfish-actions.pod:2279
9920 #, no-wrap
9921 msgid ""
9922 " inspect-is-multipart root\n"
9923 "\n"
9924 msgstr ""
9925
9926 #. type: textblock
9927 #: ../fish/guestfish-actions.pod:2281
9928 msgid ""
9929 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9930 "then this returns true if the disk is part of a set."
9931 msgstr ""
9932
9933 #. type: =head2
9934 #: ../fish/guestfish-actions.pod:2287
9935 msgid "inspect-is-netinst"
9936 msgstr ""
9937
9938 #. type: verbatim
9939 #: ../fish/guestfish-actions.pod:2289
9940 #, no-wrap
9941 msgid ""
9942 " inspect-is-netinst root\n"
9943 "\n"
9944 msgstr ""
9945
9946 #. type: textblock
9947 #: ../fish/guestfish-actions.pod:2291
9948 msgid ""
9949 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9950 "then this returns true if the disk is a network installer, ie. not a "
9951 "self-contained install CD but one which is likely to require network access "
9952 "to complete the install."
9953 msgstr ""
9954
9955 #. type: =head2
9956 #: ../fish/guestfish-actions.pod:2299
9957 msgid "inspect-list-applications"
9958 msgstr ""
9959
9960 #. type: verbatim
9961 #: ../fish/guestfish-actions.pod:2301
9962 #, no-wrap
9963 msgid ""
9964 " inspect-list-applications root\n"
9965 "\n"
9966 msgstr ""
9967
9968 #. type: textblock
9969 #: ../fish/guestfish-actions.pod:2303 ../src/guestfs-actions.pod:3436
9970 msgid "Return the list of applications installed in the operating system."
9971 msgstr ""
9972
9973 #. type: textblock
9974 #: ../fish/guestfish-actions.pod:2305
9975 msgid ""
9976 "I<Note:> This call works differently from other parts of the inspection "
9977 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
9978 "then mount up the disks, before calling this.  Listing applications is a "
9979 "significantly more difficult operation which requires access to the full "
9980 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
9981 "are just returning data cached in the libguestfs handle, this call actually "
9982 "reads parts of the mounted filesystems during the call."
9983 msgstr ""
9984
9985 #. type: textblock
9986 #: ../fish/guestfish-actions.pod:2315 ../src/guestfs-actions.pod:3448
9987 msgid ""
9988 "This returns an empty list if the inspection code was not able to determine "
9989 "the list of applications."
9990 msgstr ""
9991
9992 #. type: textblock
9993 #: ../fish/guestfish-actions.pod:2318 ../src/guestfs-actions.pod:3451
9994 msgid "The application structure contains the following fields:"
9995 msgstr ""
9996
9997 #. type: =item
9998 #: ../fish/guestfish-actions.pod:2322 ../src/guestfs-actions.pod:3455
9999 msgid "C<app_name>"
10000 msgstr ""
10001
10002 #. type: textblock
10003 #: ../fish/guestfish-actions.pod:2324 ../src/guestfs-actions.pod:3457
10004 msgid ""
10005 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
10006 "guests, this is the package name."
10007 msgstr ""
10008
10009 #. type: =item
10010 #: ../fish/guestfish-actions.pod:2327 ../src/guestfs-actions.pod:3460
10011 msgid "C<app_display_name>"
10012 msgstr ""
10013
10014 #. type: textblock
10015 #: ../fish/guestfish-actions.pod:2329 ../src/guestfs-actions.pod:3462
10016 msgid ""
10017 "The display name of the application, sometimes localized to the install "
10018 "language of the guest operating system."
10019 msgstr ""
10020
10021 #. type: textblock
10022 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3465
10023 msgid ""
10024 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
10025 "to display something can use C<app_name> instead."
10026 msgstr ""
10027
10028 #. type: =item
10029 #: ../fish/guestfish-actions.pod:2335 ../src/guestfs-actions.pod:3468
10030 msgid "C<app_epoch>"
10031 msgstr ""
10032
10033 #. type: textblock
10034 #: ../fish/guestfish-actions.pod:2337 ../src/guestfs-actions.pod:3470
10035 msgid ""
10036 "For package managers which use epochs, this contains the epoch of the "
10037 "package (an integer).  If unavailable, this is returned as C<0>."
10038 msgstr ""
10039
10040 #. type: =item
10041 #: ../fish/guestfish-actions.pod:2340 ../src/guestfs-actions.pod:3473
10042 msgid "C<app_version>"
10043 msgstr ""
10044
10045 #. type: textblock
10046 #: ../fish/guestfish-actions.pod:2342 ../src/guestfs-actions.pod:3475
10047 msgid ""
10048 "The version string of the application or package.  If unavailable this is "
10049 "returned as an empty string C<\"\">."
10050 msgstr ""
10051
10052 #. type: =item
10053 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3478
10054 msgid "C<app_release>"
10055 msgstr ""
10056
10057 #. type: textblock
10058 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3480
10059 msgid ""
10060 "The release string of the application or package, for package managers that "
10061 "use this.  If unavailable this is returned as an empty string C<\"\">."
10062 msgstr ""
10063
10064 #. type: =item
10065 #: ../fish/guestfish-actions.pod:2351 ../src/guestfs-actions.pod:3484
10066 msgid "C<app_install_path>"
10067 msgstr ""
10068
10069 #. type: textblock
10070 #: ../fish/guestfish-actions.pod:2353 ../src/guestfs-actions.pod:3486
10071 msgid ""
10072 "The installation path of the application (on operating systems such as "
10073 "Windows which use installation paths).  This path is in the format used by "
10074 "the guest operating system, it is not a libguestfs path."
10075 msgstr ""
10076
10077 #. type: textblock
10078 #: ../fish/guestfish-actions.pod:2358 ../src/guestfs-actions.pod:3491
10079 msgid "If unavailable this is returned as an empty string C<\"\">."
10080 msgstr ""
10081
10082 #. type: =item
10083 #: ../fish/guestfish-actions.pod:2360 ../src/guestfs-actions.pod:3493
10084 msgid "C<app_trans_path>"
10085 msgstr ""
10086
10087 #. type: textblock
10088 #: ../fish/guestfish-actions.pod:2362 ../src/guestfs-actions.pod:3495
10089 msgid ""
10090 "The install path translated into a libguestfs path.  If unavailable this is "
10091 "returned as an empty string C<\"\">."
10092 msgstr ""
10093
10094 #. type: =item
10095 #: ../fish/guestfish-actions.pod:2365 ../src/guestfs-actions.pod:3498
10096 msgid "C<app_publisher>"
10097 msgstr ""
10098
10099 #. type: textblock
10100 #: ../fish/guestfish-actions.pod:2367 ../src/guestfs-actions.pod:3500
10101 msgid ""
10102 "The name of the publisher of the application, for package managers that use "
10103 "this.  If unavailable this is returned as an empty string C<\"\">."
10104 msgstr ""
10105
10106 #. type: =item
10107 #: ../fish/guestfish-actions.pod:2371 ../src/guestfs-actions.pod:3504
10108 msgid "C<app_url>"
10109 msgstr ""
10110
10111 #. type: textblock
10112 #: ../fish/guestfish-actions.pod:2373 ../src/guestfs-actions.pod:3506
10113 msgid ""
10114 "The URL (eg. upstream URL) of the application.  If unavailable this is "
10115 "returned as an empty string C<\"\">."
10116 msgstr ""
10117
10118 #. type: =item
10119 #: ../fish/guestfish-actions.pod:2376 ../src/guestfs-actions.pod:3509
10120 msgid "C<app_source_package>"
10121 msgstr ""
10122
10123 #. type: textblock
10124 #: ../fish/guestfish-actions.pod:2378 ../src/guestfs-actions.pod:3511
10125 msgid ""
10126 "For packaging systems which support this, the name of the source package.  "
10127 "If unavailable this is returned as an empty string C<\"\">."
10128 msgstr ""
10129
10130 #. type: =item
10131 #: ../fish/guestfish-actions.pod:2381 ../src/guestfs-actions.pod:3514
10132 msgid "C<app_summary>"
10133 msgstr ""
10134
10135 #. type: textblock
10136 #: ../fish/guestfish-actions.pod:2383 ../src/guestfs-actions.pod:3516
10137 msgid ""
10138 "A short (usually one line) description of the application or package.  If "
10139 "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:3519
10144 msgid "C<app_description>"
10145 msgstr ""
10146
10147 #. type: textblock
10148 #: ../fish/guestfish-actions.pod:2388 ../src/guestfs-actions.pod:3521
10149 msgid ""
10150 "A longer description of the application or package.  If unavailable this is "
10151 "returned as an empty string C<\"\">."
10152 msgstr ""
10153
10154 #. type: =head2
10155 #: ../fish/guestfish-actions.pod:2395
10156 msgid "inspect-os"
10157 msgstr ""
10158
10159 #. type: verbatim
10160 #: ../fish/guestfish-actions.pod:2397
10161 #, no-wrap
10162 msgid ""
10163 " inspect-os\n"
10164 "\n"
10165 msgstr ""
10166
10167 #. type: textblock
10168 #: ../fish/guestfish-actions.pod:2399 ../src/guestfs-actions.pod:3539
10169 msgid ""
10170 "This function uses other libguestfs functions and certain heuristics to "
10171 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
10172 "for operating systems."
10173 msgstr ""
10174
10175 #. type: textblock
10176 #: ../fish/guestfish-actions.pod:2403 ../src/guestfs-actions.pod:3543
10177 msgid "The list returned is empty if no operating systems were found."
10178 msgstr ""
10179
10180 #. type: textblock
10181 #: ../fish/guestfish-actions.pod:2405 ../src/guestfs-actions.pod:3545
10182 msgid ""
10183 "If one operating system was found, then this returns a list with a single "
10184 "element, which is the name of the root filesystem of this operating system.  "
10185 "It is also possible for this function to return a list containing more than "
10186 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
10187 "element being the root filesystem of one of the operating systems."
10188 msgstr ""
10189
10190 #. type: textblock
10191 #: ../fish/guestfish-actions.pod:2412
10192 msgid ""
10193 "You can pass the root string(s) returned to other L</inspect-get-*> "
10194 "functions in order to query further information about each operating system, "
10195 "such as the name and version."
10196 msgstr ""
10197
10198 #. type: textblock
10199 #: ../fish/guestfish-actions.pod:2417
10200 msgid ""
10201 "This function uses other libguestfs features such as L</mount-ro> and "
10202 "L</umount-all> in order to mount and unmount filesystems and look at the "
10203 "contents.  This should be called with no disks currently mounted.  The "
10204 "function may also use Augeas, so any existing Augeas handle will be closed."
10205 msgstr ""
10206
10207 #. type: textblock
10208 #: ../fish/guestfish-actions.pod:2423 ../src/guestfs-actions.pod:3563
10209 msgid ""
10210 "This function cannot decrypt encrypted disks.  The caller must do that first "
10211 "(supplying the necessary keys) if the disk is encrypted."
10212 msgstr ""
10213
10214 #. type: textblock
10215 #: ../fish/guestfish-actions.pod:2429 ../fish/guestfish-actions.pod:2627 ../fish/guestfish-actions.pod:2686
10216 msgid "See also L</list-filesystems>."
10217 msgstr ""
10218
10219 #. type: =head2
10220 #: ../fish/guestfish-actions.pod:2431
10221 msgid "is-blockdev"
10222 msgstr ""
10223
10224 #. type: verbatim
10225 #: ../fish/guestfish-actions.pod:2433
10226 #, no-wrap
10227 msgid ""
10228 " is-blockdev path\n"
10229 "\n"
10230 msgstr ""
10231
10232 #. type: textblock
10233 #: ../fish/guestfish-actions.pod:2435 ../src/guestfs-actions.pod:3583
10234 msgid ""
10235 "This returns C<true> if and only if there is a block device with the given "
10236 "C<path> name."
10237 msgstr ""
10238
10239 #. type: textblock
10240 #: ../fish/guestfish-actions.pod:2438 ../fish/guestfish-actions.pod:2456 ../fish/guestfish-actions.pod:2475 ../fish/guestfish-actions.pod:2484 ../fish/guestfish-actions.pod:2494 ../fish/guestfish-actions.pod:2528 ../fish/guestfish-actions.pod:2537
10241 msgid "See also L</stat>."
10242 msgstr ""
10243
10244 #. type: =head2
10245 #: ../fish/guestfish-actions.pod:2440
10246 msgid "is-busy"
10247 msgstr ""
10248
10249 #. type: verbatim
10250 #: ../fish/guestfish-actions.pod:2442
10251 #, no-wrap
10252 msgid ""
10253 " is-busy\n"
10254 "\n"
10255 msgstr ""
10256
10257 #. type: textblock
10258 #: ../fish/guestfish-actions.pod:2444 ../src/guestfs-actions.pod:3597
10259 msgid ""
10260 "This returns true iff this handle is busy processing a command (in the "
10261 "C<BUSY> state)."
10262 msgstr ""
10263
10264 #. type: =head2
10265 #: ../fish/guestfish-actions.pod:2449
10266 msgid "is-chardev"
10267 msgstr ""
10268
10269 #. type: verbatim
10270 #: ../fish/guestfish-actions.pod:2451
10271 #, no-wrap
10272 msgid ""
10273 " is-chardev path\n"
10274 "\n"
10275 msgstr ""
10276
10277 #. type: textblock
10278 #: ../fish/guestfish-actions.pod:2453 ../src/guestfs-actions.pod:3612
10279 msgid ""
10280 "This returns C<true> if and only if there is a character device with the "
10281 "given C<path> name."
10282 msgstr ""
10283
10284 #. type: =head2
10285 #: ../fish/guestfish-actions.pod:2458
10286 msgid "is-config"
10287 msgstr ""
10288
10289 #. type: verbatim
10290 #: ../fish/guestfish-actions.pod:2460
10291 #, no-wrap
10292 msgid ""
10293 " is-config\n"
10294 "\n"
10295 msgstr ""
10296
10297 #. type: textblock
10298 #: ../fish/guestfish-actions.pod:2462 ../src/guestfs-actions.pod:3626
10299 msgid ""
10300 "This returns true iff this handle is being configured (in the C<CONFIG> "
10301 "state)."
10302 msgstr ""
10303
10304 #. type: =head2
10305 #: ../fish/guestfish-actions.pod:2467
10306 msgid "is-dir"
10307 msgstr ""
10308
10309 #. type: verbatim
10310 #: ../fish/guestfish-actions.pod:2469
10311 #, no-wrap
10312 msgid ""
10313 " is-dir path\n"
10314 "\n"
10315 msgstr ""
10316
10317 #. type: textblock
10318 #: ../fish/guestfish-actions.pod:2471 ../src/guestfs-actions.pod:3641
10319 msgid ""
10320 "This returns C<true> if and only if there is a directory with the given "
10321 "C<path> name.  Note that it returns false for other objects like files."
10322 msgstr ""
10323
10324 #. type: =head2
10325 #: ../fish/guestfish-actions.pod:2477
10326 msgid "is-fifo"
10327 msgstr ""
10328
10329 #. type: verbatim
10330 #: ../fish/guestfish-actions.pod:2479
10331 #, no-wrap
10332 msgid ""
10333 " is-fifo path\n"
10334 "\n"
10335 msgstr ""
10336
10337 #. type: textblock
10338 #: ../fish/guestfish-actions.pod:2481 ../src/guestfs-actions.pod:3657
10339 msgid ""
10340 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
10341 "given C<path> name."
10342 msgstr ""
10343
10344 #. type: =head2
10345 #: ../fish/guestfish-actions.pod:2486
10346 msgid "is-file"
10347 msgstr ""
10348
10349 #. type: verbatim
10350 #: ../fish/guestfish-actions.pod:2488
10351 #, no-wrap
10352 msgid ""
10353 " is-file path\n"
10354 "\n"
10355 msgstr ""
10356
10357 #. type: textblock
10358 #: ../fish/guestfish-actions.pod:2490 ../src/guestfs-actions.pod:3672
10359 msgid ""
10360 "This returns C<true> if and only if there is a regular file with the given "
10361 "C<path> name.  Note that it returns false for other objects like "
10362 "directories."
10363 msgstr ""
10364
10365 #. type: =head2
10366 #: ../fish/guestfish-actions.pod:2496
10367 msgid "is-launching"
10368 msgstr ""
10369
10370 #. type: verbatim
10371 #: ../fish/guestfish-actions.pod:2498
10372 #, no-wrap
10373 msgid ""
10374 " is-launching\n"
10375 "\n"
10376 msgstr ""
10377
10378 #. type: textblock
10379 #: ../fish/guestfish-actions.pod:2500 ../src/guestfs-actions.pod:3687
10380 msgid ""
10381 "This returns true iff this handle is launching the subprocess (in the "
10382 "C<LAUNCHING> state)."
10383 msgstr ""
10384
10385 #. type: =head2
10386 #: ../fish/guestfish-actions.pod:2505
10387 msgid "is-lv"
10388 msgstr ""
10389
10390 #. type: verbatim
10391 #: ../fish/guestfish-actions.pod:2507
10392 #, no-wrap
10393 msgid ""
10394 " is-lv device\n"
10395 "\n"
10396 msgstr ""
10397
10398 #. type: textblock
10399 #: ../fish/guestfish-actions.pod:2509 ../src/guestfs-actions.pod:3702
10400 msgid ""
10401 "This command tests whether C<device> is a logical volume, and returns true "
10402 "iff this is the case."
10403 msgstr ""
10404
10405 #. type: =head2
10406 #: ../fish/guestfish-actions.pod:2512
10407 msgid "is-ready"
10408 msgstr ""
10409
10410 #. type: verbatim
10411 #: ../fish/guestfish-actions.pod:2514
10412 #, no-wrap
10413 msgid ""
10414 " is-ready\n"
10415 "\n"
10416 msgstr ""
10417
10418 #. type: textblock
10419 #: ../fish/guestfish-actions.pod:2516 ../src/guestfs-actions.pod:3714
10420 msgid ""
10421 "This returns true iff this handle is ready to accept commands (in the "
10422 "C<READY> state)."
10423 msgstr ""
10424
10425 #. type: =head2
10426 #: ../fish/guestfish-actions.pod:2521
10427 msgid "is-socket"
10428 msgstr ""
10429
10430 #. type: verbatim
10431 #: ../fish/guestfish-actions.pod:2523
10432 #, no-wrap
10433 msgid ""
10434 " is-socket path\n"
10435 "\n"
10436 msgstr ""
10437
10438 #. type: textblock
10439 #: ../fish/guestfish-actions.pod:2525 ../src/guestfs-actions.pod:3729
10440 msgid ""
10441 "This returns C<true> if and only if there is a Unix domain socket with the "
10442 "given C<path> name."
10443 msgstr ""
10444
10445 #. type: =head2
10446 #: ../fish/guestfish-actions.pod:2530
10447 msgid "is-symlink"
10448 msgstr ""
10449
10450 #. type: verbatim
10451 #: ../fish/guestfish-actions.pod:2532
10452 #, no-wrap
10453 msgid ""
10454 " is-symlink path\n"
10455 "\n"
10456 msgstr ""
10457
10458 #. type: textblock
10459 #: ../fish/guestfish-actions.pod:2534 ../src/guestfs-actions.pod:3744
10460 msgid ""
10461 "This returns C<true> if and only if there is a symbolic link with the given "
10462 "C<path> name."
10463 msgstr ""
10464
10465 #. type: =head2
10466 #: ../fish/guestfish-actions.pod:2539
10467 msgid "is-zero"
10468 msgstr ""
10469
10470 #. type: verbatim
10471 #: ../fish/guestfish-actions.pod:2541
10472 #, no-wrap
10473 msgid ""
10474 " is-zero path\n"
10475 "\n"
10476 msgstr ""
10477
10478 #. type: textblock
10479 #: ../fish/guestfish-actions.pod:2543 ../src/guestfs-actions.pod:3759
10480 msgid ""
10481 "This returns true iff the file exists and the file is empty or it contains "
10482 "all zero bytes."
10483 msgstr ""
10484
10485 #. type: =head2
10486 #: ../fish/guestfish-actions.pod:2546
10487 msgid "is-zero-device"
10488 msgstr ""
10489
10490 #. type: verbatim
10491 #: ../fish/guestfish-actions.pod:2548
10492 #, no-wrap
10493 msgid ""
10494 " is-zero-device device\n"
10495 "\n"
10496 msgstr ""
10497
10498 #. type: textblock
10499 #: ../fish/guestfish-actions.pod:2550 ../src/guestfs-actions.pod:3772
10500 msgid "This returns true iff the device exists and contains all zero bytes."
10501 msgstr ""
10502
10503 #. type: textblock
10504 #: ../fish/guestfish-actions.pod:2552 ../src/guestfs-actions.pod:3774
10505 msgid "Note that for large devices this can take a long time to run."
10506 msgstr ""
10507
10508 #. type: =head2
10509 #: ../fish/guestfish-actions.pod:2554
10510 msgid "kill-subprocess"
10511 msgstr ""
10512
10513 #. type: verbatim
10514 #: ../fish/guestfish-actions.pod:2556
10515 #, no-wrap
10516 msgid ""
10517 " kill-subprocess\n"
10518 "\n"
10519 msgstr ""
10520
10521 #. type: textblock
10522 #: ../fish/guestfish-actions.pod:2558 ../src/guestfs-actions.pod:3785
10523 msgid "This kills the qemu subprocess.  You should never need to call this."
10524 msgstr ""
10525
10526 #. type: =head2
10527 #: ../fish/guestfish-actions.pod:2560
10528 msgid "launch"
10529 msgstr ""
10530
10531 #. type: =head2
10532 #: ../fish/guestfish-actions.pod:2562
10533 msgid "run"
10534 msgstr ""
10535
10536 #. type: verbatim
10537 #: ../fish/guestfish-actions.pod:2564
10538 #, no-wrap
10539 msgid ""
10540 " launch\n"
10541 "\n"
10542 msgstr ""
10543
10544 #. type: textblock
10545 #: ../fish/guestfish-actions.pod:2566 ../src/guestfs-actions.pod:3796
10546 msgid ""
10547 "Internally libguestfs is implemented by running a virtual machine using "
10548 "L<qemu(1)>."
10549 msgstr ""
10550
10551 #. type: textblock
10552 #: ../fish/guestfish-actions.pod:2569 ../src/guestfs-actions.pod:3799
10553 msgid ""
10554 "You should call this after configuring the handle (eg. adding drives) but "
10555 "before performing any actions."
10556 msgstr ""
10557
10558 #. type: =head2
10559 #: ../fish/guestfish-actions.pod:2572
10560 msgid "lchown"
10561 msgstr ""
10562
10563 #. type: verbatim
10564 #: ../fish/guestfish-actions.pod:2574
10565 #, no-wrap
10566 msgid ""
10567 " lchown owner group path\n"
10568 "\n"
10569 msgstr ""
10570
10571 #. type: textblock
10572 #: ../fish/guestfish-actions.pod:2576
10573 msgid ""
10574 "Change the file owner to C<owner> and group to C<group>.  This is like "
10575 "L</chown> but if C<path> is a symlink then the link itself is changed, not "
10576 "the target."
10577 msgstr ""
10578
10579 #. type: =head2
10580 #: ../fish/guestfish-actions.pod:2584
10581 msgid "lgetxattr"
10582 msgstr ""
10583
10584 #. type: verbatim
10585 #: ../fish/guestfish-actions.pod:2586
10586 #, no-wrap
10587 msgid ""
10588 " lgetxattr path name\n"
10589 "\n"
10590 msgstr ""
10591
10592 #. type: textblock
10593 #: ../fish/guestfish-actions.pod:2588 ../src/guestfs-actions.pod:3839
10594 msgid ""
10595 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
10596 "is a symlink, then this call returns an extended attribute from the symlink."
10597 msgstr ""
10598
10599 #. type: textblock
10600 #: ../fish/guestfish-actions.pod:2602
10601 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10602 msgstr ""
10603
10604 #. type: =head2
10605 #: ../fish/guestfish-actions.pod:2604
10606 msgid "lgetxattrs"
10607 msgstr ""
10608
10609 #. type: verbatim
10610 #: ../fish/guestfish-actions.pod:2606
10611 #, no-wrap
10612 msgid ""
10613 " lgetxattrs path\n"
10614 "\n"
10615 msgstr ""
10616
10617 #. type: textblock
10618 #: ../fish/guestfish-actions.pod:2608
10619 msgid ""
10620 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
10621 "it returns the extended attributes of the link itself."
10622 msgstr ""
10623
10624 #. type: =head2
10625 #: ../fish/guestfish-actions.pod:2612
10626 msgid "list-9p"
10627 msgstr ""
10628
10629 #. type: verbatim
10630 #: ../fish/guestfish-actions.pod:2614
10631 #, no-wrap
10632 msgid ""
10633 " list-9p\n"
10634 "\n"
10635 msgstr ""
10636
10637 #. type: textblock
10638 #: ../fish/guestfish-actions.pod:2616 ../src/guestfs-actions.pod:3882
10639 msgid ""
10640 "List all 9p filesystems attached to the guest.  A list of mount tags is "
10641 "returned."
10642 msgstr ""
10643
10644 #. type: =head2
10645 #: ../fish/guestfish-actions.pod:2619
10646 msgid "list-devices"
10647 msgstr ""
10648
10649 #. type: verbatim
10650 #: ../fish/guestfish-actions.pod:2621
10651 #, no-wrap
10652 msgid ""
10653 " list-devices\n"
10654 "\n"
10655 msgstr ""
10656
10657 #. type: textblock
10658 #: ../fish/guestfish-actions.pod:2623 ../src/guestfs-actions.pod:3896
10659 msgid "List all the block devices."
10660 msgstr ""
10661
10662 #. type: textblock
10663 #: ../fish/guestfish-actions.pod:2625 ../src/guestfs-actions.pod:3898
10664 msgid "The full block device names are returned, eg. C</dev/sda>."
10665 msgstr ""
10666
10667 #. type: =head2
10668 #: ../fish/guestfish-actions.pod:2629
10669 msgid "list-dm-devices"
10670 msgstr ""
10671
10672 #. type: verbatim
10673 #: ../fish/guestfish-actions.pod:2631
10674 #, no-wrap
10675 msgid ""
10676 " list-dm-devices\n"
10677 "\n"
10678 msgstr ""
10679
10680 #. type: textblock
10681 #: ../fish/guestfish-actions.pod:2633 ../src/guestfs-actions.pod:3913
10682 msgid "List all device mapper devices."
10683 msgstr ""
10684
10685 #. type: textblock
10686 #: ../fish/guestfish-actions.pod:2635
10687 msgid ""
10688 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
10689 "previous call to L</luks-open>."
10690 msgstr ""
10691
10692 #. type: textblock
10693 #: ../fish/guestfish-actions.pod:2638
10694 msgid ""
10695 "Device mapper devices which correspond to logical volumes are I<not> "
10696 "returned in this list.  Call L</lvs> if you want to list logical volumes."
10697 msgstr ""
10698
10699 #. type: =head2
10700 #: ../fish/guestfish-actions.pod:2642
10701 msgid "list-filesystems"
10702 msgstr ""
10703
10704 #. type: verbatim
10705 #: ../fish/guestfish-actions.pod:2644
10706 #, no-wrap
10707 msgid ""
10708 " list-filesystems\n"
10709 "\n"
10710 msgstr ""
10711
10712 #. type: textblock
10713 #: ../fish/guestfish-actions.pod:2646 ../src/guestfs-actions.pod:3933
10714 msgid ""
10715 "This inspection command looks for filesystems on partitions, block devices "
10716 "and logical volumes, returning a list of devices containing filesystems and "
10717 "their type."
10718 msgstr ""
10719
10720 #. type: textblock
10721 #: ../fish/guestfish-actions.pod:2650 ../src/guestfs-actions.pod:3937
10722 msgid ""
10723 "The return value is a hash, where the keys are the devices containing "
10724 "filesystems, and the values are the filesystem types.  For example:"
10725 msgstr ""
10726
10727 #. type: verbatim
10728 #: ../fish/guestfish-actions.pod:2654 ../src/guestfs-actions.pod:3941
10729 #, no-wrap
10730 msgid ""
10731 " \"/dev/sda1\" => \"ntfs\"\n"
10732 " \"/dev/sda2\" => \"ext2\"\n"
10733 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
10734 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
10735 "\n"
10736 msgstr ""
10737
10738 #. type: textblock
10739 #: ../fish/guestfish-actions.pod:2659 ../src/guestfs-actions.pod:3946
10740 msgid ""
10741 "The value can have the special value \"unknown\", meaning the content of the "
10742 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
10743 msgstr ""
10744
10745 #. type: textblock
10746 #: ../fish/guestfish-actions.pod:2663
10747 msgid ""
10748 "This command runs other libguestfs commands, which might include L</mount> "
10749 "and L</umount>, and therefore you should use this soon after launch and only "
10750 "when nothing is mounted."
10751 msgstr ""
10752
10753 #. type: textblock
10754 #: ../fish/guestfish-actions.pod:2667
10755 msgid ""
10756 "Not all of the filesystems returned will be mountable.  In particular, swap "
10757 "partitions are returned in the list.  Also this command does not check that "
10758 "each filesystem found is valid and mountable, and some filesystems might be "
10759 "mountable but require special options.  Filesystems may not all belong to a "
10760 "single logical operating system (use L</inspect-os> to look for OSes)."
10761 msgstr ""
10762
10763 #. type: =head2
10764 #: ../fish/guestfish-actions.pod:2675
10765 msgid "list-partitions"
10766 msgstr ""
10767
10768 #. type: verbatim
10769 #: ../fish/guestfish-actions.pod:2677
10770 #, no-wrap
10771 msgid ""
10772 " list-partitions\n"
10773 "\n"
10774 msgstr ""
10775
10776 #. type: textblock
10777 #: ../fish/guestfish-actions.pod:2679 ../src/guestfs-actions.pod:3975
10778 msgid "List all the partitions detected on all block devices."
10779 msgstr ""
10780
10781 #. type: textblock
10782 #: ../fish/guestfish-actions.pod:2681 ../src/guestfs-actions.pod:3977
10783 msgid "The full partition device names are returned, eg. C</dev/sda1>"
10784 msgstr ""
10785
10786 #. type: textblock
10787 #: ../fish/guestfish-actions.pod:2683
10788 msgid ""
10789 "This does not return logical volumes.  For that you will need to call "
10790 "L</lvs>."
10791 msgstr ""
10792
10793 #. type: =head2
10794 #: ../fish/guestfish-actions.pod:2688
10795 msgid "ll"
10796 msgstr ""
10797
10798 #. type: verbatim
10799 #: ../fish/guestfish-actions.pod:2690
10800 #, no-wrap
10801 msgid ""
10802 " ll directory\n"
10803 "\n"
10804 msgstr ""
10805
10806 #. type: textblock
10807 #: ../fish/guestfish-actions.pod:2692 ../src/guestfs-actions.pod:3996
10808 msgid ""
10809 "List the files in C<directory> (relative to the root directory, there is no "
10810 "cwd) in the format of 'ls -la'."
10811 msgstr ""
10812
10813 #. type: textblock
10814 #: ../fish/guestfish-actions.pod:2695 ../src/guestfs-actions.pod:3999
10815 msgid ""
10816 "This command is mostly useful for interactive sessions.  It is I<not> "
10817 "intended that you try to parse the output string."
10818 msgstr ""
10819
10820 #. type: =head2
10821 #: ../fish/guestfish-actions.pod:2698
10822 msgid "ln"
10823 msgstr ""
10824
10825 #. type: verbatim
10826 #: ../fish/guestfish-actions.pod:2700
10827 #, no-wrap
10828 msgid ""
10829 " ln target linkname\n"
10830 "\n"
10831 msgstr ""
10832
10833 #. type: textblock
10834 #: ../fish/guestfish-actions.pod:2702 ../src/guestfs-actions.pod:4014
10835 msgid "This command creates a hard link using the C<ln> command."
10836 msgstr ""
10837
10838 #. type: =head2
10839 #: ../fish/guestfish-actions.pod:2704
10840 msgid "ln-f"
10841 msgstr ""
10842
10843 #. type: verbatim
10844 #: ../fish/guestfish-actions.pod:2706
10845 #, no-wrap
10846 msgid ""
10847 " ln-f target linkname\n"
10848 "\n"
10849 msgstr ""
10850
10851 #. type: textblock
10852 #: ../fish/guestfish-actions.pod:2708 ../src/guestfs-actions.pod:4027
10853 msgid ""
10854 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
10855 "option removes the link (C<linkname>) if it exists already."
10856 msgstr ""
10857
10858 #. type: =head2
10859 #: ../fish/guestfish-actions.pod:2711
10860 msgid "ln-s"
10861 msgstr ""
10862
10863 #. type: verbatim
10864 #: ../fish/guestfish-actions.pod:2713
10865 #, no-wrap
10866 msgid ""
10867 " ln-s target linkname\n"
10868 "\n"
10869 msgstr ""
10870
10871 #. type: textblock
10872 #: ../fish/guestfish-actions.pod:2715 ../src/guestfs-actions.pod:4041
10873 msgid "This command creates a symbolic link using the C<ln -s> command."
10874 msgstr ""
10875
10876 #. type: =head2
10877 #: ../fish/guestfish-actions.pod:2717
10878 msgid "ln-sf"
10879 msgstr ""
10880
10881 #. type: verbatim
10882 #: ../fish/guestfish-actions.pod:2719
10883 #, no-wrap
10884 msgid ""
10885 " ln-sf target linkname\n"
10886 "\n"
10887 msgstr ""
10888
10889 #. type: textblock
10890 #: ../fish/guestfish-actions.pod:2721 ../src/guestfs-actions.pod:4054
10891 msgid ""
10892 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
10893 "option removes the link (C<linkname>) if it exists already."
10894 msgstr ""
10895
10896 #. type: =head2
10897 #: ../fish/guestfish-actions.pod:2724
10898 msgid "lremovexattr"
10899 msgstr ""
10900
10901 #. type: verbatim
10902 #: ../fish/guestfish-actions.pod:2726
10903 #, no-wrap
10904 msgid ""
10905 " lremovexattr xattr path\n"
10906 "\n"
10907 msgstr ""
10908
10909 #. type: textblock
10910 #: ../fish/guestfish-actions.pod:2728
10911 msgid ""
10912 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
10913 "it removes an extended attribute of the link itself."
10914 msgstr ""
10915
10916 #. type: =head2
10917 #: ../fish/guestfish-actions.pod:2732
10918 msgid "ls"
10919 msgstr ""
10920
10921 #. type: verbatim
10922 #: ../fish/guestfish-actions.pod:2734
10923 #, no-wrap
10924 msgid ""
10925 " ls directory\n"
10926 "\n"
10927 msgstr ""
10928
10929 #. type: textblock
10930 #: ../fish/guestfish-actions.pod:2736 ../src/guestfs-actions.pod:4082
10931 msgid ""
10932 "List the files in C<directory> (relative to the root directory, there is no "
10933 "cwd).  The '.' and '..' entries are not returned, but hidden files are "
10934 "shown."
10935 msgstr ""
10936
10937 #. type: textblock
10938 #: ../fish/guestfish-actions.pod:2740
10939 msgid ""
10940 "This command is mostly useful for interactive sessions.  Programs should "
10941 "probably use L</readdir> instead."
10942 msgstr ""
10943
10944 #. type: =head2
10945 #: ../fish/guestfish-actions.pod:2743
10946 msgid "lsetxattr"
10947 msgstr ""
10948
10949 #. type: verbatim
10950 #: ../fish/guestfish-actions.pod:2745
10951 #, no-wrap
10952 msgid ""
10953 " lsetxattr xattr val vallen path\n"
10954 "\n"
10955 msgstr ""
10956
10957 #. type: textblock
10958 #: ../fish/guestfish-actions.pod:2747
10959 msgid ""
10960 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
10961 "sets an extended attribute of the link itself."
10962 msgstr ""
10963
10964 #. type: =head2
10965 #: ../fish/guestfish-actions.pod:2751
10966 msgid "lstat"
10967 msgstr ""
10968
10969 #. type: verbatim
10970 #: ../fish/guestfish-actions.pod:2753
10971 #, no-wrap
10972 msgid ""
10973 " lstat path\n"
10974 "\n"
10975 msgstr ""
10976
10977 #. type: textblock
10978 #: ../fish/guestfish-actions.pod:2755 ../fish/guestfish-actions.pod:4565 ../src/guestfs-actions.pod:4118 ../src/guestfs-actions.pod:6903
10979 msgid "Returns file information for the given C<path>."
10980 msgstr ""
10981
10982 #. type: textblock
10983 #: ../fish/guestfish-actions.pod:2757
10984 msgid ""
10985 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
10986 "the link is stat-ed, not the file it refers to."
10987 msgstr ""
10988
10989 #. type: textblock
10990 #: ../fish/guestfish-actions.pod:2761 ../src/guestfs-actions.pod:4124
10991 msgid "This is the same as the C<lstat(2)> system call."
10992 msgstr ""
10993
10994 #. type: =head2
10995 #: ../fish/guestfish-actions.pod:2763
10996 msgid "lstatlist"
10997 msgstr ""
10998
10999 #. type: verbatim
11000 #: ../fish/guestfish-actions.pod:2765
11001 #, no-wrap
11002 msgid ""
11003 " lstatlist path 'names ...'\n"
11004 "\n"
11005 msgstr ""
11006
11007 #. type: textblock
11008 #: ../fish/guestfish-actions.pod:2767
11009 msgid ""
11010 "This call allows you to perform the L</lstat> operation on multiple files, "
11011 "where all files are in the directory C<path>.  C<names> is the list of files "
11012 "from this directory."
11013 msgstr ""
11014
11015 #. type: textblock
11016 #: ../fish/guestfish-actions.pod:2771 ../src/guestfs-actions.pod:4143
11017 msgid ""
11018 "On return you get a list of stat structs, with a one-to-one correspondence "
11019 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
11020 "then the C<ino> field of that structure is set to C<-1>."
11021 msgstr ""
11022
11023 #. type: textblock
11024 #: ../fish/guestfish-actions.pod:2776
11025 msgid ""
11026 "This call is intended for programs that want to efficiently list a directory "
11027 "contents without making many round-trips.  See also L</lxattrlist> for a "
11028 "similarly efficient call for getting extended attributes.  Very long "
11029 "directory listings might cause the protocol message size to be exceeded, "
11030 "causing this call to fail.  The caller must split up such requests into "
11031 "smaller groups of names."
11032 msgstr ""
11033
11034 #. type: =head2
11035 #: ../fish/guestfish-actions.pod:2784
11036 msgid "luks-add-key"
11037 msgstr ""
11038
11039 #. type: verbatim
11040 #: ../fish/guestfish-actions.pod:2786
11041 #, no-wrap
11042 msgid ""
11043 " luks-add-key device keyslot\n"
11044 "\n"
11045 msgstr ""
11046
11047 #. type: textblock
11048 #: ../fish/guestfish-actions.pod:2788 ../src/guestfs-actions.pod:4171
11049 msgid ""
11050 "This command adds a new key on LUKS device C<device>.  C<key> is any "
11051 "existing key, and is used to access the device.  C<newkey> is the new key to "
11052 "add.  C<keyslot> is the key slot that will be replaced."
11053 msgstr ""
11054
11055 #. type: textblock
11056 #: ../fish/guestfish-actions.pod:2793
11057 msgid ""
11058 "Note that if C<keyslot> already contains a key, then this command will "
11059 "fail.  You have to use L</luks-kill-slot> first to remove that key."
11060 msgstr ""
11061
11062 #. type: textblock
11063 #: ../fish/guestfish-actions.pod:2797 ../fish/guestfish-actions.pod:2819 ../fish/guestfish-actions.pod:2832 ../fish/guestfish-actions.pod:2846 ../fish/guestfish-actions.pod:2872 ../fish/guestfish-actions.pod:2882
11064 msgid ""
11065 "This command has one or more key or passphrase parameters.  Guestfish will "
11066 "prompt for these separately."
11067 msgstr ""
11068
11069 #. type: =head2
11070 #: ../fish/guestfish-actions.pod:2800
11071 msgid "luks-close"
11072 msgstr ""
11073
11074 #. type: verbatim
11075 #: ../fish/guestfish-actions.pod:2802
11076 #, no-wrap
11077 msgid ""
11078 " luks-close device\n"
11079 "\n"
11080 msgstr ""
11081
11082 #. type: textblock
11083 #: ../fish/guestfish-actions.pod:2804
11084 msgid ""
11085 "This closes a LUKS device that was created earlier by L</luks-open> or "
11086 "L</luks-open-ro>.  The C<device> parameter must be the name of the LUKS "
11087 "mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
11088 "underlying block device."
11089 msgstr ""
11090
11091 #. type: =head2
11092 #: ../fish/guestfish-actions.pod:2810
11093 msgid "luks-format"
11094 msgstr ""
11095
11096 #. type: verbatim
11097 #: ../fish/guestfish-actions.pod:2812
11098 #, no-wrap
11099 msgid ""
11100 " luks-format device keyslot\n"
11101 "\n"
11102 msgstr ""
11103
11104 #. type: textblock
11105 #: ../fish/guestfish-actions.pod:2814 ../src/guestfs-actions.pod:4212
11106 msgid ""
11107 "This command erases existing data on C<device> and formats the device as a "
11108 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
11109 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
11110 msgstr ""
11111
11112 #. type: textblock
11113 #: ../fish/guestfish-actions.pod:2822 ../fish/guestfish-actions.pod:2835 ../fish/guestfish-actions.pod:2922 ../fish/guestfish-actions.pod:3573 ../fish/guestfish-actions.pod:4099 ../fish/guestfish-actions.pod:4436 ../fish/guestfish-actions.pod:4459 ../fish/guestfish-actions.pod:4481 ../fish/guestfish-actions.pod:5227 ../src/guestfs-actions.pod:4219 ../src/guestfs-actions.pod:4242 ../src/guestfs-actions.pod:4385 ../src/guestfs-actions.pod:5478 ../src/guestfs-actions.pod:6266 ../src/guestfs-actions.pod:6717 ../src/guestfs-actions.pod:6747 ../src/guestfs-actions.pod:6780 ../src/guestfs-actions.pod:7979
11114 msgid ""
11115 "B<This command is dangerous.  Without careful use you can easily destroy all "
11116 "your data>."
11117 msgstr ""
11118
11119 #. type: =head2
11120 #: ../fish/guestfish-actions.pod:2825
11121 msgid "luks-format-cipher"
11122 msgstr ""
11123
11124 #. type: verbatim
11125 #: ../fish/guestfish-actions.pod:2827
11126 #, no-wrap
11127 msgid ""
11128 " luks-format-cipher device keyslot cipher\n"
11129 "\n"
11130 msgstr ""
11131
11132 #. type: textblock
11133 #: ../fish/guestfish-actions.pod:2829
11134 msgid ""
11135 "This command is the same as L</luks-format> but it also allows you to set "
11136 "the C<cipher> used."
11137 msgstr ""
11138
11139 #. type: =head2
11140 #: ../fish/guestfish-actions.pod:2838
11141 msgid "luks-kill-slot"
11142 msgstr ""
11143
11144 #. type: verbatim
11145 #: ../fish/guestfish-actions.pod:2840
11146 #, no-wrap
11147 msgid ""
11148 " luks-kill-slot device keyslot\n"
11149 "\n"
11150 msgstr ""
11151
11152 #. type: textblock
11153 #: ../fish/guestfish-actions.pod:2842 ../src/guestfs-actions.pod:4259
11154 msgid ""
11155 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
11156 "device C<device>.  C<key> must be one of the I<other> keys."
11157 msgstr ""
11158
11159 #. type: =head2
11160 #: ../fish/guestfish-actions.pod:2849
11161 msgid "luks-open"
11162 msgstr ""
11163
11164 #. type: verbatim
11165 #: ../fish/guestfish-actions.pod:2851
11166 #, no-wrap
11167 msgid ""
11168 " luks-open device mapname\n"
11169 "\n"
11170 msgstr ""
11171
11172 #. type: textblock
11173 #: ../fish/guestfish-actions.pod:2853 ../src/guestfs-actions.pod:4279
11174 msgid ""
11175 "This command opens a block device which has been encrypted according to the "
11176 "Linux Unified Key Setup (LUKS) standard."
11177 msgstr ""
11178
11179 #. type: textblock
11180 #: ../fish/guestfish-actions.pod:2856 ../src/guestfs-actions.pod:4282
11181 msgid "C<device> is the encrypted block device or partition."
11182 msgstr ""
11183
11184 #. type: textblock
11185 #: ../fish/guestfish-actions.pod:2858 ../src/guestfs-actions.pod:4284
11186 msgid ""
11187 "The caller must supply one of the keys associated with the LUKS block "
11188 "device, in the C<key> parameter."
11189 msgstr ""
11190
11191 #. type: textblock
11192 #: ../fish/guestfish-actions.pod:2861 ../src/guestfs-actions.pod:4287
11193 msgid ""
11194 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
11195 "writes to this block device are decrypted from and encrypted to the "
11196 "underlying C<device> respectively."
11197 msgstr ""
11198
11199 #. type: textblock
11200 #: ../fish/guestfish-actions.pod:2865
11201 msgid ""
11202 "If this block device contains LVM volume groups, then calling L</vgscan> "
11203 "followed by L</vg-activate-all> will make them visible."
11204 msgstr ""
11205
11206 #. type: textblock
11207 #: ../fish/guestfish-actions.pod:2869
11208 msgid "Use L</list-dm-devices> to list all device mapper devices."
11209 msgstr ""
11210
11211 #. type: =head2
11212 #: ../fish/guestfish-actions.pod:2875
11213 msgid "luks-open-ro"
11214 msgstr ""
11215
11216 #. type: verbatim
11217 #: ../fish/guestfish-actions.pod:2877
11218 #, no-wrap
11219 msgid ""
11220 " luks-open-ro device mapname\n"
11221 "\n"
11222 msgstr ""
11223
11224 #. type: textblock
11225 #: ../fish/guestfish-actions.pod:2879
11226 msgid ""
11227 "This is the same as L</luks-open> except that a read-only mapping is "
11228 "created."
11229 msgstr ""
11230
11231 #. type: =head2
11232 #: ../fish/guestfish-actions.pod:2885
11233 msgid "lvcreate"
11234 msgstr ""
11235
11236 #. type: verbatim
11237 #: ../fish/guestfish-actions.pod:2887
11238 #, no-wrap
11239 msgid ""
11240 " lvcreate logvol volgroup mbytes\n"
11241 "\n"
11242 msgstr ""
11243
11244 #. type: textblock
11245 #: ../fish/guestfish-actions.pod:2889 ../src/guestfs-actions.pod:4333
11246 msgid ""
11247 "This creates an LVM logical volume called C<logvol> on the volume group "
11248 "C<volgroup>, with C<size> megabytes."
11249 msgstr ""
11250
11251 #. type: =head2
11252 #: ../fish/guestfish-actions.pod:2892
11253 msgid "lvm-canonical-lv-name"
11254 msgstr ""
11255
11256 #. type: verbatim
11257 #: ../fish/guestfish-actions.pod:2894
11258 #, no-wrap
11259 msgid ""
11260 " lvm-canonical-lv-name lvname\n"
11261 "\n"
11262 msgstr ""
11263
11264 #. type: textblock
11265 #: ../fish/guestfish-actions.pod:2896 ../src/guestfs-actions.pod:4346
11266 msgid ""
11267 "This converts alternative naming schemes for LVs that you might find to the "
11268 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to "
11269 "C</dev/VG/LV>."
11270 msgstr ""
11271
11272 #. type: textblock
11273 #: ../fish/guestfish-actions.pod:2900 ../src/guestfs-actions.pod:4350
11274 msgid ""
11275 "This command returns an error if the C<lvname> parameter does not refer to a "
11276 "logical volume."
11277 msgstr ""
11278
11279 #. type: textblock
11280 #: ../fish/guestfish-actions.pod:2903
11281 msgid "See also L</is-lv>."
11282 msgstr ""
11283
11284 #. type: =head2
11285 #: ../fish/guestfish-actions.pod:2905
11286 msgid "lvm-clear-filter"
11287 msgstr ""
11288
11289 #. type: verbatim
11290 #: ../fish/guestfish-actions.pod:2907
11291 #, no-wrap
11292 msgid ""
11293 " lvm-clear-filter\n"
11294 "\n"
11295 msgstr ""
11296
11297 #. type: textblock
11298 #: ../fish/guestfish-actions.pod:2909
11299 msgid ""
11300 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
11301 "block device."
11302 msgstr ""
11303
11304 #. type: textblock
11305 #: ../fish/guestfish-actions.pod:2912 ../fish/guestfish-actions.pod:2943 ../src/guestfs-actions.pod:4368 ../src/guestfs-actions.pod:4410
11306 msgid "This command also clears the LVM cache and performs a volume group scan."
11307 msgstr ""
11308
11309 #. type: =head2
11310 #: ../fish/guestfish-actions.pod:2915
11311 msgid "lvm-remove-all"
11312 msgstr ""
11313
11314 #. type: verbatim
11315 #: ../fish/guestfish-actions.pod:2917
11316 #, no-wrap
11317 msgid ""
11318 " lvm-remove-all\n"
11319 "\n"
11320 msgstr ""
11321
11322 #. type: textblock
11323 #: ../fish/guestfish-actions.pod:2919 ../src/guestfs-actions.pod:4380
11324 msgid ""
11325 "This command removes all LVM logical volumes, volume groups and physical "
11326 "volumes."
11327 msgstr ""
11328
11329 #. type: =head2
11330 #: ../fish/guestfish-actions.pod:2925
11331 msgid "lvm-set-filter"
11332 msgstr ""
11333
11334 #. type: verbatim
11335 #: ../fish/guestfish-actions.pod:2927
11336 #, no-wrap
11337 msgid ""
11338 " lvm-set-filter 'devices ...'\n"
11339 "\n"
11340 msgstr ""
11341
11342 #. type: textblock
11343 #: ../fish/guestfish-actions.pod:2929 ../src/guestfs-actions.pod:4396
11344 msgid ""
11345 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
11346 "block devices in the list C<devices>, and will ignore all other attached "
11347 "block devices."
11348 msgstr ""
11349
11350 #. type: textblock
11351 #: ../fish/guestfish-actions.pod:2933 ../src/guestfs-actions.pod:4400
11352 msgid ""
11353 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
11354 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
11355 "there are two types of duplication possible: either cloned PVs/VGs which "
11356 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
11357 "same name.  In normal operation you cannot create this situation, but you "
11358 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
11359 "inside the LVM metadata."
11360 msgstr ""
11361
11362 #. type: textblock
11363 #: ../fish/guestfish-actions.pod:2946 ../src/guestfs-actions.pod:4413
11364 msgid "You can filter whole block devices or individual partitions."
11365 msgstr ""
11366
11367 #. type: textblock
11368 #: ../fish/guestfish-actions.pod:2948 ../src/guestfs-actions.pod:4415
11369 msgid ""
11370 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
11371 "filesystem), even if you are not filtering out that VG."
11372 msgstr ""
11373
11374 #. type: =head2
11375 #: ../fish/guestfish-actions.pod:2952
11376 msgid "lvremove"
11377 msgstr ""
11378
11379 #. type: verbatim
11380 #: ../fish/guestfish-actions.pod:2954
11381 #, no-wrap
11382 msgid ""
11383 " lvremove device\n"
11384 "\n"
11385 msgstr ""
11386
11387 #. type: textblock
11388 #: ../fish/guestfish-actions.pod:2956 ../src/guestfs-actions.pod:4429
11389 msgid ""
11390 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
11391 "LV, such as C</dev/VG/LV>."
11392 msgstr ""
11393
11394 #. type: textblock
11395 #: ../fish/guestfish-actions.pod:2959 ../src/guestfs-actions.pod:4432
11396 msgid ""
11397 "You can also remove all LVs in a volume group by specifying the VG name, "
11398 "C</dev/VG>."
11399 msgstr ""
11400
11401 #. type: =head2
11402 #: ../fish/guestfish-actions.pod:2962
11403 msgid "lvrename"
11404 msgstr ""
11405
11406 #. type: verbatim
11407 #: ../fish/guestfish-actions.pod:2964
11408 #, no-wrap
11409 msgid ""
11410 " lvrename logvol newlogvol\n"
11411 "\n"
11412 msgstr ""
11413
11414 #. type: textblock
11415 #: ../fish/guestfish-actions.pod:2966 ../src/guestfs-actions.pod:4446
11416 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
11417 msgstr ""
11418
11419 #. type: =head2
11420 #: ../fish/guestfish-actions.pod:2968
11421 msgid "lvresize"
11422 msgstr ""
11423
11424 #. type: verbatim
11425 #: ../fish/guestfish-actions.pod:2970
11426 #, no-wrap
11427 msgid ""
11428 " lvresize device mbytes\n"
11429 "\n"
11430 msgstr ""
11431
11432 #. type: textblock
11433 #: ../fish/guestfish-actions.pod:2972 ../src/guestfs-actions.pod:4459
11434 msgid ""
11435 "This resizes (expands or shrinks) an existing LVM logical volume to "
11436 "C<mbytes>.  When reducing, data in the reduced part is lost."
11437 msgstr ""
11438
11439 #. type: =head2
11440 #: ../fish/guestfish-actions.pod:2976
11441 msgid "lvresize-free"
11442 msgstr ""
11443
11444 #. type: verbatim
11445 #: ../fish/guestfish-actions.pod:2978
11446 #, no-wrap
11447 msgid ""
11448 " lvresize-free lv percent\n"
11449 "\n"
11450 msgstr ""
11451
11452 #. type: textblock
11453 #: ../fish/guestfish-actions.pod:2980 ../src/guestfs-actions.pod:4474
11454 msgid ""
11455 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
11456 "remaining free space in the volume group.  Commonly you would call this with "
11457 "pc = 100 which expands the logical volume as much as possible, using all "
11458 "remaining free space in the volume group."
11459 msgstr ""
11460
11461 #. type: =head2
11462 #: ../fish/guestfish-actions.pod:2986
11463 msgid "lvs"
11464 msgstr ""
11465
11466 #. type: verbatim
11467 #: ../fish/guestfish-actions.pod:2988
11468 #, no-wrap
11469 msgid ""
11470 " lvs\n"
11471 "\n"
11472 msgstr ""
11473
11474 #. type: textblock
11475 #: ../fish/guestfish-actions.pod:2990 ../src/guestfs-actions.pod:4489
11476 msgid ""
11477 "List all the logical volumes detected.  This is the equivalent of the "
11478 "L<lvs(8)> command."
11479 msgstr ""
11480
11481 #. type: textblock
11482 #: ../fish/guestfish-actions.pod:2993 ../src/guestfs-actions.pod:4492
11483 msgid ""
11484 "This returns a list of the logical volume device names "
11485 "(eg. C</dev/VolGroup00/LogVol00>)."
11486 msgstr ""
11487
11488 #. type: textblock
11489 #: ../fish/guestfish-actions.pod:2996
11490 msgid "See also L</lvs-full>, L</list-filesystems>."
11491 msgstr ""
11492
11493 #. type: =head2
11494 #: ../fish/guestfish-actions.pod:2998
11495 msgid "lvs-full"
11496 msgstr ""
11497
11498 #. type: verbatim
11499 #: ../fish/guestfish-actions.pod:3000
11500 #, no-wrap
11501 msgid ""
11502 " lvs-full\n"
11503 "\n"
11504 msgstr ""
11505
11506 #. type: textblock
11507 #: ../fish/guestfish-actions.pod:3002 ../src/guestfs-actions.pod:4508
11508 msgid ""
11509 "List all the logical volumes detected.  This is the equivalent of the "
11510 "L<lvs(8)> command.  The \"full\" version includes all fields."
11511 msgstr ""
11512
11513 #. type: =head2
11514 #: ../fish/guestfish-actions.pod:3005
11515 msgid "lvuuid"
11516 msgstr ""
11517
11518 #. type: verbatim
11519 #: ../fish/guestfish-actions.pod:3007
11520 #, no-wrap
11521 msgid ""
11522 " lvuuid device\n"
11523 "\n"
11524 msgstr ""
11525
11526 #. type: textblock
11527 #: ../fish/guestfish-actions.pod:3009 ../src/guestfs-actions.pod:4523
11528 msgid "This command returns the UUID of the LVM LV C<device>."
11529 msgstr ""
11530
11531 #. type: =head2
11532 #: ../fish/guestfish-actions.pod:3011
11533 msgid "lxattrlist"
11534 msgstr ""
11535
11536 #. type: verbatim
11537 #: ../fish/guestfish-actions.pod:3013
11538 #, no-wrap
11539 msgid ""
11540 " lxattrlist path 'names ...'\n"
11541 "\n"
11542 msgstr ""
11543
11544 #. type: textblock
11545 #: ../fish/guestfish-actions.pod:3015 ../src/guestfs-actions.pod:4537
11546 msgid ""
11547 "This call allows you to get the extended attributes of multiple files, where "
11548 "all files are in the directory C<path>.  C<names> is the list of files from "
11549 "this directory."
11550 msgstr ""
11551
11552 #. type: textblock
11553 #: ../fish/guestfish-actions.pod:3019 ../src/guestfs-actions.pod:4541
11554 msgid ""
11555 "On return you get a flat list of xattr structs which must be interpreted "
11556 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
11557 "C<attrval> in this struct is zero-length to indicate there was an error "
11558 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
11559 "number (the number of following attributes for this file, which could be "
11560 "C<\"0\">).  Then after the first xattr struct are the zero or more "
11561 "attributes for the first named file.  This repeats for the second and "
11562 "subsequent files."
11563 msgstr ""
11564
11565 #. type: textblock
11566 #: ../fish/guestfish-actions.pod:3029
11567 msgid ""
11568 "This call is intended for programs that want to efficiently list a directory "
11569 "contents without making many round-trips.  See also L</lstatlist> for a "
11570 "similarly efficient call for getting standard stats.  Very long directory "
11571 "listings might cause the protocol message size to be exceeded, causing this "
11572 "call to fail.  The caller must split up such requests into smaller groups of "
11573 "names."
11574 msgstr ""
11575
11576 #. type: =head2
11577 #: ../fish/guestfish-actions.pod:3037
11578 msgid "mkdir"
11579 msgstr ""
11580
11581 #. type: verbatim
11582 #: ../fish/guestfish-actions.pod:3039
11583 #, no-wrap
11584 msgid ""
11585 " mkdir path\n"
11586 "\n"
11587 msgstr ""
11588
11589 #. type: textblock
11590 #: ../fish/guestfish-actions.pod:3041 ../src/guestfs-actions.pod:4571
11591 msgid "Create a directory named C<path>."
11592 msgstr ""
11593
11594 #. type: =head2
11595 #: ../fish/guestfish-actions.pod:3043
11596 msgid "mkdir-mode"
11597 msgstr ""
11598
11599 #. type: verbatim
11600 #: ../fish/guestfish-actions.pod:3045
11601 #, no-wrap
11602 msgid ""
11603 " mkdir-mode path mode\n"
11604 "\n"
11605 msgstr ""
11606
11607 #. type: textblock
11608 #: ../fish/guestfish-actions.pod:3047 ../src/guestfs-actions.pod:4584
11609 msgid ""
11610 "This command creates a directory, setting the initial permissions of the "
11611 "directory to C<mode>."
11612 msgstr ""
11613
11614 #. type: textblock
11615 #: ../fish/guestfish-actions.pod:3050 ../src/guestfs-actions.pod:4587
11616 msgid ""
11617 "For common Linux filesystems, the actual mode which is set will be C<mode & "
11618 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
11619 "other ways."
11620 msgstr ""
11621
11622 #. type: textblock
11623 #: ../fish/guestfish-actions.pod:3054
11624 msgid "See also L</mkdir>, L</umask>"
11625 msgstr ""
11626
11627 #. type: =head2
11628 #: ../fish/guestfish-actions.pod:3056
11629 msgid "mkdir-p"
11630 msgstr ""
11631
11632 #. type: verbatim
11633 #: ../fish/guestfish-actions.pod:3058
11634 #, no-wrap
11635 msgid ""
11636 " mkdir-p path\n"
11637 "\n"
11638 msgstr ""
11639
11640 #. type: textblock
11641 #: ../fish/guestfish-actions.pod:3060 ../src/guestfs-actions.pod:4603
11642 msgid ""
11643 "Create a directory named C<path>, creating any parent directories as "
11644 "necessary.  This is like the C<mkdir -p> shell command."
11645 msgstr ""
11646
11647 #. type: =head2
11648 #: ../fish/guestfish-actions.pod:3063
11649 msgid "mkdtemp"
11650 msgstr ""
11651
11652 #. type: verbatim
11653 #: ../fish/guestfish-actions.pod:3065
11654 #, no-wrap
11655 msgid ""
11656 " mkdtemp template\n"
11657 "\n"
11658 msgstr ""
11659
11660 #. type: textblock
11661 #: ../fish/guestfish-actions.pod:3067 ../src/guestfs-actions.pod:4616
11662 msgid ""
11663 "This command creates a temporary directory.  The C<template> parameter "
11664 "should be a full pathname for the temporary directory name with the final "
11665 "six characters being \"XXXXXX\"."
11666 msgstr ""
11667
11668 #. type: textblock
11669 #: ../fish/guestfish-actions.pod:3072 ../src/guestfs-actions.pod:4621
11670 msgid ""
11671 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
11672 "being suitable for Windows filesystems."
11673 msgstr ""
11674
11675 #. type: textblock
11676 #: ../fish/guestfish-actions.pod:3075 ../src/guestfs-actions.pod:4624
11677 msgid "The name of the temporary directory that was created is returned."
11678 msgstr ""
11679
11680 #. type: textblock
11681 #: ../fish/guestfish-actions.pod:3078 ../src/guestfs-actions.pod:4627
11682 msgid "The temporary directory is created with mode 0700 and is owned by root."
11683 msgstr ""
11684
11685 #. type: textblock
11686 #: ../fish/guestfish-actions.pod:3081 ../src/guestfs-actions.pod:4630
11687 msgid ""
11688 "The caller is responsible for deleting the temporary directory and its "
11689 "contents after use."
11690 msgstr ""
11691
11692 #. type: textblock
11693 #: ../fish/guestfish-actions.pod:3084 ../src/guestfs-actions.pod:4633
11694 msgid "See also: L<mkdtemp(3)>"
11695 msgstr ""
11696
11697 #. type: =head2
11698 #: ../fish/guestfish-actions.pod:3086
11699 msgid "mke2fs-J"
11700 msgstr ""
11701
11702 #. type: verbatim
11703 #: ../fish/guestfish-actions.pod:3088
11704 #, no-wrap
11705 msgid ""
11706 " mke2fs-J fstype blocksize device journal\n"
11707 "\n"
11708 msgstr ""
11709
11710 #. type: textblock
11711 #: ../fish/guestfish-actions.pod:3090 ../src/guestfs-actions.pod:4649
11712 msgid ""
11713 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11714 "C<journal>.  It is equivalent to the command:"
11715 msgstr ""
11716
11717 #. type: verbatim
11718 #: ../fish/guestfish-actions.pod:3094 ../src/guestfs-actions.pod:4653
11719 #, no-wrap
11720 msgid ""
11721 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
11722 "\n"
11723 msgstr ""
11724
11725 #. type: textblock
11726 #: ../fish/guestfish-actions.pod:3096
11727 msgid "See also L</mke2journal>."
11728 msgstr ""
11729
11730 #. type: =head2
11731 #: ../fish/guestfish-actions.pod:3098
11732 msgid "mke2fs-JL"
11733 msgstr ""
11734
11735 #. type: verbatim
11736 #: ../fish/guestfish-actions.pod:3100
11737 #, no-wrap
11738 msgid ""
11739 " mke2fs-JL fstype blocksize device label\n"
11740 "\n"
11741 msgstr ""
11742
11743 #. type: textblock
11744 #: ../fish/guestfish-actions.pod:3102 ../src/guestfs-actions.pod:4670
11745 msgid ""
11746 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11747 "the journal labeled C<label>."
11748 msgstr ""
11749
11750 #. type: textblock
11751 #: ../fish/guestfish-actions.pod:3105
11752 msgid "See also L</mke2journal-L>."
11753 msgstr ""
11754
11755 #. type: =head2
11756 #: ../fish/guestfish-actions.pod:3107
11757 msgid "mke2fs-JU"
11758 msgstr ""
11759
11760 #. type: verbatim
11761 #: ../fish/guestfish-actions.pod:3109
11762 #, no-wrap
11763 msgid ""
11764 " mke2fs-JU fstype blocksize device uuid\n"
11765 "\n"
11766 msgstr ""
11767
11768 #. type: textblock
11769 #: ../fish/guestfish-actions.pod:3111 ../src/guestfs-actions.pod:4688
11770 msgid ""
11771 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11772 "the journal with UUID C<uuid>."
11773 msgstr ""
11774
11775 #. type: textblock
11776 #: ../fish/guestfish-actions.pod:3114
11777 msgid "See also L</mke2journal-U>."
11778 msgstr ""
11779
11780 #. type: =head2
11781 #: ../fish/guestfish-actions.pod:3116
11782 msgid "mke2journal"
11783 msgstr ""
11784
11785 #. type: verbatim
11786 #: ../fish/guestfish-actions.pod:3118
11787 #, no-wrap
11788 msgid ""
11789 " mke2journal blocksize device\n"
11790 "\n"
11791 msgstr ""
11792
11793 #. type: textblock
11794 #: ../fish/guestfish-actions.pod:3120 ../src/guestfs-actions.pod:4704
11795 msgid ""
11796 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
11797 "command:"
11798 msgstr ""
11799
11800 #. type: verbatim
11801 #: ../fish/guestfish-actions.pod:3123 ../src/guestfs-actions.pod:4707
11802 #, no-wrap
11803 msgid ""
11804 " mke2fs -O journal_dev -b blocksize device\n"
11805 "\n"
11806 msgstr ""
11807
11808 #. type: =head2
11809 #: ../fish/guestfish-actions.pod:3125
11810 msgid "mke2journal-L"
11811 msgstr ""
11812
11813 #. type: verbatim
11814 #: ../fish/guestfish-actions.pod:3127
11815 #, no-wrap
11816 msgid ""
11817 " mke2journal-L blocksize label device\n"
11818 "\n"
11819 msgstr ""
11820
11821 #. type: textblock
11822 #: ../fish/guestfish-actions.pod:3129 ../src/guestfs-actions.pod:4721
11823 msgid "This creates an ext2 external journal on C<device> with label C<label>."
11824 msgstr ""
11825
11826 #. type: =head2
11827 #: ../fish/guestfish-actions.pod:3131
11828 msgid "mke2journal-U"
11829 msgstr ""
11830
11831 #. type: verbatim
11832 #: ../fish/guestfish-actions.pod:3133
11833 #, no-wrap
11834 msgid ""
11835 " mke2journal-U blocksize uuid device\n"
11836 "\n"
11837 msgstr ""
11838
11839 #. type: textblock
11840 #: ../fish/guestfish-actions.pod:3135 ../src/guestfs-actions.pod:4735
11841 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
11842 msgstr ""
11843
11844 #. type: =head2
11845 #: ../fish/guestfish-actions.pod:3137
11846 msgid "mkfifo"
11847 msgstr ""
11848
11849 #. type: verbatim
11850 #: ../fish/guestfish-actions.pod:3139
11851 #, no-wrap
11852 msgid ""
11853 " mkfifo mode path\n"
11854 "\n"
11855 msgstr ""
11856
11857 #. type: textblock
11858 #: ../fish/guestfish-actions.pod:3141
11859 msgid ""
11860 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
11861 "is just a convenient wrapper around L</mknod>."
11862 msgstr ""
11863
11864 #. type: =head2
11865 #: ../fish/guestfish-actions.pod:3147
11866 msgid "mkfs"
11867 msgstr ""
11868
11869 #. type: verbatim
11870 #: ../fish/guestfish-actions.pod:3149
11871 #, no-wrap
11872 msgid ""
11873 " mkfs fstype device\n"
11874 "\n"
11875 msgstr ""
11876
11877 #. type: textblock
11878 #: ../fish/guestfish-actions.pod:3151 ../src/guestfs-actions.pod:4765
11879 msgid ""
11880 "This creates a filesystem on C<device> (usually a partition or LVM logical "
11881 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
11882 msgstr ""
11883
11884 #. type: =head2
11885 #: ../fish/guestfish-actions.pod:3155
11886 msgid "mkfs-b"
11887 msgstr ""
11888
11889 #. type: verbatim
11890 #: ../fish/guestfish-actions.pod:3157
11891 #, no-wrap
11892 msgid ""
11893 " mkfs-b fstype blocksize device\n"
11894 "\n"
11895 msgstr ""
11896
11897 #. type: textblock
11898 #: ../fish/guestfish-actions.pod:3159
11899 msgid ""
11900 "This call is similar to L</mkfs>, but it allows you to control the block "
11901 "size of the resulting filesystem.  Supported block sizes depend on the "
11902 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
11903 msgstr ""
11904
11905 #. type: textblock
11906 #: ../fish/guestfish-actions.pod:3164 ../fish/guestfish-actions.pod:3191 ../src/guestfs-actions.pod:4793 ../src/guestfs-actions.pod:4831
11907 msgid ""
11908 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
11909 "cluster size."
11910 msgstr ""
11911
11912 #. type: textblock
11913 #: ../fish/guestfish-actions.pod:3167
11914 msgid ""
11915 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
11916 "instead."
11917 msgstr ""
11918
11919 #. type: =head2
11920 #: ../fish/guestfish-actions.pod:3174
11921 msgid "mkfs-opts"
11922 msgstr ""
11923
11924 #. type: verbatim
11925 #: ../fish/guestfish-actions.pod:3176
11926 #, no-wrap
11927 msgid ""
11928 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] "
11929 "[sectorsize:..]\n"
11930 "\n"
11931 msgstr ""
11932
11933 #. type: textblock
11934 #: ../fish/guestfish-actions.pod:3178 ../src/guestfs-actions.pod:4818
11935 msgid ""
11936 "This function creates a filesystem on C<device>.  The filesystem type is "
11937 "C<fstype>, for example C<ext3>."
11938 msgstr ""
11939
11940 #. type: =item
11941 #: ../fish/guestfish-actions.pod:3185 ../src/guestfs-actions.pod:4825
11942 msgid "C<blocksize>"
11943 msgstr ""
11944
11945 #. type: textblock
11946 #: ../fish/guestfish-actions.pod:3187 ../src/guestfs-actions.pod:4827
11947 msgid ""
11948 "The filesystem block size.  Supported block sizes depend on the filesystem "
11949 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
11950 "filesystems."
11951 msgstr ""
11952
11953 #. type: textblock
11954 #: ../fish/guestfish-actions.pod:3194 ../src/guestfs-actions.pod:4834
11955 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
11956 msgstr ""
11957
11958 #. type: =item
11959 #: ../fish/guestfish-actions.pod:3196 ../src/guestfs-actions.pod:4836
11960 msgid "C<features>"
11961 msgstr ""
11962
11963 #. type: textblock
11964 #: ../fish/guestfish-actions.pod:3198 ../src/guestfs-actions.pod:4838
11965 msgid "This passes the I<-O> parameter to the external mkfs program."
11966 msgstr ""
11967
11968 #. type: textblock
11969 #: ../fish/guestfish-actions.pod:3200 ../src/guestfs-actions.pod:4840
11970 msgid ""
11971 "For certain filesystem types, this allows extra filesystem features to be "
11972 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
11973 msgstr ""
11974
11975 #. type: textblock
11976 #: ../fish/guestfish-actions.pod:3204 ../src/guestfs-actions.pod:4844
11977 msgid ""
11978 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
11979 "type."
11980 msgstr ""
11981
11982 #. type: =item
11983 #: ../fish/guestfish-actions.pod:3207 ../src/guestfs-actions.pod:4847
11984 msgid "C<inode>"
11985 msgstr ""
11986
11987 #. type: textblock
11988 #: ../fish/guestfish-actions.pod:3209 ../src/guestfs-actions.pod:4849
11989 msgid ""
11990 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
11991 "sets the inode size (only for ext2/3/4 filesystems at present)."
11992 msgstr ""
11993
11994 #. type: =item
11995 #: ../fish/guestfish-actions.pod:3212 ../src/guestfs-actions.pod:4852
11996 msgid "C<sectorsize>"
11997 msgstr ""
11998
11999 #. type: textblock
12000 #: ../fish/guestfish-actions.pod:3214 ../src/guestfs-actions.pod:4854
12001 msgid ""
12002 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
12003 "sets sector size for ufs filesystem."
12004 msgstr ""
12005
12006 #. type: =head2
12007 #: ../fish/guestfish-actions.pod:3221
12008 msgid "mkmountpoint"
12009 msgstr ""
12010
12011 #. type: verbatim
12012 #: ../fish/guestfish-actions.pod:3223
12013 #, no-wrap
12014 msgid ""
12015 " mkmountpoint exemptpath\n"
12016 "\n"
12017 msgstr ""
12018
12019 #. type: textblock
12020 #: ../fish/guestfish-actions.pod:3225
12021 msgid ""
12022 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
12023 "to create extra mountpoints before mounting the first filesystem."
12024 msgstr ""
12025
12026 #. type: textblock
12027 #: ../fish/guestfish-actions.pod:3229 ../src/guestfs-actions.pod:4897
12028 msgid ""
12029 "These calls are I<only> necessary in some very limited circumstances, mainly "
12030 "the case where you want to mount a mix of unrelated and/or read-only "
12031 "filesystems together."
12032 msgstr ""
12033
12034 #. type: textblock
12035 #: ../fish/guestfish-actions.pod:3233 ../src/guestfs-actions.pod:4901
12036 msgid ""
12037 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
12038 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
12039 "inside that.  You can unpack this as follows in guestfish:"
12040 msgstr ""
12041
12042 #. type: verbatim
12043 #: ../fish/guestfish-actions.pod:3238 ../src/guestfs-actions.pod:4906
12044 #, no-wrap
12045 msgid ""
12046 " add-ro Fedora-11-i686-Live.iso\n"
12047 " run\n"
12048 " mkmountpoint /cd\n"
12049 " mkmountpoint /sqsh\n"
12050 " mkmountpoint /ext3fs\n"
12051 " mount /dev/sda /cd\n"
12052 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
12053 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
12054 "\n"
12055 msgstr ""
12056
12057 #. type: textblock
12058 #: ../fish/guestfish-actions.pod:3247 ../src/guestfs-actions.pod:4915
12059 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
12060 msgstr ""
12061
12062 #. type: textblock
12063 #: ../fish/guestfish-actions.pod:3249
12064 msgid ""
12065 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
12066 "unexpected errors if you try to mix these calls.  It is safest to manually "
12067 "unmount filesystems and remove mountpoints after use."
12068 msgstr ""
12069
12070 #. type: textblock
12071 #: ../fish/guestfish-actions.pod:3253
12072 msgid ""
12073 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
12074 "for this to work for manual mountpoints, you must ensure that the innermost "
12075 "mountpoints have the longest pathnames, as in the example code above."
12076 msgstr ""
12077
12078 #. type: textblock
12079 #: ../fish/guestfish-actions.pod:3258 ../src/guestfs-actions.pod:4926
12080 msgid "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
12081 msgstr ""
12082
12083 #. type: textblock
12084 #: ../fish/guestfish-actions.pod:3260
12085 msgid ""
12086 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
12087 "L</umount-all> to be called when the handle is closed which can also trigger "
12088 "these issues."
12089 msgstr ""
12090
12091 #. type: =head2
12092 #: ../fish/guestfish-actions.pod:3264
12093 msgid "mknod"
12094 msgstr ""
12095
12096 #. type: verbatim
12097 #: ../fish/guestfish-actions.pod:3266
12098 #, no-wrap
12099 msgid ""
12100 " mknod mode devmajor devminor path\n"
12101 "\n"
12102 msgstr ""
12103
12104 #. type: textblock
12105 #: ../fish/guestfish-actions.pod:3268 ../src/guestfs-actions.pod:4945
12106 msgid ""
12107 "This call creates block or character special devices, or named pipes "
12108 "(FIFOs)."
12109 msgstr ""
12110
12111 #. type: textblock
12112 #: ../fish/guestfish-actions.pod:3271 ../src/guestfs-actions.pod:4948
12113 msgid ""
12114 "The C<mode> parameter should be the mode, using the standard constants.  "
12115 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
12116 "used when creating block and character special devices."
12117 msgstr ""
12118
12119 #. type: textblock
12120 #: ../fish/guestfish-actions.pod:3276
12121 msgid ""
12122 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
12123 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
12124 "regular file).  These constants are available in the standard Linux header "
12125 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
12126 "wrappers around this command which bitwise OR in the appropriate constant "
12127 "for you."
12128 msgstr ""
12129
12130 #. type: =head2
12131 #: ../fish/guestfish-actions.pod:3286
12132 msgid "mknod-b"
12133 msgstr ""
12134
12135 #. type: verbatim
12136 #: ../fish/guestfish-actions.pod:3288
12137 #, no-wrap
12138 msgid ""
12139 " mknod-b mode devmajor devminor path\n"
12140 "\n"
12141 msgstr ""
12142
12143 #. type: textblock
12144 #: ../fish/guestfish-actions.pod:3290
12145 msgid ""
12146 "This call creates a block device node called C<path> with mode C<mode> and "
12147 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
12148 "wrapper around L</mknod>."
12149 msgstr ""
12150
12151 #. type: =head2
12152 #: ../fish/guestfish-actions.pod:3296
12153 msgid "mknod-c"
12154 msgstr ""
12155
12156 #. type: verbatim
12157 #: ../fish/guestfish-actions.pod:3298
12158 #, no-wrap
12159 msgid ""
12160 " mknod-c mode devmajor devminor path\n"
12161 "\n"
12162 msgstr ""
12163
12164 #. type: textblock
12165 #: ../fish/guestfish-actions.pod:3300
12166 msgid ""
12167 "This call creates a char device node called C<path> with mode C<mode> and "
12168 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
12169 "wrapper around L</mknod>."
12170 msgstr ""
12171
12172 #. type: =head2
12173 #: ../fish/guestfish-actions.pod:3306
12174 msgid "mkswap"
12175 msgstr ""
12176
12177 #. type: verbatim
12178 #: ../fish/guestfish-actions.pod:3308
12179 #, no-wrap
12180 msgid ""
12181 " mkswap device\n"
12182 "\n"
12183 msgstr ""
12184
12185 #. type: textblock
12186 #: ../fish/guestfish-actions.pod:3310 ../src/guestfs-actions.pod:5011
12187 msgid "Create a swap partition on C<device>."
12188 msgstr ""
12189
12190 #. type: =head2
12191 #: ../fish/guestfish-actions.pod:3312
12192 msgid "mkswap-L"
12193 msgstr ""
12194
12195 #. type: verbatim
12196 #: ../fish/guestfish-actions.pod:3314
12197 #, no-wrap
12198 msgid ""
12199 " mkswap-L label device\n"
12200 "\n"
12201 msgstr ""
12202
12203 #. type: textblock
12204 #: ../fish/guestfish-actions.pod:3316 ../src/guestfs-actions.pod:5024
12205 msgid "Create a swap partition on C<device> with label C<label>."
12206 msgstr ""
12207
12208 #. type: textblock
12209 #: ../fish/guestfish-actions.pod:3318 ../src/guestfs-actions.pod:5026
12210 msgid ""
12211 "Note that you cannot attach a swap label to a block device "
12212 "(eg. C</dev/sda>), just to a partition.  This appears to be a limitation of "
12213 "the kernel or swap tools."
12214 msgstr ""
12215
12216 #. type: =head2
12217 #: ../fish/guestfish-actions.pod:3322
12218 msgid "mkswap-U"
12219 msgstr ""
12220
12221 #. type: verbatim
12222 #: ../fish/guestfish-actions.pod:3324
12223 #, no-wrap
12224 msgid ""
12225 " mkswap-U uuid device\n"
12226 "\n"
12227 msgstr ""
12228
12229 #. type: textblock
12230 #: ../fish/guestfish-actions.pod:3326 ../src/guestfs-actions.pod:5041
12231 msgid "Create a swap partition on C<device> with UUID C<uuid>."
12232 msgstr ""
12233
12234 #. type: =head2
12235 #: ../fish/guestfish-actions.pod:3328
12236 msgid "mkswap-file"
12237 msgstr ""
12238
12239 #. type: verbatim
12240 #: ../fish/guestfish-actions.pod:3330
12241 #, no-wrap
12242 msgid ""
12243 " mkswap-file path\n"
12244 "\n"
12245 msgstr ""
12246
12247 #. type: textblock
12248 #: ../fish/guestfish-actions.pod:3332 ../src/guestfs-actions.pod:5053
12249 msgid "Create a swap file."
12250 msgstr ""
12251
12252 #. type: textblock
12253 #: ../fish/guestfish-actions.pod:3334
12254 msgid ""
12255 "This command just writes a swap file signature to an existing file.  To "
12256 "create the file itself, use something like L</fallocate>."
12257 msgstr ""
12258
12259 #. type: =head2
12260 #: ../fish/guestfish-actions.pod:3337
12261 msgid "modprobe"
12262 msgstr ""
12263
12264 #. type: verbatim
12265 #: ../fish/guestfish-actions.pod:3339
12266 #, no-wrap
12267 msgid ""
12268 " modprobe modulename\n"
12269 "\n"
12270 msgstr ""
12271
12272 #. type: textblock
12273 #: ../fish/guestfish-actions.pod:3341 ../src/guestfs-actions.pod:5068
12274 msgid "This loads a kernel module in the appliance."
12275 msgstr ""
12276
12277 #. type: textblock
12278 #: ../fish/guestfish-actions.pod:3343 ../src/guestfs-actions.pod:5070
12279 msgid ""
12280 "The kernel module must have been whitelisted when libguestfs was built (see "
12281 "C<appliance/kmod.whitelist.in> in the source)."
12282 msgstr ""
12283
12284 #. type: =head2
12285 #: ../fish/guestfish-actions.pod:3346
12286 msgid "mount"
12287 msgstr ""
12288
12289 #. type: verbatim
12290 #: ../fish/guestfish-actions.pod:3348
12291 #, no-wrap
12292 msgid ""
12293 " mount device mountpoint\n"
12294 "\n"
12295 msgstr ""
12296
12297 #. type: textblock
12298 #: ../fish/guestfish-actions.pod:3350 ../src/guestfs-actions.pod:5084
12299 msgid ""
12300 "Mount a guest disk at a position in the filesystem.  Block devices are named "
12301 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
12302 "those block devices contain partitions, they will have the usual names "
12303 "(eg. C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
12304 msgstr ""
12305
12306 #. type: textblock
12307 #: ../fish/guestfish-actions.pod:3356 ../src/guestfs-actions.pod:5090
12308 msgid ""
12309 "The rules are the same as for L<mount(2)>: A filesystem must first be "
12310 "mounted on C</> before others can be mounted.  Other filesystems can only be "
12311 "mounted on directories which already exist."
12312 msgstr ""
12313
12314 #. type: textblock
12315 #: ../fish/guestfish-actions.pod:3361 ../src/guestfs-actions.pod:5095
12316 msgid ""
12317 "The mounted filesystem is writable, if we have sufficient permissions on the "
12318 "underlying device."
12319 msgstr ""
12320
12321 #. type: textblock
12322 #: ../fish/guestfish-actions.pod:3364
12323 msgid ""
12324 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
12325 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
12326 "problems for users.  If your program might need to work with older versions "
12327 "of libguestfs, use L</mount-options> instead (using an empty string for the "
12328 "first parameter if you don't want any options)."
12329 msgstr ""
12330
12331 #. type: =head2
12332 #: ../fish/guestfish-actions.pod:3371
12333 msgid "mount-9p"
12334 msgstr ""
12335
12336 #. type: verbatim
12337 #: ../fish/guestfish-actions.pod:3373
12338 #, no-wrap
12339 msgid ""
12340 " mount-9p mounttag mountpoint [options:..]\n"
12341 "\n"
12342 msgstr ""
12343
12344 #. type: textblock
12345 #: ../fish/guestfish-actions.pod:3375 ../src/guestfs-actions.pod:5124
12346 msgid ""
12347 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
12348 "C<mountpoint>."
12349 msgstr ""
12350
12351 #. type: textblock
12352 #: ../fish/guestfish-actions.pod:3378 ../src/guestfs-actions.pod:5127
12353 msgid ""
12354 "If required, C<trans=virtio> will be automatically added to the options.  "
12355 "Any other options required can be passed in the optional C<options> "
12356 "parameter."
12357 msgstr ""
12358
12359 #. type: =head2
12360 #: ../fish/guestfish-actions.pod:3384
12361 msgid "mount-loop"
12362 msgstr ""
12363
12364 #. type: verbatim
12365 #: ../fish/guestfish-actions.pod:3386
12366 #, no-wrap
12367 msgid ""
12368 " mount-loop file mountpoint\n"
12369 "\n"
12370 msgstr ""
12371
12372 #. type: textblock
12373 #: ../fish/guestfish-actions.pod:3388 ../src/guestfs-actions.pod:5166
12374 msgid ""
12375 "This command lets you mount C<file> (a filesystem image in a file) on a "
12376 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
12377 "mountpoint>."
12378 msgstr ""
12379
12380 #. type: =head2
12381 #: ../fish/guestfish-actions.pod:3392
12382 msgid "mount-options"
12383 msgstr ""
12384
12385 #. type: verbatim
12386 #: ../fish/guestfish-actions.pod:3394
12387 #, no-wrap
12388 msgid ""
12389 " mount-options options device mountpoint\n"
12390 "\n"
12391 msgstr ""
12392
12393 #. type: textblock
12394 #: ../fish/guestfish-actions.pod:3396
12395 msgid ""
12396 "This is the same as the L</mount> command, but it allows you to set the "
12397 "mount options as for the L<mount(8)> I<-o> flag."
12398 msgstr ""
12399
12400 #. type: textblock
12401 #: ../fish/guestfish-actions.pod:3400 ../src/guestfs-actions.pod:5186
12402 msgid ""
12403 "If the C<options> parameter is an empty string, then no options are passed "
12404 "(all options default to whatever the filesystem uses)."
12405 msgstr ""
12406
12407 #. type: =head2
12408 #: ../fish/guestfish-actions.pod:3404
12409 msgid "mount-ro"
12410 msgstr ""
12411
12412 #. type: verbatim
12413 #: ../fish/guestfish-actions.pod:3406
12414 #, no-wrap
12415 msgid ""
12416 " mount-ro device mountpoint\n"
12417 "\n"
12418 msgstr ""
12419
12420 #. type: textblock
12421 #: ../fish/guestfish-actions.pod:3408
12422 msgid ""
12423 "This is the same as the L</mount> command, but it mounts the filesystem with "
12424 "the read-only (I<-o ro>) flag."
12425 msgstr ""
12426
12427 #. type: =head2
12428 #: ../fish/guestfish-actions.pod:3411
12429 msgid "mount-vfs"
12430 msgstr ""
12431
12432 #. type: verbatim
12433 #: ../fish/guestfish-actions.pod:3413
12434 #, no-wrap
12435 msgid ""
12436 " mount-vfs options vfstype device mountpoint\n"
12437 "\n"
12438 msgstr ""
12439
12440 #. type: textblock
12441 #: ../fish/guestfish-actions.pod:3415
12442 msgid ""
12443 "This is the same as the L</mount> command, but it allows you to set both the "
12444 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
12445 msgstr ""
12446
12447 #. type: =head2
12448 #: ../fish/guestfish-actions.pod:3419
12449 msgid "mountpoints"
12450 msgstr ""
12451
12452 #. type: verbatim
12453 #: ../fish/guestfish-actions.pod:3421
12454 #, no-wrap
12455 msgid ""
12456 " mountpoints\n"
12457 "\n"
12458 msgstr ""
12459
12460 #. type: textblock
12461 #: ../fish/guestfish-actions.pod:3423
12462 msgid ""
12463 "This call is similar to L</mounts>.  That call returns a list of devices.  "
12464 "This one returns a hash table (map) of device name to directory where the "
12465 "device is mounted."
12466 msgstr ""
12467
12468 #. type: =head2
12469 #: ../fish/guestfish-actions.pod:3427
12470 msgid "mounts"
12471 msgstr ""
12472
12473 #. type: verbatim
12474 #: ../fish/guestfish-actions.pod:3429
12475 #, no-wrap
12476 msgid ""
12477 " mounts\n"
12478 "\n"
12479 msgstr ""
12480
12481 #. type: textblock
12482 #: ../fish/guestfish-actions.pod:3431 ../src/guestfs-actions.pod:5247
12483 msgid ""
12484 "This returns the list of currently mounted filesystems.  It returns the list "
12485 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
12486 msgstr ""
12487
12488 #. type: textblock
12489 #: ../fish/guestfish-actions.pod:3434 ../src/guestfs-actions.pod:5250
12490 msgid "Some internal mounts are not shown."
12491 msgstr ""
12492
12493 #. type: textblock
12494 #: ../fish/guestfish-actions.pod:3436
12495 msgid "See also: L</mountpoints>"
12496 msgstr ""
12497
12498 #. type: =head2
12499 #: ../fish/guestfish-actions.pod:3438
12500 msgid "mv"
12501 msgstr ""
12502
12503 #. type: verbatim
12504 #: ../fish/guestfish-actions.pod:3440
12505 #, no-wrap
12506 msgid ""
12507 " mv src dest\n"
12508 "\n"
12509 msgstr ""
12510
12511 #. type: textblock
12512 #: ../fish/guestfish-actions.pod:3442 ../src/guestfs-actions.pod:5267
12513 msgid ""
12514 "This moves a file from C<src> to C<dest> where C<dest> is either a "
12515 "destination filename or destination directory."
12516 msgstr ""
12517
12518 #. type: =head2
12519 #: ../fish/guestfish-actions.pod:3445
12520 msgid "ntfs-3g-probe"
12521 msgstr ""
12522
12523 #. type: verbatim
12524 #: ../fish/guestfish-actions.pod:3447
12525 #, no-wrap
12526 msgid ""
12527 " ntfs-3g-probe true|false device\n"
12528 "\n"
12529 msgstr ""
12530
12531 #. type: textblock
12532 #: ../fish/guestfish-actions.pod:3449 ../src/guestfs-actions.pod:5281
12533 msgid ""
12534 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
12535 "C<device> for mountability.  (Not all NTFS volumes can be mounted "
12536 "read-write, and some cannot be mounted at all)."
12537 msgstr ""
12538
12539 #. type: textblock
12540 #: ../fish/guestfish-actions.pod:3453 ../src/guestfs-actions.pod:5285
12541 msgid ""
12542 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
12543 "can be mounted read-write.  Set it to false if you want to test if the "
12544 "volume can be mounted read-only."
12545 msgstr ""
12546
12547 #. type: textblock
12548 #: ../fish/guestfish-actions.pod:3457 ../src/guestfs-actions.pod:5289
12549 msgid ""
12550 "The return value is an integer which C<0> if the operation would succeed, or "
12551 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
12552 msgstr ""
12553
12554 #. type: =head2
12555 #: ../fish/guestfish-actions.pod:3461
12556 msgid "ntfsresize"
12557 msgstr ""
12558
12559 #. type: verbatim
12560 #: ../fish/guestfish-actions.pod:3463
12561 #, no-wrap
12562 msgid ""
12563 " ntfsresize device\n"
12564 "\n"
12565 msgstr ""
12566
12567 #. type: textblock
12568 #: ../fish/guestfish-actions.pod:3465 ../fish/guestfish-actions.pod:3489 ../src/guestfs-actions.pod:5310 ../src/guestfs-actions.pod:5342
12569 msgid ""
12570 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
12571 "size of the underlying device."
12572 msgstr ""
12573
12574 #. type: textblock
12575 #: ../fish/guestfish-actions.pod:3468 ../src/guestfs-actions.pod:5313
12576 msgid ""
12577 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
12578 "consistency check (for safety).  You have to boot into Windows to perform "
12579 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
12580 "resize filesystems which have been marked in this way.  So in effect it is "
12581 "not possible to call ntfsresize multiple times on a single filesystem "
12582 "without booting into Windows between each resize."
12583 msgstr ""
12584
12585 #. type: textblock
12586 #: ../fish/guestfish-actions.pod:3476 ../fish/guestfish-actions.pod:3515 ../src/guestfs-actions.pod:5321 ../src/guestfs-actions.pod:5368
12587 msgid "See also L<ntfsresize(8)>."
12588 msgstr ""
12589
12590 #. type: textblock
12591 #: ../fish/guestfish-actions.pod:3478 ../fish/guestfish-actions.pod:3526
12592 msgid ""
12593 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
12594 "call instead."
12595 msgstr ""
12596
12597 #. type: =head2
12598 #: ../fish/guestfish-actions.pod:3485
12599 msgid "ntfsresize-opts"
12600 msgstr ""
12601
12602 #. type: verbatim
12603 #: ../fish/guestfish-actions.pod:3487
12604 #, no-wrap
12605 msgid ""
12606 " ntfsresize-opts device [size:..] [force:..]\n"
12607 "\n"
12608 msgstr ""
12609
12610 #. type: textblock
12611 #: ../fish/guestfish-actions.pod:3498 ../src/guestfs-actions.pod:5351
12612 msgid ""
12613 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
12614 "resized to fit the container (eg. partition)."
12615 msgstr ""
12616
12617 #. type: =item
12618 #: ../fish/guestfish-actions.pod:3501 ../src/guestfs-actions.pod:5354
12619 msgid "C<force>"
12620 msgstr ""
12621
12622 #. type: textblock
12623 #: ../fish/guestfish-actions.pod:3503 ../src/guestfs-actions.pod:5356
12624 msgid ""
12625 "If this option is true, then force the resize of the filesystem even if the "
12626 "filesystem is marked as requiring a consistency check."
12627 msgstr ""
12628
12629 #. type: textblock
12630 #: ../fish/guestfish-actions.pod:3506
12631 msgid ""
12632 "After the resize operation, the filesystem is always marked as requiring a "
12633 "consistency check (for safety).  You have to boot into Windows to perform "
12634 "this check and clear this condition.  If you I<don't> set the C<force> "
12635 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
12636 "a single filesystem without booting into Windows between each resize."
12637 msgstr ""
12638
12639 #. type: =head2
12640 #: ../fish/guestfish-actions.pod:3519
12641 msgid "ntfsresize-size"
12642 msgstr ""
12643
12644 #. type: verbatim
12645 #: ../fish/guestfish-actions.pod:3521
12646 #, no-wrap
12647 msgid ""
12648 " ntfsresize-size device size\n"
12649 "\n"
12650 msgstr ""
12651
12652 #. type: textblock
12653 #: ../fish/guestfish-actions.pod:3523
12654 msgid ""
12655 "This command is the same as L</ntfsresize> except that it allows you to "
12656 "specify the new size (in bytes) explicitly."
12657 msgstr ""
12658
12659 #. type: =head2
12660 #: ../fish/guestfish-actions.pod:3533
12661 msgid "part-add"
12662 msgstr ""
12663
12664 #. type: verbatim
12665 #: ../fish/guestfish-actions.pod:3535
12666 #, no-wrap
12667 msgid ""
12668 " part-add device prlogex startsect endsect\n"
12669 "\n"
12670 msgstr ""
12671
12672 #. type: textblock
12673 #: ../fish/guestfish-actions.pod:3537
12674 msgid ""
12675 "This command adds a partition to C<device>.  If there is no partition table "
12676 "on the device, call L</part-init> first."
12677 msgstr ""
12678
12679 #. type: textblock
12680 #: ../fish/guestfish-actions.pod:3540 ../src/guestfs-actions.pod:5429
12681 msgid ""
12682 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
12683 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
12684 "C<logical>) and C<e> (or C<extended>) partition types."
12685 msgstr ""
12686
12687 #. type: textblock
12688 #: ../fish/guestfish-actions.pod:3545 ../src/guestfs-actions.pod:5434
12689 msgid ""
12690 "C<startsect> and C<endsect> are the start and end of the partition in "
12691 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
12692 "from the end of the disk (C<-1> is the last sector)."
12693 msgstr ""
12694
12695 #. type: textblock
12696 #: ../fish/guestfish-actions.pod:3549
12697 msgid ""
12698 "Creating a partition which covers the whole disk is not so easy.  Use "
12699 "L</part-disk> to do that."
12700 msgstr ""
12701
12702 #. type: =head2
12703 #: ../fish/guestfish-actions.pod:3552
12704 msgid "part-del"
12705 msgstr ""
12706
12707 #. type: verbatim
12708 #: ../fish/guestfish-actions.pod:3554
12709 #, no-wrap
12710 msgid ""
12711 " part-del device partnum\n"
12712 "\n"
12713 msgstr ""
12714
12715 #. type: textblock
12716 #: ../fish/guestfish-actions.pod:3556 ../src/guestfs-actions.pod:5452
12717 msgid "This command deletes the partition numbered C<partnum> on C<device>."
12718 msgstr ""
12719
12720 #. type: textblock
12721 #: ../fish/guestfish-actions.pod:3558 ../src/guestfs-actions.pod:5454
12722 msgid ""
12723 "Note that in the case of MBR partitioning, deleting an extended partition "
12724 "also deletes any logical partitions it contains."
12725 msgstr ""
12726
12727 #. type: =head2
12728 #: ../fish/guestfish-actions.pod:3562
12729 msgid "part-disk"
12730 msgstr ""
12731
12732 #. type: verbatim
12733 #: ../fish/guestfish-actions.pod:3564
12734 #, no-wrap
12735 msgid ""
12736 " part-disk device parttype\n"
12737 "\n"
12738 msgstr ""
12739
12740 #. type: textblock
12741 #: ../fish/guestfish-actions.pod:3566
12742 msgid ""
12743 "This command is simply a combination of L</part-init> followed by "
12744 "L</part-add> to create a single primary partition covering the whole disk."
12745 msgstr ""
12746
12747 #. type: textblock
12748 #: ../fish/guestfish-actions.pod:3570
12749 msgid ""
12750 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
12751 "possible values are described in L</part-init>."
12752 msgstr ""
12753
12754 #. type: =head2
12755 #: ../fish/guestfish-actions.pod:3576
12756 msgid "part-get-bootable"
12757 msgstr ""
12758
12759 #. type: verbatim
12760 #: ../fish/guestfish-actions.pod:3578
12761 #, no-wrap
12762 msgid ""
12763 " part-get-bootable device partnum\n"
12764 "\n"
12765 msgstr ""
12766
12767 #. type: textblock
12768 #: ../fish/guestfish-actions.pod:3580 ../src/guestfs-actions.pod:5490
12769 msgid ""
12770 "This command returns true if the partition C<partnum> on C<device> has the "
12771 "bootable flag set."
12772 msgstr ""
12773
12774 #. type: textblock
12775 #: ../fish/guestfish-actions.pod:3583
12776 msgid "See also L</part-set-bootable>."
12777 msgstr ""
12778
12779 #. type: =head2
12780 #: ../fish/guestfish-actions.pod:3585
12781 msgid "part-get-mbr-id"
12782 msgstr ""
12783
12784 #. type: verbatim
12785 #: ../fish/guestfish-actions.pod:3587
12786 #, no-wrap
12787 msgid ""
12788 " part-get-mbr-id device partnum\n"
12789 "\n"
12790 msgstr ""
12791
12792 #. type: textblock
12793 #: ../fish/guestfish-actions.pod:3589 ../src/guestfs-actions.pod:5506
12794 msgid ""
12795 "Returns the MBR type byte (also known as the ID byte) from the numbered "
12796 "partition C<partnum>."
12797 msgstr ""
12798
12799 #. type: textblock
12800 #: ../fish/guestfish-actions.pod:3592 ../fish/guestfish-actions.pod:3736
12801 msgid ""
12802 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
12803 "undefined results for other partition table types (see "
12804 "L</part-get-parttype>)."
12805 msgstr ""
12806
12807 #. type: =head2
12808 #: ../fish/guestfish-actions.pod:3596
12809 msgid "part-get-parttype"
12810 msgstr ""
12811
12812 #. type: verbatim
12813 #: ../fish/guestfish-actions.pod:3598
12814 #, no-wrap
12815 msgid ""
12816 " part-get-parttype device\n"
12817 "\n"
12818 msgstr ""
12819
12820 #. type: textblock
12821 #: ../fish/guestfish-actions.pod:3600 ../src/guestfs-actions.pod:5523
12822 msgid ""
12823 "This command examines the partition table on C<device> and returns the "
12824 "partition table type (format) being used."
12825 msgstr ""
12826
12827 #. type: textblock
12828 #: ../fish/guestfish-actions.pod:3603
12829 msgid ""
12830 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
12831 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
12832 "possible, although unusual.  See L</part-init> for a full list."
12833 msgstr ""
12834
12835 #. type: =head2
12836 #: ../fish/guestfish-actions.pod:3608
12837 msgid "part-init"
12838 msgstr ""
12839
12840 #. type: verbatim
12841 #: ../fish/guestfish-actions.pod:3610
12842 #, no-wrap
12843 msgid ""
12844 " part-init device parttype\n"
12845 "\n"
12846 msgstr ""
12847
12848 #. type: textblock
12849 #: ../fish/guestfish-actions.pod:3612 ../src/guestfs-actions.pod:5543
12850 msgid ""
12851 "This creates an empty partition table on C<device> of one of the partition "
12852 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
12853 "(for large disks)."
12854 msgstr ""
12855
12856 #. type: textblock
12857 #: ../fish/guestfish-actions.pod:3616
12858 msgid ""
12859 "Initially there are no partitions.  Following this, you should call "
12860 "L</part-add> for each partition required."
12861 msgstr ""
12862
12863 #. type: textblock
12864 #: ../fish/guestfish-actions.pod:3619 ../src/guestfs-actions.pod:5550
12865 msgid "Possible values for C<parttype> are:"
12866 msgstr ""
12867
12868 #. type: =item
12869 #: ../fish/guestfish-actions.pod:3623 ../src/guestfs-actions.pod:5554
12870 msgid "B<efi>"
12871 msgstr ""
12872
12873 #. type: =item
12874 #: ../fish/guestfish-actions.pod:3625 ../src/guestfs-actions.pod:5556
12875 msgid "B<gpt>"
12876 msgstr ""
12877
12878 #. type: textblock
12879 #: ../fish/guestfish-actions.pod:3627 ../src/guestfs-actions.pod:5558
12880 msgid "Intel EFI / GPT partition table."
12881 msgstr ""
12882
12883 #. type: textblock
12884 #: ../fish/guestfish-actions.pod:3629 ../src/guestfs-actions.pod:5560
12885 msgid ""
12886 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
12887 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
12888 "the C<mbr> format."
12889 msgstr ""
12890
12891 #. type: =item
12892 #: ../fish/guestfish-actions.pod:3633 ../src/guestfs-actions.pod:5564
12893 msgid "B<mbr>"
12894 msgstr ""
12895
12896 #. type: =item
12897 #: ../fish/guestfish-actions.pod:3635 ../src/guestfs-actions.pod:5566
12898 msgid "B<msdos>"
12899 msgstr ""
12900
12901 #. type: textblock
12902 #: ../fish/guestfish-actions.pod:3637 ../src/guestfs-actions.pod:5568
12903 msgid ""
12904 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
12905 "Windows.  This partition type will B<only> work for device sizes up to 2 "
12906 "TB.  For large disks we recommend using C<gpt>."
12907 msgstr ""
12908
12909 #. type: textblock
12910 #: ../fish/guestfish-actions.pod:3644 ../src/guestfs-actions.pod:5575
12911 msgid "Other partition table types that may work but are not supported include:"
12912 msgstr ""
12913
12914 #. type: =item
12915 #: ../fish/guestfish-actions.pod:3649 ../src/guestfs-actions.pod:5580
12916 msgid "B<aix>"
12917 msgstr ""
12918
12919 #. type: textblock
12920 #: ../fish/guestfish-actions.pod:3651 ../src/guestfs-actions.pod:5582
12921 msgid "AIX disk labels."
12922 msgstr ""
12923
12924 #. type: =item
12925 #: ../fish/guestfish-actions.pod:3653 ../src/guestfs-actions.pod:5584
12926 msgid "B<amiga>"
12927 msgstr ""
12928
12929 #. type: =item
12930 #: ../fish/guestfish-actions.pod:3655 ../src/guestfs-actions.pod:5586
12931 msgid "B<rdb>"
12932 msgstr ""
12933
12934 #. type: textblock
12935 #: ../fish/guestfish-actions.pod:3657 ../src/guestfs-actions.pod:5588
12936 msgid "Amiga \"Rigid Disk Block\" format."
12937 msgstr ""
12938
12939 #. type: =item
12940 #: ../fish/guestfish-actions.pod:3659 ../src/guestfs-actions.pod:5590
12941 msgid "B<bsd>"
12942 msgstr ""
12943
12944 #. type: textblock
12945 #: ../fish/guestfish-actions.pod:3661 ../src/guestfs-actions.pod:5592
12946 msgid "BSD disk labels."
12947 msgstr ""
12948
12949 #. type: =item
12950 #: ../fish/guestfish-actions.pod:3663 ../src/guestfs-actions.pod:5594
12951 msgid "B<dasd>"
12952 msgstr ""
12953
12954 #. type: textblock
12955 #: ../fish/guestfish-actions.pod:3665 ../src/guestfs-actions.pod:5596
12956 msgid "DASD, used on IBM mainframes."
12957 msgstr ""
12958
12959 #. type: =item
12960 #: ../fish/guestfish-actions.pod:3667 ../src/guestfs-actions.pod:5598
12961 msgid "B<dvh>"
12962 msgstr ""
12963
12964 #. type: textblock
12965 #: ../fish/guestfish-actions.pod:3669 ../src/guestfs-actions.pod:5600
12966 msgid "MIPS/SGI volumes."
12967 msgstr ""
12968
12969 #. type: =item
12970 #: ../fish/guestfish-actions.pod:3671 ../src/guestfs-actions.pod:5602
12971 msgid "B<mac>"
12972 msgstr ""
12973
12974 #. type: textblock
12975 #: ../fish/guestfish-actions.pod:3673 ../src/guestfs-actions.pod:5604
12976 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
12977 msgstr ""
12978
12979 #. type: =item
12980 #: ../fish/guestfish-actions.pod:3675 ../src/guestfs-actions.pod:5606
12981 msgid "B<pc98>"
12982 msgstr ""
12983
12984 #. type: textblock
12985 #: ../fish/guestfish-actions.pod:3677 ../src/guestfs-actions.pod:5608
12986 msgid "NEC PC-98 format, common in Japan apparently."
12987 msgstr ""
12988
12989 #. type: =item
12990 #: ../fish/guestfish-actions.pod:3679 ../src/guestfs-actions.pod:5610
12991 msgid "B<sun>"
12992 msgstr ""
12993
12994 #. type: textblock
12995 #: ../fish/guestfish-actions.pod:3681 ../src/guestfs-actions.pod:5612
12996 msgid "Sun disk labels."
12997 msgstr ""
12998
12999 #. type: =head2
13000 #: ../fish/guestfish-actions.pod:3685
13001 msgid "part-list"
13002 msgstr ""
13003
13004 #. type: verbatim
13005 #: ../fish/guestfish-actions.pod:3687
13006 #, no-wrap
13007 msgid ""
13008 " part-list device\n"
13009 "\n"
13010 msgstr ""
13011
13012 #. type: textblock
13013 #: ../fish/guestfish-actions.pod:3689 ../src/guestfs-actions.pod:5626
13014 msgid ""
13015 "This command parses the partition table on C<device> and returns the list of "
13016 "partitions found."
13017 msgstr ""
13018
13019 #. type: textblock
13020 #: ../fish/guestfish-actions.pod:3692 ../src/guestfs-actions.pod:5629
13021 msgid "The fields in the returned structure are:"
13022 msgstr ""
13023
13024 #. type: =item
13025 #: ../fish/guestfish-actions.pod:3696 ../src/guestfs-actions.pod:5633
13026 msgid "B<part_num>"
13027 msgstr ""
13028
13029 #. type: textblock
13030 #: ../fish/guestfish-actions.pod:3698 ../src/guestfs-actions.pod:5635
13031 msgid "Partition number, counting from 1."
13032 msgstr ""
13033
13034 #. type: =item
13035 #: ../fish/guestfish-actions.pod:3700 ../src/guestfs-actions.pod:5637
13036 msgid "B<part_start>"
13037 msgstr ""
13038
13039 #. type: textblock
13040 #: ../fish/guestfish-actions.pod:3702
13041 msgid ""
13042 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
13043 "the device's sector size, see L</blockdev-getss>."
13044 msgstr ""
13045
13046 #. type: =item
13047 #: ../fish/guestfish-actions.pod:3705 ../src/guestfs-actions.pod:5642
13048 msgid "B<part_end>"
13049 msgstr ""
13050
13051 #. type: textblock
13052 #: ../fish/guestfish-actions.pod:3707 ../src/guestfs-actions.pod:5644
13053 msgid "End of the partition in bytes."
13054 msgstr ""
13055
13056 #. type: =item
13057 #: ../fish/guestfish-actions.pod:3709 ../src/guestfs-actions.pod:5646
13058 msgid "B<part_size>"
13059 msgstr ""
13060
13061 #. type: textblock
13062 #: ../fish/guestfish-actions.pod:3711 ../src/guestfs-actions.pod:5648
13063 msgid "Size of the partition in bytes."
13064 msgstr ""
13065
13066 #. type: =head2
13067 #: ../fish/guestfish-actions.pod:3715
13068 msgid "part-set-bootable"
13069 msgstr ""
13070
13071 #. type: verbatim
13072 #: ../fish/guestfish-actions.pod:3717
13073 #, no-wrap
13074 msgid ""
13075 " part-set-bootable device partnum true|false\n"
13076 "\n"
13077 msgstr ""
13078
13079 #. type: textblock
13080 #: ../fish/guestfish-actions.pod:3719 ../src/guestfs-actions.pod:5666
13081 msgid ""
13082 "This sets the bootable flag on partition numbered C<partnum> on device "
13083 "C<device>.  Note that partitions are numbered from 1."
13084 msgstr ""
13085
13086 #. type: textblock
13087 #: ../fish/guestfish-actions.pod:3722 ../src/guestfs-actions.pod:5669
13088 msgid ""
13089 "The bootable flag is used by some operating systems (notably Windows) to "
13090 "determine which partition to boot from.  It is by no means universally "
13091 "recognized."
13092 msgstr ""
13093
13094 #. type: =head2
13095 #: ../fish/guestfish-actions.pod:3726
13096 msgid "part-set-mbr-id"
13097 msgstr ""
13098
13099 #. type: verbatim
13100 #: ../fish/guestfish-actions.pod:3728
13101 #, no-wrap
13102 msgid ""
13103 " part-set-mbr-id device partnum idbyte\n"
13104 "\n"
13105 msgstr ""
13106
13107 #. type: textblock
13108 #: ../fish/guestfish-actions.pod:3730 ../src/guestfs-actions.pod:5685
13109 msgid ""
13110 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
13111 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
13112 "documentation are in fact hexadecimal numbers, but usually documented "
13113 "without any leading \"0x\" which might be confusing."
13114 msgstr ""
13115
13116 #. type: =head2
13117 #: ../fish/guestfish-actions.pod:3740
13118 msgid "part-set-name"
13119 msgstr ""
13120
13121 #. type: verbatim
13122 #: ../fish/guestfish-actions.pod:3742
13123 #, no-wrap
13124 msgid ""
13125 " part-set-name device partnum name\n"
13126 "\n"
13127 msgstr ""
13128
13129 #. type: textblock
13130 #: ../fish/guestfish-actions.pod:3744 ../src/guestfs-actions.pod:5707
13131 msgid ""
13132 "This sets the partition name on partition numbered C<partnum> on device "
13133 "C<device>.  Note that partitions are numbered from 1."
13134 msgstr ""
13135
13136 #. type: textblock
13137 #: ../fish/guestfish-actions.pod:3747 ../src/guestfs-actions.pod:5710
13138 msgid ""
13139 "The partition name can only be set on certain types of partition table.  "
13140 "This works on C<gpt> but not on C<mbr> partitions."
13141 msgstr ""
13142
13143 #. type: =head2
13144 #: ../fish/guestfish-actions.pod:3750
13145 msgid "part-to-dev"
13146 msgstr ""
13147
13148 #. type: verbatim
13149 #: ../fish/guestfish-actions.pod:3752
13150 #, no-wrap
13151 msgid ""
13152 " part-to-dev partition\n"
13153 "\n"
13154 msgstr ""
13155
13156 #. type: textblock
13157 #: ../fish/guestfish-actions.pod:3754 ../src/guestfs-actions.pod:5723
13158 msgid ""
13159 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
13160 "partition number, returning the device name (eg. \"/dev/sdb\")."
13161 msgstr ""
13162
13163 #. type: textblock
13164 #: ../fish/guestfish-actions.pod:3758
13165 msgid ""
13166 "The named partition must exist, for example as a string returned from "
13167 "L</list-partitions>."
13168 msgstr ""
13169
13170 #. type: =head2
13171 #: ../fish/guestfish-actions.pod:3761
13172 msgid "ping-daemon"
13173 msgstr ""
13174
13175 #. type: verbatim
13176 #: ../fish/guestfish-actions.pod:3763
13177 #, no-wrap
13178 msgid ""
13179 " ping-daemon\n"
13180 "\n"
13181 msgstr ""
13182
13183 #. type: textblock
13184 #: ../fish/guestfish-actions.pod:3765 ../src/guestfs-actions.pod:5740
13185 msgid ""
13186 "This is a test probe into the guestfs daemon running inside the qemu "
13187 "subprocess.  Calling this function checks that the daemon responds to the "
13188 "ping message, without affecting the daemon or attached block device(s) in "
13189 "any other way."
13190 msgstr ""
13191
13192 #. type: =head2
13193 #: ../fish/guestfish-actions.pod:3770
13194 msgid "pread"
13195 msgstr ""
13196
13197 #. type: verbatim
13198 #: ../fish/guestfish-actions.pod:3772
13199 #, no-wrap
13200 msgid ""
13201 " pread path count offset\n"
13202 "\n"
13203 msgstr ""
13204
13205 #. type: textblock
13206 #: ../fish/guestfish-actions.pod:3774 ../src/guestfs-actions.pod:5758
13207 msgid ""
13208 "This command lets you read part of a file.  It reads C<count> bytes of the "
13209 "file, starting at C<offset>, from file C<path>."
13210 msgstr ""
13211
13212 #. type: textblock
13213 #: ../fish/guestfish-actions.pod:3777 ../fish/guestfish-actions.pod:3792 ../src/guestfs-actions.pod:5761 ../src/guestfs-actions.pod:5787
13214 msgid ""
13215 "This may read fewer bytes than requested.  For further details see the "
13216 "L<pread(2)> system call."
13217 msgstr ""
13218
13219 #. type: textblock
13220 #: ../fish/guestfish-actions.pod:3780
13221 msgid "See also L</pwrite>, L</pread-device>."
13222 msgstr ""
13223
13224 #. type: =head2
13225 #: ../fish/guestfish-actions.pod:3785
13226 msgid "pread-device"
13227 msgstr ""
13228
13229 #. type: verbatim
13230 #: ../fish/guestfish-actions.pod:3787
13231 #, no-wrap
13232 msgid ""
13233 " pread-device device count offset\n"
13234 "\n"
13235 msgstr ""
13236
13237 #. type: textblock
13238 #: ../fish/guestfish-actions.pod:3789 ../src/guestfs-actions.pod:5784
13239 msgid ""
13240 "This command lets you read part of a file.  It reads C<count> bytes of "
13241 "C<device>, starting at C<offset>."
13242 msgstr ""
13243
13244 #. type: textblock
13245 #: ../fish/guestfish-actions.pod:3795
13246 msgid "See also L</pread>."
13247 msgstr ""
13248
13249 #. type: =head2
13250 #: ../fish/guestfish-actions.pod:3800
13251 msgid "pvcreate"
13252 msgstr ""
13253
13254 #. type: verbatim
13255 #: ../fish/guestfish-actions.pod:3802
13256 #, no-wrap
13257 msgid ""
13258 " pvcreate device\n"
13259 "\n"
13260 msgstr ""
13261
13262 #. type: textblock
13263 #: ../fish/guestfish-actions.pod:3804 ../src/guestfs-actions.pod:5807
13264 msgid ""
13265 "This creates an LVM physical volume on the named C<device>, where C<device> "
13266 "should usually be a partition name such as C</dev/sda1>."
13267 msgstr ""
13268
13269 #. type: =head2
13270 #: ../fish/guestfish-actions.pod:3808
13271 msgid "pvremove"
13272 msgstr ""
13273
13274 #. type: verbatim
13275 #: ../fish/guestfish-actions.pod:3810
13276 #, no-wrap
13277 msgid ""
13278 " pvremove device\n"
13279 "\n"
13280 msgstr ""
13281
13282 #. type: textblock
13283 #: ../fish/guestfish-actions.pod:3812 ../src/guestfs-actions.pod:5821
13284 msgid ""
13285 "This wipes a physical volume C<device> so that LVM will no longer recognise "
13286 "it."
13287 msgstr ""
13288
13289 #. type: textblock
13290 #: ../fish/guestfish-actions.pod:3815 ../src/guestfs-actions.pod:5824
13291 msgid ""
13292 "The implementation uses the C<pvremove> command which refuses to wipe "
13293 "physical volumes that contain any volume groups, so you have to remove those "
13294 "first."
13295 msgstr ""
13296
13297 #. type: =head2
13298 #: ../fish/guestfish-actions.pod:3819
13299 msgid "pvresize"
13300 msgstr ""
13301
13302 #. type: verbatim
13303 #: ../fish/guestfish-actions.pod:3821
13304 #, no-wrap
13305 msgid ""
13306 " pvresize device\n"
13307 "\n"
13308 msgstr ""
13309
13310 #. type: textblock
13311 #: ../fish/guestfish-actions.pod:3823 ../src/guestfs-actions.pod:5838
13312 msgid ""
13313 "This resizes (expands or shrinks) an existing LVM physical volume to match "
13314 "the new size of the underlying device."
13315 msgstr ""
13316
13317 #. type: =head2
13318 #: ../fish/guestfish-actions.pod:3826
13319 msgid "pvresize-size"
13320 msgstr ""
13321
13322 #. type: verbatim
13323 #: ../fish/guestfish-actions.pod:3828
13324 #, no-wrap
13325 msgid ""
13326 " pvresize-size device size\n"
13327 "\n"
13328 msgstr ""
13329
13330 #. type: textblock
13331 #: ../fish/guestfish-actions.pod:3830
13332 msgid ""
13333 "This command is the same as L</pvresize> except that it allows you to "
13334 "specify the new size (in bytes) explicitly."
13335 msgstr ""
13336
13337 #. type: =head2
13338 #: ../fish/guestfish-actions.pod:3833
13339 msgid "pvs"
13340 msgstr ""
13341
13342 #. type: verbatim
13343 #: ../fish/guestfish-actions.pod:3835
13344 #, no-wrap
13345 msgid ""
13346 " pvs\n"
13347 "\n"
13348 msgstr ""
13349
13350 #. type: textblock
13351 #: ../fish/guestfish-actions.pod:3837 ../src/guestfs-actions.pod:5864
13352 msgid ""
13353 "List all the physical volumes detected.  This is the equivalent of the "
13354 "L<pvs(8)> command."
13355 msgstr ""
13356
13357 #. type: textblock
13358 #: ../fish/guestfish-actions.pod:3840 ../src/guestfs-actions.pod:5867
13359 msgid ""
13360 "This returns a list of just the device names that contain PVs "
13361 "(eg. C</dev/sda2>)."
13362 msgstr ""
13363
13364 #. type: textblock
13365 #: ../fish/guestfish-actions.pod:3843
13366 msgid "See also L</pvs-full>."
13367 msgstr ""
13368
13369 #. type: =head2
13370 #: ../fish/guestfish-actions.pod:3845
13371 msgid "pvs-full"
13372 msgstr ""
13373
13374 #. type: verbatim
13375 #: ../fish/guestfish-actions.pod:3847
13376 #, no-wrap
13377 msgid ""
13378 " pvs-full\n"
13379 "\n"
13380 msgstr ""
13381
13382 #. type: textblock
13383 #: ../fish/guestfish-actions.pod:3849 ../src/guestfs-actions.pod:5883
13384 msgid ""
13385 "List all the physical volumes detected.  This is the equivalent of the "
13386 "L<pvs(8)> command.  The \"full\" version includes all fields."
13387 msgstr ""
13388
13389 #. type: =head2
13390 #: ../fish/guestfish-actions.pod:3852
13391 msgid "pvuuid"
13392 msgstr ""
13393
13394 #. type: verbatim
13395 #: ../fish/guestfish-actions.pod:3854
13396 #, no-wrap
13397 msgid ""
13398 " pvuuid device\n"
13399 "\n"
13400 msgstr ""
13401
13402 #. type: textblock
13403 #: ../fish/guestfish-actions.pod:3856 ../src/guestfs-actions.pod:5898
13404 msgid "This command returns the UUID of the LVM PV C<device>."
13405 msgstr ""
13406
13407 #. type: =head2
13408 #: ../fish/guestfish-actions.pod:3858
13409 msgid "pwrite"
13410 msgstr ""
13411
13412 #. type: verbatim
13413 #: ../fish/guestfish-actions.pod:3860
13414 #, no-wrap
13415 msgid ""
13416 " pwrite path content offset\n"
13417 "\n"
13418 msgstr ""
13419
13420 #. type: textblock
13421 #: ../fish/guestfish-actions.pod:3862 ../src/guestfs-actions.pod:5914
13422 msgid ""
13423 "This command writes to part of a file.  It writes the data buffer C<content> "
13424 "to the file C<path> starting at offset C<offset>."
13425 msgstr ""
13426
13427 #. type: textblock
13428 #: ../fish/guestfish-actions.pod:3865 ../src/guestfs-actions.pod:5917
13429 msgid ""
13430 "This command implements the L<pwrite(2)> system call, and like that system "
13431 "call it may not write the full data requested.  The return value is the "
13432 "number of bytes that were actually written to the file.  This could even be "
13433 "0, although short writes are unlikely for regular files in ordinary "
13434 "circumstances."
13435 msgstr ""
13436
13437 #. type: textblock
13438 #: ../fish/guestfish-actions.pod:3871
13439 msgid "See also L</pread>, L</pwrite-device>."
13440 msgstr ""
13441
13442 #. type: =head2
13443 #: ../fish/guestfish-actions.pod:3876
13444 msgid "pwrite-device"
13445 msgstr ""
13446
13447 #. type: verbatim
13448 #: ../fish/guestfish-actions.pod:3878
13449 #, no-wrap
13450 msgid ""
13451 " pwrite-device device content offset\n"
13452 "\n"
13453 msgstr ""
13454
13455 #. type: textblock
13456 #: ../fish/guestfish-actions.pod:3880 ../src/guestfs-actions.pod:5941
13457 msgid ""
13458 "This command writes to part of a device.  It writes the data buffer "
13459 "C<content> to C<device> starting at offset C<offset>."
13460 msgstr ""
13461
13462 #. type: textblock
13463 #: ../fish/guestfish-actions.pod:3883 ../src/guestfs-actions.pod:5944
13464 msgid ""
13465 "This command implements the L<pwrite(2)> system call, and like that system "
13466 "call it may not write the full data requested (although short writes to disk "
13467 "devices and partitions are probably impossible with standard Linux kernels)."
13468 msgstr ""
13469
13470 #. type: textblock
13471 #: ../fish/guestfish-actions.pod:3888
13472 msgid "See also L</pwrite>."
13473 msgstr ""
13474
13475 #. type: =head2
13476 #: ../fish/guestfish-actions.pod:3893
13477 msgid "read-file"
13478 msgstr ""
13479
13480 #. type: verbatim
13481 #: ../fish/guestfish-actions.pod:3895
13482 #, no-wrap
13483 msgid ""
13484 " read-file path\n"
13485 "\n"
13486 msgstr ""
13487
13488 #. type: textblock
13489 #: ../fish/guestfish-actions.pod:3897 ../src/guestfs-actions.pod:5965
13490 msgid "This calls returns the contents of the file C<path> as a buffer."
13491 msgstr ""
13492
13493 #. type: textblock
13494 #: ../fish/guestfish-actions.pod:3900
13495 msgid ""
13496 "Unlike L</cat>, this function can correctly handle files that contain "
13497 "embedded ASCII NUL characters.  However unlike L</download>, this function "
13498 "is limited in the total size of file that can be handled."
13499 msgstr ""
13500
13501 #. type: =head2
13502 #: ../fish/guestfish-actions.pod:3908
13503 msgid "read-lines"
13504 msgstr ""
13505
13506 #. type: verbatim
13507 #: ../fish/guestfish-actions.pod:3910
13508 #, no-wrap
13509 msgid ""
13510 " read-lines path\n"
13511 "\n"
13512 msgstr ""
13513
13514 #. type: textblock
13515 #: ../fish/guestfish-actions.pod:3914 ../src/guestfs-actions.pod:5990
13516 msgid ""
13517 "The file contents are returned as a list of lines.  Trailing C<LF> and "
13518 "C<CRLF> character sequences are I<not> returned."
13519 msgstr ""
13520
13521 #. type: textblock
13522 #: ../fish/guestfish-actions.pod:3917
13523 msgid ""
13524 "Note that this function cannot correctly handle binary files (specifically, "
13525 "files containing C<\\0> character which is treated as end of line).  For "
13526 "those you need to use the L</read-file> function which has a more complex "
13527 "interface."
13528 msgstr ""
13529
13530 #. type: =head2
13531 #: ../fish/guestfish-actions.pod:3922
13532 msgid "readdir"
13533 msgstr ""
13534
13535 #. type: verbatim
13536 #: ../fish/guestfish-actions.pod:3924
13537 #, no-wrap
13538 msgid ""
13539 " readdir dir\n"
13540 "\n"
13541 msgstr ""
13542
13543 #. type: textblock
13544 #: ../fish/guestfish-actions.pod:3926 ../src/guestfs-actions.pod:6010
13545 msgid "This returns the list of directory entries in directory C<dir>."
13546 msgstr ""
13547
13548 #. type: textblock
13549 #: ../fish/guestfish-actions.pod:3928 ../src/guestfs-actions.pod:6012
13550 msgid ""
13551 "All entries in the directory are returned, including C<.> and C<..>.  The "
13552 "entries are I<not> sorted, but returned in the same order as the underlying "
13553 "filesystem."
13554 msgstr ""
13555
13556 #. type: textblock
13557 #: ../fish/guestfish-actions.pod:3932 ../src/guestfs-actions.pod:6016
13558 msgid ""
13559 "Also this call returns basic file type information about each file.  The "
13560 "C<ftyp> field will contain one of the following characters:"
13561 msgstr ""
13562
13563 #. type: =item
13564 #: ../fish/guestfish-actions.pod:3937 ../src/guestfs-actions.pod:6021
13565 msgid "'b'"
13566 msgstr ""
13567
13568 #. type: textblock
13569 #: ../fish/guestfish-actions.pod:3939 ../src/guestfs-actions.pod:6023
13570 msgid "Block special"
13571 msgstr ""
13572
13573 #. type: =item
13574 #: ../fish/guestfish-actions.pod:3941 ../src/guestfs-actions.pod:6025
13575 msgid "'c'"
13576 msgstr ""
13577
13578 #. type: textblock
13579 #: ../fish/guestfish-actions.pod:3943 ../src/guestfs-actions.pod:6027
13580 msgid "Char special"
13581 msgstr ""
13582
13583 #. type: =item
13584 #: ../fish/guestfish-actions.pod:3945 ../src/guestfs-actions.pod:6029
13585 msgid "'d'"
13586 msgstr ""
13587
13588 #. type: textblock
13589 #: ../fish/guestfish-actions.pod:3947 ../src/guestfs-actions.pod:6031
13590 msgid "Directory"
13591 msgstr ""
13592
13593 #. type: =item
13594 #: ../fish/guestfish-actions.pod:3949 ../src/guestfs-actions.pod:6033
13595 msgid "'f'"
13596 msgstr ""
13597
13598 #. type: textblock
13599 #: ../fish/guestfish-actions.pod:3951 ../src/guestfs-actions.pod:6035
13600 msgid "FIFO (named pipe)"
13601 msgstr ""
13602
13603 #. type: =item
13604 #: ../fish/guestfish-actions.pod:3953 ../src/guestfs-actions.pod:6037
13605 msgid "'l'"
13606 msgstr ""
13607
13608 #. type: textblock
13609 #: ../fish/guestfish-actions.pod:3955 ../src/guestfs-actions.pod:6039
13610 msgid "Symbolic link"
13611 msgstr ""
13612
13613 #. type: =item
13614 #: ../fish/guestfish-actions.pod:3957 ../src/guestfs-actions.pod:6041
13615 msgid "'r'"
13616 msgstr ""
13617
13618 #. type: textblock
13619 #: ../fish/guestfish-actions.pod:3959 ../src/guestfs-actions.pod:6043
13620 msgid "Regular file"
13621 msgstr ""
13622
13623 #. type: =item
13624 #: ../fish/guestfish-actions.pod:3961 ../src/guestfs-actions.pod:6045
13625 msgid "'s'"
13626 msgstr ""
13627
13628 #. type: textblock
13629 #: ../fish/guestfish-actions.pod:3963 ../src/guestfs-actions.pod:6047
13630 msgid "Socket"
13631 msgstr ""
13632
13633 #. type: =item
13634 #: ../fish/guestfish-actions.pod:3965 ../src/guestfs-actions.pod:6049
13635 msgid "'u'"
13636 msgstr ""
13637
13638 #. type: textblock
13639 #: ../fish/guestfish-actions.pod:3967 ../src/guestfs-actions.pod:6051
13640 msgid "Unknown file type"
13641 msgstr ""
13642
13643 #. type: =item
13644 #: ../fish/guestfish-actions.pod:3969 ../src/guestfs-actions.pod:6053
13645 msgid "'?'"
13646 msgstr ""
13647
13648 #. type: textblock
13649 #: ../fish/guestfish-actions.pod:3971 ../src/guestfs-actions.pod:6055
13650 msgid "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
13651 msgstr ""
13652
13653 #. type: textblock
13654 #: ../fish/guestfish-actions.pod:3976
13655 msgid ""
13656 "This function is primarily intended for use by programs.  To get a simple "
13657 "list of names, use L</ls>.  To get a printable directory for human "
13658 "consumption, use L</ll>."
13659 msgstr ""
13660
13661 #. type: =head2
13662 #: ../fish/guestfish-actions.pod:3980
13663 msgid "readlink"
13664 msgstr ""
13665
13666 #. type: verbatim
13667 #: ../fish/guestfish-actions.pod:3982
13668 #, no-wrap
13669 msgid ""
13670 " readlink path\n"
13671 "\n"
13672 msgstr ""
13673
13674 #. type: textblock
13675 #: ../fish/guestfish-actions.pod:3984 ../src/guestfs-actions.pod:6076
13676 msgid "This command reads the target of a symbolic link."
13677 msgstr ""
13678
13679 #. type: =head2
13680 #: ../fish/guestfish-actions.pod:3986
13681 msgid "readlinklist"
13682 msgstr ""
13683
13684 #. type: verbatim
13685 #: ../fish/guestfish-actions.pod:3988
13686 #, no-wrap
13687 msgid ""
13688 " readlinklist path 'names ...'\n"
13689 "\n"
13690 msgstr ""
13691
13692 #. type: textblock
13693 #: ../fish/guestfish-actions.pod:3990 ../src/guestfs-actions.pod:6090
13694 msgid ""
13695 "This call allows you to do a C<readlink> operation on multiple files, where "
13696 "all files are in the directory C<path>.  C<names> is the list of files from "
13697 "this directory."
13698 msgstr ""
13699
13700 #. type: textblock
13701 #: ../fish/guestfish-actions.pod:3994 ../src/guestfs-actions.pod:6094
13702 msgid ""
13703 "On return you get a list of strings, with a one-to-one correspondence to the "
13704 "C<names> list.  Each string is the value of the symbolic link."
13705 msgstr ""
13706
13707 #. type: textblock
13708 #: ../fish/guestfish-actions.pod:3998 ../src/guestfs-actions.pod:6098
13709 msgid ""
13710 "If the C<readlink(2)> operation fails on any name, then the corresponding "
13711 "result string is the empty string C<\"\">.  However the whole operation is "
13712 "completed even if there were C<readlink(2)> errors, and so you can call this "
13713 "function with names where you don't know if they are symbolic links already "
13714 "(albeit slightly less efficient)."
13715 msgstr ""
13716
13717 #. type: textblock
13718 #: ../fish/guestfish-actions.pod:4005 ../src/guestfs-actions.pod:6105
13719 msgid ""
13720 "This call is intended for programs that want to efficiently list a directory "
13721 "contents without making many round-trips.  Very long directory listings "
13722 "might cause the protocol message size to be exceeded, causing this call to "
13723 "fail.  The caller must split up such requests into smaller groups of names."
13724 msgstr ""
13725
13726 #. type: =head2
13727 #: ../fish/guestfish-actions.pod:4012
13728 msgid "realpath"
13729 msgstr ""
13730
13731 #. type: verbatim
13732 #: ../fish/guestfish-actions.pod:4014
13733 #, no-wrap
13734 msgid ""
13735 " realpath path\n"
13736 "\n"
13737 msgstr ""
13738
13739 #. type: textblock
13740 #: ../fish/guestfish-actions.pod:4016 ../src/guestfs-actions.pod:6124
13741 msgid ""
13742 "Return the canonicalized absolute pathname of C<path>.  The returned path "
13743 "has no C<.>, C<..> or symbolic link path elements."
13744 msgstr ""
13745
13746 #. type: =head2
13747 #: ../fish/guestfish-actions.pod:4019
13748 msgid "removexattr"
13749 msgstr ""
13750
13751 #. type: verbatim
13752 #: ../fish/guestfish-actions.pod:4021
13753 #, no-wrap
13754 msgid ""
13755 " removexattr xattr path\n"
13756 "\n"
13757 msgstr ""
13758
13759 #. type: textblock
13760 #: ../fish/guestfish-actions.pod:4023 ../src/guestfs-actions.pod:6139
13761 msgid "This call removes the extended attribute named C<xattr> of the file C<path>."
13762 msgstr ""
13763
13764 #. type: textblock
13765 #: ../fish/guestfish-actions.pod:4026
13766 msgid "See also: L</lremovexattr>, L<attr(5)>."
13767 msgstr ""
13768
13769 #. type: =head2
13770 #: ../fish/guestfish-actions.pod:4028
13771 msgid "resize2fs"
13772 msgstr ""
13773
13774 #. type: verbatim
13775 #: ../fish/guestfish-actions.pod:4030
13776 #, no-wrap
13777 msgid ""
13778 " resize2fs device\n"
13779 "\n"
13780 msgstr ""
13781
13782 #. type: textblock
13783 #: ../fish/guestfish-actions.pod:4032 ../src/guestfs-actions.pod:6154
13784 msgid ""
13785 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
13786 "underlying device."
13787 msgstr ""
13788
13789 #. type: textblock
13790 #: ../fish/guestfish-actions.pod:4035
13791 msgid ""
13792 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
13793 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
13794 "gives an error about this and sometimes not.  In any case, it is always safe "
13795 "to call L</e2fsck-f> before calling this function."
13796 msgstr ""
13797
13798 #. type: =head2
13799 #: ../fish/guestfish-actions.pod:4041
13800 msgid "resize2fs-M"
13801 msgstr ""
13802
13803 #. type: verbatim
13804 #: ../fish/guestfish-actions.pod:4043
13805 #, no-wrap
13806 msgid ""
13807 " resize2fs-M device\n"
13808 "\n"
13809 msgstr ""
13810
13811 #. type: textblock
13812 #: ../fish/guestfish-actions.pod:4045
13813 msgid ""
13814 "This command is the same as L</resize2fs>, but the filesystem is resized to "
13815 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
13816 "command."
13817 msgstr ""
13818
13819 #. type: textblock
13820 #: ../fish/guestfish-actions.pod:4049
13821 msgid ""
13822 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
13823 "and read the C<Block size> and C<Block count> values.  These two numbers, "
13824 "multiplied together, give the resulting size of the minimal filesystem in "
13825 "bytes."
13826 msgstr ""
13827
13828 #. type: =head2
13829 #: ../fish/guestfish-actions.pod:4054
13830 msgid "resize2fs-size"
13831 msgstr ""
13832
13833 #. type: verbatim
13834 #: ../fish/guestfish-actions.pod:4056
13835 #, no-wrap
13836 msgid ""
13837 " resize2fs-size device size\n"
13838 "\n"
13839 msgstr ""
13840
13841 #. type: textblock
13842 #: ../fish/guestfish-actions.pod:4058
13843 msgid ""
13844 "This command is the same as L</resize2fs> except that it allows you to "
13845 "specify the new size (in bytes) explicitly."
13846 msgstr ""
13847
13848 #. type: =head2
13849 #: ../fish/guestfish-actions.pod:4061
13850 msgid "rm"
13851 msgstr ""
13852
13853 #. type: verbatim
13854 #: ../fish/guestfish-actions.pod:4063
13855 #, no-wrap
13856 msgid ""
13857 " rm path\n"
13858 "\n"
13859 msgstr ""
13860
13861 #. type: textblock
13862 #: ../fish/guestfish-actions.pod:4065 ../src/guestfs-actions.pod:6206
13863 msgid "Remove the single file C<path>."
13864 msgstr ""
13865
13866 #. type: =head2
13867 #: ../fish/guestfish-actions.pod:4067
13868 msgid "rm-rf"
13869 msgstr ""
13870
13871 #. type: verbatim
13872 #: ../fish/guestfish-actions.pod:4069
13873 #, no-wrap
13874 msgid ""
13875 " rm-rf path\n"
13876 "\n"
13877 msgstr ""
13878
13879 #. type: textblock
13880 #: ../fish/guestfish-actions.pod:4071 ../src/guestfs-actions.pod:6218
13881 msgid ""
13882 "Remove the file or directory C<path>, recursively removing the contents if "
13883 "its a directory.  This is like the C<rm -rf> shell command."
13884 msgstr ""
13885
13886 #. type: =head2
13887 #: ../fish/guestfish-actions.pod:4075
13888 msgid "rmdir"
13889 msgstr ""
13890
13891 #. type: verbatim
13892 #: ../fish/guestfish-actions.pod:4077
13893 #, no-wrap
13894 msgid ""
13895 " rmdir path\n"
13896 "\n"
13897 msgstr ""
13898
13899 #. type: textblock
13900 #: ../fish/guestfish-actions.pod:4079 ../src/guestfs-actions.pod:6232
13901 msgid "Remove the single directory C<path>."
13902 msgstr ""
13903
13904 #. type: =head2
13905 #: ../fish/guestfish-actions.pod:4081
13906 msgid "rmmountpoint"
13907 msgstr ""
13908
13909 #. type: verbatim
13910 #: ../fish/guestfish-actions.pod:4083
13911 #, no-wrap
13912 msgid ""
13913 " rmmountpoint exemptpath\n"
13914 "\n"
13915 msgstr ""
13916
13917 #. type: textblock
13918 #: ../fish/guestfish-actions.pod:4085
13919 msgid ""
13920 "This calls removes a mountpoint that was previously created with "
13921 "L</mkmountpoint>.  See L</mkmountpoint> for full details."
13922 msgstr ""
13923
13924 #. type: =head2
13925 #: ../fish/guestfish-actions.pod:4089
13926 msgid "scrub-device"
13927 msgstr ""
13928
13929 #. type: verbatim
13930 #: ../fish/guestfish-actions.pod:4091
13931 #, no-wrap
13932 msgid ""
13933 " scrub-device device\n"
13934 "\n"
13935 msgstr ""
13936
13937 #. type: textblock
13938 #: ../fish/guestfish-actions.pod:4093 ../src/guestfs-actions.pod:6258
13939 msgid ""
13940 "This command writes patterns over C<device> to make data retrieval more "
13941 "difficult."
13942 msgstr ""
13943
13944 #. type: textblock
13945 #: ../fish/guestfish-actions.pod:4096 ../fish/guestfish-actions.pod:4111 ../fish/guestfish-actions.pod:4124 ../src/guestfs-actions.pod:6261 ../src/guestfs-actions.pod:6282 ../src/guestfs-actions.pod:6301
13946 msgid ""
13947 "It is an interface to the L<scrub(1)> program.  See that manual page for "
13948 "more details."
13949 msgstr ""
13950
13951 #. type: =head2
13952 #: ../fish/guestfish-actions.pod:4102
13953 msgid "scrub-file"
13954 msgstr ""
13955
13956 #. type: verbatim
13957 #: ../fish/guestfish-actions.pod:4104
13958 #, no-wrap
13959 msgid ""
13960 " scrub-file file\n"
13961 "\n"
13962 msgstr ""
13963
13964 #. type: textblock
13965 #: ../fish/guestfish-actions.pod:4106 ../src/guestfs-actions.pod:6277
13966 msgid ""
13967 "This command writes patterns over a file to make data retrieval more "
13968 "difficult."
13969 msgstr ""
13970
13971 #. type: textblock
13972 #: ../fish/guestfish-actions.pod:4109 ../src/guestfs-actions.pod:6280
13973 msgid "The file is I<removed> after scrubbing."
13974 msgstr ""
13975
13976 #. type: =head2
13977 #: ../fish/guestfish-actions.pod:4114
13978 msgid "scrub-freespace"
13979 msgstr ""
13980
13981 #. type: verbatim
13982 #: ../fish/guestfish-actions.pod:4116
13983 #, no-wrap
13984 msgid ""
13985 " scrub-freespace dir\n"
13986 "\n"
13987 msgstr ""
13988
13989 #. type: textblock
13990 #: ../fish/guestfish-actions.pod:4118
13991 msgid ""
13992 "This command creates the directory C<dir> and then fills it with files until "
13993 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
13994 "deletes them.  The intention is to scrub any free space on the partition "
13995 "containing C<dir>."
13996 msgstr ""
13997
13998 #. type: =head2
13999 #: ../fish/guestfish-actions.pod:4127
14000 msgid "set-append"
14001 msgstr ""
14002
14003 #. type: =head2
14004 #: ../fish/guestfish-actions.pod:4129
14005 msgid "append"
14006 msgstr ""
14007
14008 #. type: verbatim
14009 #: ../fish/guestfish-actions.pod:4131
14010 #, no-wrap
14011 msgid ""
14012 " set-append append\n"
14013 "\n"
14014 msgstr ""
14015
14016 #. type: textblock
14017 #: ../fish/guestfish-actions.pod:4133 ../src/guestfs-actions.pod:6314
14018 msgid ""
14019 "This function is used to add additional options to the guest kernel command "
14020 "line."
14021 msgstr ""
14022
14023 #. type: textblock
14024 #: ../fish/guestfish-actions.pod:4136 ../src/guestfs-actions.pod:6317
14025 msgid ""
14026 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
14027 "environment variable."
14028 msgstr ""
14029
14030 #. type: textblock
14031 #: ../fish/guestfish-actions.pod:4139 ../src/guestfs-actions.pod:6320
14032 msgid ""
14033 "Setting C<append> to C<NULL> means I<no> additional options are passed "
14034 "(libguestfs always adds a few of its own)."
14035 msgstr ""
14036
14037 #. type: =head2
14038 #: ../fish/guestfish-actions.pod:4142
14039 msgid "set-attach-method"
14040 msgstr ""
14041
14042 #. type: =head2
14043 #: ../fish/guestfish-actions.pod:4144
14044 msgid "attach-method"
14045 msgstr ""
14046
14047 #. type: verbatim
14048 #: ../fish/guestfish-actions.pod:4146
14049 #, no-wrap
14050 msgid ""
14051 " set-attach-method attachmethod\n"
14052 "\n"
14053 msgstr ""
14054
14055 #. type: textblock
14056 #: ../fish/guestfish-actions.pod:4148 ../src/guestfs-actions.pod:6333
14057 msgid ""
14058 "Set the method that libguestfs uses to connect to the back end guestfsd "
14059 "daemon.  Possible methods are:"
14060 msgstr ""
14061
14062 #. type: =item
14063 #: ../fish/guestfish-actions.pod:4153 ../src/guestfs-actions.pod:6338 ../src/guestfs.pod:2901
14064 msgid "C<appliance>"
14065 msgstr ""
14066
14067 #. type: textblock
14068 #: ../fish/guestfish-actions.pod:4155 ../src/guestfs-actions.pod:6340
14069 msgid ""
14070 "Launch an appliance and connect to it.  This is the ordinary method and the "
14071 "default."
14072 msgstr ""
14073
14074 #. type: =item
14075 #: ../fish/guestfish-actions.pod:4158 ../src/guestfs-actions.pod:6343
14076 msgid "C<unix:I<path>>"
14077 msgstr ""
14078
14079 #. type: textblock
14080 #: ../fish/guestfish-actions.pod:4160 ../src/guestfs-actions.pod:6345
14081 msgid "Connect to the Unix domain socket I<path>."
14082 msgstr ""
14083
14084 #. type: textblock
14085 #: ../fish/guestfish-actions.pod:4162 ../src/guestfs-actions.pod:6347
14086 msgid ""
14087 "This method lets you connect to an existing daemon or (using virtio-serial) "
14088 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
14089 "RUNNING DAEMONS>."
14090 msgstr ""
14091
14092 #. type: =head2
14093 #: ../fish/guestfish-actions.pod:4168
14094 msgid "set-autosync"
14095 msgstr ""
14096
14097 #. type: =head2
14098 #: ../fish/guestfish-actions.pod:4170
14099 msgid "autosync"
14100 msgstr ""
14101
14102 #. type: verbatim
14103 #: ../fish/guestfish-actions.pod:4172
14104 #, no-wrap
14105 msgid ""
14106 " set-autosync true|false\n"
14107 "\n"
14108 msgstr ""
14109
14110 #. type: textblock
14111 #: ../fish/guestfish-actions.pod:4174 ../src/guestfs-actions.pod:6363
14112 msgid ""
14113 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
14114 "effort attempt to make filesystems consistent and synchronized when the "
14115 "handle is closed (also if the program exits without closing handles)."
14116 msgstr ""
14117
14118 #. type: textblock
14119 #: ../fish/guestfish-actions.pod:4179 ../src/guestfs-actions.pod:6368
14120 msgid ""
14121 "This is enabled by default (since libguestfs 1.5.24, previously it was "
14122 "disabled by default)."
14123 msgstr ""
14124
14125 #. type: =head2
14126 #: ../fish/guestfish-actions.pod:4182
14127 msgid "set-direct"
14128 msgstr ""
14129
14130 #. type: =head2
14131 #: ../fish/guestfish-actions.pod:4184
14132 msgid "direct"
14133 msgstr ""
14134
14135 #. type: verbatim
14136 #: ../fish/guestfish-actions.pod:4186
14137 #, no-wrap
14138 msgid ""
14139 " set-direct true|false\n"
14140 "\n"
14141 msgstr ""
14142
14143 #. type: textblock
14144 #: ../fish/guestfish-actions.pod:4188 ../src/guestfs-actions.pod:6381
14145 msgid ""
14146 "If the direct appliance mode flag is enabled, then stdin and stdout are "
14147 "passed directly through to the appliance once it is launched."
14148 msgstr ""
14149
14150 #. type: textblock
14151 #: ../fish/guestfish-actions.pod:4192
14152 msgid ""
14153 "One consequence of this is that log messages aren't caught by the library "
14154 "and handled by L</set-log-message-callback>, but go straight to stdout."
14155 msgstr ""
14156
14157 #. type: textblock
14158 #: ../fish/guestfish-actions.pod:4196 ../src/guestfs-actions.pod:6389
14159 msgid "You probably don't want to use this unless you know what you are doing."
14160 msgstr ""
14161
14162 #. type: textblock
14163 #: ../fish/guestfish-actions.pod:4199 ../src/guestfs-actions.pod:6392
14164 msgid "The default is disabled."
14165 msgstr ""
14166
14167 #. type: =head2
14168 #: ../fish/guestfish-actions.pod:4201
14169 msgid "set-e2label"
14170 msgstr ""
14171
14172 #. type: verbatim
14173 #: ../fish/guestfish-actions.pod:4203
14174 #, no-wrap
14175 msgid ""
14176 " set-e2label device label\n"
14177 "\n"
14178 msgstr ""
14179
14180 #. type: textblock
14181 #: ../fish/guestfish-actions.pod:4205 ../src/guestfs-actions.pod:6405
14182 msgid ""
14183 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
14184 "C<label>.  Filesystem labels are limited to 16 characters."
14185 msgstr ""
14186
14187 #. type: textblock
14188 #: ../fish/guestfish-actions.pod:4209
14189 msgid ""
14190 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
14191 "label on a filesystem."
14192 msgstr ""
14193
14194 #. type: =head2
14195 #: ../fish/guestfish-actions.pod:4212
14196 msgid "set-e2uuid"
14197 msgstr ""
14198
14199 #. type: verbatim
14200 #: ../fish/guestfish-actions.pod:4214
14201 #, no-wrap
14202 msgid ""
14203 " set-e2uuid device uuid\n"
14204 "\n"
14205 msgstr ""
14206
14207 #. type: textblock
14208 #: ../fish/guestfish-actions.pod:4216 ../src/guestfs-actions.pod:6423
14209 msgid ""
14210 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
14211 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
14212 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
14213 msgstr ""
14214
14215 #. type: textblock
14216 #: ../fish/guestfish-actions.pod:4221
14217 msgid ""
14218 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
14219 "UUID of a filesystem."
14220 msgstr ""
14221
14222 #. type: =head2
14223 #: ../fish/guestfish-actions.pod:4224
14224 msgid "set-memsize"
14225 msgstr ""
14226
14227 #. type: =head2
14228 #: ../fish/guestfish-actions.pod:4226
14229 msgid "memsize"
14230 msgstr ""
14231
14232 #. type: verbatim
14233 #: ../fish/guestfish-actions.pod:4228
14234 #, no-wrap
14235 msgid ""
14236 " set-memsize memsize\n"
14237 "\n"
14238 msgstr ""
14239
14240 #. type: textblock
14241 #: ../fish/guestfish-actions.pod:4230
14242 msgid ""
14243 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
14244 "This only has any effect if called before L</launch>."
14245 msgstr ""
14246
14247 #. type: textblock
14248 #: ../fish/guestfish-actions.pod:4234 ../src/guestfs-actions.pod:6445
14249 msgid ""
14250 "You can also change this by setting the environment variable "
14251 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
14252 msgstr ""
14253
14254 #. type: =head2
14255 #: ../fish/guestfish-actions.pod:4241
14256 msgid "set-network"
14257 msgstr ""
14258
14259 #. type: =head2
14260 #: ../fish/guestfish-actions.pod:4243
14261 msgid "network"
14262 msgstr ""
14263
14264 #. type: verbatim
14265 #: ../fish/guestfish-actions.pod:4245
14266 #, no-wrap
14267 msgid ""
14268 " set-network true|false\n"
14269 "\n"
14270 msgstr ""
14271
14272 #. type: textblock
14273 #: ../fish/guestfish-actions.pod:4247 ../src/guestfs-actions.pod:6462
14274 msgid ""
14275 "If C<network> is true, then the network is enabled in the libguestfs "
14276 "appliance.  The default is false."
14277 msgstr ""
14278
14279 #. type: textblock
14280 #: ../fish/guestfish-actions.pod:4250 ../src/guestfs-actions.pod:6465
14281 msgid ""
14282 "This affects whether commands are able to access the network (see "
14283 "L<guestfs(3)/RUNNING COMMANDS>)."
14284 msgstr ""
14285
14286 #. type: textblock
14287 #: ../fish/guestfish-actions.pod:4253
14288 msgid "You must call this before calling L</launch>, otherwise it has no effect."
14289 msgstr ""
14290
14291 #. type: =head2
14292 #: ../fish/guestfish-actions.pod:4256
14293 msgid "set-path"
14294 msgstr ""
14295
14296 #. type: verbatim
14297 #: ../fish/guestfish-actions.pod:4260
14298 #, no-wrap
14299 msgid ""
14300 " set-path searchpath\n"
14301 "\n"
14302 msgstr ""
14303
14304 #. type: textblock
14305 #: ../fish/guestfish-actions.pod:4262 ../src/guestfs-actions.pod:6481
14306 msgid "Set the path that libguestfs searches for kernel and initrd.img."
14307 msgstr ""
14308
14309 #. type: textblock
14310 #: ../fish/guestfish-actions.pod:4264 ../src/guestfs-actions.pod:6483
14311 msgid ""
14312 "The default is C<$libdir/guestfs> unless overridden by setting "
14313 "C<LIBGUESTFS_PATH> environment variable."
14314 msgstr ""
14315
14316 #. type: textblock
14317 #: ../fish/guestfish-actions.pod:4267 ../src/guestfs-actions.pod:6486
14318 msgid "Setting C<path> to C<NULL> restores the default path."
14319 msgstr ""
14320
14321 #. type: =head2
14322 #: ../fish/guestfish-actions.pod:4269
14323 msgid "set-pgroup"
14324 msgstr ""
14325
14326 #. type: =head2
14327 #: ../fish/guestfish-actions.pod:4271
14328 msgid "pgroup"
14329 msgstr ""
14330
14331 #. type: verbatim
14332 #: ../fish/guestfish-actions.pod:4273
14333 #, no-wrap
14334 msgid ""
14335 " set-pgroup true|false\n"
14336 "\n"
14337 msgstr ""
14338
14339 #. type: textblock
14340 #: ../fish/guestfish-actions.pod:4275 ../src/guestfs-actions.pod:6498
14341 msgid ""
14342 "If C<pgroup> is true, child processes are placed into their own process "
14343 "group."
14344 msgstr ""
14345
14346 #. type: textblock
14347 #: ../fish/guestfish-actions.pod:4278 ../src/guestfs-actions.pod:6501
14348 msgid ""
14349 "The practical upshot of this is that signals like C<SIGINT> (from users "
14350 "pressing C<^C>) won't be received by the child process."
14351 msgstr ""
14352
14353 #. type: textblock
14354 #: ../fish/guestfish-actions.pod:4281 ../src/guestfs-actions.pod:6504
14355 msgid ""
14356 "The default for this flag is false, because usually you want C<^C> to kill "
14357 "the subprocess."
14358 msgstr ""
14359
14360 #. type: =head2
14361 #: ../fish/guestfish-actions.pod:4284
14362 msgid "set-qemu"
14363 msgstr ""
14364
14365 #. type: =head2
14366 #: ../fish/guestfish-actions.pod:4286
14367 msgid "qemu"
14368 msgstr ""
14369
14370 #. type: verbatim
14371 #: ../fish/guestfish-actions.pod:4288
14372 #, no-wrap
14373 msgid ""
14374 " set-qemu qemu\n"
14375 "\n"
14376 msgstr ""
14377
14378 #. type: textblock
14379 #: ../fish/guestfish-actions.pod:4290 ../src/guestfs-actions.pod:6517
14380 msgid "Set the qemu binary that we will use."
14381 msgstr ""
14382
14383 #. type: textblock
14384 #: ../fish/guestfish-actions.pod:4292 ../src/guestfs-actions.pod:6519
14385 msgid "The default is chosen when the library was compiled by the configure script."
14386 msgstr ""
14387
14388 #. type: textblock
14389 #: ../fish/guestfish-actions.pod:4295 ../src/guestfs-actions.pod:6522
14390 msgid ""
14391 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
14392 "variable."
14393 msgstr ""
14394
14395 #. type: textblock
14396 #: ../fish/guestfish-actions.pod:4298 ../src/guestfs-actions.pod:6525
14397 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
14398 msgstr ""
14399
14400 #. type: textblock
14401 #: ../fish/guestfish-actions.pod:4300 ../src/guestfs-actions.pod:6527
14402 msgid ""
14403 "Note that you should call this function as early as possible after creating "
14404 "the handle.  This is because some pre-launch operations depend on testing "
14405 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
14406 "don't retest features, and so you might see inconsistent results.  Using the "
14407 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
14408 "the qemu binary at the same time as the handle is created."
14409 msgstr ""
14410
14411 #. type: =head2
14412 #: ../fish/guestfish-actions.pod:4308
14413 msgid "set-recovery-proc"
14414 msgstr ""
14415
14416 #. type: =head2
14417 #: ../fish/guestfish-actions.pod:4310
14418 msgid "recovery-proc"
14419 msgstr ""
14420
14421 #. type: verbatim
14422 #: ../fish/guestfish-actions.pod:4312
14423 #, no-wrap
14424 msgid ""
14425 " set-recovery-proc true|false\n"
14426 "\n"
14427 msgstr ""
14428
14429 #. type: textblock
14430 #: ../fish/guestfish-actions.pod:4314
14431 msgid ""
14432 "If this is called with the parameter C<false> then L</launch> does not "
14433 "create a recovery process.  The purpose of the recovery process is to stop "
14434 "runaway qemu processes in the case where the main program aborts abruptly."
14435 msgstr ""
14436
14437 #. type: textblock
14438 #: ../fish/guestfish-actions.pod:4319
14439 msgid ""
14440 "This only has any effect if called before L</launch>, and the default is "
14441 "true."
14442 msgstr ""
14443
14444 #. type: textblock
14445 #: ../fish/guestfish-actions.pod:4322 ../src/guestfs-actions.pod:6553
14446 msgid ""
14447 "About the only time when you would want to disable this is if the main "
14448 "process will fork itself into the background (\"daemonize\" itself).  In "
14449 "this case the recovery process thinks that the main program has disappeared "
14450 "and so kills qemu, which is not very helpful."
14451 msgstr ""
14452
14453 #. type: =head2
14454 #: ../fish/guestfish-actions.pod:4328
14455 msgid "set-selinux"
14456 msgstr ""
14457
14458 #. type: =head2
14459 #: ../fish/guestfish-actions.pod:4330
14460 msgid "selinux"
14461 msgstr ""
14462
14463 #. type: verbatim
14464 #: ../fish/guestfish-actions.pod:4332
14465 #, no-wrap
14466 msgid ""
14467 " set-selinux true|false\n"
14468 "\n"
14469 msgstr ""
14470
14471 #. type: textblock
14472 #: ../fish/guestfish-actions.pod:4334 ../src/guestfs-actions.pod:6569
14473 msgid ""
14474 "This sets the selinux flag that is passed to the appliance at boot time.  "
14475 "The default is C<selinux=0> (disabled)."
14476 msgstr ""
14477
14478 #. type: textblock
14479 #: ../fish/guestfish-actions.pod:4337 ../src/guestfs-actions.pod:6572
14480 msgid ""
14481 "Note that if SELinux is enabled, it is always in Permissive mode "
14482 "(C<enforcing=0>)."
14483 msgstr ""
14484
14485 #. type: =head2
14486 #: ../fish/guestfish-actions.pod:4343
14487 msgid "set-smp"
14488 msgstr ""
14489
14490 #. type: =head2
14491 #: ../fish/guestfish-actions.pod:4345
14492 msgid "smp"
14493 msgstr ""
14494
14495 #. type: verbatim
14496 #: ../fish/guestfish-actions.pod:4347
14497 #, no-wrap
14498 msgid ""
14499 " set-smp smp\n"
14500 "\n"
14501 msgstr ""
14502
14503 #. type: textblock
14504 #: ../fish/guestfish-actions.pod:4349 ../src/guestfs-actions.pod:6588
14505 msgid ""
14506 "Change the number of virtual CPUs assigned to the appliance.  The default is "
14507 "C<1>.  Increasing this may improve performance, though often it has no "
14508 "effect."
14509 msgstr ""
14510
14511 #. type: textblock
14512 #: ../fish/guestfish-actions.pod:4353
14513 msgid "This function must be called before L</launch>."
14514 msgstr ""
14515
14516 #. type: =head2
14517 #: ../fish/guestfish-actions.pod:4355
14518 msgid "set-trace"
14519 msgstr ""
14520
14521 #. type: =head2
14522 #: ../fish/guestfish-actions.pod:4357
14523 msgid "trace"
14524 msgstr ""
14525
14526 #. type: verbatim
14527 #: ../fish/guestfish-actions.pod:4359
14528 #, no-wrap
14529 msgid ""
14530 " set-trace true|false\n"
14531 "\n"
14532 msgstr ""
14533
14534 #. type: textblock
14535 #: ../fish/guestfish-actions.pod:4361 ../src/guestfs-actions.pod:6604
14536 msgid ""
14537 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
14538 "return values are traced."
14539 msgstr ""
14540
14541 #. type: textblock
14542 #: ../fish/guestfish-actions.pod:4364 ../src/guestfs-actions.pod:6607
14543 msgid ""
14544 "If you want to trace C API calls into libguestfs (and other libraries) then "
14545 "possibly a better way is to use the external ltrace(1) command."
14546 msgstr ""
14547
14548 #. type: textblock
14549 #: ../fish/guestfish-actions.pod:4368 ../src/guestfs-actions.pod:6611
14550 msgid ""
14551 "Command traces are disabled unless the environment variable "
14552 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
14553 msgstr ""
14554
14555 #. type: textblock
14556 #: ../fish/guestfish-actions.pod:4371
14557 msgid ""
14558 "Trace messages are normally sent to C<stderr>, unless you register a "
14559 "callback to send them somewhere else (see L</set-event-callback>)."
14560 msgstr ""
14561
14562 #. type: =head2
14563 #: ../fish/guestfish-actions.pod:4375
14564 msgid "set-verbose"
14565 msgstr ""
14566
14567 #. type: =head2
14568 #: ../fish/guestfish-actions.pod:4377
14569 msgid "verbose"
14570 msgstr ""
14571
14572 #. type: verbatim
14573 #: ../fish/guestfish-actions.pod:4379
14574 #, no-wrap
14575 msgid ""
14576 " set-verbose true|false\n"
14577 "\n"
14578 msgstr ""
14579
14580 #. type: textblock
14581 #: ../fish/guestfish-actions.pod:4381 ../src/guestfs-actions.pod:6628
14582 msgid "If C<verbose> is true, this turns on verbose messages."
14583 msgstr ""
14584
14585 #. type: textblock
14586 #: ../fish/guestfish-actions.pod:4383 ../src/guestfs-actions.pod:6630
14587 msgid ""
14588 "Verbose messages are disabled unless the environment variable "
14589 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
14590 msgstr ""
14591
14592 #. type: textblock
14593 #: ../fish/guestfish-actions.pod:4386
14594 msgid ""
14595 "Verbose messages are normally sent to C<stderr>, unless you register a "
14596 "callback to send them somewhere else (see L</set-event-callback>)."
14597 msgstr ""
14598
14599 #. type: =head2
14600 #: ../fish/guestfish-actions.pod:4390
14601 msgid "setcon"
14602 msgstr ""
14603
14604 #. type: verbatim
14605 #: ../fish/guestfish-actions.pod:4392
14606 #, no-wrap
14607 msgid ""
14608 " setcon context\n"
14609 "\n"
14610 msgstr ""
14611
14612 #. type: textblock
14613 #: ../fish/guestfish-actions.pod:4394 ../src/guestfs-actions.pod:6647
14614 msgid ""
14615 "This sets the SELinux security context of the daemon to the string "
14616 "C<context>."
14617 msgstr ""
14618
14619 #. type: textblock
14620 #: ../fish/guestfish-actions.pod:4397 ../src/guestfs-actions.pod:6650
14621 msgid "See the documentation about SELINUX in L<guestfs(3)>."
14622 msgstr ""
14623
14624 #. type: =head2
14625 #: ../fish/guestfish-actions.pod:4399
14626 msgid "setxattr"
14627 msgstr ""
14628
14629 #. type: verbatim
14630 #: ../fish/guestfish-actions.pod:4401
14631 #, no-wrap
14632 msgid ""
14633 " setxattr xattr val vallen path\n"
14634 "\n"
14635 msgstr ""
14636
14637 #. type: textblock
14638 #: ../fish/guestfish-actions.pod:4403 ../src/guestfs-actions.pod:6665
14639 msgid ""
14640 "This call sets the extended attribute named C<xattr> of the file C<path> to "
14641 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
14642 msgstr ""
14643
14644 #. type: textblock
14645 #: ../fish/guestfish-actions.pod:4407
14646 msgid "See also: L</lsetxattr>, L<attr(5)>."
14647 msgstr ""
14648
14649 #. type: =head2
14650 #: ../fish/guestfish-actions.pod:4409
14651 msgid "sfdisk"
14652 msgstr ""
14653
14654 #. type: verbatim
14655 #: ../fish/guestfish-actions.pod:4411
14656 #, no-wrap
14657 msgid ""
14658 " sfdisk device cyls heads sectors 'lines ...'\n"
14659 "\n"
14660 msgstr ""
14661
14662 #. type: textblock
14663 #: ../fish/guestfish-actions.pod:4413 ../src/guestfs-actions.pod:6692
14664 msgid ""
14665 "This is a direct interface to the L<sfdisk(8)> program for creating "
14666 "partitions on block devices."
14667 msgstr ""
14668
14669 #. type: textblock
14670 #: ../fish/guestfish-actions.pod:4416 ../src/guestfs-actions.pod:6695
14671 msgid "C<device> should be a block device, for example C</dev/sda>."
14672 msgstr ""
14673
14674 #. type: textblock
14675 #: ../fish/guestfish-actions.pod:4418 ../src/guestfs-actions.pod:6697
14676 msgid ""
14677 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
14678 "sectors on the device, which are passed directly to sfdisk as the I<-C>, "
14679 "I<-H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
14680 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
14681 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
14682 "the kernel) cannot work out the right geometry and you will need to tell it."
14683 msgstr ""
14684
14685 #. type: textblock
14686 #: ../fish/guestfish-actions.pod:4426 ../src/guestfs-actions.pod:6705
14687 msgid ""
14688 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
14689 "refer to the L<sfdisk(8)> manpage."
14690 msgstr ""
14691
14692 #. type: textblock
14693 #: ../fish/guestfish-actions.pod:4429 ../src/guestfs-actions.pod:6708
14694 msgid ""
14695 "To create a single partition occupying the whole disk, you would pass "
14696 "C<lines> as a single element list, when the single element being the string "
14697 "C<,> (comma)."
14698 msgstr ""
14699
14700 #. type: textblock
14701 #: ../fish/guestfish-actions.pod:4433
14702 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
14703 msgstr ""
14704
14705 #. type: textblock
14706 #: ../fish/guestfish-actions.pod:4439 ../fish/guestfish-actions.pod:4462 ../fish/guestfish-actions.pod:4484
14707 msgid ""
14708 "I<This function is deprecated.> In new code, use the L</part_add> call "
14709 "instead."
14710 msgstr ""
14711
14712 #. type: =head2
14713 #: ../fish/guestfish-actions.pod:4446
14714 msgid "sfdiskM"
14715 msgstr ""
14716
14717 #. type: verbatim
14718 #: ../fish/guestfish-actions.pod:4448
14719 #, no-wrap
14720 msgid ""
14721 " sfdiskM device 'lines ...'\n"
14722 "\n"
14723 msgstr ""
14724
14725 #. type: textblock
14726 #: ../fish/guestfish-actions.pod:4450
14727 msgid ""
14728 "This is a simplified interface to the L</sfdisk> command, where partition "
14729 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
14730 "you don't need to specify the cyls, heads and sectors parameters which were "
14731 "rarely if ever used anyway."
14732 msgstr ""
14733
14734 #. type: textblock
14735 #: ../fish/guestfish-actions.pod:4456
14736 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
14737 msgstr ""
14738
14739 #. type: =head2
14740 #: ../fish/guestfish-actions.pod:4469
14741 msgid "sfdisk-N"
14742 msgstr ""
14743
14744 #. type: verbatim
14745 #: ../fish/guestfish-actions.pod:4471
14746 #, no-wrap
14747 msgid ""
14748 " sfdisk-N device partnum cyls heads sectors line\n"
14749 "\n"
14750 msgstr ""
14751
14752 #. type: textblock
14753 #: ../fish/guestfish-actions.pod:4473 ../src/guestfs-actions.pod:6770
14754 msgid ""
14755 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
14756 "(note: C<n> counts from 1)."
14757 msgstr ""
14758
14759 #. type: textblock
14760 #: ../fish/guestfish-actions.pod:4476
14761 msgid ""
14762 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
14763 "cyls/heads/sectors parameters."
14764 msgstr ""
14765
14766 #. type: textblock
14767 #: ../fish/guestfish-actions.pod:4479
14768 msgid "See also: L</part-add>"
14769 msgstr ""
14770
14771 #. type: =head2
14772 #: ../fish/guestfish-actions.pod:4491
14773 msgid "sfdisk-disk-geometry"
14774 msgstr ""
14775
14776 #. type: verbatim
14777 #: ../fish/guestfish-actions.pod:4493
14778 #, no-wrap
14779 msgid ""
14780 " sfdisk-disk-geometry device\n"
14781 "\n"
14782 msgstr ""
14783
14784 #. type: textblock
14785 #: ../fish/guestfish-actions.pod:4495
14786 msgid ""
14787 "This displays the disk geometry of C<device> read from the partition table.  "
14788 "Especially in the case where the underlying block device has been resized, "
14789 "this can be different from the kernel's idea of the geometry (see "
14790 "L</sfdisk-kernel-geometry>)."
14791 msgstr ""
14792
14793 #. type: textblock
14794 #: ../fish/guestfish-actions.pod:4500 ../fish/guestfish-actions.pod:4509 ../src/guestfs-actions.pod:6796 ../src/guestfs-actions.pod:6812
14795 msgid "The result is in human-readable format, and not designed to be parsed."
14796 msgstr ""
14797
14798 #. type: =head2
14799 #: ../fish/guestfish-actions.pod:4503
14800 msgid "sfdisk-kernel-geometry"
14801 msgstr ""
14802
14803 #. type: verbatim
14804 #: ../fish/guestfish-actions.pod:4505
14805 #, no-wrap
14806 msgid ""
14807 " sfdisk-kernel-geometry device\n"
14808 "\n"
14809 msgstr ""
14810
14811 #. type: textblock
14812 #: ../fish/guestfish-actions.pod:4507 ../src/guestfs-actions.pod:6810
14813 msgid "This displays the kernel's idea of the geometry of C<device>."
14814 msgstr ""
14815
14816 #. type: =head2
14817 #: ../fish/guestfish-actions.pod:4512
14818 msgid "sfdisk-l"
14819 msgstr ""
14820
14821 #. type: verbatim
14822 #: ../fish/guestfish-actions.pod:4514
14823 #, no-wrap
14824 msgid ""
14825 " sfdisk-l device\n"
14826 "\n"
14827 msgstr ""
14828
14829 #. type: textblock
14830 #: ../fish/guestfish-actions.pod:4516 ../src/guestfs-actions.pod:6833
14831 msgid ""
14832 "This displays the partition table on C<device>, in the human-readable output "
14833 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
14834 msgstr ""
14835
14836 #. type: textblock
14837 #: ../fish/guestfish-actions.pod:4520
14838 msgid "See also: L</part-list>"
14839 msgstr ""
14840
14841 #. type: textblock
14842 #: ../fish/guestfish-actions.pod:4522
14843 msgid ""
14844 "I<This function is deprecated.> In new code, use the L</part_list> call "
14845 "instead."
14846 msgstr ""
14847
14848 #. type: =head2
14849 #: ../fish/guestfish-actions.pod:4529
14850 msgid "sh"
14851 msgstr ""
14852
14853 #. type: verbatim
14854 #: ../fish/guestfish-actions.pod:4531
14855 #, no-wrap
14856 msgid ""
14857 " sh command\n"
14858 "\n"
14859 msgstr ""
14860
14861 #. type: textblock
14862 #: ../fish/guestfish-actions.pod:4533 ../src/guestfs-actions.pod:6850
14863 msgid ""
14864 "This call runs a command from the guest filesystem via the guest's "
14865 "C</bin/sh>."
14866 msgstr ""
14867
14868 #. type: textblock
14869 #: ../fish/guestfish-actions.pod:4536
14870 msgid "This is like L</command>, but passes the command to:"
14871 msgstr ""
14872
14873 #. type: verbatim
14874 #: ../fish/guestfish-actions.pod:4538 ../src/guestfs-actions.pod:6855
14875 #, no-wrap
14876 msgid ""
14877 " /bin/sh -c \"command\"\n"
14878 "\n"
14879 msgstr ""
14880
14881 #. type: textblock
14882 #: ../fish/guestfish-actions.pod:4540 ../src/guestfs-actions.pod:6857
14883 msgid ""
14884 "Depending on the guest's shell, this usually results in wildcards being "
14885 "expanded, shell expressions being interpolated and so on."
14886 msgstr ""
14887
14888 #. type: textblock
14889 #: ../fish/guestfish-actions.pod:4544
14890 msgid "All the provisos about L</command> apply to this call."
14891 msgstr ""
14892
14893 #. type: =head2
14894 #: ../fish/guestfish-actions.pod:4546
14895 msgid "sh-lines"
14896 msgstr ""
14897
14898 #. type: verbatim
14899 #: ../fish/guestfish-actions.pod:4548
14900 #, no-wrap
14901 msgid ""
14902 " sh-lines command\n"
14903 "\n"
14904 msgstr ""
14905
14906 #. type: textblock
14907 #: ../fish/guestfish-actions.pod:4550
14908 msgid "This is the same as L</sh>, but splits the result into a list of lines."
14909 msgstr ""
14910
14911 #. type: textblock
14912 #: ../fish/guestfish-actions.pod:4553
14913 msgid "See also: L</command-lines>"
14914 msgstr ""
14915
14916 #. type: =head2
14917 #: ../fish/guestfish-actions.pod:4555
14918 msgid "sleep"
14919 msgstr ""
14920
14921 #. type: verbatim
14922 #: ../fish/guestfish-actions.pod:4557
14923 #, no-wrap
14924 msgid ""
14925 " sleep secs\n"
14926 "\n"
14927 msgstr ""
14928
14929 #. type: textblock
14930 #: ../fish/guestfish-actions.pod:4559 ../src/guestfs-actions.pod:6891
14931 msgid "Sleep for C<secs> seconds."
14932 msgstr ""
14933
14934 #. type: =head2
14935 #: ../fish/guestfish-actions.pod:4561
14936 msgid "stat"
14937 msgstr ""
14938
14939 #. type: verbatim
14940 #: ../fish/guestfish-actions.pod:4563
14941 #, no-wrap
14942 msgid ""
14943 " stat path\n"
14944 "\n"
14945 msgstr ""
14946
14947 #. type: textblock
14948 #: ../fish/guestfish-actions.pod:4567 ../src/guestfs-actions.pod:6905
14949 msgid "This is the same as the C<stat(2)> system call."
14950 msgstr ""
14951
14952 #. type: =head2
14953 #: ../fish/guestfish-actions.pod:4569
14954 msgid "statvfs"
14955 msgstr ""
14956
14957 #. type: verbatim
14958 #: ../fish/guestfish-actions.pod:4571
14959 #, no-wrap
14960 msgid ""
14961 " statvfs path\n"
14962 "\n"
14963 msgstr ""
14964
14965 #. type: textblock
14966 #: ../fish/guestfish-actions.pod:4573 ../src/guestfs-actions.pod:6919
14967 msgid ""
14968 "Returns file system statistics for any mounted file system.  C<path> should "
14969 "be a file or directory in the mounted file system (typically it is the mount "
14970 "point itself, but it doesn't need to be)."
14971 msgstr ""
14972
14973 #. type: textblock
14974 #: ../fish/guestfish-actions.pod:4577 ../src/guestfs-actions.pod:6923
14975 msgid "This is the same as the C<statvfs(2)> system call."
14976 msgstr ""
14977
14978 #. type: =head2
14979 #: ../fish/guestfish-actions.pod:4579
14980 msgid "strings"
14981 msgstr ""
14982
14983 #. type: verbatim
14984 #: ../fish/guestfish-actions.pod:4581
14985 #, no-wrap
14986 msgid ""
14987 " strings path\n"
14988 "\n"
14989 msgstr ""
14990
14991 #. type: textblock
14992 #: ../fish/guestfish-actions.pod:4583 ../src/guestfs-actions.pod:6937
14993 msgid ""
14994 "This runs the L<strings(1)> command on a file and returns the list of "
14995 "printable strings found."
14996 msgstr ""
14997
14998 #. type: =head2
14999 #: ../fish/guestfish-actions.pod:4589
15000 msgid "strings-e"
15001 msgstr ""
15002
15003 #. type: verbatim
15004 #: ../fish/guestfish-actions.pod:4591
15005 #, no-wrap
15006 msgid ""
15007 " strings-e encoding path\n"
15008 "\n"
15009 msgstr ""
15010
15011 #. type: textblock
15012 #: ../fish/guestfish-actions.pod:4593
15013 msgid ""
15014 "This is like the L</strings> command, but allows you to specify the encoding "
15015 "of strings that are looked for in the source file C<path>."
15016 msgstr ""
15017
15018 #. type: textblock
15019 #: ../fish/guestfish-actions.pod:4597 ../src/guestfs-actions.pod:6960
15020 msgid "Allowed encodings are:"
15021 msgstr ""
15022
15023 #. type: =item
15024 #: ../fish/guestfish-actions.pod:4601 ../src/guestfs-actions.pod:6964
15025 msgid "s"
15026 msgstr ""
15027
15028 #. type: textblock
15029 #: ../fish/guestfish-actions.pod:4603
15030 msgid ""
15031 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
15032 "ISO-8859-X (this is what L</strings> uses)."
15033 msgstr ""
15034
15035 #. type: =item
15036 #: ../fish/guestfish-actions.pod:4606 ../src/guestfs-actions.pod:6969
15037 msgid "S"
15038 msgstr ""
15039
15040 #. type: textblock
15041 #: ../fish/guestfish-actions.pod:4608 ../src/guestfs-actions.pod:6971
15042 msgid "Single 8-bit-byte characters."
15043 msgstr ""
15044
15045 #. type: =item
15046 #: ../fish/guestfish-actions.pod:4610 ../src/guestfs-actions.pod:6973
15047 msgid "b"
15048 msgstr ""
15049
15050 #. type: textblock
15051 #: ../fish/guestfish-actions.pod:4612 ../src/guestfs-actions.pod:6975
15052 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
15053 msgstr ""
15054
15055 #. type: =item
15056 #: ../fish/guestfish-actions.pod:4615 ../src/guestfs-actions.pod:6978
15057 msgid "l (lower case letter L)"
15058 msgstr ""
15059
15060 #. type: textblock
15061 #: ../fish/guestfish-actions.pod:4617 ../src/guestfs-actions.pod:6980
15062 msgid ""
15063 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
15064 "examining binaries in Windows guests."
15065 msgstr ""
15066
15067 #. type: =item
15068 #: ../fish/guestfish-actions.pod:4620 ../src/guestfs-actions.pod:6983
15069 msgid "B"
15070 msgstr ""
15071
15072 #. type: textblock
15073 #: ../fish/guestfish-actions.pod:4622 ../src/guestfs-actions.pod:6985
15074 msgid "32-bit big endian such as UCS-4BE."
15075 msgstr ""
15076
15077 #. type: =item
15078 #: ../fish/guestfish-actions.pod:4624 ../src/guestfs-actions.pod:6987
15079 msgid "L"
15080 msgstr ""
15081
15082 #. type: textblock
15083 #: ../fish/guestfish-actions.pod:4626 ../src/guestfs-actions.pod:6989
15084 msgid "32-bit little endian such as UCS-4LE."
15085 msgstr ""
15086
15087 #. type: textblock
15088 #: ../fish/guestfish-actions.pod:4630 ../src/guestfs-actions.pod:6993
15089 msgid "The returned strings are transcoded to UTF-8."
15090 msgstr ""
15091
15092 #. type: =head2
15093 #: ../fish/guestfish-actions.pod:4635
15094 msgid "swapoff-device"
15095 msgstr ""
15096
15097 #. type: verbatim
15098 #: ../fish/guestfish-actions.pod:4637
15099 #, no-wrap
15100 msgid ""
15101 " swapoff-device device\n"
15102 "\n"
15103 msgstr ""
15104
15105 #. type: textblock
15106 #: ../fish/guestfish-actions.pod:4639
15107 msgid ""
15108 "This command disables the libguestfs appliance swap device or partition "
15109 "named C<device>.  See L</swapon-device>."
15110 msgstr ""
15111
15112 #. type: =head2
15113 #: ../fish/guestfish-actions.pod:4643
15114 msgid "swapoff-file"
15115 msgstr ""
15116
15117 #. type: verbatim
15118 #: ../fish/guestfish-actions.pod:4645
15119 #, no-wrap
15120 msgid ""
15121 " swapoff-file file\n"
15122 "\n"
15123 msgstr ""
15124
15125 #. type: textblock
15126 #: ../fish/guestfish-actions.pod:4647 ../src/guestfs-actions.pod:7024
15127 msgid "This command disables the libguestfs appliance swap on file."
15128 msgstr ""
15129
15130 #. type: =head2
15131 #: ../fish/guestfish-actions.pod:4649
15132 msgid "swapoff-label"
15133 msgstr ""
15134
15135 #. type: verbatim
15136 #: ../fish/guestfish-actions.pod:4651
15137 #, no-wrap
15138 msgid ""
15139 " swapoff-label label\n"
15140 "\n"
15141 msgstr ""
15142
15143 #. type: textblock
15144 #: ../fish/guestfish-actions.pod:4653 ../src/guestfs-actions.pod:7036
15145 msgid ""
15146 "This command disables the libguestfs appliance swap on labeled swap "
15147 "partition."
15148 msgstr ""
15149
15150 #. type: =head2
15151 #: ../fish/guestfish-actions.pod:4656
15152 msgid "swapoff-uuid"
15153 msgstr ""
15154
15155 #. type: verbatim
15156 #: ../fish/guestfish-actions.pod:4658
15157 #, no-wrap
15158 msgid ""
15159 " swapoff-uuid uuid\n"
15160 "\n"
15161 msgstr ""
15162
15163 #. type: textblock
15164 #: ../fish/guestfish-actions.pod:4660 ../src/guestfs-actions.pod:7049
15165 msgid ""
15166 "This command disables the libguestfs appliance swap partition with the given "
15167 "UUID."
15168 msgstr ""
15169
15170 #. type: =head2
15171 #: ../fish/guestfish-actions.pod:4663
15172 msgid "swapon-device"
15173 msgstr ""
15174
15175 #. type: verbatim
15176 #: ../fish/guestfish-actions.pod:4665
15177 #, no-wrap
15178 msgid ""
15179 " swapon-device device\n"
15180 "\n"
15181 msgstr ""
15182
15183 #. type: textblock
15184 #: ../fish/guestfish-actions.pod:4667
15185 msgid ""
15186 "This command enables the libguestfs appliance to use the swap device or "
15187 "partition named C<device>.  The increased memory is made available for all "
15188 "commands, for example those run using L</command> or L</sh>."
15189 msgstr ""
15190
15191 #. type: textblock
15192 #: ../fish/guestfish-actions.pod:4672 ../src/guestfs-actions.pod:7067
15193 msgid ""
15194 "Note that you should not swap to existing guest swap partitions unless you "
15195 "know what you are doing.  They may contain hibernation information, or other "
15196 "information that the guest doesn't want you to trash.  You also risk leaking "
15197 "information about the host to the guest this way.  Instead, attach a new "
15198 "host device to the guest and swap on that."
15199 msgstr ""
15200
15201 #. type: =head2
15202 #: ../fish/guestfish-actions.pod:4679
15203 msgid "swapon-file"
15204 msgstr ""
15205
15206 #. type: verbatim
15207 #: ../fish/guestfish-actions.pod:4681
15208 #, no-wrap
15209 msgid ""
15210 " swapon-file file\n"
15211 "\n"
15212 msgstr ""
15213
15214 #. type: textblock
15215 #: ../fish/guestfish-actions.pod:4683
15216 msgid "This command enables swap to a file.  See L</swapon-device> for other notes."
15217 msgstr ""
15218
15219 #. type: =head2
15220 #: ../fish/guestfish-actions.pod:4686
15221 msgid "swapon-label"
15222 msgstr ""
15223
15224 #. type: verbatim
15225 #: ../fish/guestfish-actions.pod:4688
15226 #, no-wrap
15227 msgid ""
15228 " swapon-label label\n"
15229 "\n"
15230 msgstr ""
15231
15232 #. type: textblock
15233 #: ../fish/guestfish-actions.pod:4690
15234 msgid ""
15235 "This command enables swap to a labeled swap partition.  See "
15236 "L</swapon-device> for other notes."
15237 msgstr ""
15238
15239 #. type: =head2
15240 #: ../fish/guestfish-actions.pod:4693
15241 msgid "swapon-uuid"
15242 msgstr ""
15243
15244 #. type: verbatim
15245 #: ../fish/guestfish-actions.pod:4695
15246 #, no-wrap
15247 msgid ""
15248 " swapon-uuid uuid\n"
15249 "\n"
15250 msgstr ""
15251
15252 #. type: textblock
15253 #: ../fish/guestfish-actions.pod:4697
15254 msgid ""
15255 "This command enables swap to a swap partition with the given UUID.  See "
15256 "L</swapon-device> for other notes."
15257 msgstr ""
15258
15259 #. type: =head2
15260 #: ../fish/guestfish-actions.pod:4700
15261 msgid "sync"
15262 msgstr ""
15263
15264 #. type: verbatim
15265 #: ../fish/guestfish-actions.pod:4702
15266 #, no-wrap
15267 msgid ""
15268 " sync\n"
15269 "\n"
15270 msgstr ""
15271
15272 #. type: textblock
15273 #: ../fish/guestfish-actions.pod:4704 ../src/guestfs-actions.pod:7122
15274 msgid ""
15275 "This syncs the disk, so that any writes are flushed through to the "
15276 "underlying disk image."
15277 msgstr ""
15278
15279 #. type: textblock
15280 #: ../fish/guestfish-actions.pod:4707 ../src/guestfs-actions.pod:7125
15281 msgid ""
15282 "You should always call this if you have modified a disk image, before "
15283 "closing the handle."
15284 msgstr ""
15285
15286 #. type: =head2
15287 #: ../fish/guestfish-actions.pod:4710
15288 msgid "tail"
15289 msgstr ""
15290
15291 #. type: verbatim
15292 #: ../fish/guestfish-actions.pod:4712
15293 #, no-wrap
15294 msgid ""
15295 " tail path\n"
15296 "\n"
15297 msgstr ""
15298
15299 #. type: textblock
15300 #: ../fish/guestfish-actions.pod:4714 ../src/guestfs-actions.pod:7138
15301 msgid "This command returns up to the last 10 lines of a file as a list of strings."
15302 msgstr ""
15303
15304 #. type: =head2
15305 #: ../fish/guestfish-actions.pod:4720
15306 msgid "tail-n"
15307 msgstr ""
15308
15309 #. type: verbatim
15310 #: ../fish/guestfish-actions.pod:4722
15311 #, no-wrap
15312 msgid ""
15313 " tail-n nrlines path\n"
15314 "\n"
15315 msgstr ""
15316
15317 #. type: textblock
15318 #: ../fish/guestfish-actions.pod:4724 ../src/guestfs-actions.pod:7157
15319 msgid ""
15320 "If the parameter C<nrlines> is a positive number, this returns the last "
15321 "C<nrlines> lines of the file C<path>."
15322 msgstr ""
15323
15324 #. type: textblock
15325 #: ../fish/guestfish-actions.pod:4727 ../src/guestfs-actions.pod:7160
15326 msgid ""
15327 "If the parameter C<nrlines> is a negative number, this returns lines from "
15328 "the file C<path>, starting with the C<-nrlines>th line."
15329 msgstr ""
15330
15331 #. type: =head2
15332 #: ../fish/guestfish-actions.pod:4735
15333 msgid "tar-in"
15334 msgstr ""
15335
15336 #. type: verbatim
15337 #: ../fish/guestfish-actions.pod:4737
15338 #, no-wrap
15339 msgid ""
15340 " tar-in (tarfile|-) directory\n"
15341 "\n"
15342 msgstr ""
15343
15344 #. type: textblock
15345 #: ../fish/guestfish-actions.pod:4739 ../src/guestfs-actions.pod:7181
15346 msgid ""
15347 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
15348 "tar file) into C<directory>."
15349 msgstr ""
15350
15351 #. type: textblock
15352 #: ../fish/guestfish-actions.pod:4742
15353 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
15354 msgstr ""
15355
15356 #. type: =head2
15357 #: ../fish/guestfish-actions.pod:4747
15358 msgid "tar-out"
15359 msgstr ""
15360
15361 #. type: verbatim
15362 #: ../fish/guestfish-actions.pod:4749
15363 #, no-wrap
15364 msgid ""
15365 " tar-out directory (tarfile|-)\n"
15366 "\n"
15367 msgstr ""
15368
15369 #. type: textblock
15370 #: ../fish/guestfish-actions.pod:4751 ../src/guestfs-actions.pod:7198
15371 msgid ""
15372 "This command packs the contents of C<directory> and downloads it to local "
15373 "file C<tarfile>."
15374 msgstr ""
15375
15376 #. type: textblock
15377 #: ../fish/guestfish-actions.pod:4754
15378 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
15379 msgstr ""
15380
15381 #. type: =head2
15382 #: ../fish/guestfish-actions.pod:4759
15383 msgid "tgz-in"
15384 msgstr ""
15385
15386 #. type: verbatim
15387 #: ../fish/guestfish-actions.pod:4761
15388 #, no-wrap
15389 msgid ""
15390 " tgz-in (tarball|-) directory\n"
15391 "\n"
15392 msgstr ""
15393
15394 #. type: textblock
15395 #: ../fish/guestfish-actions.pod:4763 ../src/guestfs-actions.pod:7215
15396 msgid ""
15397 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
15398 "tar file) into C<directory>."
15399 msgstr ""
15400
15401 #. type: textblock
15402 #: ../fish/guestfish-actions.pod:4766
15403 msgid "To upload an uncompressed tarball, use L</tar-in>."
15404 msgstr ""
15405
15406 #. type: =head2
15407 #: ../fish/guestfish-actions.pod:4770
15408 msgid "tgz-out"
15409 msgstr ""
15410
15411 #. type: verbatim
15412 #: ../fish/guestfish-actions.pod:4772
15413 #, no-wrap
15414 msgid ""
15415 " tgz-out directory (tarball|-)\n"
15416 "\n"
15417 msgstr ""
15418
15419 #. type: textblock
15420 #: ../fish/guestfish-actions.pod:4774 ../src/guestfs-actions.pod:7231
15421 msgid ""
15422 "This command packs the contents of C<directory> and downloads it to local "
15423 "file C<tarball>."
15424 msgstr ""
15425
15426 #. type: textblock
15427 #: ../fish/guestfish-actions.pod:4777
15428 msgid "To download an uncompressed tarball, use L</tar-out>."
15429 msgstr ""
15430
15431 #. type: =head2
15432 #: ../fish/guestfish-actions.pod:4781
15433 msgid "touch"
15434 msgstr ""
15435
15436 #. type: verbatim
15437 #: ../fish/guestfish-actions.pod:4783
15438 #, no-wrap
15439 msgid ""
15440 " touch path\n"
15441 "\n"
15442 msgstr ""
15443
15444 #. type: textblock
15445 #: ../fish/guestfish-actions.pod:4785 ../src/guestfs-actions.pod:7246
15446 msgid ""
15447 "Touch acts like the L<touch(1)> command.  It can be used to update the "
15448 "timestamps on a file, or, if the file does not exist, to create a new "
15449 "zero-length file."
15450 msgstr ""
15451
15452 #. type: textblock
15453 #: ../fish/guestfish-actions.pod:4789 ../src/guestfs-actions.pod:7250
15454 msgid ""
15455 "This command only works on regular files, and will fail on other file types "
15456 "such as directories, symbolic links, block special etc."
15457 msgstr ""
15458
15459 #. type: =head2
15460 #: ../fish/guestfish-actions.pod:4792
15461 msgid "truncate"
15462 msgstr ""
15463
15464 #. type: verbatim
15465 #: ../fish/guestfish-actions.pod:4794
15466 #, no-wrap
15467 msgid ""
15468 " truncate path\n"
15469 "\n"
15470 msgstr ""
15471
15472 #. type: textblock
15473 #: ../fish/guestfish-actions.pod:4796 ../src/guestfs-actions.pod:7263
15474 msgid ""
15475 "This command truncates C<path> to a zero-length file.  The file must exist "
15476 "already."
15477 msgstr ""
15478
15479 #. type: =head2
15480 #: ../fish/guestfish-actions.pod:4799
15481 msgid "truncate-size"
15482 msgstr ""
15483
15484 #. type: verbatim
15485 #: ../fish/guestfish-actions.pod:4801
15486 #, no-wrap
15487 msgid ""
15488 " truncate-size path size\n"
15489 "\n"
15490 msgstr ""
15491
15492 #. type: textblock
15493 #: ../fish/guestfish-actions.pod:4803 ../src/guestfs-actions.pod:7277
15494 msgid ""
15495 "This command truncates C<path> to size C<size> bytes.  The file must exist "
15496 "already."
15497 msgstr ""
15498
15499 #. type: textblock
15500 #: ../fish/guestfish-actions.pod:4806
15501 msgid ""
15502 "If the current file size is less than C<size> then the file is extended to "
15503 "the required size with zero bytes.  This creates a sparse file (ie. disk "
15504 "blocks are not allocated for the file until you write to it).  To create a "
15505 "non-sparse file of zeroes, use L</fallocate64> instead."
15506 msgstr ""
15507
15508 #. type: =head2
15509 #: ../fish/guestfish-actions.pod:4812
15510 msgid "tune2fs-l"
15511 msgstr ""
15512
15513 #. type: verbatim
15514 #: ../fish/guestfish-actions.pod:4814
15515 #, no-wrap
15516 msgid ""
15517 " tune2fs-l device\n"
15518 "\n"
15519 msgstr ""
15520
15521 #. type: textblock
15522 #: ../fish/guestfish-actions.pod:4816 ../src/guestfs-actions.pod:7296
15523 msgid ""
15524 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
15525 "C<device>."
15526 msgstr ""
15527
15528 #. type: textblock
15529 #: ../fish/guestfish-actions.pod:4819 ../src/guestfs-actions.pod:7299
15530 msgid ""
15531 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
15532 "for more details.  The list of fields returned isn't clearly defined, and "
15533 "depends on both the version of C<tune2fs> that libguestfs was built against, "
15534 "and the filesystem itself."
15535 msgstr ""
15536
15537 #. type: =head2
15538 #: ../fish/guestfish-actions.pod:4824
15539 msgid "txz-in"
15540 msgstr ""
15541
15542 #. type: verbatim
15543 #: ../fish/guestfish-actions.pod:4826
15544 #, no-wrap
15545 msgid ""
15546 " txz-in (tarball|-) directory\n"
15547 "\n"
15548 msgstr ""
15549
15550 #. type: textblock
15551 #: ../fish/guestfish-actions.pod:4828 ../src/guestfs-actions.pod:7319
15552 msgid ""
15553 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
15554 "tar file) into C<directory>."
15555 msgstr ""
15556
15557 #. type: =head2
15558 #: ../fish/guestfish-actions.pod:4833
15559 msgid "txz-out"
15560 msgstr ""
15561
15562 #. type: verbatim
15563 #: ../fish/guestfish-actions.pod:4835
15564 #, no-wrap
15565 msgid ""
15566 " txz-out directory (tarball|-)\n"
15567 "\n"
15568 msgstr ""
15569
15570 #. type: textblock
15571 #: ../fish/guestfish-actions.pod:4837 ../src/guestfs-actions.pod:7333
15572 msgid ""
15573 "This command packs the contents of C<directory> and downloads it to local "
15574 "file C<tarball> (as an xz compressed tar archive)."
15575 msgstr ""
15576
15577 #. type: =head2
15578 #: ../fish/guestfish-actions.pod:4842
15579 msgid "umask"
15580 msgstr ""
15581
15582 #. type: verbatim
15583 #: ../fish/guestfish-actions.pod:4844
15584 #, no-wrap
15585 msgid ""
15586 " umask mask\n"
15587 "\n"
15588 msgstr ""
15589
15590 #. type: textblock
15591 #: ../fish/guestfish-actions.pod:4846 ../src/guestfs-actions.pod:7346
15592 msgid ""
15593 "This function sets the mask used for creating new files and device nodes to "
15594 "C<mask & 0777>."
15595 msgstr ""
15596
15597 #. type: textblock
15598 #: ../fish/guestfish-actions.pod:4849 ../src/guestfs-actions.pod:7349
15599 msgid ""
15600 "Typical umask values would be C<022> which creates new files with "
15601 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
15602 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
15603 msgstr ""
15604
15605 #. type: textblock
15606 #: ../fish/guestfish-actions.pod:4854 ../src/guestfs-actions.pod:7354
15607 msgid ""
15608 "The default umask is C<022>.  This is important because it means that "
15609 "directories and device nodes will be created with C<0644> or C<0755> mode "
15610 "even if you specify C<0777>."
15611 msgstr ""
15612
15613 #. type: textblock
15614 #: ../fish/guestfish-actions.pod:4858
15615 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
15616 msgstr ""
15617
15618 #. type: textblock
15619 #: ../fish/guestfish-actions.pod:4861 ../src/guestfs-actions.pod:7361
15620 msgid "This call returns the previous umask."
15621 msgstr ""
15622
15623 #. type: =head2
15624 #: ../fish/guestfish-actions.pod:4863
15625 msgid "umount"
15626 msgstr ""
15627
15628 #. type: =head2
15629 #: ../fish/guestfish-actions.pod:4865
15630 msgid "unmount"
15631 msgstr ""
15632
15633 #. type: verbatim
15634 #: ../fish/guestfish-actions.pod:4867
15635 #, no-wrap
15636 msgid ""
15637 " umount pathordevice\n"
15638 "\n"
15639 msgstr ""
15640
15641 #. type: textblock
15642 #: ../fish/guestfish-actions.pod:4869 ../src/guestfs-actions.pod:7373
15643 msgid ""
15644 "This unmounts the given filesystem.  The filesystem may be specified either "
15645 "by its mountpoint (path) or the device which contains the filesystem."
15646 msgstr ""
15647
15648 #. type: =head2
15649 #: ../fish/guestfish-actions.pod:4873
15650 msgid "umount-all"
15651 msgstr ""
15652
15653 #. type: =head2
15654 #: ../fish/guestfish-actions.pod:4875
15655 msgid "unmount-all"
15656 msgstr ""
15657
15658 #. type: verbatim
15659 #: ../fish/guestfish-actions.pod:4877
15660 #, no-wrap
15661 msgid ""
15662 " umount-all\n"
15663 "\n"
15664 msgstr ""
15665
15666 #. type: textblock
15667 #: ../fish/guestfish-actions.pod:4879 ../src/guestfs-actions.pod:7386
15668 msgid "This unmounts all mounted filesystems."
15669 msgstr ""
15670
15671 #. type: textblock
15672 #: ../fish/guestfish-actions.pod:4881 ../src/guestfs-actions.pod:7388
15673 msgid "Some internal mounts are not unmounted by this call."
15674 msgstr ""
15675
15676 #. type: =head2
15677 #: ../fish/guestfish-actions.pod:4883
15678 msgid "upload"
15679 msgstr ""
15680
15681 #. type: verbatim
15682 #: ../fish/guestfish-actions.pod:4885
15683 #, no-wrap
15684 msgid ""
15685 " upload (filename|-) remotefilename\n"
15686 "\n"
15687 msgstr ""
15688
15689 #. type: textblock
15690 #: ../fish/guestfish-actions.pod:4887 ../fish/guestfish-actions.pod:4900 ../src/guestfs-actions.pod:7401 ../src/guestfs-actions.pod:7425
15691 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
15692 msgstr ""
15693
15694 #. type: textblock
15695 #: ../fish/guestfish-actions.pod:4892
15696 msgid "See also L</download>."
15697 msgstr ""
15698
15699 #. type: =head2
15700 #: ../fish/guestfish-actions.pod:4896
15701 msgid "upload-offset"
15702 msgstr ""
15703
15704 #. type: verbatim
15705 #: ../fish/guestfish-actions.pod:4898
15706 #, no-wrap
15707 msgid ""
15708 " upload-offset (filename|-) remotefilename offset\n"
15709 "\n"
15710 msgstr ""
15711
15712 #. type: textblock
15713 #: ../fish/guestfish-actions.pod:4903 ../src/guestfs-actions.pod:7428
15714 msgid ""
15715 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
15716 "The intention is to overwrite parts of existing files or devices, although "
15717 "if a non-existant file is specified then it is created with a \"hole\" "
15718 "before C<offset>.  The size of the data written is implicit in the size of "
15719 "the source C<filename>."
15720 msgstr ""
15721
15722 #. type: textblock
15723 #: ../fish/guestfish-actions.pod:4910
15724 msgid ""
15725 "Note that there is no limit on the amount of data that can be uploaded with "
15726 "this call, unlike with L</pwrite>, and this call always writes the full "
15727 "amount unless an error occurs."
15728 msgstr ""
15729
15730 #. type: textblock
15731 #: ../fish/guestfish-actions.pod:4915
15732 msgid "See also L</upload>, L</pwrite>."
15733 msgstr ""
15734
15735 #. type: =head2
15736 #: ../fish/guestfish-actions.pod:4919
15737 msgid "utimens"
15738 msgstr ""
15739
15740 #. type: verbatim
15741 #: ../fish/guestfish-actions.pod:4921
15742 #, no-wrap
15743 msgid ""
15744 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
15745 "\n"
15746 msgstr ""
15747
15748 #. type: textblock
15749 #: ../fish/guestfish-actions.pod:4923 ../src/guestfs-actions.pod:7461
15750 msgid "This command sets the timestamps of a file with nanosecond precision."
15751 msgstr ""
15752
15753 #. type: textblock
15754 #: ../fish/guestfish-actions.pod:4926 ../src/guestfs-actions.pod:7464
15755 msgid ""
15756 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
15757 "from the epoch."
15758 msgstr ""
15759
15760 #. type: textblock
15761 #: ../fish/guestfish-actions.pod:4929 ../src/guestfs-actions.pod:7467
15762 msgid ""
15763 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
15764 "nanoseconds from the epoch."
15765 msgstr ""
15766
15767 #. type: textblock
15768 #: ../fish/guestfish-actions.pod:4932 ../src/guestfs-actions.pod:7470
15769 msgid ""
15770 "If the C<*nsecs> field contains the special value C<-1> then the "
15771 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
15772 "ignored in this case)."
15773 msgstr ""
15774
15775 #. type: textblock
15776 #: ../fish/guestfish-actions.pod:4936 ../src/guestfs-actions.pod:7474
15777 msgid ""
15778 "If the C<*nsecs> field contains the special value C<-2> then the "
15779 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
15780 "in this case)."
15781 msgstr ""
15782
15783 #. type: =head2
15784 #: ../fish/guestfish-actions.pod:4940
15785 msgid "version"
15786 msgstr ""
15787
15788 #. type: verbatim
15789 #: ../fish/guestfish-actions.pod:4942
15790 #, no-wrap
15791 msgid ""
15792 " version\n"
15793 "\n"
15794 msgstr ""
15795
15796 #. type: textblock
15797 #: ../fish/guestfish-actions.pod:4944 ../src/guestfs-actions.pod:7487
15798 msgid "Return the libguestfs version number that the program is linked against."
15799 msgstr ""
15800
15801 #. type: textblock
15802 #: ../fish/guestfish-actions.pod:4947 ../src/guestfs-actions.pod:7490
15803 msgid ""
15804 "Note that because of dynamic linking this is not necessarily the version of "
15805 "libguestfs that you compiled against.  You can compile the program, and then "
15806 "at runtime dynamically link against a completely different C<libguestfs.so> "
15807 "library."
15808 msgstr ""
15809
15810 #. type: textblock
15811 #: ../fish/guestfish-actions.pod:4952 ../src/guestfs-actions.pod:7495
15812 msgid ""
15813 "This call was added in version C<1.0.58>.  In previous versions of "
15814 "libguestfs there was no way to get the version number.  From C code you can "
15815 "use dynamic linker functions to find out if this symbol exists (if it "
15816 "doesn't, then it's an earlier version)."
15817 msgstr ""
15818
15819 #. type: textblock
15820 #: ../fish/guestfish-actions.pod:4958 ../src/guestfs-actions.pod:7501
15821 msgid ""
15822 "The call returns a structure with four elements.  The first three (C<major>, "
15823 "C<minor> and C<release>) are numbers and correspond to the usual version "
15824 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
15825 "but may be used for distro-specific information."
15826 msgstr ""
15827
15828 #. type: textblock
15829 #: ../fish/guestfish-actions.pod:4964 ../src/guestfs-actions.pod:7507
15830 msgid "To construct the original version string: C<$major.$minor.$release$extra>"
15831 msgstr ""
15832
15833 #. type: textblock
15834 #: ../fish/guestfish-actions.pod:4967 ../src/guestfs-actions.pod:7510
15835 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
15836 msgstr ""
15837
15838 #. type: textblock
15839 #: ../fish/guestfish-actions.pod:4969
15840 msgid ""
15841 "I<Note:> Don't use this call to test for availability of features.  In "
15842 "enterprise distributions we backport features from later versions into "
15843 "earlier versions, making this an unreliable way to test for features.  Use "
15844 "L</available> instead."
15845 msgstr ""
15846
15847 #. type: =head2
15848 #: ../fish/guestfish-actions.pod:4975
15849 msgid "vfs-label"
15850 msgstr ""
15851
15852 #. type: verbatim
15853 #: ../fish/guestfish-actions.pod:4977
15854 #, no-wrap
15855 msgid ""
15856 " vfs-label device\n"
15857 "\n"
15858 msgstr ""
15859
15860 #. type: textblock
15861 #: ../fish/guestfish-actions.pod:4979 ../src/guestfs-actions.pod:7530
15862 msgid "This returns the filesystem label of the filesystem on C<device>."
15863 msgstr ""
15864
15865 #. type: textblock
15866 #: ../fish/guestfish-actions.pod:4982 ../src/guestfs-actions.pod:7533
15867 msgid "If the filesystem is unlabeled, this returns the empty string."
15868 msgstr ""
15869
15870 #. type: textblock
15871 #: ../fish/guestfish-actions.pod:4984
15872 msgid "To find a filesystem from the label, use L</findfs-label>."
15873 msgstr ""
15874
15875 #. type: =head2
15876 #: ../fish/guestfish-actions.pod:4986
15877 msgid "vfs-type"
15878 msgstr ""
15879
15880 #. type: verbatim
15881 #: ../fish/guestfish-actions.pod:4988
15882 #, no-wrap
15883 msgid ""
15884 " vfs-type device\n"
15885 "\n"
15886 msgstr ""
15887
15888 #. type: textblock
15889 #: ../fish/guestfish-actions.pod:4990 ../src/guestfs-actions.pod:7548
15890 msgid ""
15891 "This command gets the filesystem type corresponding to the filesystem on "
15892 "C<device>."
15893 msgstr ""
15894
15895 #. type: textblock
15896 #: ../fish/guestfish-actions.pod:4993 ../src/guestfs-actions.pod:7551
15897 msgid ""
15898 "For most filesystems, the result is the name of the Linux VFS module which "
15899 "would be used to mount this filesystem if you mounted it without specifying "
15900 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
15901 msgstr ""
15902
15903 #. type: =head2
15904 #: ../fish/guestfish-actions.pod:4998
15905 msgid "vfs-uuid"
15906 msgstr ""
15907
15908 #. type: verbatim
15909 #: ../fish/guestfish-actions.pod:5000
15910 #, no-wrap
15911 msgid ""
15912 " vfs-uuid device\n"
15913 "\n"
15914 msgstr ""
15915
15916 #. type: textblock
15917 #: ../fish/guestfish-actions.pod:5002 ../src/guestfs-actions.pod:7567
15918 msgid "This returns the filesystem UUID of the filesystem on C<device>."
15919 msgstr ""
15920
15921 #. type: textblock
15922 #: ../fish/guestfish-actions.pod:5005 ../src/guestfs-actions.pod:7570
15923 msgid "If the filesystem does not have a UUID, this returns the empty string."
15924 msgstr ""
15925
15926 #. type: textblock
15927 #: ../fish/guestfish-actions.pod:5007
15928 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
15929 msgstr ""
15930
15931 #. type: =head2
15932 #: ../fish/guestfish-actions.pod:5009
15933 msgid "vg-activate"
15934 msgstr ""
15935
15936 #. type: verbatim
15937 #: ../fish/guestfish-actions.pod:5011
15938 #, no-wrap
15939 msgid ""
15940 " vg-activate true|false 'volgroups ...'\n"
15941 "\n"
15942 msgstr ""
15943
15944 #. type: textblock
15945 #: ../fish/guestfish-actions.pod:5013 ../src/guestfs-actions.pod:7586
15946 msgid ""
15947 "This command activates or (if C<activate> is false) deactivates all logical "
15948 "volumes in the listed volume groups C<volgroups>."
15949 msgstr ""
15950
15951 #. type: textblock
15952 #: ../fish/guestfish-actions.pod:5016 ../src/guestfs-actions.pod:7589
15953 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
15954 msgstr ""
15955
15956 #. type: textblock
15957 #: ../fish/guestfish-actions.pod:5018 ../src/guestfs-actions.pod:7591
15958 msgid ""
15959 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
15960 "activated or deactivated."
15961 msgstr ""
15962
15963 #. type: =head2
15964 #: ../fish/guestfish-actions.pod:5021
15965 msgid "vg-activate-all"
15966 msgstr ""
15967
15968 #. type: verbatim
15969 #: ../fish/guestfish-actions.pod:5023
15970 #, no-wrap
15971 msgid ""
15972 " vg-activate-all true|false\n"
15973 "\n"
15974 msgstr ""
15975
15976 #. type: textblock
15977 #: ../fish/guestfish-actions.pod:5025 ../src/guestfs-actions.pod:7604
15978 msgid ""
15979 "This command activates or (if C<activate> is false) deactivates all logical "
15980 "volumes in all volume groups."
15981 msgstr ""
15982
15983 #. type: textblock
15984 #: ../fish/guestfish-actions.pod:5028 ../src/guestfs-actions.pod:7607
15985 msgid "This command is the same as running C<vgchange -a y|n>"
15986 msgstr ""
15987
15988 #. type: =head2
15989 #: ../fish/guestfish-actions.pod:5030
15990 msgid "vgcreate"
15991 msgstr ""
15992
15993 #. type: verbatim
15994 #: ../fish/guestfish-actions.pod:5032
15995 #, no-wrap
15996 msgid ""
15997 " vgcreate volgroup 'physvols ...'\n"
15998 "\n"
15999 msgstr ""
16000
16001 #. type: textblock
16002 #: ../fish/guestfish-actions.pod:5034 ../src/guestfs-actions.pod:7620
16003 msgid ""
16004 "This creates an LVM volume group called C<volgroup> from the non-empty list "
16005 "of physical volumes C<physvols>."
16006 msgstr ""
16007
16008 #. type: =head2
16009 #: ../fish/guestfish-actions.pod:5037
16010 msgid "vglvuuids"
16011 msgstr ""
16012
16013 #. type: verbatim
16014 #: ../fish/guestfish-actions.pod:5039
16015 #, no-wrap
16016 msgid ""
16017 " vglvuuids vgname\n"
16018 "\n"
16019 msgstr ""
16020
16021 #. type: textblock
16022 #: ../fish/guestfish-actions.pod:5041 ../src/guestfs-actions.pod:7633
16023 msgid ""
16024 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
16025 "volumes created in this volume group."
16026 msgstr ""
16027
16028 #. type: textblock
16029 #: ../fish/guestfish-actions.pod:5044
16030 msgid ""
16031 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
16032 "logical volumes and volume groups."
16033 msgstr ""
16034
16035 #. type: textblock
16036 #: ../fish/guestfish-actions.pod:5047
16037 msgid "See also L</vgpvuuids>."
16038 msgstr ""
16039
16040 #. type: =head2
16041 #: ../fish/guestfish-actions.pod:5049
16042 msgid "vgpvuuids"
16043 msgstr ""
16044
16045 #. type: verbatim
16046 #: ../fish/guestfish-actions.pod:5051
16047 #, no-wrap
16048 msgid ""
16049 " vgpvuuids vgname\n"
16050 "\n"
16051 msgstr ""
16052
16053 #. type: textblock
16054 #: ../fish/guestfish-actions.pod:5053 ../src/guestfs-actions.pod:7653
16055 msgid ""
16056 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
16057 "volumes that this volume group resides on."
16058 msgstr ""
16059
16060 #. type: textblock
16061 #: ../fish/guestfish-actions.pod:5056
16062 msgid ""
16063 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
16064 "physical volumes and volume groups."
16065 msgstr ""
16066
16067 #. type: textblock
16068 #: ../fish/guestfish-actions.pod:5059
16069 msgid "See also L</vglvuuids>."
16070 msgstr ""
16071
16072 #. type: =head2
16073 #: ../fish/guestfish-actions.pod:5061
16074 msgid "vgremove"
16075 msgstr ""
16076
16077 #. type: verbatim
16078 #: ../fish/guestfish-actions.pod:5063
16079 #, no-wrap
16080 msgid ""
16081 " vgremove vgname\n"
16082 "\n"
16083 msgstr ""
16084
16085 #. type: textblock
16086 #: ../fish/guestfish-actions.pod:5065 ../src/guestfs-actions.pod:7673
16087 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
16088 msgstr ""
16089
16090 #. type: textblock
16091 #: ../fish/guestfish-actions.pod:5067 ../src/guestfs-actions.pod:7675
16092 msgid "This also forcibly removes all logical volumes in the volume group (if any)."
16093 msgstr ""
16094
16095 #. type: =head2
16096 #: ../fish/guestfish-actions.pod:5070
16097 msgid "vgrename"
16098 msgstr ""
16099
16100 #. type: verbatim
16101 #: ../fish/guestfish-actions.pod:5072
16102 #, no-wrap
16103 msgid ""
16104 " vgrename volgroup newvolgroup\n"
16105 "\n"
16106 msgstr ""
16107
16108 #. type: textblock
16109 #: ../fish/guestfish-actions.pod:5074 ../src/guestfs-actions.pod:7689
16110 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
16111 msgstr ""
16112
16113 #. type: =head2
16114 #: ../fish/guestfish-actions.pod:5076
16115 msgid "vgs"
16116 msgstr ""
16117
16118 #. type: verbatim
16119 #: ../fish/guestfish-actions.pod:5078
16120 #, no-wrap
16121 msgid ""
16122 " vgs\n"
16123 "\n"
16124 msgstr ""
16125
16126 #. type: textblock
16127 #: ../fish/guestfish-actions.pod:5080 ../src/guestfs-actions.pod:7700
16128 msgid ""
16129 "List all the volumes groups detected.  This is the equivalent of the "
16130 "L<vgs(8)> command."
16131 msgstr ""
16132
16133 #. type: textblock
16134 #: ../fish/guestfish-actions.pod:5083 ../src/guestfs-actions.pod:7703
16135 msgid ""
16136 "This returns a list of just the volume group names that were detected "
16137 "(eg. C<VolGroup00>)."
16138 msgstr ""
16139
16140 #. type: textblock
16141 #: ../fish/guestfish-actions.pod:5086
16142 msgid "See also L</vgs-full>."
16143 msgstr ""
16144
16145 #. type: =head2
16146 #: ../fish/guestfish-actions.pod:5088
16147 msgid "vgs-full"
16148 msgstr ""
16149
16150 #. type: verbatim
16151 #: ../fish/guestfish-actions.pod:5090
16152 #, no-wrap
16153 msgid ""
16154 " vgs-full\n"
16155 "\n"
16156 msgstr ""
16157
16158 #. type: textblock
16159 #: ../fish/guestfish-actions.pod:5092 ../src/guestfs-actions.pod:7719
16160 msgid ""
16161 "List all the volumes groups detected.  This is the equivalent of the "
16162 "L<vgs(8)> command.  The \"full\" version includes all fields."
16163 msgstr ""
16164
16165 #. type: =head2
16166 #: ../fish/guestfish-actions.pod:5095
16167 msgid "vgscan"
16168 msgstr ""
16169
16170 #. type: verbatim
16171 #: ../fish/guestfish-actions.pod:5097
16172 #, no-wrap
16173 msgid ""
16174 " vgscan\n"
16175 "\n"
16176 msgstr ""
16177
16178 #. type: textblock
16179 #: ../fish/guestfish-actions.pod:5099 ../src/guestfs-actions.pod:7733
16180 msgid ""
16181 "This rescans all block devices and rebuilds the list of LVM physical "
16182 "volumes, volume groups and logical volumes."
16183 msgstr ""
16184
16185 #. type: =head2
16186 #: ../fish/guestfish-actions.pod:5102
16187 msgid "vguuid"
16188 msgstr ""
16189
16190 #. type: verbatim
16191 #: ../fish/guestfish-actions.pod:5104
16192 #, no-wrap
16193 msgid ""
16194 " vguuid vgname\n"
16195 "\n"
16196 msgstr ""
16197
16198 #. type: textblock
16199 #: ../fish/guestfish-actions.pod:5106 ../src/guestfs-actions.pod:7746
16200 msgid "This command returns the UUID of the LVM VG named C<vgname>."
16201 msgstr ""
16202
16203 #. type: =head2
16204 #: ../fish/guestfish-actions.pod:5108
16205 msgid "wc-c"
16206 msgstr ""
16207
16208 #. type: verbatim
16209 #: ../fish/guestfish-actions.pod:5110
16210 #, no-wrap
16211 msgid ""
16212 " wc-c path\n"
16213 "\n"
16214 msgstr ""
16215
16216 #. type: textblock
16217 #: ../fish/guestfish-actions.pod:5112 ../src/guestfs-actions.pod:7786
16218 msgid ""
16219 "This command counts the characters in a file, using the C<wc -c> external "
16220 "command."
16221 msgstr ""
16222
16223 #. type: =head2
16224 #: ../fish/guestfish-actions.pod:5115
16225 msgid "wc-l"
16226 msgstr ""
16227
16228 #. type: verbatim
16229 #: ../fish/guestfish-actions.pod:5117
16230 #, no-wrap
16231 msgid ""
16232 " wc-l path\n"
16233 "\n"
16234 msgstr ""
16235
16236 #. type: textblock
16237 #: ../fish/guestfish-actions.pod:5119 ../src/guestfs-actions.pod:7799
16238 msgid ""
16239 "This command counts the lines in a file, using the C<wc -l> external "
16240 "command."
16241 msgstr ""
16242
16243 #. type: =head2
16244 #: ../fish/guestfish-actions.pod:5122
16245 msgid "wc-w"
16246 msgstr ""
16247
16248 #. type: verbatim
16249 #: ../fish/guestfish-actions.pod:5124
16250 #, no-wrap
16251 msgid ""
16252 " wc-w path\n"
16253 "\n"
16254 msgstr ""
16255
16256 #. type: textblock
16257 #: ../fish/guestfish-actions.pod:5126 ../src/guestfs-actions.pod:7812
16258 msgid ""
16259 "This command counts the words in a file, using the C<wc -w> external "
16260 "command."
16261 msgstr ""
16262
16263 #. type: =head2
16264 #: ../fish/guestfish-actions.pod:5129
16265 msgid "write"
16266 msgstr ""
16267
16268 #. type: verbatim
16269 #: ../fish/guestfish-actions.pod:5131
16270 #, no-wrap
16271 msgid ""
16272 " write path content\n"
16273 "\n"
16274 msgstr ""
16275
16276 #. type: textblock
16277 #: ../fish/guestfish-actions.pod:5133 ../src/guestfs-actions.pod:7827
16278 msgid ""
16279 "This call creates a file called C<path>.  The content of the file is the "
16280 "string C<content> (which can contain any 8 bit data)."
16281 msgstr ""
16282
16283 #. type: textblock
16284 #: ../fish/guestfish-actions.pod:5136
16285 msgid "See also L</write-append>."
16286 msgstr ""
16287
16288 #. type: =head2
16289 #: ../fish/guestfish-actions.pod:5141
16290 msgid "write-append"
16291 msgstr ""
16292
16293 #. type: verbatim
16294 #: ../fish/guestfish-actions.pod:5143
16295 #, no-wrap
16296 msgid ""
16297 " write-append path content\n"
16298 "\n"
16299 msgstr ""
16300
16301 #. type: textblock
16302 #: ../fish/guestfish-actions.pod:5145 ../src/guestfs-actions.pod:7847
16303 msgid ""
16304 "This call appends C<content> to the end of file C<path>.  If C<path> does "
16305 "not exist, then a new file is created."
16306 msgstr ""
16307
16308 #. type: textblock
16309 #: ../fish/guestfish-actions.pod:5148
16310 msgid "See also L</write>."
16311 msgstr ""
16312
16313 #. type: =head2
16314 #: ../fish/guestfish-actions.pod:5153
16315 msgid "write-file"
16316 msgstr ""
16317
16318 #. type: verbatim
16319 #: ../fish/guestfish-actions.pod:5155
16320 #, no-wrap
16321 msgid ""
16322 " write-file path content size\n"
16323 "\n"
16324 msgstr ""
16325
16326 #. type: textblock
16327 #: ../fish/guestfish-actions.pod:5157 ../src/guestfs-actions.pod:7874
16328 msgid ""
16329 "This call creates a file called C<path>.  The contents of the file is the "
16330 "string C<content> (which can contain any 8 bit data), with length C<size>."
16331 msgstr ""
16332
16333 #. type: textblock
16334 #: ../fish/guestfish-actions.pod:5161 ../src/guestfs-actions.pod:7878
16335 msgid ""
16336 "As a special case, if C<size> is C<0> then the length is calculated using "
16337 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
16338 msgstr ""
16339
16340 #. type: textblock
16341 #: ../fish/guestfish-actions.pod:5165 ../src/guestfs-actions.pod:7882
16342 msgid ""
16343 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
16344 "I<not> work, even if the length is specified."
16345 msgstr ""
16346
16347 #. type: textblock
16348 #: ../fish/guestfish-actions.pod:5171
16349 msgid "I<This function is deprecated.> In new code, use the L</write> call instead."
16350 msgstr ""
16351
16352 #. type: =head2
16353 #: ../fish/guestfish-actions.pod:5178
16354 msgid "zegrep"
16355 msgstr ""
16356
16357 #. type: verbatim
16358 #: ../fish/guestfish-actions.pod:5180
16359 #, no-wrap
16360 msgid ""
16361 " zegrep regex path\n"
16362 "\n"
16363 msgstr ""
16364
16365 #. type: textblock
16366 #: ../fish/guestfish-actions.pod:5182 ../src/guestfs-actions.pod:7899
16367 msgid "This calls the external C<zegrep> program and returns the matching lines."
16368 msgstr ""
16369
16370 #. type: =head2
16371 #: ../fish/guestfish-actions.pod:5188
16372 msgid "zegrepi"
16373 msgstr ""
16374
16375 #. type: verbatim
16376 #: ../fish/guestfish-actions.pod:5190
16377 #, no-wrap
16378 msgid ""
16379 " zegrepi regex path\n"
16380 "\n"
16381 msgstr ""
16382
16383 #. type: textblock
16384 #: ../fish/guestfish-actions.pod:5192 ../src/guestfs-actions.pod:7918
16385 msgid "This calls the external C<zegrep -i> program and returns the matching lines."
16386 msgstr ""
16387
16388 #. type: =head2
16389 #: ../fish/guestfish-actions.pod:5198
16390 msgid "zero"
16391 msgstr ""
16392
16393 #. type: verbatim
16394 #: ../fish/guestfish-actions.pod:5200
16395 #, no-wrap
16396 msgid ""
16397 " zero device\n"
16398 "\n"
16399 msgstr ""
16400
16401 #. type: textblock
16402 #: ../fish/guestfish-actions.pod:5202 ../src/guestfs-actions.pod:7936
16403 msgid "This command writes zeroes over the first few blocks of C<device>."
16404 msgstr ""
16405
16406 #. type: textblock
16407 #: ../fish/guestfish-actions.pod:5204 ../src/guestfs-actions.pod:7938
16408 msgid ""
16409 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
16410 "securely wipe the device).  It should be sufficient to remove any partition "
16411 "tables, filesystem superblocks and so on."
16412 msgstr ""
16413
16414 #. type: textblock
16415 #: ../fish/guestfish-actions.pod:5208 ../fish/guestfish-actions.pod:5223 ../src/guestfs-actions.pod:7942 ../src/guestfs-actions.pod:7968
16416 msgid ""
16417 "If blocks are already zero, then this command avoids writing zeroes.  This "
16418 "prevents the underlying device from becoming non-sparse or growing "
16419 "unnecessarily."
16420 msgstr ""
16421
16422 #. type: textblock
16423 #: ../fish/guestfish-actions.pod:5212
16424 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
16425 msgstr ""
16426
16427 #. type: =head2
16428 #: ../fish/guestfish-actions.pod:5215
16429 msgid "zero-device"
16430 msgstr ""
16431
16432 #. type: verbatim
16433 #: ../fish/guestfish-actions.pod:5217
16434 #, no-wrap
16435 msgid ""
16436 " zero-device device\n"
16437 "\n"
16438 msgstr ""
16439
16440 #. type: textblock
16441 #: ../fish/guestfish-actions.pod:5219
16442 msgid ""
16443 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
16444 "which just zeroes the first few blocks of a device."
16445 msgstr ""
16446
16447 #. type: =head2
16448 #: ../fish/guestfish-actions.pod:5230
16449 msgid "zerofree"
16450 msgstr ""
16451
16452 #. type: verbatim
16453 #: ../fish/guestfish-actions.pod:5232
16454 #, no-wrap
16455 msgid ""
16456 " zerofree device\n"
16457 "\n"
16458 msgstr ""
16459
16460 #. type: textblock
16461 #: ../fish/guestfish-actions.pod:5234 ../src/guestfs-actions.pod:7990
16462 msgid ""
16463 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
16464 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
16465 "possible to compress the filesystem more effectively."
16466 msgstr ""
16467
16468 #. type: textblock
16469 #: ../fish/guestfish-actions.pod:5239 ../src/guestfs-actions.pod:7995
16470 msgid "You should B<not> run this program if the filesystem is mounted."
16471 msgstr ""
16472
16473 #. type: textblock
16474 #: ../fish/guestfish-actions.pod:5242 ../src/guestfs-actions.pod:7998
16475 msgid ""
16476 "It is possible that using this program can damage the filesystem or data on "
16477 "the filesystem."
16478 msgstr ""
16479
16480 #. type: =head2
16481 #: ../fish/guestfish-actions.pod:5245
16482 msgid "zfgrep"
16483 msgstr ""
16484
16485 #. type: verbatim
16486 #: ../fish/guestfish-actions.pod:5247
16487 #, no-wrap
16488 msgid ""
16489 " zfgrep pattern path\n"
16490 "\n"
16491 msgstr ""
16492
16493 #. type: textblock
16494 #: ../fish/guestfish-actions.pod:5249 ../src/guestfs-actions.pod:8012
16495 msgid "This calls the external C<zfgrep> program and returns the matching lines."
16496 msgstr ""
16497
16498 #. type: =head2
16499 #: ../fish/guestfish-actions.pod:5255
16500 msgid "zfgrepi"
16501 msgstr ""
16502
16503 #. type: verbatim
16504 #: ../fish/guestfish-actions.pod:5257
16505 #, no-wrap
16506 msgid ""
16507 " zfgrepi pattern path\n"
16508 "\n"
16509 msgstr ""
16510
16511 #. type: textblock
16512 #: ../fish/guestfish-actions.pod:5259 ../src/guestfs-actions.pod:8031
16513 msgid "This calls the external C<zfgrep -i> program and returns the matching lines."
16514 msgstr ""
16515
16516 #. type: =head2
16517 #: ../fish/guestfish-actions.pod:5265
16518 msgid "zfile"
16519 msgstr ""
16520
16521 #. type: verbatim
16522 #: ../fish/guestfish-actions.pod:5267
16523 #, no-wrap
16524 msgid ""
16525 " zfile meth path\n"
16526 "\n"
16527 msgstr ""
16528
16529 #. type: textblock
16530 #: ../fish/guestfish-actions.pod:5269 ../src/guestfs-actions.pod:8057
16531 msgid "This command runs C<file> after first decompressing C<path> using C<method>."
16532 msgstr ""
16533
16534 #. type: textblock
16535 #: ../fish/guestfish-actions.pod:5272 ../src/guestfs-actions.pod:8060
16536 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
16537 msgstr ""
16538
16539 #. type: textblock
16540 #: ../fish/guestfish-actions.pod:5274
16541 msgid "Since 1.0.63, use L</file> instead which can now process compressed files."
16542 msgstr ""
16543
16544 #. type: textblock
16545 #: ../fish/guestfish-actions.pod:5277
16546 msgid "I<This function is deprecated.> In new code, use the L</file> call instead."
16547 msgstr ""
16548
16549 #. type: =head2
16550 #: ../fish/guestfish-actions.pod:5284
16551 msgid "zgrep"
16552 msgstr ""
16553
16554 #. type: verbatim
16555 #: ../fish/guestfish-actions.pod:5286
16556 #, no-wrap
16557 msgid ""
16558 " zgrep regex path\n"
16559 "\n"
16560 msgstr ""
16561
16562 #. type: textblock
16563 #: ../fish/guestfish-actions.pod:5288 ../src/guestfs-actions.pod:8077
16564 msgid "This calls the external C<zgrep> program and returns the matching lines."
16565 msgstr ""
16566
16567 #. type: =head2
16568 #: ../fish/guestfish-actions.pod:5294
16569 msgid "zgrepi"
16570 msgstr ""
16571
16572 #. type: verbatim
16573 #: ../fish/guestfish-actions.pod:5296
16574 #, no-wrap
16575 msgid ""
16576 " zgrepi regex path\n"
16577 "\n"
16578 msgstr ""
16579
16580 #. type: textblock
16581 #: ../fish/guestfish-actions.pod:5298 ../src/guestfs-actions.pod:8096
16582 msgid "This calls the external C<zgrep -i> program and returns the matching lines."
16583 msgstr ""
16584
16585 #. type: =head2
16586 #: ../fish/guestfish-commands.pod:1
16587 msgid "alloc"
16588 msgstr ""
16589
16590 #. type: =head2
16591 #: ../fish/guestfish-commands.pod:3
16592 msgid "allocate"
16593 msgstr ""
16594
16595 #. type: verbatim
16596 #: ../fish/guestfish-commands.pod:5
16597 #, no-wrap
16598 msgid ""
16599 " alloc filename size\n"
16600 "\n"
16601 msgstr ""
16602
16603 #. type: textblock
16604 #: ../fish/guestfish-commands.pod:7
16605 msgid ""
16606 "This creates an empty (zeroed) file of the given size, and then adds so it "
16607 "can be further examined."
16608 msgstr ""
16609
16610 #. type: textblock
16611 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
16612 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
16613 msgstr ""
16614
16615 #. type: textblock
16616 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
16617 msgid "Size can be specified using standard suffixes, eg. C<1M>."
16618 msgstr ""
16619
16620 #. type: textblock
16621 #: ../fish/guestfish-commands.pod:14
16622 msgid ""
16623 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
16624 "image, see L</PREPARED DISK IMAGES>."
16625 msgstr ""
16626
16627 #. type: =head2
16628 #: ../fish/guestfish-commands.pod:17
16629 msgid "copy-in"
16630 msgstr ""
16631
16632 #. type: verbatim
16633 #: ../fish/guestfish-commands.pod:19
16634 #, no-wrap
16635 msgid ""
16636 " copy-in local [local ...] /remotedir\n"
16637 "\n"
16638 msgstr ""
16639
16640 #. type: textblock
16641 #: ../fish/guestfish-commands.pod:21
16642 msgid ""
16643 "C<copy-in> copies local files or directories recursively into the disk "
16644 "image, placing them in the directory called C</remotedir> (which must "
16645 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
16646 "other commands as necessary."
16647 msgstr ""
16648
16649 #. type: textblock
16650 #: ../fish/guestfish-commands.pod:26
16651 msgid ""
16652 "Multiple local files and directories can be specified, but the last "
16653 "parameter must always be a remote directory.  Wildcards cannot be used."
16654 msgstr ""
16655
16656 #. type: =head2
16657 #: ../fish/guestfish-commands.pod:30
16658 msgid "copy-out"
16659 msgstr ""
16660
16661 #. type: verbatim
16662 #: ../fish/guestfish-commands.pod:32
16663 #, no-wrap
16664 msgid ""
16665 " copy-out remote [remote ...] localdir\n"
16666 "\n"
16667 msgstr ""
16668
16669 #. type: textblock
16670 #: ../fish/guestfish-commands.pod:34
16671 msgid ""
16672 "C<copy-out> copies remote files or directories recursively out of the disk "
16673 "image, placing them on the host disk in a local directory called C<localdir> "
16674 "(which must exist).  This guestfish meta-command turns into a sequence of "
16675 "L</download>, L</tar-out> and other commands as necessary."
16676 msgstr ""
16677
16678 #. type: textblock
16679 #: ../fish/guestfish-commands.pod:40
16680 msgid ""
16681 "Multiple remote files and directories can be specified, but the last "
16682 "parameter must always be a local directory.  To download to the current "
16683 "directory, use C<.> as in:"
16684 msgstr ""
16685
16686 #. type: verbatim
16687 #: ../fish/guestfish-commands.pod:44
16688 #, no-wrap
16689 msgid ""
16690 " copy-out /home .\n"
16691 "\n"
16692 msgstr ""
16693
16694 #. type: textblock
16695 #: ../fish/guestfish-commands.pod:46
16696 msgid ""
16697 "Wildcards cannot be used in the ordinary command, but you can use them with "
16698 "the help of L</glob> like this:"
16699 msgstr ""
16700
16701 #. type: verbatim
16702 #: ../fish/guestfish-commands.pod:49
16703 #, no-wrap
16704 msgid ""
16705 " glob copy-out /home/* .\n"
16706 "\n"
16707 msgstr ""
16708
16709 #. type: =head2
16710 #: ../fish/guestfish-commands.pod:51
16711 msgid "display"
16712 msgstr ""
16713
16714 #. type: verbatim
16715 #: ../fish/guestfish-commands.pod:53
16716 #, no-wrap
16717 msgid ""
16718 " display filename\n"
16719 "\n"
16720 msgstr ""
16721
16722 #. type: textblock
16723 #: ../fish/guestfish-commands.pod:55
16724 msgid ""
16725 "Use C<display> (a graphical display program) to display an image file.  It "
16726 "downloads the file, and runs C<display> on it."
16727 msgstr ""
16728
16729 #. type: textblock
16730 #: ../fish/guestfish-commands.pod:58
16731 msgid ""
16732 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
16733 "environment variable.  For example to use the GNOME display program:"
16734 msgstr ""
16735
16736 #. type: verbatim
16737 #: ../fish/guestfish-commands.pod:61
16738 #, no-wrap
16739 msgid ""
16740 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
16741 "\n"
16742 msgstr ""
16743
16744 #. type: textblock
16745 #: ../fish/guestfish-commands.pod:63
16746 msgid "See also L<display(1)>."
16747 msgstr ""
16748
16749 #. type: =head2
16750 #: ../fish/guestfish-commands.pod:65
16751 msgid "echo"
16752 msgstr ""
16753
16754 #. type: verbatim
16755 #: ../fish/guestfish-commands.pod:67
16756 #, no-wrap
16757 msgid ""
16758 " echo [params ...]\n"
16759 "\n"
16760 msgstr ""
16761
16762 #. type: textblock
16763 #: ../fish/guestfish-commands.pod:69
16764 msgid "This echos the parameters to the terminal."
16765 msgstr ""
16766
16767 #. type: =head2
16768 #: ../fish/guestfish-commands.pod:71
16769 msgid "edit"
16770 msgstr ""
16771
16772 #. type: =head2
16773 #: ../fish/guestfish-commands.pod:73
16774 msgid "vi"
16775 msgstr ""
16776
16777 #. type: =head2
16778 #: ../fish/guestfish-commands.pod:75
16779 msgid "emacs"
16780 msgstr ""
16781
16782 #. type: verbatim
16783 #: ../fish/guestfish-commands.pod:77
16784 #, no-wrap
16785 msgid ""
16786 " edit filename\n"
16787 "\n"
16788 msgstr ""
16789
16790 #. type: textblock
16791 #: ../fish/guestfish-commands.pod:79
16792 msgid ""
16793 "This is used to edit a file.  It downloads the file, edits it locally using "
16794 "your editor, then uploads the result."
16795 msgstr ""
16796
16797 #. type: textblock
16798 #: ../fish/guestfish-commands.pod:82
16799 msgid ""
16800 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
16801 "or C<emacs> you will get those corresponding editors."
16802 msgstr ""
16803
16804 #. type: =head2
16805 #: ../fish/guestfish-commands.pod:86
16806 msgid "glob"
16807 msgstr ""
16808
16809 #. type: verbatim
16810 #: ../fish/guestfish-commands.pod:88
16811 #, no-wrap
16812 msgid ""
16813 " glob command args...\n"
16814 "\n"
16815 msgstr ""
16816
16817 #. type: textblock
16818 #: ../fish/guestfish-commands.pod:90
16819 msgid ""
16820 "Expand wildcards in any paths in the args list, and run C<command> "
16821 "repeatedly on each matching path."
16822 msgstr ""
16823
16824 #. type: textblock
16825 #: ../fish/guestfish-commands.pod:93
16826 msgid "See L</WILDCARDS AND GLOBBING>."
16827 msgstr ""
16828
16829 #. type: =head2
16830 #: ../fish/guestfish-commands.pod:95
16831 msgid "hexedit"
16832 msgstr ""
16833
16834 #. type: verbatim
16835 #: ../fish/guestfish-commands.pod:97
16836 #, no-wrap
16837 msgid ""
16838 " hexedit <filename|device>\n"
16839 " hexedit <filename|device> <max>\n"
16840 " hexedit <filename|device> <start> <max>\n"
16841 "\n"
16842 msgstr ""
16843
16844 #. type: textblock
16845 #: ../fish/guestfish-commands.pod:101
16846 msgid ""
16847 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
16848 "device."
16849 msgstr ""
16850
16851 #. type: textblock
16852 #: ../fish/guestfish-commands.pod:104
16853 msgid ""
16854 "This command works by downloading potentially the whole file or device, "
16855 "editing it locally, then uploading it.  If the file or device is large, you "
16856 "have to specify which part you wish to edit by using C<max> and/or C<start> "
16857 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
16858 "usual modifiers allowed such as C<1M> (1 megabyte)."
16859 msgstr ""
16860
16861 #. type: textblock
16862 #: ../fish/guestfish-commands.pod:111
16863 msgid "For example to edit the first few sectors of a disk you might do:"
16864 msgstr ""
16865
16866 #. type: verbatim
16867 #: ../fish/guestfish-commands.pod:114
16868 #, no-wrap
16869 msgid ""
16870 " hexedit /dev/sda 1M\n"
16871 "\n"
16872 msgstr ""
16873
16874 #. type: textblock
16875 #: ../fish/guestfish-commands.pod:116
16876 msgid ""
16877 "which would allow you to edit anywhere within the first megabyte of the "
16878 "disk."
16879 msgstr ""
16880
16881 #. type: textblock
16882 #: ../fish/guestfish-commands.pod:119
16883 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
16884 msgstr ""
16885
16886 #. type: verbatim
16887 #: ../fish/guestfish-commands.pod:121
16888 #, no-wrap
16889 msgid ""
16890 " hexedit /dev/sda1 0x400 0x400\n"
16891 "\n"
16892 msgstr ""
16893
16894 #. type: textblock
16895 #: ../fish/guestfish-commands.pod:123
16896 msgid "(assuming the superblock is in the standard location)."
16897 msgstr ""
16898
16899 #. type: textblock
16900 #: ../fish/guestfish-commands.pod:125
16901 msgid ""
16902 "This command requires the external L<hexedit(1)> program.  You can specify "
16903 "another program to use by setting the C<HEXEDITOR> environment variable."
16904 msgstr ""
16905
16906 #. type: textblock
16907 #: ../fish/guestfish-commands.pod:129
16908 msgid "See also L</hexdump>."
16909 msgstr ""
16910
16911 #. type: =head2
16912 #: ../fish/guestfish-commands.pod:131
16913 msgid "lcd"
16914 msgstr ""
16915
16916 #. type: verbatim
16917 #: ../fish/guestfish-commands.pod:133
16918 #, no-wrap
16919 msgid ""
16920 " lcd directory\n"
16921 "\n"
16922 msgstr ""
16923
16924 #. type: textblock
16925 #: ../fish/guestfish-commands.pod:135
16926 msgid "Change the local directory, ie. the current directory of guestfish itself."
16927 msgstr ""
16928
16929 #. type: textblock
16930 #: ../fish/guestfish-commands.pod:138
16931 msgid "Note that C<!cd> won't do what you might expect."
16932 msgstr ""
16933
16934 #. type: =head2
16935 #: ../fish/guestfish-commands.pod:140
16936 msgid "man"
16937 msgstr ""
16938
16939 #. type: =head2
16940 #: ../fish/guestfish-commands.pod:142
16941 msgid "manual"
16942 msgstr ""
16943
16944 #. type: verbatim
16945 #: ../fish/guestfish-commands.pod:144
16946 #, no-wrap
16947 msgid ""
16948 "  man\n"
16949 "\n"
16950 msgstr ""
16951
16952 #. type: textblock
16953 #: ../fish/guestfish-commands.pod:146
16954 msgid "Opens the manual page for guestfish."
16955 msgstr ""
16956
16957 #. type: =head2
16958 #: ../fish/guestfish-commands.pod:148
16959 msgid "more"
16960 msgstr ""
16961
16962 #. type: =head2
16963 #: ../fish/guestfish-commands.pod:150
16964 msgid "less"
16965 msgstr ""
16966
16967 #. type: verbatim
16968 #: ../fish/guestfish-commands.pod:152
16969 #, no-wrap
16970 msgid ""
16971 " more filename\n"
16972 "\n"
16973 msgstr ""
16974
16975 #. type: verbatim
16976 #: ../fish/guestfish-commands.pod:154
16977 #, no-wrap
16978 msgid ""
16979 " less filename\n"
16980 "\n"
16981 msgstr ""
16982
16983 #. type: textblock
16984 #: ../fish/guestfish-commands.pod:156
16985 msgid "This is used to view a file."
16986 msgstr ""
16987
16988 #. type: textblock
16989 #: ../fish/guestfish-commands.pod:158
16990 msgid ""
16991 "The default viewer is C<$PAGER>.  However if you use the alternate command "
16992 "C<less> you will get the C<less> command specifically."
16993 msgstr ""
16994
16995 #. type: =head2
16996 #: ../fish/guestfish-commands.pod:161
16997 msgid "reopen"
16998 msgstr ""
16999
17000 #. type: verbatim
17001 #: ../fish/guestfish-commands.pod:163
17002 #, no-wrap
17003 msgid ""
17004 "  reopen\n"
17005 "\n"
17006 msgstr ""
17007
17008 #. type: textblock
17009 #: ../fish/guestfish-commands.pod:165
17010 msgid ""
17011 "Close and reopen the libguestfs handle.  It is not necessary to use this "
17012 "normally, because the handle is closed properly when guestfish exits.  "
17013 "However this is occasionally useful for testing."
17014 msgstr ""
17015
17016 #. type: =head2
17017 #: ../fish/guestfish-commands.pod:169
17018 msgid "setenv"
17019 msgstr ""
17020
17021 #. type: verbatim
17022 #: ../fish/guestfish-commands.pod:171
17023 #, no-wrap
17024 msgid ""
17025 "  setenv VAR value\n"
17026 "\n"
17027 msgstr ""
17028
17029 #. type: textblock
17030 #: ../fish/guestfish-commands.pod:173
17031 msgid "Set the environment variable C<VAR> to the string C<value>."
17032 msgstr ""
17033
17034 #. type: textblock
17035 #: ../fish/guestfish-commands.pod:175
17036 msgid "To print the value of an environment variable use a shell command such as:"
17037 msgstr ""
17038
17039 #. type: verbatim
17040 #: ../fish/guestfish-commands.pod:178
17041 #, no-wrap
17042 msgid ""
17043 " !echo $VAR\n"
17044 "\n"
17045 msgstr ""
17046
17047 #. type: =head2
17048 #: ../fish/guestfish-commands.pod:180
17049 msgid "sparse"
17050 msgstr ""
17051
17052 #. type: verbatim
17053 #: ../fish/guestfish-commands.pod:182
17054 #, no-wrap
17055 msgid ""
17056 " sparse filename size\n"
17057 "\n"
17058 msgstr ""
17059
17060 #. type: textblock
17061 #: ../fish/guestfish-commands.pod:184
17062 msgid ""
17063 "This creates an empty sparse file of the given size, and then adds so it can "
17064 "be further examined."
17065 msgstr ""
17066
17067 #. type: textblock
17068 #: ../fish/guestfish-commands.pod:187
17069 msgid ""
17070 "In all respects it works the same as the L</alloc> command, except that the "
17071 "image file is allocated sparsely, which means that disk blocks are not "
17072 "assigned to the file until they are needed.  Sparse disk files only use "
17073 "space when written to, but they are slower and there is a danger you could "
17074 "run out of real disk space during a write operation."
17075 msgstr ""
17076
17077 #. type: =head2
17078 #: ../fish/guestfish-commands.pod:197
17079 msgid "supported"
17080 msgstr ""
17081
17082 #. type: verbatim
17083 #: ../fish/guestfish-commands.pod:199
17084 #, no-wrap
17085 msgid ""
17086 " supported\n"
17087 "\n"
17088 msgstr ""
17089
17090 #. type: textblock
17091 #: ../fish/guestfish-commands.pod:201
17092 msgid ""
17093 "This command returns a list of the optional groups known to the daemon, and "
17094 "indicates which ones are supported by this build of the libguestfs "
17095 "appliance."
17096 msgstr ""
17097
17098 #. type: textblock
17099 #: ../fish/guestfish-commands.pod:205
17100 msgid "See also L<guestfs(3)/AVAILABILITY>."
17101 msgstr ""
17102
17103 #. type: =head2
17104 #: ../fish/guestfish-commands.pod:207
17105 msgid "time"
17106 msgstr ""
17107
17108 #. type: verbatim
17109 #: ../fish/guestfish-commands.pod:209
17110 #, no-wrap
17111 msgid ""
17112 " time command args...\n"
17113 "\n"
17114 msgstr ""
17115
17116 #. type: textblock
17117 #: ../fish/guestfish-commands.pod:211
17118 msgid ""
17119 "Run the command as usual, but print the elapsed time afterwards.  This can "
17120 "be useful for benchmarking operations."
17121 msgstr ""
17122
17123 #. type: =head2
17124 #: ../fish/guestfish-commands.pod:214
17125 msgid "unsetenv"
17126 msgstr ""
17127
17128 #. type: verbatim
17129 #: ../fish/guestfish-commands.pod:216
17130 #, no-wrap
17131 msgid ""
17132 "  unsetenv VAR\n"
17133 "\n"
17134 msgstr ""
17135
17136 #. type: textblock
17137 #: ../fish/guestfish-commands.pod:218
17138 msgid "Remove C<VAR> from the environment."
17139 msgstr ""
17140
17141 #. type: textblock
17142 #: ../fish/guestfish.pod:5
17143 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
17144 msgstr ""
17145
17146 #. type: verbatim
17147 #: ../fish/guestfish.pod:9
17148 #, no-wrap
17149 msgid ""
17150 " guestfish [--options] [commands]\n"
17151 "\n"
17152 msgstr ""
17153
17154 #. type: verbatim
17155 #: ../fish/guestfish.pod:11
17156 #, no-wrap
17157 msgid ""
17158 " guestfish\n"
17159 "\n"
17160 msgstr ""
17161
17162 #. type: verbatim
17163 #: ../fish/guestfish.pod:13
17164 #, no-wrap
17165 msgid ""
17166 " guestfish [--ro|--rw] -a disk.img\n"
17167 "\n"
17168 msgstr ""
17169
17170 #. type: verbatim
17171 #: ../fish/guestfish.pod:15
17172 #, no-wrap
17173 msgid ""
17174 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
17175 "\n"
17176 msgstr ""
17177
17178 #. type: verbatim
17179 #: ../fish/guestfish.pod:17
17180 #, no-wrap
17181 msgid ""
17182 " guestfish -d libvirt-domain\n"
17183 "\n"
17184 msgstr ""
17185
17186 #. type: verbatim
17187 #: ../fish/guestfish.pod:19
17188 #, no-wrap
17189 msgid ""
17190 " guestfish [--ro|--rw] -a disk.img -i\n"
17191 "\n"
17192 msgstr ""
17193
17194 #. type: verbatim
17195 #: ../fish/guestfish.pod:21
17196 #, no-wrap
17197 msgid ""
17198 " guestfish -d libvirt-domain -i\n"
17199 "\n"
17200 msgstr ""
17201
17202 #. type: textblock
17203 #: ../fish/guestfish.pod:25
17204 msgid ""
17205 "Using guestfish in read/write mode on live virtual machines can be "
17206 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
17207 "option to use guestfish safely if the disk image or virtual machine might be "
17208 "live."
17209 msgstr ""
17210
17211 #. type: textblock
17212 #: ../fish/guestfish.pod:32
17213 msgid ""
17214 "Guestfish is a shell and command-line tool for examining and modifying "
17215 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
17216 "functionality of the guestfs API, see L<guestfs(3)>."
17217 msgstr ""
17218
17219 #. type: textblock
17220 #: ../fish/guestfish.pod:36
17221 msgid ""
17222 "Guestfish gives you structured access to the libguestfs API, from shell "
17223 "scripts or the command line or interactively.  If you want to rescue a "
17224 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
17225 "command."
17226 msgstr ""
17227
17228 #. type: =head2
17229 #: ../fish/guestfish.pod:43
17230 msgid "As an interactive shell"
17231 msgstr ""
17232
17233 #. type: verbatim
17234 #: ../fish/guestfish.pod:45
17235 #, no-wrap
17236 msgid ""
17237 " $ guestfish\n"
17238 " \n"
17239 msgstr ""
17240
17241 #. type: verbatim
17242 #: ../fish/guestfish.pod:47
17243 #, no-wrap
17244 msgid ""
17245 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
17246 " editing virtual machine filesystems.\n"
17247 " \n"
17248 msgstr ""
17249
17250 #. type: verbatim
17251 #: ../fish/guestfish.pod:50
17252 #, no-wrap
17253 msgid ""
17254 " Type: 'help' for a list of commands\n"
17255 "       'man' to read the manual\n"
17256 "       'quit' to quit the shell\n"
17257 " \n"
17258 msgstr ""
17259
17260 #. type: verbatim
17261 #: ../fish/guestfish.pod:54
17262 #, no-wrap
17263 msgid ""
17264 " ><fs> add-ro disk.img\n"
17265 " ><fs> run\n"
17266 " ><fs> list-filesystems\n"
17267 " /dev/sda1: ext4\n"
17268 " /dev/vg_guest/lv_root: ext4\n"
17269 " /dev/vg_guest/lv_swap: swap\n"
17270 " ><fs> mount /dev/vg_guest/lv_root /\n"
17271 " ><fs> cat /etc/fstab\n"
17272 " # /etc/fstab\n"
17273 " # Created by anaconda\n"
17274 " [...]\n"
17275 " ><fs> exit\n"
17276 "\n"
17277 msgstr ""
17278
17279 #. type: =head2
17280 #: ../fish/guestfish.pod:67
17281 msgid "From shell scripts"
17282 msgstr ""
17283
17284 #. type: textblock
17285 #: ../fish/guestfish.pod:69
17286 msgid "Create a new C</etc/motd> file in a guest or disk image:"
17287 msgstr ""
17288
17289 #. type: verbatim
17290 #: ../fish/guestfish.pod:71
17291 #, no-wrap
17292 msgid ""
17293 " guestfish <<_EOF_\n"
17294 " add disk.img\n"
17295 " run\n"
17296 " mount /dev/vg_guest/lv_root /\n"
17297 " write /etc/motd \"Welcome, new users\"\n"
17298 " _EOF_\n"
17299 "\n"
17300 msgstr ""
17301
17302 #. type: textblock
17303 #: ../fish/guestfish.pod:78
17304 msgid "List the LVM logical volumes in a disk image:"
17305 msgstr ""
17306
17307 #. type: verbatim
17308 #: ../fish/guestfish.pod:80
17309 #, no-wrap
17310 msgid ""
17311 " guestfish -a disk.img --ro <<_EOF_\n"
17312 " run\n"
17313 " lvs\n"
17314 " _EOF_\n"
17315 "\n"
17316 msgstr ""
17317
17318 #. type: textblock
17319 #: ../fish/guestfish.pod:85
17320 msgid "List all the filesystems in a disk image:"
17321 msgstr ""
17322
17323 #. type: verbatim
17324 #: ../fish/guestfish.pod:87
17325 #, no-wrap
17326 msgid ""
17327 " guestfish -a disk.img --ro <<_EOF_\n"
17328 " run\n"
17329 " list-filesystems\n"
17330 " _EOF_\n"
17331 "\n"
17332 msgstr ""
17333
17334 #. type: =head2
17335 #: ../fish/guestfish.pod:92
17336 msgid "On one command line"
17337 msgstr ""
17338
17339 #. type: textblock
17340 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
17341 msgid "Update C</etc/resolv.conf> in a guest:"
17342 msgstr ""
17343
17344 #. type: verbatim
17345 #: ../fish/guestfish.pod:96
17346 #, no-wrap
17347 msgid ""
17348 " guestfish \\\n"
17349 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
17350 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
17351 "\n"
17352 msgstr ""
17353
17354 #. type: textblock
17355 #: ../fish/guestfish.pod:100
17356 msgid "Edit C</boot/grub/grub.conf> interactively:"
17357 msgstr ""
17358
17359 #. type: verbatim
17360 #: ../fish/guestfish.pod:102
17361 #, no-wrap
17362 msgid ""
17363 " guestfish --rw --add disk.img \\\n"
17364 "   --mount /dev/vg_guest/lv_root \\\n"
17365 "   --mount /dev/sda1:/boot \\\n"
17366 "   edit /boot/grub/grub.conf\n"
17367 "\n"
17368 msgstr ""
17369
17370 #. type: =head2
17371 #: ../fish/guestfish.pod:107
17372 msgid "Mount disks automatically"
17373 msgstr ""
17374
17375 #. type: textblock
17376 #: ../fish/guestfish.pod:109
17377 msgid ""
17378 "Use the I<-i> option to automatically mount the disks from a virtual "
17379 "machine:"
17380 msgstr ""
17381
17382 #. type: verbatim
17383 #: ../fish/guestfish.pod:112
17384 #, no-wrap
17385 msgid ""
17386 " guestfish --ro -a disk.img -i cat /etc/group\n"
17387 "\n"
17388 msgstr ""
17389
17390 #. type: verbatim
17391 #: ../fish/guestfish.pod:114
17392 #, no-wrap
17393 msgid ""
17394 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
17395 "\n"
17396 msgstr ""
17397
17398 #. type: textblock
17399 #: ../fish/guestfish.pod:116
17400 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
17401 msgstr ""
17402
17403 #. type: verbatim
17404 #: ../fish/guestfish.pod:118
17405 #, no-wrap
17406 msgid ""
17407 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
17408 "\n"
17409 msgstr ""
17410
17411 #. type: =head2
17412 #: ../fish/guestfish.pod:120
17413 msgid "As a script interpreter"
17414 msgstr ""
17415
17416 #. type: textblock
17417 #: ../fish/guestfish.pod:122
17418 msgid "Create a 100MB disk containing an ext2-formatted partition:"
17419 msgstr ""
17420
17421 #. type: verbatim
17422 #: ../fish/guestfish.pod:124
17423 #, no-wrap
17424 msgid ""
17425 " #!/usr/bin/guestfish -f\n"
17426 " sparse test1.img 100M\n"
17427 " run\n"
17428 " part-disk /dev/sda mbr\n"
17429 " mkfs ext2 /dev/sda1\n"
17430 "\n"
17431 msgstr ""
17432
17433 #. type: =head2
17434 #: ../fish/guestfish.pod:130
17435 msgid "Start with a prepared disk"
17436 msgstr ""
17437
17438 #. type: textblock
17439 #: ../fish/guestfish.pod:132
17440 msgid ""
17441 "An alternate way to create a 100MB disk called C<test1.img> containing a "
17442 "single ext2-formatted partition:"
17443 msgstr ""
17444
17445 #. type: verbatim
17446 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2228
17447 #, no-wrap
17448 msgid ""
17449 " guestfish -N fs\n"
17450 "\n"
17451 msgstr ""
17452
17453 #. type: textblock
17454 #: ../fish/guestfish.pod:137
17455 msgid "To list what is available do:"
17456 msgstr ""
17457
17458 #. type: verbatim
17459 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
17460 #, no-wrap
17461 msgid ""
17462 " guestfish -N help | less\n"
17463 "\n"
17464 msgstr ""
17465
17466 #. type: =head2
17467 #: ../fish/guestfish.pod:141
17468 msgid "Remote control"
17469 msgstr ""
17470
17471 #. type: verbatim
17472 #: ../fish/guestfish.pod:143
17473 #, no-wrap
17474 msgid ""
17475 " eval \"`guestfish --listen`\"\n"
17476 " guestfish --remote add-ro disk.img\n"
17477 " guestfish --remote run\n"
17478 " guestfish --remote lvs\n"
17479 "\n"
17480 msgstr ""
17481
17482 #. type: textblock
17483 #: ../fish/guestfish.pod:154
17484 msgid "Displays general help on options."
17485 msgstr ""
17486
17487 #. type: =item
17488 #: ../fish/guestfish.pod:158
17489 msgid "B<--cmd-help>"
17490 msgstr ""
17491
17492 #. type: textblock
17493 #: ../fish/guestfish.pod:160
17494 msgid "Lists all available guestfish commands."
17495 msgstr ""
17496
17497 #. type: =item
17498 #: ../fish/guestfish.pod:162
17499 msgid "B<-h cmd>"
17500 msgstr ""
17501
17502 #. type: =item
17503 #: ../fish/guestfish.pod:164
17504 msgid "B<--cmd-help cmd>"
17505 msgstr ""
17506
17507 #. type: textblock
17508 #: ../fish/guestfish.pod:166
17509 msgid "Displays detailed help on a single command C<cmd>."
17510 msgstr ""
17511
17512 #. type: =item
17513 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
17514 msgid "B<-a image>"
17515 msgstr ""
17516
17517 #. type: =item
17518 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
17519 msgid "B<--add image>"
17520 msgstr ""
17521
17522 #. type: textblock
17523 #: ../fish/guestfish.pod:172
17524 msgid "Add a block device or virtual machine image to the shell."
17525 msgstr ""
17526
17527 #. type: textblock
17528 #: ../fish/guestfish.pod:177
17529 msgid ""
17530 "Using this flag is mostly equivalent to using the C<add> command, with "
17531 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
17532 "the I<--format=...> flag was given."
17533 msgstr ""
17534
17535 #. type: textblock
17536 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
17537 msgid ""
17538 "When used in conjunction with the I<-d> option, this specifies the libvirt "
17539 "URI to use.  The default is to use the default libvirt connection."
17540 msgstr ""
17541
17542 #. type: =item
17543 #: ../fish/guestfish.pod:189
17544 msgid "B<--csh>"
17545 msgstr ""
17546
17547 #. type: textblock
17548 #: ../fish/guestfish.pod:191
17549 msgid ""
17550 "If using the I<--listen> option and a csh-like shell, use this option.  See "
17551 "section L</REMOTE CONTROL AND CSH> below."
17552 msgstr ""
17553
17554 #. type: =item
17555 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
17556 msgid "B<-d libvirt-domain>"
17557 msgstr ""
17558
17559 #. type: =item
17560 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
17561 msgid "B<--domain libvirt-domain>"
17562 msgstr ""
17563
17564 #. type: textblock
17565 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
17566 msgid ""
17567 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
17568 "used, then any libvirt domain can be used.  However in write mode, only "
17569 "libvirt domains which are shut down can be named here."
17570 msgstr ""
17571
17572 #. type: textblock
17573 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
17574 msgid "Domain UUIDs can be used instead of names."
17575 msgstr ""
17576
17577 #. type: textblock
17578 #: ../fish/guestfish.pod:204
17579 msgid ""
17580 "Using this flag is mostly equivalent to using the C<add-domain> command, "
17581 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
17582 "if the I<--format:...> flag was given."
17583 msgstr ""
17584
17585 #. type: =item
17586 #: ../fish/guestfish.pod:208
17587 msgid "B<-D>"
17588 msgstr ""
17589
17590 #. type: =item
17591 #: ../fish/guestfish.pod:210
17592 msgid "B<--no-dest-paths>"
17593 msgstr ""
17594
17595 #. type: textblock
17596 #: ../fish/guestfish.pod:212
17597 msgid ""
17598 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
17599 "to hit the tab key to complete paths on the guest filesystem, but this "
17600 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
17601 "allow this feature to be disabled."
17602 msgstr ""
17603
17604 #. type: textblock
17605 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
17606 msgid ""
17607 "When prompting for keys and passphrases, guestfish normally turns echoing "
17608 "off so you cannot see what you are typing.  If you are not worried about "
17609 "Tempest attacks and there is no one else in the room you can specify this "
17610 "flag to see what you are typing."
17611 msgstr ""
17612
17613 #. type: =item
17614 #: ../fish/guestfish.pod:224
17615 msgid "B<-f file>"
17616 msgstr ""
17617
17618 #. type: =item
17619 #: ../fish/guestfish.pod:226
17620 msgid "B<--file file>"
17621 msgstr ""
17622
17623 #. type: textblock
17624 #: ../fish/guestfish.pod:228
17625 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
17626 msgstr ""
17627
17628 #. type: verbatim
17629 #: ../fish/guestfish.pod:231
17630 #, no-wrap
17631 msgid ""
17632 " #!/usr/bin/guestfish -f\n"
17633 "\n"
17634 msgstr ""
17635
17636 #. type: verbatim
17637 #: ../fish/guestfish.pod:244
17638 #, no-wrap
17639 msgid ""
17640 " guestfish --format=raw -a disk.img\n"
17641 "\n"
17642 msgstr ""
17643
17644 #. type: verbatim
17645 #: ../fish/guestfish.pod:248
17646 #, no-wrap
17647 msgid ""
17648 " guestfish --format=raw -a disk.img --format -a another.img\n"
17649 "\n"
17650 msgstr ""
17651
17652 #. type: textblock
17653 #: ../fish/guestfish.pod:253
17654 msgid ""
17655 "If you have untrusted raw-format guest disk images, you should use this "
17656 "option to specify the disk format.  This avoids a possible security problem "
17657 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
17658 msgstr ""
17659
17660 #. type: =item
17661 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
17662 msgid "B<--inspector>"
17663 msgstr ""
17664
17665 #. type: textblock
17666 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
17667 msgid ""
17668 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
17669 "system and mount filesystems as they would be mounted on the real virtual "
17670 "machine."
17671 msgstr ""
17672
17673 #. type: textblock
17674 #: ../fish/guestfish.pod:266
17675 msgid "Typical usage is either:"
17676 msgstr ""
17677
17678 #. type: verbatim
17679 #: ../fish/guestfish.pod:268
17680 #, no-wrap
17681 msgid ""
17682 " guestfish -d myguest -i\n"
17683 "\n"
17684 msgstr ""
17685
17686 #. type: textblock
17687 #: ../fish/guestfish.pod:270
17688 msgid "(for an inactive libvirt domain called I<myguest>), or:"
17689 msgstr ""
17690
17691 #. type: verbatim
17692 #: ../fish/guestfish.pod:272
17693 #, no-wrap
17694 msgid ""
17695 " guestfish --ro -d myguest -i\n"
17696 "\n"
17697 msgstr ""
17698
17699 #. type: textblock
17700 #: ../fish/guestfish.pod:274
17701 msgid "(for active domains, readonly), or specify the block device directly:"
17702 msgstr ""
17703
17704 #. type: verbatim
17705 #: ../fish/guestfish.pod:276
17706 #, no-wrap
17707 msgid ""
17708 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17709 "\n"
17710 msgstr ""
17711
17712 #. type: textblock
17713 #: ../fish/guestfish.pod:278
17714 msgid ""
17715 "Note that the command line syntax changed slightly over older versions of "
17716 "guestfish.  You can still use the old syntax:"
17717 msgstr ""
17718
17719 #. type: verbatim
17720 #: ../fish/guestfish.pod:281
17721 #, no-wrap
17722 msgid ""
17723 " guestfish [--ro] -i disk.img\n"
17724 "\n"
17725 msgstr ""
17726
17727 #. type: verbatim
17728 #: ../fish/guestfish.pod:283
17729 #, no-wrap
17730 msgid ""
17731 " guestfish [--ro] -i libvirt-domain\n"
17732 "\n"
17733 msgstr ""
17734
17735 #. type: textblock
17736 #: ../fish/guestfish.pod:285
17737 msgid ""
17738 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
17739 "then using other commands to mount the filesystems that were found."
17740 msgstr ""
17741
17742 #. type: =item
17743 #: ../fish/guestfish.pod:294
17744 msgid "B<--listen>"
17745 msgstr ""
17746
17747 #. type: textblock
17748 #: ../fish/guestfish.pod:296
17749 msgid ""
17750 "Fork into the background and listen for remote commands.  See section "
17751 "L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
17752 msgstr ""
17753
17754 #. type: =item
17755 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
17756 msgid "B<--live>"
17757 msgstr ""
17758
17759 #. type: textblock
17760 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
17761 msgid ""
17762 "Connect to a live virtual machine.  (Experimental, see "
17763 "L<guestfs(3)/ATTACHING TO RUNNING DAEMONS>)."
17764 msgstr ""
17765
17766 #. type: =item
17767 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
17768 msgid "B<-m dev[:mountpoint[:options]]>"
17769 msgstr ""
17770
17771 #. type: =item
17772 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
17773 msgid "B<--mount dev[:mountpoint[:options]]>"
17774 msgstr ""
17775
17776 #. type: textblock
17777 #: ../fish/guestfish.pod:308
17778 msgid "Mount the named partition or logical volume on the given mountpoint."
17779 msgstr ""
17780
17781 #. type: textblock
17782 #: ../fish/guestfish.pod:310
17783 msgid "If the mountpoint is omitted, it defaults to C</>."
17784 msgstr ""
17785
17786 #. type: textblock
17787 #: ../fish/guestfish.pod:312
17788 msgid "You have to mount something on C</> before most commands will work."
17789 msgstr ""
17790
17791 #. type: textblock
17792 #: ../fish/guestfish.pod:314
17793 msgid ""
17794 "If any I<-m> or I<--mount> options are given, the guest is automatically "
17795 "launched."
17796 msgstr ""
17797
17798 #. type: textblock
17799 #: ../fish/guestfish.pod:317
17800 msgid ""
17801 "If you don't know what filesystems a disk image contains, you can either run "
17802 "guestfish without this option, then list the partitions, filesystems and LVs "
17803 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
17804 "commands), or you can use the L<virt-filesystems(1)> program."
17805 msgstr ""
17806
17807 #. type: textblock
17808 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
17809 msgid ""
17810 "The third (and rarely used) part of the mount parameter is the list of mount "
17811 "options used to mount the underlying filesystem.  If this is not given, then "
17812 "the mount options are either the empty string or C<ro> (the latter if the "
17813 "I<--ro> flag is used).  By specifying the mount options, you override this "
17814 "default choice.  Probably the only time you would use this is to enable ACLs "
17815 "and/or extended attributes if the filesystem can support them:"
17816 msgstr ""
17817
17818 #. type: verbatim
17819 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
17820 #, no-wrap
17821 msgid ""
17822 " -m /dev/sda1:/:acl,user_xattr\n"
17823 "\n"
17824 msgstr ""
17825
17826 #. type: textblock
17827 #: ../fish/guestfish.pod:333
17828 msgid "Using this flag is equivalent to using the C<mount-options> command."
17829 msgstr ""
17830
17831 #. type: =item
17832 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202 ../resize/virt-resize.pod:358
17833 msgid "B<-n>"
17834 msgstr ""
17835
17836 #. type: =item
17837 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
17838 msgid "B<--no-sync>"
17839 msgstr ""
17840
17841 #. type: textblock
17842 #: ../fish/guestfish.pod:339
17843 msgid ""
17844 "Disable autosync.  This is enabled by default.  See the discussion of "
17845 "autosync in the L<guestfs(3)> manpage."
17846 msgstr ""
17847
17848 #. type: =item
17849 #: ../fish/guestfish.pod:342
17850 msgid "B<-N type>"
17851 msgstr ""
17852
17853 #. type: =item
17854 #: ../fish/guestfish.pod:344
17855 msgid "B<--new type>"
17856 msgstr ""
17857
17858 #. type: =item
17859 #: ../fish/guestfish.pod:346
17860 msgid "B<-N help>"
17861 msgstr ""
17862
17863 #. type: textblock
17864 #: ../fish/guestfish.pod:348
17865 msgid ""
17866 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
17867 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
17868 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
17869 "IMAGES> below."
17870 msgstr ""
17871
17872 #. type: =item
17873 #: ../fish/guestfish.pod:353
17874 msgid "B<--progress-bars>"
17875 msgstr ""
17876
17877 #. type: textblock
17878 #: ../fish/guestfish.pod:355
17879 msgid "Enable progress bars, even when guestfish is used non-interactively."
17880 msgstr ""
17881
17882 #. type: textblock
17883 #: ../fish/guestfish.pod:357
17884 msgid ""
17885 "Progress bars are enabled by default when guestfish is used as an "
17886 "interactive shell."
17887 msgstr ""
17888
17889 #. type: =item
17890 #: ../fish/guestfish.pod:360
17891 msgid "B<--no-progress-bars>"
17892 msgstr ""
17893
17894 #. type: textblock
17895 #: ../fish/guestfish.pod:362
17896 msgid "Disable progress bars."
17897 msgstr ""
17898
17899 #. type: =item
17900 #: ../fish/guestfish.pod:364
17901 msgid "B<--remote[=pid]>"
17902 msgstr ""
17903
17904 #. type: textblock
17905 #: ../fish/guestfish.pod:366
17906 msgid ""
17907 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
17908 "CONTROL GUESTFISH OVER A SOCKET> below."
17909 msgstr ""
17910
17911 #. type: =item
17912 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248 ../rescue/virt-rescue.pod:161
17913 msgid "B<-r>"
17914 msgstr ""
17915
17916 #. type: =item
17917 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250 ../rescue/virt-rescue.pod:163
17918 msgid "B<--ro>"
17919 msgstr ""
17920
17921 #. type: textblock
17922 #: ../fish/guestfish.pod:373
17923 msgid ""
17924 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
17925 "mounts are done read-only."
17926 msgstr ""
17927
17928 #. type: textblock
17929 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
17930 msgid ""
17931 "The option must always be used if the disk image or virtual machine might be "
17932 "running, and is generally recommended in cases where you don't need write "
17933 "access to the disk."
17934 msgstr ""
17935
17936 #. type: textblock
17937 #: ../fish/guestfish.pod:380
17938 msgid ""
17939 "Note that prepared disk images created with I<-N> are not affected by this "
17940 "option.  Also commands like C<add> are not affected - you have to specify "
17941 "the C<readonly:true> option explicitly if you need it."
17942 msgstr ""
17943
17944 #. type: textblock
17945 #: ../fish/guestfish.pod:384
17946 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
17947 msgstr ""
17948
17949 #. type: =item
17950 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262 ../rescue/virt-rescue.pod:173
17951 msgid "B<--selinux>"
17952 msgstr ""
17953
17954 #. type: textblock
17955 #: ../fish/guestfish.pod:388
17956 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
17957 msgstr ""
17958
17959 #. type: textblock
17960 #: ../fish/guestfish.pod:394
17961 msgid ""
17962 "Enable very verbose messages.  This is particularly useful if you find a "
17963 "bug."
17964 msgstr ""
17965
17966 #. type: textblock
17967 #: ../fish/guestfish.pod:401
17968 msgid "Display the guestfish / libguestfs version number and exit."
17969 msgstr ""
17970
17971 #. type: =item
17972 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278 ../rescue/virt-rescue.pod:194
17973 msgid "B<-w>"
17974 msgstr ""
17975
17976 #. type: =item
17977 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280 ../rescue/virt-rescue.pod:196
17978 msgid "B<--rw>"
17979 msgstr ""
17980
17981 #. type: textblock
17982 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
17983 msgid ""
17984 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
17985 "mounts are done read-write."
17986 msgstr ""
17987
17988 #. type: textblock
17989 #: ../fish/guestfish.pod:410
17990 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
17991 msgstr ""
17992
17993 #. type: textblock
17994 #: ../fish/guestfish.pod:414
17995 msgid "Echo each command before executing it."
17996 msgstr ""
17997
17998 #. type: =head1
17999 #: ../fish/guestfish.pod:418
18000 msgid "COMMANDS ON COMMAND LINE"
18001 msgstr ""
18002
18003 #. type: textblock
18004 #: ../fish/guestfish.pod:420
18005 msgid "Any additional (non-option) arguments are treated as commands to execute."
18006 msgstr ""
18007
18008 #. type: textblock
18009 #: ../fish/guestfish.pod:423
18010 msgid ""
18011 "Commands to execute should be separated by a colon (C<:>), where the colon "
18012 "is a separate parameter.  Thus:"
18013 msgstr ""
18014
18015 #. type: verbatim
18016 #: ../fish/guestfish.pod:426
18017 #, no-wrap
18018 msgid ""
18019 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
18020 "\n"
18021 msgstr ""
18022
18023 #. type: textblock
18024 #: ../fish/guestfish.pod:428
18025 msgid ""
18026 "If there are no additional arguments, then we enter a shell, either an "
18027 "interactive shell with a prompt (if the input is a terminal) or a "
18028 "non-interactive shell."
18029 msgstr ""
18030
18031 #. type: textblock
18032 #: ../fish/guestfish.pod:432
18033 msgid ""
18034 "In either command line mode or non-interactive shell, the first command that "
18035 "gives an error causes the whole shell to exit.  In interactive mode (with a "
18036 "prompt) if a command fails, you can continue to enter commands."
18037 msgstr ""
18038
18039 #. type: =head1
18040 #: ../fish/guestfish.pod:437
18041 msgid "USING launch (OR run)"
18042 msgstr ""
18043
18044 #. type: textblock
18045 #: ../fish/guestfish.pod:439
18046 msgid ""
18047 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
18048 "then launch it, then mount any disks you need, and finally issue "
18049 "actions/commands.  So the general order of the day is:"
18050 msgstr ""
18051
18052 #. type: textblock
18053 #: ../fish/guestfish.pod:447
18054 msgid "add or -a/--add"
18055 msgstr ""
18056
18057 #. type: textblock
18058 #: ../fish/guestfish.pod:451
18059 msgid "launch (aka run)"
18060 msgstr ""
18061
18062 #. type: textblock
18063 #: ../fish/guestfish.pod:455
18064 msgid "mount or -m/--mount"
18065 msgstr ""
18066
18067 #. type: textblock
18068 #: ../fish/guestfish.pod:459
18069 msgid "any other commands"
18070 msgstr ""
18071
18072 #. type: textblock
18073 #: ../fish/guestfish.pod:463
18074 msgid ""
18075 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
18076 "guest before mounting or performing any other commands."
18077 msgstr ""
18078
18079 #. type: textblock
18080 #: ../fish/guestfish.pod:466
18081 msgid ""
18082 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
18083 "I<--new> options were given then C<run> is done automatically, simply "
18084 "because guestfish can't perform the action you asked for without doing this."
18085 msgstr ""
18086
18087 #. type: =head1
18088 #: ../fish/guestfish.pod:471
18089 msgid "OPENING DISKS FOR READ AND WRITE"
18090 msgstr ""
18091
18092 #. type: textblock
18093 #: ../fish/guestfish.pod:473
18094 msgid ""
18095 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
18096 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
18097 "I<-i> and I<-m> open disk images read-only or for writing."
18098 msgstr ""
18099
18100 #. type: textblock
18101 #: ../fish/guestfish.pod:478
18102 msgid ""
18103 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
18104 "opening disk images supplied on the command line for write.  To open a disk "
18105 "image read-only you have to do I<-a image --ro>."
18106 msgstr ""
18107
18108 #. type: textblock
18109 #: ../fish/guestfish.pod:482
18110 msgid ""
18111 "This matters: If you accidentally open a live VM disk image writable then "
18112 "you will cause irreversible disk corruption."
18113 msgstr ""
18114
18115 #. type: textblock
18116 #: ../fish/guestfish.pod:485
18117 msgid ""
18118 "In a future libguestfs we intend to change the default the other way.  Disk "
18119 "images will be opened read-only.  You will have to either specify "
18120 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
18121 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
18122 "access for disk images specified by those other command line options."
18123 msgstr ""
18124
18125 #. type: textblock
18126 #: ../fish/guestfish.pod:492
18127 msgid ""
18128 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
18129 "which does nothing (it is already the default).  However it is highly "
18130 "recommended that you use this option to indicate that you need write access, "
18131 "and prepare your scripts for the day when this option will be required for "
18132 "write access."
18133 msgstr ""
18134
18135 #. type: textblock
18136 #: ../fish/guestfish.pod:498
18137 msgid ""
18138 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
18139 "other libguestfs program apart from guestfish and guestmount."
18140 msgstr ""
18141
18142 #. type: =head1
18143 #: ../fish/guestfish.pod:501
18144 msgid "QUOTING"
18145 msgstr ""
18146
18147 #. type: textblock
18148 #: ../fish/guestfish.pod:503
18149 msgid ""
18150 "You can quote ordinary parameters using either single or double quotes.  For "
18151 "example:"
18152 msgstr ""
18153
18154 #. type: verbatim
18155 #: ../fish/guestfish.pod:506
18156 #, no-wrap
18157 msgid ""
18158 " add \"file with a space.img\"\n"
18159 "\n"
18160 msgstr ""
18161
18162 #. type: verbatim
18163 #: ../fish/guestfish.pod:508
18164 #, no-wrap
18165 msgid ""
18166 " rm '/file name'\n"
18167 "\n"
18168 msgstr ""
18169
18170 #. type: verbatim
18171 #: ../fish/guestfish.pod:510
18172 #, no-wrap
18173 msgid ""
18174 " rm '/\"'\n"
18175 "\n"
18176 msgstr ""
18177
18178 #. type: textblock
18179 #: ../fish/guestfish.pod:512
18180 msgid ""
18181 "A few commands require a list of strings to be passed.  For these, use a "
18182 "whitespace-separated list, enclosed in quotes.  Strings containing "
18183 "whitespace to be passed through must be enclosed in single quotes.  A "
18184 "literal single quote must be escaped with a backslash."
18185 msgstr ""
18186
18187 #. type: verbatim
18188 #: ../fish/guestfish.pod:517
18189 #, no-wrap
18190 msgid ""
18191 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
18192 " command \"/bin/echo 'foo      bar'\"\n"
18193 " command \"/bin/echo \\'foo\\'\"\n"
18194 "\n"
18195 msgstr ""
18196
18197 #. type: =head2
18198 #: ../fish/guestfish.pod:521
18199 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
18200 msgstr ""
18201
18202 #. type: textblock
18203 #: ../fish/guestfish.pod:523
18204 msgid ""
18205 "In double-quoted arguments (only) use backslash to insert special "
18206 "characters:"
18207 msgstr ""
18208
18209 #. type: =item
18210 #: ../fish/guestfish.pod:528
18211 msgid "C<\\a>"
18212 msgstr ""
18213
18214 #. type: textblock
18215 #: ../fish/guestfish.pod:530
18216 msgid "Alert (bell) character."
18217 msgstr ""
18218
18219 #. type: =item
18220 #: ../fish/guestfish.pod:532
18221 msgid "C<\\b>"
18222 msgstr ""
18223
18224 #. type: textblock
18225 #: ../fish/guestfish.pod:534
18226 msgid "Backspace character."
18227 msgstr ""
18228
18229 #. type: =item
18230 #: ../fish/guestfish.pod:536
18231 msgid "C<\\f>"
18232 msgstr ""
18233
18234 #. type: textblock
18235 #: ../fish/guestfish.pod:538
18236 msgid "Form feed character."
18237 msgstr ""
18238
18239 #. type: =item
18240 #: ../fish/guestfish.pod:540
18241 msgid "C<\\n>"
18242 msgstr ""
18243
18244 #. type: textblock
18245 #: ../fish/guestfish.pod:542
18246 msgid "Newline character."
18247 msgstr ""
18248
18249 #. type: =item
18250 #: ../fish/guestfish.pod:544
18251 msgid "C<\\r>"
18252 msgstr ""
18253
18254 #. type: textblock
18255 #: ../fish/guestfish.pod:546
18256 msgid "Carriage return character."
18257 msgstr ""
18258
18259 #. type: =item
18260 #: ../fish/guestfish.pod:548
18261 msgid "C<\\t>"
18262 msgstr ""
18263
18264 #. type: textblock
18265 #: ../fish/guestfish.pod:550
18266 msgid "Horizontal tab character."
18267 msgstr ""
18268
18269 #. type: =item
18270 #: ../fish/guestfish.pod:552
18271 msgid "C<\\v>"
18272 msgstr ""
18273
18274 #. type: textblock
18275 #: ../fish/guestfish.pod:554
18276 msgid "Vertical tab character."
18277 msgstr ""
18278
18279 #. type: =item
18280 #: ../fish/guestfish.pod:556
18281 msgid "C<\\\">"
18282 msgstr ""
18283
18284 #. type: textblock
18285 #: ../fish/guestfish.pod:558
18286 msgid "A literal double quote character."
18287 msgstr ""
18288
18289 #. type: =item
18290 #: ../fish/guestfish.pod:560
18291 msgid "C<\\ooo>"
18292 msgstr ""
18293
18294 #. type: textblock
18295 #: ../fish/guestfish.pod:562
18296 msgid ""
18297 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
18298 "(unlike C)."
18299 msgstr ""
18300
18301 #. type: =item
18302 #: ../fish/guestfish.pod:565
18303 msgid "C<\\xhh>"
18304 msgstr ""
18305
18306 #. type: textblock
18307 #: ../fish/guestfish.pod:567
18308 msgid "A character with hex value I<hh>.  There must be precisely 2 hex digits."
18309 msgstr ""
18310
18311 #. type: textblock
18312 #: ../fish/guestfish.pod:570
18313 msgid ""
18314 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
18315 "strings."
18316 msgstr ""
18317
18318 #. type: =item
18319 #: ../fish/guestfish.pod:573
18320 msgid "C<\\\\>"
18321 msgstr ""
18322
18323 #. type: textblock
18324 #: ../fish/guestfish.pod:575
18325 msgid "A literal backslash character."
18326 msgstr ""
18327
18328 #. type: =head1
18329 #: ../fish/guestfish.pod:579
18330 msgid "OPTIONAL ARGUMENTS"
18331 msgstr ""
18332
18333 #. type: textblock
18334 #: ../fish/guestfish.pod:581
18335 msgid ""
18336 "Some commands take optional arguments.  These arguments appear in this "
18337 "documentation as C<[argname:..]>.  You can use them as in these examples:"
18338 msgstr ""
18339
18340 #. type: verbatim
18341 #: ../fish/guestfish.pod:585
18342 #, no-wrap
18343 msgid ""
18344 " add-drive-opts filename\n"
18345 "\n"
18346 msgstr ""
18347
18348 #. type: verbatim
18349 #: ../fish/guestfish.pod:587
18350 #, no-wrap
18351 msgid ""
18352 " add-drive-opts filename readonly:true\n"
18353 "\n"
18354 msgstr ""
18355
18356 #. type: verbatim
18357 #: ../fish/guestfish.pod:589
18358 #, no-wrap
18359 msgid ""
18360 " add-drive-opts filename format:qcow2 readonly:false\n"
18361 "\n"
18362 msgstr ""
18363
18364 #. type: textblock
18365 #: ../fish/guestfish.pod:591
18366 msgid ""
18367 "Each optional argument can appear at most once.  All optional arguments must "
18368 "appear after the required ones."
18369 msgstr ""
18370
18371 #. type: =head1
18372 #: ../fish/guestfish.pod:594
18373 msgid "NUMBERS"
18374 msgstr ""
18375
18376 #. type: textblock
18377 #: ../fish/guestfish.pod:596
18378 msgid "This section applies to all commands which can take integers as parameters."
18379 msgstr ""
18380
18381 #. type: =head2
18382 #: ../fish/guestfish.pod:599
18383 msgid "SIZE SUFFIX"
18384 msgstr ""
18385
18386 #. type: textblock
18387 #: ../fish/guestfish.pod:601
18388 msgid ""
18389 "When the command takes a parameter measured in bytes, you can use one of the "
18390 "following suffixes to specify kilobytes, megabytes and larger sizes:"
18391 msgstr ""
18392
18393 #. type: =item
18394 #: ../fish/guestfish.pod:607
18395 msgid "B<k> or B<K> or B<KiB>"
18396 msgstr ""
18397
18398 #. type: textblock
18399 #: ../fish/guestfish.pod:609
18400 msgid "The size in kilobytes (multiplied by 1024)."
18401 msgstr ""
18402
18403 #. type: =item
18404 #: ../fish/guestfish.pod:611
18405 msgid "B<KB>"
18406 msgstr ""
18407
18408 #. type: textblock
18409 #: ../fish/guestfish.pod:613
18410 msgid "The size in SI 1000 byte units."
18411 msgstr ""
18412
18413 #. type: =item
18414 #: ../fish/guestfish.pod:615
18415 msgid "B<M> or B<MiB>"
18416 msgstr ""
18417
18418 #. type: textblock
18419 #: ../fish/guestfish.pod:617
18420 msgid "The size in megabytes (multiplied by 1048576)."
18421 msgstr ""
18422
18423 #. type: =item
18424 #: ../fish/guestfish.pod:619
18425 msgid "B<MB>"
18426 msgstr ""
18427
18428 #. type: textblock
18429 #: ../fish/guestfish.pod:621
18430 msgid "The size in SI 1000000 byte units."
18431 msgstr ""
18432
18433 #. type: =item
18434 #: ../fish/guestfish.pod:623
18435 msgid "B<G> or B<GiB>"
18436 msgstr ""
18437
18438 #. type: textblock
18439 #: ../fish/guestfish.pod:625
18440 msgid "The size in gigabytes (multiplied by 2**30)."
18441 msgstr ""
18442
18443 #. type: =item
18444 #: ../fish/guestfish.pod:627
18445 msgid "B<GB>"
18446 msgstr ""
18447
18448 #. type: textblock
18449 #: ../fish/guestfish.pod:629
18450 msgid "The size in SI 10**9 byte units."
18451 msgstr ""
18452
18453 #. type: =item
18454 #: ../fish/guestfish.pod:631
18455 msgid "B<T> or B<TiB>"
18456 msgstr ""
18457
18458 #. type: textblock
18459 #: ../fish/guestfish.pod:633
18460 msgid "The size in terabytes (multiplied by 2**40)."
18461 msgstr ""
18462
18463 #. type: =item
18464 #: ../fish/guestfish.pod:635
18465 msgid "B<TB>"
18466 msgstr ""
18467
18468 #. type: textblock
18469 #: ../fish/guestfish.pod:637
18470 msgid "The size in SI 10**12 byte units."
18471 msgstr ""
18472
18473 #. type: =item
18474 #: ../fish/guestfish.pod:639
18475 msgid "B<P> or B<PiB>"
18476 msgstr ""
18477
18478 #. type: textblock
18479 #: ../fish/guestfish.pod:641
18480 msgid "The size in petabytes (multiplied by 2**50)."
18481 msgstr ""
18482
18483 #. type: =item
18484 #: ../fish/guestfish.pod:643
18485 msgid "B<PB>"
18486 msgstr ""
18487
18488 #. type: textblock
18489 #: ../fish/guestfish.pod:645
18490 msgid "The size in SI 10**15 byte units."
18491 msgstr ""
18492
18493 #. type: =item
18494 #: ../fish/guestfish.pod:647
18495 msgid "B<E> or B<EiB>"
18496 msgstr ""
18497
18498 #. type: textblock
18499 #: ../fish/guestfish.pod:649
18500 msgid "The size in exabytes (multiplied by 2**60)."
18501 msgstr ""
18502
18503 #. type: =item
18504 #: ../fish/guestfish.pod:651
18505 msgid "B<EB>"
18506 msgstr ""
18507
18508 #. type: textblock
18509 #: ../fish/guestfish.pod:653
18510 msgid "The size in SI 10**18 byte units."
18511 msgstr ""
18512
18513 #. type: =item
18514 #: ../fish/guestfish.pod:655
18515 msgid "B<Z> or B<ZiB>"
18516 msgstr ""
18517
18518 #. type: textblock
18519 #: ../fish/guestfish.pod:657
18520 msgid "The size in zettabytes (multiplied by 2**70)."
18521 msgstr ""
18522
18523 #. type: =item
18524 #: ../fish/guestfish.pod:659
18525 msgid "B<ZB>"
18526 msgstr ""
18527
18528 #. type: textblock
18529 #: ../fish/guestfish.pod:661
18530 msgid "The size in SI 10**21 byte units."
18531 msgstr ""
18532
18533 #. type: =item
18534 #: ../fish/guestfish.pod:663
18535 msgid "B<Y> or B<YiB>"
18536 msgstr ""
18537
18538 #. type: textblock
18539 #: ../fish/guestfish.pod:665
18540 msgid "The size in yottabytes (multiplied by 2**80)."
18541 msgstr ""
18542
18543 #. type: =item
18544 #: ../fish/guestfish.pod:667
18545 msgid "B<YB>"
18546 msgstr ""
18547
18548 #. type: textblock
18549 #: ../fish/guestfish.pod:669
18550 msgid "The size in SI 10**24 byte units."
18551 msgstr ""
18552
18553 #. type: verbatim
18554 #: ../fish/guestfish.pod:675
18555 #, no-wrap
18556 msgid ""
18557 " truncate-size /file 1G\n"
18558 "\n"
18559 msgstr ""
18560
18561 #. type: textblock
18562 #: ../fish/guestfish.pod:677
18563 msgid "would truncate the file to 1 gigabyte."
18564 msgstr ""
18565
18566 #. type: textblock
18567 #: ../fish/guestfish.pod:679
18568 msgid ""
18569 "Be careful because a few commands take sizes in kilobytes or megabytes "
18570 "(eg. the parameter to L</memsize> is specified in megabytes already).  "
18571 "Adding a suffix will probably not do what you expect."
18572 msgstr ""
18573
18574 #. type: =head2
18575 #: ../fish/guestfish.pod:683
18576 msgid "OCTAL AND HEXADECIMAL NUMBERS"
18577 msgstr ""
18578
18579 #. type: textblock
18580 #: ../fish/guestfish.pod:685
18581 msgid ""
18582 "For specifying the radix (base) use the C convention: C<0> to prefix an "
18583 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
18584 msgstr ""
18585
18586 #. type: verbatim
18587 #: ../fish/guestfish.pod:688
18588 #, no-wrap
18589 msgid ""
18590 " 1234      decimal number 1234\n"
18591 " 02322     octal number, equivalent to decimal 1234\n"
18592 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
18593 "\n"
18594 msgstr ""
18595
18596 #. type: textblock
18597 #: ../fish/guestfish.pod:692
18598 msgid ""
18599 "When using the C<chmod> command, you almost always want to specify an octal "
18600 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
18601 "L<chmod(1)> program):"
18602 msgstr ""
18603
18604 #. type: verbatim
18605 #: ../fish/guestfish.pod:696
18606 #, no-wrap
18607 msgid ""
18608 " chmod 0777 /public  # OK\n"
18609 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
18610 "\n"
18611 msgstr ""
18612
18613 #. type: textblock
18614 #: ../fish/guestfish.pod:699
18615 msgid ""
18616 "Commands that return numbers usually print them in decimal, but some "
18617 "commands print numbers in other radices (eg. C<umask> prints the mode in "
18618 "octal, preceeded by C<0>)."
18619 msgstr ""
18620
18621 #. type: =head1
18622 #: ../fish/guestfish.pod:703
18623 msgid "WILDCARDS AND GLOBBING"
18624 msgstr ""
18625
18626 #. type: textblock
18627 #: ../fish/guestfish.pod:705
18628 msgid ""
18629 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
18630 "(globbing) by default.  So for example the following will not do what you "
18631 "expect:"
18632 msgstr ""
18633
18634 #. type: verbatim
18635 #: ../fish/guestfish.pod:709
18636 #, no-wrap
18637 msgid ""
18638 " rm-rf /home/*\n"
18639 "\n"
18640 msgstr ""
18641
18642 #. type: textblock
18643 #: ../fish/guestfish.pod:711
18644 msgid ""
18645 "Assuming you don't have a directory called literally C</home/*> then the "
18646 "above command will return an error."
18647 msgstr ""
18648
18649 #. type: textblock
18650 #: ../fish/guestfish.pod:714
18651 msgid "To perform wildcard expansion, use the C<glob> command."
18652 msgstr ""
18653
18654 #. type: verbatim
18655 #: ../fish/guestfish.pod:716
18656 #, no-wrap
18657 msgid ""
18658 " glob rm-rf /home/*\n"
18659 "\n"
18660 msgstr ""
18661
18662 #. type: textblock
18663 #: ../fish/guestfish.pod:718
18664 msgid ""
18665 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
18666 "many times), equivalent to:"
18667 msgstr ""
18668
18669 #. type: verbatim
18670 #: ../fish/guestfish.pod:721
18671 #, no-wrap
18672 msgid ""
18673 " rm-rf /home/jim\n"
18674 " rm-rf /home/joe\n"
18675 " rm-rf /home/mary\n"
18676 "\n"
18677 msgstr ""
18678
18679 #. type: textblock
18680 #: ../fish/guestfish.pod:725
18681 msgid "C<glob> only works on simple guest paths and not on device names."
18682 msgstr ""
18683
18684 #. type: textblock
18685 #: ../fish/guestfish.pod:727
18686 msgid ""
18687 "If you have several parameters, each containing a wildcard, then glob will "
18688 "perform a Cartesian product."
18689 msgstr ""
18690
18691 #. type: =head1
18692 #: ../fish/guestfish.pod:730
18693 msgid "COMMENTS"
18694 msgstr ""
18695
18696 #. type: textblock
18697 #: ../fish/guestfish.pod:732
18698 msgid ""
18699 "Any line which starts with a I<#> character is treated as a comment and "
18700 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
18701 "a command.  For example:"
18702 msgstr ""
18703
18704 #. type: verbatim
18705 #: ../fish/guestfish.pod:736
18706 #, no-wrap
18707 msgid ""
18708 " # this is a comment\n"
18709 "         # this is a comment\n"
18710 " foo # NOT a comment\n"
18711 "\n"
18712 msgstr ""
18713
18714 #. type: textblock
18715 #: ../fish/guestfish.pod:740
18716 msgid "Blank lines are also ignored."
18717 msgstr ""
18718
18719 #. type: =head1
18720 #: ../fish/guestfish.pod:742
18721 msgid "RUNNING COMMANDS LOCALLY"
18722 msgstr ""
18723
18724 #. type: textblock
18725 #: ../fish/guestfish.pod:744
18726 msgid ""
18727 "Any line which starts with a I<!> character is treated as a command sent to "
18728 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
18729 msgstr ""
18730
18731 #. type: verbatim
18732 #: ../fish/guestfish.pod:748
18733 #, no-wrap
18734 msgid ""
18735 " !mkdir local\n"
18736 " tgz-out /remote local/remote-data.tar.gz\n"
18737 "\n"
18738 msgstr ""
18739
18740 #. type: textblock
18741 #: ../fish/guestfish.pod:751
18742 msgid ""
18743 "will create a directory C<local> on the host, and then export the contents "
18744 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
18745 "(See C<tgz-out>)."
18746 msgstr ""
18747
18748 #. type: textblock
18749 #: ../fish/guestfish.pod:755
18750 msgid ""
18751 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
18752 "effect, due to the way that subprocesses work in Unix."
18753 msgstr ""
18754
18755 #. type: =head2
18756 #: ../fish/guestfish.pod:758
18757 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
18758 msgstr ""
18759
18760 #. type: textblock
18761 #: ../fish/guestfish.pod:760
18762 msgid ""
18763 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
18764 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
18765 "and executed as guestfish commands."
18766 msgstr ""
18767
18768 #. type: textblock
18769 #: ../fish/guestfish.pod:764
18770 msgid ""
18771 "Thus you can use shell script to construct arbitrary guestfish commands "
18772 "which are then parsed by guestfish."
18773 msgstr ""
18774
18775 #. type: textblock
18776 #: ../fish/guestfish.pod:767
18777 msgid ""
18778 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
18779 "through C</foo.100>) using guestfish commands alone.  However this is simple "
18780 "if we use a shell script to create the guestfish commands for us:"
18781 msgstr ""
18782
18783 #. type: verbatim
18784 #: ../fish/guestfish.pod:772
18785 #, no-wrap
18786 msgid ""
18787 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
18788 "\n"
18789 msgstr ""
18790
18791 #. type: textblock
18792 #: ../fish/guestfish.pod:774
18793 msgid "or with names like C</foo.001>:"
18794 msgstr ""
18795
18796 #. type: verbatim
18797 #: ../fish/guestfish.pod:776
18798 #, no-wrap
18799 msgid ""
18800 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
18801 "\n"
18802 msgstr ""
18803
18804 #. type: textblock
18805 #: ../fish/guestfish.pod:778
18806 msgid ""
18807 "When using guestfish interactively it can be helpful to just run the shell "
18808 "script first (ie. remove the initial C<E<lt>> character so it is just an "
18809 "ordinary I<!> local command), see what guestfish commands it would run, and "
18810 "when you are happy with those prepend the C<E<lt>> character to run the "
18811 "guestfish commands for real."
18812 msgstr ""
18813
18814 #. type: =head1
18815 #: ../fish/guestfish.pod:784
18816 msgid "PIPES"
18817 msgstr ""
18818
18819 #. type: textblock
18820 #: ../fish/guestfish.pod:786
18821 msgid ""
18822 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
18823 "command (a guestfish command) to the second command (any host command).  For "
18824 "example:"
18825 msgstr ""
18826
18827 #. type: verbatim
18828 #: ../fish/guestfish.pod:790
18829 #, no-wrap
18830 msgid ""
18831 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
18832 "\n"
18833 msgstr ""
18834
18835 #. type: textblock
18836 #: ../fish/guestfish.pod:792
18837 msgid ""
18838 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
18839 "program).  The above command would list all accounts in the guest filesystem "
18840 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
18841 msgstr ""
18842
18843 #. type: verbatim
18844 #: ../fish/guestfish.pod:797
18845 #, no-wrap
18846 msgid ""
18847 " hexdump /bin/ls | head\n"
18848 " list-devices | tail -1\n"
18849 " tgz-out / - | tar ztf -\n"
18850 "\n"
18851 msgstr ""
18852
18853 #. type: textblock
18854 #: ../fish/guestfish.pod:801
18855 msgid ""
18856 "The space before the pipe symbol is required, any space after the pipe "
18857 "symbol is optional.  Everything after the pipe symbol is just passed "
18858 "straight to the host shell, so it can contain redirections, globs and "
18859 "anything else that makes sense on the host side."
18860 msgstr ""
18861
18862 #. type: textblock
18863 #: ../fish/guestfish.pod:806
18864 msgid ""
18865 "To use a literal argument which begins with a pipe symbol, you have to quote "
18866 "it, eg:"
18867 msgstr ""
18868
18869 #. type: verbatim
18870 #: ../fish/guestfish.pod:809
18871 #, no-wrap
18872 msgid ""
18873 " echo \"|\"\n"
18874 "\n"
18875 msgstr ""
18876
18877 #. type: =head1
18878 #: ../fish/guestfish.pod:811
18879 msgid "HOME DIRECTORIES"
18880 msgstr ""
18881
18882 #. type: textblock
18883 #: ../fish/guestfish.pod:813
18884 msgid ""
18885 "If a parameter starts with the character C<~> then the tilde may be expanded "
18886 "as a home directory path (either C<~> for the current user's home directory, "
18887 "or C<~user> for another user)."
18888 msgstr ""
18889
18890 #. type: textblock
18891 #: ../fish/guestfish.pod:817
18892 msgid ""
18893 "Note that home directory expansion happens for users known I<on the host>, "
18894 "not in the guest filesystem."
18895 msgstr ""
18896
18897 #. type: textblock
18898 #: ../fish/guestfish.pod:820
18899 msgid ""
18900 "To use a literal argument which begins with a tilde, you have to quote it, "
18901 "eg:"
18902 msgstr ""
18903
18904 #. type: verbatim
18905 #: ../fish/guestfish.pod:823
18906 #, no-wrap
18907 msgid ""
18908 " echo \"~\"\n"
18909 "\n"
18910 msgstr ""
18911
18912 #. type: =head2
18913 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
18914 msgid "ENCRYPTED DISKS"
18915 msgstr ""
18916
18917 #. type: textblock
18918 #: ../fish/guestfish.pod:827
18919 msgid ""
18920 "Libguestfs has some support for Linux guests encrypted according to the "
18921 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
18922 "disk encryption systems used by modern Linux guests.  Currently only "
18923 "LVM-on-LUKS is supported."
18924 msgstr ""
18925
18926 #. type: textblock
18927 #: ../fish/guestfish.pod:832
18928 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
18929 msgstr ""
18930
18931 #. type: verbatim
18932 #: ../fish/guestfish.pod:834
18933 #, no-wrap
18934 msgid ""
18935 " ><fs> vfs-type /dev/sda2\n"
18936 " crypto_LUKS\n"
18937 "\n"
18938 msgstr ""
18939
18940 #. type: textblock
18941 #: ../fish/guestfish.pod:837
18942 msgid ""
18943 "Then open those devices using L</luks-open>.  This creates a device-mapper "
18944 "device called C</dev/mapper/luksdev>."
18945 msgstr ""
18946
18947 #. type: verbatim
18948 #: ../fish/guestfish.pod:840
18949 #, no-wrap
18950 msgid ""
18951 " ><fs> luks-open /dev/sda2 luksdev\n"
18952 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
18953 "\n"
18954 msgstr ""
18955
18956 #. type: textblock
18957 #: ../fish/guestfish.pod:843
18958 msgid ""
18959 "Finally you have to tell LVM to scan for volume groups on the newly created "
18960 "mapper device:"
18961 msgstr ""
18962
18963 #. type: verbatim
18964 #: ../fish/guestfish.pod:846
18965 #, no-wrap
18966 msgid ""
18967 " vgscan\n"
18968 " vg-activate-all true\n"
18969 "\n"
18970 msgstr ""
18971
18972 #. type: textblock
18973 #: ../fish/guestfish.pod:849
18974 msgid "The logical volume(s) can now be mounted in the usual way."
18975 msgstr ""
18976
18977 #. type: textblock
18978 #: ../fish/guestfish.pod:851
18979 msgid ""
18980 "Before closing a LUKS device you must unmount any logical volumes on it and "
18981 "deactivate the volume groups by calling C<vg-activate false VG> on each "
18982 "one.  Then you can close the mapper device:"
18983 msgstr ""
18984
18985 #. type: verbatim
18986 #: ../fish/guestfish.pod:855
18987 #, no-wrap
18988 msgid ""
18989 " vg-activate false /dev/VG\n"
18990 " luks-close /dev/mapper/luksdev\n"
18991 "\n"
18992 msgstr ""
18993
18994 #. type: textblock
18995 #: ../fish/guestfish.pod:860
18996 msgid ""
18997 "If a path is prefixed with C<win:> then you can use Windows-style drive "
18998 "letters and paths (with some limitations).  The following commands are "
18999 "equivalent:"
19000 msgstr ""
19001
19002 #. type: verbatim
19003 #: ../fish/guestfish.pod:864
19004 #, no-wrap
19005 msgid ""
19006 " file /WINDOWS/system32/config/system.LOG\n"
19007 "\n"
19008 msgstr ""
19009
19010 #. type: verbatim
19011 #: ../fish/guestfish.pod:866
19012 #, no-wrap
19013 msgid ""
19014 " file win:\\windows\\system32\\config\\system.log\n"
19015 "\n"
19016 msgstr ""
19017
19018 #. type: verbatim
19019 #: ../fish/guestfish.pod:868
19020 #, no-wrap
19021 msgid ""
19022 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
19023 "\n"
19024 msgstr ""
19025
19026 #. type: textblock
19027 #: ../fish/guestfish.pod:870
19028 msgid ""
19029 "The parameter is rewritten \"behind the scenes\" by looking up the position "
19030 "where the drive is mounted, prepending that to the path, changing all "
19031 "backslash characters to forward slash, then resolving the result using "
19032 "L</case-sensitive-path>.  For example if the E: drive was mounted on C</e> "
19033 "then the parameter might be rewritten like this:"
19034 msgstr ""
19035
19036 #. type: verbatim
19037 #: ../fish/guestfish.pod:876
19038 #, no-wrap
19039 msgid ""
19040 " win:e:\\foo\\bar => /e/FOO/bar\n"
19041 "\n"
19042 msgstr ""
19043
19044 #. type: textblock
19045 #: ../fish/guestfish.pod:878
19046 msgid "This only works in argument positions that expect a path."
19047 msgstr ""
19048
19049 #. type: =head1
19050 #: ../fish/guestfish.pod:880
19051 msgid "UPLOADING AND DOWNLOADING FILES"
19052 msgstr ""
19053
19054 #. type: textblock
19055 #: ../fish/guestfish.pod:882
19056 msgid ""
19057 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
19058 "others which upload from or download to a local file, you can use the "
19059 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
19060 msgstr ""
19061
19062 #. type: verbatim
19063 #: ../fish/guestfish.pod:886
19064 #, no-wrap
19065 msgid ""
19066 " upload - /foo\n"
19067 "\n"
19068 msgstr ""
19069
19070 #. type: textblock
19071 #: ../fish/guestfish.pod:888
19072 msgid "reads stdin and creates from that a file C</foo> in the disk image, and:"
19073 msgstr ""
19074
19075 #. type: verbatim
19076 #: ../fish/guestfish.pod:891
19077 #, no-wrap
19078 msgid ""
19079 " tar-out /etc - | tar tf -\n"
19080 "\n"
19081 msgstr ""
19082
19083 #. type: textblock
19084 #: ../fish/guestfish.pod:893
19085 msgid ""
19086 "writes the tarball to stdout and then pipes that into the external \"tar\" "
19087 "command (see L</PIPES>)."
19088 msgstr ""
19089
19090 #. type: textblock
19091 #: ../fish/guestfish.pod:896
19092 msgid ""
19093 "When using C<-> to read from stdin, the input is read up to the end of "
19094 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
19095 "some arbitrary end marker:"
19096 msgstr ""
19097
19098 #. type: verbatim
19099 #: ../fish/guestfish.pod:900
19100 #, no-wrap
19101 msgid ""
19102 " upload -<<END /foo\n"
19103 " input line 1\n"
19104 " input line 2\n"
19105 " input line 3\n"
19106 " END\n"
19107 "\n"
19108 msgstr ""
19109
19110 #. type: textblock
19111 #: ../fish/guestfish.pod:906
19112 msgid ""
19113 "Any string of characters can be used instead of C<END>.  The end marker must "
19114 "appear on a line of its own, without any preceeding or following characters "
19115 "(not even spaces)."
19116 msgstr ""
19117
19118 #. type: textblock
19119 #: ../fish/guestfish.pod:910
19120 msgid ""
19121 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
19122 "upload local files (so-called \"FileIn\" parameters in the generator)."
19123 msgstr ""
19124
19125 #. type: =head1
19126 #: ../fish/guestfish.pod:913
19127 msgid "EXIT ON ERROR BEHAVIOUR"
19128 msgstr ""
19129
19130 #. type: textblock
19131 #: ../fish/guestfish.pod:915
19132 msgid ""
19133 "By default, guestfish will ignore any errors when in interactive mode "
19134 "(ie. taking commands from a human over a tty), and will exit on the first "
19135 "error in non-interactive mode (scripts, commands given on the command line)."
19136 msgstr ""
19137
19138 #. type: textblock
19139 #: ../fish/guestfish.pod:920
19140 msgid ""
19141 "If you prefix a command with a I<-> character, then that command will not "
19142 "cause guestfish to exit, even if that (one) command returns an error."
19143 msgstr ""
19144
19145 #. type: =head1
19146 #: ../fish/guestfish.pod:924
19147 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
19148 msgstr ""
19149
19150 #. type: textblock
19151 #: ../fish/guestfish.pod:926
19152 msgid ""
19153 "Guestfish can be remote-controlled over a socket.  This is useful "
19154 "particularly in shell scripts where you want to make several different "
19155 "changes to a filesystem, but you don't want the overhead of starting up a "
19156 "guestfish process each time."
19157 msgstr ""
19158
19159 #. type: textblock
19160 #: ../fish/guestfish.pod:931
19161 msgid "Start a guestfish server process using:"
19162 msgstr ""
19163
19164 #. type: verbatim
19165 #: ../fish/guestfish.pod:933
19166 #, no-wrap
19167 msgid ""
19168 " eval \"`guestfish --listen`\"\n"
19169 "\n"
19170 msgstr ""
19171
19172 #. type: textblock
19173 #: ../fish/guestfish.pod:935
19174 msgid "and then send it commands by doing:"
19175 msgstr ""
19176
19177 #. type: verbatim
19178 #: ../fish/guestfish.pod:937
19179 #, no-wrap
19180 msgid ""
19181 " guestfish --remote cmd [...]\n"
19182 "\n"
19183 msgstr ""
19184
19185 #. type: textblock
19186 #: ../fish/guestfish.pod:939
19187 msgid "To cause the server to exit, send it the exit command:"
19188 msgstr ""
19189
19190 #. type: textblock
19191 #: ../fish/guestfish.pod:943
19192 msgid ""
19193 "Note that the server will normally exit if there is an error in a command.  "
19194 "You can change this in the usual way.  See section L</EXIT ON ERROR "
19195 "BEHAVIOUR>."
19196 msgstr ""
19197
19198 #. type: =head2
19199 #: ../fish/guestfish.pod:947
19200 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
19201 msgstr ""
19202
19203 #. type: textblock
19204 #: ../fish/guestfish.pod:949
19205 msgid ""
19206 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
19207 "is how the I<--remote> option knows where to send the commands.  You can "
19208 "have several guestfish listener processes running using:"
19209 msgstr ""
19210
19211 #. type: verbatim
19212 #: ../fish/guestfish.pod:953
19213 #, no-wrap
19214 msgid ""
19215 " eval \"`guestfish --listen`\"\n"
19216 " pid1=$GUESTFISH_PID\n"
19217 " eval \"`guestfish --listen`\"\n"
19218 " pid2=$GUESTFISH_PID\n"
19219 " ...\n"
19220 " guestfish --remote=$pid1 cmd\n"
19221 " guestfish --remote=$pid2 cmd\n"
19222 "\n"
19223 msgstr ""
19224
19225 #. type: =head2
19226 #: ../fish/guestfish.pod:961
19227 msgid "REMOTE CONTROL AND CSH"
19228 msgstr ""
19229
19230 #. type: textblock
19231 #: ../fish/guestfish.pod:963
19232 msgid ""
19233 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
19234 "option:"
19235 msgstr ""
19236
19237 #. type: verbatim
19238 #: ../fish/guestfish.pod:966
19239 #, no-wrap
19240 msgid ""
19241 " eval \"`guestfish --listen --csh`\"\n"
19242 "\n"
19243 msgstr ""
19244
19245 #. type: =head2
19246 #: ../fish/guestfish.pod:968
19247 msgid "REMOTE CONTROL DETAILS"
19248 msgstr ""
19249
19250 #. type: textblock
19251 #: ../fish/guestfish.pod:970
19252 msgid ""
19253 "Remote control happens over a Unix domain socket called "
19254 "C</tmp/.guestfish-$UID/socket-$PID>, where C<$UID> is the effective user ID "
19255 "of the process, and C<$PID> is the process ID of the server."
19256 msgstr ""
19257
19258 #. type: textblock
19259 #: ../fish/guestfish.pod:974
19260 msgid "Guestfish client and server versions must match exactly."
19261 msgstr ""
19262
19263 #. type: =head2
19264 #: ../fish/guestfish.pod:976
19265 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
19266 msgstr ""
19267
19268 #. type: textblock
19269 #: ../fish/guestfish.pod:978
19270 msgid ""
19271 "From Bash, you can use the following code which creates a guestfish "
19272 "instance, correctly quotes the command line, handles failure to start, and "
19273 "cleans up guestfish when the script exits:"
19274 msgstr ""
19275
19276 #. type: verbatim
19277 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:965
19278 #, no-wrap
19279 msgid ""
19280 " #!/bin/bash -\n"
19281 " \n"
19282 msgstr ""
19283
19284 #. type: verbatim
19285 #: ../fish/guestfish.pod:986
19286 #, no-wrap
19287 msgid ""
19288 " guestfish[0]=\"guestfish\"\n"
19289 " guestfish[1]=\"--listen\"\n"
19290 " guestfish[2]=\"--ro\"\n"
19291 " guestfish[3]=\"-a\"\n"
19292 " guestfish[4]=\"disk.img\"\n"
19293 " \n"
19294 msgstr ""
19295
19296 #. type: verbatim
19297 #: ../fish/guestfish.pod:992
19298 #, no-wrap
19299 msgid ""
19300 " GUESTFISH_PID=\n"
19301 " eval $(\"${guestfish[@]}\")\n"
19302 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
19303 "     echo \"error: guestfish didn't start up, see error messages above\"\n"
19304 "     exit 1\n"
19305 " fi\n"
19306 " \n"
19307 msgstr ""
19308
19309 #. type: verbatim
19310 #: ../fish/guestfish.pod:999
19311 #, no-wrap
19312 msgid ""
19313 " cleanup_guestfish ()\n"
19314 " {\n"
19315 "     guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
19316 " }\n"
19317 " trap cleanup_guestfish EXIT ERR\n"
19318 " \n"
19319 msgstr ""
19320
19321 #. type: verbatim
19322 #: ../fish/guestfish.pod:1005
19323 #, no-wrap
19324 msgid ""
19325 " guestfish --remote -- run\n"
19326 " \n"
19327 msgstr ""
19328
19329 #. type: verbatim
19330 #: ../fish/guestfish.pod:1007
19331 #, no-wrap
19332 msgid ""
19333 " # ...\n"
19334 "\n"
19335 msgstr ""
19336
19337 #. type: =head2
19338 #: ../fish/guestfish.pod:1009
19339 msgid "REMOTE CONTROL RUN COMMAND HANGING"
19340 msgstr ""
19341
19342 #. type: textblock
19343 #: ../fish/guestfish.pod:1011
19344 msgid ""
19345 "Using the C<run> (or C<launch>) command remotely in a command substitution "
19346 "context hangs, ie. don't do (note the backquotes):"
19347 msgstr ""
19348
19349 #. type: verbatim
19350 #: ../fish/guestfish.pod:1014
19351 #, no-wrap
19352 msgid ""
19353 " a=`guestfish --remote run`\n"
19354 "\n"
19355 msgstr ""
19356
19357 #. type: textblock
19358 #: ../fish/guestfish.pod:1016
19359 msgid ""
19360 "Since the C<run> command produces no output on stdout, this is not useful "
19361 "anyway.  For further information see "
19362 "L<https://bugzilla.redhat.com/show_bug.cgi?id=592910>."
19363 msgstr ""
19364
19365 #. type: =head1
19366 #: ../fish/guestfish.pod:1020
19367 msgid "PREPARED DISK IMAGES"
19368 msgstr ""
19369
19370 #. type: textblock
19371 #: ../fish/guestfish.pod:1022
19372 msgid ""
19373 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
19374 "preformatted disk images that guestfish can make for you to save typing.  "
19375 "This is particularly useful for testing purposes.  This option is used "
19376 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
19377 "can be mixed with I<-a>)."
19378 msgstr ""
19379
19380 #. type: textblock
19381 #: ../fish/guestfish.pod:1028
19382 msgid ""
19383 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
19384 "the second and so on.  Existing files in the current directory are "
19385 "I<overwritten>."
19386 msgstr ""
19387
19388 #. type: textblock
19389 #: ../fish/guestfish.pod:1032
19390 msgid ""
19391 "The type briefly describes how the disk should be sized, partitioned, how "
19392 "filesystem(s) should be created, and how content should be added.  "
19393 "Optionally the type can be followed by extra parameters, separated by C<:> "
19394 "(colon) characters.  For example, I<-N fs> creates a default 100MB, "
19395 "sparsely-allocated disk, containing a single partition, with the partition "
19396 "formatted as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem "
19397 "on a 1GB disk instead."
19398 msgstr ""
19399
19400 #. type: textblock
19401 #: ../fish/guestfish.pod:1040
19402 msgid "To list the available types and any extra parameters they take, run:"
19403 msgstr ""
19404
19405 #. type: textblock
19406 #: ../fish/guestfish.pod:1044
19407 msgid ""
19408 "Note that the prepared filesystem is not mounted.  You would usually have to "
19409 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
19410 msgstr ""
19411
19412 #. type: textblock
19413 #: ../fish/guestfish.pod:1048
19414 msgid ""
19415 "If any I<-N> or I<--new> options are given, the guest is automatically "
19416 "launched."
19417 msgstr ""
19418
19419 #. type: textblock
19420 #: ../fish/guestfish.pod:1053
19421 msgid "Create a 100MB disk with an ext4-formatted partition:"
19422 msgstr ""
19423
19424 #. type: verbatim
19425 #: ../fish/guestfish.pod:1055
19426 #, no-wrap
19427 msgid ""
19428 " guestfish -N fs:ext4\n"
19429 "\n"
19430 msgstr ""
19431
19432 #. type: textblock
19433 #: ../fish/guestfish.pod:1057
19434 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
19435 msgstr ""
19436
19437 #. type: verbatim
19438 #: ../fish/guestfish.pod:1059
19439 #, no-wrap
19440 msgid ""
19441 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
19442 "\n"
19443 msgstr ""
19444
19445 #. type: textblock
19446 #: ../fish/guestfish.pod:1061
19447 msgid "Create a blank 200MB disk:"
19448 msgstr ""
19449
19450 #. type: verbatim
19451 #: ../fish/guestfish.pod:1063
19452 #, no-wrap
19453 msgid ""
19454 " guestfish -N disk:200M\n"
19455 "\n"
19456 msgstr ""
19457
19458 #. type: =head1
19459 #: ../fish/guestfish.pod:1065
19460 msgid "PROGRESS BARS"
19461 msgstr ""
19462
19463 #. type: textblock
19464 #: ../fish/guestfish.pod:1067
19465 msgid ""
19466 "Some (not all) long-running commands send progress notification messages as "
19467 "they are running.  Guestfish turns these messages into progress bars."
19468 msgstr ""
19469
19470 #. type: textblock
19471 #: ../fish/guestfish.pod:1071
19472 msgid ""
19473 "When a command that supports progress bars takes longer than two seconds to "
19474 "run, and if progress bars are enabled, then you will see one appearing below "
19475 "the command:"
19476 msgstr ""
19477
19478 #. type: verbatim
19479 #: ../fish/guestfish.pod:1075
19480 #, no-wrap
19481 msgid ""
19482 " ><fs> copy-size /large-file /another-file 2048M\n"
19483 " / 10% [#####-----------------------------------------] 00:30\n"
19484 "\n"
19485 msgstr ""
19486
19487 #. type: textblock
19488 #: ../fish/guestfish.pod:1078
19489 msgid ""
19490 "The spinner on the left hand side moves round once for every progress "
19491 "notification received from the backend.  This is a (reasonably) golden "
19492 "assurance that the command is \"doing something\" even if the progress bar "
19493 "is not moving, because the command is able to send the progress "
19494 "notifications.  When the bar reaches 100% and the command finishes, the "
19495 "spinner disappears."
19496 msgstr ""
19497
19498 #. type: textblock
19499 #: ../fish/guestfish.pod:1085
19500 msgid ""
19501 "Progress bars are enabled by default when guestfish is used interactively.  "
19502 "You can enable them even for non-interactive modes using I<--progress-bars>, "
19503 "and you can disable them completely using I<--no-progress-bars>."
19504 msgstr ""
19505
19506 #. type: =head1
19507 #: ../fish/guestfish.pod:1090
19508 msgid "GUESTFISH COMMANDS"
19509 msgstr ""
19510
19511 #. type: textblock
19512 #: ../fish/guestfish.pod:1092
19513 msgid ""
19514 "The commands in this section are guestfish convenience commands, in other "
19515 "words, they are not part of the L<guestfs(3)> API."
19516 msgstr ""
19517
19518 #. type: =head2
19519 #: ../fish/guestfish.pod:1095
19520 msgid "help"
19521 msgstr ""
19522
19523 #. type: verbatim
19524 #: ../fish/guestfish.pod:1097
19525 #, no-wrap
19526 msgid ""
19527 " help\n"
19528 " help cmd\n"
19529 "\n"
19530 msgstr ""
19531
19532 #. type: textblock
19533 #: ../fish/guestfish.pod:1100
19534 msgid "Without any parameter, this provides general help."
19535 msgstr ""
19536
19537 #. type: textblock
19538 #: ../fish/guestfish.pod:1102
19539 msgid "With a C<cmd> parameter, this displays detailed help for that command."
19540 msgstr ""
19541
19542 #. type: =head2
19543 #: ../fish/guestfish.pod:1104
19544 msgid "quit | exit"
19545 msgstr ""
19546
19547 #. type: textblock
19548 #: ../fish/guestfish.pod:1106
19549 msgid "This exits guestfish.  You can also use C<^D> key."
19550 msgstr ""
19551
19552 #. type: textblock
19553 #: ../fish/guestfish.pod:1108
19554 msgid "@FISH_COMMANDS@"
19555 msgstr ""
19556
19557 #. type: =head1
19558 #: ../fish/guestfish.pod:1110
19559 msgid "COMMANDS"
19560 msgstr ""
19561
19562 #. type: textblock
19563 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1505
19564 msgid "@ACTIONS@"
19565 msgstr ""
19566
19567 #. type: textblock
19568 #: ../fish/guestfish.pod:1116
19569 msgid ""
19570 "guestfish returns 0 if the commands completed without error, or 1 if there "
19571 "was an error."
19572 msgstr ""
19573
19574 #. type: =item
19575 #: ../fish/guestfish.pod:1123
19576 msgid "EDITOR"
19577 msgstr ""
19578
19579 #. type: textblock
19580 #: ../fish/guestfish.pod:1125
19581 msgid ""
19582 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
19583 "C<vi>."
19584 msgstr ""
19585
19586 #. type: =item
19587 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3198
19588 msgid "FEBOOTSTRAP_KERNEL"
19589 msgstr ""
19590
19591 #. type: =item
19592 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3200
19593 msgid "FEBOOTSTRAP_MODULES"
19594 msgstr ""
19595
19596 #. type: textblock
19597 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3202
19598 msgid ""
19599 "These two environment variables allow the kernel that libguestfs uses in the "
19600 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
19601 "most recent host kernel is chosen.  For more information about kernel "
19602 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
19603 "available in febootstrap E<ge> 3.8."
19604 msgstr ""
19605
19606 #. type: =item
19607 #: ../fish/guestfish.pod:1138
19608 msgid "GUESTFISH_DISPLAY_IMAGE"
19609 msgstr ""
19610
19611 #. type: textblock
19612 #: ../fish/guestfish.pod:1140
19613 msgid ""
19614 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
19615 "If not set, it uses L<display(1)>."
19616 msgstr ""
19617
19618 #. type: =item
19619 #: ../fish/guestfish.pod:1143
19620 msgid "GUESTFISH_PID"
19621 msgstr ""
19622
19623 #. type: textblock
19624 #: ../fish/guestfish.pod:1145
19625 msgid ""
19626 "Used with the I<--remote> option to specify the remote guestfish process to "
19627 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
19628 msgstr ""
19629
19630 #. type: =item
19631 #: ../fish/guestfish.pod:1149
19632 msgid "HEXEDITOR"
19633 msgstr ""
19634
19635 #. type: textblock
19636 #: ../fish/guestfish.pod:1151
19637 msgid ""
19638 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
19639 "not specified, the external L<hexedit(1)> program is used."
19640 msgstr ""
19641
19642 #. type: =item
19643 #: ../fish/guestfish.pod:1155
19644 msgid "HOME"
19645 msgstr ""
19646
19647 #. type: textblock
19648 #: ../fish/guestfish.pod:1157
19649 msgid ""
19650 "If compiled with GNU readline support, various files in the home directory "
19651 "can be used.  See L</FILES>."
19652 msgstr ""
19653
19654 #. type: =item
19655 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3208
19656 msgid "LIBGUESTFS_APPEND"
19657 msgstr ""
19658
19659 #. type: textblock
19660 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3210
19661 msgid "Pass additional options to the guest kernel."
19662 msgstr ""
19663
19664 #. type: =item
19665 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3212
19666 msgid "LIBGUESTFS_DEBUG"
19667 msgstr ""
19668
19669 #. type: textblock
19670 #: ../fish/guestfish.pod:1166
19671 msgid ""
19672 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
19673 "effect as using the B<-v> option."
19674 msgstr ""
19675
19676 #. type: =item
19677 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3217
19678 msgid "LIBGUESTFS_MEMSIZE"
19679 msgstr ""
19680
19681 #. type: textblock
19682 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3219
19683 msgid "Set the memory allocated to the qemu process, in megabytes.  For example:"
19684 msgstr ""
19685
19686 #. type: verbatim
19687 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3222
19688 #, no-wrap
19689 msgid ""
19690 " LIBGUESTFS_MEMSIZE=700\n"
19691 "\n"
19692 msgstr ""
19693
19694 #. type: =item
19695 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3224
19696 msgid "LIBGUESTFS_PATH"
19697 msgstr ""
19698
19699 #. type: textblock
19700 #: ../fish/guestfish.pod:1178
19701 msgid ""
19702 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
19703 "the discussion of paths in L<guestfs(3)>."
19704 msgstr ""
19705
19706 #. type: =item
19707 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3229
19708 msgid "LIBGUESTFS_QEMU"
19709 msgstr ""
19710
19711 #. type: textblock
19712 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3231
19713 msgid ""
19714 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
19715 "which was found at compile time by the configure script is used."
19716 msgstr ""
19717
19718 #. type: =item
19719 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3237
19720 msgid "LIBGUESTFS_TRACE"
19721 msgstr ""
19722
19723 #. type: textblock
19724 #: ../fish/guestfish.pod:1189
19725 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
19726 msgstr ""
19727
19728 #. type: =item
19729 #: ../fish/guestfish.pod:1191
19730 msgid "PAGER"
19731 msgstr ""
19732
19733 #. type: textblock
19734 #: ../fish/guestfish.pod:1193
19735 msgid ""
19736 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
19737 "C<more>."
19738 msgstr ""
19739
19740 #. type: =item
19741 #: ../fish/guestfish.pod:1196 ../sparsify/virt-sparsify.pod:236 ../src/guestfs.pod:3242
19742 msgid "TMPDIR"
19743 msgstr ""
19744
19745 #. type: textblock
19746 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3244
19747 msgid ""
19748 "Location of temporary directory, defaults to C</tmp> except for the cached "
19749 "supermin appliance which defaults to C</var/tmp>."
19750 msgstr ""
19751
19752 #. type: textblock
19753 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3247
19754 msgid ""
19755 "If libguestfs was compiled to use the supermin appliance then the real "
19756 "appliance is cached in this directory, shared between all handles belonging "
19757 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
19758 "use in case C</var/tmp> is not large enough."
19759 msgstr ""
19760
19761 #. type: =head1
19762 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297 ../rescue/virt-rescue.pod:273
19763 msgid "FILES"
19764 msgstr ""
19765
19766 #. type: =item
19767 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301 ../rescue/virt-rescue.pod:277
19768 msgid "$HOME/.libguestfs-tools.rc"
19769 msgstr ""
19770
19771 #. type: =item
19772 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303 ../rescue/virt-rescue.pod:279
19773 msgid "/etc/libguestfs-tools.conf"
19774 msgstr ""
19775
19776 #. type: textblock
19777 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305 ../rescue/virt-rescue.pod:281
19778 msgid ""
19779 "This configuration file controls the default read-only or read-write mode "
19780 "(I<--ro> or I<--rw>)."
19781 msgstr ""
19782
19783 #. type: textblock
19784 #: ../fish/guestfish.pod:1220
19785 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
19786 msgstr ""
19787
19788 #. type: =item
19789 #: ../fish/guestfish.pod:1222
19790 msgid "$HOME/.guestfish"
19791 msgstr ""
19792
19793 #. type: textblock
19794 #: ../fish/guestfish.pod:1224
19795 msgid ""
19796 "If compiled with GNU readline support, then the command history is saved in "
19797 "this file."
19798 msgstr ""
19799
19800 #. type: =item
19801 #: ../fish/guestfish.pod:1227
19802 msgid "$HOME/.inputrc"
19803 msgstr ""
19804
19805 #. type: =item
19806 #: ../fish/guestfish.pod:1229
19807 msgid "/etc/inputrc"
19808 msgstr ""
19809
19810 #. type: textblock
19811 #: ../fish/guestfish.pod:1231
19812 msgid ""
19813 "If compiled with GNU readline support, then these files can be used to "
19814 "configure readline.  For further information, please see "
19815 "L<readline(3)/INITIALIZATION FILE>."
19816 msgstr ""
19817
19818 #. type: textblock
19819 #: ../fish/guestfish.pod:1235
19820 msgid "To write rules which only apply to guestfish, use:"
19821 msgstr ""
19822
19823 #. type: verbatim
19824 #: ../fish/guestfish.pod:1237
19825 #, no-wrap
19826 msgid ""
19827 " $if guestfish\n"
19828 " ...\n"
19829 " $endif\n"
19830 "\n"
19831 msgstr ""
19832
19833 #. type: textblock
19834 #: ../fish/guestfish.pod:1241
19835 msgid ""
19836 "Variables that you can set in inputrc that change the behaviour of guestfish "
19837 "in useful ways include:"
19838 msgstr ""
19839
19840 #. type: =item
19841 #: ../fish/guestfish.pod:1246
19842 msgid "completion-ignore-case (default: on)"
19843 msgstr ""
19844
19845 #. type: textblock
19846 #: ../fish/guestfish.pod:1248
19847 msgid ""
19848 "By default, guestfish will ignore case when tab-completing paths on the "
19849 "disk.  Use:"
19850 msgstr ""
19851
19852 #. type: verbatim
19853 #: ../fish/guestfish.pod:1251
19854 #, no-wrap
19855 msgid ""
19856 " set completion-ignore-case off\n"
19857 "\n"
19858 msgstr ""
19859
19860 #. type: textblock
19861 #: ../fish/guestfish.pod:1253
19862 msgid "to make guestfish case sensitive."
19863 msgstr ""
19864
19865 #. type: =item
19866 #: ../fish/guestfish.pod:1257
19867 msgid "test1.img"
19868 msgstr ""
19869
19870 #. type: =item
19871 #: ../fish/guestfish.pod:1259
19872 msgid "test2.img (etc)"
19873 msgstr ""
19874
19875 #. type: textblock
19876 #: ../fish/guestfish.pod:1261
19877 msgid ""
19878 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
19879 "will be created in the file C<test1.img> in the current directory.  The "
19880 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
19881 "the same name will be overwritten."
19882 msgstr ""
19883
19884 #. type: textblock
19885 #: ../fish/guestfish.pod:1270
19886 msgid ""
19887 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, "
19888 "L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, "
19889 "L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, "
19890 "L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, "
19891 "L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, "
19892 "L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, "
19893 "L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<display(1)>, L<hexedit(1)>, "
19894 "L<febootstrap-supermin-helper(8)>."
19895 msgstr ""
19896
19897 #. type: textblock
19898 #: ../fish/guestfish.pod:1302 ../src/guestfs.pod:3339 ../test-tool/libguestfs-test-tool.pod:112
19899 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
19900 msgstr ""
19901
19902 #. type: textblock
19903 #: ../fish/virt-copy-in.pod:5
19904 msgid "virt-copy-in - Copy files and directories into a virtual machine disk image."
19905 msgstr ""
19906
19907 #. type: verbatim
19908 #: ../fish/virt-copy-in.pod:9
19909 #, no-wrap
19910 msgid ""
19911 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
19912 "\n"
19913 msgstr ""
19914
19915 #. type: verbatim
19916 #: ../fish/virt-copy-in.pod:11
19917 #, no-wrap
19918 msgid ""
19919 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
19920 "\n"
19921 msgstr ""
19922
19923 #. type: textblock
19924 #: ../fish/virt-copy-in.pod:15
19925 msgid ""
19926 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
19927 "causing disk corruption.  The virtual machine must be shut down before you "
19928 "use this command."
19929 msgstr ""
19930
19931 #. type: textblock
19932 #: ../fish/virt-copy-in.pod:21
19933 msgid ""
19934 "C<virt-copy-in> copies files and directories from the local disk into a "
19935 "virtual machine disk image or named libvirt domain."
19936 msgstr ""
19937
19938 #. type: textblock
19939 #: ../fish/virt-copy-in.pod:24
19940 msgid ""
19941 "You can give one of more filenames and directories on the command line.  "
19942 "Directories are copied in recursively.  The final parameter must be the "
19943 "destination directory in the disk image which must be an absolute path "
19944 "starting with a C</> character."
19945 msgstr ""
19946
19947 #. type: verbatim
19948 #: ../fish/virt-copy-in.pod:33
19949 #, no-wrap
19950 msgid ""
19951 " virt-copy-in -d MyGuest resolv.conf /etc\n"
19952 "\n"
19953 msgstr ""
19954
19955 #. type: textblock
19956 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
19957 msgid "Upload a home directory to a guest:"
19958 msgstr ""
19959
19960 #. type: verbatim
19961 #: ../fish/virt-copy-in.pod:37
19962 #, no-wrap
19963 msgid ""
19964 " virt-copy-in -d MyGuest skel /home\n"
19965 "\n"
19966 msgstr ""
19967
19968 #. type: =head1
19969 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28 ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
19970 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
19971 msgstr ""
19972
19973 #. type: textblock
19974 #: ../fish/virt-copy-in.pod:41
19975 msgid ""
19976 "This command is just a simple shell script wrapper around the "
19977 "L<guestfish(1)> C<copy-in> command.  For anything more complex than a "
19978 "trivial copy, you are probably better off using guestfish directly."
19979 msgstr ""
19980
19981 #. type: textblock
19982 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36 ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
19983 msgid ""
19984 "Since the shell script just passes options straight to guestfish, read "
19985 "L<guestfish(1)> to see the full list of options."
19986 msgstr ""
19987
19988 #. type: textblock
19989 #: ../fish/virt-copy-in.pod:52
19990 msgid ""
19991 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
19992 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
19993 msgstr ""
19994
19995 #. type: textblock
19996 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55 ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
19997 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
19998 msgstr ""
19999
20000 #. type: textblock
20001 #: ../fish/virt-copy-out.pod:5
20002 msgid ""
20003 "virt-copy-out - Copy files and directories out of a virtual machine disk "
20004 "image."
20005 msgstr ""
20006
20007 #. type: verbatim
20008 #: ../fish/virt-copy-out.pod:9
20009 #, no-wrap
20010 msgid ""
20011 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
20012 "\n"
20013 msgstr ""
20014
20015 #. type: verbatim
20016 #: ../fish/virt-copy-out.pod:11
20017 #, no-wrap
20018 msgid ""
20019 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
20020 "\n"
20021 msgstr ""
20022
20023 #. type: textblock
20024 #: ../fish/virt-copy-out.pod:15
20025 msgid ""
20026 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
20027 "image or named libvirt domain."
20028 msgstr ""
20029
20030 #. type: textblock
20031 #: ../fish/virt-copy-out.pod:18
20032 msgid ""
20033 "You can give one of more filenames and directories on the command line.  "
20034 "Directories are copied out recursively."
20035 msgstr ""
20036
20037 #. type: textblock
20038 #: ../fish/virt-copy-out.pod:23
20039 msgid "Download the home directories from a virtual machine:"
20040 msgstr ""
20041
20042 #. type: verbatim
20043 #: ../fish/virt-copy-out.pod:25
20044 #, no-wrap
20045 msgid ""
20046 " mkdir homes\n"
20047 " virt-copy-out -d MyGuest /home homes\n"
20048 "\n"
20049 msgstr ""
20050
20051 #. type: textblock
20052 #: ../fish/virt-copy-out.pod:30
20053 msgid ""
20054 "This command is just a simple shell script wrapper around the "
20055 "L<guestfish(1)> C<copy-out> command.  For anything more complex than a "
20056 "trivial copy, you are probably better off using guestfish directly."
20057 msgstr ""
20058
20059 #. type: textblock
20060 #: ../fish/virt-copy-out.pod:41
20061 msgid ""
20062 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, "
20063 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
20064 msgstr ""
20065
20066 #. type: textblock
20067 #: ../fish/virt-tar-in.pod:5
20068 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
20069 msgstr ""
20070
20071 #. type: verbatim
20072 #: ../fish/virt-tar-in.pod:9
20073 #, no-wrap
20074 msgid ""
20075 " virt-tar-in -a disk.img data.tar /destination\n"
20076 "\n"
20077 msgstr ""
20078
20079 #. type: verbatim
20080 #: ../fish/virt-tar-in.pod:11
20081 #, no-wrap
20082 msgid ""
20083 " virt-tar-in -d domain data.tar /destination\n"
20084 "\n"
20085 msgstr ""
20086
20087 #. type: verbatim
20088 #: ../fish/virt-tar-in.pod:13
20089 #, no-wrap
20090 msgid ""
20091 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
20092 "\n"
20093 msgstr ""
20094
20095 #. type: textblock
20096 #: ../fish/virt-tar-in.pod:17
20097 msgid ""
20098 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
20099 "causing disk corruption.  The virtual machine must be shut down before you "
20100 "use this command."
20101 msgstr ""
20102
20103 #. type: textblock
20104 #: ../fish/virt-tar-in.pod:23
20105 msgid ""
20106 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
20107 "image or named libvirt domain."
20108 msgstr ""
20109
20110 #. type: textblock
20111 #: ../fish/virt-tar-in.pod:26
20112 msgid ""
20113 "The first parameter is the tar file.  Use C<-> to read the tar file from "
20114 "standard input.  The second parameter is the absolute target directory to "
20115 "unpack into."
20116 msgstr ""
20117
20118 #. type: verbatim
20119 #: ../fish/virt-tar-in.pod:34
20120 #, no-wrap
20121 msgid ""
20122 " virt-tar-in -d MyGuest homes.tar /home\n"
20123 "\n"
20124 msgstr ""
20125
20126 #. type: textblock
20127 #: ../fish/virt-tar-in.pod:38
20128 msgid ""
20129 "This command is just a simple shell script wrapper around the "
20130 "L<guestfish(1)> C<tar-in> command.  For anything more complex than a trivial "
20131 "copy, you are probably better off using guestfish directly."
20132 msgstr ""
20133
20134 #. type: textblock
20135 #: ../fish/virt-tar-in.pod:49
20136 msgid ""
20137 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
20138 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, "
20139 "L<http://libguestfs.org/>."
20140 msgstr ""
20141
20142 #. type: textblock
20143 #: ../fish/virt-tar-out.pod:5
20144 msgid "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
20145 msgstr ""
20146
20147 #. type: verbatim
20148 #: ../fish/virt-tar-out.pod:9
20149 #, no-wrap
20150 msgid ""
20151 " virt-tar-out -a disk.img /dir files.tar\n"
20152 "\n"
20153 msgstr ""
20154
20155 #. type: verbatim
20156 #: ../fish/virt-tar-out.pod:11
20157 #, no-wrap
20158 msgid ""
20159 " virt-tar-out -d domain /dir files.tar\n"
20160 "\n"
20161 msgstr ""
20162
20163 #. type: verbatim
20164 #: ../fish/virt-tar-out.pod:13
20165 #, no-wrap
20166 msgid ""
20167 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
20168 "\n"
20169 msgstr ""
20170
20171 #. type: textblock
20172 #: ../fish/virt-tar-out.pod:17
20173 msgid "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
20174 msgstr ""
20175
20176 #. type: textblock
20177 #: ../fish/virt-tar-out.pod:20
20178 msgid ""
20179 "The first parameter is the absolute path of the virtual machine directory.  "
20180 "The second parameter is the tar file to write.  Use C<-> to write to "
20181 "standard output."
20182 msgstr ""
20183
20184 #. type: textblock
20185 #: ../fish/virt-tar-out.pod:26
20186 msgid "Download the home directories from a guest:"
20187 msgstr ""
20188
20189 #. type: verbatim
20190 #: ../fish/virt-tar-out.pod:28
20191 #, no-wrap
20192 msgid ""
20193 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
20194 "\n"
20195 msgstr ""
20196
20197 #. type: textblock
20198 #: ../fish/virt-tar-out.pod:32
20199 msgid ""
20200 "This command is just a simple shell script wrapper around the "
20201 "L<guestfish(1)> C<tar-out> command.  For anything more complex than a "
20202 "trivial copy, you are probably better off using guestfish directly."
20203 msgstr ""
20204
20205 #. type: textblock
20206 #: ../fish/virt-tar-out.pod:43
20207 msgid ""
20208 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
20209 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
20210 msgstr ""
20211
20212 #. type: textblock
20213 #: ../fuse/guestmount.pod:5
20214 msgid "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
20215 msgstr ""
20216
20217 #. type: verbatim
20218 #: ../fuse/guestmount.pod:9
20219 #, no-wrap
20220 msgid ""
20221 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
20222 "\n"
20223 msgstr ""
20224
20225 #. type: verbatim
20226 #: ../fuse/guestmount.pod:11
20227 #, no-wrap
20228 msgid ""
20229 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
20230 "\n"
20231 msgstr ""
20232
20233 #. type: verbatim
20234 #: ../fuse/guestmount.pod:13
20235 #, no-wrap
20236 msgid ""
20237 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
20238 "\n"
20239 msgstr ""
20240
20241 #. type: textblock
20242 #: ../fuse/guestmount.pod:17
20243 msgid ""
20244 "You must I<not> use C<guestmount> in read-write mode on live virtual "
20245 "machines.  If you do this, you risk disk corruption in the VM."
20246 msgstr ""
20247
20248 #. type: textblock
20249 #: ../fuse/guestmount.pod:22
20250 msgid ""
20251 "The guestmount program can be used to mount virtual machine filesystems and "
20252 "other disk images on the host.  It uses libguestfs for access to the guest "
20253 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
20254 "a mountable device."
20255 msgstr ""
20256
20257 #. type: textblock
20258 #: ../fuse/guestmount.pod:27
20259 msgid ""
20260 "Along with other options, you have to give at least one device (I<-a> "
20261 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
20262 "option) or use the I<-i> inspection option.  How this works is better "
20263 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
20264 "below."
20265 msgstr ""
20266
20267 #. type: textblock
20268 #: ../fuse/guestmount.pod:33
20269 msgid ""
20270 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
20271 "by you, and the filesystem will not be visible to any other users unless you "
20272 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
20273 "the filesystem, use the C<fusermount -u> command."
20274 msgstr ""
20275
20276 #. type: textblock
20277 #: ../fuse/guestmount.pod:41
20278 msgid ""
20279 "For a typical Windows guest which has its main filesystem on the first "
20280 "partition:"
20281 msgstr ""
20282
20283 #. type: verbatim
20284 #: ../fuse/guestmount.pod:44
20285 #, no-wrap
20286 msgid ""
20287 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
20288 "\n"
20289 msgstr ""
20290
20291 #. type: textblock
20292 #: ../fuse/guestmount.pod:46
20293 msgid ""
20294 "For a typical Linux guest which has a /boot filesystem on the first "
20295 "partition, and the root filesystem on a logical volume:"
20296 msgstr ""
20297
20298 #. type: verbatim
20299 #: ../fuse/guestmount.pod:49
20300 #, no-wrap
20301 msgid ""
20302 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
20303 "\n"
20304 msgstr ""
20305
20306 #. type: textblock
20307 #: ../fuse/guestmount.pod:51
20308 msgid "To get libguestfs to detect guest mountpoints for you:"
20309 msgstr ""
20310
20311 #. type: verbatim
20312 #: ../fuse/guestmount.pod:53
20313 #, no-wrap
20314 msgid ""
20315 " guestmount -a guest.img -i --ro /mnt\n"
20316 "\n"
20317 msgstr ""
20318
20319 #. type: textblock
20320 #: ../fuse/guestmount.pod:55
20321 msgid "For a libvirt guest called \"Guest\" you could do:"
20322 msgstr ""
20323
20324 #. type: verbatim
20325 #: ../fuse/guestmount.pod:57
20326 #, no-wrap
20327 msgid ""
20328 " guestmount -d Guest -i --ro /mnt\n"
20329 "\n"
20330 msgstr ""
20331
20332 #. type: textblock
20333 #: ../fuse/guestmount.pod:59
20334 msgid ""
20335 "If you don't know what filesystems are contained in a guest or disk image, "
20336 "use L<virt-filesystems(1)> first:"
20337 msgstr ""
20338
20339 #. type: verbatim
20340 #: ../fuse/guestmount.pod:62
20341 #, no-wrap
20342 msgid ""
20343 " virt-filesystems MyGuest\n"
20344 "\n"
20345 msgstr ""
20346
20347 #. type: textblock
20348 #: ../fuse/guestmount.pod:64
20349 msgid ""
20350 "If you want to trace the libguestfs calls but without excessive debugging "
20351 "information, we recommend:"
20352 msgstr ""
20353
20354 #. type: verbatim
20355 #: ../fuse/guestmount.pod:67
20356 #, no-wrap
20357 msgid ""
20358 " guestmount [...] --trace /mnt\n"
20359 "\n"
20360 msgstr ""
20361
20362 #. type: textblock
20363 #: ../fuse/guestmount.pod:69
20364 msgid "If you want to debug the program, we recommend:"
20365 msgstr ""
20366
20367 #. type: verbatim
20368 #: ../fuse/guestmount.pod:71
20369 #, no-wrap
20370 msgid ""
20371 " guestmount [...] --trace --verbose /mnt\n"
20372 "\n"
20373 msgstr ""
20374
20375 #. type: =head1
20376 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68 ../resize/virt-resize.pod:544
20377 msgid "NOTES"
20378 msgstr ""
20379
20380 #. type: =head2
20381 #: ../fuse/guestmount.pod:75
20382 msgid "Other users cannot see the filesystem by default"
20383 msgstr ""
20384
20385 #. type: textblock
20386 #: ../fuse/guestmount.pod:77
20387 msgid ""
20388 "If you mount a filesystem as one user (eg. root), then other users will not "
20389 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
20390 "option when mounting:"
20391 msgstr ""
20392
20393 #. type: verbatim
20394 #: ../fuse/guestmount.pod:81
20395 #, no-wrap
20396 msgid ""
20397 " sudo guestmount [...] -o allow_other /mnt\n"
20398 "\n"
20399 msgstr ""
20400
20401 #. type: =head2
20402 #: ../fuse/guestmount.pod:83
20403 msgid "Enabling FUSE"
20404 msgstr ""
20405
20406 #. type: textblock
20407 #: ../fuse/guestmount.pod:85
20408 msgid ""
20409 "On some distros, you may need to add yourself to a special group "
20410 "(eg. C<fuse>) before you can use any FUSE filesystem.  This is necessary on "
20411 "Debian and derivatives."
20412 msgstr ""
20413
20414 #. type: textblock
20415 #: ../fuse/guestmount.pod:89
20416 msgid ""
20417 "On other distros, no special group is required.  It is not necessary on "
20418 "Fedora or Red Hat Enterprise Linux."
20419 msgstr ""
20420
20421 #. type: textblock
20422 #: ../fuse/guestmount.pod:100
20423 msgid "Add a block device or virtual machine image."
20424 msgstr ""
20425
20426 #. type: =item
20427 #: ../fuse/guestmount.pod:123
20428 msgid "B<--dir-cache-timeout N>"
20429 msgstr ""
20430
20431 #. type: textblock
20432 #: ../fuse/guestmount.pod:125
20433 msgid ""
20434 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
20435 "seconds.  The readdir cache [actually, there are several semi-independent "
20436 "caches] is populated after a readdir(2) call with the stat and extended "
20437 "attributes of the files in the directory, in anticipation that they will be "
20438 "requested soon after."
20439 msgstr ""
20440
20441 #. type: textblock
20442 #: ../fuse/guestmount.pod:131
20443 msgid ""
20444 "There is also a different attribute cache implemented by FUSE (see the FUSE "
20445 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
20446 "requests, only cache existing ones."
20447 msgstr ""
20448
20449 #. type: textblock
20450 #: ../fuse/guestmount.pod:151
20451 msgid ""
20452 "If you have untrusted raw-format guest disk images, you should use this "
20453 "option to specify the disk format.  This avoids a possible security problem "
20454 "with malicious guests (CVE-2010-3851).  See also "
20455 "L<guestfs(3)/guestfs_add_drive_opts>."
20456 msgstr ""
20457
20458 #. type: =item
20459 #: ../fuse/guestmount.pod:156
20460 msgid "B<--fuse-help>"
20461 msgstr ""
20462
20463 #. type: textblock
20464 #: ../fuse/guestmount.pod:158
20465 msgid "Display help on special FUSE options (see I<-o> below)."
20466 msgstr ""
20467
20468 #. type: textblock
20469 #: ../fuse/guestmount.pod:162
20470 msgid "Display brief help and exit."
20471 msgstr ""
20472
20473 #. type: textblock
20474 #: ../fuse/guestmount.pod:186
20475 msgid ""
20476 "Mount the named partition or logical volume on the given mountpoint B<in the "
20477 "guest> (this has nothing to do with mountpoints in the host)."
20478 msgstr ""
20479
20480 #. type: textblock
20481 #: ../fuse/guestmount.pod:189
20482 msgid ""
20483 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
20484 "something on C</>."
20485 msgstr ""
20486
20487 #. type: textblock
20488 #: ../fuse/guestmount.pod:206
20489 msgid ""
20490 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
20491 "unmounted.  If you specify this option, then we don't attempt to sync the "
20492 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
20493 msgstr ""
20494
20495 #. type: =item
20496 #: ../fuse/guestmount.pod:211
20497 msgid "B<-o option>"
20498 msgstr ""
20499
20500 #. type: =item
20501 #: ../fuse/guestmount.pod:213
20502 msgid "B<--option option>"
20503 msgstr ""
20504
20505 #. type: textblock
20506 #: ../fuse/guestmount.pod:215
20507 msgid "Pass extra options to FUSE."
20508 msgstr ""
20509
20510 #. type: textblock
20511 #: ../fuse/guestmount.pod:217
20512 msgid ""
20513 "To get a list of all the extra options supported by FUSE, use the command "
20514 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
20515 "of them are a good idea."
20516 msgstr ""
20517
20518 #. type: verbatim
20519 #: ../fuse/guestmount.pod:221
20520 #, no-wrap
20521 msgid ""
20522 " guestmount --fuse-help\n"
20523 "\n"
20524 msgstr ""
20525
20526 #. type: textblock
20527 #: ../fuse/guestmount.pod:223
20528 msgid "Some potentially useful FUSE options:"
20529 msgstr ""
20530
20531 #. type: =item
20532 #: ../fuse/guestmount.pod:227
20533 msgid "B<-o allow_other>"
20534 msgstr ""
20535
20536 #. type: textblock
20537 #: ../fuse/guestmount.pod:229
20538 msgid "Allow other users to see the filesystem."
20539 msgstr ""
20540
20541 #. type: =item
20542 #: ../fuse/guestmount.pod:231
20543 msgid "B<-o attr_timeout=N>"
20544 msgstr ""
20545
20546 #. type: textblock
20547 #: ../fuse/guestmount.pod:233
20548 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
20549 msgstr ""
20550
20551 #. type: =item
20552 #: ../fuse/guestmount.pod:235
20553 msgid "B<-o kernel_cache>"
20554 msgstr ""
20555
20556 #. type: textblock
20557 #: ../fuse/guestmount.pod:237
20558 msgid ""
20559 "Allow the kernel to cache files (reduces the number of reads that have to go "
20560 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
20561 "afford the extra memory usage."
20562 msgstr ""
20563
20564 #. type: =item
20565 #: ../fuse/guestmount.pod:241
20566 msgid "B<-o uid=N> B<-o gid=N>"
20567 msgstr ""
20568
20569 #. type: textblock
20570 #: ../fuse/guestmount.pod:243
20571 msgid ""
20572 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
20573 "the chosen values."
20574 msgstr ""
20575
20576 #. type: textblock
20577 #: ../fuse/guestmount.pod:252
20578 msgid ""
20579 "Add devices and mount everything read-only.  Also disallow writes and make "
20580 "the disk appear read-only to FUSE."
20581 msgstr ""
20582
20583 #. type: textblock
20584 #: ../fuse/guestmount.pod:255
20585 msgid ""
20586 "This is highly recommended if you are not going to edit the guest disk.  If "
20587 "the guest is running and this option is I<not> supplied, then there is a "
20588 "strong risk of disk corruption in the guest.  We try to prevent this from "
20589 "happening, but it is not always possible."
20590 msgstr ""
20591
20592 #. type: textblock
20593 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:171
20594 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20595 msgstr ""
20596
20597 #. type: textblock
20598 #: ../fuse/guestmount.pod:264
20599 msgid "Enable SELinux support for the guest."
20600 msgstr ""
20601
20602 #. type: textblock
20603 #: ../fuse/guestmount.pod:270
20604 msgid "Enable verbose messages from underlying libguestfs."
20605 msgstr ""
20606
20607 #. type: textblock
20608 #: ../fuse/guestmount.pod:276
20609 msgid "Display the program version and exit."
20610 msgstr ""
20611
20612 #. type: textblock
20613 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308 ../rescue/virt-rescue.pod:201 ../rescue/virt-rescue.pod:284
20614 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20615 msgstr ""
20616
20617 #. type: =item
20618 #: ../fuse/guestmount.pod:289
20619 msgid "B<--trace>"
20620 msgstr ""
20621
20622 #. type: textblock
20623 #: ../fuse/guestmount.pod:291
20624 msgid "Trace libguestfs calls and entry into each FUSE function."
20625 msgstr ""
20626
20627 #. type: textblock
20628 #: ../fuse/guestmount.pod:293
20629 msgid "This also stops the daemon from forking into the background."
20630 msgstr ""
20631
20632 #. type: textblock
20633 #: ../fuse/guestmount.pod:319
20634 msgid ""
20635 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
20636 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, "
20637 "L<http://fuse.sf.net/>."
20638 msgstr ""
20639
20640 #. type: textblock
20641 #: ../fuse/guestmount.pod:334
20642 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
20643 msgstr ""
20644
20645 #. type: textblock
20646 #: ../inspector/virt-inspector.pod:5
20647 msgid ""
20648 "virt-inspector - Display operating system version and other information "
20649 "about a virtual machine"
20650 msgstr ""
20651
20652 #. type: verbatim
20653 #: ../inspector/virt-inspector.pod:9
20654 #, no-wrap
20655 msgid ""
20656 " virt-inspector [--options] -d domname\n"
20657 "\n"
20658 msgstr ""
20659
20660 #. type: verbatim
20661 #: ../inspector/virt-inspector.pod:11
20662 #, no-wrap
20663 msgid ""
20664 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
20665 "\n"
20666 msgstr ""
20667
20668 #. type: verbatim
20669 #: ../inspector/virt-inspector.pod:15
20670 #, no-wrap
20671 msgid ""
20672 " virt-inspector domname\n"
20673 "\n"
20674 msgstr ""
20675
20676 #. type: verbatim
20677 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
20678 #, no-wrap
20679 msgid ""
20680 " virt-inspector disk.img [disk.img ...]\n"
20681 "\n"
20682 msgstr ""
20683
20684 #. type: textblock
20685 #: ../inspector/virt-inspector.pod:21
20686 msgid ""
20687 "B<virt-inspector> examines a virtual machine or disk image and tries to "
20688 "determine the version of the operating system and other information about "
20689 "the virtual machine."
20690 msgstr ""
20691
20692 #. type: textblock
20693 #: ../inspector/virt-inspector.pod:25
20694 msgid "Virt-inspector produces XML output for feeding into other programs."
20695 msgstr ""
20696
20697 #. type: textblock
20698 #: ../inspector/virt-inspector.pod:27
20699 msgid ""
20700 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
20701 "the libvirt domain (see: C<virsh list --all>)."
20702 msgstr ""
20703
20704 #. type: textblock
20705 #: ../inspector/virt-inspector.pod:30
20706 msgid ""
20707 "You can also run virt-inspector directly on disk images from a single "
20708 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
20709 "has several block devices, in which case you should list several I<-a> "
20710 "options one after another, with the first corresponding to the guest's "
20711 "C</dev/sda>, the second to the guest's C</dev/sdb> and so on."
20712 msgstr ""
20713
20714 #. type: textblock
20715 #: ../inspector/virt-inspector.pod:37
20716 msgid ""
20717 "You can also run virt-inspector on install disks, live CDs, bootable USB "
20718 "keys and similar."
20719 msgstr ""
20720
20721 #. type: textblock
20722 #: ../inspector/virt-inspector.pod:40
20723 msgid ""
20724 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
20725 "inspect several virtual machines, you have to run virt-inspector several "
20726 "times (for example, from a shell script for-loop)."
20727 msgstr ""
20728
20729 #. type: textblock
20730 #: ../inspector/virt-inspector.pod:45
20731 msgid ""
20732 "Because virt-inspector needs direct access to guest images, it won't "
20733 "normally work over remote libvirt connections."
20734 msgstr ""
20735
20736 #. type: textblock
20737 #: ../inspector/virt-inspector.pod:48
20738 msgid ""
20739 "All of the information available from virt-inspector is also available "
20740 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
20741 "The same information can also be fetched using guestfish or via libguestfs "
20742 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
20743 "WITH OTHER PROGRAMMING LANGUAGES>)."
20744 msgstr ""
20745
20746 #. type: textblock
20747 #: ../inspector/virt-inspector.pod:81
20748 msgid ""
20749 "Libvirt is only used if you specify a C<domname> on the command line.  If "
20750 "you specify guest block devices directly (I<-a>), then libvirt is not used "
20751 "at all."
20752 msgstr ""
20753
20754 #. type: textblock
20755 #: ../inspector/virt-inspector.pod:94
20756 msgid ""
20757 "When prompting for keys and passphrases, virt-inspector normally turns "
20758 "echoing off so you cannot see what you are typing.  If you are not worried "
20759 "about Tempest attacks and there is no one else in the room you can specify "
20760 "this flag to see what you are typing."
20761 msgstr ""
20762
20763 #. type: textblock
20764 #: ../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
20765 msgid ""
20766 "Specify the format of disk images given on the command line.  If this is "
20767 "omitted then the format is autodetected from the content of the disk image."
20768 msgstr ""
20769
20770 #. type: textblock
20771 #: ../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
20772 msgid ""
20773 "If disk images are requested from libvirt, then this program asks libvirt "
20774 "for this information.  In this case, the value of the format parameter is "
20775 "ignored."
20776 msgstr ""
20777
20778 #. type: textblock
20779 #: ../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
20780 msgid ""
20781 "If working with untrusted raw-format guest disk images, you should ensure "
20782 "the format is always specified."
20783 msgstr ""
20784
20785 #. type: textblock
20786 #: ../inspector/virt-inspector.pod:139
20787 msgid "Previous versions of virt-inspector allowed you to write either:"
20788 msgstr ""
20789
20790 #. type: verbatim
20791 #: ../inspector/virt-inspector.pod:145
20792 #, no-wrap
20793 msgid ""
20794 " virt-inspector guestname\n"
20795 "\n"
20796 msgstr ""
20797
20798 #. type: =head1
20799 #: ../inspector/virt-inspector.pod:153
20800 msgid "XML FORMAT"
20801 msgstr ""
20802
20803 #. type: textblock
20804 #: ../inspector/virt-inspector.pod:155
20805 msgid ""
20806 "The virt-inspector XML is described precisely in a RELAX NG schema file "
20807 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
20808 "just an overview."
20809 msgstr ""
20810
20811 #. type: textblock
20812 #: ../inspector/virt-inspector.pod:159
20813 msgid ""
20814 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
20815 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
20816 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
20817 "which is vanishingly rare in real world VMs."
20818 msgstr ""
20819
20820 #. type: =head2
20821 #: ../inspector/virt-inspector.pod:164
20822 msgid "E<lt>operatingsystemE<gt>"
20823 msgstr ""
20824
20825 #. type: textblock
20826 #: ../inspector/virt-inspector.pod:166
20827 msgid ""
20828 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
20829 "describe the operating system, its architecture, the descriptive \"product "
20830 "name\" string, the type of OS and so on, as in this example:"
20831 msgstr ""
20832
20833 #. type: verbatim
20834 #: ../inspector/virt-inspector.pod:170
20835 #, no-wrap
20836 msgid ""
20837 " <operatingsystems>\n"
20838 "   <operatingsystem>\n"
20839 "     <root>/dev/sda2</root>\n"
20840 "     <name>windows</name>\n"
20841 "     <arch>i386</arch>\n"
20842 "     <distro>windows</distro>\n"
20843 "     <product_name>Windows 7 Enterprise</product_name>\n"
20844 "     <product_variant>Client</product_variant>\n"
20845 "     <major_version>6</major_version>\n"
20846 "     <minor_version>1</minor_version>\n"
20847 "     <windows_systemroot>/Windows</windows_systemroot>\n"
20848 "     <format>installed</format>\n"
20849 "\n"
20850 msgstr ""
20851
20852 #. type: textblock
20853 #: ../inspector/virt-inspector.pod:183
20854 msgid ""
20855 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
20856 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
20857 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
20858 "architecture.  The other fields are fairly self-explanatory, but because "
20859 "these fields are taken directly from the libguestfs inspection API you can "
20860 "find precise information from L<guestfs(3)/INSPECTION>."
20861 msgstr ""
20862
20863 #. type: textblock
20864 #: ../inspector/virt-inspector.pod:191
20865 msgid ""
20866 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
20867 "of view of libguestfs (block devices may have completely different names "
20868 "inside the VM itself)."
20869 msgstr ""
20870
20871 #. type: =head2
20872 #: ../inspector/virt-inspector.pod:195
20873 msgid "E<lt>mountpointsE<gt>"
20874 msgstr ""
20875
20876 #. type: textblock
20877 #: ../inspector/virt-inspector.pod:197
20878 msgid ""
20879 "Un*x-like guests typically have multiple filesystems which are mounted at "
20880 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
20881 "element which looks like this:"
20882 msgstr ""
20883
20884 #. type: verbatim
20885 #: ../inspector/virt-inspector.pod:201
20886 #, no-wrap
20887 msgid ""
20888 " <operatingsystems>\n"
20889 "   <operatingsystem>\n"
20890 "     ...\n"
20891 "     <mountpoints>\n"
20892 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
20893 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
20894 "     </mountpoints>\n"
20895 "\n"
20896 msgstr ""
20897
20898 #. type: textblock
20899 #: ../inspector/virt-inspector.pod:209
20900 msgid ""
20901 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
20902 "and may have completely different names inside the guest.  Only mountable "
20903 "filesystems appear in this list, not things like swap devices."
20904 msgstr ""
20905
20906 #. type: =head2
20907 #: ../inspector/virt-inspector.pod:214
20908 msgid "E<lt>filesystemsE<gt>"
20909 msgstr ""
20910
20911 #. type: textblock
20912 #: ../inspector/virt-inspector.pod:216
20913 msgid ""
20914 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
20915 "filesystems belonging to the guest, including swap and empty partitions.  "
20916 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
20917 "this OS or shared with this OS and other OSes)."
20918 msgstr ""
20919
20920 #. type: textblock
20921 #: ../inspector/virt-inspector.pod:222
20922 msgid "You might see something like this:"
20923 msgstr ""
20924
20925 #. type: verbatim
20926 #: ../inspector/virt-inspector.pod:224
20927 #, no-wrap
20928 msgid ""
20929 " <operatingsystems>\n"
20930 "   <operatingsystem>\n"
20931 "     ...\n"
20932 "     <filesystems>\n"
20933 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
20934 "         <type>ext4</type>\n"
20935 "         <label>Fedora-13-x86_64</label>\n"
20936 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
20937 "       </filesystem>\n"
20938 "\n"
20939 msgstr ""
20940
20941 #. type: textblock
20942 #: ../inspector/virt-inspector.pod:234
20943 msgid ""
20944 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
20945 "the label, and the UUID."
20946 msgstr ""
20947
20948 #. type: =head2
20949 #: ../inspector/virt-inspector.pod:237
20950 msgid "E<lt>applicationsE<gt>"
20951 msgstr ""
20952
20953 #. type: textblock
20954 #: ../inspector/virt-inspector.pod:239
20955 msgid ""
20956 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
20957 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
20958 "machine."
20959 msgstr ""
20960
20961 #. type: textblock
20962 #: ../inspector/virt-inspector.pod:243
20963 msgid ""
20964 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
20965 "Typical values would be C<rpm> and C<deb>."
20966 msgstr ""
20967
20968 #. type: textblock
20969 #: ../inspector/virt-inspector.pod:246
20970 msgid ""
20971 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
20972 "Typical values include C<yum>, C<up2date> and C<apt>"
20973 msgstr ""
20974
20975 #. type: textblock
20976 #: ../inspector/virt-inspector.pod:249
20977 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
20978 msgstr ""
20979
20980 #. type: verbatim
20981 #: ../inspector/virt-inspector.pod:252
20982 #, no-wrap
20983 msgid ""
20984 " <operatingsystems>\n"
20985 "   <operatingsystem>\n"
20986 "     ...\n"
20987 "     <applications>\n"
20988 "       <application>\n"
20989 "         <name>coreutils</name>\n"
20990 "         <version>8.5</version>\n"
20991 "         <release>1</release>\n"
20992 "       </application>\n"
20993 "\n"
20994 msgstr ""
20995
20996 #. type: textblock
20997 #: ../inspector/virt-inspector.pod:262
20998 msgid ""
20999 "The version and release fields may not be available for some types guests.  "
21000 "Other fields are possible, see "
21001 "L<guestfs(3)/guestfs_inspect_list_applications>."
21002 msgstr ""
21003
21004 #. type: =head2
21005 #: ../inspector/virt-inspector.pod:266
21006 msgid "E<lt>drive_mappingsE<gt>"
21007 msgstr ""
21008
21009 #. type: textblock
21010 #: ../inspector/virt-inspector.pod:268
21011 msgid ""
21012 "For operating systems like Windows which use drive letters, virt-inspector "
21013 "is able to find out how drive letters map to filesystems."
21014 msgstr ""
21015
21016 #. type: verbatim
21017 #: ../inspector/virt-inspector.pod:272
21018 #, no-wrap
21019 msgid ""
21020 " <operatingsystems>\n"
21021 "   <operatingsystem>\n"
21022 "     ...\n"
21023 "     <drive_mappings>\n"
21024 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
21025 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
21026 "     </drive_mappings>\n"
21027 "\n"
21028 msgstr ""
21029
21030 #. type: textblock
21031 #: ../inspector/virt-inspector.pod:280
21032 msgid ""
21033 "In the example above, drive C maps to the filesystem on the second partition "
21034 "on the first disk, and drive E maps to the filesystem on the first partition "
21035 "on the second disk."
21036 msgstr ""
21037
21038 #. type: textblock
21039 #: ../inspector/virt-inspector.pod:284
21040 msgid ""
21041 "Note that this only covers permanent local filesystem mappings, not things "
21042 "like network shares.  Furthermore NTFS volume mount points may not be listed "
21043 "here."
21044 msgstr ""
21045
21046 #. type: =head2
21047 #: ../inspector/virt-inspector.pod:288
21048 msgid "E<lt>iconE<gt>"
21049 msgstr ""
21050
21051 #. type: textblock
21052 #: ../inspector/virt-inspector.pod:290
21053 msgid ""
21054 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
21055 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
21056 "very large and high quality."
21057 msgstr ""
21058
21059 #. type: verbatim
21060 #: ../inspector/virt-inspector.pod:294
21061 #, no-wrap
21062 msgid ""
21063 " <operatingsystems>\n"
21064 "   <operatingsystem>\n"
21065 "     ...\n"
21066 "     <icon>\n"
21067 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
21068 "       [... many lines of base64 data ...]\n"
21069 "     </icon>\n"
21070 "\n"
21071 msgstr ""
21072
21073 #. type: textblock
21074 #: ../inspector/virt-inspector.pod:302
21075 msgid ""
21076 "To display the icon, you have to extract it and convert the base64 data back "
21077 "to a binary file.  Use an XPath query or simply an editor to extract the "
21078 "data, then use the coreutils L<base64(1)> program to do the conversion back "
21079 "to a PNG file:"
21080 msgstr ""
21081
21082 #. type: verbatim
21083 #: ../inspector/virt-inspector.pod:307
21084 #, no-wrap
21085 msgid ""
21086 " base64 -i -d < icon.data > icon.png\n"
21087 "\n"
21088 msgstr ""
21089
21090 #. type: =head2
21091 #: ../inspector/virt-inspector.pod:309
21092 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
21093 msgstr ""
21094
21095 #. type: textblock
21096 #: ../inspector/virt-inspector.pod:311
21097 msgid ""
21098 "Virt-inspector can detect some operating system installers on install disks, "
21099 "live CDs, bootable USB keys and more."
21100 msgstr ""
21101
21102 #. type: textblock
21103 #: ../inspector/virt-inspector.pod:314
21104 msgid ""
21105 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
21106 "fields may be present to indicate a live CD, network installer, or one part "
21107 "of a multipart CD.  For example:"
21108 msgstr ""
21109
21110 #. type: verbatim
21111 #: ../inspector/virt-inspector.pod:318
21112 #, no-wrap
21113 msgid ""
21114 " <operatingsystems>\n"
21115 "   <operatingsystem>\n"
21116 "     <root>/dev/sda</root>\n"
21117 "     <name>linux</name>\n"
21118 "     <arch>i386</arch>\n"
21119 "     <distro>ubuntu</distro>\n"
21120 "     <product_name>Ubuntu 10.10 &quot;Maverick "
21121 "Meerkat&quot;</product_name>\n"
21122 "     <major_version>10</major_version>\n"
21123 "     <minor_version>10</minor_version>\n"
21124 "     <format>installer</format>\n"
21125 "     <live/>\n"
21126 "\n"
21127 msgstr ""
21128
21129 #. type: =head1
21130 #: ../inspector/virt-inspector.pod:330
21131 msgid "USING XPATH"
21132 msgstr ""
21133
21134 #. type: textblock
21135 #: ../inspector/virt-inspector.pod:332
21136 msgid ""
21137 "You can use the XPath query language to select parts of the XML.  We "
21138 "recommend using C<xmlstarlet> to perform XPath queries from the command "
21139 "line."
21140 msgstr ""
21141
21142 #. type: verbatim
21143 #: ../inspector/virt-inspector.pod:338
21144 #, no-wrap
21145 msgid ""
21146 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
21147 " <filesystems>\n"
21148 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
21149 "        <type>ext4</type>\n"
21150 " [...]\n"
21151 "\n"
21152 msgstr ""
21153
21154 #. type: verbatim
21155 #: ../inspector/virt-inspector.pod:344
21156 #, no-wrap
21157 msgid ""
21158 " $ virt-inspector -d Guest | \\\n"
21159 "     xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
21160 " ext4\n"
21161 "\n"
21162 msgstr ""
21163
21164 #. type: verbatim
21165 #: ../inspector/virt-inspector.pod:348
21166 #, no-wrap
21167 msgid ""
21168 " $ virt-inspector -d Guest | \\\n"
21169 "    xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
21170 " [displays the guest icon, if there is one]\n"
21171 "\n"
21172 msgstr ""
21173
21174 #. type: =head1
21175 #: ../inspector/virt-inspector.pod:359
21176 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
21177 msgstr ""
21178
21179 #. type: textblock
21180 #: ../inspector/virt-inspector.pod:361
21181 msgid ""
21182 "Early versions of libguestfs shipped with a different virt-inspector program "
21183 "written in Perl (the current version is written in C).  The XML output of "
21184 "the Perl virt-inspector was different and it could also output in other "
21185 "formats like text."
21186 msgstr ""
21187
21188 #. type: textblock
21189 #: ../inspector/virt-inspector.pod:366
21190 msgid "The old virt-inspector is no longer supported or shipped with libguestfs."
21191 msgstr ""
21192
21193 #. type: textblock
21194 #: ../inspector/virt-inspector.pod:369
21195 msgid ""
21196 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
21197 "versions of virt-inspector with different names:"
21198 msgstr ""
21199
21200 #. type: verbatim
21201 #: ../inspector/virt-inspector.pod:372
21202 #, no-wrap
21203 msgid ""
21204 " virt-inspector     Old Perl version.\n"
21205 " virt-inspector2    New C version.\n"
21206 "\n"
21207 msgstr ""
21208
21209 #. type: textblock
21210 #: ../inspector/virt-inspector.pod:382
21211 msgid ""
21212 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, "
21213 "L<base64(1)>, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
21214 msgstr ""
21215
21216 #. type: textblock
21217 #: ../inspector/virt-inspector.pod:399
21218 msgid "Matthew Booth L<mbooth@redhat.com>"
21219 msgstr ""
21220
21221 #. type: textblock
21222 #: ../java/examples/guestfs-java.pod:5
21223 msgid "guestfs-java - How to use libguestfs from Java"
21224 msgstr ""
21225
21226 #. type: verbatim
21227 #: ../java/examples/guestfs-java.pod:9
21228 #, no-wrap
21229 msgid ""
21230 " import com.redhat.et.libguestfs.*;\n"
21231 " \n"
21232 msgstr ""
21233
21234 #. type: verbatim
21235 #: ../java/examples/guestfs-java.pod:11
21236 #, no-wrap
21237 msgid ""
21238 " GuestFS g = new GuestFS ();\n"
21239 " g.add_drive_opts (\"disk.img\", null);\n"
21240 " g.launch ();\n"
21241 "\n"
21242 msgstr ""
21243
21244 #. type: textblock
21245 #: ../java/examples/guestfs-java.pod:17
21246 msgid ""
21247 "This manual page documents how to call libguestfs from the Java programming "
21248 "language.  This page just documents the differences from the C API and gives "
21249 "some examples.  If you are not familiar with using libguestfs, you also need "
21250 "to read L<guestfs(3)>."
21251 msgstr ""
21252
21253 #. type: =head2
21254 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
21255 msgid "CLOSING THE HANDLE"
21256 msgstr ""
21257
21258 #. type: textblock
21259 #: ../java/examples/guestfs-java.pod:24
21260 msgid ""
21261 "The handle is closed when it is reaped by the garbage collector.  Because "
21262 "libguestfs handles include a lot of state, it is also possible to close (and "
21263 "hence free) them explicitly by calling the C<close> method."
21264 msgstr ""
21265
21266 #. type: =head2
21267 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60 ../python/examples/guestfs-python.pod:21 ../ruby/examples/guestfs-ruby.pod:22
21268 msgid "EXCEPTIONS"
21269 msgstr ""
21270
21271 #. type: textblock
21272 #: ../java/examples/guestfs-java.pod:31
21273 msgid ""
21274 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
21275 "exception.  This has a single parameter which is the error message (a "
21276 "C<String>)."
21277 msgstr ""
21278
21279 #. type: textblock
21280 #: ../java/examples/guestfs-java.pod:35
21281 msgid "Calling any method on a closed handle raises the same exception."
21282 msgstr ""
21283
21284 #. type: textblock
21285 #: ../java/examples/guestfs-java.pod:47
21286 msgid ""
21287 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
21288 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
21289 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>, "
21290 "L<http://caml.inria.fr/>."
21291 msgstr ""
21292
21293 #. type: textblock
21294 #: ../ocaml/examples/guestfs-ocaml.pod:5
21295 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
21296 msgstr ""
21297
21298 #. type: textblock
21299 #: ../ocaml/examples/guestfs-ocaml.pod:9
21300 msgid "Module style:"
21301 msgstr ""
21302
21303 #. type: verbatim
21304 #: ../ocaml/examples/guestfs-ocaml.pod:11
21305 #, no-wrap
21306 msgid ""
21307 " let g = Guestfs.create () in\n"
21308 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21309 " Guestfs.launch g;\n"
21310 "\n"
21311 msgstr ""
21312
21313 #. type: textblock
21314 #: ../ocaml/examples/guestfs-ocaml.pod:15
21315 msgid "Object-oriented style:"
21316 msgstr ""
21317
21318 #. type: verbatim
21319 #: ../ocaml/examples/guestfs-ocaml.pod:17
21320 #, no-wrap
21321 msgid ""
21322 " let g = new Guestfs.guestfs () in\n"
21323 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21324 " g#launch ();\n"
21325 "\n"
21326 msgstr ""
21327
21328 #. type: verbatim
21329 #: ../ocaml/examples/guestfs-ocaml.pod:21
21330 #, no-wrap
21331 msgid ""
21332 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
21333 "or:\n"
21334 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
21335 "\n"
21336 msgstr ""
21337
21338 #. type: textblock
21339 #: ../ocaml/examples/guestfs-ocaml.pod:27
21340 msgid ""
21341 "This manual page documents how to call libguestfs from the OCaml programming "
21342 "language.  This page just documents the differences from the C API and gives "
21343 "some examples.  If you are not familiar with using libguestfs, you also need "
21344 "to read L<guestfs(3)>."
21345 msgstr ""
21346
21347 #. type: =head2
21348 #: ../ocaml/examples/guestfs-ocaml.pod:32
21349 msgid "PROGRAMMING STYLES"
21350 msgstr ""
21351
21352 #. type: textblock
21353 #: ../ocaml/examples/guestfs-ocaml.pod:34
21354 msgid ""
21355 "There are two different programming styles supported by the OCaml bindings.  "
21356 "You can use a module style, with each C function mapped to an OCaml "
21357 "function:"
21358 msgstr ""
21359
21360 #. type: verbatim
21361 #: ../ocaml/examples/guestfs-ocaml.pod:38
21362 #, no-wrap
21363 msgid ""
21364 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
21365 "\n"
21366 msgstr ""
21367
21368 #. type: textblock
21369 #: ../ocaml/examples/guestfs-ocaml.pod:40
21370 msgid "becomes:"
21371 msgstr ""
21372
21373 #. type: verbatim
21374 #: ../ocaml/examples/guestfs-ocaml.pod:42
21375 #, no-wrap
21376 msgid ""
21377 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
21378 "\n"
21379 msgstr ""
21380
21381 #. type: textblock
21382 #: ../ocaml/examples/guestfs-ocaml.pod:44
21383 msgid ""
21384 "Alternately you can use an object-oriented style, calling methods on the "
21385 "class C<Guestfs.guestfs>:"
21386 msgstr ""
21387
21388 #. type: verbatim
21389 #: ../ocaml/examples/guestfs-ocaml.pod:47
21390 #, no-wrap
21391 msgid ""
21392 " method set_verbose : bool -> unit\n"
21393 "\n"
21394 msgstr ""
21395
21396 #. type: textblock
21397 #: ../ocaml/examples/guestfs-ocaml.pod:49
21398 msgid ""
21399 "The object-oriented style is usually briefer, and the minor performance "
21400 "penalty isn't noticable in the general overhead of performing libguestfs "
21401 "functions."
21402 msgstr ""
21403
21404 #. type: textblock
21405 #: ../ocaml/examples/guestfs-ocaml.pod:55
21406 msgid ""
21407 "The handle is closed when it is reaped by the garbage collector.  Because "
21408 "libguestfs handles include a lot of state, it is also possible to close (and "
21409 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
21410 "method."
21411 msgstr ""
21412
21413 #. type: textblock
21414 #: ../ocaml/examples/guestfs-ocaml.pod:62
21415 msgid ""
21416 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
21417 "exception.  This has a single parameter which is the error message (a "
21418 "string)."
21419 msgstr ""
21420
21421 #. type: textblock
21422 #: ../ocaml/examples/guestfs-ocaml.pod:66
21423 msgid ""
21424 "Calling any function/method on a closed handle raises "
21425 "C<Guestfs.Handle_closed>.  The single parameter is the name of the function "
21426 "that you called."
21427 msgstr ""
21428
21429 #. type: textblock
21430 #: ../ocaml/examples/guestfs-ocaml.pod:80
21431 msgid ""
21432 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
21433 "L<guestfs-java(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
21434 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>, "
21435 "L<http://caml.inria.fr/>."
21436 msgstr ""
21437
21438 #. type: textblock
21439 #: ../perl/examples/guestfs-perl.pod:5
21440 msgid "guestfs-perl - How to use libguestfs from Perl"
21441 msgstr ""
21442
21443 #. type: verbatim
21444 #: ../perl/examples/guestfs-perl.pod:9
21445 #, no-wrap
21446 msgid ""
21447 " use Sys::Guestfs;\n"
21448 " \n"
21449 msgstr ""
21450
21451 #. type: verbatim
21452 #: ../perl/examples/guestfs-perl.pod:11
21453 #, no-wrap
21454 msgid ""
21455 " my $h = Sys::Guestfs->new ();\n"
21456 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
21457 " $h->launch ();\n"
21458 " $h->mount_options ('', '/dev/sda1', '/');\n"
21459 " $h->touch ('/hello');\n"
21460 " $h->sync ();\n"
21461 "\n"
21462 msgstr ""
21463
21464 #. type: textblock
21465 #: ../perl/examples/guestfs-perl.pod:20
21466 msgid ""
21467 "This manual page documents how to call libguestfs from the Perl programming "
21468 "language.  This page just documents the differences from the C API and gives "
21469 "some examples.  If you are not familiar with using libguestfs, you also need "
21470 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
21471 msgstr ""
21472
21473 #. type: =head2
21474 #: ../perl/examples/guestfs-perl.pod:26
21475 msgid "ERRORS"
21476 msgstr ""
21477
21478 #. type: textblock
21479 #: ../perl/examples/guestfs-perl.pod:28
21480 msgid ""
21481 "Errors from libguestfs functions turn into calls to C<croak> (see "
21482 "L<Carp(3)>)."
21483 msgstr ""
21484
21485 #. type: textblock
21486 #: ../perl/examples/guestfs-perl.pod:41
21487 msgid ""
21488 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, "
21489 "L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, "
21490 "L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, "
21491 "L<http://libguestfs.org/>."
21492 msgstr ""
21493
21494 #. type: textblock
21495 #: ../python/examples/guestfs-python.pod:5
21496 msgid "guestfs-python - How to use libguestfs from Python"
21497 msgstr ""
21498
21499 #. type: verbatim
21500 #: ../python/examples/guestfs-python.pod:9
21501 #, no-wrap
21502 msgid ""
21503 " import guestfs\n"
21504 " g = guestfs.GuestFS ()\n"
21505 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
21506 " g.launch\n"
21507 "\n"
21508 msgstr ""
21509
21510 #. type: textblock
21511 #: ../python/examples/guestfs-python.pod:16
21512 msgid ""
21513 "This manual page documents how to call libguestfs from the Python "
21514 "programming language.  This page just documents the differences from the C "
21515 "API and gives some examples.  If you are not familiar with using libguestfs, "
21516 "you also need to read L<guestfs(3)>."
21517 msgstr ""
21518
21519 #. type: textblock
21520 #: ../python/examples/guestfs-python.pod:23
21521 msgid ""
21522 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
21523 "single string argument which is the error message."
21524 msgstr ""
21525
21526 #. type: =head2
21527 #: ../python/examples/guestfs-python.pod:26
21528 msgid "MORE DOCUMENTATION"
21529 msgstr ""
21530
21531 #. type: textblock
21532 #: ../python/examples/guestfs-python.pod:28
21533 msgid "Type:"
21534 msgstr ""
21535
21536 #. type: verbatim
21537 #: ../python/examples/guestfs-python.pod:30
21538 #, no-wrap
21539 msgid ""
21540 " $ python\n"
21541 " >>> import guestfs\n"
21542 " >>> help (guestfs)\n"
21543 "\n"
21544 msgstr ""
21545
21546 #. type: textblock
21547 #: ../python/examples/guestfs-python.pod:44
21548 msgid ""
21549 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
21550 "L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
21551 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
21552 msgstr ""
21553
21554 #. type: textblock
21555 #: ../rescue/virt-rescue.pod:5
21556 msgid "virt-rescue - Run a rescue shell on a virtual machine"
21557 msgstr ""
21558
21559 #. type: verbatim
21560 #: ../rescue/virt-rescue.pod:9
21561 #, no-wrap
21562 msgid ""
21563 " virt-rescue [--options] -d domname\n"
21564 "\n"
21565 msgstr ""
21566
21567 #. type: verbatim
21568 #: ../rescue/virt-rescue.pod:11
21569 #, no-wrap
21570 msgid ""
21571 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
21572 "\n"
21573 msgstr ""
21574
21575 #. type: verbatim
21576 #: ../rescue/virt-rescue.pod:15
21577 #, no-wrap
21578 msgid ""
21579 " virt-rescue [--options] domname\n"
21580 "\n"
21581 msgstr ""
21582
21583 #. type: verbatim
21584 #: ../rescue/virt-rescue.pod:17
21585 #, no-wrap
21586 msgid ""
21587 " virt-rescue [--options] disk.img [disk.img ...]\n"
21588 "\n"
21589 msgstr ""
21590
21591 #. type: textblock
21592 #: ../rescue/virt-rescue.pod:21
21593 msgid ""
21594 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
21595 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
21596 "you from doing this, but doesn't catch all cases."
21597 msgstr ""
21598
21599 #. type: textblock
21600 #: ../rescue/virt-rescue.pod:25
21601 msgid ""
21602 "However if you use the I<--ro> (read only) option, then you can attach a "
21603 "shell to a live virtual machine.  The results might be strange or "
21604 "inconsistent at times but you won't get disk corruption."
21605 msgstr ""
21606
21607 #. type: textblock
21608 #: ../rescue/virt-rescue.pod:31
21609 msgid ""
21610 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
21611 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
21612 "recovery tools which you can use to examine or rescue a virtual machine or "
21613 "disk image."
21614 msgstr ""
21615
21616 #. type: textblock
21617 #: ../rescue/virt-rescue.pod:36
21618 msgid ""
21619 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
21620 "on disk image(s):"
21621 msgstr ""
21622
21623 #. type: verbatim
21624 #: ../rescue/virt-rescue.pod:39
21625 #, no-wrap
21626 msgid ""
21627 " virt-rescue -d GuestName\n"
21628 "\n"
21629 msgstr ""
21630
21631 #. type: verbatim
21632 #: ../rescue/virt-rescue.pod:41
21633 #, no-wrap
21634 msgid ""
21635 " virt-rescue --ro -a /path/to/disk.img\n"
21636 "\n"
21637 msgstr ""
21638
21639 #. type: verbatim
21640 #: ../rescue/virt-rescue.pod:43
21641 #, no-wrap
21642 msgid ""
21643 " virt-rescue -a /dev/sdc\n"
21644 "\n"
21645 msgstr ""
21646
21647 #. type: textblock
21648 #: ../rescue/virt-rescue.pod:45
21649 msgid "For live VMs you I<must> use the --ro option."
21650 msgstr ""
21651
21652 #. type: textblock
21653 #: ../rescue/virt-rescue.pod:47
21654 msgid ""
21655 "When you run virt-rescue on a virtual machine or disk image, you are placed "
21656 "in an interactive bash shell where you can use many ordinary Linux "
21657 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
21658 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
21659 "is an empty directory called C</sysroot> where you can mount filesystems."
21660 msgstr ""
21661
21662 #. type: textblock
21663 #: ../rescue/virt-rescue.pod:54
21664 msgid ""
21665 "In the example below, we list logical volumes, then choose one to mount "
21666 "under C</sysroot>:"
21667 msgstr ""
21668
21669 #. type: verbatim
21670 #: ../rescue/virt-rescue.pod:57
21671 #, no-wrap
21672 msgid ""
21673 " ><rescue> lvs\n"
21674 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
21675 " lv_root vg_f11x64 -wi-a-   8.83G\n"
21676 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
21677 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
21678 " ><rescue> ls /sysroot\n"
21679 "\n"
21680 msgstr ""
21681
21682 #. type: textblock
21683 #: ../rescue/virt-rescue.pod:64
21684 msgid ""
21685 "If you don't know what filesystems are available on the virtual machine then "
21686 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
21687 msgstr ""
21688
21689 #. type: textblock
21690 #: ../rescue/virt-rescue.pod:70
21691 msgid ""
21692 "Virt-rescue can be used on I<any> disk image file or device, not just a "
21693 "virtual machine.  For example you can use it on a blank file if you want to "
21694 "partition that file (although we would recommend using L<guestfish(1)> "
21695 "instead as it is more suitable for this purpose).  You can even use "
21696 "virt-rescue on things like SD cards."
21697 msgstr ""
21698
21699 #. type: textblock
21700 #: ../rescue/virt-rescue.pod:76
21701 msgid ""
21702 "Virt-rescue does not require root.  You only need to run it as root if you "
21703 "need root to open the disk image."
21704 msgstr ""
21705
21706 #. type: textblock
21707 #: ../rescue/virt-rescue.pod:79
21708 msgid ""
21709 "This tool is just designed for quick interactive hacking on a virtual "
21710 "machine.  For more structured access to a virtual machine disk image, you "
21711 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
21712 "make scripted changes to guests, use L<guestfish(1)>."
21713 msgstr ""
21714
21715 #. type: =item
21716 #: ../rescue/virt-rescue.pod:103
21717 msgid "B<--append kernelopts>"
21718 msgstr ""
21719
21720 #. type: textblock
21721 #: ../rescue/virt-rescue.pod:105
21722 msgid "Pass additional options to the rescue kernel."
21723 msgstr ""
21724
21725 #. type: verbatim
21726 #: ../rescue/virt-rescue.pod:135
21727 #, no-wrap
21728 msgid ""
21729 " virt-rescue --format=raw -a disk.img\n"
21730 "\n"
21731 msgstr ""
21732
21733 #. type: verbatim
21734 #: ../rescue/virt-rescue.pod:139
21735 #, no-wrap
21736 msgid ""
21737 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
21738 "\n"
21739 msgstr ""
21740
21741 #. type: =item
21742 #: ../rescue/virt-rescue.pod:148
21743 msgid "B<-m MB>"
21744 msgstr ""
21745
21746 #. type: =item
21747 #: ../rescue/virt-rescue.pod:150
21748 msgid "B<--memsize MB>"
21749 msgstr ""
21750
21751 #. type: textblock
21752 #: ../rescue/virt-rescue.pod:152
21753 msgid ""
21754 "Change the amount of memory allocated to the rescue system.  The default is "
21755 "set by libguestfs and is small but adequate for running system tools.  The "
21756 "occasional program might need more memory.  The parameter is specified in "
21757 "megabytes."
21758 msgstr ""
21759
21760 #. type: =item
21761 #: ../rescue/virt-rescue.pod:157
21762 msgid "B<--network>"
21763 msgstr ""
21764
21765 #. type: textblock
21766 #: ../rescue/virt-rescue.pod:159
21767 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
21768 msgstr ""
21769
21770 #. type: textblock
21771 #: ../rescue/virt-rescue.pod:165
21772 msgid "Open the image read-only."
21773 msgstr ""
21774
21775 #. type: textblock
21776 #: ../rescue/virt-rescue.pod:175
21777 msgid ""
21778 "Enable SELinux in the rescue appliance.  You should read "
21779 "L<guestfs(3)/SELINUX> before using this option."
21780 msgstr ""
21781
21782 #. type: =item
21783 #: ../rescue/virt-rescue.pod:178
21784 msgid "B<--smp> N"
21785 msgstr ""
21786
21787 #. type: textblock
21788 #: ../rescue/virt-rescue.pod:180
21789 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
21790 msgstr ""
21791
21792 #. type: textblock
21793 #: ../rescue/virt-rescue.pod:198
21794 msgid ""
21795 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
21796 "are done read-write."
21797 msgstr ""
21798
21799 #. type: textblock
21800 #: ../rescue/virt-rescue.pod:211
21801 msgid "Previous versions of virt-rescue allowed you to write either:"
21802 msgstr ""
21803
21804 #. type: verbatim
21805 #: ../rescue/virt-rescue.pod:213
21806 #, no-wrap
21807 msgid ""
21808 " virt-rescue disk.img [disk.img ...]\n"
21809 "\n"
21810 msgstr ""
21811
21812 #. type: verbatim
21813 #: ../rescue/virt-rescue.pod:217
21814 #, no-wrap
21815 msgid ""
21816 " virt-rescue guestname\n"
21817 "\n"
21818 msgstr ""
21819
21820 #. type: =head1
21821 #: ../rescue/virt-rescue.pod:225
21822 msgid "NETWORK"
21823 msgstr ""
21824
21825 #. type: textblock
21826 #: ../rescue/virt-rescue.pod:227
21827 msgid ""
21828 "Adding the I<--network> option enables QEMU user networking in the rescue "
21829 "appliance.  There are some differences between user networking and ordinary "
21830 "networking:"
21831 msgstr ""
21832
21833 #. type: =item
21834 #: ../rescue/virt-rescue.pod:233
21835 msgid "ping does not work"
21836 msgstr ""
21837
21838 #. type: textblock
21839 #: ../rescue/virt-rescue.pod:235
21840 msgid ""
21841 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
21842 "send the ping packets, and because virt-rescue must be able to run as "
21843 "non-root, QEMU user networking is not able to emulate the L<ping(8)> "
21844 "command.  The ping command will appear to resolve addresses but will not be "
21845 "able to send or receive any packets.  This does not mean that the network is "
21846 "not working."
21847 msgstr ""
21848
21849 #. type: =item
21850 #: ../rescue/virt-rescue.pod:242
21851 msgid "cannot receive connections"
21852 msgstr ""
21853
21854 #. type: textblock
21855 #: ../rescue/virt-rescue.pod:244
21856 msgid "QEMU user networking cannot receive incoming connections."
21857 msgstr ""
21858
21859 #. type: =item
21860 #: ../rescue/virt-rescue.pod:246
21861 msgid "making TCP connections"
21862 msgstr ""
21863
21864 #. type: textblock
21865 #: ../rescue/virt-rescue.pod:248
21866 msgid ""
21867 "The virt-rescue appliance needs to be small and so does not include many "
21868 "network tools.  In particular there is no L<telnet(1)> command.  You can "
21869 "make TCP connections from the shell using the magical "
21870 "C</dev/tcp/E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
21871 msgstr ""
21872
21873 #. type: verbatim
21874 #: ../rescue/virt-rescue.pod:253
21875 #, no-wrap
21876 msgid ""
21877 " exec 3<>/dev/tcp/redhat.com/80\n"
21878 " echo \"GET /\" >&3\n"
21879 " cat <&3\n"
21880 "\n"
21881 msgstr ""
21882
21883 #. type: textblock
21884 #: ../rescue/virt-rescue.pod:257
21885 msgid "See L<bash(1)> for more details."
21886 msgstr ""
21887
21888 #. type: textblock
21889 #: ../rescue/virt-rescue.pod:263
21890 msgid ""
21891 "Several environment variables affect virt-rescue.  See "
21892 "L<guestfs(3)/ENVIRONMENT VARIABLES> for the complete list."
21893 msgstr ""
21894
21895 #. type: textblock
21896 #: ../rescue/virt-rescue.pod:290
21897 msgid ""
21898 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
21899 "L<http://libguestfs.org/>."
21900 msgstr ""
21901
21902 #. type: textblock
21903 #: ../resize/virt-resize.pod:5
21904 msgid "virt-resize - Resize a virtual machine disk"
21905 msgstr ""
21906
21907 #. type: verbatim
21908 #: ../resize/virt-resize.pod:9
21909 #, no-wrap
21910 msgid ""
21911 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
21912 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
21913 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
21914 "\n"
21915 msgstr ""
21916
21917 #. type: textblock
21918 #: ../resize/virt-resize.pod:15
21919 msgid ""
21920 "Virt-resize is a tool which can resize a virtual machine disk, making it "
21921 "larger or smaller overall, and resizing or deleting any partitions contained "
21922 "within."
21923 msgstr ""
21924
21925 #. type: textblock
21926 #: ../resize/virt-resize.pod:19
21927 msgid ""
21928 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
21929 "not> be used on live virtual machines - for consistent results, shut the "
21930 "virtual machine down before resizing it."
21931 msgstr ""
21932
21933 #. type: textblock
21934 #: ../resize/virt-resize.pod:23
21935 msgid ""
21936 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
21937 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
21938 msgstr ""
21939
21940 #. type: =item
21941 #: ../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
21942 msgid "1."
21943 msgstr ""
21944
21945 #. type: textblock
21946 #: ../resize/virt-resize.pod:33
21947 msgid ""
21948 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
21949 "fill the extra 5GB of space."
21950 msgstr ""
21951
21952 #. type: verbatim
21953 #: ../resize/virt-resize.pod:36
21954 #, no-wrap
21955 msgid ""
21956 " virt-filesystems --long -h --all -a olddisk\n"
21957 " \n"
21958 msgstr ""
21959
21960 #. type: verbatim
21961 #: ../resize/virt-resize.pod:38
21962 #, no-wrap
21963 msgid ""
21964 " truncate -r olddisk newdisk\n"
21965 " truncate -s +5G newdisk\n"
21966 " \n"
21967 msgstr ""
21968
21969 #. type: verbatim
21970 #: ../resize/virt-resize.pod:41
21971 #, no-wrap
21972 msgid ""
21973 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
21974 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
21975 "\n"
21976 msgstr ""
21977
21978 #. type: =item
21979 #: ../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
21980 msgid "2."
21981 msgstr ""
21982
21983 #. type: textblock
21984 #: ../resize/virt-resize.pod:46
21985 msgid ""
21986 "As above, but make the /boot partition 200MB bigger, while giving the "
21987 "remaining space to /dev/sda2:"
21988 msgstr ""
21989
21990 #. type: verbatim
21991 #: ../resize/virt-resize.pod:49
21992 #, no-wrap
21993 msgid ""
21994 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
21995 "   olddisk newdisk\n"
21996 "\n"
21997 msgstr ""
21998
21999 #. type: =item
22000 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:533 ../sparsify/virt-sparsify.pod:216 ../src/guestfs.pod:486 ../src/guestfs.pod:1436
22001 msgid "3."
22002 msgstr ""
22003
22004 #. type: textblock
22005 #: ../resize/virt-resize.pod:54
22006 msgid ""
22007 "As in the first example, but expand a logical volume as the final step.  "
22008 "This is what you would typically use for Linux guests that use LVM:"
22009 msgstr ""
22010
22011 #. type: verbatim
22012 #: ../resize/virt-resize.pod:58
22013 #, no-wrap
22014 msgid ""
22015 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
22016 "   olddisk newdisk\n"
22017 "\n"
22018 msgstr ""
22019
22020 #. type: =item
22021 #: ../resize/virt-resize.pod:61
22022 msgid "4."
22023 msgstr ""
22024
22025 #. type: textblock
22026 #: ../resize/virt-resize.pod:63
22027 msgid ""
22028 "As in the first example, but the output format will be qcow2 instead of a "
22029 "raw disk:"
22030 msgstr ""
22031
22032 #. type: verbatim
22033 #: ../resize/virt-resize.pod:66
22034 #, no-wrap
22035 msgid ""
22036 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
22037 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
22038 "\n"
22039 msgstr ""
22040
22041 #. type: =head1
22042 #: ../resize/virt-resize.pod:71
22043 msgid "DETAILED USAGE"
22044 msgstr ""
22045
22046 #. type: =head2
22047 #: ../resize/virt-resize.pod:73
22048 msgid "EXPANDING A VIRTUAL MACHINE DISK"
22049 msgstr ""
22050
22051 #. type: =item
22052 #: ../resize/virt-resize.pod:77
22053 msgid "1. Shut down the virtual machine"
22054 msgstr ""
22055
22056 #. type: =item
22057 #: ../resize/virt-resize.pod:79
22058 msgid "2. Locate input disk image"
22059 msgstr ""
22060
22061 #. type: textblock
22062 #: ../resize/virt-resize.pod:81
22063 msgid ""
22064 "Locate the input disk image (ie. the file or device on the host containing "
22065 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
22066 "dumpxml> like this to find the disk image name:"
22067 msgstr ""
22068
22069 #. type: verbatim
22070 #: ../resize/virt-resize.pod:85
22071 #, no-wrap
22072 msgid ""
22073 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
22074 " Found 1 nodes:\n"
22075 " -- NODE --\n"
22076 " <source dev=\"/dev/vg/lv_guest\" />\n"
22077 "\n"
22078 msgstr ""
22079
22080 #. type: =item
22081 #: ../resize/virt-resize.pod:90
22082 msgid "3. Look at current sizing"
22083 msgstr ""
22084
22085 #. type: textblock
22086 #: ../resize/virt-resize.pod:92
22087 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
22088 msgstr ""
22089
22090 #. type: verbatim
22091 #: ../resize/virt-resize.pod:95
22092 #, no-wrap
22093 msgid ""
22094 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
22095 " Name       Type       Size  Parent\n"
22096 " /dev/sda1  partition  101M  /dev/sda\n"
22097 " /dev/sda2  partition  7.9G  /dev/sda\n"
22098 " /dev/sda   device     8.0G  -\n"
22099 "\n"
22100 msgstr ""
22101
22102 #. type: textblock
22103 #: ../resize/virt-resize.pod:101
22104 msgid ""
22105 "(This example is a virtual machine with an 8 GB disk which we would like to "
22106 "expand up to 10 GB)."
22107 msgstr ""
22108
22109 #. type: =item
22110 #: ../resize/virt-resize.pod:104
22111 msgid "4. Create output disk"
22112 msgstr ""
22113
22114 #. type: textblock
22115 #: ../resize/virt-resize.pod:106
22116 msgid ""
22117 "Virt-resize cannot do in-place disk modifications.  You have to have space "
22118 "to store the resized output disk."
22119 msgstr ""
22120
22121 #. type: textblock
22122 #: ../resize/virt-resize.pod:109
22123 msgid "To store the resized disk image in a file, create a file of a suitable size:"
22124 msgstr ""
22125
22126 #. type: verbatim
22127 #: ../resize/virt-resize.pod:112
22128 #, no-wrap
22129 msgid ""
22130 " # rm -f outdisk\n"
22131 " # truncate -s 10G outdisk\n"
22132 "\n"
22133 msgstr ""
22134
22135 #. type: textblock
22136 #: ../resize/virt-resize.pod:115
22137 msgid "Or use L<lvcreate(1)> to create a logical volume:"
22138 msgstr ""
22139
22140 #. type: verbatim
22141 #: ../resize/virt-resize.pod:117
22142 #, no-wrap
22143 msgid ""
22144 " # lvcreate -L 10G -n lv_name vg_name\n"
22145 "\n"
22146 msgstr ""
22147
22148 #. type: textblock
22149 #: ../resize/virt-resize.pod:119
22150 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
22151 msgstr ""
22152
22153 #. type: verbatim
22154 #: ../resize/virt-resize.pod:121
22155 #, no-wrap
22156 msgid ""
22157 " # virsh pool-list\n"
22158 " # virsh vol-create-as poolname newvol 10G\n"
22159 "\n"
22160 msgstr ""
22161
22162 #. type: =item
22163 #: ../resize/virt-resize.pod:124
22164 msgid "5. Resize"
22165 msgstr ""
22166
22167 #. type: textblock
22168 #: ../resize/virt-resize.pod:126
22169 msgid ""
22170 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
22171 "file) and the output disk.  The output disk is the one created in the "
22172 "previous step."
22173 msgstr ""
22174
22175 #. type: verbatim
22176 #: ../resize/virt-resize.pod:130
22177 #, no-wrap
22178 msgid ""
22179 " # virt-resize indisk outdisk\n"
22180 "\n"
22181 msgstr ""
22182
22183 #. type: textblock
22184 #: ../resize/virt-resize.pod:132
22185 msgid ""
22186 "This command just copies disk image C<indisk> to disk image C<outdisk> "
22187 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
22188 "larger, then an extra, empty partition is created at the end of the disk "
22189 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
22190 "error."
22191 msgstr ""
22192
22193 #. type: textblock
22194 #: ../resize/virt-resize.pod:138
22195 msgid ""
22196 "More realistically you'd want to expand existing partitions in the disk "
22197 "image by passing extra options (for the full list see the L</OPTIONS> "
22198 "section below)."
22199 msgstr ""
22200
22201 #. type: textblock
22202 #: ../resize/virt-resize.pod:142
22203 msgid ""
22204 "L</--expand> is the most useful option.  It expands the named partition "
22205 "within the disk to fill any extra space:"
22206 msgstr ""
22207
22208 #. type: verbatim
22209 #: ../resize/virt-resize.pod:145
22210 #, no-wrap
22211 msgid ""
22212 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
22213 "\n"
22214 msgstr ""
22215
22216 #. type: textblock
22217 #: ../resize/virt-resize.pod:147
22218 msgid ""
22219 "(In this case, an extra partition is I<not> created at the end of the disk, "
22220 "because there will be no unused space)."
22221 msgstr ""
22222
22223 #. type: textblock
22224 #: ../resize/virt-resize.pod:150
22225 msgid ""
22226 "L</--resize> is the other commonly used option.  The following would "
22227 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
22228 "rest of the available space:"
22229 msgstr ""
22230
22231 #. type: verbatim
22232 #: ../resize/virt-resize.pod:154
22233 #, no-wrap
22234 msgid ""
22235 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
22236 "     indisk outdisk\n"
22237 "\n"
22238 msgstr ""
22239
22240 #. type: textblock
22241 #: ../resize/virt-resize.pod:157
22242 msgid ""
22243 "If the expanded partition in the image contains a filesystem or LVM PV, then "
22244 "if virt-resize knows how, it will resize the contents, the equivalent of "
22245 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
22246 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
22247 "filesystems, so you would have to online resize them after booting the "
22248 "guest."
22249 msgstr ""
22250
22251 #. type: textblock
22252 #: ../resize/virt-resize.pod:164
22253 msgid "Other options are covered below."
22254 msgstr ""
22255
22256 #. type: =item
22257 #: ../resize/virt-resize.pod:166
22258 msgid "6. Test"
22259 msgstr ""
22260
22261 #. type: textblock
22262 #: ../resize/virt-resize.pod:168
22263 msgid "Thoroughly test the new disk image I<before> discarding the old one."
22264 msgstr ""
22265
22266 #. type: textblock
22267 #: ../resize/virt-resize.pod:170
22268 msgid "If you are using libvirt, edit the XML to point at the new disk:"
22269 msgstr ""
22270
22271 #. type: verbatim
22272 #: ../resize/virt-resize.pod:172
22273 #, no-wrap
22274 msgid ""
22275 " # virsh edit guestname\n"
22276 "\n"
22277 msgstr ""
22278
22279 #. type: textblock
22280 #: ../resize/virt-resize.pod:174
22281 msgid ""
22282 "Change E<lt>source ...E<gt>, see "
22283 "L<http://libvirt.org/formatdomain.html#elementsDisks>"
22284 msgstr ""
22285
22286 #. type: textblock
22287 #: ../resize/virt-resize.pod:177
22288 msgid "Then start up the domain with the new, resized disk:"
22289 msgstr ""
22290
22291 #. type: verbatim
22292 #: ../resize/virt-resize.pod:179
22293 #, no-wrap
22294 msgid ""
22295 " # virsh start guestname\n"
22296 "\n"
22297 msgstr ""
22298
22299 #. type: textblock
22300 #: ../resize/virt-resize.pod:181
22301 msgid ""
22302 "and check that it still works.  See also the L</NOTES> section below for "
22303 "additional information."
22304 msgstr ""
22305
22306 #. type: =item
22307 #: ../resize/virt-resize.pod:184
22308 msgid "7. Resize LVs etc inside the guest"
22309 msgstr ""
22310
22311 #. type: textblock
22312 #: ../resize/virt-resize.pod:186
22313 msgid "(This can also be done offline using L<guestfish(1)>)"
22314 msgstr ""
22315
22316 #. type: textblock
22317 #: ../resize/virt-resize.pod:188
22318 msgid ""
22319 "Once the guest has booted you should see the new space available, at least "
22320 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
22321 "may need to resize LVs inside PVs, and also resize filesystem types that "
22322 "virt-resize does not know how to expand."
22323 msgstr ""
22324
22325 #. type: =head2
22326 #: ../resize/virt-resize.pod:195
22327 msgid "SHRINKING A VIRTUAL MACHINE DISK"
22328 msgstr ""
22329
22330 #. type: textblock
22331 #: ../resize/virt-resize.pod:197
22332 msgid ""
22333 "Shrinking is somewhat more complex than expanding, and only an overview is "
22334 "given here."
22335 msgstr ""
22336
22337 #. type: textblock
22338 #: ../resize/virt-resize.pod:200
22339 msgid ""
22340 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
22341 "filesystems).  The user has to shrink content before passing the disk image "
22342 "to virt-resize, and virt-resize will check that the content has been shrunk "
22343 "properly."
22344 msgstr ""
22345
22346 #. type: textblock
22347 #: ../resize/virt-resize.pod:205
22348 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
22349 msgstr ""
22350
22351 #. type: textblock
22352 #: ../resize/virt-resize.pod:207
22353 msgid ""
22354 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
22355 "steps 3 and 4 above to allocate a new disk image."
22356 msgstr ""
22357
22358 #. type: textblock
22359 #: ../resize/virt-resize.pod:210
22360 msgid "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
22361 msgstr ""
22362
22363 #. type: =head2
22364 #: ../resize/virt-resize.pod:213
22365 msgid "IGNORING OR DELETING PARTITIONS"
22366 msgstr ""
22367
22368 #. type: textblock
22369 #: ../resize/virt-resize.pod:215
22370 msgid ""
22371 "virt-resize also gives a convenient way to ignore or delete partitions when "
22372 "copying from the input disk to the output disk.  Ignoring a partition speeds "
22373 "up the copy where you don't care about the existing contents of a "
22374 "partition.  Deleting a partition removes it completely, but note that it "
22375 "also renumbers any partitions after the one which is deleted, which can "
22376 "leave some guests unbootable."
22377 msgstr ""
22378
22379 #. type: =head2
22380 #: ../resize/virt-resize.pod:222
22381 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
22382 msgstr ""
22383
22384 #. type: textblock
22385 #: ../resize/virt-resize.pod:224
22386 msgid ""
22387 "If the input disk is in qcow2 format, then you may prefer that the output is "
22388 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
22389 "the fly.  The output format is simply determined by the format of the empty "
22390 "output container that you provide.  Thus to create qcow2 output, use:"
22391 msgstr ""
22392
22393 #. type: verbatim
22394 #: ../resize/virt-resize.pod:230
22395 #, no-wrap
22396 msgid ""
22397 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
22398 "\n"
22399 msgstr ""
22400
22401 #. type: textblock
22402 #: ../resize/virt-resize.pod:232
22403 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
22404 msgstr ""
22405
22406 #. type: textblock
22407 #: ../resize/virt-resize.pod:234
22408 msgid "Similarly, to get non-sparse raw output use:"
22409 msgstr ""
22410
22411 #. type: verbatim
22412 #: ../resize/virt-resize.pod:236
22413 #, no-wrap
22414 msgid ""
22415 " fallocate -l size outdisk\n"
22416 "\n"
22417 msgstr ""
22418
22419 #. type: textblock
22420 #: ../resize/virt-resize.pod:238
22421 msgid ""
22422 "(on older systems that don't have the L<fallocate(1)> command use C<dd "
22423 "if=/dev/zero of=outdisk bs=1M count=..>)"
22424 msgstr ""
22425
22426 #. type: textblock
22427 #: ../resize/virt-resize.pod:247 ../sparsify/virt-sparsify.pod:105
22428 msgid "Display help."
22429 msgstr ""
22430
22431 #. type: =item
22432 #: ../resize/virt-resize.pod:249
22433 msgid "B<-d>"
22434 msgstr ""
22435
22436 #. type: =item
22437 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177 ../tools/virt-win-reg.pl:120
22438 msgid "B<--debug>"
22439 msgstr ""
22440
22441 #. type: textblock
22442 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
22443 msgid "Enable debugging messages."
22444 msgstr ""
22445
22446 #. type: =item
22447 #: ../resize/virt-resize.pod:255
22448 msgid "B<--delete part>"
22449 msgstr ""
22450
22451 #. type: textblock
22452 #: ../resize/virt-resize.pod:257
22453 msgid ""
22454 "Delete the named partition.  It would be more accurate to describe this as "
22455 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
22456 "the original disk image is left intact."
22457 msgstr ""
22458
22459 #. type: textblock
22460 #: ../resize/virt-resize.pod:261
22461 msgid ""
22462 "Note that when you delete a partition, then anything contained in the "
22463 "partition is also deleted.  Furthermore, this causes any partitions that "
22464 "come after to be I<renumbered>, which can easily make your guest unbootable."
22465 msgstr ""
22466
22467 #. type: textblock
22468 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327 ../resize/virt-resize.pod:454 ../sparsify/virt-sparsify.pod:145
22469 msgid "You can give this option multiple times."
22470 msgstr ""
22471
22472 #. type: =item
22473 #: ../resize/virt-resize.pod:268
22474 msgid "B<--expand part>"
22475 msgstr ""
22476
22477 #. type: textblock
22478 #: ../resize/virt-resize.pod:270
22479 msgid ""
22480 "Expand the named partition so it uses up all extra space (space left over "
22481 "after any other resize changes that you request have been done)."
22482 msgstr ""
22483
22484 #. type: textblock
22485 #: ../resize/virt-resize.pod:273
22486 msgid ""
22487 "If virt-resize knows how, it will expand the direct content of the "
22488 "partition.  For example, if the partition is an LVM PV, it will expand the "
22489 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
22490 "content it doesn't know about alone."
22491 msgstr ""
22492
22493 #. type: textblock
22494 #: ../resize/virt-resize.pod:278
22495 msgid "Currently virt-resize can resize:"
22496 msgstr ""
22497
22498 #. type: textblock
22499 #: ../resize/virt-resize.pod:284
22500 msgid "ext2, ext3 and ext4 filesystems."
22501 msgstr ""
22502
22503 #. type: textblock
22504 #: ../resize/virt-resize.pod:288
22505 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
22506 msgstr ""
22507
22508 #. type: textblock
22509 #: ../resize/virt-resize.pod:290
22510 msgid ""
22511 "The filesystem must have been shut down consistently last time it was used.  "
22512 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
22513 "consistency check, so at the first boot after resizing Windows will check "
22514 "the disk."
22515 msgstr ""
22516
22517 #. type: textblock
22518 #: ../resize/virt-resize.pod:297
22519 msgid ""
22520 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
22521 "inside the PV, but see the I<--LV-expand> option.  The user could also "
22522 "resize LVs as desired after boot."
22523 msgstr ""
22524
22525 #. type: textblock
22526 #: ../resize/virt-resize.pod:303
22527 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
22528 msgstr ""
22529
22530 #. type: textblock
22531 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:482
22532 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
22533 msgstr ""
22534
22535 #. type: =item
22536 #: ../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
22537 msgid "B<--format> raw"
22538 msgstr ""
22539
22540 #. type: textblock
22541 #: ../resize/virt-resize.pod:311 ../sparsify/virt-sparsify.pod:129
22542 msgid ""
22543 "Specify the format of the input disk image.  If this flag is not given then "
22544 "it is auto-detected from the image itself."
22545 msgstr ""
22546
22547 #. type: textblock
22548 #: ../resize/virt-resize.pod:317
22549 msgid ""
22550 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
22551 "AND NON-SPARSE RAW FORMATS>."
22552 msgstr ""
22553
22554 #. type: =item
22555 #: ../resize/virt-resize.pod:320
22556 msgid "B<--ignore part>"
22557 msgstr ""
22558
22559 #. type: textblock
22560 #: ../resize/virt-resize.pod:322
22561 msgid ""
22562 "Ignore the named partition.  Effectively this means the partition is "
22563 "allocated on the destination disk, but the content is not copied across from "
22564 "the source disk.  The content of the partition will be blank (all zero "
22565 "bytes)."
22566 msgstr ""
22567
22568 #. type: =item
22569 #: ../resize/virt-resize.pod:329
22570 msgid "B<--LV-expand logvol>"
22571 msgstr ""
22572
22573 #. type: textblock
22574 #: ../resize/virt-resize.pod:331
22575 msgid ""
22576 "This takes the logical volume and, as a final step, expands it to fill all "
22577 "the space available in its volume group.  A typical usage, assuming a Linux "
22578 "guest with a single PV C</dev/sda2> and a root device called "
22579 "C</dev/vg_guest/lv_root> would be:"
22580 msgstr ""
22581
22582 #. type: verbatim
22583 #: ../resize/virt-resize.pod:336
22584 #, no-wrap
22585 msgid ""
22586 " virt-resize indisk outdisk \\\n"
22587 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
22588 "\n"
22589 msgstr ""
22590
22591 #. type: textblock
22592 #: ../resize/virt-resize.pod:339
22593 msgid ""
22594 "This would first expand the partition (and PV), and then expand the root "
22595 "device to fill the extra space in the PV."
22596 msgstr ""
22597
22598 #. type: textblock
22599 #: ../resize/virt-resize.pod:342
22600 msgid ""
22601 "The contents of the LV are also resized if virt-resize knows how to do "
22602 "that.  You can stop virt-resize from trying to expand the content by using "
22603 "the option I<--no-expand-content>."
22604 msgstr ""
22605
22606 #. type: textblock
22607 #: ../resize/virt-resize.pod:346
22608 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
22609 msgstr ""
22610
22611 #. type: textblock
22612 #: ../resize/virt-resize.pod:348
22613 msgid ""
22614 "You can give this option multiple times, I<but> it doesn't make sense to do "
22615 "this unless the logical volumes you specify are all in different volume "
22616 "groups."
22617 msgstr ""
22618
22619 #. type: =item
22620 #: ../resize/virt-resize.pod:352 ../sparsify/virt-sparsify.pod:147
22621 msgid "B<--machine-readable>"
22622 msgstr ""
22623
22624 #. type: textblock
22625 #: ../resize/virt-resize.pod:354 ../sparsify/virt-sparsify.pod:149
22626 msgid ""
22627 "This option is used to make the output more machine friendly when being "
22628 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
22629 msgstr ""
22630
22631 #. type: =item
22632 #: ../resize/virt-resize.pod:360
22633 msgid "B<--dryrun>"
22634 msgstr ""
22635
22636 #. type: textblock
22637 #: ../resize/virt-resize.pod:362
22638 msgid "Print a summary of what would be done, but don't do anything."
22639 msgstr ""
22640
22641 #. type: =item
22642 #: ../resize/virt-resize.pod:364
22643 msgid "B<--no-copy-boot-loader>"
22644 msgstr ""
22645
22646 #. type: textblock
22647 #: ../resize/virt-resize.pod:366
22648 msgid ""
22649 "By default, virt-resize copies over some sectors at the start of the disk "
22650 "(up to the beginning of the first partition).  Commonly these sectors "
22651 "contain the Master Boot Record (MBR) and the boot loader, and are required "
22652 "in order for the guest to boot correctly."
22653 msgstr ""
22654
22655 #. type: textblock
22656 #: ../resize/virt-resize.pod:371
22657 msgid ""
22658 "If you specify this flag, then this initial copy is not done.  You may need "
22659 "to reinstall the boot loader in this case."
22660 msgstr ""
22661
22662 #. type: =item
22663 #: ../resize/virt-resize.pod:374
22664 msgid "B<--no-extra-partition>"
22665 msgstr ""
22666
22667 #. type: textblock
22668 #: ../resize/virt-resize.pod:376
22669 msgid ""
22670 "By default, virt-resize creates an extra partition if there is any extra, "
22671 "unused space after all resizing has happened.  Use this option to prevent "
22672 "the extra partition from being created.  If you do this then the extra space "
22673 "will be inaccessible until you run fdisk, parted, or some other partitioning "
22674 "tool in the guest."
22675 msgstr ""
22676
22677 #. type: textblock
22678 #: ../resize/virt-resize.pod:382
22679 msgid ""
22680 "Note that if the surplus space is smaller than 10 MB, no extra partition "
22681 "will be created."
22682 msgstr ""
22683
22684 #. type: =item
22685 #: ../resize/virt-resize.pod:385
22686 msgid "B<--no-expand-content>"
22687 msgstr ""
22688
22689 #. type: textblock
22690 #: ../resize/virt-resize.pod:387
22691 msgid ""
22692 "By default, virt-resize will try to expand the direct contents of "
22693 "partitions, if it knows how (see I<--expand> option above)."
22694 msgstr ""
22695
22696 #. type: textblock
22697 #: ../resize/virt-resize.pod:390
22698 msgid ""
22699 "If you give the I<--no-expand-content> option then virt-resize will not "
22700 "attempt this."
22701 msgstr ""
22702
22703 #. type: =item
22704 #: ../resize/virt-resize.pod:393
22705 msgid "B<--ntfsresize-force>"
22706 msgstr ""
22707
22708 #. type: textblock
22709 #: ../resize/virt-resize.pod:395
22710 msgid ""
22711 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
22712 "the NTFS disk is marked as needing a consistency check.  You have to use "
22713 "this option if you want to resize a Windows guest multiple times without "
22714 "booting into Windows between each resize."
22715 msgstr ""
22716
22717 #. type: =item
22718 #: ../resize/virt-resize.pod:401
22719 msgid "B<--output-format> raw"
22720 msgstr ""
22721
22722 #. type: textblock
22723 #: ../resize/virt-resize.pod:403
22724 msgid ""
22725 "Specify the format of the output disk image.  If this flag is not given then "
22726 "it is auto-detected from the image itself."
22727 msgstr ""
22728
22729 #. type: textblock
22730 #: ../resize/virt-resize.pod:409
22731 msgid ""
22732 "Note that this option I<does not create> the output format.  This option "
22733 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
22734 "need to create the output disk with the right format.  See L</QCOW2 AND "
22735 "NON-SPARSE RAW FORMATS>."
22736 msgstr ""
22737
22738 #. type: textblock
22739 #: ../resize/virt-resize.pod:418
22740 msgid "Don't print the summary."
22741 msgstr ""
22742
22743 #. type: =item
22744 #: ../resize/virt-resize.pod:420
22745 msgid "B<--resize part=size>"
22746 msgstr ""
22747
22748 #. type: textblock
22749 #: ../resize/virt-resize.pod:422
22750 msgid ""
22751 "Resize the named partition (expanding or shrinking it) so that it has the "
22752 "given size."
22753 msgstr ""
22754
22755 #. type: textblock
22756 #: ../resize/virt-resize.pod:425
22757 msgid ""
22758 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
22759 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
22760 "size; or as a relative number or percentage.  For example:"
22761 msgstr ""
22762
22763 #. type: verbatim
22764 #: ../resize/virt-resize.pod:431
22765 #, no-wrap
22766 msgid ""
22767 " --resize /dev/sda2=10G\n"
22768 "\n"
22769 msgstr ""
22770
22771 #. type: verbatim
22772 #: ../resize/virt-resize.pod:433
22773 #, no-wrap
22774 msgid ""
22775 " --resize /dev/sda4=90%\n"
22776 "\n"
22777 msgstr ""
22778
22779 #. type: verbatim
22780 #: ../resize/virt-resize.pod:435
22781 #, no-wrap
22782 msgid ""
22783 " --resize /dev/sda2=+1G\n"
22784 "\n"
22785 msgstr ""
22786
22787 #. type: verbatim
22788 #: ../resize/virt-resize.pod:437
22789 #, no-wrap
22790 msgid ""
22791 " --resize /dev/sda2=-200M\n"
22792 "\n"
22793 msgstr ""
22794
22795 #. type: verbatim
22796 #: ../resize/virt-resize.pod:439
22797 #, no-wrap
22798 msgid ""
22799 " --resize /dev/sda1=+128K\n"
22800 "\n"
22801 msgstr ""
22802
22803 #. type: verbatim
22804 #: ../resize/virt-resize.pod:441
22805 #, no-wrap
22806 msgid ""
22807 " --resize /dev/sda1=+10%\n"
22808 "\n"
22809 msgstr ""
22810
22811 #. type: verbatim
22812 #: ../resize/virt-resize.pod:443
22813 #, no-wrap
22814 msgid ""
22815 " --resize /dev/sda1=-10%\n"
22816 "\n"
22817 msgstr ""
22818
22819 #. type: textblock
22820 #: ../resize/virt-resize.pod:445
22821 msgid ""
22822 "You can increase the size of any partition.  Virt-resize will expand the "
22823 "direct content of the partition if it knows how (see I<--expand> below)."
22824 msgstr ""
22825
22826 #. type: textblock
22827 #: ../resize/virt-resize.pod:449
22828 msgid ""
22829 "You can only I<decrease> the size of partitions that contain filesystems or "
22830 "PVs which have already been shrunk.  Virt-resize will check this has been "
22831 "done before proceeding, or else will print an error (see also "
22832 "I<--resize-force>)."
22833 msgstr ""
22834
22835 #. type: =item
22836 #: ../resize/virt-resize.pod:456
22837 msgid "B<--resize-force part=size>"
22838 msgstr ""
22839
22840 #. type: textblock
22841 #: ../resize/virt-resize.pod:458
22842 msgid ""
22843 "This is the same as I<--resize> except that it will let you decrease the "
22844 "size of any partition.  Generally this means you will lose any data which "
22845 "was at the end of the partition you shrink, but you may not care about that "
22846 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
22847 "as a swap partition)."
22848 msgstr ""
22849
22850 #. type: textblock
22851 #: ../resize/virt-resize.pod:464
22852 msgid "See also the I<--ignore> option."
22853 msgstr ""
22854
22855 #. type: =item
22856 #: ../resize/virt-resize.pod:466
22857 msgid "B<--shrink part>"
22858 msgstr ""
22859
22860 #. type: textblock
22861 #: ../resize/virt-resize.pod:468
22862 msgid ""
22863 "Shrink the named partition until the overall disk image fits in the "
22864 "destination.  The named partition B<must> contain a filesystem or PV which "
22865 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
22866 "online tools).  Virt-resize will check this and give an error if it has not "
22867 "been done."
22868 msgstr ""
22869
22870 #. type: textblock
22871 #: ../resize/virt-resize.pod:474
22872 msgid ""
22873 "The amount by which the overall disk must be shrunk (after carrying out all "
22874 "other operations requested by the user) is called the \"deficit\".  For "
22875 "example, a straight copy (assume no other operations)  from a 5GB disk image "
22876 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
22877 "would give an error unless the user specified a partition to shrink and that "
22878 "partition had more than a gigabyte of free space."
22879 msgstr ""
22880
22881 #. type: =head1
22882 #: ../resize/virt-resize.pod:492 ../sparsify/virt-sparsify.pod:177
22883 msgid "MACHINE READABLE OUTPUT"
22884 msgstr ""
22885
22886 #. type: textblock
22887 #: ../resize/virt-resize.pod:494
22888 msgid ""
22889 "The I<--machine-readable> option can be used to make the output more machine "
22890 "friendly, which is useful when calling virt-resize from other programs, GUIs "
22891 "etc."
22892 msgstr ""
22893
22894 #. type: textblock
22895 #: ../resize/virt-resize.pod:498 ../sparsify/virt-sparsify.pod:183
22896 msgid "There are two ways to use this option."
22897 msgstr ""
22898
22899 #. type: textblock
22900 #: ../resize/virt-resize.pod:500
22901 msgid ""
22902 "Firstly use the option on its own to query the capabilities of the "
22903 "virt-resize binary.  Typical output looks like this:"
22904 msgstr ""
22905
22906 #. type: verbatim
22907 #: ../resize/virt-resize.pod:503
22908 #, no-wrap
22909 msgid ""
22910 " $ virt-resize --machine-readable\n"
22911 " virt-resize\n"
22912 " ntfsresize-force\n"
22913 " 32bitok\n"
22914 " ntfs\n"
22915 " btrfs\n"
22916 "\n"
22917 msgstr ""
22918
22919 #. type: textblock
22920 #: ../resize/virt-resize.pod:510 ../sparsify/virt-sparsify.pod:193
22921 msgid ""
22922 "A list of features is printed, one per line, and the program exits with "
22923 "status 0."
22924 msgstr ""
22925
22926 #. type: textblock
22927 #: ../resize/virt-resize.pod:513 ../sparsify/virt-sparsify.pod:196
22928 msgid ""
22929 "Secondly use the option in conjunction with other options to make the "
22930 "regular program output more machine friendly."
22931 msgstr ""
22932
22933 #. type: textblock
22934 #: ../resize/virt-resize.pod:516 ../sparsify/virt-sparsify.pod:199
22935 msgid "At the moment this means:"
22936 msgstr ""
22937
22938 #. type: textblock
22939 #: ../resize/virt-resize.pod:522 ../sparsify/virt-sparsify.pod:205
22940 msgid ""
22941 "Progress bar messages can be parsed from stdout by looking for this regular "
22942 "expression:"
22943 msgstr ""
22944
22945 #. type: verbatim
22946 #: ../resize/virt-resize.pod:525 ../sparsify/virt-sparsify.pod:208
22947 #, no-wrap
22948 msgid ""
22949 " ^[0-9]+/[0-9]+$\n"
22950 "\n"
22951 msgstr ""
22952
22953 #. type: textblock
22954 #: ../resize/virt-resize.pod:529 ../sparsify/virt-sparsify.pod:212
22955 msgid ""
22956 "The calling program should treat messages sent to stdout (except for "
22957 "progress bar messages) as status messages.  They can be logged and/or "
22958 "displayed to the user."
22959 msgstr ""
22960
22961 #. type: textblock
22962 #: ../resize/virt-resize.pod:535
22963 msgid ""
22964 "The calling program should treat messages sent to stderr as error messages.  "
22965 "In addition, virt-resize exits with a non-zero status code if there was a "
22966 "fatal error."
22967 msgstr ""
22968
22969 #. type: textblock
22970 #: ../resize/virt-resize.pod:541
22971 msgid ""
22972 "Versions of the program prior to 1.13.9 did not support the "
22973 "I<--machine-readable> option and will return an error."
22974 msgstr ""
22975
22976 #. type: =head2
22977 #: ../resize/virt-resize.pod:546
22978 msgid "\"Partition 1 does not end on cylinder boundary.\""
22979 msgstr ""
22980
22981 #. type: textblock
22982 #: ../resize/virt-resize.pod:548
22983 msgid ""
22984 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
22985 "means the partitions will not be aligned to the ancient CHS geometry.  "
22986 "However CHS geometry is meaningless for disks manufactured since the early "
22987 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
22988 "cylinders is not required by any modern operating system."
22989 msgstr ""
22990
22991 #. type: =head2
22992 #: ../resize/virt-resize.pod:555
22993 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
22994 msgstr ""
22995
22996 #. type: textblock
22997 #: ../resize/virt-resize.pod:557
22998 msgid ""
22999 "In Windows Vista and later versions, Microsoft switched to using a separate "
23000 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
23001 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
23002 "the boot partition.  Doing so seems to break the guest completely.  However "
23003 "expanding the second partition (ie. C: drive) should work."
23004 msgstr ""
23005
23006 #. type: textblock
23007 #: ../resize/virt-resize.pod:564
23008 msgid ""
23009 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
23010 "NTFS partitions have been expanded.  This is just a safety check and (unless "
23011 "it find errors) is nothing to worry about."
23012 msgstr ""
23013
23014 #. type: =head2
23015 #: ../resize/virt-resize.pod:568
23016 msgid "GUEST BOOT STUCK AT \"GRUB\""
23017 msgstr ""
23018
23019 #. type: textblock
23020 #: ../resize/virt-resize.pod:570
23021 msgid ""
23022 "If a Linux guest does not boot after resizing, and the boot is stuck after "
23023 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
23024 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
23025 "although we think is to do with partition alignment."
23026 msgstr ""
23027
23028 #. type: verbatim
23029 #: ../resize/virt-resize.pod:575
23030 #, no-wrap
23031 msgid ""
23032 " guestfish -i -a newdisk\n"
23033 " ><fs> cat /boot/grub/device.map\n"
23034 " # check the contents of this file are sensible or\n"
23035 " # edit the file if necessary\n"
23036 " ><fs> grub-install / /dev/vda\n"
23037 " ><fs> exit\n"
23038 "\n"
23039 msgstr ""
23040
23041 #. type: textblock
23042 #: ../resize/virt-resize.pod:582
23043 msgid ""
23044 "For more flexible guest reconfiguration, including if you need to specify "
23045 "other parameters to grub-install, use L<virt-rescue(1)>."
23046 msgstr ""
23047
23048 #. type: =head1
23049 #: ../resize/virt-resize.pod:585
23050 msgid "ALTERNATIVE TOOLS"
23051 msgstr ""
23052
23053 #. type: textblock
23054 #: ../resize/virt-resize.pod:587
23055 msgid ""
23056 "There are several proprietary tools for resizing partitions.  We won't "
23057 "mention any here."
23058 msgstr ""
23059
23060 #. type: textblock
23061 #: ../resize/virt-resize.pod:590
23062 msgid ""
23063 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
23064 "operations on disk images.  They can resize and move partitions, but I don't "
23065 "think they can do anything with the contents, and they certainly don't "
23066 "understand LVM."
23067 msgstr ""
23068
23069 #. type: textblock
23070 #: ../resize/virt-resize.pod:595
23071 msgid ""
23072 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
23073 "but at a much lower level.  You will probably end up hand-calculating sector "
23074 "offsets, which is something that virt-resize was designed to avoid.  If you "
23075 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
23076 "I<--debug> flag."
23077 msgstr ""
23078
23079 #. type: textblock
23080 #: ../resize/virt-resize.pod:615
23081 msgid ""
23082 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, "
23083 "L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, "
23084 "L<ntfsresize(8)>, L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, "
23085 "L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, "
23086 "L<virt-sparsify(1)>, L<http://libguestfs.org/>."
23087 msgstr ""
23088
23089 #. type: textblock
23090 #: ../ruby/examples/guestfs-ruby.pod:5
23091 msgid "guestfs-ruby - How to use libguestfs from Ruby"
23092 msgstr ""
23093
23094 #. type: verbatim
23095 #: ../ruby/examples/guestfs-ruby.pod:9
23096 #, no-wrap
23097 msgid ""
23098 " require 'guestfs'\n"
23099 " g = Guestfs::Guestfs.new()\n"
23100 " g.add_drive_opts(\"disk.img\",\n"
23101 "                  :readonly => 1, :format => \"raw\")\n"
23102 " g.launch()\n"
23103 "\n"
23104 msgstr ""
23105
23106 #. type: textblock
23107 #: ../ruby/examples/guestfs-ruby.pod:17
23108 msgid ""
23109 "This manual page documents how to call libguestfs from the Ruby programming "
23110 "language.  This page just documents the differences from the C API and gives "
23111 "some examples.  If you are not familiar with using libguestfs, you also need "
23112 "to read L<guestfs(3)>."
23113 msgstr ""
23114
23115 #. type: textblock
23116 #: ../ruby/examples/guestfs-ruby.pod:24
23117 msgid ""
23118 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
23119 "This has a single parameter which is the error message (a string)."
23120 msgstr ""
23121
23122 #. type: textblock
23123 #: ../ruby/examples/guestfs-ruby.pod:38
23124 msgid ""
23125 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
23126 "L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
23127 "L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
23128 msgstr ""
23129
23130 #. type: textblock
23131 #: ../sparsify/virt-sparsify.pod:5
23132 msgid "virt-sparsify - Make a virtual machine disk sparse"
23133 msgstr ""
23134
23135 #. type: verbatim
23136 #: ../sparsify/virt-sparsify.pod:9
23137 #, no-wrap
23138 msgid ""
23139 " virt-sparsify [--options] indisk outdisk\n"
23140 "\n"
23141 msgstr ""
23142
23143 #. type: textblock
23144 #: ../sparsify/virt-sparsify.pod:13
23145 msgid ""
23146 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
23147 "image) sparse a.k.a. thin-provisioned.  This means that free space within "
23148 "the disk image can be converted back to free space on the host."
23149 msgstr ""
23150
23151 #. type: textblock
23152 #: ../sparsify/virt-sparsify.pod:18
23153 msgid ""
23154 "Virt-sparsify can locate and sparsify free space in most filesystems "
23155 "(eg. ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
23156 msgstr ""
23157
23158 #. type: textblock
23159 #: ../sparsify/virt-sparsify.pod:21
23160 msgid ""
23161 "Virt-sparsify can also convert between some disk formats, for example "
23162 "converting a raw disk image to a thin-provisioned qcow2 image."
23163 msgstr ""
23164
23165 #. type: textblock
23166 #: ../sparsify/virt-sparsify.pod:24
23167 msgid ""
23168 "Virt-sparsify can operate on any disk image, not just ones from virtual "
23169 "machines.  If a virtual machine has more than one attached disk, you must "
23170 "sparsify each one separately."
23171 msgstr ""
23172
23173 #. type: =head2
23174 #: ../sparsify/virt-sparsify.pod:28
23175 msgid "IMPORTANT LIMITATIONS"
23176 msgstr ""
23177
23178 #. type: textblock
23179 #: ../sparsify/virt-sparsify.pod:34
23180 msgid ""
23181 "Virt-sparsify does not do in-place modifications.  It copies from a source "
23182 "image to a destination image, leaving the source unchanged.  I<Check that "
23183 "the sparsification was successful before deleting the source image>."
23184 msgstr ""
23185
23186 #. type: textblock
23187 #: ../sparsify/virt-sparsify.pod:41
23188 msgid "The virtual machine I<must be shut down> before using this tool."
23189 msgstr ""
23190
23191 #. type: textblock
23192 #: ../sparsify/virt-sparsify.pod:45
23193 msgid ""
23194 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
23195 "(1 temporary copy + 1 destination image).  This is in the worst case and "
23196 "usually much less space is required."
23197 msgstr ""
23198
23199 #. type: textblock
23200 #: ../sparsify/virt-sparsify.pod:51
23201 msgid "Virt-sparsify cannot resize disk images.  To do that, use L<virt-resize(1)>."
23202 msgstr ""
23203
23204 #. type: textblock
23205 #: ../sparsify/virt-sparsify.pod:56
23206 msgid "Virt-sparsify cannot handle encrypted disks."
23207 msgstr ""
23208
23209 #. type: textblock
23210 #: ../sparsify/virt-sparsify.pod:60
23211 msgid ""
23212 "Virt-sparsify cannot yet sparsify the space between partitions.  Note that "
23213 "this space is often used for critical items like bootloaders so it's not "
23214 "really unused."
23215 msgstr ""
23216
23217 #. type: textblock
23218 #: ../sparsify/virt-sparsify.pod:66
23219 msgid ""
23220 "Virt-sparsify does not yet know how to sparsify swapspace.  It is not safe "
23221 "to do this unless we can be sure there is no hibernation data, so at the "
23222 "moment swap partitions are ignored."
23223 msgstr ""
23224
23225 #. type: textblock
23226 #: ../sparsify/virt-sparsify.pod:72
23227 msgid ""
23228 "You may also want to read the manual pages for the associated tools "
23229 "L<virt-filesystems(1)> and L<virt-df(1)> before starting."
23230 msgstr ""
23231
23232 #. type: textblock
23233 #: ../sparsify/virt-sparsify.pod:77
23234 msgid "Typical usage is:"
23235 msgstr ""
23236
23237 #. type: verbatim
23238 #: ../sparsify/virt-sparsify.pod:79
23239 #, no-wrap
23240 msgid ""
23241 " virt-sparsify indisk outdisk\n"
23242 "\n"
23243 msgstr ""
23244
23245 #. type: textblock
23246 #: ../sparsify/virt-sparsify.pod:81
23247 msgid ""
23248 "which copies C<indisk> to C<outdisk>, making the output sparse.  C<outdisk> "
23249 "is created, or overwritten if it already exists.  The format of the input "
23250 "disk is detected (eg. qcow2) and the same format is used for the output "
23251 "disk."
23252 msgstr ""
23253
23254 #. type: textblock
23255 #: ../sparsify/virt-sparsify.pod:86
23256 msgid "To convert between formats, use the I<--convert> option:"
23257 msgstr ""
23258
23259 #. type: verbatim
23260 #: ../sparsify/virt-sparsify.pod:88
23261 #, no-wrap
23262 msgid ""
23263 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
23264 "\n"
23265 msgstr ""
23266
23267 #. type: textblock
23268 #: ../sparsify/virt-sparsify.pod:90
23269 msgid ""
23270 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
23271 "can find within the source disk image.  You can get it to ignore (don't zero "
23272 "free space on) certain filesystems by doing:"
23273 msgstr ""
23274
23275 #. type: verbatim
23276 #: ../sparsify/virt-sparsify.pod:94
23277 #, no-wrap
23278 msgid ""
23279 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
23280 "\n"
23281 msgstr ""
23282
23283 #. type: textblock
23284 #: ../sparsify/virt-sparsify.pod:96
23285 msgid "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
23286 msgstr ""
23287
23288 #. type: =item
23289 #: ../sparsify/virt-sparsify.pod:107
23290 msgid "B<--convert> raw"
23291 msgstr ""
23292
23293 #. type: =item
23294 #: ../sparsify/virt-sparsify.pod:109
23295 msgid "B<--convert> qcow2"
23296 msgstr ""
23297
23298 #. type: =item
23299 #: ../sparsify/virt-sparsify.pod:111
23300 msgid "B<--convert> [other formats]"
23301 msgstr ""
23302
23303 #. type: textblock
23304 #: ../sparsify/virt-sparsify.pod:113
23305 msgid ""
23306 "Use C<output-format> as the format for the destination image.  If this is "
23307 "not specified, then the input format is used."
23308 msgstr ""
23309
23310 #. type: textblock
23311 #: ../sparsify/virt-sparsify.pod:116
23312 msgid "Supported and known-working output formats are: C<raw>, C<qcow2>."
23313 msgstr ""
23314
23315 #. type: textblock
23316 #: ../sparsify/virt-sparsify.pod:118
23317 msgid ""
23318 "You can also use any format supported by the L<qemu-img(1)> program, "
23319 "eg. C<vdi> or C<vmdk>, but support for other formats is reliant on qemu."
23320 msgstr ""
23321
23322 #. type: textblock
23323 #: ../sparsify/virt-sparsify.pod:122
23324 msgid ""
23325 "Specifying the I<--convert> option is usually a good idea, because then "
23326 "virt-sparsify doesn't need to try to guess the input format."
23327 msgstr ""
23328
23329 #. type: =item
23330 #: ../sparsify/virt-sparsify.pod:127
23331 msgid "B<--format> qcow2"
23332 msgstr ""
23333
23334 #. type: =item
23335 #: ../sparsify/virt-sparsify.pod:135
23336 msgid "B<--ignore> filesystem"
23337 msgstr ""
23338
23339 #. type: =item
23340 #: ../sparsify/virt-sparsify.pod:137
23341 msgid "B<--ignore> volgroup"
23342 msgstr ""
23343
23344 #. type: textblock
23345 #: ../sparsify/virt-sparsify.pod:139
23346 msgid ""
23347 "Ignore the named filesystem.  Free space on the filesystem will not be "
23348 "zeroed, but existing blocks of zeroes will still be sparsified."
23349 msgstr ""
23350
23351 #. type: textblock
23352 #: ../sparsify/virt-sparsify.pod:142
23353 msgid ""
23354 "In the second form, this ignores the named volume group.  Use the volume "
23355 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
23356 msgstr ""
23357
23358 #. type: textblock
23359 #: ../sparsify/virt-sparsify.pod:157
23360 msgid "This disables progress bars and other unnecessary output."
23361 msgstr ""
23362
23363 #. type: textblock
23364 #: ../sparsify/virt-sparsify.pod:179
23365 msgid ""
23366 "The I<--machine-readable> option can be used to make the output more machine "
23367 "friendly, which is useful when calling virt-sparsify from other programs, "
23368 "GUIs etc."
23369 msgstr ""
23370
23371 #. type: textblock
23372 #: ../sparsify/virt-sparsify.pod:185
23373 msgid ""
23374 "Firstly use the option on its own to query the capabilities of the "
23375 "virt-sparsify binary.  Typical output looks like this:"
23376 msgstr ""
23377
23378 #. type: verbatim
23379 #: ../sparsify/virt-sparsify.pod:188
23380 #, no-wrap
23381 msgid ""
23382 " $ virt-sparsify --machine-readable\n"
23383 " virt-sparsify\n"
23384 " ntfs\n"
23385 " btrfs\n"
23386 "\n"
23387 msgstr ""
23388
23389 #. type: textblock
23390 #: ../sparsify/virt-sparsify.pod:218
23391 msgid ""
23392 "The calling program should treat messages sent to stderr as error messages.  "
23393 "In addition, virt-sparsify exits with a non-zero status code if there was a "
23394 "fatal error."
23395 msgstr ""
23396
23397 #. type: textblock
23398 #: ../sparsify/virt-sparsify.pod:224
23399 msgid ""
23400 "All versions of virt-sparsify have supported the I<--machine-readable> "
23401 "option."
23402 msgstr ""
23403
23404 #. type: textblock
23405 #: ../sparsify/virt-sparsify.pod:238
23406 msgid ""
23407 "Location of the temporary directory used for the potentially large temporary "
23408 "overlay file."
23409 msgstr ""
23410
23411 #. type: textblock
23412 #: ../sparsify/virt-sparsify.pod:241
23413 msgid ""
23414 "You should ensure there is enough free space in the worst case for a full "
23415 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
23416 "to another directory that has enough space."
23417 msgstr ""
23418
23419 #. type: textblock
23420 #: ../sparsify/virt-sparsify.pod:245
23421 msgid "This defaults to C</tmp>."
23422 msgstr ""
23423
23424 #. type: textblock
23425 #: ../sparsify/virt-sparsify.pod:249
23426 msgid "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
23427 msgstr ""
23428
23429 #. type: textblock
23430 #: ../sparsify/virt-sparsify.pod:253
23431 msgid ""
23432 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
23433 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, "
23434 "L<qemu-img(1)>, L<http://libguestfs.org/>."
23435 msgstr ""
23436
23437 #. type: =head2
23438 #: ../src/guestfs-actions.pod:1
23439 msgid "guestfs_add_cdrom"
23440 msgstr ""
23441
23442 #. type: verbatim
23443 #: ../src/guestfs-actions.pod:3
23444 #, no-wrap
23445 msgid ""
23446 " int\n"
23447 " guestfs_add_cdrom (guestfs_h *g,\n"
23448 "                    const char *filename);\n"
23449 "\n"
23450 msgstr ""
23451
23452 #. type: textblock
23453 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:249 ../src/guestfs-actions.pod:270
23454 msgid ""
23455 "I<This function is deprecated.> In new code, use the "
23456 "L</guestfs_add_drive_opts> call instead."
23457 msgstr ""
23458
23459 #. type: textblock
23460 #: ../src/guestfs-actions.pod:24
23461 msgid ""
23462 "This call checks for the existence of C<filename>.  This stops you from "
23463 "specifying other types of drive which are supported by qemu such as C<nbd:> "
23464 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
23465 "instead."
23466 msgstr ""
23467
23468 #. type: textblock
23469 #: ../src/guestfs-actions.pod:31
23470 msgid ""
23471 "If you just want to add an ISO file (often you use this as an efficient way "
23472 "to transfer large files into the guest), then you should probably use "
23473 "C<guestfs_add_drive_ro> instead."
23474 msgstr ""
23475
23476 #. type: textblock
23477 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:140 ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238 ../src/guestfs-actions.pod:259 ../src/guestfs-actions.pod:280 ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307 ../src/guestfs-actions.pod:427 ../src/guestfs-actions.pod:447 ../src/guestfs-actions.pod:461 ../src/guestfs-actions.pod:506 ../src/guestfs-actions.pod:534 ../src/guestfs-actions.pod:552 ../src/guestfs-actions.pod:619 ../src/guestfs-actions.pod:652 ../src/guestfs-actions.pod:666 ../src/guestfs-actions.pod:681 ../src/guestfs-actions.pod:780 ../src/guestfs-actions.pod:798 ../src/guestfs-actions.pod:812 ../src/guestfs-actions.pod:826 ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:1046 ../src/guestfs-actions.pod:1066 ../src/guestfs-actions.pod:1084 ../src/guestfs-actions.pod:1174 ../src/guestfs-actions.pod:1233 ../src/guestfs-actions.pod:1279 ../src/guestfs-actions.pod:1297 ../src/guestfs-actions.pod:1316 ../src/guestfs-actions.pod:1330 ../src/guestfs-actions.pod:1350 ../src/guestfs-actions.pod:1420 ../src/guestfs-actions.pod:1451 ../src/guestfs-actions.pod:1476 ../src/guestfs-actions.pod:1518 ../src/guestfs-actions.pod:1631 ../src/guestfs-actions.pod:1658 ../src/guestfs-actions.pod:1873 ../src/guestfs-actions.pod:1895 ../src/guestfs-actions.pod:1982 ../src/guestfs-actions.pod:2490 ../src/guestfs-actions.pod:2634 ../src/guestfs-actions.pod:2695 ../src/guestfs-actions.pod:2730 ../src/guestfs-actions.pod:3787 ../src/guestfs-actions.pod:3802 ../src/guestfs-actions.pod:3827 ../src/guestfs-actions.pod:4016 ../src/guestfs-actions.pod:4030 ../src/guestfs-actions.pod:4043 ../src/guestfs-actions.pod:4057 ../src/guestfs-actions.pod:4072 ../src/guestfs-actions.pod:4108 ../src/guestfs-actions.pod:4180 ../src/guestfs-actions.pod:4200 ../src/guestfs-actions.pod:4217 ../src/guestfs-actions.pod:4240 ../src/guestfs-actions.pod:4263 ../src/guestfs-actions.pod:4298 ../src/guestfs-actions.pod:4317 ../src/guestfs-actions.pod:4336 ../src/guestfs-actions.pod:4371 ../src/guestfs-actions.pod:4383 ../src/guestfs-actions.pod:4419 ../src/guestfs-actions.pod:4435 ../src/guestfs-actions.pod:4448 ../src/guestfs-actions.pod:4463 ../src/guestfs-actions.pod:4480 ../src/guestfs-actions.pod:4573 ../src/guestfs-actions.pod:4593 ../src/guestfs-actions.pod:4606 ../src/guestfs-actions.pod:4657 ../src/guestfs-actions.pod:4675 ../src/guestfs-actions.pod:4693 ../src/guestfs-actions.pod:4709 ../src/guestfs-actions.pod:4723 ../src/guestfs-actions.pod:4737 ../src/guestfs-actions.pod:4754 ../src/guestfs-actions.pod:4769 ../src/guestfs-actions.pod:4796 ../src/guestfs-actions.pod:4859 ../src/guestfs-actions.pod:4932 ../src/guestfs-actions.pod:4963 ../src/guestfs-actions.pod:4982 ../src/guestfs-actions.pod:5001 ../src/guestfs-actions.pod:5013 ../src/guestfs-actions.pod:5030 ../src/guestfs-actions.pod:5043 ../src/guestfs-actions.pod:5058 ../src/guestfs-actions.pod:5073 ../src/guestfs-actions.pod:5105 ../src/guestfs-actions.pod:5131 ../src/guestfs-actions.pod:5170 ../src/guestfs-actions.pod:5190 ../src/guestfs-actions.pod:5204 ../src/guestfs-actions.pod:5221 ../src/guestfs-actions.pod:5270 ../src/guestfs-actions.pod:5323 ../src/guestfs-actions.pod:5370 ../src/guestfs-actions.pod:5413 ../src/guestfs-actions.pod:5441 ../src/guestfs-actions.pod:5458 ../src/guestfs-actions.pod:5476 ../src/guestfs-actions.pod:5616 ../src/guestfs-actions.pod:5673 ../src/guestfs-actions.pod:5695 ../src/guestfs-actions.pod:5713 ../src/guestfs-actions.pod:5745 ../src/guestfs-actions.pod:5811 ../src/guestfs-actions.pod:5828 ../src/guestfs-actions.pod:5841 ../src/guestfs-actions.pod:5855 ../src/guestfs-actions.pod:6144 ../src/guestfs-actions.pod:6163 ../src/guestfs-actions.pod:6182 ../src/guestfs-actions.pod:6196 ../src/guestfs-actions.pod:6208 ../src/guestfs-actions.pod:6222 ../src/guestfs-actions.pod:6234 ../src/guestfs-actions.pod:6248 ../src/guestfs-actions.pod:6264 ../src/guestfs-actions.pod:6285 ../src/guestfs-actions.pod:6304 ../src/guestfs-actions.pod:6323 ../src/guestfs-actions.pod:6353 ../src/guestfs-actions.pod:6371 ../src/guestfs-actions.pod:6394 ../src/guestfs-actions.pod:6412 ../src/guestfs-actions.pod:6431 ../src/guestfs-actions.pod:6452 ../src/guestfs-actions.pod:6471 ../src/guestfs-actions.pod:6488 ../src/guestfs-actions.pod:6507 ../src/guestfs-actions.pod:6535 ../src/guestfs-actions.pod:6559 ../src/guestfs-actions.pod:6578 ../src/guestfs-actions.pod:6594 ../src/guestfs-actions.pod:6618 ../src/guestfs-actions.pod:6637 ../src/guestfs-actions.pod:6652 ../src/guestfs-actions.pod:6671 ../src/guestfs-actions.pod:6715 ../src/guestfs-actions.pod:6745 ../src/guestfs-actions.pod:6778 ../src/guestfs-actions.pod:6893 ../src/guestfs-actions.pod:7014 ../src/guestfs-actions.pod:7026 ../src/guestfs-actions.pod:7039 ../src/guestfs-actions.pod:7052 ../src/guestfs-actions.pod:7074 ../src/guestfs-actions.pod:7087 ../src/guestfs-actions.pod:7100 ../src/guestfs-actions.pod:7113 ../src/guestfs-actions.pod:7128 ../src/guestfs-actions.pod:7187 ../src/guestfs-actions.pod:7204 ../src/guestfs-actions.pod:7220 ../src/guestfs-actions.pod:7236 ../src/guestfs-actions.pod:7253 ../src/guestfs-actions.pod:7266 ../src/guestfs-actions.pod:7286 ../src/guestfs-actions.pod:7322 ../src/guestfs-actions.pod:7336 ../src/guestfs-actions.pod:7377 ../src/guestfs-actions.pod:7390 ../src/guestfs-actions.pod:7408 ../src/guestfs-actions.pod:7442 ../src/guestfs-actions.pod:7478 ../src/guestfs-actions.pod:7594 ../src/guestfs-actions.pod:7609 ../src/guestfs-actions.pod:7623 ../src/guestfs-actions.pod:7678 ../src/guestfs-actions.pod:7691 ../src/guestfs-actions.pod:7736 ../src/guestfs-actions.pod:7776 ../src/guestfs-actions.pod:7832 ../src/guestfs-actions.pod:7852 ../src/guestfs-actions.pod:7885 ../src/guestfs-actions.pod:7949 ../src/guestfs-actions.pod:7972 ../src/guestfs-actions.pod:8001
23478 msgid "This function returns 0 on success or -1 on error."
23479 msgstr ""
23480
23481 #. type: textblock
23482 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142 ../src/guestfs-actions.pod:1281 ../src/guestfs-actions.pod:2096 ../src/guestfs-actions.pod:2194 ../src/guestfs-actions.pod:2319 ../src/guestfs-actions.pod:3789 ../src/guestfs-actions.pod:3809 ../src/guestfs-actions.pod:5107 ../src/guestfs-actions.pod:6373 ../src/guestfs-actions.pod:6490 ../src/guestfs-actions.pod:6639 ../src/guestfs-actions.pod:7130 ../src/guestfs-actions.pod:7255 ../src/guestfs-actions.pod:7778
23483 msgid "(Added in 0.3)"
23484 msgstr ""
23485
23486 #. type: =head2
23487 #: ../src/guestfs-actions.pod:41
23488 msgid "guestfs_add_domain"
23489 msgstr ""
23490
23491 #. type: verbatim
23492 #: ../src/guestfs-actions.pod:43
23493 #, no-wrap
23494 msgid ""
23495 " int\n"
23496 " guestfs_add_domain (guestfs_h *g,\n"
23497 "                     const char *dom,\n"
23498 "                     ...);\n"
23499 "\n"
23500 msgstr ""
23501
23502 #. type: textblock
23503 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151 ../src/guestfs-actions.pod:837 ../src/guestfs-actions.pod:1161 ../src/guestfs-actions.pod:1213 ../src/guestfs-actions.pod:2987 ../src/guestfs-actions.pod:4808 ../src/guestfs-actions.pod:5117 ../src/guestfs-actions.pod:5334
23504 msgid ""
23505 "You may supply a list of optional arguments to this call.  Use zero or more "
23506 "of the following pairs of parameters, and terminate the list with C<-1> on "
23507 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
23508 msgstr ""
23509
23510 #. type: verbatim
23511 #: ../src/guestfs-actions.pod:53
23512 #, no-wrap
23513 msgid ""
23514 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
23515 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
23516 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
23517 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
23518 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
23519 "\n"
23520 msgstr ""
23521
23522 #. type: textblock
23523 #: ../src/guestfs-actions.pod:59
23524 msgid ""
23525 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
23526 "It works by connecting to libvirt, requesting the domain and domain XML from "
23527 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
23528 "one."
23529 msgstr ""
23530
23531 #. type: textblock
23532 #: ../src/guestfs-actions.pod:94
23533 msgid ""
23534 "The other optional parameters are passed directly through to "
23535 "C<guestfs_add_drive_opts>."
23536 msgstr ""
23537
23538 #. type: textblock
23539 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350 ../src/guestfs-actions.pod:520 ../src/guestfs-actions.pod:698 ../src/guestfs-actions.pod:729 ../src/guestfs-actions.pod:747 ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1496 ../src/guestfs-actions.pod:1852 ../src/guestfs-actions.pod:2055 ../src/guestfs-actions.pod:2166 ../src/guestfs-actions.pod:2217 ../src/guestfs-actions.pod:2269 ../src/guestfs-actions.pod:2283 ../src/guestfs-actions.pod:2306 ../src/guestfs-actions.pod:2621 ../src/guestfs-actions.pod:3105 ../src/guestfs-actions.pod:3123 ../src/guestfs-actions.pod:5293 ../src/guestfs-actions.pod:5513 ../src/guestfs-actions.pod:5925 ../src/guestfs-actions.pod:5951 ../src/guestfs-actions.pod:7363 ../src/guestfs-actions.pod:7789 ../src/guestfs-actions.pod:7802 ../src/guestfs-actions.pod:7815
23540 msgid "On error this function returns -1."
23541 msgstr ""
23542
23543 #. type: textblock
23544 #: ../src/guestfs-actions.pod:99
23545 msgid "(Added in 1.7.4)"
23546 msgstr ""
23547
23548 #. type: =head2
23549 #: ../src/guestfs-actions.pod:101
23550 msgid "guestfs_add_domain_va"
23551 msgstr ""
23552
23553 #. type: verbatim
23554 #: ../src/guestfs-actions.pod:103
23555 #, no-wrap
23556 msgid ""
23557 " int\n"
23558 " guestfs_add_domain_va (guestfs_h *g,\n"
23559 "                        const char *dom,\n"
23560 "                        va_list args);\n"
23561 "\n"
23562 msgstr ""
23563
23564 #. type: textblock
23565 #: ../src/guestfs-actions.pod:108
23566 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
23567 msgstr ""
23568
23569 #. type: textblock
23570 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121 ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225 ../src/guestfs-actions.pod:876 ../src/guestfs-actions.pod:887 ../src/guestfs-actions.pod:1189 ../src/guestfs-actions.pod:1202 ../src/guestfs-actions.pod:1248 ../src/guestfs-actions.pod:1261 ../src/guestfs-actions.pod:3071 ../src/guestfs-actions.pod:3083 ../src/guestfs-actions.pod:4873 ../src/guestfs-actions.pod:4885 ../src/guestfs-actions.pod:5145 ../src/guestfs-actions.pod:5157 ../src/guestfs-actions.pod:5383 ../src/guestfs-actions.pod:5394
23571 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
23572 msgstr ""
23573
23574 #. type: =head2
23575 #: ../src/guestfs-actions.pod:112
23576 msgid "guestfs_add_domain_argv"
23577 msgstr ""
23578
23579 #. type: verbatim
23580 #: ../src/guestfs-actions.pod:114
23581 #, no-wrap
23582 msgid ""
23583 " int\n"
23584 " guestfs_add_domain_argv (guestfs_h *g,\n"
23585 "                          const char *dom,\n"
23586 "                          const struct guestfs_add_domain_argv *optargs);\n"
23587 "\n"
23588 msgstr ""
23589
23590 #. type: textblock
23591 #: ../src/guestfs-actions.pod:119
23592 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
23593 msgstr ""
23594
23595 #. type: =head2
23596 #: ../src/guestfs-actions.pod:123
23597 msgid "guestfs_add_drive"
23598 msgstr ""
23599
23600 #. type: verbatim
23601 #: ../src/guestfs-actions.pod:125
23602 #, no-wrap
23603 msgid ""
23604 " int\n"
23605 " guestfs_add_drive (guestfs_h *g,\n"
23606 "                    const char *filename);\n"
23607 "\n"
23608 msgstr ""
23609
23610 #. type: textblock
23611 #: ../src/guestfs-actions.pod:129
23612 msgid ""
23613 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
23614 "optional parameters, so the disk is added writable, with the format being "
23615 "detected automatically."
23616 msgstr ""
23617
23618 #. type: textblock
23619 #: ../src/guestfs-actions.pod:133
23620 msgid ""
23621 "Automatic detection of the format opens you up to a potential security hole "
23622 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
23623 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
23624 "you should think about replacing calls to this function with calls to "
23625 "C<guestfs_add_drive_opts>, and specifying the format."
23626 msgstr ""
23627
23628 #. type: =head2
23629 #: ../src/guestfs-actions.pod:144
23630 msgid "guestfs_add_drive_opts"
23631 msgstr ""
23632
23633 #. type: verbatim
23634 #: ../src/guestfs-actions.pod:146
23635 #, no-wrap
23636 msgid ""
23637 " int\n"
23638 " guestfs_add_drive_opts (guestfs_h *g,\n"
23639 "                         const char *filename,\n"
23640 "                         ...);\n"
23641 "\n"
23642 msgstr ""
23643
23644 #. type: verbatim
23645 #: ../src/guestfs-actions.pod:156
23646 #, no-wrap
23647 msgid ""
23648 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
23649 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
23650 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
23651 "\n"
23652 msgstr ""
23653
23654 #. type: textblock
23655 #: ../src/guestfs-actions.pod:185
23656 msgid ""
23657 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
23658 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
23659 "Possible formats include C<raw> and C<qcow2>."
23660 msgstr ""
23661
23662 #. type: textblock
23663 #: ../src/guestfs-actions.pod:196
23664 msgid ""
23665 "This rarely-used option lets you emulate the behaviour of the deprecated "
23666 "C<guestfs_add_drive_with_if> call (q.v.)"
23667 msgstr ""
23668
23669 #. type: textblock
23670 #: ../src/guestfs-actions.pod:203
23671 msgid "(Added in 1.5.23)"
23672 msgstr ""
23673
23674 #. type: =head2
23675 #: ../src/guestfs-actions.pod:205
23676 msgid "guestfs_add_drive_opts_va"
23677 msgstr ""
23678
23679 #. type: verbatim
23680 #: ../src/guestfs-actions.pod:207
23681 #, no-wrap
23682 msgid ""
23683 " int\n"
23684 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
23685 "                            const char *filename,\n"
23686 "                            va_list args);\n"
23687 "\n"
23688 msgstr ""
23689
23690 #. type: textblock
23691 #: ../src/guestfs-actions.pod:212
23692 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
23693 msgstr ""
23694
23695 #. type: =head2
23696 #: ../src/guestfs-actions.pod:216
23697 msgid "guestfs_add_drive_opts_argv"
23698 msgstr ""
23699
23700 #. type: verbatim
23701 #: ../src/guestfs-actions.pod:218
23702 #, no-wrap
23703 msgid ""
23704 " int\n"
23705 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
23706 "                              const char *filename,\n"
23707 "                              const struct guestfs_add_drive_opts_argv "
23708 "*optargs);\n"
23709 "\n"
23710 msgstr ""
23711
23712 #. type: textblock
23713 #: ../src/guestfs-actions.pod:223
23714 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
23715 msgstr ""
23716
23717 #. type: =head2
23718 #: ../src/guestfs-actions.pod:227
23719 msgid "guestfs_add_drive_ro"
23720 msgstr ""
23721
23722 #. type: verbatim
23723 #: ../src/guestfs-actions.pod:229
23724 #, no-wrap
23725 msgid ""
23726 " int\n"
23727 " guestfs_add_drive_ro (guestfs_h *g,\n"
23728 "                       const char *filename);\n"
23729 "\n"
23730 msgstr ""
23731
23732 #. type: textblock
23733 #: ../src/guestfs-actions.pod:233
23734 msgid ""
23735 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
23736 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
23737 "disk is added read-only, with the format being detected automatically."
23738 msgstr ""
23739
23740 #. type: textblock
23741 #: ../src/guestfs-actions.pod:240
23742 msgid "(Added in 1.0.38)"
23743 msgstr ""
23744
23745 #. type: =head2
23746 #: ../src/guestfs-actions.pod:242
23747 msgid "guestfs_add_drive_ro_with_if"
23748 msgstr ""
23749
23750 #. type: verbatim
23751 #: ../src/guestfs-actions.pod:244
23752 #, no-wrap
23753 msgid ""
23754 " int\n"
23755 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
23756 "                               const char *filename,\n"
23757 "                               const char *iface);\n"
23758 "\n"
23759 msgstr ""
23760
23761 #. type: textblock
23762 #: ../src/guestfs-actions.pod:256
23763 msgid ""
23764 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
23765 "QEMU interface emulation to use at run time."
23766 msgstr ""
23767
23768 #. type: textblock
23769 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282 ../src/guestfs-actions.pod:2580
23770 msgid "(Added in 1.0.84)"
23771 msgstr ""
23772
23773 #. type: =head2
23774 #: ../src/guestfs-actions.pod:263
23775 msgid "guestfs_add_drive_with_if"
23776 msgstr ""
23777
23778 #. type: verbatim
23779 #: ../src/guestfs-actions.pod:265
23780 #, no-wrap
23781 msgid ""
23782 " int\n"
23783 " guestfs_add_drive_with_if (guestfs_h *g,\n"
23784 "                            const char *filename,\n"
23785 "                            const char *iface);\n"
23786 "\n"
23787 msgstr ""
23788
23789 #. type: textblock
23790 #: ../src/guestfs-actions.pod:277
23791 msgid ""
23792 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
23793 "QEMU interface emulation to use at run time."
23794 msgstr ""
23795
23796 #. type: =head2
23797 #: ../src/guestfs-actions.pod:284
23798 msgid "guestfs_aug_clear"
23799 msgstr ""
23800
23801 #. type: verbatim
23802 #: ../src/guestfs-actions.pod:286
23803 #, no-wrap
23804 msgid ""
23805 " int\n"
23806 " guestfs_aug_clear (guestfs_h *g,\n"
23807 "                    const char *augpath);\n"
23808 "\n"
23809 msgstr ""
23810
23811 #. type: textblock
23812 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2308
23813 msgid "(Added in 1.3.4)"
23814 msgstr ""
23815
23816 #. type: =head2
23817 #: ../src/guestfs-actions.pod:297
23818 msgid "guestfs_aug_close"
23819 msgstr ""
23820
23821 #. type: verbatim
23822 #: ../src/guestfs-actions.pod:299
23823 #, no-wrap
23824 msgid ""
23825 " int\n"
23826 " guestfs_aug_close (guestfs_h *g);\n"
23827 "\n"
23828 msgstr ""
23829
23830 #. type: textblock
23831 #: ../src/guestfs-actions.pod:302
23832 msgid ""
23833 "Close the current Augeas handle and free up any resources used by it.  After "
23834 "calling this, you have to call C<guestfs_aug_init> again before you can use "
23835 "any other Augeas functions."
23836 msgstr ""
23837
23838 #. type: textblock
23839 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334 ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366 ../src/guestfs-actions.pod:429 ../src/guestfs-actions.pod:449 ../src/guestfs-actions.pod:463 ../src/guestfs-actions.pod:494 ../src/guestfs-actions.pod:508 ../src/guestfs-actions.pod:522 ../src/guestfs-actions.pod:536 ../src/guestfs-actions.pod:554 ../src/guestfs-actions.pod:6002
23840 msgid "(Added in 0.7)"
23841 msgstr ""
23842
23843 #. type: =head2
23844 #: ../src/guestfs-actions.pod:311
23845 msgid "guestfs_aug_defnode"
23846 msgstr ""
23847
23848 #. type: verbatim
23849 #: ../src/guestfs-actions.pod:313
23850 #, no-wrap
23851 msgid ""
23852 " struct guestfs_int_bool *\n"
23853 " guestfs_aug_defnode (guestfs_h *g,\n"
23854 "                      const char *name,\n"
23855 "                      const char *expr,\n"
23856 "                      const char *val);\n"
23857 "\n"
23858 msgstr ""
23859
23860 #. type: textblock
23861 #: ../src/guestfs-actions.pod:322
23862 msgid ""
23863 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
23864 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
23865 "containing that single node."
23866 msgstr ""
23867
23868 #. type: textblock
23869 #: ../src/guestfs-actions.pod:330
23870 msgid ""
23871 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
23872 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
23873 msgstr ""
23874
23875 #. type: =head2
23876 #: ../src/guestfs-actions.pod:336
23877 msgid "guestfs_aug_defvar"
23878 msgstr ""
23879
23880 #. type: verbatim
23881 #: ../src/guestfs-actions.pod:338
23882 #, no-wrap
23883 msgid ""
23884 " int\n"
23885 " guestfs_aug_defvar (guestfs_h *g,\n"
23886 "                     const char *name,\n"
23887 "                     const char *expr);\n"
23888 "\n"
23889 msgstr ""
23890
23891 #. type: =head2
23892 #: ../src/guestfs-actions.pod:354
23893 msgid "guestfs_aug_get"
23894 msgstr ""
23895
23896 #. type: verbatim
23897 #: ../src/guestfs-actions.pod:356
23898 #, no-wrap
23899 msgid ""
23900 " char *\n"
23901 " guestfs_aug_get (guestfs_h *g,\n"
23902 "                  const char *augpath);\n"
23903 "\n"
23904 msgstr ""
23905
23906 #. type: textblock
23907 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:927 ../src/guestfs-actions.pod:945 ../src/guestfs-actions.pod:1005 ../src/guestfs-actions.pod:1021 ../src/guestfs-actions.pod:1124 ../src/guestfs-actions.pod:1365 ../src/guestfs-actions.pod:1382 ../src/guestfs-actions.pod:1401 ../src/guestfs-actions.pod:1535 ../src/guestfs-actions.pod:1723 ../src/guestfs-actions.pod:1835 ../src/guestfs-actions.pod:1998 ../src/guestfs-actions.pod:2015 ../src/guestfs-actions.pod:2082 ../src/guestfs-actions.pod:2125 ../src/guestfs-actions.pod:2146 ../src/guestfs-actions.pod:2331 ../src/guestfs-actions.pod:2545 ../src/guestfs-actions.pod:2749 ../src/guestfs-actions.pod:2851 ../src/guestfs-actions.pod:2955 ../src/guestfs-actions.pod:2974 ../src/guestfs-actions.pod:3189 ../src/guestfs-actions.pod:3217 ../src/guestfs-actions.pod:3238 ../src/guestfs-actions.pod:3272 ../src/guestfs-actions.pod:3335 ../src/guestfs-actions.pod:3355 ../src/guestfs-actions.pod:3375 ../src/guestfs-actions.pod:4002 ../src/guestfs-actions.pod:4355 ../src/guestfs-actions.pod:4525 ../src/guestfs-actions.pod:4635 ../src/guestfs-actions.pod:5531 ../src/guestfs-actions.pod:5730 ../src/guestfs-actions.pod:5900 ../src/guestfs-actions.pod:6078 ../src/guestfs-actions.pod:6127 ../src/guestfs-actions.pod:6799 ../src/guestfs-actions.pod:6815 ../src/guestfs-actions.pod:6839 ../src/guestfs-actions.pod:6863 ../src/guestfs-actions.pod:7537 ../src/guestfs-actions.pod:7556 ../src/guestfs-actions.pod:7574 ../src/guestfs-actions.pod:7748 ../src/guestfs-actions.pod:8065
23908 msgid ""
23909 "This function returns a string, or NULL on error.  I<The caller must free "
23910 "the returned string after use>."
23911 msgstr ""
23912
23913 #. type: =head2
23914 #: ../src/guestfs-actions.pod:368
23915 msgid "guestfs_aug_init"
23916 msgstr ""
23917
23918 #. type: verbatim
23919 #: ../src/guestfs-actions.pod:370
23920 #, no-wrap
23921 msgid ""
23922 " int\n"
23923 " guestfs_aug_init (guestfs_h *g,\n"
23924 "                   const char *root,\n"
23925 "                   int flags);\n"
23926 "\n"
23927 msgstr ""
23928
23929 #. type: textblock
23930 #: ../src/guestfs-actions.pod:379
23931 msgid "You must call this before using any other C<guestfs_aug_*> commands."
23932 msgstr ""
23933
23934 #. type: textblock
23935 #: ../src/guestfs-actions.pod:404
23936 msgid ""
23937 "This option is only useful when debugging Augeas lenses.  Use of this option "
23938 "may require additional memory for the libguestfs appliance.  You may need to "
23939 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
23940 "C<guestfs_set_memsize>."
23941 msgstr ""
23942
23943 #. type: textblock
23944 #: ../src/guestfs-actions.pod:419
23945 msgid "Do not load the tree in C<guestfs_aug_init>."
23946 msgstr ""
23947
23948 #. type: textblock
23949 #: ../src/guestfs-actions.pod:423
23950 msgid "To close the handle, you can call C<guestfs_aug_close>."
23951 msgstr ""
23952
23953 #. type: =head2
23954 #: ../src/guestfs-actions.pod:431
23955 msgid "guestfs_aug_insert"
23956 msgstr ""
23957
23958 #. type: verbatim
23959 #: ../src/guestfs-actions.pod:433
23960 #, no-wrap
23961 msgid ""
23962 " int\n"
23963 " guestfs_aug_insert (guestfs_h *g,\n"
23964 "                     const char *augpath,\n"
23965 "                     const char *label,\n"
23966 "                     int before);\n"
23967 "\n"
23968 msgstr ""
23969
23970 #. type: =head2
23971 #: ../src/guestfs-actions.pod:451
23972 msgid "guestfs_aug_load"
23973 msgstr ""
23974
23975 #. type: verbatim
23976 #: ../src/guestfs-actions.pod:453
23977 #, no-wrap
23978 msgid ""
23979 " int\n"
23980 " guestfs_aug_load (guestfs_h *g);\n"
23981 "\n"
23982 msgstr ""
23983
23984 #. type: =head2
23985 #: ../src/guestfs-actions.pod:465
23986 msgid "guestfs_aug_ls"
23987 msgstr ""
23988
23989 #. type: verbatim
23990 #: ../src/guestfs-actions.pod:467
23991 #, no-wrap
23992 msgid ""
23993 " char **\n"
23994 " guestfs_aug_ls (guestfs_h *g,\n"
23995 "                 const char *augpath);\n"
23996 "\n"
23997 msgstr ""
23998
23999 #. type: textblock
24000 #: ../src/guestfs-actions.pod:471
24001 msgid ""
24002 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
24003 "sorting the resulting nodes into alphabetical order."
24004 msgstr ""
24005
24006 #. type: textblock
24007 #: ../src/guestfs-actions.pod:474 ../src/guestfs-actions.pod:490 ../src/guestfs-actions.pod:636 ../src/guestfs-actions.pod:1143 ../src/guestfs-actions.pod:1550 ../src/guestfs-actions.pod:1569 ../src/guestfs-actions.pod:1672 ../src/guestfs-actions.pod:1691 ../src/guestfs-actions.pod:1937 ../src/guestfs-actions.pod:2403 ../src/guestfs-actions.pod:2419 ../src/guestfs-actions.pod:2438 ../src/guestfs-actions.pod:2503 ../src/guestfs-actions.pod:2527 ../src/guestfs-actions.pod:2598 ../src/guestfs-actions.pod:2647 ../src/guestfs-actions.pod:2916 ../src/guestfs-actions.pod:3291 ../src/guestfs-actions.pod:3571 ../src/guestfs-actions.pod:3885 ../src/guestfs-actions.pod:3902 ../src/guestfs-actions.pod:3922 ../src/guestfs-actions.pod:3984 ../src/guestfs-actions.pod:4089 ../src/guestfs-actions.pod:4497 ../src/guestfs-actions.pod:5254 ../src/guestfs-actions.pod:5872 ../src/guestfs-actions.pod:5998 ../src/guestfs-actions.pod:6112 ../src/guestfs-actions.pod:6879 ../src/guestfs-actions.pod:6940 ../src/guestfs-actions.pod:6995 ../src/guestfs-actions.pod:7141 ../src/guestfs-actions.pod:7165 ../src/guestfs-actions.pod:7641 ../src/guestfs-actions.pod:7661 ../src/guestfs-actions.pod:7708 ../src/guestfs-actions.pod:7902 ../src/guestfs-actions.pod:7921 ../src/guestfs-actions.pod:8015 ../src/guestfs-actions.pod:8034 ../src/guestfs-actions.pod:8080 ../src/guestfs-actions.pod:8099
24008 msgid ""
24009 "This function returns a NULL-terminated array of strings (like "
24010 "L<environ(3)>), or NULL if there was an error.  I<The caller must free the "
24011 "strings and the array after use>."
24012 msgstr ""
24013
24014 #. type: textblock
24015 #: ../src/guestfs-actions.pod:478 ../src/guestfs-actions.pod:1068 ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:1607 ../src/guestfs-actions.pod:3649 ../src/guestfs-actions.pod:3680 ../src/guestfs-actions.pod:4338 ../src/guestfs-actions.pod:4388 ../src/guestfs-actions.pod:4575 ../src/guestfs-actions.pod:4608 ../src/guestfs-actions.pod:4771 ../src/guestfs-actions.pod:5258 ../src/guestfs-actions.pod:5813 ../src/guestfs-actions.pod:6210 ../src/guestfs-actions.pod:6224 ../src/guestfs-actions.pod:6236 ../src/guestfs-actions.pod:6720 ../src/guestfs-actions.pod:7379 ../src/guestfs-actions.pod:7392 ../src/guestfs-actions.pod:7625 ../src/guestfs-actions.pod:7890
24016 msgid "(Added in 0.8)"
24017 msgstr ""
24018
24019 #. type: =head2
24020 #: ../src/guestfs-actions.pod:480
24021 msgid "guestfs_aug_match"
24022 msgstr ""
24023
24024 #. type: verbatim
24025 #: ../src/guestfs-actions.pod:482
24026 #, no-wrap
24027 msgid ""
24028 " char **\n"
24029 " guestfs_aug_match (guestfs_h *g,\n"
24030 "                    const char *augpath);\n"
24031 "\n"
24032 msgstr ""
24033
24034 #. type: =head2
24035 #: ../src/guestfs-actions.pod:496
24036 msgid "guestfs_aug_mv"
24037 msgstr ""
24038
24039 #. type: verbatim
24040 #: ../src/guestfs-actions.pod:498
24041 #, no-wrap
24042 msgid ""
24043 " int\n"
24044 " guestfs_aug_mv (guestfs_h *g,\n"
24045 "                 const char *src,\n"
24046 "                 const char *dest);\n"
24047 "\n"
24048 msgstr ""
24049
24050 #. type: =head2
24051 #: ../src/guestfs-actions.pod:510
24052 msgid "guestfs_aug_rm"
24053 msgstr ""
24054
24055 #. type: verbatim
24056 #: ../src/guestfs-actions.pod:512
24057 #, no-wrap
24058 msgid ""
24059 " int\n"
24060 " guestfs_aug_rm (guestfs_h *g,\n"
24061 "                 const char *augpath);\n"
24062 "\n"
24063 msgstr ""
24064
24065 #. type: =head2
24066 #: ../src/guestfs-actions.pod:524
24067 msgid "guestfs_aug_save"
24068 msgstr ""
24069
24070 #. type: verbatim
24071 #: ../src/guestfs-actions.pod:526
24072 #, no-wrap
24073 msgid ""
24074 " int\n"
24075 " guestfs_aug_save (guestfs_h *g);\n"
24076 "\n"
24077 msgstr ""
24078
24079 #. type: textblock
24080 #: ../src/guestfs-actions.pod:531
24081 msgid ""
24082 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
24083 "are saved."
24084 msgstr ""
24085
24086 #. type: =head2
24087 #: ../src/guestfs-actions.pod:538
24088 msgid "guestfs_aug_set"
24089 msgstr ""
24090
24091 #. type: verbatim
24092 #: ../src/guestfs-actions.pod:540
24093 #, no-wrap
24094 msgid ""
24095 " int\n"
24096 " guestfs_aug_set (guestfs_h *g,\n"
24097 "                  const char *augpath,\n"
24098 "                  const char *val);\n"
24099 "\n"
24100 msgstr ""
24101
24102 #. type: textblock
24103 #: ../src/guestfs-actions.pod:547
24104 msgid ""
24105 "In the Augeas API, it is possible to clear a node by setting the value to "
24106 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
24107 "this call.  Instead you must use the C<guestfs_aug_clear> call."
24108 msgstr ""
24109
24110 #. type: =head2
24111 #: ../src/guestfs-actions.pod:556
24112 msgid "guestfs_available"
24113 msgstr ""
24114
24115 #. type: verbatim
24116 #: ../src/guestfs-actions.pod:558
24117 #, no-wrap
24118 msgid ""
24119 " int\n"
24120 " guestfs_available (guestfs_h *g,\n"
24121 "                    char *const *groups);\n"
24122 "\n"
24123 msgstr ""
24124
24125 #. type: textblock
24126 #: ../src/guestfs-actions.pod:566
24127 msgid ""
24128 "The libguestfs groups, and the functions that those groups correspond to, "
24129 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
24130 "runtime by calling C<guestfs_available_all_groups>."
24131 msgstr ""
24132
24133 #. type: textblock
24134 #: ../src/guestfs-actions.pod:590
24135 msgid "You must call C<guestfs_launch> before calling this function."
24136 msgstr ""
24137
24138 #. type: textblock
24139 #: ../src/guestfs-actions.pod:612
24140 msgid ""
24141 "This call was added in version C<1.0.80>.  In previous versions of "
24142 "libguestfs all you could do would be to speculatively execute a command to "
24143 "find out if the daemon implemented it.  See also C<guestfs_version>."
24144 msgstr ""
24145
24146 #. type: textblock
24147 #: ../src/guestfs-actions.pod:621 ../src/guestfs-actions.pod:1352
24148 msgid "(Added in 1.0.80)"
24149 msgstr ""
24150
24151 #. type: =head2
24152 #: ../src/guestfs-actions.pod:623
24153 msgid "guestfs_available_all_groups"
24154 msgstr ""
24155
24156 #. type: verbatim
24157 #: ../src/guestfs-actions.pod:625
24158 #, no-wrap
24159 msgid ""
24160 " char **\n"
24161 " guestfs_available_all_groups (guestfs_h *g);\n"
24162 "\n"
24163 msgstr ""
24164
24165 #. type: textblock
24166 #: ../src/guestfs-actions.pod:628
24167 msgid ""
24168 "This command returns a list of all optional groups that this daemon knows "
24169 "about.  Note this returns both supported and unsupported groups.  To find "
24170 "out which ones the daemon can actually support you have to call "
24171 "C<guestfs_available> on each member of the returned list."
24172 msgstr ""
24173
24174 #. type: textblock
24175 #: ../src/guestfs-actions.pod:634
24176 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
24177 msgstr ""
24178
24179 #. type: textblock
24180 #: ../src/guestfs-actions.pod:640
24181 msgid "(Added in 1.3.15)"
24182 msgstr ""
24183
24184 #. type: =head2
24185 #: ../src/guestfs-actions.pod:642
24186 msgid "guestfs_base64_in"
24187 msgstr ""
24188
24189 #. type: verbatim
24190 #: ../src/guestfs-actions.pod:644
24191 #, no-wrap
24192 msgid ""
24193 " int\n"
24194 " guestfs_base64_in (guestfs_h *g,\n"
24195 "                    const char *base64file,\n"
24196 "                    const char *filename);\n"
24197 "\n"
24198 msgstr ""
24199
24200 #. type: textblock
24201 #: ../src/guestfs-actions.pod:654 ../src/guestfs-actions.pod:668
24202 msgid "(Added in 1.3.5)"
24203 msgstr ""
24204
24205 #. type: =head2
24206 #: ../src/guestfs-actions.pod:656
24207 msgid "guestfs_base64_out"
24208 msgstr ""
24209
24210 #. type: verbatim
24211 #: ../src/guestfs-actions.pod:658
24212 #, no-wrap
24213 msgid ""
24214 " int\n"
24215 " guestfs_base64_out (guestfs_h *g,\n"
24216 "                     const char *filename,\n"
24217 "                     const char *base64file);\n"
24218 "\n"
24219 msgstr ""
24220
24221 #. type: =head2
24222 #: ../src/guestfs-actions.pod:670
24223 msgid "guestfs_blockdev_flushbufs"
24224 msgstr ""
24225
24226 #. type: verbatim
24227 #: ../src/guestfs-actions.pod:672
24228 #, no-wrap
24229 msgid ""
24230 " int\n"
24231 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
24232 "                             const char *device);\n"
24233 "\n"
24234 msgstr ""
24235
24236 #. type: textblock
24237 #: ../src/guestfs-actions.pod:683 ../src/guestfs-actions.pod:700 ../src/guestfs-actions.pod:715 ../src/guestfs-actions.pod:731 ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:768 ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800 ../src/guestfs-actions.pod:814 ../src/guestfs-actions.pod:828
24238 msgid "(Added in 0.9.3)"
24239 msgstr ""
24240
24241 #. type: =head2
24242 #: ../src/guestfs-actions.pod:685
24243 msgid "guestfs_blockdev_getbsz"
24244 msgstr ""
24245
24246 #. type: verbatim
24247 #: ../src/guestfs-actions.pod:687
24248 #, no-wrap
24249 msgid ""
24250 " int\n"
24251 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
24252 "                          const char *device);\n"
24253 "\n"
24254 msgstr ""
24255
24256 #. type: =head2
24257 #: ../src/guestfs-actions.pod:702
24258 msgid "guestfs_blockdev_getro"
24259 msgstr ""
24260
24261 #. type: verbatim
24262 #: ../src/guestfs-actions.pod:704
24263 #, no-wrap
24264 msgid ""
24265 " int\n"
24266 " guestfs_blockdev_getro (guestfs_h *g,\n"
24267 "                         const char *device);\n"
24268 "\n"
24269 msgstr ""
24270
24271 #. type: textblock
24272 #: ../src/guestfs-actions.pod:713 ../src/guestfs-actions.pod:1590 ../src/guestfs-actions.pod:1605 ../src/guestfs-actions.pod:2094 ../src/guestfs-actions.pod:2105 ../src/guestfs-actions.pod:2177 ../src/guestfs-actions.pod:2203 ../src/guestfs-actions.pod:2243 ../src/guestfs-actions.pod:2258 ../src/guestfs-actions.pod:2294 ../src/guestfs-actions.pod:2317 ../src/guestfs-actions.pod:3392 ../src/guestfs-actions.pod:3408 ../src/guestfs-actions.pod:3426 ../src/guestfs-actions.pod:3588 ../src/guestfs-actions.pod:3602 ../src/guestfs-actions.pod:3617 ../src/guestfs-actions.pod:3631 ../src/guestfs-actions.pod:3647 ../src/guestfs-actions.pod:3662 ../src/guestfs-actions.pod:3678 ../src/guestfs-actions.pod:3692 ../src/guestfs-actions.pod:3705 ../src/guestfs-actions.pod:3719 ../src/guestfs-actions.pod:3734 ../src/guestfs-actions.pod:3749 ../src/guestfs-actions.pod:3762 ../src/guestfs-actions.pod:3776 ../src/guestfs-actions.pod:5495
24273 msgid "This function returns a C truth value on success or -1 on error."
24274 msgstr ""
24275
24276 #. type: =head2
24277 #: ../src/guestfs-actions.pod:717
24278 msgid "guestfs_blockdev_getsize64"
24279 msgstr ""
24280
24281 #. type: verbatim
24282 #: ../src/guestfs-actions.pod:719
24283 #, no-wrap
24284 msgid ""
24285 " int64_t\n"
24286 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
24287 "                             const char *device);\n"
24288 "\n"
24289 msgstr ""
24290
24291 #. type: textblock
24292 #: ../src/guestfs-actions.pod:725
24293 msgid "See also C<guestfs_blockdev_getsz>."
24294 msgstr ""
24295
24296 #. type: =head2
24297 #: ../src/guestfs-actions.pod:733
24298 msgid "guestfs_blockdev_getss"
24299 msgstr ""
24300
24301 #. type: verbatim
24302 #: ../src/guestfs-actions.pod:735
24303 #, no-wrap
24304 msgid ""
24305 " int\n"
24306 " guestfs_blockdev_getss (guestfs_h *g,\n"
24307 "                         const char *device);\n"
24308 "\n"
24309 msgstr ""
24310
24311 #. type: textblock
24312 #: ../src/guestfs-actions.pod:742
24313 msgid ""
24314 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
24315 "that)."
24316 msgstr ""
24317
24318 #. type: =head2
24319 #: ../src/guestfs-actions.pod:751
24320 msgid "guestfs_blockdev_getsz"
24321 msgstr ""
24322
24323 #. type: verbatim
24324 #: ../src/guestfs-actions.pod:753
24325 #, no-wrap
24326 msgid ""
24327 " int64_t\n"
24328 " guestfs_blockdev_getsz (guestfs_h *g,\n"
24329 "                         const char *device);\n"
24330 "\n"
24331 msgstr ""
24332
24333 #. type: textblock
24334 #: ../src/guestfs-actions.pod:760
24335 msgid ""
24336 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
24337 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
24338 msgstr ""
24339
24340 #. type: =head2
24341 #: ../src/guestfs-actions.pod:770
24342 msgid "guestfs_blockdev_rereadpt"
24343 msgstr ""
24344
24345 #. type: verbatim
24346 #: ../src/guestfs-actions.pod:772
24347 #, no-wrap
24348 msgid ""
24349 " int\n"
24350 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
24351 "                            const char *device);\n"
24352 "\n"
24353 msgstr ""
24354
24355 #. type: =head2
24356 #: ../src/guestfs-actions.pod:784
24357 msgid "guestfs_blockdev_setbsz"
24358 msgstr ""
24359
24360 #. type: verbatim
24361 #: ../src/guestfs-actions.pod:786
24362 #, no-wrap
24363 msgid ""
24364 " int\n"
24365 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
24366 "                          const char *device,\n"
24367 "                          int blocksize);\n"
24368 "\n"
24369 msgstr ""
24370
24371 #. type: =head2
24372 #: ../src/guestfs-actions.pod:802
24373 msgid "guestfs_blockdev_setro"
24374 msgstr ""
24375
24376 #. type: verbatim
24377 #: ../src/guestfs-actions.pod:804
24378 #, no-wrap
24379 msgid ""
24380 " int\n"
24381 " guestfs_blockdev_setro (guestfs_h *g,\n"
24382 "                         const char *device);\n"
24383 "\n"
24384 msgstr ""
24385
24386 #. type: =head2
24387 #: ../src/guestfs-actions.pod:816
24388 msgid "guestfs_blockdev_setrw"
24389 msgstr ""
24390
24391 #. type: verbatim
24392 #: ../src/guestfs-actions.pod:818
24393 #, no-wrap
24394 msgid ""
24395 " int\n"
24396 " guestfs_blockdev_setrw (guestfs_h *g,\n"
24397 "                         const char *device);\n"
24398 "\n"
24399 msgstr ""
24400
24401 #. type: =head2
24402 #: ../src/guestfs-actions.pod:830
24403 msgid "guestfs_btrfs_filesystem_resize"
24404 msgstr ""
24405
24406 #. type: verbatim
24407 #: ../src/guestfs-actions.pod:832
24408 #, no-wrap
24409 msgid ""
24410 " int\n"
24411 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
24412 "                                  const char *mountpoint,\n"
24413 "                                  ...);\n"
24414 "\n"
24415 msgstr ""
24416
24417 #. type: verbatim
24418 #: ../src/guestfs-actions.pod:842
24419 #, no-wrap
24420 msgid ""
24421 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
24422 "\n"
24423 msgstr ""
24424
24425 #. type: textblock
24426 #: ../src/guestfs-actions.pod:865
24427 msgid "(Added in 1.11.17)"
24428 msgstr ""
24429
24430 #. type: =head2
24431 #: ../src/guestfs-actions.pod:867
24432 msgid "guestfs_btrfs_filesystem_resize_va"
24433 msgstr ""
24434
24435 #. type: verbatim
24436 #: ../src/guestfs-actions.pod:869
24437 #, no-wrap
24438 msgid ""
24439 " int\n"
24440 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
24441 "                                     const char *mountpoint,\n"
24442 "                                     va_list args);\n"
24443 "\n"
24444 msgstr ""
24445
24446 #. type: textblock
24447 #: ../src/guestfs-actions.pod:874
24448 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
24449 msgstr ""
24450
24451 #. type: =head2
24452 #: ../src/guestfs-actions.pod:878
24453 msgid "guestfs_btrfs_filesystem_resize_argv"
24454 msgstr ""
24455
24456 #. type: verbatim
24457 #: ../src/guestfs-actions.pod:880
24458 #, no-wrap
24459 msgid ""
24460 " int\n"
24461 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
24462 "                                       const char *mountpoint,\n"
24463 "                                       const struct "
24464 "guestfs_btrfs_filesystem_resize_argv *optargs);\n"
24465 "\n"
24466 msgstr ""
24467
24468 #. type: textblock
24469 #: ../src/guestfs-actions.pod:885
24470 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
24471 msgstr ""
24472
24473 #. type: =head2
24474 #: ../src/guestfs-actions.pod:889
24475 msgid "guestfs_case_sensitive_path"
24476 msgstr ""
24477
24478 #. type: verbatim
24479 #: ../src/guestfs-actions.pod:891
24480 #, no-wrap
24481 msgid ""
24482 " char *\n"
24483 " guestfs_case_sensitive_path (guestfs_h *g,\n"
24484 "                              const char *path);\n"
24485 "\n"
24486 msgstr ""
24487
24488 #. type: textblock
24489 #: ../src/guestfs-actions.pod:917
24490 msgid ""
24491 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return "
24492 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
24493 "how the directories were originally created under Windows)."
24494 msgstr ""
24495
24496 #. type: textblock
24497 #: ../src/guestfs-actions.pod:925
24498 msgid "See also C<guestfs_realpath>."
24499 msgstr ""
24500
24501 #. type: textblock
24502 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:7559
24503 msgid "(Added in 1.0.75)"
24504 msgstr ""
24505
24506 #. type: =head2
24507 #: ../src/guestfs-actions.pod:932
24508 msgid "guestfs_cat"
24509 msgstr ""
24510
24511 #. type: verbatim
24512 #: ../src/guestfs-actions.pod:934
24513 #, no-wrap
24514 msgid ""
24515 " char *\n"
24516 " guestfs_cat (guestfs_h *g,\n"
24517 "              const char *path);\n"
24518 "\n"
24519 msgstr ""
24520
24521 #. type: textblock
24522 #: ../src/guestfs-actions.pod:940
24523 msgid ""
24524 "Note that this function cannot correctly handle binary files (specifically, "
24525 "files containing C<\\0> character which is treated as end of string).  For "
24526 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
24527 "functions which have a more complex interface."
24528 msgstr ""
24529
24530 #. type: textblock
24531 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:3906 ../src/guestfs-actions.pod:3988 ../src/guestfs-actions.pod:4005 ../src/guestfs-actions.pod:4093 ../src/guestfs-actions.pod:4501 ../src/guestfs-actions.pod:4515 ../src/guestfs-actions.pod:5876 ../src/guestfs-actions.pod:5890 ../src/guestfs-actions.pod:7712 ../src/guestfs-actions.pod:7726
24532 msgid "(Added in 0.4)"
24533 msgstr ""
24534
24535 #. type: =head2
24536 #: ../src/guestfs-actions.pod:953
24537 msgid "guestfs_checksum"
24538 msgstr ""
24539
24540 #. type: verbatim
24541 #: ../src/guestfs-actions.pod:955
24542 #, no-wrap
24543 msgid ""
24544 " char *\n"
24545 " guestfs_checksum (guestfs_h *g,\n"
24546 "                   const char *csumtype,\n"
24547 "                   const char *path);\n"
24548 "\n"
24549 msgstr ""
24550
24551 #. type: textblock
24552 #: ../src/guestfs-actions.pod:1001
24553 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
24554 msgstr ""
24555
24556 #. type: textblock
24557 #: ../src/guestfs-actions.pod:1003
24558 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
24559 msgstr ""
24560
24561 #. type: textblock
24562 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1427 ../src/guestfs-actions.pod:2285 ../src/guestfs-actions.pod:3604 ../src/guestfs-actions.pod:3633 ../src/guestfs-actions.pod:3694 ../src/guestfs-actions.pod:3721 ../src/guestfs-actions.pod:7415
24563 msgid "(Added in 1.0.2)"
24564 msgstr ""
24565
24566 #. type: =head2
24567 #: ../src/guestfs-actions.pod:1010
24568 msgid "guestfs_checksum_device"
24569 msgstr ""
24570
24571 #. type: verbatim
24572 #: ../src/guestfs-actions.pod:1012
24573 #, no-wrap
24574 msgid ""
24575 " char *\n"
24576 " guestfs_checksum_device (guestfs_h *g,\n"
24577 "                          const char *csumtype,\n"
24578 "                          const char *device);\n"
24579 "\n"
24580 msgstr ""
24581
24582 #. type: textblock
24583 #: ../src/guestfs-actions.pod:1017
24584 msgid ""
24585 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
24586 "device named C<device>.  For the types of checksums supported see the "
24587 "C<guestfs_checksum> command."
24588 msgstr ""
24589
24590 #. type: textblock
24591 #: ../src/guestfs-actions.pod:1024 ../src/guestfs-actions.pod:5325 ../src/guestfs-actions.pod:5460 ../src/guestfs-actions.pod:5497 ../src/guestfs-actions.pod:5515 ../src/guestfs-actions.pod:5697 ../src/guestfs-actions.pod:7324 ../src/guestfs-actions.pod:7338 ../src/guestfs-actions.pod:7738
24592 msgid "(Added in 1.3.2)"
24593 msgstr ""
24594
24595 #. type: =head2
24596 #: ../src/guestfs-actions.pod:1026
24597 msgid "guestfs_checksums_out"
24598 msgstr ""
24599
24600 #. type: verbatim
24601 #: ../src/guestfs-actions.pod:1028
24602 #, no-wrap
24603 msgid ""
24604 " int\n"
24605 " guestfs_checksums_out (guestfs_h *g,\n"
24606 "                        const char *csumtype,\n"
24607 "                        const char *directory,\n"
24608 "                        const char *sumsfile);\n"
24609 "\n"
24610 msgstr ""
24611
24612 #. type: textblock
24613 #: ../src/guestfs-actions.pod:1048
24614 msgid "(Added in 1.3.7)"
24615 msgstr ""
24616
24617 #. type: =head2
24618 #: ../src/guestfs-actions.pod:1050
24619 msgid "guestfs_chmod"
24620 msgstr ""
24621
24622 #. type: verbatim
24623 #: ../src/guestfs-actions.pod:1052
24624 #, no-wrap
24625 msgid ""
24626 " int\n"
24627 " guestfs_chmod (guestfs_h *g,\n"
24628 "                int mode,\n"
24629 "                const char *path);\n"
24630 "\n"
24631 msgstr ""
24632
24633 #. type: =head2
24634 #: ../src/guestfs-actions.pod:1070
24635 msgid "guestfs_chown"
24636 msgstr ""
24637
24638 #. type: verbatim
24639 #: ../src/guestfs-actions.pod:1072
24640 #, no-wrap
24641 msgid ""
24642 " int\n"
24643 " guestfs_chown (guestfs_h *g,\n"
24644 "                int owner,\n"
24645 "                int group,\n"
24646 "                const char *path);\n"
24647 "\n"
24648 msgstr ""
24649
24650 #. type: =head2
24651 #: ../src/guestfs-actions.pod:1088
24652 msgid "guestfs_command"
24653 msgstr ""
24654
24655 #. type: verbatim
24656 #: ../src/guestfs-actions.pod:1090
24657 #, no-wrap
24658 msgid ""
24659 " char *\n"
24660 " guestfs_command (guestfs_h *g,\n"
24661 "                  char *const *arguments);\n"
24662 "\n"
24663 msgstr ""
24664
24665 #. type: textblock
24666 #: ../src/guestfs-actions.pod:1099
24667 msgid ""
24668 "The single parameter is an argv-style list of arguments.  The first element "
24669 "is the name of the program to run.  Subsequent elements are parameters.  The "
24670 "list must be non-empty (ie. must contain a program name).  Note that the "
24671 "command runs directly, and is I<not> invoked via the shell (see "
24672 "C<guestfs_sh>)."
24673 msgstr ""
24674
24675 #. type: textblock
24676 #: ../src/guestfs-actions.pod:1130 ../src/guestfs-actions.pod:1150 ../src/guestfs-actions.pod:1726
24677 msgid "(Added in 0.9.1)"
24678 msgstr ""
24679
24680 #. type: =head2
24681 #: ../src/guestfs-actions.pod:1132
24682 msgid "guestfs_command_lines"
24683 msgstr ""
24684
24685 #. type: verbatim
24686 #: ../src/guestfs-actions.pod:1134
24687 #, no-wrap
24688 msgid ""
24689 " char **\n"
24690 " guestfs_command_lines (guestfs_h *g,\n"
24691 "                        char *const *arguments);\n"
24692 "\n"
24693 msgstr ""
24694
24695 #. type: textblock
24696 #: ../src/guestfs-actions.pod:1138
24697 msgid ""
24698 "This is the same as C<guestfs_command>, but splits the result into a list of "
24699 "lines."
24700 msgstr ""
24701
24702 #. type: textblock
24703 #: ../src/guestfs-actions.pod:1141
24704 msgid "See also: C<guestfs_sh_lines>"
24705 msgstr ""
24706
24707 #. type: =head2
24708 #: ../src/guestfs-actions.pod:1152
24709 msgid "guestfs_compress_device_out"
24710 msgstr ""
24711
24712 #. type: verbatim
24713 #: ../src/guestfs-actions.pod:1154
24714 #, no-wrap
24715 msgid ""
24716 " int\n"
24717 " guestfs_compress_device_out (guestfs_h *g,\n"
24718 "                              const char *ctype,\n"
24719 "                              const char *device,\n"
24720 "                              const char *zdevice,\n"
24721 "                              ...);\n"
24722 "\n"
24723 msgstr ""
24724
24725 #. type: verbatim
24726 #: ../src/guestfs-actions.pod:1166
24727 #, no-wrap
24728 msgid ""
24729 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
24730 "\n"
24731 msgstr ""
24732
24733 #. type: textblock
24734 #: ../src/guestfs-actions.pod:1171
24735 msgid ""
24736 "The C<ctype> and optional C<level> parameters have the same meaning as in "
24737 "C<guestfs_compress_out>."
24738 msgstr ""
24739
24740 #. type: textblock
24741 #: ../src/guestfs-actions.pod:1176 ../src/guestfs-actions.pod:1235 ../src/guestfs-actions.pod:2271 ../src/guestfs-actions.pod:6596
24742 msgid "(Added in 1.13.15)"
24743 msgstr ""
24744
24745 #. type: =head2
24746 #: ../src/guestfs-actions.pod:1178
24747 msgid "guestfs_compress_device_out_va"
24748 msgstr ""
24749
24750 #. type: verbatim
24751 #: ../src/guestfs-actions.pod:1180
24752 #, no-wrap
24753 msgid ""
24754 " int\n"
24755 " guestfs_compress_device_out_va (guestfs_h *g,\n"
24756 "                                 const char *ctype,\n"
24757 "                                 const char *device,\n"
24758 "                                 const char *zdevice,\n"
24759 "                                 va_list args);\n"
24760 "\n"
24761 msgstr ""
24762
24763 #. type: textblock
24764 #: ../src/guestfs-actions.pod:1187
24765 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
24766 msgstr ""
24767
24768 #. type: =head2
24769 #: ../src/guestfs-actions.pod:1191
24770 msgid "guestfs_compress_device_out_argv"
24771 msgstr ""
24772
24773 #. type: verbatim
24774 #: ../src/guestfs-actions.pod:1193
24775 #, no-wrap
24776 msgid ""
24777 " int\n"
24778 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
24779 "                                   const char *ctype,\n"
24780 "                                   const char *device,\n"
24781 "                                   const char *zdevice,\n"
24782 "                                   const struct "
24783 "guestfs_compress_device_out_argv *optargs);\n"
24784 "\n"
24785 msgstr ""
24786
24787 #. type: textblock
24788 #: ../src/guestfs-actions.pod:1200
24789 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
24790 msgstr ""
24791
24792 #. type: =head2
24793 #: ../src/guestfs-actions.pod:1204
24794 msgid "guestfs_compress_out"
24795 msgstr ""
24796
24797 #. type: verbatim
24798 #: ../src/guestfs-actions.pod:1206
24799 #, no-wrap
24800 msgid ""
24801 " int\n"
24802 " guestfs_compress_out (guestfs_h *g,\n"
24803 "                       const char *ctype,\n"
24804 "                       const char *file,\n"
24805 "                       const char *zfile,\n"
24806 "                       ...);\n"
24807 "\n"
24808 msgstr ""
24809
24810 #. type: verbatim
24811 #: ../src/guestfs-actions.pod:1218
24812 #, no-wrap
24813 msgid ""
24814 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
24815 "\n"
24816 msgstr ""
24817
24818 #. type: =head2
24819 #: ../src/guestfs-actions.pod:1237
24820 msgid "guestfs_compress_out_va"
24821 msgstr ""
24822
24823 #. type: verbatim
24824 #: ../src/guestfs-actions.pod:1239
24825 #, no-wrap
24826 msgid ""
24827 " int\n"
24828 " guestfs_compress_out_va (guestfs_h *g,\n"
24829 "                          const char *ctype,\n"
24830 "                          const char *file,\n"
24831 "                          const char *zfile,\n"
24832 "                          va_list args);\n"
24833 "\n"
24834 msgstr ""
24835
24836 #. type: textblock
24837 #: ../src/guestfs-actions.pod:1246
24838 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
24839 msgstr ""
24840
24841 #. type: =head2
24842 #: ../src/guestfs-actions.pod:1250
24843 msgid "guestfs_compress_out_argv"
24844 msgstr ""
24845
24846 #. type: verbatim
24847 #: ../src/guestfs-actions.pod:1252
24848 #, no-wrap
24849 msgid ""
24850 " int\n"
24851 " guestfs_compress_out_argv (guestfs_h *g,\n"
24852 "                            const char *ctype,\n"
24853 "                            const char *file,\n"
24854 "                            const char *zfile,\n"
24855 "                            const struct guestfs_compress_out_argv "
24856 "*optargs);\n"
24857 "\n"
24858 msgstr ""
24859
24860 #. type: textblock
24861 #: ../src/guestfs-actions.pod:1259
24862 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
24863 msgstr ""
24864
24865 #. type: =head2
24866 #: ../src/guestfs-actions.pod:1263
24867 msgid "guestfs_config"
24868 msgstr ""
24869
24870 #. type: verbatim
24871 #: ../src/guestfs-actions.pod:1265
24872 #, no-wrap
24873 msgid ""
24874 " int\n"
24875 " guestfs_config (guestfs_h *g,\n"
24876 "                 const char *qemuparam,\n"
24877 "                 const char *qemuvalue);\n"
24878 "\n"
24879 msgstr ""
24880
24881 #. type: =head2
24882 #: ../src/guestfs-actions.pod:1283
24883 msgid "guestfs_copy_size"
24884 msgstr ""
24885
24886 #. type: verbatim
24887 #: ../src/guestfs-actions.pod:1285
24888 #, no-wrap
24889 msgid ""
24890 " int\n"
24891 " guestfs_copy_size (guestfs_h *g,\n"
24892 "                    const char *src,\n"
24893 "                    const char *dest,\n"
24894 "                    int64_t size);\n"
24895 "\n"
24896 msgstr ""
24897
24898 #. type: textblock
24899 #: ../src/guestfs-actions.pod:1299 ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1453 ../src/guestfs-actions.pod:1498 ../src/guestfs-actions.pod:1875 ../src/guestfs-actions.pod:1897 ../src/guestfs-actions.pod:3804 ../src/guestfs-actions.pod:7410 ../src/guestfs-actions.pod:7444 ../src/guestfs-actions.pod:7951 ../src/guestfs-actions.pod:7974
24900 msgid ""
24901 "This long-running command can generate progress notification messages so "
24902 "that the caller can display a progress bar or indicator.  To receive these "
24903 "messages, the caller must register a progress event callback.  See "
24904 "L<guestfs(3)/GUESTFS_EVENT_PROGRESS>."
24905 msgstr ""
24906
24907 #. type: textblock
24908 #: ../src/guestfs-actions.pod:1304 ../src/guestfs-actions.pod:4528 ../src/guestfs-actions.pod:5903 ../src/guestfs-actions.pod:7645 ../src/guestfs-actions.pod:7665 ../src/guestfs-actions.pod:7751
24909 msgid "(Added in 1.0.87)"
24910 msgstr ""
24911
24912 #. type: =head2
24913 #: ../src/guestfs-actions.pod:1306
24914 msgid "guestfs_cp"
24915 msgstr ""
24916
24917 #. type: verbatim
24918 #: ../src/guestfs-actions.pod:1308
24919 #, no-wrap
24920 msgid ""
24921 " int\n"
24922 " guestfs_cp (guestfs_h *g,\n"
24923 "             const char *src,\n"
24924 "             const char *dest);\n"
24925 "\n"
24926 msgstr ""
24927
24928 #. type: textblock
24929 #: ../src/guestfs-actions.pod:1318 ../src/guestfs-actions.pod:1332 ../src/guestfs-actions.pod:1404 ../src/guestfs-actions.pod:1478 ../src/guestfs-actions.pod:1592 ../src/guestfs-actions.pod:5272 ../src/guestfs-actions.pod:5747
24930 msgid "(Added in 1.0.18)"
24931 msgstr ""
24932
24933 #. type: =head2
24934 #: ../src/guestfs-actions.pod:1320
24935 msgid "guestfs_cp_a"
24936 msgstr ""
24937
24938 #. type: verbatim
24939 #: ../src/guestfs-actions.pod:1322
24940 #, no-wrap
24941 msgid ""
24942 " int\n"
24943 " guestfs_cp_a (guestfs_h *g,\n"
24944 "               const char *src,\n"
24945 "               const char *dest);\n"
24946 "\n"
24947 msgstr ""
24948
24949 #. type: =head2
24950 #: ../src/guestfs-actions.pod:1334
24951 msgid "guestfs_dd"
24952 msgstr ""
24953
24954 #. type: verbatim
24955 #: ../src/guestfs-actions.pod:1336
24956 #, no-wrap
24957 msgid ""
24958 " int\n"
24959 " guestfs_dd (guestfs_h *g,\n"
24960 "             const char *src,\n"
24961 "             const char *dest);\n"
24962 "\n"
24963 msgstr ""
24964
24965 #. type: textblock
24966 #: ../src/guestfs-actions.pod:1346
24967 msgid ""
24968 "If the destination is a device, it must be as large or larger than the "
24969 "source file or device, otherwise the copy will fail.  This command cannot do "
24970 "partial copies (see C<guestfs_copy_size>)."
24971 msgstr ""
24972
24973 #. type: =head2
24974 #: ../src/guestfs-actions.pod:1354
24975 msgid "guestfs_df"
24976 msgstr ""
24977
24978 #. type: verbatim
24979 #: ../src/guestfs-actions.pod:1356
24980 #, no-wrap
24981 msgid ""
24982 " char *\n"
24983 " guestfs_df (guestfs_h *g);\n"
24984 "\n"
24985 msgstr ""
24986
24987 #. type: textblock
24988 #: ../src/guestfs-actions.pod:1361 ../src/guestfs-actions.pod:1378
24989 msgid ""
24990 "This command is mostly useful for interactive sessions.  It is I<not> "
24991 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
24992 "from programs."
24993 msgstr ""
24994
24995 #. type: textblock
24996 #: ../src/guestfs-actions.pod:1368 ../src/guestfs-actions.pod:1385 ../src/guestfs-actions.pod:1503 ../src/guestfs-actions.pod:2510 ../src/guestfs-actions.pod:2534 ../src/guestfs-actions.pod:2602 ../src/guestfs-actions.pod:4638 ../src/guestfs-actions.pod:5172 ../src/guestfs-actions.pod:7148 ../src/guestfs-actions.pod:7172 ../src/guestfs-actions.pod:7791 ../src/guestfs-actions.pod:7804 ../src/guestfs-actions.pod:7817
24997 msgid "(Added in 1.0.54)"
24998 msgstr ""
24999
25000 #. type: =head2
25001 #: ../src/guestfs-actions.pod:1370
25002 msgid "guestfs_df_h"
25003 msgstr ""
25004
25005 #. type: verbatim
25006 #: ../src/guestfs-actions.pod:1372
25007 #, no-wrap
25008 msgid ""
25009 " char *\n"
25010 " guestfs_df_h (guestfs_h *g);\n"
25011 "\n"
25012 msgstr ""
25013
25014 #. type: =head2
25015 #: ../src/guestfs-actions.pod:1387
25016 msgid "guestfs_dmesg"
25017 msgstr ""
25018
25019 #. type: verbatim
25020 #: ../src/guestfs-actions.pod:1389
25021 #, no-wrap
25022 msgid ""
25023 " char *\n"
25024 " guestfs_dmesg (guestfs_h *g);\n"
25025 "\n"
25026 msgstr ""
25027
25028 #. type: textblock
25029 #: ../src/guestfs-actions.pod:1396
25030 msgid ""
25031 "Another way to get the same information is to enable verbose messages with "
25032 "C<guestfs_set_verbose> or by setting the environment variable "
25033 "C<LIBGUESTFS_DEBUG=1> before running the program."
25034 msgstr ""
25035
25036 #. type: =head2
25037 #: ../src/guestfs-actions.pod:1406
25038 msgid "guestfs_download"
25039 msgstr ""
25040
25041 #. type: verbatim
25042 #: ../src/guestfs-actions.pod:1408
25043 #, no-wrap
25044 msgid ""
25045 " int\n"
25046 " guestfs_download (guestfs_h *g,\n"
25047 "                   const char *remotefilename,\n"
25048 "                   const char *filename);\n"
25049 "\n"
25050 msgstr ""
25051
25052 #. type: textblock
25053 #: ../src/guestfs-actions.pod:1418
25054 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
25055 msgstr ""
25056
25057 #. type: =head2
25058 #: ../src/guestfs-actions.pod:1429
25059 msgid "guestfs_download_offset"
25060 msgstr ""
25061
25062 #. type: verbatim
25063 #: ../src/guestfs-actions.pod:1431
25064 #, no-wrap
25065 msgid ""
25066 " int\n"
25067 " guestfs_download_offset (guestfs_h *g,\n"
25068 "                          const char *remotefilename,\n"
25069 "                          const char *filename,\n"
25070 "                          int64_t offset,\n"
25071 "                          int64_t size);\n"
25072 "\n"
25073 msgstr ""
25074
25075 #. type: textblock
25076 #: ../src/guestfs-actions.pod:1444
25077 msgid ""
25078 "Note that there is no limit on the amount of data that can be downloaded "
25079 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
25080 "full amount unless an error occurs."
25081 msgstr ""
25082
25083 #. type: textblock
25084 #: ../src/guestfs-actions.pod:1449
25085 msgid "See also C<guestfs_download>, C<guestfs_pread>."
25086 msgstr ""
25087
25088 #. type: textblock
25089 #: ../src/guestfs-actions.pod:1458 ../src/guestfs-actions.pod:7449
25090 msgid "(Added in 1.5.17)"
25091 msgstr ""
25092
25093 #. type: =head2
25094 #: ../src/guestfs-actions.pod:1460
25095 msgid "guestfs_drop_caches"
25096 msgstr ""
25097
25098 #. type: verbatim
25099 #: ../src/guestfs-actions.pod:1462
25100 #, no-wrap
25101 msgid ""
25102 " int\n"
25103 " guestfs_drop_caches (guestfs_h *g,\n"
25104 "                      int whattodrop);\n"
25105 "\n"
25106 msgstr ""
25107
25108 #. type: =head2
25109 #: ../src/guestfs-actions.pod:1480
25110 msgid "guestfs_du"
25111 msgstr ""
25112
25113 #. type: verbatim
25114 #: ../src/guestfs-actions.pod:1482
25115 #, no-wrap
25116 msgid ""
25117 " int64_t\n"
25118 " guestfs_du (guestfs_h *g,\n"
25119 "             const char *path);\n"
25120 "\n"
25121 msgstr ""
25122
25123 #. type: =head2
25124 #: ../src/guestfs-actions.pod:1505
25125 msgid "guestfs_e2fsck_f"
25126 msgstr ""
25127
25128 #. type: verbatim
25129 #: ../src/guestfs-actions.pod:1507
25130 #, no-wrap
25131 msgid ""
25132 " int\n"
25133 " guestfs_e2fsck_f (guestfs_h *g,\n"
25134 "                   const char *device);\n"
25135 "\n"
25136 msgstr ""
25137
25138 #. type: textblock
25139 #: ../src/guestfs-actions.pod:1515
25140 msgid ""
25141 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
25142 "Normally you should use C<guestfs_fsck>."
25143 msgstr ""
25144
25145 #. type: textblock
25146 #: ../src/guestfs-actions.pod:1520
25147 msgid "(Added in 1.0.29)"
25148 msgstr ""
25149
25150 #. type: =head2
25151 #: ../src/guestfs-actions.pod:1522
25152 msgid "guestfs_echo_daemon"
25153 msgstr ""
25154
25155 #. type: verbatim
25156 #: ../src/guestfs-actions.pod:1524
25157 #, no-wrap
25158 msgid ""
25159 " char *\n"
25160 " guestfs_echo_daemon (guestfs_h *g,\n"
25161 "                      char *const *words);\n"
25162 "\n"
25163 msgstr ""
25164
25165 #. type: textblock
25166 #: ../src/guestfs-actions.pod:1533
25167 msgid "See also C<guestfs_ping_daemon>."
25168 msgstr ""
25169
25170 #. type: textblock
25171 #: ../src/guestfs-actions.pod:1538 ../src/guestfs-actions.pod:2296 ../src/guestfs-actions.pod:6620
25172 msgid "(Added in 1.0.69)"
25173 msgstr ""
25174
25175 #. type: =head2
25176 #: ../src/guestfs-actions.pod:1540
25177 msgid "guestfs_egrep"
25178 msgstr ""
25179
25180 #. type: verbatim
25181 #: ../src/guestfs-actions.pod:1542
25182 #, no-wrap
25183 msgid ""
25184 " char **\n"
25185 " guestfs_egrep (guestfs_h *g,\n"
25186 "                const char *regex,\n"
25187 "                const char *path);\n"
25188 "\n"
25189 msgstr ""
25190
25191 #. type: textblock
25192 #: ../src/guestfs-actions.pod:1557 ../src/guestfs-actions.pod:1576 ../src/guestfs-actions.pod:1633 ../src/guestfs-actions.pod:1679 ../src/guestfs-actions.pod:1698 ../src/guestfs-actions.pod:2426 ../src/guestfs-actions.pod:2445 ../src/guestfs-actions.pod:2623 ../src/guestfs-actions.pod:2636 ../src/guestfs-actions.pod:2651 ../src/guestfs-actions.pod:2697 ../src/guestfs-actions.pod:2719 ../src/guestfs-actions.pod:2732 ../src/guestfs-actions.pod:4018 ../src/guestfs-actions.pod:4032 ../src/guestfs-actions.pod:4045 ../src/guestfs-actions.pod:4059 ../src/guestfs-actions.pod:5060 ../src/guestfs-actions.pod:6081 ../src/guestfs-actions.pod:6130 ../src/guestfs-actions.pod:7016 ../src/guestfs-actions.pod:7028 ../src/guestfs-actions.pod:7041 ../src/guestfs-actions.pod:7054 ../src/guestfs-actions.pod:7076 ../src/guestfs-actions.pod:7089 ../src/guestfs-actions.pod:7102 ../src/guestfs-actions.pod:7115 ../src/guestfs-actions.pod:7909 ../src/guestfs-actions.pod:7928 ../src/guestfs-actions.pod:8022 ../src/guestfs-actions.pod:8041 ../src/guestfs-actions.pod:8087 ../src/guestfs-actions.pod:8106
25193 msgid "(Added in 1.0.66)"
25194 msgstr ""
25195
25196 #. type: =head2
25197 #: ../src/guestfs-actions.pod:1559
25198 msgid "guestfs_egrepi"
25199 msgstr ""
25200
25201 #. type: verbatim
25202 #: ../src/guestfs-actions.pod:1561
25203 #, no-wrap
25204 msgid ""
25205 " char **\n"
25206 " guestfs_egrepi (guestfs_h *g,\n"
25207 "                 const char *regex,\n"
25208 "                 const char *path);\n"
25209 "\n"
25210 msgstr ""
25211
25212 #. type: =head2
25213 #: ../src/guestfs-actions.pod:1578
25214 msgid "guestfs_equal"
25215 msgstr ""
25216
25217 #. type: verbatim
25218 #: ../src/guestfs-actions.pod:1580
25219 #, no-wrap
25220 msgid ""
25221 " int\n"
25222 " guestfs_equal (guestfs_h *g,\n"
25223 "                const char *file1,\n"
25224 "                const char *file2);\n"
25225 "\n"
25226 msgstr ""
25227
25228 #. type: =head2
25229 #: ../src/guestfs-actions.pod:1594
25230 msgid "guestfs_exists"
25231 msgstr ""
25232
25233 #. type: verbatim
25234 #: ../src/guestfs-actions.pod:1596
25235 #, no-wrap
25236 msgid ""
25237 " int\n"
25238 " guestfs_exists (guestfs_h *g,\n"
25239 "                 const char *path);\n"
25240 "\n"
25241 msgstr ""
25242
25243 #. type: textblock
25244 #: ../src/guestfs-actions.pod:1603
25245 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
25246 msgstr ""
25247
25248 #. type: =head2
25249 #: ../src/guestfs-actions.pod:1609
25250 msgid "guestfs_fallocate"
25251 msgstr ""
25252
25253 #. type: verbatim
25254 #: ../src/guestfs-actions.pod:1611
25255 #, no-wrap
25256 msgid ""
25257 " int\n"
25258 " guestfs_fallocate (guestfs_h *g,\n"
25259 "                    const char *path,\n"
25260 "                    int len);\n"
25261 "\n"
25262 msgstr ""
25263
25264 #. type: textblock
25265 #: ../src/guestfs-actions.pod:1616
25266 msgid ""
25267 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
25268 "call instead."
25269 msgstr ""
25270
25271 #. type: =head2
25272 #: ../src/guestfs-actions.pod:1635
25273 msgid "guestfs_fallocate64"
25274 msgstr ""
25275
25276 #. type: verbatim
25277 #: ../src/guestfs-actions.pod:1637
25278 #, no-wrap
25279 msgid ""
25280 " int\n"
25281 " guestfs_fallocate64 (guestfs_h *g,\n"
25282 "                      const char *path,\n"
25283 "                      int64_t len);\n"
25284 "\n"
25285 msgstr ""
25286
25287 #. type: textblock
25288 #: ../src/guestfs-actions.pod:1646
25289 msgid ""
25290 "Note that this call allocates disk blocks for the file.  To create a sparse "
25291 "file use C<guestfs_truncate_size> instead."
25292 msgstr ""
25293
25294 #. type: textblock
25295 #: ../src/guestfs-actions.pod:1649
25296 msgid ""
25297 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
25298 "oversight it only allowed 30 bit lengths to be specified, effectively "
25299 "limiting the maximum size of files created through that call to 1GB."
25300 msgstr ""
25301
25302 #. type: textblock
25303 #: ../src/guestfs-actions.pod:1660
25304 msgid "(Added in 1.3.17)"
25305 msgstr ""
25306
25307 #. type: =head2
25308 #: ../src/guestfs-actions.pod:1662
25309 msgid "guestfs_fgrep"
25310 msgstr ""
25311
25312 #. type: verbatim
25313 #: ../src/guestfs-actions.pod:1664
25314 #, no-wrap
25315 msgid ""
25316 " char **\n"
25317 " guestfs_fgrep (guestfs_h *g,\n"
25318 "                const char *pattern,\n"
25319 "                const char *path);\n"
25320 "\n"
25321 msgstr ""
25322
25323 #. type: =head2
25324 #: ../src/guestfs-actions.pod:1681
25325 msgid "guestfs_fgrepi"
25326 msgstr ""
25327
25328 #. type: verbatim
25329 #: ../src/guestfs-actions.pod:1683
25330 #, no-wrap
25331 msgid ""
25332 " char **\n"
25333 " guestfs_fgrepi (guestfs_h *g,\n"
25334 "                 const char *pattern,\n"
25335 "                 const char *path);\n"
25336 "\n"
25337 msgstr ""
25338
25339 #. type: =head2
25340 #: ../src/guestfs-actions.pod:1700
25341 msgid "guestfs_file"
25342 msgstr ""
25343
25344 #. type: verbatim
25345 #: ../src/guestfs-actions.pod:1702
25346 #, no-wrap
25347 msgid ""
25348 " char *\n"
25349 " guestfs_file (guestfs_h *g,\n"
25350 "               const char *path);\n"
25351 "\n"
25352 msgstr ""
25353
25354 #. type: textblock
25355 #: ../src/guestfs-actions.pod:1720
25356 msgid ""
25357 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
25358 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
25359 msgstr ""
25360
25361 #. type: =head2
25362 #: ../src/guestfs-actions.pod:1728
25363 msgid "guestfs_file_architecture"
25364 msgstr ""
25365
25366 #. type: verbatim
25367 #: ../src/guestfs-actions.pod:1730
25368 #, no-wrap
25369 msgid ""
25370 " char *\n"
25371 " guestfs_file_architecture (guestfs_h *g,\n"
25372 "                            const char *filename);\n"
25373 "\n"
25374 msgstr ""
25375
25376 #. type: textblock
25377 #: ../src/guestfs-actions.pod:1838 ../src/guestfs-actions.pod:2001 ../src/guestfs-actions.pod:2018 ../src/guestfs-actions.pod:2752 ../src/guestfs-actions.pod:2854 ../src/guestfs-actions.pod:2920 ../src/guestfs-actions.pod:3107 ../src/guestfs-actions.pod:3125 ../src/guestfs-actions.pod:3165 ../src/guestfs-actions.pod:3241 ../src/guestfs-actions.pod:3338 ../src/guestfs-actions.pod:3575 ../src/guestfs-actions.pod:3707
25378 msgid "(Added in 1.5.3)"
25379 msgstr ""
25380
25381 #. type: =head2
25382 #: ../src/guestfs-actions.pod:1840
25383 msgid "guestfs_filesize"
25384 msgstr ""
25385
25386 #. type: verbatim
25387 #: ../src/guestfs-actions.pod:1842
25388 #, no-wrap
25389 msgid ""
25390 " int64_t\n"
25391 " guestfs_filesize (guestfs_h *g,\n"
25392 "                   const char *file);\n"
25393 "\n"
25394 msgstr ""
25395
25396 #. type: textblock
25397 #: ../src/guestfs-actions.pod:1848
25398 msgid ""
25399 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
25400 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
25401 "devices, use C<guestfs_blockdev_getsize64>."
25402 msgstr ""
25403
25404 #. type: textblock
25405 #: ../src/guestfs-actions.pod:1854
25406 msgid "(Added in 1.0.82)"
25407 msgstr ""
25408
25409 #. type: =head2
25410 #: ../src/guestfs-actions.pod:1856
25411 msgid "guestfs_fill"
25412 msgstr ""
25413
25414 #. type: verbatim
25415 #: ../src/guestfs-actions.pod:1858
25416 #, no-wrap
25417 msgid ""
25418 " int\n"
25419 " guestfs_fill (guestfs_h *g,\n"
25420 "               int c,\n"
25421 "               int len,\n"
25422 "               const char *path);\n"
25423 "\n"
25424 msgstr ""
25425
25426 #. type: textblock
25427 #: ../src/guestfs-actions.pod:1868
25428 msgid ""
25429 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
25430 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
25431 "bytes use C<guestfs_fill_pattern>."
25432 msgstr ""
25433
25434 #. type: textblock
25435 #: ../src/guestfs-actions.pod:1880
25436 msgid "(Added in 1.0.79)"
25437 msgstr ""
25438
25439 #. type: =head2
25440 #: ../src/guestfs-actions.pod:1882
25441 msgid "guestfs_fill_pattern"
25442 msgstr ""
25443
25444 #. type: verbatim
25445 #: ../src/guestfs-actions.pod:1884
25446 #, no-wrap
25447 msgid ""
25448 " int\n"
25449 " guestfs_fill_pattern (guestfs_h *g,\n"
25450 "                       const char *pattern,\n"
25451 "                       int len,\n"
25452 "                       const char *path);\n"
25453 "\n"
25454 msgstr ""
25455
25456 #. type: textblock
25457 #: ../src/guestfs-actions.pod:1890
25458 msgid ""
25459 "This function is like C<guestfs_fill> except that it creates a new file of "
25460 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
25461 "pattern is truncated if necessary to ensure the length of the file is "
25462 "exactly C<len> bytes."
25463 msgstr ""
25464
25465 #. type: textblock
25466 #: ../src/guestfs-actions.pod:1902
25467 msgid "(Added in 1.3.12)"
25468 msgstr ""
25469
25470 #. type: =head2
25471 #: ../src/guestfs-actions.pod:1904
25472 msgid "guestfs_find"
25473 msgstr ""
25474
25475 #. type: verbatim
25476 #: ../src/guestfs-actions.pod:1906
25477 #, no-wrap
25478 msgid ""
25479 " char **\n"
25480 " guestfs_find (guestfs_h *g,\n"
25481 "               const char *directory);\n"
25482 "\n"
25483 msgstr ""
25484
25485 #. type: textblock
25486 #: ../src/guestfs-actions.pod:1922
25487 msgid "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
25488 msgstr ""
25489
25490 #. type: textblock
25491 #: ../src/guestfs-actions.pod:1935
25492 msgid "See also C<guestfs_find0>."
25493 msgstr ""
25494
25495 #. type: textblock
25496 #: ../src/guestfs-actions.pod:1944 ../src/guestfs-actions.pod:4465 ../src/guestfs-actions.pod:6165
25497 msgid "(Added in 1.0.27)"
25498 msgstr ""
25499
25500 #. type: =head2
25501 #: ../src/guestfs-actions.pod:1946
25502 msgid "guestfs_find0"
25503 msgstr ""
25504
25505 #. type: verbatim
25506 #: ../src/guestfs-actions.pod:1948
25507 #, no-wrap
25508 msgid ""
25509 " int\n"
25510 " guestfs_find0 (guestfs_h *g,\n"
25511 "                const char *directory,\n"
25512 "                const char *files);\n"
25513 "\n"
25514 msgstr ""
25515
25516 #. type: textblock
25517 #: ../src/guestfs-actions.pod:1957
25518 msgid ""
25519 "This command works the same way as C<guestfs_find> with the following "
25520 "exceptions:"
25521 msgstr ""
25522
25523 #. type: textblock
25524 #: ../src/guestfs-actions.pod:1984
25525 msgid "(Added in 1.0.74)"
25526 msgstr ""
25527
25528 #. type: =head2
25529 #: ../src/guestfs-actions.pod:1986
25530 msgid "guestfs_findfs_label"
25531 msgstr ""
25532
25533 #. type: verbatim
25534 #: ../src/guestfs-actions.pod:1988
25535 #, no-wrap
25536 msgid ""
25537 " char *\n"
25538 " guestfs_findfs_label (guestfs_h *g,\n"
25539 "                       const char *label);\n"
25540 "\n"
25541 msgstr ""
25542
25543 #. type: textblock
25544 #: ../src/guestfs-actions.pod:1996
25545 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
25546 msgstr ""
25547
25548 #. type: =head2
25549 #: ../src/guestfs-actions.pod:2003
25550 msgid "guestfs_findfs_uuid"
25551 msgstr ""
25552
25553 #. type: verbatim
25554 #: ../src/guestfs-actions.pod:2005
25555 #, no-wrap
25556 msgid ""
25557 " char *\n"
25558 " guestfs_findfs_uuid (guestfs_h *g,\n"
25559 "                      const char *uuid);\n"
25560 "\n"
25561 msgstr ""
25562
25563 #. type: textblock
25564 #: ../src/guestfs-actions.pod:2013
25565 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
25566 msgstr ""
25567
25568 #. type: =head2
25569 #: ../src/guestfs-actions.pod:2020
25570 msgid "guestfs_fsck"
25571 msgstr ""
25572
25573 #. type: verbatim
25574 #: ../src/guestfs-actions.pod:2022
25575 #, no-wrap
25576 msgid ""
25577 " int\n"
25578 " guestfs_fsck (guestfs_h *g,\n"
25579 "               const char *fstype,\n"
25580 "               const char *device);\n"
25581 "\n"
25582 msgstr ""
25583
25584 #. type: textblock
25585 #: ../src/guestfs-actions.pod:2057 ../src/guestfs-actions.pod:7956
25586 msgid "(Added in 1.0.16)"
25587 msgstr ""
25588
25589 #. type: =head2
25590 #: ../src/guestfs-actions.pod:2059
25591 msgid "guestfs_get_append"
25592 msgstr ""
25593
25594 #. type: verbatim
25595 #: ../src/guestfs-actions.pod:2061
25596 #, no-wrap
25597 msgid ""
25598 " const char *\n"
25599 " guestfs_get_append (guestfs_h *g);\n"
25600 "\n"
25601 msgstr ""
25602
25603 #. type: textblock
25604 #: ../src/guestfs-actions.pod:2069
25605 msgid ""
25606 "This function returns a string which may be NULL.  There is no way to return "
25607 "an error from this function.  The string is owned by the guest handle and "
25608 "must I<not> be freed."
25609 msgstr ""
25610
25611 #. type: textblock
25612 #: ../src/guestfs-actions.pod:2073 ../src/guestfs-actions.pod:5843 ../src/guestfs-actions.pod:6325 ../src/guestfs-actions.pod:6783 ../src/guestfs-actions.pod:6802 ../src/guestfs-actions.pod:6818 ../src/guestfs-actions.pod:6842 ../src/guestfs-actions.pod:7596 ../src/guestfs-actions.pod:7611 ../src/guestfs-actions.pod:8003
25613 msgid "(Added in 1.0.26)"
25614 msgstr ""
25615
25616 #. type: =head2
25617 #: ../src/guestfs-actions.pod:2075
25618 msgid "guestfs_get_attach_method"
25619 msgstr ""
25620
25621 #. type: verbatim
25622 #: ../src/guestfs-actions.pod:2077
25623 #, no-wrap
25624 msgid ""
25625 " char *\n"
25626 " guestfs_get_attach_method (guestfs_h *g);\n"
25627 "\n"
25628 msgstr ""
25629
25630 #. type: textblock
25631 #: ../src/guestfs-actions.pod:2080
25632 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
25633 msgstr ""
25634
25635 #. type: textblock
25636 #: ../src/guestfs-actions.pod:2085 ../src/guestfs-actions.pod:6355
25637 msgid "(Added in 1.9.8)"
25638 msgstr ""
25639
25640 #. type: =head2
25641 #: ../src/guestfs-actions.pod:2087
25642 msgid "guestfs_get_autosync"
25643 msgstr ""
25644
25645 #. type: verbatim
25646 #: ../src/guestfs-actions.pod:2089
25647 #, no-wrap
25648 msgid ""
25649 " int\n"
25650 " guestfs_get_autosync (guestfs_h *g);\n"
25651 "\n"
25652 msgstr ""
25653
25654 #. type: =head2
25655 #: ../src/guestfs-actions.pod:2098
25656 msgid "guestfs_get_direct"
25657 msgstr ""
25658
25659 #. type: verbatim
25660 #: ../src/guestfs-actions.pod:2100
25661 #, no-wrap
25662 msgid ""
25663 " int\n"
25664 " guestfs_get_direct (guestfs_h *g);\n"
25665 "\n"
25666 msgstr ""
25667
25668 #. type: textblock
25669 #: ../src/guestfs-actions.pod:2107 ../src/guestfs-actions.pod:6396
25670 msgid "(Added in 1.0.72)"
25671 msgstr ""
25672
25673 #. type: =head2
25674 #: ../src/guestfs-actions.pod:2109
25675 msgid "guestfs_get_e2label"
25676 msgstr ""
25677
25678 #. type: verbatim
25679 #: ../src/guestfs-actions.pod:2111
25680 #, no-wrap
25681 msgid ""
25682 " char *\n"
25683 " guestfs_get_e2label (guestfs_h *g,\n"
25684 "                      const char *device);\n"
25685 "\n"
25686 msgstr ""
25687
25688 #. type: textblock
25689 #: ../src/guestfs-actions.pod:2115
25690 msgid ""
25691 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
25692 "call instead."
25693 msgstr ""
25694
25695 #. type: textblock
25696 #: ../src/guestfs-actions.pod:2128 ../src/guestfs-actions.pod:2149 ../src/guestfs-actions.pod:6414 ../src/guestfs-actions.pod:6433
25697 msgid "(Added in 1.0.15)"
25698 msgstr ""
25699
25700 #. type: =head2
25701 #: ../src/guestfs-actions.pod:2130
25702 msgid "guestfs_get_e2uuid"
25703 msgstr ""
25704
25705 #. type: verbatim
25706 #: ../src/guestfs-actions.pod:2132
25707 #, no-wrap
25708 msgid ""
25709 " char *\n"
25710 " guestfs_get_e2uuid (guestfs_h *g,\n"
25711 "                     const char *device);\n"
25712 "\n"
25713 msgstr ""
25714
25715 #. type: textblock
25716 #: ../src/guestfs-actions.pod:2136
25717 msgid ""
25718 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
25719 "call instead."
25720 msgstr ""
25721
25722 #. type: =head2
25723 #: ../src/guestfs-actions.pod:2151
25724 msgid "guestfs_get_memsize"
25725 msgstr ""
25726
25727 #. type: verbatim
25728 #: ../src/guestfs-actions.pod:2153
25729 #, no-wrap
25730 msgid ""
25731 " int\n"
25732 " guestfs_get_memsize (guestfs_h *g);\n"
25733 "\n"
25734 msgstr ""
25735
25736 #. type: textblock
25737 #: ../src/guestfs-actions.pod:2159
25738 msgid ""
25739 "If C<guestfs_set_memsize> was not called on this handle, and if "
25740 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
25741 "value for memsize."
25742 msgstr ""
25743
25744 #. type: textblock
25745 #: ../src/guestfs-actions.pod:2168 ../src/guestfs-actions.pod:4756 ../src/guestfs-actions.pod:4965 ../src/guestfs-actions.pod:4984 ../src/guestfs-actions.pod:5003 ../src/guestfs-actions.pod:5015 ../src/guestfs-actions.pod:5032 ../src/guestfs-actions.pod:5045 ../src/guestfs-actions.pod:6068 ../src/guestfs-actions.pod:6454 ../src/guestfs-actions.pod:6750 ../src/guestfs-actions.pod:7365
25746 msgid "(Added in 1.0.55)"
25747 msgstr ""
25748
25749 #. type: =head2
25750 #: ../src/guestfs-actions.pod:2170
25751 msgid "guestfs_get_network"
25752 msgstr ""
25753
25754 #. type: verbatim
25755 #: ../src/guestfs-actions.pod:2172
25756 #, no-wrap
25757 msgid ""
25758 " int\n"
25759 " guestfs_get_network (guestfs_h *g);\n"
25760 "\n"
25761 msgstr ""
25762
25763 #. type: textblock
25764 #: ../src/guestfs-actions.pod:2179 ../src/guestfs-actions.pod:6473
25765 msgid "(Added in 1.5.4)"
25766 msgstr ""
25767
25768 #. type: =head2
25769 #: ../src/guestfs-actions.pod:2181
25770 msgid "guestfs_get_path"
25771 msgstr ""
25772
25773 #. type: verbatim
25774 #: ../src/guestfs-actions.pod:2183
25775 #, no-wrap
25776 msgid ""
25777 " const char *\n"
25778 " guestfs_get_path (guestfs_h *g);\n"
25779 "\n"
25780 msgstr ""
25781
25782 #. type: textblock
25783 #: ../src/guestfs-actions.pod:2191 ../src/guestfs-actions.pod:2231
25784 msgid ""
25785 "This function returns a string, or NULL on error.  The string is owned by "
25786 "the guest handle and must I<not> be freed."
25787 msgstr ""
25788
25789 #. type: =head2
25790 #: ../src/guestfs-actions.pod:2196
25791 msgid "guestfs_get_pgroup"
25792 msgstr ""
25793
25794 #. type: verbatim
25795 #: ../src/guestfs-actions.pod:2198
25796 #, no-wrap
25797 msgid ""
25798 " int\n"
25799 " guestfs_get_pgroup (guestfs_h *g);\n"
25800 "\n"
25801 msgstr ""
25802
25803 #. type: textblock
25804 #: ../src/guestfs-actions.pod:2205 ../src/guestfs-actions.pod:6509 ../src/guestfs-actions.pod:7857
25805 msgid "(Added in 1.11.18)"
25806 msgstr ""
25807
25808 #. type: =head2
25809 #: ../src/guestfs-actions.pod:2207
25810 msgid "guestfs_get_pid"
25811 msgstr ""
25812
25813 #. type: verbatim
25814 #: ../src/guestfs-actions.pod:2209
25815 #, no-wrap
25816 msgid ""
25817 " int\n"
25818 " guestfs_get_pid (guestfs_h *g);\n"
25819 "\n"
25820 msgstr ""
25821
25822 #. type: textblock
25823 #: ../src/guestfs-actions.pod:2219
25824 msgid "(Added in 1.0.56)"
25825 msgstr ""
25826
25827 #. type: =head2
25828 #: ../src/guestfs-actions.pod:2221
25829 msgid "guestfs_get_qemu"
25830 msgstr ""
25831
25832 #. type: verbatim
25833 #: ../src/guestfs-actions.pod:2223
25834 #, no-wrap
25835 msgid ""
25836 " const char *\n"
25837 " guestfs_get_qemu (guestfs_h *g);\n"
25838 "\n"
25839 msgstr ""
25840
25841 #. type: textblock
25842 #: ../src/guestfs-actions.pod:2234 ../src/guestfs-actions.pod:6537
25843 msgid "(Added in 1.0.6)"
25844 msgstr ""
25845
25846 #. type: =head2
25847 #: ../src/guestfs-actions.pod:2236
25848 msgid "guestfs_get_recovery_proc"
25849 msgstr ""
25850
25851 #. type: verbatim
25852 #: ../src/guestfs-actions.pod:2238
25853 #, no-wrap
25854 msgid ""
25855 " int\n"
25856 " guestfs_get_recovery_proc (guestfs_h *g);\n"
25857 "\n"
25858 msgstr ""
25859
25860 #. type: textblock
25861 #: ../src/guestfs-actions.pod:2245 ../src/guestfs-actions.pod:3829 ../src/guestfs-actions.pod:4160 ../src/guestfs-actions.pod:4563 ../src/guestfs-actions.pod:4595 ../src/guestfs-actions.pod:5773 ../src/guestfs-actions.pod:6116 ../src/guestfs-actions.pod:6561 ../src/guestfs-actions.pod:7268 ../src/guestfs-actions.pod:7288 ../src/guestfs-actions.pod:7480
25862 msgid "(Added in 1.0.77)"
25863 msgstr ""
25864
25865 #. type: =head2
25866 #: ../src/guestfs-actions.pod:2247
25867 msgid "guestfs_get_selinux"
25868 msgstr ""
25869
25870 #. type: verbatim
25871 #: ../src/guestfs-actions.pod:2249
25872 #, no-wrap
25873 msgid ""
25874 " int\n"
25875 " guestfs_get_selinux (guestfs_h *g);\n"
25876 "\n"
25877 msgstr ""
25878
25879 #. type: textblock
25880 #: ../src/guestfs-actions.pod:2252
25881 msgid ""
25882 "This returns the current setting of the selinux flag which is passed to the "
25883 "appliance at boot time.  See C<guestfs_set_selinux>."
25884 msgstr ""
25885
25886 #. type: textblock
25887 #: ../src/guestfs-actions.pod:2260 ../src/guestfs-actions.pod:2334 ../src/guestfs-actions.pod:6580 ../src/guestfs-actions.pod:6654
25888 msgid "(Added in 1.0.67)"
25889 msgstr ""
25890
25891 #. type: =head2
25892 #: ../src/guestfs-actions.pod:2262
25893 msgid "guestfs_get_smp"
25894 msgstr ""
25895
25896 #. type: verbatim
25897 #: ../src/guestfs-actions.pod:2264
25898 #, no-wrap
25899 msgid ""
25900 " int\n"
25901 " guestfs_get_smp (guestfs_h *g);\n"
25902 "\n"
25903 msgstr ""
25904
25905 #. type: =head2
25906 #: ../src/guestfs-actions.pod:2273
25907 msgid "guestfs_get_state"
25908 msgstr ""
25909
25910 #. type: verbatim
25911 #: ../src/guestfs-actions.pod:2275
25912 #, no-wrap
25913 msgid ""
25914 " int\n"
25915 " guestfs_get_state (guestfs_h *g);\n"
25916 "\n"
25917 msgstr ""
25918
25919 #. type: =head2
25920 #: ../src/guestfs-actions.pod:2287
25921 msgid "guestfs_get_trace"
25922 msgstr ""
25923
25924 #. type: verbatim
25925 #: ../src/guestfs-actions.pod:2289
25926 #, no-wrap
25927 msgid ""
25928 " int\n"
25929 " guestfs_get_trace (guestfs_h *g);\n"
25930 "\n"
25931 msgstr ""
25932
25933 #. type: =head2
25934 #: ../src/guestfs-actions.pod:2298
25935 msgid "guestfs_get_umask"
25936 msgstr ""
25937
25938 #. type: verbatim
25939 #: ../src/guestfs-actions.pod:2300
25940 #, no-wrap
25941 msgid ""
25942 " int\n"
25943 " guestfs_get_umask (guestfs_h *g);\n"
25944 "\n"
25945 msgstr ""
25946
25947 #. type: textblock
25948 #: ../src/guestfs-actions.pod:2303
25949 msgid ""
25950 "Return the current umask.  By default the umask is C<022> unless it has been "
25951 "set by calling C<guestfs_umask>."
25952 msgstr ""
25953
25954 #. type: =head2
25955 #: ../src/guestfs-actions.pod:2310
25956 msgid "guestfs_get_verbose"
25957 msgstr ""
25958
25959 #. type: verbatim
25960 #: ../src/guestfs-actions.pod:2312
25961 #, no-wrap
25962 msgid ""
25963 " int\n"
25964 " guestfs_get_verbose (guestfs_h *g);\n"
25965 "\n"
25966 msgstr ""
25967
25968 #. type: =head2
25969 #: ../src/guestfs-actions.pod:2321
25970 msgid "guestfs_getcon"
25971 msgstr ""
25972
25973 #. type: verbatim
25974 #: ../src/guestfs-actions.pod:2323
25975 #, no-wrap
25976 msgid ""
25977 " char *\n"
25978 " guestfs_getcon (guestfs_h *g);\n"
25979 "\n"
25980 msgstr ""
25981
25982 #. type: textblock
25983 #: ../src/guestfs-actions.pod:2328
25984 msgid "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
25985 msgstr ""
25986
25987 #. type: =head2
25988 #: ../src/guestfs-actions.pod:2336
25989 msgid "guestfs_getxattr"
25990 msgstr ""
25991
25992 #. type: verbatim
25993 #: ../src/guestfs-actions.pod:2338
25994 #, no-wrap
25995 msgid ""
25996 " char *\n"
25997 " guestfs_getxattr (guestfs_h *g,\n"
25998 "                   const char *path,\n"
25999 "                   const char *name,\n"
26000 "                   size_t *size_r);\n"
26001 "\n"
26002 msgstr ""
26003
26004 #. type: textblock
26005 #: ../src/guestfs-actions.pod:2344
26006 msgid ""
26007 "Get a single extended attribute from file C<path> named C<name>.  This call "
26008 "follows symlinks.  If you want to lookup an extended attribute for the "
26009 "symlink itself, use C<guestfs_lgetxattr>."
26010 msgstr ""
26011
26012 #. type: textblock
26013 #: ../src/guestfs-actions.pod:2348 ../src/guestfs-actions.pod:3843
26014 msgid ""
26015 "Normally it is better to get all extended attributes from a file in one go "
26016 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
26017 "implementations are buggy and do not provide a way to list out attributes.  "
26018 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
26019 "extended attributes you want in advance and call this function."
26020 msgstr ""
26021
26022 #. type: textblock
26023 #: ../src/guestfs-actions.pod:2358
26024 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
26025 msgstr ""
26026
26027 #. type: textblock
26028 #: ../src/guestfs-actions.pod:2360 ../src/guestfs-actions.pod:2573 ../src/guestfs-actions.pod:3055 ../src/guestfs-actions.pod:3855 ../src/guestfs-actions.pod:5766 ../src/guestfs-actions.pod:5792 ../src/guestfs-actions.pod:5973
26029 msgid ""
26030 "This function returns a buffer, or NULL on error.  The size of the returned "
26031 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
26032 "after use>."
26033 msgstr ""
26034
26035 #. type: textblock
26036 #: ../src/guestfs-actions.pod:2364 ../src/guestfs-actions.pod:3859
26037 msgid "(Added in 1.7.24)"
26038 msgstr ""
26039
26040 #. type: =head2
26041 #: ../src/guestfs-actions.pod:2366
26042 msgid "guestfs_getxattrs"
26043 msgstr ""
26044
26045 #. type: verbatim
26046 #: ../src/guestfs-actions.pod:2368
26047 #, no-wrap
26048 msgid ""
26049 " struct guestfs_xattr_list *\n"
26050 " guestfs_getxattrs (guestfs_h *g,\n"
26051 "                    const char *path);\n"
26052 "\n"
26053 msgstr ""
26054
26055 #. type: textblock
26056 #: ../src/guestfs-actions.pod:2378
26057 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
26058 msgstr ""
26059
26060 #. type: textblock
26061 #: ../src/guestfs-actions.pod:2380 ../src/guestfs-actions.pod:3871 ../src/guestfs-actions.pod:4559
26062 msgid ""
26063 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
26064 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
26065 msgstr ""
26066
26067 #. type: textblock
26068 #: ../src/guestfs-actions.pod:2384 ../src/guestfs-actions.pod:3875 ../src/guestfs-actions.pod:4074 ../src/guestfs-actions.pod:4110 ../src/guestfs-actions.pod:6146 ../src/guestfs-actions.pod:6673 ../src/guestfs-actions.pod:8068
26069 msgid "(Added in 1.0.59)"
26070 msgstr ""
26071
26072 #. type: =head2
26073 #: ../src/guestfs-actions.pod:2386
26074 msgid "guestfs_glob_expand"
26075 msgstr ""
26076
26077 #. type: verbatim
26078 #: ../src/guestfs-actions.pod:2388
26079 #, no-wrap
26080 msgid ""
26081 " char **\n"
26082 " guestfs_glob_expand (guestfs_h *g,\n"
26083 "                      const char *pattern);\n"
26084 "\n"
26085 msgstr ""
26086
26087 #. type: textblock
26088 #: ../src/guestfs-actions.pod:2407 ../src/guestfs-actions.pod:6866 ../src/guestfs-actions.pod:6883
26089 msgid "(Added in 1.0.50)"
26090 msgstr ""
26091
26092 #. type: =head2
26093 #: ../src/guestfs-actions.pod:2409
26094 msgid "guestfs_grep"
26095 msgstr ""
26096
26097 #. type: verbatim
26098 #: ../src/guestfs-actions.pod:2411
26099 #, no-wrap
26100 msgid ""
26101 " char **\n"
26102 " guestfs_grep (guestfs_h *g,\n"
26103 "               const char *regex,\n"
26104 "               const char *path);\n"
26105 "\n"
26106 msgstr ""
26107
26108 #. type: =head2
26109 #: ../src/guestfs-actions.pod:2428
26110 msgid "guestfs_grepi"
26111 msgstr ""
26112
26113 #. type: verbatim
26114 #: ../src/guestfs-actions.pod:2430
26115 #, no-wrap
26116 msgid ""
26117 " char **\n"
26118 " guestfs_grepi (guestfs_h *g,\n"
26119 "                const char *regex,\n"
26120 "                const char *path);\n"
26121 "\n"
26122 msgstr ""
26123
26124 #. type: =head2
26125 #: ../src/guestfs-actions.pod:2447
26126 msgid "guestfs_grub_install"
26127 msgstr ""
26128
26129 #. type: verbatim
26130 #: ../src/guestfs-actions.pod:2449
26131 #, no-wrap
26132 msgid ""
26133 " int\n"
26134 " guestfs_grub_install (guestfs_h *g,\n"
26135 "                       const char *root,\n"
26136 "                       const char *device);\n"
26137 "\n"
26138 msgstr ""
26139
26140 #. type: textblock
26141 #: ../src/guestfs-actions.pod:2492
26142 msgid "(Added in 1.0.17)"
26143 msgstr ""
26144
26145 #. type: =head2
26146 #: ../src/guestfs-actions.pod:2494
26147 msgid "guestfs_head"
26148 msgstr ""
26149
26150 #. type: verbatim
26151 #: ../src/guestfs-actions.pod:2496
26152 #, no-wrap
26153 msgid ""
26154 " char **\n"
26155 " guestfs_head (guestfs_h *g,\n"
26156 "               const char *path);\n"
26157 "\n"
26158 msgstr ""
26159
26160 #. type: =head2
26161 #: ../src/guestfs-actions.pod:2512
26162 msgid "guestfs_head_n"
26163 msgstr ""
26164
26165 #. type: verbatim
26166 #: ../src/guestfs-actions.pod:2514
26167 #, no-wrap
26168 msgid ""
26169 " char **\n"
26170 " guestfs_head_n (guestfs_h *g,\n"
26171 "                 int nrlines,\n"
26172 "                 const char *path);\n"
26173 "\n"
26174 msgstr ""
26175
26176 #. type: =head2
26177 #: ../src/guestfs-actions.pod:2536
26178 msgid "guestfs_hexdump"
26179 msgstr ""
26180
26181 #. type: verbatim
26182 #: ../src/guestfs-actions.pod:2538
26183 #, no-wrap
26184 msgid ""
26185 " char *\n"
26186 " guestfs_hexdump (guestfs_h *g,\n"
26187 "                  const char *path);\n"
26188 "\n"
26189 msgstr ""
26190
26191 #. type: textblock
26192 #: ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:6947 ../src/guestfs-actions.pod:7002
26193 msgid "(Added in 1.0.22)"
26194 msgstr ""
26195
26196 #. type: =head2
26197 #: ../src/guestfs-actions.pod:2553
26198 msgid "guestfs_initrd_cat"
26199 msgstr ""
26200
26201 #. type: verbatim
26202 #: ../src/guestfs-actions.pod:2555
26203 #, no-wrap
26204 msgid ""
26205 " char *\n"
26206 " guestfs_initrd_cat (guestfs_h *g,\n"
26207 "                     const char *initrdpath,\n"
26208 "                     const char *filename,\n"
26209 "                     size_t *size_r);\n"
26210 "\n"
26211 msgstr ""
26212
26213 #. type: textblock
26214 #: ../src/guestfs-actions.pod:2571
26215 msgid "See also C<guestfs_initrd_list>."
26216 msgstr ""
26217
26218 #. type: =head2
26219 #: ../src/guestfs-actions.pod:2582
26220 msgid "guestfs_initrd_list"
26221 msgstr ""
26222
26223 #. type: verbatim
26224 #: ../src/guestfs-actions.pod:2584
26225 #, no-wrap
26226 msgid ""
26227 " char **\n"
26228 " guestfs_initrd_list (guestfs_h *g,\n"
26229 "                      const char *path);\n"
26230 "\n"
26231 msgstr ""
26232
26233 #. type: =head2
26234 #: ../src/guestfs-actions.pod:2604
26235 msgid "guestfs_inotify_add_watch"
26236 msgstr ""
26237
26238 #. type: verbatim
26239 #: ../src/guestfs-actions.pod:2606
26240 #, no-wrap
26241 msgid ""
26242 " int64_t\n"
26243 " guestfs_inotify_add_watch (guestfs_h *g,\n"
26244 "                            const char *path,\n"
26245 "                            int mask);\n"
26246 "\n"
26247 msgstr ""
26248
26249 #. type: =head2
26250 #: ../src/guestfs-actions.pod:2625
26251 msgid "guestfs_inotify_close"
26252 msgstr ""
26253
26254 #. type: verbatim
26255 #: ../src/guestfs-actions.pod:2627
26256 #, no-wrap
26257 msgid ""
26258 " int\n"
26259 " guestfs_inotify_close (guestfs_h *g);\n"
26260 "\n"
26261 msgstr ""
26262
26263 #. type: =head2
26264 #: ../src/guestfs-actions.pod:2638
26265 msgid "guestfs_inotify_files"
26266 msgstr ""
26267
26268 #. type: verbatim
26269 #: ../src/guestfs-actions.pod:2640
26270 #, no-wrap
26271 msgid ""
26272 " char **\n"
26273 " guestfs_inotify_files (guestfs_h *g);\n"
26274 "\n"
26275 msgstr ""
26276
26277 #. type: textblock
26278 #: ../src/guestfs-actions.pod:2643
26279 msgid ""
26280 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
26281 "returns a list of pathnames of objects that were touched.  The returned "
26282 "pathnames are sorted and deduplicated."
26283 msgstr ""
26284
26285 #. type: =head2
26286 #: ../src/guestfs-actions.pod:2653
26287 msgid "guestfs_inotify_init"
26288 msgstr ""
26289
26290 #. type: verbatim
26291 #: ../src/guestfs-actions.pod:2655
26292 #, no-wrap
26293 msgid ""
26294 " int\n"
26295 " guestfs_inotify_init (guestfs_h *g,\n"
26296 "                       int maxevents);\n"
26297 "\n"
26298 msgstr ""
26299
26300 #. type: textblock
26301 #: ../src/guestfs-actions.pod:2663
26302 msgid ""
26303 "C<maxevents> is the maximum number of events which will be queued up between "
26304 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
26305 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
26306 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
26307 "throws away events, but records the fact that it threw them away by setting "
26308 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
26309 "C<guestfs_inotify_read>)."
26310 msgstr ""
26311
26312 #. type: textblock
26313 #: ../src/guestfs-actions.pod:2673
26314 msgid ""
26315 "Before any events are generated, you have to add some watches to the "
26316 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
26317 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
26318 msgstr ""
26319
26320 #. type: textblock
26321 #: ../src/guestfs-actions.pod:2679
26322 msgid ""
26323 "Queued up events should be read periodically by calling "
26324 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
26325 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
26326 "often enough then you risk the internal queue overflowing."
26327 msgstr ""
26328
26329 #. type: textblock
26330 #: ../src/guestfs-actions.pod:2686
26331 msgid ""
26332 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
26333 "This also removes any watches automatically."
26334 msgstr ""
26335
26336 #. type: =head2
26337 #: ../src/guestfs-actions.pod:2699
26338 msgid "guestfs_inotify_read"
26339 msgstr ""
26340
26341 #. type: verbatim
26342 #: ../src/guestfs-actions.pod:2701
26343 #, no-wrap
26344 msgid ""
26345 " struct guestfs_inotify_event_list *\n"
26346 " guestfs_inotify_read (guestfs_h *g);\n"
26347 "\n"
26348 msgstr ""
26349
26350 #. type: textblock
26351 #: ../src/guestfs-actions.pod:2715
26352 msgid ""
26353 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
26354 "there was an error.  I<The caller must call "
26355 "C<guestfs_free_inotify_event_list> after use>."
26356 msgstr ""
26357
26358 #. type: =head2
26359 #: ../src/guestfs-actions.pod:2721
26360 msgid "guestfs_inotify_rm_watch"
26361 msgstr ""
26362
26363 #. type: verbatim
26364 #: ../src/guestfs-actions.pod:2723
26365 #, no-wrap
26366 msgid ""
26367 " int\n"
26368 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
26369 "                           int wd);\n"
26370 "\n"
26371 msgstr ""
26372
26373 #. type: textblock
26374 #: ../src/guestfs-actions.pod:2727
26375 msgid ""
26376 "Remove a previously defined inotify watch.  See "
26377 "C<guestfs_inotify_add_watch>."
26378 msgstr ""
26379
26380 #. type: =head2
26381 #: ../src/guestfs-actions.pod:2734
26382 msgid "guestfs_inspect_get_arch"
26383 msgstr ""
26384
26385 #. type: verbatim
26386 #: ../src/guestfs-actions.pod:2736
26387 #, no-wrap
26388 msgid ""
26389 " char *\n"
26390 " guestfs_inspect_get_arch (guestfs_h *g,\n"
26391 "                           const char *root);\n"
26392 "\n"
26393 msgstr ""
26394
26395 #. type: textblock
26396 #: ../src/guestfs-actions.pod:2740
26397 msgid ""
26398 "This returns the architecture of the inspected operating system.  The "
26399 "possible return values are listed under C<guestfs_file_architecture>."
26400 msgstr ""
26401
26402 #. type: =head2
26403 #: ../src/guestfs-actions.pod:2754
26404 msgid "guestfs_inspect_get_distro"
26405 msgstr ""
26406
26407 #. type: verbatim
26408 #: ../src/guestfs-actions.pod:2756
26409 #, no-wrap
26410 msgid ""
26411 " char *\n"
26412 " guestfs_inspect_get_distro (guestfs_h *g,\n"
26413 "                             const char *root);\n"
26414 "\n"
26415 msgstr ""
26416
26417 #. type: =head2
26418 #: ../src/guestfs-actions.pod:2856
26419 msgid "guestfs_inspect_get_drive_mappings"
26420 msgstr ""
26421
26422 #. type: verbatim
26423 #: ../src/guestfs-actions.pod:2858
26424 #, no-wrap
26425 msgid ""
26426 " char **\n"
26427 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
26428 "                                     const char *root);\n"
26429 "\n"
26430 msgstr ""
26431
26432 #. type: textblock
26433 #: ../src/guestfs-actions.pod:2887
26434 msgid ""
26435 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26436 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
26437 msgstr ""
26438
26439 #. type: textblock
26440 #: ../src/guestfs-actions.pod:2891 ../src/guestfs-actions.pod:3159 ../src/guestfs-actions.pod:3962 ../src/guestfs-actions.pod:5234 ../src/guestfs-actions.pod:7304
26441 msgid ""
26442 "This function returns a NULL-terminated array of strings, or NULL if there "
26443 "was an error.  The array of strings will always have length C<2n+1>, where "
26444 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
26445 "caller must free the strings and the array after use>."
26446 msgstr ""
26447
26448 #. type: textblock
26449 #: ../src/guestfs-actions.pod:2897 ../src/guestfs-actions.pod:3358
26450 msgid "(Added in 1.9.17)"
26451 msgstr ""
26452
26453 #. type: =head2
26454 #: ../src/guestfs-actions.pod:2899
26455 msgid "guestfs_inspect_get_filesystems"
26456 msgstr ""
26457
26458 #. type: verbatim
26459 #: ../src/guestfs-actions.pod:2901
26460 #, no-wrap
26461 msgid ""
26462 " char **\n"
26463 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
26464 "                                  const char *root);\n"
26465 "\n"
26466 msgstr ""
26467
26468 #. type: textblock
26469 #: ../src/guestfs-actions.pod:2913
26470 msgid ""
26471 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26472 "C<guestfs_inspect_get_mountpoints>."
26473 msgstr ""
26474
26475 #. type: =head2
26476 #: ../src/guestfs-actions.pod:2922
26477 msgid "guestfs_inspect_get_format"
26478 msgstr ""
26479
26480 #. type: verbatim
26481 #: ../src/guestfs-actions.pod:2924
26482 #, no-wrap
26483 msgid ""
26484 " char *\n"
26485 " guestfs_inspect_get_format (guestfs_h *g,\n"
26486 "                             const char *root);\n"
26487 "\n"
26488 msgstr ""
26489
26490 #. type: textblock
26491 #: ../src/guestfs-actions.pod:2958 ../src/guestfs-actions.pod:3394 ../src/guestfs-actions.pod:3410 ../src/guestfs-actions.pod:3428 ../src/guestfs-actions.pod:6184
26492 msgid "(Added in 1.9.4)"
26493 msgstr ""
26494
26495 #. type: =head2
26496 #: ../src/guestfs-actions.pod:2960
26497 msgid "guestfs_inspect_get_hostname"
26498 msgstr ""
26499
26500 #. type: verbatim
26501 #: ../src/guestfs-actions.pod:2962
26502 #, no-wrap
26503 msgid ""
26504 " char *\n"
26505 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
26506 "                               const char *root);\n"
26507 "\n"
26508 msgstr ""
26509
26510 #. type: textblock
26511 #: ../src/guestfs-actions.pod:2977
26512 msgid "(Added in 1.7.9)"
26513 msgstr ""
26514
26515 #. type: =head2
26516 #: ../src/guestfs-actions.pod:2979
26517 msgid "guestfs_inspect_get_icon"
26518 msgstr ""
26519
26520 #. type: verbatim
26521 #: ../src/guestfs-actions.pod:2981
26522 #, no-wrap
26523 msgid ""
26524 " char *\n"
26525 " guestfs_inspect_get_icon (guestfs_h *g,\n"
26526 "                           const char *root,\n"
26527 "                           size_t *size_r,\n"
26528 "                           ...);\n"
26529 "\n"
26530 msgstr ""
26531
26532 #. type: verbatim
26533 #: ../src/guestfs-actions.pod:2992
26534 #, no-wrap
26535 msgid ""
26536 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
26537 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
26538 "\n"
26539 msgstr ""
26540
26541 #. type: textblock
26542 #: ../src/guestfs-actions.pod:3059 ../src/guestfs-actions.pod:3889 ../src/guestfs-actions.pod:5133
26543 msgid "(Added in 1.11.12)"
26544 msgstr ""
26545
26546 #. type: =head2
26547 #: ../src/guestfs-actions.pod:3061
26548 msgid "guestfs_inspect_get_icon_va"
26549 msgstr ""
26550
26551 #. type: verbatim
26552 #: ../src/guestfs-actions.pod:3063
26553 #, no-wrap
26554 msgid ""
26555 " char *\n"
26556 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
26557 "                              const char *root,\n"
26558 "                              size_t *size_r,\n"
26559 "                              va_list args);\n"
26560 "\n"
26561 msgstr ""
26562
26563 #. type: textblock
26564 #: ../src/guestfs-actions.pod:3069
26565 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
26566 msgstr ""
26567
26568 #. type: =head2
26569 #: ../src/guestfs-actions.pod:3073
26570 msgid "guestfs_inspect_get_icon_argv"
26571 msgstr ""
26572
26573 #. type: verbatim
26574 #: ../src/guestfs-actions.pod:3075
26575 #, no-wrap
26576 msgid ""
26577 " char *\n"
26578 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
26579 "                                const char *root,\n"
26580 "                                size_t *size_r,\n"
26581 "                                const struct guestfs_inspect_get_icon_argv "
26582 "*optargs);\n"
26583 "\n"
26584 msgstr ""
26585
26586 #. type: textblock
26587 #: ../src/guestfs-actions.pod:3081
26588 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
26589 msgstr ""
26590
26591 #. type: =head2
26592 #: ../src/guestfs-actions.pod:3085
26593 msgid "guestfs_inspect_get_major_version"
26594 msgstr ""
26595
26596 #. type: verbatim
26597 #: ../src/guestfs-actions.pod:3087
26598 #, no-wrap
26599 msgid ""
26600 " int\n"
26601 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
26602 "                                    const char *root);\n"
26603 "\n"
26604 msgstr ""
26605
26606 #. type: =head2
26607 #: ../src/guestfs-actions.pod:3109
26608 msgid "guestfs_inspect_get_minor_version"
26609 msgstr ""
26610
26611 #. type: verbatim
26612 #: ../src/guestfs-actions.pod:3111
26613 #, no-wrap
26614 msgid ""
26615 " int\n"
26616 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
26617 "                                    const char *root);\n"
26618 "\n"
26619 msgstr ""
26620
26621 #. type: textblock
26622 #: ../src/guestfs-actions.pod:3120
26623 msgid ""
26624 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26625 "C<guestfs_inspect_get_major_version>."
26626 msgstr ""
26627
26628 #. type: =head2
26629 #: ../src/guestfs-actions.pod:3127
26630 msgid "guestfs_inspect_get_mountpoints"
26631 msgstr ""
26632
26633 #. type: verbatim
26634 #: ../src/guestfs-actions.pod:3129
26635 #, no-wrap
26636 msgid ""
26637 " char **\n"
26638 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
26639 "                                  const char *root);\n"
26640 "\n"
26641 msgstr ""
26642
26643 #. type: textblock
26644 #: ../src/guestfs-actions.pod:3150
26645 msgid ""
26646 "For operating systems like Windows which still use drive letters, this call "
26647 "will only return an entry for the first drive \"mounted on\" C</>.  For "
26648 "information about the mapping of drive letters to partitions, see "
26649 "C<guestfs_inspect_get_drive_mappings>."
26650 msgstr ""
26651
26652 #. type: textblock
26653 #: ../src/guestfs-actions.pod:3156
26654 msgid ""
26655 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26656 "C<guestfs_inspect_get_filesystems>."
26657 msgstr ""
26658
26659 #. type: =head2
26660 #: ../src/guestfs-actions.pod:3167
26661 msgid "guestfs_inspect_get_package_format"
26662 msgstr ""
26663
26664 #. type: verbatim
26665 #: ../src/guestfs-actions.pod:3169
26666 #, no-wrap
26667 msgid ""
26668 " char *\n"
26669 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
26670 "                                     const char *root);\n"
26671 "\n"
26672 msgstr ""
26673
26674 #. type: textblock
26675 #: ../src/guestfs-actions.pod:3173
26676 msgid ""
26677 "This function and C<guestfs_inspect_get_package_management> return the "
26678 "package format and package management tool used by the inspected operating "
26679 "system.  For example for Fedora these functions would return C<rpm> (package "
26680 "format) and C<yum> (package management)."
26681 msgstr ""
26682
26683 #. type: textblock
26684 #: ../src/guestfs-actions.pod:3192 ../src/guestfs-actions.pod:3220
26685 msgid "(Added in 1.7.5)"
26686 msgstr ""
26687
26688 #. type: =head2
26689 #: ../src/guestfs-actions.pod:3194
26690 msgid "guestfs_inspect_get_package_management"
26691 msgstr ""
26692
26693 #. type: verbatim
26694 #: ../src/guestfs-actions.pod:3196
26695 #, no-wrap
26696 msgid ""
26697 " char *\n"
26698 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
26699 "                                         const char *root);\n"
26700 "\n"
26701 msgstr ""
26702
26703 #. type: textblock
26704 #: ../src/guestfs-actions.pod:3200
26705 msgid ""
26706 "C<guestfs_inspect_get_package_format> and this function return the package "
26707 "format and package management tool used by the inspected operating system.  "
26708 "For example for Fedora these functions would return C<rpm> (package format) "
26709 "and C<yum> (package management)."
26710 msgstr ""
26711
26712 #. type: =head2
26713 #: ../src/guestfs-actions.pod:3222
26714 msgid "guestfs_inspect_get_product_name"
26715 msgstr ""
26716
26717 #. type: verbatim
26718 #: ../src/guestfs-actions.pod:3224
26719 #, no-wrap
26720 msgid ""
26721 " char *\n"
26722 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
26723 "                                   const char *root);\n"
26724 "\n"
26725 msgstr ""
26726
26727 #. type: =head2
26728 #: ../src/guestfs-actions.pod:3243
26729 msgid "guestfs_inspect_get_product_variant"
26730 msgstr ""
26731
26732 #. type: verbatim
26733 #: ../src/guestfs-actions.pod:3245
26734 #, no-wrap
26735 msgid ""
26736 " char *\n"
26737 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
26738 "                                      const char *root);\n"
26739 "\n"
26740 msgstr ""
26741
26742 #. type: textblock
26743 #: ../src/guestfs-actions.pod:3268
26744 msgid ""
26745 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26746 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
26747 msgstr ""
26748
26749 #. type: textblock
26750 #: ../src/guestfs-actions.pod:3275
26751 msgid "(Added in 1.9.13)"
26752 msgstr ""
26753
26754 #. type: =head2
26755 #: ../src/guestfs-actions.pod:3277
26756 msgid "guestfs_inspect_get_roots"
26757 msgstr ""
26758
26759 #. type: verbatim
26760 #: ../src/guestfs-actions.pod:3279
26761 #, no-wrap
26762 msgid ""
26763 " char **\n"
26764 " guestfs_inspect_get_roots (guestfs_h *g);\n"
26765 "\n"
26766 msgstr ""
26767
26768 #. type: textblock
26769 #: ../src/guestfs-actions.pod:3282
26770 msgid ""
26771 "This function is a convenient way to get the list of root devices, as "
26772 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
26773 "the whole inspection process."
26774 msgstr ""
26775
26776 #. type: textblock
26777 #: ../src/guestfs-actions.pod:3286
26778 msgid ""
26779 "This returns an empty list if either no root devices were found or the "
26780 "caller has not called C<guestfs_inspect_os>."
26781 msgstr ""
26782
26783 #. type: textblock
26784 #: ../src/guestfs-actions.pod:3295
26785 msgid "(Added in 1.7.3)"
26786 msgstr ""
26787
26788 #. type: =head2
26789 #: ../src/guestfs-actions.pod:3297
26790 msgid "guestfs_inspect_get_type"
26791 msgstr ""
26792
26793 #. type: verbatim
26794 #: ../src/guestfs-actions.pod:3299
26795 #, no-wrap
26796 msgid ""
26797 " char *\n"
26798 " guestfs_inspect_get_type (guestfs_h *g,\n"
26799 "                           const char *root);\n"
26800 "\n"
26801 msgstr ""
26802
26803 #. type: =head2
26804 #: ../src/guestfs-actions.pod:3340
26805 msgid "guestfs_inspect_get_windows_current_control_set"
26806 msgstr ""
26807
26808 #. type: verbatim
26809 #: ../src/guestfs-actions.pod:3342
26810 #, no-wrap
26811 msgid ""
26812 " char *\n"
26813 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
26814 "                                                  const char *root);\n"
26815 "\n"
26816 msgstr ""
26817
26818 #. type: =head2
26819 #: ../src/guestfs-actions.pod:3360
26820 msgid "guestfs_inspect_get_windows_systemroot"
26821 msgstr ""
26822
26823 #. type: verbatim
26824 #: ../src/guestfs-actions.pod:3362
26825 #, no-wrap
26826 msgid ""
26827 " char *\n"
26828 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
26829 "                                         const char *root);\n"
26830 "\n"
26831 msgstr ""
26832
26833 #. type: textblock
26834 #: ../src/guestfs-actions.pod:3378
26835 msgid "(Added in 1.5.25)"
26836 msgstr ""
26837
26838 #. type: =head2
26839 #: ../src/guestfs-actions.pod:3380
26840 msgid "guestfs_inspect_is_live"
26841 msgstr ""
26842
26843 #. type: verbatim
26844 #: ../src/guestfs-actions.pod:3382
26845 #, no-wrap
26846 msgid ""
26847 " int\n"
26848 " guestfs_inspect_is_live (guestfs_h *g,\n"
26849 "                          const char *root);\n"
26850 "\n"
26851 msgstr ""
26852
26853 #. type: textblock
26854 #: ../src/guestfs-actions.pod:3386
26855 msgid ""
26856 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26857 "disk), then this returns true if a live image was detected on the disk."
26858 msgstr ""
26859
26860 #. type: =head2
26861 #: ../src/guestfs-actions.pod:3396
26862 msgid "guestfs_inspect_is_multipart"
26863 msgstr ""
26864
26865 #. type: verbatim
26866 #: ../src/guestfs-actions.pod:3398
26867 #, no-wrap
26868 msgid ""
26869 " int\n"
26870 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
26871 "                               const char *root);\n"
26872 "\n"
26873 msgstr ""
26874
26875 #. type: textblock
26876 #: ../src/guestfs-actions.pod:3402
26877 msgid ""
26878 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26879 "disk), then this returns true if the disk is part of a set."
26880 msgstr ""
26881
26882 #. type: =head2
26883 #: ../src/guestfs-actions.pod:3412
26884 msgid "guestfs_inspect_is_netinst"
26885 msgstr ""
26886
26887 #. type: verbatim
26888 #: ../src/guestfs-actions.pod:3414
26889 #, no-wrap
26890 msgid ""
26891 " int\n"
26892 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
26893 "                             const char *root);\n"
26894 "\n"
26895 msgstr ""
26896
26897 #. type: textblock
26898 #: ../src/guestfs-actions.pod:3418
26899 msgid ""
26900 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26901 "disk), then this returns true if the disk is a network installer, ie. not a "
26902 "self-contained install CD but one which is likely to require network access "
26903 "to complete the install."
26904 msgstr ""
26905
26906 #. type: =head2
26907 #: ../src/guestfs-actions.pod:3430
26908 msgid "guestfs_inspect_list_applications"
26909 msgstr ""
26910
26911 #. type: verbatim
26912 #: ../src/guestfs-actions.pod:3432
26913 #, no-wrap
26914 msgid ""
26915 " struct guestfs_application_list *\n"
26916 " guestfs_inspect_list_applications (guestfs_h *g,\n"
26917 "                                    const char *root);\n"
26918 "\n"
26919 msgstr ""
26920
26921 #. type: textblock
26922 #: ../src/guestfs-actions.pod:3438
26923 msgid ""
26924 "I<Note:> This call works differently from other parts of the inspection "
26925 "API.  You have to call C<guestfs_inspect_os>, then "
26926 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
26927 "this.  Listing applications is a significantly more difficult operation "
26928 "which requires access to the full filesystem.  Also note that unlike the "
26929 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
26930 "the libguestfs handle, this call actually reads parts of the mounted "
26931 "filesystems during the call."
26932 msgstr ""
26933
26934 #. type: textblock
26935 #: ../src/guestfs-actions.pod:3528
26936 msgid ""
26937 "This function returns a C<struct guestfs_application_list *>, or NULL if "
26938 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
26939 "after use>."
26940 msgstr ""
26941
26942 #. type: textblock
26943 #: ../src/guestfs-actions.pod:3532
26944 msgid "(Added in 1.7.8)"
26945 msgstr ""
26946
26947 #. type: =head2
26948 #: ../src/guestfs-actions.pod:3534
26949 msgid "guestfs_inspect_os"
26950 msgstr ""
26951
26952 #. type: verbatim
26953 #: ../src/guestfs-actions.pod:3536
26954 #, no-wrap
26955 msgid ""
26956 " char **\n"
26957 " guestfs_inspect_os (guestfs_h *g);\n"
26958 "\n"
26959 msgstr ""
26960
26961 #. type: textblock
26962 #: ../src/guestfs-actions.pod:3552
26963 msgid ""
26964 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
26965 "functions in order to query further information about each operating system, "
26966 "such as the name and version."
26967 msgstr ""
26968
26969 #. type: textblock
26970 #: ../src/guestfs-actions.pod:3557
26971 msgid ""
26972 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
26973 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
26974 "the contents.  This should be called with no disks currently mounted.  The "
26975 "function may also use Augeas, so any existing Augeas handle will be closed."
26976 msgstr ""
26977
26978 #. type: textblock
26979 #: ../src/guestfs-actions.pod:3569 ../src/guestfs-actions.pod:3900 ../src/guestfs-actions.pod:3982
26980 msgid "See also C<guestfs_list_filesystems>."
26981 msgstr ""
26982
26983 #. type: =head2
26984 #: ../src/guestfs-actions.pod:3577
26985 msgid "guestfs_is_blockdev"
26986 msgstr ""
26987
26988 #. type: verbatim
26989 #: ../src/guestfs-actions.pod:3579
26990 #, no-wrap
26991 msgid ""
26992 " int\n"
26993 " guestfs_is_blockdev (guestfs_h *g,\n"
26994 "                      const char *path);\n"
26995 "\n"
26996 msgstr ""
26997
26998 #. type: textblock
26999 #: ../src/guestfs-actions.pod:3586 ../src/guestfs-actions.pod:3615 ../src/guestfs-actions.pod:3645 ../src/guestfs-actions.pod:3660 ../src/guestfs-actions.pod:3676 ../src/guestfs-actions.pod:3732 ../src/guestfs-actions.pod:3747
27000 msgid "See also C<guestfs_stat>."
27001 msgstr ""
27002
27003 #. type: textblock
27004 #: ../src/guestfs-actions.pod:3590 ../src/guestfs-actions.pod:3619 ../src/guestfs-actions.pod:3664 ../src/guestfs-actions.pod:3736 ../src/guestfs-actions.pod:3751
27005 msgid "(Added in 1.5.10)"
27006 msgstr ""
27007
27008 #. type: =head2
27009 #: ../src/guestfs-actions.pod:3592
27010 msgid "guestfs_is_busy"
27011 msgstr ""
27012
27013 #. type: verbatim
27014 #: ../src/guestfs-actions.pod:3594
27015 #, no-wrap
27016 msgid ""
27017 " int\n"
27018 " guestfs_is_busy (guestfs_h *g);\n"
27019 "\n"
27020 msgstr ""
27021
27022 #. type: =head2
27023 #: ../src/guestfs-actions.pod:3606
27024 msgid "guestfs_is_chardev"
27025 msgstr ""
27026
27027 #. type: verbatim
27028 #: ../src/guestfs-actions.pod:3608
27029 #, no-wrap
27030 msgid ""
27031 " int\n"
27032 " guestfs_is_chardev (guestfs_h *g,\n"
27033 "                     const char *path);\n"
27034 "\n"
27035 msgstr ""
27036
27037 #. type: =head2
27038 #: ../src/guestfs-actions.pod:3621
27039 msgid "guestfs_is_config"
27040 msgstr ""
27041
27042 #. type: verbatim
27043 #: ../src/guestfs-actions.pod:3623
27044 #, no-wrap
27045 msgid ""
27046 " int\n"
27047 " guestfs_is_config (guestfs_h *g);\n"
27048 "\n"
27049 msgstr ""
27050
27051 #. type: =head2
27052 #: ../src/guestfs-actions.pod:3635
27053 msgid "guestfs_is_dir"
27054 msgstr ""
27055
27056 #. type: verbatim
27057 #: ../src/guestfs-actions.pod:3637
27058 #, no-wrap
27059 msgid ""
27060 " int\n"
27061 " guestfs_is_dir (guestfs_h *g,\n"
27062 "                 const char *path);\n"
27063 "\n"
27064 msgstr ""
27065
27066 #. type: =head2
27067 #: ../src/guestfs-actions.pod:3651
27068 msgid "guestfs_is_fifo"
27069 msgstr ""
27070
27071 #. type: verbatim
27072 #: ../src/guestfs-actions.pod:3653
27073 #, no-wrap
27074 msgid ""
27075 " int\n"
27076 " guestfs_is_fifo (guestfs_h *g,\n"
27077 "                  const char *path);\n"
27078 "\n"
27079 msgstr ""
27080
27081 #. type: =head2
27082 #: ../src/guestfs-actions.pod:3666
27083 msgid "guestfs_is_file"
27084 msgstr ""
27085
27086 #. type: verbatim
27087 #: ../src/guestfs-actions.pod:3668
27088 #, no-wrap
27089 msgid ""
27090 " int\n"
27091 " guestfs_is_file (guestfs_h *g,\n"
27092 "                  const char *path);\n"
27093 "\n"
27094 msgstr ""
27095
27096 #. type: =head2
27097 #: ../src/guestfs-actions.pod:3682
27098 msgid "guestfs_is_launching"
27099 msgstr ""
27100
27101 #. type: verbatim
27102 #: ../src/guestfs-actions.pod:3684
27103 #, no-wrap
27104 msgid ""
27105 " int\n"
27106 " guestfs_is_launching (guestfs_h *g);\n"
27107 "\n"
27108 msgstr ""
27109
27110 #. type: =head2
27111 #: ../src/guestfs-actions.pod:3696
27112 msgid "guestfs_is_lv"
27113 msgstr ""
27114
27115 #. type: verbatim
27116 #: ../src/guestfs-actions.pod:3698
27117 #, no-wrap
27118 msgid ""
27119 " int\n"
27120 " guestfs_is_lv (guestfs_h *g,\n"
27121 "                const char *device);\n"
27122 "\n"
27123 msgstr ""
27124
27125 #. type: =head2
27126 #: ../src/guestfs-actions.pod:3709
27127 msgid "guestfs_is_ready"
27128 msgstr ""
27129
27130 #. type: verbatim
27131 #: ../src/guestfs-actions.pod:3711
27132 #, no-wrap
27133 msgid ""
27134 " int\n"
27135 " guestfs_is_ready (guestfs_h *g);\n"
27136 "\n"
27137 msgstr ""
27138
27139 #. type: =head2
27140 #: ../src/guestfs-actions.pod:3723
27141 msgid "guestfs_is_socket"
27142 msgstr ""
27143
27144 #. type: verbatim
27145 #: ../src/guestfs-actions.pod:3725
27146 #, no-wrap
27147 msgid ""
27148 " int\n"
27149 " guestfs_is_socket (guestfs_h *g,\n"
27150 "                    const char *path);\n"
27151 "\n"
27152 msgstr ""
27153
27154 #. type: =head2
27155 #: ../src/guestfs-actions.pod:3738
27156 msgid "guestfs_is_symlink"
27157 msgstr ""
27158
27159 #. type: verbatim
27160 #: ../src/guestfs-actions.pod:3740
27161 #, no-wrap
27162 msgid ""
27163 " int\n"
27164 " guestfs_is_symlink (guestfs_h *g,\n"
27165 "                     const char *path);\n"
27166 "\n"
27167 msgstr ""
27168
27169 #. type: =head2
27170 #: ../src/guestfs-actions.pod:3753
27171 msgid "guestfs_is_zero"
27172 msgstr ""
27173
27174 #. type: verbatim
27175 #: ../src/guestfs-actions.pod:3755
27176 #, no-wrap
27177 msgid ""
27178 " int\n"
27179 " guestfs_is_zero (guestfs_h *g,\n"
27180 "                  const char *path);\n"
27181 "\n"
27182 msgstr ""
27183
27184 #. type: textblock
27185 #: ../src/guestfs-actions.pod:3764 ../src/guestfs-actions.pod:3778
27186 msgid "(Added in 1.11.8)"
27187 msgstr ""
27188
27189 #. type: =head2
27190 #: ../src/guestfs-actions.pod:3766
27191 msgid "guestfs_is_zero_device"
27192 msgstr ""
27193
27194 #. type: verbatim
27195 #: ../src/guestfs-actions.pod:3768
27196 #, no-wrap
27197 msgid ""
27198 " int\n"
27199 " guestfs_is_zero_device (guestfs_h *g,\n"
27200 "                         const char *device);\n"
27201 "\n"
27202 msgstr ""
27203
27204 #. type: =head2
27205 #: ../src/guestfs-actions.pod:3780
27206 msgid "guestfs_kill_subprocess"
27207 msgstr ""
27208
27209 #. type: verbatim
27210 #: ../src/guestfs-actions.pod:3782
27211 #, no-wrap
27212 msgid ""
27213 " int\n"
27214 " guestfs_kill_subprocess (guestfs_h *g);\n"
27215 "\n"
27216 msgstr ""
27217
27218 #. type: =head2
27219 #: ../src/guestfs-actions.pod:3791
27220 msgid "guestfs_launch"
27221 msgstr ""
27222
27223 #. type: verbatim
27224 #: ../src/guestfs-actions.pod:3793
27225 #, no-wrap
27226 msgid ""
27227 " int\n"
27228 " guestfs_launch (guestfs_h *g);\n"
27229 "\n"
27230 msgstr ""
27231
27232 #. type: =head2
27233 #: ../src/guestfs-actions.pod:3811
27234 msgid "guestfs_lchown"
27235 msgstr ""
27236
27237 #. type: verbatim
27238 #: ../src/guestfs-actions.pod:3813
27239 #, no-wrap
27240 msgid ""
27241 " int\n"
27242 " guestfs_lchown (guestfs_h *g,\n"
27243 "                 int owner,\n"
27244 "                 int group,\n"
27245 "                 const char *path);\n"
27246 "\n"
27247 msgstr ""
27248
27249 #. type: textblock
27250 #: ../src/guestfs-actions.pod:3819
27251 msgid ""
27252 "Change the file owner to C<owner> and group to C<group>.  This is like "
27253 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
27254 "changed, not the target."
27255 msgstr ""
27256
27257 #. type: =head2
27258 #: ../src/guestfs-actions.pod:3831
27259 msgid "guestfs_lgetxattr"
27260 msgstr ""
27261
27262 #. type: verbatim
27263 #: ../src/guestfs-actions.pod:3833
27264 #, no-wrap
27265 msgid ""
27266 " char *\n"
27267 " guestfs_lgetxattr (guestfs_h *g,\n"
27268 "                    const char *path,\n"
27269 "                    const char *name,\n"
27270 "                    size_t *size_r);\n"
27271 "\n"
27272 msgstr ""
27273
27274 #. type: textblock
27275 #: ../src/guestfs-actions.pod:3853
27276 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
27277 msgstr ""
27278
27279 #. type: =head2
27280 #: ../src/guestfs-actions.pod:3861
27281 msgid "guestfs_lgetxattrs"
27282 msgstr ""
27283
27284 #. type: verbatim
27285 #: ../src/guestfs-actions.pod:3863
27286 #, no-wrap
27287 msgid ""
27288 " struct guestfs_xattr_list *\n"
27289 " guestfs_lgetxattrs (guestfs_h *g,\n"
27290 "                     const char *path);\n"
27291 "\n"
27292 msgstr ""
27293
27294 #. type: textblock
27295 #: ../src/guestfs-actions.pod:3867
27296 msgid ""
27297 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
27298 "then it returns the extended attributes of the link itself."
27299 msgstr ""
27300
27301 #. type: =head2
27302 #: ../src/guestfs-actions.pod:3877
27303 msgid "guestfs_list_9p"
27304 msgstr ""
27305
27306 #. type: verbatim
27307 #: ../src/guestfs-actions.pod:3879
27308 #, no-wrap
27309 msgid ""
27310 " char **\n"
27311 " guestfs_list_9p (guestfs_h *g);\n"
27312 "\n"
27313 msgstr ""
27314
27315 #. type: =head2
27316 #: ../src/guestfs-actions.pod:3891
27317 msgid "guestfs_list_devices"
27318 msgstr ""
27319
27320 #. type: verbatim
27321 #: ../src/guestfs-actions.pod:3893
27322 #, no-wrap
27323 msgid ""
27324 " char **\n"
27325 " guestfs_list_devices (guestfs_h *g);\n"
27326 "\n"
27327 msgstr ""
27328
27329 #. type: =head2
27330 #: ../src/guestfs-actions.pod:3908
27331 msgid "guestfs_list_dm_devices"
27332 msgstr ""
27333
27334 #. type: verbatim
27335 #: ../src/guestfs-actions.pod:3910
27336 #, no-wrap
27337 msgid ""
27338 " char **\n"
27339 " guestfs_list_dm_devices (guestfs_h *g);\n"
27340 "\n"
27341 msgstr ""
27342
27343 #. type: textblock
27344 #: ../src/guestfs-actions.pod:3915
27345 msgid ""
27346 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
27347 "previous call to C<guestfs_luks_open>."
27348 msgstr ""
27349
27350 #. type: textblock
27351 #: ../src/guestfs-actions.pod:3918
27352 msgid ""
27353 "Device mapper devices which correspond to logical volumes are I<not> "
27354 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
27355 "volumes."
27356 msgstr ""
27357
27358 #. type: textblock
27359 #: ../src/guestfs-actions.pod:3926 ../src/guestfs-actions.pod:5372
27360 msgid "(Added in 1.11.15)"
27361 msgstr ""
27362
27363 #. type: =head2
27364 #: ../src/guestfs-actions.pod:3928
27365 msgid "guestfs_list_filesystems"
27366 msgstr ""
27367
27368 #. type: verbatim
27369 #: ../src/guestfs-actions.pod:3930
27370 #, no-wrap
27371 msgid ""
27372 " char **\n"
27373 " guestfs_list_filesystems (guestfs_h *g);\n"
27374 "\n"
27375 msgstr ""
27376
27377 #. type: textblock
27378 #: ../src/guestfs-actions.pod:3950
27379 msgid ""
27380 "This command runs other libguestfs commands, which might include "
27381 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
27382 "soon after launch and only when nothing is mounted."
27383 msgstr ""
27384
27385 #. type: textblock
27386 #: ../src/guestfs-actions.pod:3954
27387 msgid ""
27388 "Not all of the filesystems returned will be mountable.  In particular, swap "
27389 "partitions are returned in the list.  Also this command does not check that "
27390 "each filesystem found is valid and mountable, and some filesystems might be "
27391 "mountable but require special options.  Filesystems may not all belong to a "
27392 "single logical operating system (use C<guestfs_inspect_os> to look for "
27393 "OSes)."
27394 msgstr ""
27395
27396 #. type: textblock
27397 #: ../src/guestfs-actions.pod:3968 ../src/guestfs-actions.pod:5733
27398 msgid "(Added in 1.5.15)"
27399 msgstr ""
27400
27401 #. type: =head2
27402 #: ../src/guestfs-actions.pod:3970
27403 msgid "guestfs_list_partitions"
27404 msgstr ""
27405
27406 #. type: verbatim
27407 #: ../src/guestfs-actions.pod:3972
27408 #, no-wrap
27409 msgid ""
27410 " char **\n"
27411 " guestfs_list_partitions (guestfs_h *g);\n"
27412 "\n"
27413 msgstr ""
27414
27415 #. type: textblock
27416 #: ../src/guestfs-actions.pod:3979
27417 msgid ""
27418 "This does not return logical volumes.  For that you will need to call "
27419 "C<guestfs_lvs>."
27420 msgstr ""
27421
27422 #. type: =head2
27423 #: ../src/guestfs-actions.pod:3990
27424 msgid "guestfs_ll"
27425 msgstr ""
27426
27427 #. type: verbatim
27428 #: ../src/guestfs-actions.pod:3992
27429 #, no-wrap
27430 msgid ""
27431 " char *\n"
27432 " guestfs_ll (guestfs_h *g,\n"
27433 "             const char *directory);\n"
27434 "\n"
27435 msgstr ""
27436
27437 #. type: =head2
27438 #: ../src/guestfs-actions.pod:4007
27439 msgid "guestfs_ln"
27440 msgstr ""
27441
27442 #. type: verbatim
27443 #: ../src/guestfs-actions.pod:4009
27444 #, no-wrap
27445 msgid ""
27446 " int\n"
27447 " guestfs_ln (guestfs_h *g,\n"
27448 "             const char *target,\n"
27449 "             const char *linkname);\n"
27450 "\n"
27451 msgstr ""
27452
27453 #. type: =head2
27454 #: ../src/guestfs-actions.pod:4020
27455 msgid "guestfs_ln_f"
27456 msgstr ""
27457
27458 #. type: verbatim
27459 #: ../src/guestfs-actions.pod:4022
27460 #, no-wrap
27461 msgid ""
27462 " int\n"
27463 " guestfs_ln_f (guestfs_h *g,\n"
27464 "               const char *target,\n"
27465 "               const char *linkname);\n"
27466 "\n"
27467 msgstr ""
27468
27469 #. type: =head2
27470 #: ../src/guestfs-actions.pod:4034
27471 msgid "guestfs_ln_s"
27472 msgstr ""
27473
27474 #. type: verbatim
27475 #: ../src/guestfs-actions.pod:4036
27476 #, no-wrap
27477 msgid ""
27478 " int\n"
27479 " guestfs_ln_s (guestfs_h *g,\n"
27480 "               const char *target,\n"
27481 "               const char *linkname);\n"
27482 "\n"
27483 msgstr ""
27484
27485 #. type: =head2
27486 #: ../src/guestfs-actions.pod:4047
27487 msgid "guestfs_ln_sf"
27488 msgstr ""
27489
27490 #. type: verbatim
27491 #: ../src/guestfs-actions.pod:4049
27492 #, no-wrap
27493 msgid ""
27494 " int\n"
27495 " guestfs_ln_sf (guestfs_h *g,\n"
27496 "                const char *target,\n"
27497 "                const char *linkname);\n"
27498 "\n"
27499 msgstr ""
27500
27501 #. type: =head2
27502 #: ../src/guestfs-actions.pod:4061
27503 msgid "guestfs_lremovexattr"
27504 msgstr ""
27505
27506 #. type: verbatim
27507 #: ../src/guestfs-actions.pod:4063
27508 #, no-wrap
27509 msgid ""
27510 " int\n"
27511 " guestfs_lremovexattr (guestfs_h *g,\n"
27512 "                       const char *xattr,\n"
27513 "                       const char *path);\n"
27514 "\n"
27515 msgstr ""
27516
27517 #. type: textblock
27518 #: ../src/guestfs-actions.pod:4068
27519 msgid ""
27520 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
27521 "link, then it removes an extended attribute of the link itself."
27522 msgstr ""
27523
27524 #. type: =head2
27525 #: ../src/guestfs-actions.pod:4076
27526 msgid "guestfs_ls"
27527 msgstr ""
27528
27529 #. type: verbatim
27530 #: ../src/guestfs-actions.pod:4078
27531 #, no-wrap
27532 msgid ""
27533 " char **\n"
27534 " guestfs_ls (guestfs_h *g,\n"
27535 "             const char *directory);\n"
27536 "\n"
27537 msgstr ""
27538
27539 #. type: textblock
27540 #: ../src/guestfs-actions.pod:4086
27541 msgid ""
27542 "This command is mostly useful for interactive sessions.  Programs should "
27543 "probably use C<guestfs_readdir> instead."
27544 msgstr ""
27545
27546 #. type: =head2
27547 #: ../src/guestfs-actions.pod:4095
27548 msgid "guestfs_lsetxattr"
27549 msgstr ""
27550
27551 #. type: verbatim
27552 #: ../src/guestfs-actions.pod:4097
27553 #, no-wrap
27554 msgid ""
27555 " int\n"
27556 " guestfs_lsetxattr (guestfs_h *g,\n"
27557 "                    const char *xattr,\n"
27558 "                    const char *val,\n"
27559 "                    int vallen,\n"
27560 "                    const char *path);\n"
27561 "\n"
27562 msgstr ""
27563
27564 #. type: textblock
27565 #: ../src/guestfs-actions.pod:4104
27566 msgid ""
27567 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
27568 "then it sets an extended attribute of the link itself."
27569 msgstr ""
27570
27571 #. type: =head2
27572 #: ../src/guestfs-actions.pod:4112
27573 msgid "guestfs_lstat"
27574 msgstr ""
27575
27576 #. type: verbatim
27577 #: ../src/guestfs-actions.pod:4114
27578 #, no-wrap
27579 msgid ""
27580 " struct guestfs_stat *\n"
27581 " guestfs_lstat (guestfs_h *g,\n"
27582 "                const char *path);\n"
27583 "\n"
27584 msgstr ""
27585
27586 #. type: textblock
27587 #: ../src/guestfs-actions.pod:4120
27588 msgid ""
27589 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
27590 "link, then the link is stat-ed, not the file it refers to."
27591 msgstr ""
27592
27593 #. type: textblock
27594 #: ../src/guestfs-actions.pod:4126 ../src/guestfs-actions.pod:6907
27595 msgid ""
27596 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
27597 "error.  I<The caller must call C<guestfs_free_stat> after use>."
27598 msgstr ""
27599
27600 #. type: textblock
27601 #: ../src/guestfs-actions.pod:4130 ../src/guestfs-actions.pod:6911 ../src/guestfs-actions.pod:6929 ../src/guestfs-actions.pod:7310
27602 msgid "(Added in 0.9.2)"
27603 msgstr ""
27604
27605 #. type: =head2
27606 #: ../src/guestfs-actions.pod:4132
27607 msgid "guestfs_lstatlist"
27608 msgstr ""
27609
27610 #. type: verbatim
27611 #: ../src/guestfs-actions.pod:4134
27612 #, no-wrap
27613 msgid ""
27614 " struct guestfs_stat_list *\n"
27615 " guestfs_lstatlist (guestfs_h *g,\n"
27616 "                    const char *path,\n"
27617 "                    char *const *names);\n"
27618 "\n"
27619 msgstr ""
27620
27621 #. type: textblock
27622 #: ../src/guestfs-actions.pod:4139
27623 msgid ""
27624 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
27625 "files, where all files are in the directory C<path>.  C<names> is the list "
27626 "of files from this directory."
27627 msgstr ""
27628
27629 #. type: textblock
27630 #: ../src/guestfs-actions.pod:4148
27631 msgid ""
27632 "This call is intended for programs that want to efficiently list a directory "
27633 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
27634 "for a similarly efficient call for getting extended attributes.  Very long "
27635 "directory listings might cause the protocol message size to be exceeded, "
27636 "causing this call to fail.  The caller must split up such requests into "
27637 "smaller groups of names."
27638 msgstr ""
27639
27640 #. type: textblock
27641 #: ../src/guestfs-actions.pod:4156
27642 msgid ""
27643 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
27644 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
27645 msgstr ""
27646
27647 #. type: =head2
27648 #: ../src/guestfs-actions.pod:4162
27649 msgid "guestfs_luks_add_key"
27650 msgstr ""
27651
27652 #. type: verbatim
27653 #: ../src/guestfs-actions.pod:4164
27654 #, no-wrap
27655 msgid ""
27656 " int\n"
27657 " guestfs_luks_add_key (guestfs_h *g,\n"
27658 "                       const char *device,\n"
27659 "                       const char *key,\n"
27660 "                       const char *newkey,\n"
27661 "                       int keyslot);\n"
27662 "\n"
27663 msgstr ""
27664
27665 #. type: textblock
27666 #: ../src/guestfs-actions.pod:4176
27667 msgid ""
27668 "Note that if C<keyslot> already contains a key, then this command will "
27669 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
27670 msgstr ""
27671
27672 #. type: textblock
27673 #: ../src/guestfs-actions.pod:4182 ../src/guestfs-actions.pod:4222 ../src/guestfs-actions.pod:4245 ../src/guestfs-actions.pod:4265 ../src/guestfs-actions.pod:4300 ../src/guestfs-actions.pod:4319
27674 msgid ""
27675 "This function takes a key or passphrase parameter which could contain "
27676 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
27677 "information."
27678 msgstr ""
27679
27680 #. type: textblock
27681 #: ../src/guestfs-actions.pod:4186 ../src/guestfs-actions.pod:4226 ../src/guestfs-actions.pod:4249 ../src/guestfs-actions.pod:4269
27682 msgid "(Added in 1.5.2)"
27683 msgstr ""
27684
27685 #. type: =head2
27686 #: ../src/guestfs-actions.pod:4188
27687 msgid "guestfs_luks_close"
27688 msgstr ""
27689
27690 #. type: verbatim
27691 #: ../src/guestfs-actions.pod:4190
27692 #, no-wrap
27693 msgid ""
27694 " int\n"
27695 " guestfs_luks_close (guestfs_h *g,\n"
27696 "                     const char *device);\n"
27697 "\n"
27698 msgstr ""
27699
27700 #. type: textblock
27701 #: ../src/guestfs-actions.pod:4194
27702 msgid ""
27703 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
27704 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
27705 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
27706 "underlying block device."
27707 msgstr ""
27708
27709 #. type: textblock
27710 #: ../src/guestfs-actions.pod:4202 ../src/guestfs-actions.pod:4304 ../src/guestfs-actions.pod:4323 ../src/guestfs-actions.pod:4373 ../src/guestfs-actions.pod:4421
27711 msgid "(Added in 1.5.1)"
27712 msgstr ""
27713
27714 #. type: =head2
27715 #: ../src/guestfs-actions.pod:4204
27716 msgid "guestfs_luks_format"
27717 msgstr ""
27718
27719 #. type: verbatim
27720 #: ../src/guestfs-actions.pod:4206
27721 #, no-wrap
27722 msgid ""
27723 " int\n"
27724 " guestfs_luks_format (guestfs_h *g,\n"
27725 "                      const char *device,\n"
27726 "                      const char *key,\n"
27727 "                      int keyslot);\n"
27728 "\n"
27729 msgstr ""
27730
27731 #. type: =head2
27732 #: ../src/guestfs-actions.pod:4228
27733 msgid "guestfs_luks_format_cipher"
27734 msgstr ""
27735
27736 #. type: verbatim
27737 #: ../src/guestfs-actions.pod:4230
27738 #, no-wrap
27739 msgid ""
27740 " int\n"
27741 " guestfs_luks_format_cipher (guestfs_h *g,\n"
27742 "                             const char *device,\n"
27743 "                             const char *key,\n"
27744 "                             int keyslot,\n"
27745 "                             const char *cipher);\n"
27746 "\n"
27747 msgstr ""
27748
27749 #. type: textblock
27750 #: ../src/guestfs-actions.pod:4237
27751 msgid ""
27752 "This command is the same as C<guestfs_luks_format> but it also allows you to "
27753 "set the C<cipher> used."
27754 msgstr ""
27755
27756 #. type: =head2
27757 #: ../src/guestfs-actions.pod:4251
27758 msgid "guestfs_luks_kill_slot"
27759 msgstr ""
27760
27761 #. type: verbatim
27762 #: ../src/guestfs-actions.pod:4253
27763 #, no-wrap
27764 msgid ""
27765 " int\n"
27766 " guestfs_luks_kill_slot (guestfs_h *g,\n"
27767 "                         const char *device,\n"
27768 "                         const char *key,\n"
27769 "                         int keyslot);\n"
27770 "\n"
27771 msgstr ""
27772
27773 #. type: =head2
27774 #: ../src/guestfs-actions.pod:4271
27775 msgid "guestfs_luks_open"
27776 msgstr ""
27777
27778 #. type: verbatim
27779 #: ../src/guestfs-actions.pod:4273
27780 #, no-wrap
27781 msgid ""
27782 " int\n"
27783 " guestfs_luks_open (guestfs_h *g,\n"
27784 "                    const char *device,\n"
27785 "                    const char *key,\n"
27786 "                    const char *mapname);\n"
27787 "\n"
27788 msgstr ""
27789
27790 #. type: textblock
27791 #: ../src/guestfs-actions.pod:4291
27792 msgid ""
27793 "If this block device contains LVM volume groups, then calling "
27794 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
27795 "visible."
27796 msgstr ""
27797
27798 #. type: textblock
27799 #: ../src/guestfs-actions.pod:4295
27800 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
27801 msgstr ""
27802
27803 #. type: =head2
27804 #: ../src/guestfs-actions.pod:4306
27805 msgid "guestfs_luks_open_ro"
27806 msgstr ""
27807
27808 #. type: verbatim
27809 #: ../src/guestfs-actions.pod:4308
27810 #, no-wrap
27811 msgid ""
27812 " int\n"
27813 " guestfs_luks_open_ro (guestfs_h *g,\n"
27814 "                       const char *device,\n"
27815 "                       const char *key,\n"
27816 "                       const char *mapname);\n"
27817 "\n"
27818 msgstr ""
27819
27820 #. type: textblock
27821 #: ../src/guestfs-actions.pod:4314
27822 msgid ""
27823 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
27824 "created."
27825 msgstr ""
27826
27827 #. type: =head2
27828 #: ../src/guestfs-actions.pod:4325
27829 msgid "guestfs_lvcreate"
27830 msgstr ""
27831
27832 #. type: verbatim
27833 #: ../src/guestfs-actions.pod:4327
27834 #, no-wrap
27835 msgid ""
27836 " int\n"
27837 " guestfs_lvcreate (guestfs_h *g,\n"
27838 "                   const char *logvol,\n"
27839 "                   const char *volgroup,\n"
27840 "                   int mbytes);\n"
27841 "\n"
27842 msgstr ""
27843
27844 #. type: =head2
27845 #: ../src/guestfs-actions.pod:4340
27846 msgid "guestfs_lvm_canonical_lv_name"
27847 msgstr ""
27848
27849 #. type: verbatim
27850 #: ../src/guestfs-actions.pod:4342
27851 #, no-wrap
27852 msgid ""
27853 " char *\n"
27854 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
27855 "                                const char *lvname);\n"
27856 "\n"
27857 msgstr ""
27858
27859 #. type: textblock
27860 #: ../src/guestfs-actions.pod:4353
27861 msgid "See also C<guestfs_is_lv>."
27862 msgstr ""
27863
27864 #. type: textblock
27865 #: ../src/guestfs-actions.pod:4358
27866 msgid "(Added in 1.5.24)"
27867 msgstr ""
27868
27869 #. type: =head2
27870 #: ../src/guestfs-actions.pod:4360
27871 msgid "guestfs_lvm_clear_filter"
27872 msgstr ""
27873
27874 #. type: verbatim
27875 #: ../src/guestfs-actions.pod:4362
27876 #, no-wrap
27877 msgid ""
27878 " int\n"
27879 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
27880 "\n"
27881 msgstr ""
27882
27883 #. type: textblock
27884 #: ../src/guestfs-actions.pod:4365
27885 msgid ""
27886 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
27887 "see every block device."
27888 msgstr ""
27889
27890 #. type: =head2
27891 #: ../src/guestfs-actions.pod:4375
27892 msgid "guestfs_lvm_remove_all"
27893 msgstr ""
27894
27895 #. type: verbatim
27896 #: ../src/guestfs-actions.pod:4377
27897 #, no-wrap
27898 msgid ""
27899 " int\n"
27900 " guestfs_lvm_remove_all (guestfs_h *g);\n"
27901 "\n"
27902 msgstr ""
27903
27904 #. type: =head2
27905 #: ../src/guestfs-actions.pod:4390
27906 msgid "guestfs_lvm_set_filter"
27907 msgstr ""
27908
27909 #. type: verbatim
27910 #: ../src/guestfs-actions.pod:4392
27911 #, no-wrap
27912 msgid ""
27913 " int\n"
27914 " guestfs_lvm_set_filter (guestfs_h *g,\n"
27915 "                         char *const *devices);\n"
27916 "\n"
27917 msgstr ""
27918
27919 #. type: =head2
27920 #: ../src/guestfs-actions.pod:4423
27921 msgid "guestfs_lvremove"
27922 msgstr ""
27923
27924 #. type: verbatim
27925 #: ../src/guestfs-actions.pod:4425
27926 #, no-wrap
27927 msgid ""
27928 " int\n"
27929 " guestfs_lvremove (guestfs_h *g,\n"
27930 "                   const char *device);\n"
27931 "\n"
27932 msgstr ""
27933
27934 #. type: textblock
27935 #: ../src/guestfs-actions.pod:4437 ../src/guestfs-actions.pod:5830 ../src/guestfs-actions.pod:7680
27936 msgid "(Added in 1.0.13)"
27937 msgstr ""
27938
27939 #. type: =head2
27940 #: ../src/guestfs-actions.pod:4439
27941 msgid "guestfs_lvrename"
27942 msgstr ""
27943
27944 #. type: verbatim
27945 #: ../src/guestfs-actions.pod:4441
27946 #, no-wrap
27947 msgid ""
27948 " int\n"
27949 " guestfs_lvrename (guestfs_h *g,\n"
27950 "                   const char *logvol,\n"
27951 "                   const char *newlogvol);\n"
27952 "\n"
27953 msgstr ""
27954
27955 #. type: textblock
27956 #: ../src/guestfs-actions.pod:4450 ../src/guestfs-actions.pod:7693
27957 msgid "(Added in 1.0.83)"
27958 msgstr ""
27959
27960 #. type: =head2
27961 #: ../src/guestfs-actions.pod:4452
27962 msgid "guestfs_lvresize"
27963 msgstr ""
27964
27965 #. type: verbatim
27966 #: ../src/guestfs-actions.pod:4454
27967 #, no-wrap
27968 msgid ""
27969 " int\n"
27970 " guestfs_lvresize (guestfs_h *g,\n"
27971 "                   const char *device,\n"
27972 "                   int mbytes);\n"
27973 "\n"
27974 msgstr ""
27975
27976 #. type: =head2
27977 #: ../src/guestfs-actions.pod:4467
27978 msgid "guestfs_lvresize_free"
27979 msgstr ""
27980
27981 #. type: verbatim
27982 #: ../src/guestfs-actions.pod:4469
27983 #, no-wrap
27984 msgid ""
27985 " int\n"
27986 " guestfs_lvresize_free (guestfs_h *g,\n"
27987 "                        const char *lv,\n"
27988 "                        int percent);\n"
27989 "\n"
27990 msgstr ""
27991
27992 #. type: textblock
27993 #: ../src/guestfs-actions.pod:4482
27994 msgid "(Added in 1.3.3)"
27995 msgstr ""
27996
27997 #. type: =head2
27998 #: ../src/guestfs-actions.pod:4484
27999 msgid "guestfs_lvs"
28000 msgstr ""
28001
28002 #. type: verbatim
28003 #: ../src/guestfs-actions.pod:4486
28004 #, no-wrap
28005 msgid ""
28006 " char **\n"
28007 " guestfs_lvs (guestfs_h *g);\n"
28008 "\n"
28009 msgstr ""
28010
28011 #. type: textblock
28012 #: ../src/guestfs-actions.pod:4495
28013 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
28014 msgstr ""
28015
28016 #. type: =head2
28017 #: ../src/guestfs-actions.pod:4503
28018 msgid "guestfs_lvs_full"
28019 msgstr ""
28020
28021 #. type: verbatim
28022 #: ../src/guestfs-actions.pod:4505
28023 #, no-wrap
28024 msgid ""
28025 " struct guestfs_lvm_lv_list *\n"
28026 " guestfs_lvs_full (guestfs_h *g);\n"
28027 "\n"
28028 msgstr ""
28029
28030 #. type: textblock
28031 #: ../src/guestfs-actions.pod:4511
28032 msgid ""
28033 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
28034 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after "
28035 "use>."
28036 msgstr ""
28037
28038 #. type: =head2
28039 #: ../src/guestfs-actions.pod:4517
28040 msgid "guestfs_lvuuid"
28041 msgstr ""
28042
28043 #. type: verbatim
28044 #: ../src/guestfs-actions.pod:4519
28045 #, no-wrap
28046 msgid ""
28047 " char *\n"
28048 " guestfs_lvuuid (guestfs_h *g,\n"
28049 "                 const char *device);\n"
28050 "\n"
28051 msgstr ""
28052
28053 #. type: =head2
28054 #: ../src/guestfs-actions.pod:4530
28055 msgid "guestfs_lxattrlist"
28056 msgstr ""
28057
28058 #. type: verbatim
28059 #: ../src/guestfs-actions.pod:4532
28060 #, no-wrap
28061 msgid ""
28062 " struct guestfs_xattr_list *\n"
28063 " guestfs_lxattrlist (guestfs_h *g,\n"
28064 "                     const char *path,\n"
28065 "                     char *const *names);\n"
28066 "\n"
28067 msgstr ""
28068
28069 #. type: textblock
28070 #: ../src/guestfs-actions.pod:4551
28071 msgid ""
28072 "This call is intended for programs that want to efficiently list a directory "
28073 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
28074 "a similarly efficient call for getting standard stats.  Very long directory "
28075 "listings might cause the protocol message size to be exceeded, causing this "
28076 "call to fail.  The caller must split up such requests into smaller groups of "
28077 "names."
28078 msgstr ""
28079
28080 #. type: =head2
28081 #: ../src/guestfs-actions.pod:4565
28082 msgid "guestfs_mkdir"
28083 msgstr ""
28084
28085 #. type: verbatim
28086 #: ../src/guestfs-actions.pod:4567
28087 #, no-wrap
28088 msgid ""
28089 " int\n"
28090 " guestfs_mkdir (guestfs_h *g,\n"
28091 "                const char *path);\n"
28092 "\n"
28093 msgstr ""
28094
28095 #. type: =head2
28096 #: ../src/guestfs-actions.pod:4577
28097 msgid "guestfs_mkdir_mode"
28098 msgstr ""
28099
28100 #. type: verbatim
28101 #: ../src/guestfs-actions.pod:4579
28102 #, no-wrap
28103 msgid ""
28104 " int\n"
28105 " guestfs_mkdir_mode (guestfs_h *g,\n"
28106 "                     const char *path,\n"
28107 "                     int mode);\n"
28108 "\n"
28109 msgstr ""
28110
28111 #. type: textblock
28112 #: ../src/guestfs-actions.pod:4591
28113 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
28114 msgstr ""
28115
28116 #. type: =head2
28117 #: ../src/guestfs-actions.pod:4597
28118 msgid "guestfs_mkdir_p"
28119 msgstr ""
28120
28121 #. type: verbatim
28122 #: ../src/guestfs-actions.pod:4599
28123 #, no-wrap
28124 msgid ""
28125 " int\n"
28126 " guestfs_mkdir_p (guestfs_h *g,\n"
28127 "                  const char *path);\n"
28128 "\n"
28129 msgstr ""
28130
28131 #. type: =head2
28132 #: ../src/guestfs-actions.pod:4610
28133 msgid "guestfs_mkdtemp"
28134 msgstr ""
28135
28136 #. type: verbatim
28137 #: ../src/guestfs-actions.pod:4612
28138 #, no-wrap
28139 msgid ""
28140 " char *\n"
28141 " guestfs_mkdtemp (guestfs_h *g,\n"
28142 "                  const char *template);\n"
28143 "\n"
28144 msgstr ""
28145
28146 #. type: =head2
28147 #: ../src/guestfs-actions.pod:4640
28148 msgid "guestfs_mke2fs_J"
28149 msgstr ""
28150
28151 #. type: verbatim
28152 #: ../src/guestfs-actions.pod:4642
28153 #, no-wrap
28154 msgid ""
28155 " int\n"
28156 " guestfs_mke2fs_J (guestfs_h *g,\n"
28157 "                   const char *fstype,\n"
28158 "                   int blocksize,\n"
28159 "                   const char *device,\n"
28160 "                   const char *journal);\n"
28161 "\n"
28162 msgstr ""
28163
28164 #. type: textblock
28165 #: ../src/guestfs-actions.pod:4655
28166 msgid "See also C<guestfs_mke2journal>."
28167 msgstr ""
28168
28169 #. type: textblock
28170 #: ../src/guestfs-actions.pod:4659 ../src/guestfs-actions.pod:4677 ../src/guestfs-actions.pod:4695 ../src/guestfs-actions.pod:4711 ../src/guestfs-actions.pod:4725 ../src/guestfs-actions.pod:4739 ../src/guestfs-actions.pod:4798 ../src/guestfs-actions.pod:5075
28171 msgid "(Added in 1.0.68)"
28172 msgstr ""
28173
28174 #. type: =head2
28175 #: ../src/guestfs-actions.pod:4661
28176 msgid "guestfs_mke2fs_JL"
28177 msgstr ""
28178
28179 #. type: verbatim
28180 #: ../src/guestfs-actions.pod:4663
28181 #, no-wrap
28182 msgid ""
28183 " int\n"
28184 " guestfs_mke2fs_JL (guestfs_h *g,\n"
28185 "                    const char *fstype,\n"
28186 "                    int blocksize,\n"
28187 "                    const char *device,\n"
28188 "                    const char *label);\n"
28189 "\n"
28190 msgstr ""
28191
28192 #. type: textblock
28193 #: ../src/guestfs-actions.pod:4673
28194 msgid "See also C<guestfs_mke2journal_L>."
28195 msgstr ""
28196
28197 #. type: =head2
28198 #: ../src/guestfs-actions.pod:4679
28199 msgid "guestfs_mke2fs_JU"
28200 msgstr ""
28201
28202 #. type: verbatim
28203 #: ../src/guestfs-actions.pod:4681
28204 #, no-wrap
28205 msgid ""
28206 " int\n"
28207 " guestfs_mke2fs_JU (guestfs_h *g,\n"
28208 "                    const char *fstype,\n"
28209 "                    int blocksize,\n"
28210 "                    const char *device,\n"
28211 "                    const char *uuid);\n"
28212 "\n"
28213 msgstr ""
28214
28215 #. type: textblock
28216 #: ../src/guestfs-actions.pod:4691
28217 msgid "See also C<guestfs_mke2journal_U>."
28218 msgstr ""
28219
28220 #. type: =head2
28221 #: ../src/guestfs-actions.pod:4697
28222 msgid "guestfs_mke2journal"
28223 msgstr ""
28224
28225 #. type: verbatim
28226 #: ../src/guestfs-actions.pod:4699
28227 #, no-wrap
28228 msgid ""
28229 " int\n"
28230 " guestfs_mke2journal (guestfs_h *g,\n"
28231 "                      int blocksize,\n"
28232 "                      const char *device);\n"
28233 "\n"
28234 msgstr ""
28235
28236 #. type: =head2
28237 #: ../src/guestfs-actions.pod:4713
28238 msgid "guestfs_mke2journal_L"
28239 msgstr ""
28240
28241 #. type: verbatim
28242 #: ../src/guestfs-actions.pod:4715
28243 #, no-wrap
28244 msgid ""
28245 " int\n"
28246 " guestfs_mke2journal_L (guestfs_h *g,\n"
28247 "                        int blocksize,\n"
28248 "                        const char *label,\n"
28249 "                        const char *device);\n"
28250 "\n"
28251 msgstr ""
28252
28253 #. type: =head2
28254 #: ../src/guestfs-actions.pod:4727
28255 msgid "guestfs_mke2journal_U"
28256 msgstr ""
28257
28258 #. type: verbatim
28259 #: ../src/guestfs-actions.pod:4729
28260 #, no-wrap
28261 msgid ""
28262 " int\n"
28263 " guestfs_mke2journal_U (guestfs_h *g,\n"
28264 "                        int blocksize,\n"
28265 "                        const char *uuid,\n"
28266 "                        const char *device);\n"
28267 "\n"
28268 msgstr ""
28269
28270 #. type: =head2
28271 #: ../src/guestfs-actions.pod:4741
28272 msgid "guestfs_mkfifo"
28273 msgstr ""
28274
28275 #. type: verbatim
28276 #: ../src/guestfs-actions.pod:4743
28277 #, no-wrap
28278 msgid ""
28279 " int\n"
28280 " guestfs_mkfifo (guestfs_h *g,\n"
28281 "                 int mode,\n"
28282 "                 const char *path);\n"
28283 "\n"
28284 msgstr ""
28285
28286 #. type: textblock
28287 #: ../src/guestfs-actions.pod:4748
28288 msgid ""
28289 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
28290 "is just a convenient wrapper around C<guestfs_mknod>."
28291 msgstr ""
28292
28293 #. type: =head2
28294 #: ../src/guestfs-actions.pod:4758
28295 msgid "guestfs_mkfs"
28296 msgstr ""
28297
28298 #. type: verbatim
28299 #: ../src/guestfs-actions.pod:4760
28300 #, no-wrap
28301 msgid ""
28302 " int\n"
28303 " guestfs_mkfs (guestfs_h *g,\n"
28304 "               const char *fstype,\n"
28305 "               const char *device);\n"
28306 "\n"
28307 msgstr ""
28308
28309 #. type: =head2
28310 #: ../src/guestfs-actions.pod:4773
28311 msgid "guestfs_mkfs_b"
28312 msgstr ""
28313
28314 #. type: verbatim
28315 #: ../src/guestfs-actions.pod:4775
28316 #, no-wrap
28317 msgid ""
28318 " int\n"
28319 " guestfs_mkfs_b (guestfs_h *g,\n"
28320 "                 const char *fstype,\n"
28321 "                 int blocksize,\n"
28322 "                 const char *device);\n"
28323 "\n"
28324 msgstr ""
28325
28326 #. type: textblock
28327 #: ../src/guestfs-actions.pod:4781
28328 msgid ""
28329 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
28330 "call instead."
28331 msgstr ""
28332
28333 #. type: textblock
28334 #: ../src/guestfs-actions.pod:4788
28335 msgid ""
28336 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
28337 "block size of the resulting filesystem.  Supported block sizes depend on the "
28338 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
28339 msgstr ""
28340
28341 #. type: =head2
28342 #: ../src/guestfs-actions.pod:4800
28343 msgid "guestfs_mkfs_opts"
28344 msgstr ""
28345
28346 #. type: verbatim
28347 #: ../src/guestfs-actions.pod:4802
28348 #, no-wrap
28349 msgid ""
28350 " int\n"
28351 " guestfs_mkfs_opts (guestfs_h *g,\n"
28352 "                    const char *fstype,\n"
28353 "                    const char *device,\n"
28354 "                    ...);\n"
28355 "\n"
28356 msgstr ""
28357
28358 #. type: verbatim
28359 #: ../src/guestfs-actions.pod:4813
28360 #, no-wrap
28361 msgid ""
28362 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
28363 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
28364 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
28365 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
28366 "\n"
28367 msgstr ""
28368
28369 #. type: textblock
28370 #: ../src/guestfs-actions.pod:4861
28371 msgid "(Added in 1.7.19)"
28372 msgstr ""
28373
28374 #. type: =head2
28375 #: ../src/guestfs-actions.pod:4863
28376 msgid "guestfs_mkfs_opts_va"
28377 msgstr ""
28378
28379 #. type: verbatim
28380 #: ../src/guestfs-actions.pod:4865
28381 #, no-wrap
28382 msgid ""
28383 " int\n"
28384 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
28385 "                       const char *fstype,\n"
28386 "                       const char *device,\n"
28387 "                       va_list args);\n"
28388 "\n"
28389 msgstr ""
28390
28391 #. type: textblock
28392 #: ../src/guestfs-actions.pod:4871
28393 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
28394 msgstr ""
28395
28396 #. type: =head2
28397 #: ../src/guestfs-actions.pod:4875
28398 msgid "guestfs_mkfs_opts_argv"
28399 msgstr ""
28400
28401 #. type: verbatim
28402 #: ../src/guestfs-actions.pod:4877
28403 #, no-wrap
28404 msgid ""
28405 " int\n"
28406 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
28407 "                         const char *fstype,\n"
28408 "                         const char *device,\n"
28409 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
28410 "\n"
28411 msgstr ""
28412
28413 #. type: textblock
28414 #: ../src/guestfs-actions.pod:4883
28415 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
28416 msgstr ""
28417
28418 #. type: =head2
28419 #: ../src/guestfs-actions.pod:4887
28420 msgid "guestfs_mkmountpoint"
28421 msgstr ""
28422
28423 #. type: verbatim
28424 #: ../src/guestfs-actions.pod:4889
28425 #, no-wrap
28426 msgid ""
28427 " int\n"
28428 " guestfs_mkmountpoint (guestfs_h *g,\n"
28429 "                       const char *exemptpath);\n"
28430 "\n"
28431 msgstr ""
28432
28433 #. type: textblock
28434 #: ../src/guestfs-actions.pod:4893
28435 msgid ""
28436 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
28437 "that can be used to create extra mountpoints before mounting the first "
28438 "filesystem."
28439 msgstr ""
28440
28441 #. type: textblock
28442 #: ../src/guestfs-actions.pod:4917
28443 msgid ""
28444 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
28445 "may get unexpected errors if you try to mix these calls.  It is safest to "
28446 "manually unmount filesystems and remove mountpoints after use."
28447 msgstr ""
28448
28449 #. type: textblock
28450 #: ../src/guestfs-actions.pod:4921
28451 msgid ""
28452 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
28453 "first, so for this to work for manual mountpoints, you must ensure that the "
28454 "innermost mountpoints have the longest pathnames, as in the example code "
28455 "above."
28456 msgstr ""
28457
28458 #. type: textblock
28459 #: ../src/guestfs-actions.pod:4928
28460 msgid ""
28461 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
28462 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
28463 "can also trigger these issues."
28464 msgstr ""
28465
28466 #. type: textblock
28467 #: ../src/guestfs-actions.pod:4934 ../src/guestfs-actions.pod:5240 ../src/guestfs-actions.pod:6250
28468 msgid "(Added in 1.0.62)"
28469 msgstr ""
28470
28471 #. type: =head2
28472 #: ../src/guestfs-actions.pod:4936
28473 msgid "guestfs_mknod"
28474 msgstr ""
28475
28476 #. type: verbatim
28477 #: ../src/guestfs-actions.pod:4938
28478 #, no-wrap
28479 msgid ""
28480 " int\n"
28481 " guestfs_mknod (guestfs_h *g,\n"
28482 "                int mode,\n"
28483 "                int devmajor,\n"
28484 "                int devminor,\n"
28485 "                const char *path);\n"
28486 "\n"
28487 msgstr ""
28488
28489 #. type: textblock
28490 #: ../src/guestfs-actions.pod:4953
28491 msgid ""
28492 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
28493 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
28494 "regular file).  These constants are available in the standard Linux header "
28495 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
28496 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
28497 "the appropriate constant for you."
28498 msgstr ""
28499
28500 #. type: =head2
28501 #: ../src/guestfs-actions.pod:4967
28502 msgid "guestfs_mknod_b"
28503 msgstr ""
28504
28505 #. type: verbatim
28506 #: ../src/guestfs-actions.pod:4969
28507 #, no-wrap
28508 msgid ""
28509 " int\n"
28510 " guestfs_mknod_b (guestfs_h *g,\n"
28511 "                  int mode,\n"
28512 "                  int devmajor,\n"
28513 "                  int devminor,\n"
28514 "                  const char *path);\n"
28515 "\n"
28516 msgstr ""
28517
28518 #. type: textblock
28519 #: ../src/guestfs-actions.pod:4976
28520 msgid ""
28521 "This call creates a block device node called C<path> with mode C<mode> and "
28522 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
28523 "wrapper around C<guestfs_mknod>."
28524 msgstr ""
28525
28526 #. type: =head2
28527 #: ../src/guestfs-actions.pod:4986
28528 msgid "guestfs_mknod_c"
28529 msgstr ""
28530
28531 #. type: verbatim
28532 #: ../src/guestfs-actions.pod:4988
28533 #, no-wrap
28534 msgid ""
28535 " int\n"
28536 " guestfs_mknod_c (guestfs_h *g,\n"
28537 "                  int mode,\n"
28538 "                  int devmajor,\n"
28539 "                  int devminor,\n"
28540 "                  const char *path);\n"
28541 "\n"
28542 msgstr ""
28543
28544 #. type: textblock
28545 #: ../src/guestfs-actions.pod:4995
28546 msgid ""
28547 "This call creates a char device node called C<path> with mode C<mode> and "
28548 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
28549 "wrapper around C<guestfs_mknod>."
28550 msgstr ""
28551
28552 #. type: =head2
28553 #: ../src/guestfs-actions.pod:5005
28554 msgid "guestfs_mkswap"
28555 msgstr ""
28556
28557 #. type: verbatim
28558 #: ../src/guestfs-actions.pod:5007
28559 #, no-wrap
28560 msgid ""
28561 " int\n"
28562 " guestfs_mkswap (guestfs_h *g,\n"
28563 "                 const char *device);\n"
28564 "\n"
28565 msgstr ""
28566
28567 #. type: =head2
28568 #: ../src/guestfs-actions.pod:5017
28569 msgid "guestfs_mkswap_L"
28570 msgstr ""
28571
28572 #. type: verbatim
28573 #: ../src/guestfs-actions.pod:5019
28574 #, no-wrap
28575 msgid ""
28576 " int\n"
28577 " guestfs_mkswap_L (guestfs_h *g,\n"
28578 "                   const char *label,\n"
28579 "                   const char *device);\n"
28580 "\n"
28581 msgstr ""
28582
28583 #. type: =head2
28584 #: ../src/guestfs-actions.pod:5034
28585 msgid "guestfs_mkswap_U"
28586 msgstr ""
28587
28588 #. type: verbatim
28589 #: ../src/guestfs-actions.pod:5036
28590 #, no-wrap
28591 msgid ""
28592 " int\n"
28593 " guestfs_mkswap_U (guestfs_h *g,\n"
28594 "                   const char *uuid,\n"
28595 "                   const char *device);\n"
28596 "\n"
28597 msgstr ""
28598
28599 #. type: =head2
28600 #: ../src/guestfs-actions.pod:5047
28601 msgid "guestfs_mkswap_file"
28602 msgstr ""
28603
28604 #. type: verbatim
28605 #: ../src/guestfs-actions.pod:5049
28606 #, no-wrap
28607 msgid ""
28608 " int\n"
28609 " guestfs_mkswap_file (guestfs_h *g,\n"
28610 "                      const char *path);\n"
28611 "\n"
28612 msgstr ""
28613
28614 #. type: textblock
28615 #: ../src/guestfs-actions.pod:5055
28616 msgid ""
28617 "This command just writes a swap file signature to an existing file.  To "
28618 "create the file itself, use something like C<guestfs_fallocate>."
28619 msgstr ""
28620
28621 #. type: =head2
28622 #: ../src/guestfs-actions.pod:5062
28623 msgid "guestfs_modprobe"
28624 msgstr ""
28625
28626 #. type: verbatim
28627 #: ../src/guestfs-actions.pod:5064
28628 #, no-wrap
28629 msgid ""
28630 " int\n"
28631 " guestfs_modprobe (guestfs_h *g,\n"
28632 "                   const char *modulename);\n"
28633 "\n"
28634 msgstr ""
28635
28636 #. type: =head2
28637 #: ../src/guestfs-actions.pod:5077
28638 msgid "guestfs_mount"
28639 msgstr ""
28640
28641 #. type: verbatim
28642 #: ../src/guestfs-actions.pod:5079
28643 #, no-wrap
28644 msgid ""
28645 " int\n"
28646 " guestfs_mount (guestfs_h *g,\n"
28647 "                const char *device,\n"
28648 "                const char *mountpoint);\n"
28649 "\n"
28650 msgstr ""
28651
28652 #. type: textblock
28653 #: ../src/guestfs-actions.pod:5098
28654 msgid ""
28655 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
28656 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
28657 "problems for users.  If your program might need to work with older versions "
28658 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
28659 "for the first parameter if you don't want any options)."
28660 msgstr ""
28661
28662 #. type: =head2
28663 #: ../src/guestfs-actions.pod:5109
28664 msgid "guestfs_mount_9p"
28665 msgstr ""
28666
28667 #. type: verbatim
28668 #: ../src/guestfs-actions.pod:5111
28669 #, no-wrap
28670 msgid ""
28671 " int\n"
28672 " guestfs_mount_9p (guestfs_h *g,\n"
28673 "                   const char *mounttag,\n"
28674 "                   const char *mountpoint,\n"
28675 "                   ...);\n"
28676 "\n"
28677 msgstr ""
28678
28679 #. type: verbatim
28680 #: ../src/guestfs-actions.pod:5122
28681 #, no-wrap
28682 msgid ""
28683 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
28684 "\n"
28685 msgstr ""
28686
28687 #. type: =head2
28688 #: ../src/guestfs-actions.pod:5135
28689 msgid "guestfs_mount_9p_va"
28690 msgstr ""
28691
28692 #. type: verbatim
28693 #: ../src/guestfs-actions.pod:5137
28694 #, no-wrap
28695 msgid ""
28696 " int\n"
28697 " guestfs_mount_9p_va (guestfs_h *g,\n"
28698 "                      const char *mounttag,\n"
28699 "                      const char *mountpoint,\n"
28700 "                      va_list args);\n"
28701 "\n"
28702 msgstr ""
28703
28704 #. type: textblock
28705 #: ../src/guestfs-actions.pod:5143
28706 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
28707 msgstr ""
28708
28709 #. type: =head2
28710 #: ../src/guestfs-actions.pod:5147
28711 msgid "guestfs_mount_9p_argv"
28712 msgstr ""
28713
28714 #. type: verbatim
28715 #: ../src/guestfs-actions.pod:5149
28716 #, no-wrap
28717 msgid ""
28718 " int\n"
28719 " guestfs_mount_9p_argv (guestfs_h *g,\n"
28720 "                        const char *mounttag,\n"
28721 "                        const char *mountpoint,\n"
28722 "                        const struct guestfs_mount_9p_argv *optargs);\n"
28723 "\n"
28724 msgstr ""
28725
28726 #. type: textblock
28727 #: ../src/guestfs-actions.pod:5155
28728 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
28729 msgstr ""
28730
28731 #. type: =head2
28732 #: ../src/guestfs-actions.pod:5159
28733 msgid "guestfs_mount_loop"
28734 msgstr ""
28735
28736 #. type: verbatim
28737 #: ../src/guestfs-actions.pod:5161
28738 #, no-wrap
28739 msgid ""
28740 " int\n"
28741 " guestfs_mount_loop (guestfs_h *g,\n"
28742 "                     const char *file,\n"
28743 "                     const char *mountpoint);\n"
28744 "\n"
28745 msgstr ""
28746
28747 #. type: =head2
28748 #: ../src/guestfs-actions.pod:5174
28749 msgid "guestfs_mount_options"
28750 msgstr ""
28751
28752 #. type: verbatim
28753 #: ../src/guestfs-actions.pod:5176
28754 #, no-wrap
28755 msgid ""
28756 " int\n"
28757 " guestfs_mount_options (guestfs_h *g,\n"
28758 "                        const char *options,\n"
28759 "                        const char *device,\n"
28760 "                        const char *mountpoint);\n"
28761 "\n"
28762 msgstr ""
28763
28764 #. type: textblock
28765 #: ../src/guestfs-actions.pod:5182
28766 msgid ""
28767 "This is the same as the C<guestfs_mount> command, but it allows you to set "
28768 "the mount options as for the L<mount(8)> I<-o> flag."
28769 msgstr ""
28770
28771 #. type: textblock
28772 #: ../src/guestfs-actions.pod:5192 ../src/guestfs-actions.pod:5206 ../src/guestfs-actions.pod:5223
28773 msgid "(Added in 1.0.10)"
28774 msgstr ""
28775
28776 #. type: =head2
28777 #: ../src/guestfs-actions.pod:5194
28778 msgid "guestfs_mount_ro"
28779 msgstr ""
28780
28781 #. type: verbatim
28782 #: ../src/guestfs-actions.pod:5196
28783 #, no-wrap
28784 msgid ""
28785 " int\n"
28786 " guestfs_mount_ro (guestfs_h *g,\n"
28787 "                   const char *device,\n"
28788 "                   const char *mountpoint);\n"
28789 "\n"
28790 msgstr ""
28791
28792 #. type: textblock
28793 #: ../src/guestfs-actions.pod:5201
28794 msgid ""
28795 "This is the same as the C<guestfs_mount> command, but it mounts the "
28796 "filesystem with the read-only (I<-o ro>) flag."
28797 msgstr ""
28798
28799 #. type: =head2
28800 #: ../src/guestfs-actions.pod:5208
28801 msgid "guestfs_mount_vfs"
28802 msgstr ""
28803
28804 #. type: verbatim
28805 #: ../src/guestfs-actions.pod:5210
28806 #, no-wrap
28807 msgid ""
28808 " int\n"
28809 " guestfs_mount_vfs (guestfs_h *g,\n"
28810 "                    const char *options,\n"
28811 "                    const char *vfstype,\n"
28812 "                    const char *device,\n"
28813 "                    const char *mountpoint);\n"
28814 "\n"
28815 msgstr ""
28816
28817 #. type: textblock
28818 #: ../src/guestfs-actions.pod:5217
28819 msgid ""
28820 "This is the same as the C<guestfs_mount> command, but it allows you to set "
28821 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and "
28822 "I<-t> flags."
28823 msgstr ""
28824
28825 #. type: =head2
28826 #: ../src/guestfs-actions.pod:5225
28827 msgid "guestfs_mountpoints"
28828 msgstr ""
28829
28830 #. type: verbatim
28831 #: ../src/guestfs-actions.pod:5227
28832 #, no-wrap
28833 msgid ""
28834 " char **\n"
28835 " guestfs_mountpoints (guestfs_h *g);\n"
28836 "\n"
28837 msgstr ""
28838
28839 #. type: textblock
28840 #: ../src/guestfs-actions.pod:5230
28841 msgid ""
28842 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
28843 "devices.  This one returns a hash table (map) of device name to directory "
28844 "where the device is mounted."
28845 msgstr ""
28846
28847 #. type: =head2
28848 #: ../src/guestfs-actions.pod:5242
28849 msgid "guestfs_mounts"
28850 msgstr ""
28851
28852 #. type: verbatim
28853 #: ../src/guestfs-actions.pod:5244
28854 #, no-wrap
28855 msgid ""
28856 " char **\n"
28857 " guestfs_mounts (guestfs_h *g);\n"
28858 "\n"
28859 msgstr ""
28860
28861 #. type: textblock
28862 #: ../src/guestfs-actions.pod:5252
28863 msgid "See also: C<guestfs_mountpoints>"
28864 msgstr ""
28865
28866 #. type: =head2
28867 #: ../src/guestfs-actions.pod:5260
28868 msgid "guestfs_mv"
28869 msgstr ""
28870
28871 #. type: verbatim
28872 #: ../src/guestfs-actions.pod:5262
28873 #, no-wrap
28874 msgid ""
28875 " int\n"
28876 " guestfs_mv (guestfs_h *g,\n"
28877 "             const char *src,\n"
28878 "             const char *dest);\n"
28879 "\n"
28880 msgstr ""
28881
28882 #. type: =head2
28883 #: ../src/guestfs-actions.pod:5274
28884 msgid "guestfs_ntfs_3g_probe"
28885 msgstr ""
28886
28887 #. type: verbatim
28888 #: ../src/guestfs-actions.pod:5276
28889 #, no-wrap
28890 msgid ""
28891 " int\n"
28892 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
28893 "                        int rw,\n"
28894 "                        const char *device);\n"
28895 "\n"
28896 msgstr ""
28897
28898 #. type: textblock
28899 #: ../src/guestfs-actions.pod:5295
28900 msgid "(Added in 1.0.43)"
28901 msgstr ""
28902
28903 #. type: =head2
28904 #: ../src/guestfs-actions.pod:5297
28905 msgid "guestfs_ntfsresize"
28906 msgstr ""
28907
28908 #. type: verbatim
28909 #: ../src/guestfs-actions.pod:5299
28910 #, no-wrap
28911 msgid ""
28912 " int\n"
28913 " guestfs_ntfsresize (guestfs_h *g,\n"
28914 "                     const char *device);\n"
28915 "\n"
28916 msgstr ""
28917
28918 #. type: textblock
28919 #: ../src/guestfs-actions.pod:5303 ../src/guestfs-actions.pod:5403
28920 msgid ""
28921 "I<This function is deprecated.> In new code, use the "
28922 "L</guestfs_ntfsresize_opts> call instead."
28923 msgstr ""
28924
28925 #. type: =head2
28926 #: ../src/guestfs-actions.pod:5327
28927 msgid "guestfs_ntfsresize_opts"
28928 msgstr ""
28929
28930 #. type: verbatim
28931 #: ../src/guestfs-actions.pod:5329
28932 #, no-wrap
28933 msgid ""
28934 " int\n"
28935 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
28936 "                          const char *device,\n"
28937 "                          ...);\n"
28938 "\n"
28939 msgstr ""
28940
28941 #. type: verbatim
28942 #: ../src/guestfs-actions.pod:5339
28943 #, no-wrap
28944 msgid ""
28945 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
28946 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
28947 "\n"
28948 msgstr ""
28949
28950 #. type: textblock
28951 #: ../src/guestfs-actions.pod:5359
28952 msgid ""
28953 "After the resize operation, the filesystem is always marked as requiring a "
28954 "consistency check (for safety).  You have to boot into Windows to perform "
28955 "this check and clear this condition.  If you I<don't> set the C<force> "
28956 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
28957 "times on a single filesystem without booting into Windows between each "
28958 "resize."
28959 msgstr ""
28960
28961 #. type: =head2
28962 #: ../src/guestfs-actions.pod:5374
28963 msgid "guestfs_ntfsresize_opts_va"
28964 msgstr ""
28965
28966 #. type: verbatim
28967 #: ../src/guestfs-actions.pod:5376
28968 #, no-wrap
28969 msgid ""
28970 " int\n"
28971 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
28972 "                             const char *device,\n"
28973 "                             va_list args);\n"
28974 "\n"
28975 msgstr ""
28976
28977 #. type: textblock
28978 #: ../src/guestfs-actions.pod:5381
28979 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
28980 msgstr ""
28981
28982 #. type: =head2
28983 #: ../src/guestfs-actions.pod:5385
28984 msgid "guestfs_ntfsresize_opts_argv"
28985 msgstr ""
28986
28987 #. type: verbatim
28988 #: ../src/guestfs-actions.pod:5387
28989 #, no-wrap
28990 msgid ""
28991 " int\n"
28992 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
28993 "                               const char *device,\n"
28994 "                               const struct guestfs_ntfsresize_opts_argv "
28995 "*optargs);\n"
28996 "\n"
28997 msgstr ""
28998
28999 #. type: textblock
29000 #: ../src/guestfs-actions.pod:5392
29001 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
29002 msgstr ""
29003
29004 #. type: =head2
29005 #: ../src/guestfs-actions.pod:5396
29006 msgid "guestfs_ntfsresize_size"
29007 msgstr ""
29008
29009 #. type: verbatim
29010 #: ../src/guestfs-actions.pod:5398
29011 #, no-wrap
29012 msgid ""
29013 " int\n"
29014 " guestfs_ntfsresize_size (guestfs_h *g,\n"
29015 "                          const char *device,\n"
29016 "                          int64_t size);\n"
29017 "\n"
29018 msgstr ""
29019
29020 #. type: textblock
29021 #: ../src/guestfs-actions.pod:5410
29022 msgid ""
29023 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
29024 "to specify the new size (in bytes) explicitly."
29025 msgstr ""
29026
29027 #. type: textblock
29028 #: ../src/guestfs-actions.pod:5415 ../src/guestfs-actions.pod:5857 ../src/guestfs-actions.pod:5930 ../src/guestfs-actions.pod:6198 ../src/guestfs-actions.pod:7837
29029 msgid "(Added in 1.3.14)"
29030 msgstr ""
29031
29032 #. type: =head2
29033 #: ../src/guestfs-actions.pod:5417
29034 msgid "guestfs_part_add"
29035 msgstr ""
29036
29037 #. type: verbatim
29038 #: ../src/guestfs-actions.pod:5419
29039 #, no-wrap
29040 msgid ""
29041 " int\n"
29042 " guestfs_part_add (guestfs_h *g,\n"
29043 "                   const char *device,\n"
29044 "                   const char *prlogex,\n"
29045 "                   int64_t startsect,\n"
29046 "                   int64_t endsect);\n"
29047 "\n"
29048 msgstr ""
29049
29050 #. type: textblock
29051 #: ../src/guestfs-actions.pod:5426
29052 msgid ""
29053 "This command adds a partition to C<device>.  If there is no partition table "
29054 "on the device, call C<guestfs_part_init> first."
29055 msgstr ""
29056
29057 #. type: textblock
29058 #: ../src/guestfs-actions.pod:5438
29059 msgid ""
29060 "Creating a partition which covers the whole disk is not so easy.  Use "
29061 "C<guestfs_part_disk> to do that."
29062 msgstr ""
29063
29064 #. type: textblock
29065 #: ../src/guestfs-actions.pod:5443 ../src/guestfs-actions.pod:5481 ../src/guestfs-actions.pod:5534 ../src/guestfs-actions.pod:5618 ../src/guestfs-actions.pod:5656 ../src/guestfs-actions.pod:5675 ../src/guestfs-actions.pod:5715
29066 msgid "(Added in 1.0.78)"
29067 msgstr ""
29068
29069 #. type: =head2
29070 #: ../src/guestfs-actions.pod:5445
29071 msgid "guestfs_part_del"
29072 msgstr ""
29073
29074 #. type: verbatim
29075 #: ../src/guestfs-actions.pod:5447
29076 #, no-wrap
29077 msgid ""
29078 " int\n"
29079 " guestfs_part_del (guestfs_h *g,\n"
29080 "                   const char *device,\n"
29081 "                   int partnum);\n"
29082 "\n"
29083 msgstr ""
29084
29085 #. type: =head2
29086 #: ../src/guestfs-actions.pod:5462
29087 msgid "guestfs_part_disk"
29088 msgstr ""
29089
29090 #. type: verbatim
29091 #: ../src/guestfs-actions.pod:5464
29092 #, no-wrap
29093 msgid ""
29094 " int\n"
29095 " guestfs_part_disk (guestfs_h *g,\n"
29096 "                    const char *device,\n"
29097 "                    const char *parttype);\n"
29098 "\n"
29099 msgstr ""
29100
29101 #. type: textblock
29102 #: ../src/guestfs-actions.pod:5469
29103 msgid ""
29104 "This command is simply a combination of C<guestfs_part_init> followed by "
29105 "C<guestfs_part_add> to create a single primary partition covering the whole "
29106 "disk."
29107 msgstr ""
29108
29109 #. type: textblock
29110 #: ../src/guestfs-actions.pod:5473
29111 msgid ""
29112 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
29113 "possible values are described in C<guestfs_part_init>."
29114 msgstr ""
29115
29116 #. type: =head2
29117 #: ../src/guestfs-actions.pod:5483
29118 msgid "guestfs_part_get_bootable"
29119 msgstr ""
29120
29121 #. type: verbatim
29122 #: ../src/guestfs-actions.pod:5485
29123 #, no-wrap
29124 msgid ""
29125 " int\n"
29126 " guestfs_part_get_bootable (guestfs_h *g,\n"
29127 "                            const char *device,\n"
29128 "                            int partnum);\n"
29129 "\n"
29130 msgstr ""
29131
29132 #. type: textblock
29133 #: ../src/guestfs-actions.pod:5493
29134 msgid "See also C<guestfs_part_set_bootable>."
29135 msgstr ""
29136
29137 #. type: =head2
29138 #: ../src/guestfs-actions.pod:5499
29139 msgid "guestfs_part_get_mbr_id"
29140 msgstr ""
29141
29142 #. type: verbatim
29143 #: ../src/guestfs-actions.pod:5501
29144 #, no-wrap
29145 msgid ""
29146 " int\n"
29147 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
29148 "                          const char *device,\n"
29149 "                          int partnum);\n"
29150 "\n"
29151 msgstr ""
29152
29153 #. type: textblock
29154 #: ../src/guestfs-actions.pod:5509 ../src/guestfs-actions.pod:5691
29155 msgid ""
29156 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
29157 "undefined results for other partition table types (see "
29158 "C<guestfs_part_get_parttype>)."
29159 msgstr ""
29160
29161 #. type: =head2
29162 #: ../src/guestfs-actions.pod:5517
29163 msgid "guestfs_part_get_parttype"
29164 msgstr ""
29165
29166 #. type: verbatim
29167 #: ../src/guestfs-actions.pod:5519
29168 #, no-wrap
29169 msgid ""
29170 " char *\n"
29171 " guestfs_part_get_parttype (guestfs_h *g,\n"
29172 "                            const char *device);\n"
29173 "\n"
29174 msgstr ""
29175
29176 #. type: textblock
29177 #: ../src/guestfs-actions.pod:5526
29178 msgid ""
29179 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
29180 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
29181 "possible, although unusual.  See C<guestfs_part_init> for a full list."
29182 msgstr ""
29183
29184 #. type: =head2
29185 #: ../src/guestfs-actions.pod:5536
29186 msgid "guestfs_part_init"
29187 msgstr ""
29188
29189 #. type: verbatim
29190 #: ../src/guestfs-actions.pod:5538
29191 #, no-wrap
29192 msgid ""
29193 " int\n"
29194 " guestfs_part_init (guestfs_h *g,\n"
29195 "                    const char *device,\n"
29196 "                    const char *parttype);\n"
29197 "\n"
29198 msgstr ""
29199
29200 #. type: textblock
29201 #: ../src/guestfs-actions.pod:5547
29202 msgid ""
29203 "Initially there are no partitions.  Following this, you should call "
29204 "C<guestfs_part_add> for each partition required."
29205 msgstr ""
29206
29207 #. type: =head2
29208 #: ../src/guestfs-actions.pod:5620
29209 msgid "guestfs_part_list"
29210 msgstr ""
29211
29212 #. type: verbatim
29213 #: ../src/guestfs-actions.pod:5622
29214 #, no-wrap
29215 msgid ""
29216 " struct guestfs_partition_list *\n"
29217 " guestfs_part_list (guestfs_h *g,\n"
29218 "                    const char *device);\n"
29219 "\n"
29220 msgstr ""
29221
29222 #. type: textblock
29223 #: ../src/guestfs-actions.pod:5639
29224 msgid ""
29225 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
29226 "the device's sector size, see C<guestfs_blockdev_getss>."
29227 msgstr ""
29228
29229 #. type: textblock
29230 #: ../src/guestfs-actions.pod:5652
29231 msgid ""
29232 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
29233 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
29234 "use>."
29235 msgstr ""
29236
29237 #. type: =head2
29238 #: ../src/guestfs-actions.pod:5658
29239 msgid "guestfs_part_set_bootable"
29240 msgstr ""
29241
29242 #. type: verbatim
29243 #: ../src/guestfs-actions.pod:5660
29244 #, no-wrap
29245 msgid ""
29246 " int\n"
29247 " guestfs_part_set_bootable (guestfs_h *g,\n"
29248 "                            const char *device,\n"
29249 "                            int partnum,\n"
29250 "                            int bootable);\n"
29251 "\n"
29252 msgstr ""
29253
29254 #. type: =head2
29255 #: ../src/guestfs-actions.pod:5677
29256 msgid "guestfs_part_set_mbr_id"
29257 msgstr ""
29258
29259 #. type: verbatim
29260 #: ../src/guestfs-actions.pod:5679
29261 #, no-wrap
29262 msgid ""
29263 " int\n"
29264 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
29265 "                          const char *device,\n"
29266 "                          int partnum,\n"
29267 "                          int idbyte);\n"
29268 "\n"
29269 msgstr ""
29270
29271 #. type: =head2
29272 #: ../src/guestfs-actions.pod:5699
29273 msgid "guestfs_part_set_name"
29274 msgstr ""
29275
29276 #. type: verbatim
29277 #: ../src/guestfs-actions.pod:5701
29278 #, no-wrap
29279 msgid ""
29280 " int\n"
29281 " guestfs_part_set_name (guestfs_h *g,\n"
29282 "                        const char *device,\n"
29283 "                        int partnum,\n"
29284 "                        const char *name);\n"
29285 "\n"
29286 msgstr ""
29287
29288 #. type: =head2
29289 #: ../src/guestfs-actions.pod:5717
29290 msgid "guestfs_part_to_dev"
29291 msgstr ""
29292
29293 #. type: verbatim
29294 #: ../src/guestfs-actions.pod:5719
29295 #, no-wrap
29296 msgid ""
29297 " char *\n"
29298 " guestfs_part_to_dev (guestfs_h *g,\n"
29299 "                      const char *partition);\n"
29300 "\n"
29301 msgstr ""
29302
29303 #. type: textblock
29304 #: ../src/guestfs-actions.pod:5727
29305 msgid ""
29306 "The named partition must exist, for example as a string returned from "
29307 "C<guestfs_list_partitions>."
29308 msgstr ""
29309
29310 #. type: =head2
29311 #: ../src/guestfs-actions.pod:5735
29312 msgid "guestfs_ping_daemon"
29313 msgstr ""
29314
29315 #. type: verbatim
29316 #: ../src/guestfs-actions.pod:5737
29317 #, no-wrap
29318 msgid ""
29319 " int\n"
29320 " guestfs_ping_daemon (guestfs_h *g);\n"
29321 "\n"
29322 msgstr ""
29323
29324 #. type: =head2
29325 #: ../src/guestfs-actions.pod:5749
29326 msgid "guestfs_pread"
29327 msgstr ""
29328
29329 #. type: verbatim
29330 #: ../src/guestfs-actions.pod:5751
29331 #, no-wrap
29332 msgid ""
29333 " char *\n"
29334 " guestfs_pread (guestfs_h *g,\n"
29335 "                const char *path,\n"
29336 "                int count,\n"
29337 "                int64_t offset,\n"
29338 "                size_t *size_r);\n"
29339 "\n"
29340 msgstr ""
29341
29342 #. type: textblock
29343 #: ../src/guestfs-actions.pod:5764
29344 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
29345 msgstr ""
29346
29347 #. type: =head2
29348 #: ../src/guestfs-actions.pod:5775
29349 msgid "guestfs_pread_device"
29350 msgstr ""
29351
29352 #. type: verbatim
29353 #: ../src/guestfs-actions.pod:5777
29354 #, no-wrap
29355 msgid ""
29356 " char *\n"
29357 " guestfs_pread_device (guestfs_h *g,\n"
29358 "                       const char *device,\n"
29359 "                       int count,\n"
29360 "                       int64_t offset,\n"
29361 "                       size_t *size_r);\n"
29362 "\n"
29363 msgstr ""
29364
29365 #. type: textblock
29366 #: ../src/guestfs-actions.pod:5790
29367 msgid "See also C<guestfs_pread>."
29368 msgstr ""
29369
29370 #. type: textblock
29371 #: ../src/guestfs-actions.pod:5799
29372 msgid "(Added in 1.5.21)"
29373 msgstr ""
29374
29375 #. type: =head2
29376 #: ../src/guestfs-actions.pod:5801
29377 msgid "guestfs_pvcreate"
29378 msgstr ""
29379
29380 #. type: verbatim
29381 #: ../src/guestfs-actions.pod:5803
29382 #, no-wrap
29383 msgid ""
29384 " int\n"
29385 " guestfs_pvcreate (guestfs_h *g,\n"
29386 "                   const char *device);\n"
29387 "\n"
29388 msgstr ""
29389
29390 #. type: =head2
29391 #: ../src/guestfs-actions.pod:5815
29392 msgid "guestfs_pvremove"
29393 msgstr ""
29394
29395 #. type: verbatim
29396 #: ../src/guestfs-actions.pod:5817
29397 #, no-wrap
29398 msgid ""
29399 " int\n"
29400 " guestfs_pvremove (guestfs_h *g,\n"
29401 "                   const char *device);\n"
29402 "\n"
29403 msgstr ""
29404
29405 #. type: =head2
29406 #: ../src/guestfs-actions.pod:5832
29407 msgid "guestfs_pvresize"
29408 msgstr ""
29409
29410 #. type: verbatim
29411 #: ../src/guestfs-actions.pod:5834
29412 #, no-wrap
29413 msgid ""
29414 " int\n"
29415 " guestfs_pvresize (guestfs_h *g,\n"
29416 "                   const char *device);\n"
29417 "\n"
29418 msgstr ""
29419
29420 #. type: =head2
29421 #: ../src/guestfs-actions.pod:5845
29422 msgid "guestfs_pvresize_size"
29423 msgstr ""
29424
29425 #. type: verbatim
29426 #: ../src/guestfs-actions.pod:5847
29427 #, no-wrap
29428 msgid ""
29429 " int\n"
29430 " guestfs_pvresize_size (guestfs_h *g,\n"
29431 "                        const char *device,\n"
29432 "                        int64_t size);\n"
29433 "\n"
29434 msgstr ""
29435
29436 #. type: textblock
29437 #: ../src/guestfs-actions.pod:5852
29438 msgid ""
29439 "This command is the same as C<guestfs_pvresize> except that it allows you to "
29440 "specify the new size (in bytes) explicitly."
29441 msgstr ""
29442
29443 #. type: =head2
29444 #: ../src/guestfs-actions.pod:5859
29445 msgid "guestfs_pvs"
29446 msgstr ""
29447
29448 #. type: verbatim
29449 #: ../src/guestfs-actions.pod:5861
29450 #, no-wrap
29451 msgid ""
29452 " char **\n"
29453 " guestfs_pvs (guestfs_h *g);\n"
29454 "\n"
29455 msgstr ""
29456
29457 #. type: textblock
29458 #: ../src/guestfs-actions.pod:5870
29459 msgid "See also C<guestfs_pvs_full>."
29460 msgstr ""
29461
29462 #. type: =head2
29463 #: ../src/guestfs-actions.pod:5878
29464 msgid "guestfs_pvs_full"
29465 msgstr ""
29466
29467 #. type: verbatim
29468 #: ../src/guestfs-actions.pod:5880
29469 #, no-wrap
29470 msgid ""
29471 " struct guestfs_lvm_pv_list *\n"
29472 " guestfs_pvs_full (guestfs_h *g);\n"
29473 "\n"
29474 msgstr ""
29475
29476 #. type: textblock
29477 #: ../src/guestfs-actions.pod:5886
29478 msgid ""
29479 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
29480 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after "
29481 "use>."
29482 msgstr ""
29483
29484 #. type: =head2
29485 #: ../src/guestfs-actions.pod:5892
29486 msgid "guestfs_pvuuid"
29487 msgstr ""
29488
29489 #. type: verbatim
29490 #: ../src/guestfs-actions.pod:5894
29491 #, no-wrap
29492 msgid ""
29493 " char *\n"
29494 " guestfs_pvuuid (guestfs_h *g,\n"
29495 "                 const char *device);\n"
29496 "\n"
29497 msgstr ""
29498
29499 #. type: =head2
29500 #: ../src/guestfs-actions.pod:5905
29501 msgid "guestfs_pwrite"
29502 msgstr ""
29503
29504 #. type: verbatim
29505 #: ../src/guestfs-actions.pod:5907
29506 #, no-wrap
29507 msgid ""
29508 " int\n"
29509 " guestfs_pwrite (guestfs_h *g,\n"
29510 "                 const char *path,\n"
29511 "                 const char *content,\n"
29512 "                 size_t content_size,\n"
29513 "                 int64_t offset);\n"
29514 "\n"
29515 msgstr ""
29516
29517 #. type: textblock
29518 #: ../src/guestfs-actions.pod:5923
29519 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
29520 msgstr ""
29521
29522 #. type: =head2
29523 #: ../src/guestfs-actions.pod:5932
29524 msgid "guestfs_pwrite_device"
29525 msgstr ""
29526
29527 #. type: verbatim
29528 #: ../src/guestfs-actions.pod:5934
29529 #, no-wrap
29530 msgid ""
29531 " int\n"
29532 " guestfs_pwrite_device (guestfs_h *g,\n"
29533 "                        const char *device,\n"
29534 "                        const char *content,\n"
29535 "                        size_t content_size,\n"
29536 "                        int64_t offset);\n"
29537 "\n"
29538 msgstr ""
29539
29540 #. type: textblock
29541 #: ../src/guestfs-actions.pod:5949
29542 msgid "See also C<guestfs_pwrite>."
29543 msgstr ""
29544
29545 #. type: textblock
29546 #: ../src/guestfs-actions.pod:5956
29547 msgid "(Added in 1.5.20)"
29548 msgstr ""
29549
29550 #. type: =head2
29551 #: ../src/guestfs-actions.pod:5958
29552 msgid "guestfs_read_file"
29553 msgstr ""
29554
29555 #. type: verbatim
29556 #: ../src/guestfs-actions.pod:5960
29557 #, no-wrap
29558 msgid ""
29559 " char *\n"
29560 " guestfs_read_file (guestfs_h *g,\n"
29561 "                    const char *path,\n"
29562 "                    size_t *size_r);\n"
29563 "\n"
29564 msgstr ""
29565
29566 #. type: textblock
29567 #: ../src/guestfs-actions.pod:5968
29568 msgid ""
29569 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
29570 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
29571 "function is limited in the total size of file that can be handled."
29572 msgstr ""
29573
29574 #. type: textblock
29575 #: ../src/guestfs-actions.pod:5980
29576 msgid "(Added in 1.0.63)"
29577 msgstr ""
29578
29579 #. type: =head2
29580 #: ../src/guestfs-actions.pod:5982
29581 msgid "guestfs_read_lines"
29582 msgstr ""
29583
29584 #. type: verbatim
29585 #: ../src/guestfs-actions.pod:5984
29586 #, no-wrap
29587 msgid ""
29588 " char **\n"
29589 " guestfs_read_lines (guestfs_h *g,\n"
29590 "                     const char *path);\n"
29591 "\n"
29592 msgstr ""
29593
29594 #. type: textblock
29595 #: ../src/guestfs-actions.pod:5993
29596 msgid ""
29597 "Note that this function cannot correctly handle binary files (specifically, "
29598 "files containing C<\\0> character which is treated as end of line).  For "
29599 "those you need to use the C<guestfs_read_file> function which has a more "
29600 "complex interface."
29601 msgstr ""
29602
29603 #. type: =head2
29604 #: ../src/guestfs-actions.pod:6004
29605 msgid "guestfs_readdir"
29606 msgstr ""
29607
29608 #. type: verbatim
29609 #: ../src/guestfs-actions.pod:6006
29610 #, no-wrap
29611 msgid ""
29612 " struct guestfs_dirent_list *\n"
29613 " guestfs_readdir (guestfs_h *g,\n"
29614 "                  const char *dir);\n"
29615 "\n"
29616 msgstr ""
29617
29618 #. type: textblock
29619 #: ../src/guestfs-actions.pod:6060
29620 msgid ""
29621 "This function is primarily intended for use by programs.  To get a simple "
29622 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
29623 "consumption, use C<guestfs_ll>."
29624 msgstr ""
29625
29626 #. type: textblock
29627 #: ../src/guestfs-actions.pod:6064
29628 msgid ""
29629 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
29630 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after "
29631 "use>."
29632 msgstr ""
29633
29634 #. type: =head2
29635 #: ../src/guestfs-actions.pod:6070
29636 msgid "guestfs_readlink"
29637 msgstr ""
29638
29639 #. type: verbatim
29640 #: ../src/guestfs-actions.pod:6072
29641 #, no-wrap
29642 msgid ""
29643 " char *\n"
29644 " guestfs_readlink (guestfs_h *g,\n"
29645 "                   const char *path);\n"
29646 "\n"
29647 msgstr ""
29648
29649 #. type: =head2
29650 #: ../src/guestfs-actions.pod:6083
29651 msgid "guestfs_readlinklist"
29652 msgstr ""
29653
29654 #. type: verbatim
29655 #: ../src/guestfs-actions.pod:6085
29656 #, no-wrap
29657 msgid ""
29658 " char **\n"
29659 " guestfs_readlinklist (guestfs_h *g,\n"
29660 "                       const char *path,\n"
29661 "                       char *const *names);\n"
29662 "\n"
29663 msgstr ""
29664
29665 #. type: =head2
29666 #: ../src/guestfs-actions.pod:6118
29667 msgid "guestfs_realpath"
29668 msgstr ""
29669
29670 #. type: verbatim
29671 #: ../src/guestfs-actions.pod:6120
29672 #, no-wrap
29673 msgid ""
29674 " char *\n"
29675 " guestfs_realpath (guestfs_h *g,\n"
29676 "                   const char *path);\n"
29677 "\n"
29678 msgstr ""
29679
29680 #. type: =head2
29681 #: ../src/guestfs-actions.pod:6132
29682 msgid "guestfs_removexattr"
29683 msgstr ""
29684
29685 #. type: verbatim
29686 #: ../src/guestfs-actions.pod:6134
29687 #, no-wrap
29688 msgid ""
29689 " int\n"
29690 " guestfs_removexattr (guestfs_h *g,\n"
29691 "                      const char *xattr,\n"
29692 "                      const char *path);\n"
29693 "\n"
29694 msgstr ""
29695
29696 #. type: textblock
29697 #: ../src/guestfs-actions.pod:6142
29698 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
29699 msgstr ""
29700
29701 #. type: =head2
29702 #: ../src/guestfs-actions.pod:6148
29703 msgid "guestfs_resize2fs"
29704 msgstr ""
29705
29706 #. type: verbatim
29707 #: ../src/guestfs-actions.pod:6150
29708 #, no-wrap
29709 msgid ""
29710 " int\n"
29711 " guestfs_resize2fs (guestfs_h *g,\n"
29712 "                    const char *device);\n"
29713 "\n"
29714 msgstr ""
29715
29716 #. type: textblock
29717 #: ../src/guestfs-actions.pod:6157
29718 msgid ""
29719 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
29720 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
29721 "sometimes gives an error about this and sometimes not.  In any case, it is "
29722 "always safe to call C<guestfs_e2fsck_f> before calling this function."
29723 msgstr ""
29724
29725 #. type: =head2
29726 #: ../src/guestfs-actions.pod:6167
29727 msgid "guestfs_resize2fs_M"
29728 msgstr ""
29729
29730 #. type: verbatim
29731 #: ../src/guestfs-actions.pod:6169
29732 #, no-wrap
29733 msgid ""
29734 " int\n"
29735 " guestfs_resize2fs_M (guestfs_h *g,\n"
29736 "                      const char *device);\n"
29737 "\n"
29738 msgstr ""
29739
29740 #. type: textblock
29741 #: ../src/guestfs-actions.pod:6173
29742 msgid ""
29743 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
29744 "resized to its minimum size.  This works like the I<-M> option to the "
29745 "C<resize2fs> command."
29746 msgstr ""
29747
29748 #. type: textblock
29749 #: ../src/guestfs-actions.pod:6177
29750 msgid ""
29751 "To get the resulting size of the filesystem you should call "
29752 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
29753 "These two numbers, multiplied together, give the resulting size of the "
29754 "minimal filesystem in bytes."
29755 msgstr ""
29756
29757 #. type: =head2
29758 #: ../src/guestfs-actions.pod:6186
29759 msgid "guestfs_resize2fs_size"
29760 msgstr ""
29761
29762 #. type: verbatim
29763 #: ../src/guestfs-actions.pod:6188
29764 #, no-wrap
29765 msgid ""
29766 " int\n"
29767 " guestfs_resize2fs_size (guestfs_h *g,\n"
29768 "                         const char *device,\n"
29769 "                         int64_t size);\n"
29770 "\n"
29771 msgstr ""
29772
29773 #. type: textblock
29774 #: ../src/guestfs-actions.pod:6193
29775 msgid ""
29776 "This command is the same as C<guestfs_resize2fs> except that it allows you "
29777 "to specify the new size (in bytes) explicitly."
29778 msgstr ""
29779
29780 #. type: =head2
29781 #: ../src/guestfs-actions.pod:6200
29782 msgid "guestfs_rm"
29783 msgstr ""
29784
29785 #. type: verbatim
29786 #: ../src/guestfs-actions.pod:6202
29787 #, no-wrap
29788 msgid ""
29789 " int\n"
29790 " guestfs_rm (guestfs_h *g,\n"
29791 "             const char *path);\n"
29792 "\n"
29793 msgstr ""
29794
29795 #. type: =head2
29796 #: ../src/guestfs-actions.pod:6212
29797 msgid "guestfs_rm_rf"
29798 msgstr ""
29799
29800 #. type: verbatim
29801 #: ../src/guestfs-actions.pod:6214
29802 #, no-wrap
29803 msgid ""
29804 " int\n"
29805 " guestfs_rm_rf (guestfs_h *g,\n"
29806 "                const char *path);\n"
29807 "\n"
29808 msgstr ""
29809
29810 #. type: =head2
29811 #: ../src/guestfs-actions.pod:6226
29812 msgid "guestfs_rmdir"
29813 msgstr ""
29814
29815 #. type: verbatim
29816 #: ../src/guestfs-actions.pod:6228
29817 #, no-wrap
29818 msgid ""
29819 " int\n"
29820 " guestfs_rmdir (guestfs_h *g,\n"
29821 "                const char *path);\n"
29822 "\n"
29823 msgstr ""
29824
29825 #. type: =head2
29826 #: ../src/guestfs-actions.pod:6238
29827 msgid "guestfs_rmmountpoint"
29828 msgstr ""
29829
29830 #. type: verbatim
29831 #: ../src/guestfs-actions.pod:6240
29832 #, no-wrap
29833 msgid ""
29834 " int\n"
29835 " guestfs_rmmountpoint (guestfs_h *g,\n"
29836 "                       const char *exemptpath);\n"
29837 "\n"
29838 msgstr ""
29839
29840 #. type: textblock
29841 #: ../src/guestfs-actions.pod:6244
29842 msgid ""
29843 "This calls removes a mountpoint that was previously created with "
29844 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
29845 msgstr ""
29846
29847 #. type: =head2
29848 #: ../src/guestfs-actions.pod:6252
29849 msgid "guestfs_scrub_device"
29850 msgstr ""
29851
29852 #. type: verbatim
29853 #: ../src/guestfs-actions.pod:6254
29854 #, no-wrap
29855 msgid ""
29856 " int\n"
29857 " guestfs_scrub_device (guestfs_h *g,\n"
29858 "                       const char *device);\n"
29859 "\n"
29860 msgstr ""
29861
29862 #. type: textblock
29863 #: ../src/guestfs-actions.pod:6269 ../src/guestfs-actions.pod:6287 ../src/guestfs-actions.pod:6306
29864 msgid "(Added in 1.0.52)"
29865 msgstr ""
29866
29867 #. type: =head2
29868 #: ../src/guestfs-actions.pod:6271
29869 msgid "guestfs_scrub_file"
29870 msgstr ""
29871
29872 #. type: verbatim
29873 #: ../src/guestfs-actions.pod:6273
29874 #, no-wrap
29875 msgid ""
29876 " int\n"
29877 " guestfs_scrub_file (guestfs_h *g,\n"
29878 "                     const char *file);\n"
29879 "\n"
29880 msgstr ""
29881
29882 #. type: =head2
29883 #: ../src/guestfs-actions.pod:6289
29884 msgid "guestfs_scrub_freespace"
29885 msgstr ""
29886
29887 #. type: verbatim
29888 #: ../src/guestfs-actions.pod:6291
29889 #, no-wrap
29890 msgid ""
29891 " int\n"
29892 " guestfs_scrub_freespace (guestfs_h *g,\n"
29893 "                          const char *dir);\n"
29894 "\n"
29895 msgstr ""
29896
29897 #. type: textblock
29898 #: ../src/guestfs-actions.pod:6295
29899 msgid ""
29900 "This command creates the directory C<dir> and then fills it with files until "
29901 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
29902 "and deletes them.  The intention is to scrub any free space on the partition "
29903 "containing C<dir>."
29904 msgstr ""
29905
29906 #. type: =head2
29907 #: ../src/guestfs-actions.pod:6308
29908 msgid "guestfs_set_append"
29909 msgstr ""
29910
29911 #. type: verbatim
29912 #: ../src/guestfs-actions.pod:6310
29913 #, no-wrap
29914 msgid ""
29915 " int\n"
29916 " guestfs_set_append (guestfs_h *g,\n"
29917 "                     const char *append);\n"
29918 "\n"
29919 msgstr ""
29920
29921 #. type: =head2
29922 #: ../src/guestfs-actions.pod:6327
29923 msgid "guestfs_set_attach_method"
29924 msgstr ""
29925
29926 #. type: verbatim
29927 #: ../src/guestfs-actions.pod:6329
29928 #, no-wrap
29929 msgid ""
29930 " int\n"
29931 " guestfs_set_attach_method (guestfs_h *g,\n"
29932 "                            const char *attachmethod);\n"
29933 "\n"
29934 msgstr ""
29935
29936 #. type: =head2
29937 #: ../src/guestfs-actions.pod:6357
29938 msgid "guestfs_set_autosync"
29939 msgstr ""
29940
29941 #. type: verbatim
29942 #: ../src/guestfs-actions.pod:6359
29943 #, no-wrap
29944 msgid ""
29945 " int\n"
29946 " guestfs_set_autosync (guestfs_h *g,\n"
29947 "                       int autosync);\n"
29948 "\n"
29949 msgstr ""
29950
29951 #. type: =head2
29952 #: ../src/guestfs-actions.pod:6375
29953 msgid "guestfs_set_direct"
29954 msgstr ""
29955
29956 #. type: verbatim
29957 #: ../src/guestfs-actions.pod:6377
29958 #, no-wrap
29959 msgid ""
29960 " int\n"
29961 " guestfs_set_direct (guestfs_h *g,\n"
29962 "                     int direct);\n"
29963 "\n"
29964 msgstr ""
29965
29966 #. type: textblock
29967 #: ../src/guestfs-actions.pod:6385
29968 msgid ""
29969 "One consequence of this is that log messages aren't caught by the library "
29970 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
29971 "stdout."
29972 msgstr ""
29973
29974 #. type: =head2
29975 #: ../src/guestfs-actions.pod:6398
29976 msgid "guestfs_set_e2label"
29977 msgstr ""
29978
29979 #. type: verbatim
29980 #: ../src/guestfs-actions.pod:6400
29981 #, no-wrap
29982 msgid ""
29983 " int\n"
29984 " guestfs_set_e2label (guestfs_h *g,\n"
29985 "                      const char *device,\n"
29986 "                      const char *label);\n"
29987 "\n"
29988 msgstr ""
29989
29990 #. type: textblock
29991 #: ../src/guestfs-actions.pod:6409
29992 msgid ""
29993 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
29994 "the existing label on a filesystem."
29995 msgstr ""
29996
29997 #. type: =head2
29998 #: ../src/guestfs-actions.pod:6416
29999 msgid "guestfs_set_e2uuid"
30000 msgstr ""
30001
30002 #. type: verbatim
30003 #: ../src/guestfs-actions.pod:6418
30004 #, no-wrap
30005 msgid ""
30006 " int\n"
30007 " guestfs_set_e2uuid (guestfs_h *g,\n"
30008 "                     const char *device,\n"
30009 "                     const char *uuid);\n"
30010 "\n"
30011 msgstr ""
30012
30013 #. type: textblock
30014 #: ../src/guestfs-actions.pod:6428
30015 msgid ""
30016 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
30017 "the existing UUID of a filesystem."
30018 msgstr ""
30019
30020 #. type: =head2
30021 #: ../src/guestfs-actions.pod:6435
30022 msgid "guestfs_set_memsize"
30023 msgstr ""
30024
30025 #. type: verbatim
30026 #: ../src/guestfs-actions.pod:6437
30027 #, no-wrap
30028 msgid ""
30029 " int\n"
30030 " guestfs_set_memsize (guestfs_h *g,\n"
30031 "                      int memsize);\n"
30032 "\n"
30033 msgstr ""
30034
30035 #. type: textblock
30036 #: ../src/guestfs-actions.pod:6441
30037 msgid ""
30038 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
30039 "This only has any effect if called before C<guestfs_launch>."
30040 msgstr ""
30041
30042 #. type: =head2
30043 #: ../src/guestfs-actions.pod:6456
30044 msgid "guestfs_set_network"
30045 msgstr ""
30046
30047 #. type: verbatim
30048 #: ../src/guestfs-actions.pod:6458
30049 #, no-wrap
30050 msgid ""
30051 " int\n"
30052 " guestfs_set_network (guestfs_h *g,\n"
30053 "                      int network);\n"
30054 "\n"
30055 msgstr ""
30056
30057 #. type: textblock
30058 #: ../src/guestfs-actions.pod:6468
30059 msgid ""
30060 "You must call this before calling C<guestfs_launch>, otherwise it has no "
30061 "effect."
30062 msgstr ""
30063
30064 #. type: =head2
30065 #: ../src/guestfs-actions.pod:6475
30066 msgid "guestfs_set_path"
30067 msgstr ""
30068
30069 #. type: verbatim
30070 #: ../src/guestfs-actions.pod:6477
30071 #, no-wrap
30072 msgid ""
30073 " int\n"
30074 " guestfs_set_path (guestfs_h *g,\n"
30075 "                   const char *searchpath);\n"
30076 "\n"
30077 msgstr ""
30078
30079 #. type: =head2
30080 #: ../src/guestfs-actions.pod:6492
30081 msgid "guestfs_set_pgroup"
30082 msgstr ""
30083
30084 #. type: verbatim
30085 #: ../src/guestfs-actions.pod:6494
30086 #, no-wrap
30087 msgid ""
30088 " int\n"
30089 " guestfs_set_pgroup (guestfs_h *g,\n"
30090 "                     int pgroup);\n"
30091 "\n"
30092 msgstr ""
30093
30094 #. type: =head2
30095 #: ../src/guestfs-actions.pod:6511
30096 msgid "guestfs_set_qemu"
30097 msgstr ""
30098
30099 #. type: verbatim
30100 #: ../src/guestfs-actions.pod:6513
30101 #, no-wrap
30102 msgid ""
30103 " int\n"
30104 " guestfs_set_qemu (guestfs_h *g,\n"
30105 "                   const char *qemu);\n"
30106 "\n"
30107 msgstr ""
30108
30109 #. type: =head2
30110 #: ../src/guestfs-actions.pod:6539
30111 msgid "guestfs_set_recovery_proc"
30112 msgstr ""
30113
30114 #. type: verbatim
30115 #: ../src/guestfs-actions.pod:6541
30116 #, no-wrap
30117 msgid ""
30118 " int\n"
30119 " guestfs_set_recovery_proc (guestfs_h *g,\n"
30120 "                            int recoveryproc);\n"
30121 "\n"
30122 msgstr ""
30123
30124 #. type: textblock
30125 #: ../src/guestfs-actions.pod:6545
30126 msgid ""
30127 "If this is called with the parameter C<false> then C<guestfs_launch> does "
30128 "not create a recovery process.  The purpose of the recovery process is to "
30129 "stop runaway qemu processes in the case where the main program aborts "
30130 "abruptly."
30131 msgstr ""
30132
30133 #. type: textblock
30134 #: ../src/guestfs-actions.pod:6550
30135 msgid ""
30136 "This only has any effect if called before C<guestfs_launch>, and the default "
30137 "is true."
30138 msgstr ""
30139
30140 #. type: =head2
30141 #: ../src/guestfs-actions.pod:6563
30142 msgid "guestfs_set_selinux"
30143 msgstr ""
30144
30145 #. type: verbatim
30146 #: ../src/guestfs-actions.pod:6565
30147 #, no-wrap
30148 msgid ""
30149 " int\n"
30150 " guestfs_set_selinux (guestfs_h *g,\n"
30151 "                      int selinux);\n"
30152 "\n"
30153 msgstr ""
30154
30155 #. type: =head2
30156 #: ../src/guestfs-actions.pod:6582
30157 msgid "guestfs_set_smp"
30158 msgstr ""
30159
30160 #. type: verbatim
30161 #: ../src/guestfs-actions.pod:6584
30162 #, no-wrap
30163 msgid ""
30164 " int\n"
30165 " guestfs_set_smp (guestfs_h *g,\n"
30166 "                  int smp);\n"
30167 "\n"
30168 msgstr ""
30169
30170 #. type: textblock
30171 #: ../src/guestfs-actions.pod:6592
30172 msgid "This function must be called before C<guestfs_launch>."
30173 msgstr ""
30174
30175 #. type: =head2
30176 #: ../src/guestfs-actions.pod:6598
30177 msgid "guestfs_set_trace"
30178 msgstr ""
30179
30180 #. type: verbatim
30181 #: ../src/guestfs-actions.pod:6600
30182 #, no-wrap
30183 msgid ""
30184 " int\n"
30185 " guestfs_set_trace (guestfs_h *g,\n"
30186 "                    int trace);\n"
30187 "\n"
30188 msgstr ""
30189
30190 #. type: textblock
30191 #: ../src/guestfs-actions.pod:6614
30192 msgid ""
30193 "Trace messages are normally sent to C<stderr>, unless you register a "
30194 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
30195 msgstr ""
30196
30197 #. type: =head2
30198 #: ../src/guestfs-actions.pod:6622
30199 msgid "guestfs_set_verbose"
30200 msgstr ""
30201
30202 #. type: verbatim
30203 #: ../src/guestfs-actions.pod:6624
30204 #, no-wrap
30205 msgid ""
30206 " int\n"
30207 " guestfs_set_verbose (guestfs_h *g,\n"
30208 "                      int verbose);\n"
30209 "\n"
30210 msgstr ""
30211
30212 #. type: textblock
30213 #: ../src/guestfs-actions.pod:6633
30214 msgid ""
30215 "Verbose messages are normally sent to C<stderr>, unless you register a "
30216 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
30217 msgstr ""
30218
30219 #. type: =head2
30220 #: ../src/guestfs-actions.pod:6641
30221 msgid "guestfs_setcon"
30222 msgstr ""
30223
30224 #. type: verbatim
30225 #: ../src/guestfs-actions.pod:6643
30226 #, no-wrap
30227 msgid ""
30228 " int\n"
30229 " guestfs_setcon (guestfs_h *g,\n"
30230 "                 const char *context);\n"
30231 "\n"
30232 msgstr ""
30233
30234 #. type: =head2
30235 #: ../src/guestfs-actions.pod:6656
30236 msgid "guestfs_setxattr"
30237 msgstr ""
30238
30239 #. type: verbatim
30240 #: ../src/guestfs-actions.pod:6658
30241 #, no-wrap
30242 msgid ""
30243 " int\n"
30244 " guestfs_setxattr (guestfs_h *g,\n"
30245 "                   const char *xattr,\n"
30246 "                   const char *val,\n"
30247 "                   int vallen,\n"
30248 "                   const char *path);\n"
30249 "\n"
30250 msgstr ""
30251
30252 #. type: textblock
30253 #: ../src/guestfs-actions.pod:6669
30254 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
30255 msgstr ""
30256
30257 #. type: =head2
30258 #: ../src/guestfs-actions.pod:6675
30259 msgid "guestfs_sfdisk"
30260 msgstr ""
30261
30262 #. type: verbatim
30263 #: ../src/guestfs-actions.pod:6677
30264 #, no-wrap
30265 msgid ""
30266 " int\n"
30267 " guestfs_sfdisk (guestfs_h *g,\n"
30268 "                 const char *device,\n"
30269 "                 int cyls,\n"
30270 "                 int heads,\n"
30271 "                 int sectors,\n"
30272 "                 char *const *lines);\n"
30273 "\n"
30274 msgstr ""
30275
30276 #. type: textblock
30277 #: ../src/guestfs-actions.pod:6685 ../src/guestfs-actions.pod:6729 ../src/guestfs-actions.pod:6763
30278 msgid ""
30279 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
30280 "call instead."
30281 msgstr ""
30282
30283 #. type: textblock
30284 #: ../src/guestfs-actions.pod:6712
30285 msgid "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
30286 msgstr ""
30287
30288 #. type: =head2
30289 #: ../src/guestfs-actions.pod:6722
30290 msgid "guestfs_sfdiskM"
30291 msgstr ""
30292
30293 #. type: verbatim
30294 #: ../src/guestfs-actions.pod:6724
30295 #, no-wrap
30296 msgid ""
30297 " int\n"
30298 " guestfs_sfdiskM (guestfs_h *g,\n"
30299 "                  const char *device,\n"
30300 "                  char *const *lines);\n"
30301 "\n"
30302 msgstr ""
30303
30304 #. type: textblock
30305 #: ../src/guestfs-actions.pod:6736
30306 msgid ""
30307 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
30308 "partition sizes are specified in megabytes only (rounded to the nearest "
30309 "cylinder) and you don't need to specify the cyls, heads and sectors "
30310 "parameters which were rarely if ever used anyway."
30311 msgstr ""
30312
30313 #. type: textblock
30314 #: ../src/guestfs-actions.pod:6742
30315 msgid ""
30316 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
30317 "C<guestfs_part_disk>"
30318 msgstr ""
30319
30320 #. type: =head2
30321 #: ../src/guestfs-actions.pod:6752
30322 msgid "guestfs_sfdisk_N"
30323 msgstr ""
30324
30325 #. type: verbatim
30326 #: ../src/guestfs-actions.pod:6754
30327 #, no-wrap
30328 msgid ""
30329 " int\n"
30330 " guestfs_sfdisk_N (guestfs_h *g,\n"
30331 "                   const char *device,\n"
30332 "                   int partnum,\n"
30333 "                   int cyls,\n"
30334 "                   int heads,\n"
30335 "                   int sectors,\n"
30336 "                   const char *line);\n"
30337 "\n"
30338 msgstr ""
30339
30340 #. type: textblock
30341 #: ../src/guestfs-actions.pod:6773
30342 msgid ""
30343 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
30344 "for the cyls/heads/sectors parameters."
30345 msgstr ""
30346
30347 #. type: textblock
30348 #: ../src/guestfs-actions.pod:6776
30349 msgid "See also: C<guestfs_part_add>"
30350 msgstr ""
30351
30352 #. type: =head2
30353 #: ../src/guestfs-actions.pod:6785
30354 msgid "guestfs_sfdisk_disk_geometry"
30355 msgstr ""
30356
30357 #. type: verbatim
30358 #: ../src/guestfs-actions.pod:6787
30359 #, no-wrap
30360 msgid ""
30361 " char *\n"
30362 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
30363 "                               const char *device);\n"
30364 "\n"
30365 msgstr ""
30366
30367 #. type: textblock
30368 #: ../src/guestfs-actions.pod:6791
30369 msgid ""
30370 "This displays the disk geometry of C<device> read from the partition table.  "
30371 "Especially in the case where the underlying block device has been resized, "
30372 "this can be different from the kernel's idea of the geometry (see "
30373 "C<guestfs_sfdisk_kernel_geometry>)."
30374 msgstr ""
30375
30376 #. type: =head2
30377 #: ../src/guestfs-actions.pod:6804
30378 msgid "guestfs_sfdisk_kernel_geometry"
30379 msgstr ""
30380
30381 #. type: verbatim
30382 #: ../src/guestfs-actions.pod:6806
30383 #, no-wrap
30384 msgid ""
30385 " char *\n"
30386 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
30387 "                                 const char *device);\n"
30388 "\n"
30389 msgstr ""
30390
30391 #. type: =head2
30392 #: ../src/guestfs-actions.pod:6820
30393 msgid "guestfs_sfdisk_l"
30394 msgstr ""
30395
30396 #. type: verbatim
30397 #: ../src/guestfs-actions.pod:6822
30398 #, no-wrap
30399 msgid ""
30400 " char *\n"
30401 " guestfs_sfdisk_l (guestfs_h *g,\n"
30402 "                   const char *device);\n"
30403 "\n"
30404 msgstr ""
30405
30406 #. type: textblock
30407 #: ../src/guestfs-actions.pod:6826
30408 msgid ""
30409 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
30410 "call instead."
30411 msgstr ""
30412
30413 #. type: textblock
30414 #: ../src/guestfs-actions.pod:6837
30415 msgid "See also: C<guestfs_part_list>"
30416 msgstr ""
30417
30418 #. type: =head2
30419 #: ../src/guestfs-actions.pod:6844
30420 msgid "guestfs_sh"
30421 msgstr ""
30422
30423 #. type: verbatim
30424 #: ../src/guestfs-actions.pod:6846
30425 #, no-wrap
30426 msgid ""
30427 " char *\n"
30428 " guestfs_sh (guestfs_h *g,\n"
30429 "             const char *command);\n"
30430 "\n"
30431 msgstr ""
30432
30433 #. type: textblock
30434 #: ../src/guestfs-actions.pod:6853
30435 msgid "This is like C<guestfs_command>, but passes the command to:"
30436 msgstr ""
30437
30438 #. type: textblock
30439 #: ../src/guestfs-actions.pod:6861
30440 msgid "All the provisos about C<guestfs_command> apply to this call."
30441 msgstr ""
30442
30443 #. type: =head2
30444 #: ../src/guestfs-actions.pod:6868
30445 msgid "guestfs_sh_lines"
30446 msgstr ""
30447
30448 #. type: verbatim
30449 #: ../src/guestfs-actions.pod:6870
30450 #, no-wrap
30451 msgid ""
30452 " char **\n"
30453 " guestfs_sh_lines (guestfs_h *g,\n"
30454 "                   const char *command);\n"
30455 "\n"
30456 msgstr ""
30457
30458 #. type: textblock
30459 #: ../src/guestfs-actions.pod:6874
30460 msgid ""
30461 "This is the same as C<guestfs_sh>, but splits the result into a list of "
30462 "lines."
30463 msgstr ""
30464
30465 #. type: textblock
30466 #: ../src/guestfs-actions.pod:6877
30467 msgid "See also: C<guestfs_command_lines>"
30468 msgstr ""
30469
30470 #. type: =head2
30471 #: ../src/guestfs-actions.pod:6885
30472 msgid "guestfs_sleep"
30473 msgstr ""
30474
30475 #. type: verbatim
30476 #: ../src/guestfs-actions.pod:6887
30477 #, no-wrap
30478 msgid ""
30479 " int\n"
30480 " guestfs_sleep (guestfs_h *g,\n"
30481 "                int secs);\n"
30482 "\n"
30483 msgstr ""
30484
30485 #. type: textblock
30486 #: ../src/guestfs-actions.pod:6895
30487 msgid "(Added in 1.0.41)"
30488 msgstr ""
30489
30490 #. type: =head2
30491 #: ../src/guestfs-actions.pod:6897 ../src/guestfs-structs.pod:109
30492 msgid "guestfs_stat"
30493 msgstr ""
30494
30495 #. type: verbatim
30496 #: ../src/guestfs-actions.pod:6899
30497 #, no-wrap
30498 msgid ""
30499 " struct guestfs_stat *\n"
30500 " guestfs_stat (guestfs_h *g,\n"
30501 "               const char *path);\n"
30502 "\n"
30503 msgstr ""
30504
30505 #. type: =head2
30506 #: ../src/guestfs-actions.pod:6913 ../src/guestfs-structs.pod:135
30507 msgid "guestfs_statvfs"
30508 msgstr ""
30509
30510 #. type: verbatim
30511 #: ../src/guestfs-actions.pod:6915
30512 #, no-wrap
30513 msgid ""
30514 " struct guestfs_statvfs *\n"
30515 " guestfs_statvfs (guestfs_h *g,\n"
30516 "                  const char *path);\n"
30517 "\n"
30518 msgstr ""
30519
30520 #. type: textblock
30521 #: ../src/guestfs-actions.pod:6925
30522 msgid ""
30523 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
30524 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
30525 msgstr ""
30526
30527 #. type: =head2
30528 #: ../src/guestfs-actions.pod:6931
30529 msgid "guestfs_strings"
30530 msgstr ""
30531
30532 #. type: verbatim
30533 #: ../src/guestfs-actions.pod:6933
30534 #, no-wrap
30535 msgid ""
30536 " char **\n"
30537 " guestfs_strings (guestfs_h *g,\n"
30538 "                  const char *path);\n"
30539 "\n"
30540 msgstr ""
30541
30542 #. type: =head2
30543 #: ../src/guestfs-actions.pod:6949
30544 msgid "guestfs_strings_e"
30545 msgstr ""
30546
30547 #. type: verbatim
30548 #: ../src/guestfs-actions.pod:6951
30549 #, no-wrap
30550 msgid ""
30551 " char **\n"
30552 " guestfs_strings_e (guestfs_h *g,\n"
30553 "                    const char *encoding,\n"
30554 "                    const char *path);\n"
30555 "\n"
30556 msgstr ""
30557
30558 #. type: textblock
30559 #: ../src/guestfs-actions.pod:6956
30560 msgid ""
30561 "This is like the C<guestfs_strings> command, but allows you to specify the "
30562 "encoding of strings that are looked for in the source file C<path>."
30563 msgstr ""
30564
30565 #. type: textblock
30566 #: ../src/guestfs-actions.pod:6966
30567 msgid ""
30568 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
30569 "ISO-8859-X (this is what C<guestfs_strings> uses)."
30570 msgstr ""
30571
30572 #. type: =head2
30573 #: ../src/guestfs-actions.pod:7004
30574 msgid "guestfs_swapoff_device"
30575 msgstr ""
30576
30577 #. type: verbatim
30578 #: ../src/guestfs-actions.pod:7006
30579 #, no-wrap
30580 msgid ""
30581 " int\n"
30582 " guestfs_swapoff_device (guestfs_h *g,\n"
30583 "                         const char *device);\n"
30584 "\n"
30585 msgstr ""
30586
30587 #. type: textblock
30588 #: ../src/guestfs-actions.pod:7010
30589 msgid ""
30590 "This command disables the libguestfs appliance swap device or partition "
30591 "named C<device>.  See C<guestfs_swapon_device>."
30592 msgstr ""
30593
30594 #. type: =head2
30595 #: ../src/guestfs-actions.pod:7018
30596 msgid "guestfs_swapoff_file"
30597 msgstr ""
30598
30599 #. type: verbatim
30600 #: ../src/guestfs-actions.pod:7020
30601 #, no-wrap
30602 msgid ""
30603 " int\n"
30604 " guestfs_swapoff_file (guestfs_h *g,\n"
30605 "                       const char *file);\n"
30606 "\n"
30607 msgstr ""
30608
30609 #. type: =head2
30610 #: ../src/guestfs-actions.pod:7030
30611 msgid "guestfs_swapoff_label"
30612 msgstr ""
30613
30614 #. type: verbatim
30615 #: ../src/guestfs-actions.pod:7032
30616 #, no-wrap
30617 msgid ""
30618 " int\n"
30619 " guestfs_swapoff_label (guestfs_h *g,\n"
30620 "                        const char *label);\n"
30621 "\n"
30622 msgstr ""
30623
30624 #. type: =head2
30625 #: ../src/guestfs-actions.pod:7043
30626 msgid "guestfs_swapoff_uuid"
30627 msgstr ""
30628
30629 #. type: verbatim
30630 #: ../src/guestfs-actions.pod:7045
30631 #, no-wrap
30632 msgid ""
30633 " int\n"
30634 " guestfs_swapoff_uuid (guestfs_h *g,\n"
30635 "                       const char *uuid);\n"
30636 "\n"
30637 msgstr ""
30638
30639 #. type: =head2
30640 #: ../src/guestfs-actions.pod:7056
30641 msgid "guestfs_swapon_device"
30642 msgstr ""
30643
30644 #. type: verbatim
30645 #: ../src/guestfs-actions.pod:7058
30646 #, no-wrap
30647 msgid ""
30648 " int\n"
30649 " guestfs_swapon_device (guestfs_h *g,\n"
30650 "                        const char *device);\n"
30651 "\n"
30652 msgstr ""
30653
30654 #. type: textblock
30655 #: ../src/guestfs-actions.pod:7062
30656 msgid ""
30657 "This command enables the libguestfs appliance to use the swap device or "
30658 "partition named C<device>.  The increased memory is made available for all "
30659 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
30660 msgstr ""
30661
30662 #. type: =head2
30663 #: ../src/guestfs-actions.pod:7078
30664 msgid "guestfs_swapon_file"
30665 msgstr ""
30666
30667 #. type: verbatim
30668 #: ../src/guestfs-actions.pod:7080
30669 #, no-wrap
30670 msgid ""
30671 " int\n"
30672 " guestfs_swapon_file (guestfs_h *g,\n"
30673 "                      const char *file);\n"
30674 "\n"
30675 msgstr ""
30676
30677 #. type: textblock
30678 #: ../src/guestfs-actions.pod:7084
30679 msgid ""
30680 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
30681 "notes."
30682 msgstr ""
30683
30684 #. type: =head2
30685 #: ../src/guestfs-actions.pod:7091
30686 msgid "guestfs_swapon_label"
30687 msgstr ""
30688
30689 #. type: verbatim
30690 #: ../src/guestfs-actions.pod:7093
30691 #, no-wrap
30692 msgid ""
30693 " int\n"
30694 " guestfs_swapon_label (guestfs_h *g,\n"
30695 "                       const char *label);\n"
30696 "\n"
30697 msgstr ""
30698
30699 #. type: textblock
30700 #: ../src/guestfs-actions.pod:7097
30701 msgid ""
30702 "This command enables swap to a labeled swap partition.  See "
30703 "C<guestfs_swapon_device> for other notes."
30704 msgstr ""
30705
30706 #. type: =head2
30707 #: ../src/guestfs-actions.pod:7104
30708 msgid "guestfs_swapon_uuid"
30709 msgstr ""
30710
30711 #. type: verbatim
30712 #: ../src/guestfs-actions.pod:7106
30713 #, no-wrap
30714 msgid ""
30715 " int\n"
30716 " guestfs_swapon_uuid (guestfs_h *g,\n"
30717 "                      const char *uuid);\n"
30718 "\n"
30719 msgstr ""
30720
30721 #. type: textblock
30722 #: ../src/guestfs-actions.pod:7110
30723 msgid ""
30724 "This command enables swap to a swap partition with the given UUID.  See "
30725 "C<guestfs_swapon_device> for other notes."
30726 msgstr ""
30727
30728 #. type: =head2
30729 #: ../src/guestfs-actions.pod:7117
30730 msgid "guestfs_sync"
30731 msgstr ""
30732
30733 #. type: verbatim
30734 #: ../src/guestfs-actions.pod:7119
30735 #, no-wrap
30736 msgid ""
30737 " int\n"
30738 " guestfs_sync (guestfs_h *g);\n"
30739 "\n"
30740 msgstr ""
30741
30742 #. type: =head2
30743 #: ../src/guestfs-actions.pod:7132
30744 msgid "guestfs_tail"
30745 msgstr ""
30746
30747 #. type: verbatim
30748 #: ../src/guestfs-actions.pod:7134
30749 #, no-wrap
30750 msgid ""
30751 " char **\n"
30752 " guestfs_tail (guestfs_h *g,\n"
30753 "               const char *path);\n"
30754 "\n"
30755 msgstr ""
30756
30757 #. type: =head2
30758 #: ../src/guestfs-actions.pod:7150
30759 msgid "guestfs_tail_n"
30760 msgstr ""
30761
30762 #. type: verbatim
30763 #: ../src/guestfs-actions.pod:7152
30764 #, no-wrap
30765 msgid ""
30766 " char **\n"
30767 " guestfs_tail_n (guestfs_h *g,\n"
30768 "                 int nrlines,\n"
30769 "                 const char *path);\n"
30770 "\n"
30771 msgstr ""
30772
30773 #. type: =head2
30774 #: ../src/guestfs-actions.pod:7174
30775 msgid "guestfs_tar_in"
30776 msgstr ""
30777
30778 #. type: verbatim
30779 #: ../src/guestfs-actions.pod:7176
30780 #, no-wrap
30781 msgid ""
30782 " int\n"
30783 " guestfs_tar_in (guestfs_h *g,\n"
30784 "                 const char *tarfile,\n"
30785 "                 const char *directory);\n"
30786 "\n"
30787 msgstr ""
30788
30789 #. type: textblock
30790 #: ../src/guestfs-actions.pod:7184
30791 msgid "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
30792 msgstr ""
30793
30794 #. type: textblock
30795 #: ../src/guestfs-actions.pod:7189 ../src/guestfs-actions.pod:7206 ../src/guestfs-actions.pod:7222 ../src/guestfs-actions.pod:7238
30796 msgid "(Added in 1.0.3)"
30797 msgstr ""
30798
30799 #. type: =head2
30800 #: ../src/guestfs-actions.pod:7191
30801 msgid "guestfs_tar_out"
30802 msgstr ""
30803
30804 #. type: verbatim
30805 #: ../src/guestfs-actions.pod:7193
30806 #, no-wrap
30807 msgid ""
30808 " int\n"
30809 " guestfs_tar_out (guestfs_h *g,\n"
30810 "                  const char *directory,\n"
30811 "                  const char *tarfile);\n"
30812 "\n"
30813 msgstr ""
30814
30815 #. type: textblock
30816 #: ../src/guestfs-actions.pod:7201
30817 msgid ""
30818 "To download a compressed tarball, use C<guestfs_tgz_out> or "
30819 "C<guestfs_txz_out>."
30820 msgstr ""
30821
30822 #. type: =head2
30823 #: ../src/guestfs-actions.pod:7208
30824 msgid "guestfs_tgz_in"
30825 msgstr ""
30826
30827 #. type: verbatim
30828 #: ../src/guestfs-actions.pod:7210
30829 #, no-wrap
30830 msgid ""
30831 " int\n"
30832 " guestfs_tgz_in (guestfs_h *g,\n"
30833 "                 const char *tarball,\n"
30834 "                 const char *directory);\n"
30835 "\n"
30836 msgstr ""
30837
30838 #. type: textblock
30839 #: ../src/guestfs-actions.pod:7218
30840 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
30841 msgstr ""
30842
30843 #. type: =head2
30844 #: ../src/guestfs-actions.pod:7224
30845 msgid "guestfs_tgz_out"
30846 msgstr ""
30847
30848 #. type: verbatim
30849 #: ../src/guestfs-actions.pod:7226
30850 #, no-wrap
30851 msgid ""
30852 " int\n"
30853 " guestfs_tgz_out (guestfs_h *g,\n"
30854 "                  const char *directory,\n"
30855 "                  const char *tarball);\n"
30856 "\n"
30857 msgstr ""
30858
30859 #. type: textblock
30860 #: ../src/guestfs-actions.pod:7234
30861 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
30862 msgstr ""
30863
30864 #. type: =head2
30865 #: ../src/guestfs-actions.pod:7240
30866 msgid "guestfs_touch"
30867 msgstr ""
30868
30869 #. type: verbatim
30870 #: ../src/guestfs-actions.pod:7242
30871 #, no-wrap
30872 msgid ""
30873 " int\n"
30874 " guestfs_touch (guestfs_h *g,\n"
30875 "                const char *path);\n"
30876 "\n"
30877 msgstr ""
30878
30879 #. type: =head2
30880 #: ../src/guestfs-actions.pod:7257
30881 msgid "guestfs_truncate"
30882 msgstr ""
30883
30884 #. type: verbatim
30885 #: ../src/guestfs-actions.pod:7259
30886 #, no-wrap
30887 msgid ""
30888 " int\n"
30889 " guestfs_truncate (guestfs_h *g,\n"
30890 "                   const char *path);\n"
30891 "\n"
30892 msgstr ""
30893
30894 #. type: =head2
30895 #: ../src/guestfs-actions.pod:7270
30896 msgid "guestfs_truncate_size"
30897 msgstr ""
30898
30899 #. type: verbatim
30900 #: ../src/guestfs-actions.pod:7272
30901 #, no-wrap
30902 msgid ""
30903 " int\n"
30904 " guestfs_truncate_size (guestfs_h *g,\n"
30905 "                        const char *path,\n"
30906 "                        int64_t size);\n"
30907 "\n"
30908 msgstr ""
30909
30910 #. type: textblock
30911 #: ../src/guestfs-actions.pod:7280
30912 msgid ""
30913 "If the current file size is less than C<size> then the file is extended to "
30914 "the required size with zero bytes.  This creates a sparse file (ie. disk "
30915 "blocks are not allocated for the file until you write to it).  To create a "
30916 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
30917 msgstr ""
30918
30919 #. type: =head2
30920 #: ../src/guestfs-actions.pod:7290
30921 msgid "guestfs_tune2fs_l"
30922 msgstr ""
30923
30924 #. type: verbatim
30925 #: ../src/guestfs-actions.pod:7292
30926 #, no-wrap
30927 msgid ""
30928 " char **\n"
30929 " guestfs_tune2fs_l (guestfs_h *g,\n"
30930 "                    const char *device);\n"
30931 "\n"
30932 msgstr ""
30933
30934 #. type: =head2
30935 #: ../src/guestfs-actions.pod:7312
30936 msgid "guestfs_txz_in"
30937 msgstr ""
30938
30939 #. type: verbatim
30940 #: ../src/guestfs-actions.pod:7314
30941 #, no-wrap
30942 msgid ""
30943 " int\n"
30944 " guestfs_txz_in (guestfs_h *g,\n"
30945 "                 const char *tarball,\n"
30946 "                 const char *directory);\n"
30947 "\n"
30948 msgstr ""
30949
30950 #. type: =head2
30951 #: ../src/guestfs-actions.pod:7326
30952 msgid "guestfs_txz_out"
30953 msgstr ""
30954
30955 #. type: verbatim
30956 #: ../src/guestfs-actions.pod:7328
30957 #, no-wrap
30958 msgid ""
30959 " int\n"
30960 " guestfs_txz_out (guestfs_h *g,\n"
30961 "                  const char *directory,\n"
30962 "                  const char *tarball);\n"
30963 "\n"
30964 msgstr ""
30965
30966 #. type: =head2
30967 #: ../src/guestfs-actions.pod:7340
30968 msgid "guestfs_umask"
30969 msgstr ""
30970
30971 #. type: verbatim
30972 #: ../src/guestfs-actions.pod:7342
30973 #, no-wrap
30974 msgid ""
30975 " int\n"
30976 " guestfs_umask (guestfs_h *g,\n"
30977 "                int mask);\n"
30978 "\n"
30979 msgstr ""
30980
30981 #. type: textblock
30982 #: ../src/guestfs-actions.pod:7358
30983 msgid ""
30984 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
30985 "C<guestfs_mkdir>."
30986 msgstr ""
30987
30988 #. type: =head2
30989 #: ../src/guestfs-actions.pod:7367
30990 msgid "guestfs_umount"
30991 msgstr ""
30992
30993 #. type: verbatim
30994 #: ../src/guestfs-actions.pod:7369
30995 #, no-wrap
30996 msgid ""
30997 " int\n"
30998 " guestfs_umount (guestfs_h *g,\n"
30999 "                 const char *pathordevice);\n"
31000 "\n"
31001 msgstr ""
31002
31003 #. type: =head2
31004 #: ../src/guestfs-actions.pod:7381
31005 msgid "guestfs_umount_all"
31006 msgstr ""
31007
31008 #. type: verbatim
31009 #: ../src/guestfs-actions.pod:7383
31010 #, no-wrap
31011 msgid ""
31012 " int\n"
31013 " guestfs_umount_all (guestfs_h *g);\n"
31014 "\n"
31015 msgstr ""
31016
31017 #. type: =head2
31018 #: ../src/guestfs-actions.pod:7394
31019 msgid "guestfs_upload"
31020 msgstr ""
31021
31022 #. type: verbatim
31023 #: ../src/guestfs-actions.pod:7396
31024 #, no-wrap
31025 msgid ""
31026 " int\n"
31027 " guestfs_upload (guestfs_h *g,\n"
31028 "                 const char *filename,\n"
31029 "                 const char *remotefilename);\n"
31030 "\n"
31031 msgstr ""
31032
31033 #. type: textblock
31034 #: ../src/guestfs-actions.pod:7406
31035 msgid "See also C<guestfs_download>."
31036 msgstr ""
31037
31038 #. type: =head2
31039 #: ../src/guestfs-actions.pod:7417
31040 msgid "guestfs_upload_offset"
31041 msgstr ""
31042
31043 #. type: verbatim
31044 #: ../src/guestfs-actions.pod:7419
31045 #, no-wrap
31046 msgid ""
31047 " int\n"
31048 " guestfs_upload_offset (guestfs_h *g,\n"
31049 "                        const char *filename,\n"
31050 "                        const char *remotefilename,\n"
31051 "                        int64_t offset);\n"
31052 "\n"
31053 msgstr ""
31054
31055 #. type: textblock
31056 #: ../src/guestfs-actions.pod:7435
31057 msgid ""
31058 "Note that there is no limit on the amount of data that can be uploaded with "
31059 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
31060 "full amount unless an error occurs."
31061 msgstr ""
31062
31063 #. type: textblock
31064 #: ../src/guestfs-actions.pod:7440
31065 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
31066 msgstr ""
31067
31068 #. type: =head2
31069 #: ../src/guestfs-actions.pod:7451
31070 msgid "guestfs_utimens"
31071 msgstr ""
31072
31073 #. type: verbatim
31074 #: ../src/guestfs-actions.pod:7453
31075 #, no-wrap
31076 msgid ""
31077 " int\n"
31078 " guestfs_utimens (guestfs_h *g,\n"
31079 "                  const char *path,\n"
31080 "                  int64_t atsecs,\n"
31081 "                  int64_t atnsecs,\n"
31082 "                  int64_t mtsecs,\n"
31083 "                  int64_t mtnsecs);\n"
31084 "\n"
31085 msgstr ""
31086
31087 #. type: =head2
31088 #: ../src/guestfs-actions.pod:7482 ../src/guestfs-structs.pod:175
31089 msgid "guestfs_version"
31090 msgstr ""
31091
31092 #. type: verbatim
31093 #: ../src/guestfs-actions.pod:7484
31094 #, no-wrap
31095 msgid ""
31096 " struct guestfs_version *\n"
31097 " guestfs_version (guestfs_h *g);\n"
31098 "\n"
31099 msgstr ""
31100
31101 #. type: textblock
31102 #: ../src/guestfs-actions.pod:7512
31103 msgid ""
31104 "I<Note:> Don't use this call to test for availability of features.  In "
31105 "enterprise distributions we backport features from later versions into "
31106 "earlier versions, making this an unreliable way to test for features.  Use "
31107 "C<guestfs_available> instead."
31108 msgstr ""
31109
31110 #. type: textblock
31111 #: ../src/guestfs-actions.pod:7518
31112 msgid ""
31113 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
31114 "error.  I<The caller must call C<guestfs_free_version> after use>."
31115 msgstr ""
31116
31117 #. type: textblock
31118 #: ../src/guestfs-actions.pod:7522
31119 msgid "(Added in 1.0.58)"
31120 msgstr ""
31121
31122 #. type: =head2
31123 #: ../src/guestfs-actions.pod:7524
31124 msgid "guestfs_vfs_label"
31125 msgstr ""
31126
31127 #. type: verbatim
31128 #: ../src/guestfs-actions.pod:7526
31129 #, no-wrap
31130 msgid ""
31131 " char *\n"
31132 " guestfs_vfs_label (guestfs_h *g,\n"
31133 "                    const char *device);\n"
31134 "\n"
31135 msgstr ""
31136
31137 #. type: textblock
31138 #: ../src/guestfs-actions.pod:7535
31139 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
31140 msgstr ""
31141
31142 #. type: textblock
31143 #: ../src/guestfs-actions.pod:7540 ../src/guestfs-actions.pod:7577
31144 msgid "(Added in 1.3.18)"
31145 msgstr ""
31146
31147 #. type: =head2
31148 #: ../src/guestfs-actions.pod:7542
31149 msgid "guestfs_vfs_type"
31150 msgstr ""
31151
31152 #. type: verbatim
31153 #: ../src/guestfs-actions.pod:7544
31154 #, no-wrap
31155 msgid ""
31156 " char *\n"
31157 " guestfs_vfs_type (guestfs_h *g,\n"
31158 "                   const char *device);\n"
31159 "\n"
31160 msgstr ""
31161
31162 #. type: =head2
31163 #: ../src/guestfs-actions.pod:7561
31164 msgid "guestfs_vfs_uuid"
31165 msgstr ""
31166
31167 #. type: verbatim
31168 #: ../src/guestfs-actions.pod:7563
31169 #, no-wrap
31170 msgid ""
31171 " char *\n"
31172 " guestfs_vfs_uuid (guestfs_h *g,\n"
31173 "                   const char *device);\n"
31174 "\n"
31175 msgstr ""
31176
31177 #. type: textblock
31178 #: ../src/guestfs-actions.pod:7572
31179 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
31180 msgstr ""
31181
31182 #. type: =head2
31183 #: ../src/guestfs-actions.pod:7579
31184 msgid "guestfs_vg_activate"
31185 msgstr ""
31186
31187 #. type: verbatim
31188 #: ../src/guestfs-actions.pod:7581
31189 #, no-wrap
31190 msgid ""
31191 " int\n"
31192 " guestfs_vg_activate (guestfs_h *g,\n"
31193 "                      int activate,\n"
31194 "                      char *const *volgroups);\n"
31195 "\n"
31196 msgstr ""
31197
31198 #. type: =head2
31199 #: ../src/guestfs-actions.pod:7598
31200 msgid "guestfs_vg_activate_all"
31201 msgstr ""
31202
31203 #. type: verbatim
31204 #: ../src/guestfs-actions.pod:7600
31205 #, no-wrap
31206 msgid ""
31207 " int\n"
31208 " guestfs_vg_activate_all (guestfs_h *g,\n"
31209 "                          int activate);\n"
31210 "\n"
31211 msgstr ""
31212
31213 #. type: =head2
31214 #: ../src/guestfs-actions.pod:7613
31215 msgid "guestfs_vgcreate"
31216 msgstr ""
31217
31218 #. type: verbatim
31219 #: ../src/guestfs-actions.pod:7615
31220 #, no-wrap
31221 msgid ""
31222 " int\n"
31223 " guestfs_vgcreate (guestfs_h *g,\n"
31224 "                   const char *volgroup,\n"
31225 "                   char *const *physvols);\n"
31226 "\n"
31227 msgstr ""
31228
31229 #. type: =head2
31230 #: ../src/guestfs-actions.pod:7627
31231 msgid "guestfs_vglvuuids"
31232 msgstr ""
31233
31234 #. type: verbatim
31235 #: ../src/guestfs-actions.pod:7629
31236 #, no-wrap
31237 msgid ""
31238 " char **\n"
31239 " guestfs_vglvuuids (guestfs_h *g,\n"
31240 "                    const char *vgname);\n"
31241 "\n"
31242 msgstr ""
31243
31244 #. type: textblock
31245 #: ../src/guestfs-actions.pod:7636
31246 msgid ""
31247 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
31248 "associate logical volumes and volume groups."
31249 msgstr ""
31250
31251 #. type: textblock
31252 #: ../src/guestfs-actions.pod:7639
31253 msgid "See also C<guestfs_vgpvuuids>."
31254 msgstr ""
31255
31256 #. type: =head2
31257 #: ../src/guestfs-actions.pod:7647
31258 msgid "guestfs_vgpvuuids"
31259 msgstr ""
31260
31261 #. type: verbatim
31262 #: ../src/guestfs-actions.pod:7649
31263 #, no-wrap
31264 msgid ""
31265 " char **\n"
31266 " guestfs_vgpvuuids (guestfs_h *g,\n"
31267 "                    const char *vgname);\n"
31268 "\n"
31269 msgstr ""
31270
31271 #. type: textblock
31272 #: ../src/guestfs-actions.pod:7656
31273 msgid ""
31274 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
31275 "associate physical volumes and volume groups."
31276 msgstr ""
31277
31278 #. type: textblock
31279 #: ../src/guestfs-actions.pod:7659
31280 msgid "See also C<guestfs_vglvuuids>."
31281 msgstr ""
31282
31283 #. type: =head2
31284 #: ../src/guestfs-actions.pod:7667
31285 msgid "guestfs_vgremove"
31286 msgstr ""
31287
31288 #. type: verbatim
31289 #: ../src/guestfs-actions.pod:7669
31290 #, no-wrap
31291 msgid ""
31292 " int\n"
31293 " guestfs_vgremove (guestfs_h *g,\n"
31294 "                   const char *vgname);\n"
31295 "\n"
31296 msgstr ""
31297
31298 #. type: =head2
31299 #: ../src/guestfs-actions.pod:7682
31300 msgid "guestfs_vgrename"
31301 msgstr ""
31302
31303 #. type: verbatim
31304 #: ../src/guestfs-actions.pod:7684
31305 #, no-wrap
31306 msgid ""
31307 " int\n"
31308 " guestfs_vgrename (guestfs_h *g,\n"
31309 "                   const char *volgroup,\n"
31310 "                   const char *newvolgroup);\n"
31311 "\n"
31312 msgstr ""
31313
31314 #. type: =head2
31315 #: ../src/guestfs-actions.pod:7695
31316 msgid "guestfs_vgs"
31317 msgstr ""
31318
31319 #. type: verbatim
31320 #: ../src/guestfs-actions.pod:7697
31321 #, no-wrap
31322 msgid ""
31323 " char **\n"
31324 " guestfs_vgs (guestfs_h *g);\n"
31325 "\n"
31326 msgstr ""
31327
31328 #. type: textblock
31329 #: ../src/guestfs-actions.pod:7706
31330 msgid "See also C<guestfs_vgs_full>."
31331 msgstr ""
31332
31333 #. type: =head2
31334 #: ../src/guestfs-actions.pod:7714
31335 msgid "guestfs_vgs_full"
31336 msgstr ""
31337
31338 #. type: verbatim
31339 #: ../src/guestfs-actions.pod:7716
31340 #, no-wrap
31341 msgid ""
31342 " struct guestfs_lvm_vg_list *\n"
31343 " guestfs_vgs_full (guestfs_h *g);\n"
31344 "\n"
31345 msgstr ""
31346
31347 #. type: textblock
31348 #: ../src/guestfs-actions.pod:7722
31349 msgid ""
31350 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
31351 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after "
31352 "use>."
31353 msgstr ""
31354
31355 #. type: =head2
31356 #: ../src/guestfs-actions.pod:7728
31357 msgid "guestfs_vgscan"
31358 msgstr ""
31359
31360 #. type: verbatim
31361 #: ../src/guestfs-actions.pod:7730
31362 #, no-wrap
31363 msgid ""
31364 " int\n"
31365 " guestfs_vgscan (guestfs_h *g);\n"
31366 "\n"
31367 msgstr ""
31368
31369 #. type: =head2
31370 #: ../src/guestfs-actions.pod:7740
31371 msgid "guestfs_vguuid"
31372 msgstr ""
31373
31374 #. type: verbatim
31375 #: ../src/guestfs-actions.pod:7742
31376 #, no-wrap
31377 msgid ""
31378 " char *\n"
31379 " guestfs_vguuid (guestfs_h *g,\n"
31380 "                 const char *vgname);\n"
31381 "\n"
31382 msgstr ""
31383
31384 #. type: =head2
31385 #: ../src/guestfs-actions.pod:7753
31386 msgid "guestfs_wait_ready"
31387 msgstr ""
31388
31389 #. type: verbatim
31390 #: ../src/guestfs-actions.pod:7755
31391 #, no-wrap
31392 msgid ""
31393 " int\n"
31394 " guestfs_wait_ready (guestfs_h *g);\n"
31395 "\n"
31396 msgstr ""
31397
31398 #. type: textblock
31399 #: ../src/guestfs-actions.pod:7758
31400 msgid ""
31401 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
31402 "instead."
31403 msgstr ""
31404
31405 #. type: textblock
31406 #: ../src/guestfs-actions.pod:7765
31407 msgid "This function is a no op."
31408 msgstr ""
31409
31410 #. type: textblock
31411 #: ../src/guestfs-actions.pod:7767
31412 msgid ""
31413 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
31414 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
31415 "is no longer necessary because C<guestfs_launch> now does the waiting."
31416 msgstr ""
31417
31418 #. type: textblock
31419 #: ../src/guestfs-actions.pod:7772
31420 msgid ""
31421 "If you see any calls to this function in code then you can just remove them, "
31422 "unless you want to retain compatibility with older versions of the API."
31423 msgstr ""
31424
31425 #. type: =head2
31426 #: ../src/guestfs-actions.pod:7780
31427 msgid "guestfs_wc_c"
31428 msgstr ""
31429
31430 #. type: verbatim
31431 #: ../src/guestfs-actions.pod:7782
31432 #, no-wrap
31433 msgid ""
31434 " int\n"
31435 " guestfs_wc_c (guestfs_h *g,\n"
31436 "               const char *path);\n"
31437 "\n"
31438 msgstr ""
31439
31440 #. type: =head2
31441 #: ../src/guestfs-actions.pod:7793
31442 msgid "guestfs_wc_l"
31443 msgstr ""
31444
31445 #. type: verbatim
31446 #: ../src/guestfs-actions.pod:7795
31447 #, no-wrap
31448 msgid ""
31449 " int\n"
31450 " guestfs_wc_l (guestfs_h *g,\n"
31451 "               const char *path);\n"
31452 "\n"
31453 msgstr ""
31454
31455 #. type: =head2
31456 #: ../src/guestfs-actions.pod:7806
31457 msgid "guestfs_wc_w"
31458 msgstr ""
31459
31460 #. type: verbatim
31461 #: ../src/guestfs-actions.pod:7808
31462 #, no-wrap
31463 msgid ""
31464 " int\n"
31465 " guestfs_wc_w (guestfs_h *g,\n"
31466 "               const char *path);\n"
31467 "\n"
31468 msgstr ""
31469
31470 #. type: =head2
31471 #: ../src/guestfs-actions.pod:7819
31472 msgid "guestfs_write"
31473 msgstr ""
31474
31475 #. type: verbatim
31476 #: ../src/guestfs-actions.pod:7821
31477 #, no-wrap
31478 msgid ""
31479 " int\n"
31480 " guestfs_write (guestfs_h *g,\n"
31481 "                const char *path,\n"
31482 "                const char *content,\n"
31483 "                size_t content_size);\n"
31484 "\n"
31485 msgstr ""
31486
31487 #. type: textblock
31488 #: ../src/guestfs-actions.pod:7830
31489 msgid "See also C<guestfs_write_append>."
31490 msgstr ""
31491
31492 #. type: =head2
31493 #: ../src/guestfs-actions.pod:7839
31494 msgid "guestfs_write_append"
31495 msgstr ""
31496
31497 #. type: verbatim
31498 #: ../src/guestfs-actions.pod:7841
31499 #, no-wrap
31500 msgid ""
31501 " int\n"
31502 " guestfs_write_append (guestfs_h *g,\n"
31503 "                       const char *path,\n"
31504 "                       const char *content,\n"
31505 "                       size_t content_size);\n"
31506 "\n"
31507 msgstr ""
31508
31509 #. type: textblock
31510 #: ../src/guestfs-actions.pod:7850
31511 msgid "See also C<guestfs_write>."
31512 msgstr ""
31513
31514 #. type: =head2
31515 #: ../src/guestfs-actions.pod:7859
31516 msgid "guestfs_write_file"
31517 msgstr ""
31518
31519 #. type: verbatim
31520 #: ../src/guestfs-actions.pod:7861
31521 #, no-wrap
31522 msgid ""
31523 " int\n"
31524 " guestfs_write_file (guestfs_h *g,\n"
31525 "                     const char *path,\n"
31526 "                     const char *content,\n"
31527 "                     int size);\n"
31528 "\n"
31529 msgstr ""
31530
31531 #. type: textblock
31532 #: ../src/guestfs-actions.pod:7867
31533 msgid ""
31534 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
31535 "instead."
31536 msgstr ""
31537
31538 #. type: =head2
31539 #: ../src/guestfs-actions.pod:7892
31540 msgid "guestfs_zegrep"
31541 msgstr ""
31542
31543 #. type: verbatim
31544 #: ../src/guestfs-actions.pod:7894
31545 #, no-wrap
31546 msgid ""
31547 " char **\n"
31548 " guestfs_zegrep (guestfs_h *g,\n"
31549 "                 const char *regex,\n"
31550 "                 const char *path);\n"
31551 "\n"
31552 msgstr ""
31553
31554 #. type: =head2
31555 #: ../src/guestfs-actions.pod:7911
31556 msgid "guestfs_zegrepi"
31557 msgstr ""
31558
31559 #. type: verbatim
31560 #: ../src/guestfs-actions.pod:7913
31561 #, no-wrap
31562 msgid ""
31563 " char **\n"
31564 " guestfs_zegrepi (guestfs_h *g,\n"
31565 "                  const char *regex,\n"
31566 "                  const char *path);\n"
31567 "\n"
31568 msgstr ""
31569
31570 #. type: =head2
31571 #: ../src/guestfs-actions.pod:7930
31572 msgid "guestfs_zero"
31573 msgstr ""
31574
31575 #. type: verbatim
31576 #: ../src/guestfs-actions.pod:7932
31577 #, no-wrap
31578 msgid ""
31579 " int\n"
31580 " guestfs_zero (guestfs_h *g,\n"
31581 "               const char *device);\n"
31582 "\n"
31583 msgstr ""
31584
31585 #. type: textblock
31586 #: ../src/guestfs-actions.pod:7946
31587 msgid ""
31588 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
31589 "C<guestfs_is_zero_device>"
31590 msgstr ""
31591
31592 #. type: =head2
31593 #: ../src/guestfs-actions.pod:7958
31594 msgid "guestfs_zero_device"
31595 msgstr ""
31596
31597 #. type: verbatim
31598 #: ../src/guestfs-actions.pod:7960
31599 #, no-wrap
31600 msgid ""
31601 " int\n"
31602 " guestfs_zero_device (guestfs_h *g,\n"
31603 "                      const char *device);\n"
31604 "\n"
31605 msgstr ""
31606
31607 #. type: textblock
31608 #: ../src/guestfs-actions.pod:7964
31609 msgid ""
31610 "This command writes zeroes over the entire C<device>.  Compare with "
31611 "C<guestfs_zero> which just zeroes the first few blocks of a device."
31612 msgstr ""
31613
31614 #. type: textblock
31615 #: ../src/guestfs-actions.pod:7982
31616 msgid "(Added in 1.3.1)"
31617 msgstr ""
31618
31619 #. type: =head2
31620 #: ../src/guestfs-actions.pod:7984
31621 msgid "guestfs_zerofree"
31622 msgstr ""
31623
31624 #. type: verbatim
31625 #: ../src/guestfs-actions.pod:7986
31626 #, no-wrap
31627 msgid ""
31628 " int\n"
31629 " guestfs_zerofree (guestfs_h *g,\n"
31630 "                   const char *device);\n"
31631 "\n"
31632 msgstr ""
31633
31634 #. type: =head2
31635 #: ../src/guestfs-actions.pod:8005
31636 msgid "guestfs_zfgrep"
31637 msgstr ""
31638
31639 #. type: verbatim
31640 #: ../src/guestfs-actions.pod:8007
31641 #, no-wrap
31642 msgid ""
31643 " char **\n"
31644 " guestfs_zfgrep (guestfs_h *g,\n"
31645 "                 const char *pattern,\n"
31646 "                 const char *path);\n"
31647 "\n"
31648 msgstr ""
31649
31650 #. type: =head2
31651 #: ../src/guestfs-actions.pod:8024
31652 msgid "guestfs_zfgrepi"
31653 msgstr ""
31654
31655 #. type: verbatim
31656 #: ../src/guestfs-actions.pod:8026
31657 #, no-wrap
31658 msgid ""
31659 " char **\n"
31660 " guestfs_zfgrepi (guestfs_h *g,\n"
31661 "                  const char *pattern,\n"
31662 "                  const char *path);\n"
31663 "\n"
31664 msgstr ""
31665
31666 #. type: =head2
31667 #: ../src/guestfs-actions.pod:8043
31668 msgid "guestfs_zfile"
31669 msgstr ""
31670
31671 #. type: verbatim
31672 #: ../src/guestfs-actions.pod:8045
31673 #, no-wrap
31674 msgid ""
31675 " char *\n"
31676 " guestfs_zfile (guestfs_h *g,\n"
31677 "                const char *meth,\n"
31678 "                const char *path);\n"
31679 "\n"
31680 msgstr ""
31681
31682 #. type: textblock
31683 #: ../src/guestfs-actions.pod:8050
31684 msgid ""
31685 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
31686 "instead."
31687 msgstr ""
31688
31689 #. type: textblock
31690 #: ../src/guestfs-actions.pod:8062
31691 msgid ""
31692 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
31693 "files."
31694 msgstr ""
31695
31696 #. type: =head2
31697 #: ../src/guestfs-actions.pod:8070
31698 msgid "guestfs_zgrep"
31699 msgstr ""
31700
31701 #. type: verbatim
31702 #: ../src/guestfs-actions.pod:8072
31703 #, no-wrap
31704 msgid ""
31705 " char **\n"
31706 " guestfs_zgrep (guestfs_h *g,\n"
31707 "                const char *regex,\n"
31708 "                const char *path);\n"
31709 "\n"
31710 msgstr ""
31711
31712 #. type: =head2
31713 #: ../src/guestfs-actions.pod:8089
31714 msgid "guestfs_zgrepi"
31715 msgstr ""
31716
31717 #. type: verbatim
31718 #: ../src/guestfs-actions.pod:8091
31719 #, no-wrap
31720 msgid ""
31721 " char **\n"
31722 " guestfs_zgrepi (guestfs_h *g,\n"
31723 "                 const char *regex,\n"
31724 "                 const char *path);\n"
31725 "\n"
31726 msgstr ""
31727
31728 #. type: =item
31729 #: ../src/guestfs-availability.pod:3
31730 msgid "B<augeas>"
31731 msgstr ""
31732
31733 #. type: textblock
31734 #: ../src/guestfs-availability.pod:5
31735 msgid ""
31736 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> "
31737 "L</guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> "
31738 "L</guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> "
31739 "L</guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> "
31740 "L</guestfs_aug_rm> L</guestfs_aug_save> L</guestfs_aug_set>"
31741 msgstr ""
31742
31743 #. type: =item
31744 #: ../src/guestfs-availability.pod:21
31745 msgid "B<btrfs>"
31746 msgstr ""
31747
31748 #. type: textblock
31749 #: ../src/guestfs-availability.pod:23
31750 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
31751 msgstr ""
31752
31753 #. type: =item
31754 #: ../src/guestfs-availability.pod:26
31755 msgid "B<grub>"
31756 msgstr ""
31757
31758 #. type: textblock
31759 #: ../src/guestfs-availability.pod:28
31760 msgid "The following functions: L</guestfs_grub_install>"
31761 msgstr ""
31762
31763 #. type: =item
31764 #: ../src/guestfs-availability.pod:31
31765 msgid "B<inotify>"
31766 msgstr ""
31767
31768 #. type: textblock
31769 #: ../src/guestfs-availability.pod:33
31770 msgid ""
31771 "The following functions: L</guestfs_inotify_add_watch> "
31772 "L</guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> "
31773 "L</guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
31774 msgstr ""
31775
31776 #. type: =item
31777 #: ../src/guestfs-availability.pod:41
31778 msgid "B<linuxfsuuid>"
31779 msgstr ""
31780
31781 #. type: textblock
31782 #: ../src/guestfs-availability.pod:43
31783 msgid ""
31784 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> "
31785 "L</guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
31786 msgstr ""
31787
31788 #. type: =item
31789 #: ../src/guestfs-availability.pod:50
31790 msgid "B<linuxmodules>"
31791 msgstr ""
31792
31793 #. type: textblock
31794 #: ../src/guestfs-availability.pod:52
31795 msgid "The following functions: L</guestfs_modprobe>"
31796 msgstr ""
31797
31798 #. type: =item
31799 #: ../src/guestfs-availability.pod:55
31800 msgid "B<linuxxattrs>"
31801 msgstr ""
31802
31803 #. type: textblock
31804 #: ../src/guestfs-availability.pod:57
31805 msgid ""
31806 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> "
31807 "L</guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> "
31808 "L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> "
31809 "L</guestfs_setxattr>"
31810 msgstr ""
31811
31812 #. type: =item
31813 #: ../src/guestfs-availability.pod:68
31814 msgid "B<luks>"
31815 msgstr ""
31816
31817 #. type: textblock
31818 #: ../src/guestfs-availability.pod:70
31819 msgid ""
31820 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> "
31821 "L</guestfs_luks_format> L</guestfs_luks_format_cipher> "
31822 "L</guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
31823 msgstr ""
31824
31825 #. type: =item
31826 #: ../src/guestfs-availability.pod:79
31827 msgid "B<lvm2>"
31828 msgstr ""
31829
31830 #. type: textblock
31831 #: ../src/guestfs-availability.pod:81
31832 msgid ""
31833 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> "
31834 "L</guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> "
31835 "L</guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> "
31836 "L</guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> "
31837 "L</guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> "
31838 "L</guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> "
31839 "L</guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> "
31840 "L</guestfs_vgs_full>"
31841 msgstr ""
31842
31843 #. type: =item
31844 #: ../src/guestfs-availability.pod:104
31845 msgid "B<mknod>"
31846 msgstr ""
31847
31848 #. type: textblock
31849 #: ../src/guestfs-availability.pod:106
31850 msgid ""
31851 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> "
31852 "L</guestfs_mknod_b> L</guestfs_mknod_c>"
31853 msgstr ""
31854
31855 #. type: =item
31856 #: ../src/guestfs-availability.pod:112
31857 msgid "B<ntfs3g>"
31858 msgstr ""
31859
31860 #. type: textblock
31861 #: ../src/guestfs-availability.pod:114
31862 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
31863 msgstr ""
31864
31865 #. type: =item
31866 #: ../src/guestfs-availability.pod:117
31867 msgid "B<ntfsprogs>"
31868 msgstr ""
31869
31870 #. type: textblock
31871 #: ../src/guestfs-availability.pod:119
31872 msgid ""
31873 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
31874 "L</guestfs_ntfsresize_size>"
31875 msgstr ""
31876
31877 #. type: =item
31878 #: ../src/guestfs-availability.pod:124
31879 msgid "B<realpath>"
31880 msgstr ""
31881
31882 #. type: textblock
31883 #: ../src/guestfs-availability.pod:126
31884 msgid "The following functions: L</guestfs_realpath>"
31885 msgstr ""
31886
31887 #. type: =item
31888 #: ../src/guestfs-availability.pod:129
31889 msgid "B<scrub>"
31890 msgstr ""
31891
31892 #. type: textblock
31893 #: ../src/guestfs-availability.pod:131
31894 msgid ""
31895 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> "
31896 "L</guestfs_scrub_freespace>"
31897 msgstr ""
31898
31899 #. type: =item
31900 #: ../src/guestfs-availability.pod:136
31901 msgid "B<selinux>"
31902 msgstr ""
31903
31904 #. type: textblock
31905 #: ../src/guestfs-availability.pod:138
31906 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
31907 msgstr ""
31908
31909 #. type: =item
31910 #: ../src/guestfs-availability.pod:142
31911 msgid "B<xz>"
31912 msgstr ""
31913
31914 #. type: textblock
31915 #: ../src/guestfs-availability.pod:144
31916 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
31917 msgstr ""
31918
31919 #. type: =item
31920 #: ../src/guestfs-availability.pod:148
31921 msgid "B<zerofree>"
31922 msgstr ""
31923
31924 #. type: textblock
31925 #: ../src/guestfs-availability.pod:150
31926 msgid "The following functions: L</guestfs_zerofree>"
31927 msgstr ""
31928
31929 #. type: =head2
31930 #: ../src/guestfs-structs.pod:1
31931 msgid "guestfs_int_bool"
31932 msgstr ""
31933
31934 #. type: verbatim
31935 #: ../src/guestfs-structs.pod:3
31936 #, no-wrap
31937 msgid ""
31938 " struct guestfs_int_bool {\n"
31939 "   int32_t i;\n"
31940 "   int32_t b;\n"
31941 " };\n"
31942 " \n"
31943 msgstr ""
31944
31945 #. type: verbatim
31946 #: ../src/guestfs-structs.pod:8
31947 #, no-wrap
31948 msgid ""
31949 " struct guestfs_int_bool_list {\n"
31950 "   uint32_t len; /* Number of elements in list. */\n"
31951 "   struct guestfs_int_bool *val; /* Elements. */\n"
31952 " };\n"
31953 " \n"
31954 msgstr ""
31955
31956 #. type: verbatim
31957 #: ../src/guestfs-structs.pod:13
31958 #, no-wrap
31959 msgid ""
31960 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
31961 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
31962 "\n"
31963 msgstr ""
31964
31965 #. type: =head2
31966 #: ../src/guestfs-structs.pod:16
31967 msgid "guestfs_lvm_pv"
31968 msgstr ""
31969
31970 #. type: verbatim
31971 #: ../src/guestfs-structs.pod:18
31972 #, no-wrap
31973 msgid ""
31974 " struct guestfs_lvm_pv {\n"
31975 "   char *pv_name;\n"
31976 "   /* The next field is NOT nul-terminated, be careful when printing it: "
31977 "*/\n"
31978 "   char pv_uuid[32];\n"
31979 "   char *pv_fmt;\n"
31980 "   uint64_t pv_size;\n"
31981 "   uint64_t dev_size;\n"
31982 "   uint64_t pv_free;\n"
31983 "   uint64_t pv_used;\n"
31984 "   char *pv_attr;\n"
31985 "   int64_t pv_pe_count;\n"
31986 "   int64_t pv_pe_alloc_count;\n"
31987 "   char *pv_tags;\n"
31988 "   uint64_t pe_start;\n"
31989 "   int64_t pv_mda_count;\n"
31990 "   uint64_t pv_mda_free;\n"
31991 " };\n"
31992 " \n"
31993 msgstr ""
31994
31995 #. type: verbatim
31996 #: ../src/guestfs-structs.pod:36
31997 #, no-wrap
31998 msgid ""
31999 " struct guestfs_lvm_pv_list {\n"
32000 "   uint32_t len; /* Number of elements in list. */\n"
32001 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
32002 " };\n"
32003 " \n"
32004 msgstr ""
32005
32006 #. type: verbatim
32007 #: ../src/guestfs-structs.pod:41
32008 #, no-wrap
32009 msgid ""
32010 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
32011 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
32012 "\n"
32013 msgstr ""
32014
32015 #. type: =head2
32016 #: ../src/guestfs-structs.pod:44
32017 msgid "guestfs_lvm_vg"
32018 msgstr ""
32019
32020 #. type: verbatim
32021 #: ../src/guestfs-structs.pod:46
32022 #, no-wrap
32023 msgid ""
32024 " struct guestfs_lvm_vg {\n"
32025 "   char *vg_name;\n"
32026 "   /* The next field is NOT nul-terminated, be careful when printing it: "
32027 "*/\n"
32028 "   char vg_uuid[32];\n"
32029 "   char *vg_fmt;\n"
32030 "   char *vg_attr;\n"
32031 "   uint64_t vg_size;\n"
32032 "   uint64_t vg_free;\n"
32033 "   char *vg_sysid;\n"
32034 "   uint64_t vg_extent_size;\n"
32035 "   int64_t vg_extent_count;\n"
32036 "   int64_t vg_free_count;\n"
32037 "   int64_t max_lv;\n"
32038 "   int64_t max_pv;\n"
32039 "   int64_t pv_count;\n"
32040 "   int64_t lv_count;\n"
32041 "   int64_t snap_count;\n"
32042 "   int64_t vg_seqno;\n"
32043 "   char *vg_tags;\n"
32044 "   int64_t vg_mda_count;\n"
32045 "   uint64_t vg_mda_free;\n"
32046 " };\n"
32047 " \n"
32048 msgstr ""
32049
32050 #. type: verbatim
32051 #: ../src/guestfs-structs.pod:69
32052 #, no-wrap
32053 msgid ""
32054 " struct guestfs_lvm_vg_list {\n"
32055 "   uint32_t len; /* Number of elements in list. */\n"
32056 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
32057 " };\n"
32058 " \n"
32059 msgstr ""
32060
32061 #. type: verbatim
32062 #: ../src/guestfs-structs.pod:74
32063 #, no-wrap
32064 msgid ""
32065 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
32066 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
32067 "\n"
32068 msgstr ""
32069
32070 #. type: =head2
32071 #: ../src/guestfs-structs.pod:77
32072 msgid "guestfs_lvm_lv"
32073 msgstr ""
32074
32075 #. type: verbatim
32076 #: ../src/guestfs-structs.pod:79
32077 #, no-wrap
32078 msgid ""
32079 " struct guestfs_lvm_lv {\n"
32080 "   char *lv_name;\n"
32081 "   /* The next field is NOT nul-terminated, be careful when printing it: "
32082 "*/\n"
32083 "   char lv_uuid[32];\n"
32084 "   char *lv_attr;\n"
32085 "   int64_t lv_major;\n"
32086 "   int64_t lv_minor;\n"
32087 "   int64_t lv_kernel_major;\n"
32088 "   int64_t lv_kernel_minor;\n"
32089 "   uint64_t lv_size;\n"
32090 "   int64_t seg_count;\n"
32091 "   char *origin;\n"
32092 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
32093 "   float snap_percent;\n"
32094 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
32095 "   float copy_percent;\n"
32096 "   char *move_pv;\n"
32097 "   char *lv_tags;\n"
32098 "   char *mirror_log;\n"
32099 "   char *modules;\n"
32100 " };\n"
32101 " \n"
32102 msgstr ""
32103
32104 #. type: verbatim
32105 #: ../src/guestfs-structs.pod:101
32106 #, no-wrap
32107 msgid ""
32108 " struct guestfs_lvm_lv_list {\n"
32109 "   uint32_t len; /* Number of elements in list. */\n"
32110 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
32111 " };\n"
32112 " \n"
32113 msgstr ""
32114
32115 #. type: verbatim
32116 #: ../src/guestfs-structs.pod:106
32117 #, no-wrap
32118 msgid ""
32119 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
32120 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
32121 "\n"
32122 msgstr ""
32123
32124 #. type: verbatim
32125 #: ../src/guestfs-structs.pod:111
32126 #, no-wrap
32127 msgid ""
32128 " struct guestfs_stat {\n"
32129 "   int64_t dev;\n"
32130 "   int64_t ino;\n"
32131 "   int64_t mode;\n"
32132 "   int64_t nlink;\n"
32133 "   int64_t uid;\n"
32134 "   int64_t gid;\n"
32135 "   int64_t rdev;\n"
32136 "   int64_t size;\n"
32137 "   int64_t blksize;\n"
32138 "   int64_t blocks;\n"
32139 "   int64_t atime;\n"
32140 "   int64_t mtime;\n"
32141 "   int64_t ctime;\n"
32142 " };\n"
32143 " \n"
32144 msgstr ""
32145
32146 #. type: verbatim
32147 #: ../src/guestfs-structs.pod:127
32148 #, no-wrap
32149 msgid ""
32150 " struct guestfs_stat_list {\n"
32151 "   uint32_t len; /* Number of elements in list. */\n"
32152 "   struct guestfs_stat *val; /* Elements. */\n"
32153 " };\n"
32154 " \n"
32155 msgstr ""
32156
32157 #. type: verbatim
32158 #: ../src/guestfs-structs.pod:132
32159 #, no-wrap
32160 msgid ""
32161 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
32162 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
32163 "\n"
32164 msgstr ""
32165
32166 #. type: verbatim
32167 #: ../src/guestfs-structs.pod:137
32168 #, no-wrap
32169 msgid ""
32170 " struct guestfs_statvfs {\n"
32171 "   int64_t bsize;\n"
32172 "   int64_t frsize;\n"
32173 "   int64_t blocks;\n"
32174 "   int64_t bfree;\n"
32175 "   int64_t bavail;\n"
32176 "   int64_t files;\n"
32177 "   int64_t ffree;\n"
32178 "   int64_t favail;\n"
32179 "   int64_t fsid;\n"
32180 "   int64_t flag;\n"
32181 "   int64_t namemax;\n"
32182 " };\n"
32183 " \n"
32184 msgstr ""
32185
32186 #. type: verbatim
32187 #: ../src/guestfs-structs.pod:151
32188 #, no-wrap
32189 msgid ""
32190 " struct guestfs_statvfs_list {\n"
32191 "   uint32_t len; /* Number of elements in list. */\n"
32192 "   struct guestfs_statvfs *val; /* Elements. */\n"
32193 " };\n"
32194 " \n"
32195 msgstr ""
32196
32197 #. type: verbatim
32198 #: ../src/guestfs-structs.pod:156
32199 #, no-wrap
32200 msgid ""
32201 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
32202 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
32203 "\n"
32204 msgstr ""
32205
32206 #. type: =head2
32207 #: ../src/guestfs-structs.pod:159
32208 msgid "guestfs_dirent"
32209 msgstr ""
32210
32211 #. type: verbatim
32212 #: ../src/guestfs-structs.pod:161
32213 #, no-wrap
32214 msgid ""
32215 " struct guestfs_dirent {\n"
32216 "   int64_t ino;\n"
32217 "   char ftyp;\n"
32218 "   char *name;\n"
32219 " };\n"
32220 " \n"
32221 msgstr ""
32222
32223 #. type: verbatim
32224 #: ../src/guestfs-structs.pod:167
32225 #, no-wrap
32226 msgid ""
32227 " struct guestfs_dirent_list {\n"
32228 "   uint32_t len; /* Number of elements in list. */\n"
32229 "   struct guestfs_dirent *val; /* Elements. */\n"
32230 " };\n"
32231 " \n"
32232 msgstr ""
32233
32234 #. type: verbatim
32235 #: ../src/guestfs-structs.pod:172
32236 #, no-wrap
32237 msgid ""
32238 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
32239 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
32240 "\n"
32241 msgstr ""
32242
32243 #. type: verbatim
32244 #: ../src/guestfs-structs.pod:177
32245 #, no-wrap
32246 msgid ""
32247 " struct guestfs_version {\n"
32248 "   int64_t major;\n"
32249 "   int64_t minor;\n"
32250 "   int64_t release;\n"
32251 "   char *extra;\n"
32252 " };\n"
32253 " \n"
32254 msgstr ""
32255
32256 #. type: verbatim
32257 #: ../src/guestfs-structs.pod:184
32258 #, no-wrap
32259 msgid ""
32260 " struct guestfs_version_list {\n"
32261 "   uint32_t len; /* Number of elements in list. */\n"
32262 "   struct guestfs_version *val; /* Elements. */\n"
32263 " };\n"
32264 " \n"
32265 msgstr ""
32266
32267 #. type: verbatim
32268 #: ../src/guestfs-structs.pod:189
32269 #, no-wrap
32270 msgid ""
32271 " void guestfs_free_version (struct guestfs_free_version *);\n"
32272 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
32273 "\n"
32274 msgstr ""
32275
32276 #. type: =head2
32277 #: ../src/guestfs-structs.pod:192
32278 msgid "guestfs_xattr"
32279 msgstr ""
32280
32281 #. type: verbatim
32282 #: ../src/guestfs-structs.pod:194
32283 #, no-wrap
32284 msgid ""
32285 " struct guestfs_xattr {\n"
32286 "   char *attrname;\n"
32287 "   /* The next two fields describe a byte array. */\n"
32288 "   uint32_t attrval_len;\n"
32289 "   char *attrval;\n"
32290 " };\n"
32291 " \n"
32292 msgstr ""
32293
32294 #. type: verbatim
32295 #: ../src/guestfs-structs.pod:201
32296 #, no-wrap
32297 msgid ""
32298 " struct guestfs_xattr_list {\n"
32299 "   uint32_t len; /* Number of elements in list. */\n"
32300 "   struct guestfs_xattr *val; /* Elements. */\n"
32301 " };\n"
32302 " \n"
32303 msgstr ""
32304
32305 #. type: verbatim
32306 #: ../src/guestfs-structs.pod:206
32307 #, no-wrap
32308 msgid ""
32309 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
32310 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
32311 "\n"
32312 msgstr ""
32313
32314 #. type: =head2
32315 #: ../src/guestfs-structs.pod:209
32316 msgid "guestfs_inotify_event"
32317 msgstr ""
32318
32319 #. type: verbatim
32320 #: ../src/guestfs-structs.pod:211
32321 #, no-wrap
32322 msgid ""
32323 " struct guestfs_inotify_event {\n"
32324 "   int64_t in_wd;\n"
32325 "   uint32_t in_mask;\n"
32326 "   uint32_t in_cookie;\n"
32327 "   char *in_name;\n"
32328 " };\n"
32329 " \n"
32330 msgstr ""
32331
32332 #. type: verbatim
32333 #: ../src/guestfs-structs.pod:218
32334 #, no-wrap
32335 msgid ""
32336 " struct guestfs_inotify_event_list {\n"
32337 "   uint32_t len; /* Number of elements in list. */\n"
32338 "   struct guestfs_inotify_event *val; /* Elements. */\n"
32339 " };\n"
32340 " \n"
32341 msgstr ""
32342
32343 #. type: verbatim
32344 #: ../src/guestfs-structs.pod:223
32345 #, no-wrap
32346 msgid ""
32347 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
32348 " void guestfs_free_inotify_event_list (struct "
32349 "guestfs_free_inotify_event_list *);\n"
32350 "\n"
32351 msgstr ""
32352
32353 #. type: =head2
32354 #: ../src/guestfs-structs.pod:226
32355 msgid "guestfs_partition"
32356 msgstr ""
32357
32358 #. type: verbatim
32359 #: ../src/guestfs-structs.pod:228
32360 #, no-wrap
32361 msgid ""
32362 " struct guestfs_partition {\n"
32363 "   int32_t part_num;\n"
32364 "   uint64_t part_start;\n"
32365 "   uint64_t part_end;\n"
32366 "   uint64_t part_size;\n"
32367 " };\n"
32368 " \n"
32369 msgstr ""
32370
32371 #. type: verbatim
32372 #: ../src/guestfs-structs.pod:235
32373 #, no-wrap
32374 msgid ""
32375 " struct guestfs_partition_list {\n"
32376 "   uint32_t len; /* Number of elements in list. */\n"
32377 "   struct guestfs_partition *val; /* Elements. */\n"
32378 " };\n"
32379 " \n"
32380 msgstr ""
32381
32382 #. type: verbatim
32383 #: ../src/guestfs-structs.pod:240
32384 #, no-wrap
32385 msgid ""
32386 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
32387 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
32388 "\n"
32389 msgstr ""
32390
32391 #. type: =head2
32392 #: ../src/guestfs-structs.pod:243
32393 msgid "guestfs_application"
32394 msgstr ""
32395
32396 #. type: verbatim
32397 #: ../src/guestfs-structs.pod:245
32398 #, no-wrap
32399 msgid ""
32400 " struct guestfs_application {\n"
32401 "   char *app_name;\n"
32402 "   char *app_display_name;\n"
32403 "   int32_t app_epoch;\n"
32404 "   char *app_version;\n"
32405 "   char *app_release;\n"
32406 "   char *app_install_path;\n"
32407 "   char *app_trans_path;\n"
32408 "   char *app_publisher;\n"
32409 "   char *app_url;\n"
32410 "   char *app_source_package;\n"
32411 "   char *app_summary;\n"
32412 "   char *app_description;\n"
32413 " };\n"
32414 " \n"
32415 msgstr ""
32416
32417 #. type: verbatim
32418 #: ../src/guestfs-structs.pod:260
32419 #, no-wrap
32420 msgid ""
32421 " struct guestfs_application_list {\n"
32422 "   uint32_t len; /* Number of elements in list. */\n"
32423 "   struct guestfs_application *val; /* Elements. */\n"
32424 " };\n"
32425 " \n"
32426 msgstr ""
32427
32428 #. type: verbatim
32429 #: ../src/guestfs-structs.pod:265
32430 #, no-wrap
32431 msgid ""
32432 " void guestfs_free_application (struct guestfs_free_application *);\n"
32433 " void guestfs_free_application_list (struct guestfs_free_application_list "
32434 "*);\n"
32435 "\n"
32436 msgstr ""
32437
32438 #. type: textblock
32439 #: ../src/guestfs.pod:5
32440 msgid "guestfs - Library for accessing and modifying virtual machine images"
32441 msgstr ""
32442
32443 #. type: verbatim
32444 #: ../src/guestfs.pod:11
32445 #, no-wrap
32446 msgid ""
32447 " guestfs_h *g = guestfs_create ();\n"
32448 " guestfs_add_drive (g, \"guest.img\");\n"
32449 " guestfs_launch (g);\n"
32450 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32451 " guestfs_touch (g, \"/hello\");\n"
32452 " guestfs_umount (g, \"/\");\n"
32453 " guestfs_close (g);\n"
32454 "\n"
32455 msgstr ""
32456
32457 #. type: textblock
32458 #: ../src/guestfs.pod:25
32459 msgid ""
32460 "Libguestfs is a library for accessing and modifying guest disk images.  "
32461 "Amongst the things this is good for: making batch configuration changes to "
32462 "guests, getting disk used/free statistics (see also: virt-df), migrating "
32463 "between virtualization systems (see also: virt-p2v), performing partial "
32464 "backups, performing partial guest clones, cloning guests and changing "
32465 "registry/UUID/hostname info, and much else besides."
32466 msgstr ""
32467
32468 #. type: textblock
32469 #: ../src/guestfs.pod:33
32470 msgid ""
32471 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
32472 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
32473 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
32474 "qcow2, vmdk."
32475 msgstr ""
32476
32477 #. type: textblock
32478 #: ../src/guestfs.pod:38
32479 msgid ""
32480 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
32481 "what filesystem is in each LV, etc.).  It can also run commands in the "
32482 "context of the guest.  Also you can access filesystems over FUSE."
32483 msgstr ""
32484
32485 #. type: textblock
32486 #: ../src/guestfs.pod:43
32487 msgid ""
32488 "Libguestfs is a library that can be linked with C and C++ management "
32489 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
32490 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
32491 "command line."
32492 msgstr ""
32493
32494 #. type: textblock
32495 #: ../src/guestfs.pod:48
32496 msgid ""
32497 "You don't need to be root to use libguestfs, although obviously you do need "
32498 "enough permissions to access the disk images."
32499 msgstr ""
32500
32501 #. type: textblock
32502 #: ../src/guestfs.pod:51
32503 msgid ""
32504 "Libguestfs is a large API because it can do many things.  For a gentle "
32505 "introduction, please read the L</API OVERVIEW> section next."
32506 msgstr ""
32507
32508 #. type: textblock
32509 #: ../src/guestfs.pod:54
32510 msgid ""
32511 "There are also some example programs in the L<guestfs-examples(3)> manual "
32512 "page."
32513 msgstr ""
32514
32515 #. type: =head1
32516 #: ../src/guestfs.pod:57
32517 msgid "API OVERVIEW"
32518 msgstr ""
32519
32520 #. type: textblock
32521 #: ../src/guestfs.pod:59
32522 msgid ""
32523 "This section provides a gentler overview of the libguestfs API.  We also try "
32524 "to group API calls together, where that may not be obvious from reading "
32525 "about the individual calls in the main section of this manual."
32526 msgstr ""
32527
32528 #. type: =head2
32529 #: ../src/guestfs.pod:64
32530 msgid "HANDLES"
32531 msgstr ""
32532
32533 #. type: textblock
32534 #: ../src/guestfs.pod:66
32535 msgid ""
32536 "Before you can use libguestfs calls, you have to create a handle.  Then you "
32537 "must add at least one disk image to the handle, followed by launching the "
32538 "handle, then performing whatever operations you want, and finally closing "
32539 "the handle.  By convention we use the single letter C<g> for the name of the "
32540 "handle variable, although of course you can use any name you want."
32541 msgstr ""
32542
32543 #. type: textblock
32544 #: ../src/guestfs.pod:73
32545 msgid "The general structure of all libguestfs-using programs looks like this:"
32546 msgstr ""
32547
32548 #. type: verbatim
32549 #: ../src/guestfs.pod:76
32550 #, no-wrap
32551 msgid ""
32552 " guestfs_h *g = guestfs_create ();\n"
32553 " \n"
32554 msgstr ""
32555
32556 #. type: verbatim
32557 #: ../src/guestfs.pod:78
32558 #, no-wrap
32559 msgid ""
32560 " /* Call guestfs_add_drive additional times if there are\n"
32561 "  * multiple disk images.\n"
32562 "  */\n"
32563 " guestfs_add_drive (g, \"guest.img\");\n"
32564 " \n"
32565 msgstr ""
32566
32567 #. type: verbatim
32568 #: ../src/guestfs.pod:83
32569 #, no-wrap
32570 msgid ""
32571 " /* Most manipulation calls won't work until you've launched\n"
32572 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
32573 "  * and _before_ other commands.\n"
32574 "  */\n"
32575 " guestfs_launch (g);\n"
32576 " \n"
32577 msgstr ""
32578
32579 #. type: verbatim
32580 #: ../src/guestfs.pod:89
32581 #, no-wrap
32582 msgid ""
32583 " /* Now you can examine what partitions, LVs etc are available.\n"
32584 "  */\n"
32585 " char **partitions = guestfs_list_partitions (g);\n"
32586 " char **logvols = guestfs_lvs (g);\n"
32587 " \n"
32588 msgstr ""
32589
32590 #. type: verbatim
32591 #: ../src/guestfs.pod:94
32592 #, no-wrap
32593 msgid ""
32594 " /* To access a filesystem in the image, you must mount it.\n"
32595 "  */\n"
32596 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32597 " \n"
32598 msgstr ""
32599
32600 #. type: verbatim
32601 #: ../src/guestfs.pod:98
32602 #, no-wrap
32603 msgid ""
32604 " /* Now you can perform filesystem actions on the guest\n"
32605 "  * disk image.\n"
32606 "  */\n"
32607 " guestfs_touch (g, \"/hello\");\n"
32608 " \n"
32609 msgstr ""
32610
32611 #. type: verbatim
32612 #: ../src/guestfs.pod:103
32613 #, no-wrap
32614 msgid ""
32615 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
32616 "  * it is done automatically when you close the handle.  See\n"
32617 "  * discussion of autosync in this page.\n"
32618 "  */\n"
32619 " guestfs_sync (g);\n"
32620 " \n"
32621 msgstr ""
32622
32623 #. type: verbatim
32624 #: ../src/guestfs.pod:109
32625 #, no-wrap
32626 msgid ""
32627 " /* Close the handle 'g'. */\n"
32628 " guestfs_close (g);\n"
32629 "\n"
32630 msgstr ""
32631
32632 #. type: textblock
32633 #: ../src/guestfs.pod:112
32634 msgid ""
32635 "The code above doesn't include any error checking.  In real code you should "
32636 "check return values carefully for errors.  In general all functions that "
32637 "return integers return C<-1> on error, and all functions that return "
32638 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
32639 "how to handle errors, and consult the documentation for each function call "
32640 "below to see precisely how they return error indications.  See "
32641 "L<guestfs-examples(3)> for fully worked examples."
32642 msgstr ""
32643
32644 #. type: =head2
32645 #: ../src/guestfs.pod:121
32646 msgid "DISK IMAGES"
32647 msgstr ""
32648
32649 #. type: textblock
32650 #: ../src/guestfs.pod:123
32651 msgid ""
32652 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
32653 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
32654 "actual block device, or simply an empty file of zeroes that you have created "
32655 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
32656 "of these."
32657 msgstr ""
32658
32659 #. type: textblock
32660 #: ../src/guestfs.pod:129
32661 msgid ""
32662 "The call you should use in modern code for adding drives is "
32663 "L</guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
32664 "specifying that the format is raw, do:"
32665 msgstr ""
32666
32667 #. type: verbatim
32668 #: ../src/guestfs.pod:133
32669 #, no-wrap
32670 msgid ""
32671 " guestfs_add_drive_opts (g, filename,\n"
32672 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32673 "                         -1);\n"
32674 "\n"
32675 msgstr ""
32676
32677 #. type: textblock
32678 #: ../src/guestfs.pod:137
32679 msgid "You can add a disk read-only using:"
32680 msgstr ""
32681
32682 #. type: verbatim
32683 #: ../src/guestfs.pod:139
32684 #, no-wrap
32685 msgid ""
32686 " guestfs_add_drive_opts (g, filename,\n"
32687 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32688 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
32689 "                         -1);\n"
32690 "\n"
32691 msgstr ""
32692
32693 #. type: textblock
32694 #: ../src/guestfs.pod:144
32695 msgid ""
32696 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
32697 "libguestfs won't modify the file."
32698 msgstr ""
32699
32700 #. type: textblock
32701 #: ../src/guestfs.pod:147
32702 msgid ""
32703 "Be extremely cautious if the disk image is in use, eg. if it is being used "
32704 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
32705 "corruption, but adding it read-only is safe."
32706 msgstr ""
32707
32708 #. type: textblock
32709 #: ../src/guestfs.pod:151
32710 msgid ""
32711 "You must add at least one disk image, and you may add multiple disk images.  "
32712 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
32713 "first one you added), C</dev/sdb> (for the second one you added), etc."
32714 msgstr ""
32715
32716 #. type: textblock
32717 #: ../src/guestfs.pod:156
32718 msgid ""
32719 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
32720 "can call L</guestfs_list_devices> to get a list of the device names, in the "
32721 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
32722 msgstr ""
32723
32724 #. type: =head2
32725 #: ../src/guestfs.pod:161
32726 msgid "MOUNTING"
32727 msgstr ""
32728
32729 #. type: textblock
32730 #: ../src/guestfs.pod:163
32731 msgid ""
32732 "Before you can read or write files, create directories and so on in a disk "
32733 "image that contains filesystems, you have to mount those filesystems using "
32734 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
32735 "a disk image contains (for example) one partition with a filesystem on that "
32736 "partition, then you can mount it directly:"
32737 msgstr ""
32738
32739 #. type: verbatim
32740 #: ../src/guestfs.pod:170
32741 #, no-wrap
32742 msgid ""
32743 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
32744 "\n"
32745 msgstr ""
32746
32747 #. type: textblock
32748 #: ../src/guestfs.pod:172
32749 msgid ""
32750 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
32751 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
32752 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
32753 "that these are libguestfs virtual devices, and are nothing to do with host "
32754 "devices."
32755 msgstr ""
32756
32757 #. type: textblock
32758 #: ../src/guestfs.pod:178
32759 msgid ""
32760 "If you are given a disk image and you don't know what it contains then you "
32761 "have to find out.  Libguestfs can do that too: use "
32762 "L</guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions "
32763 "and LVs, and either try mounting each to see what is mountable, or else "
32764 "examine them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
32765 "filesystems, use L</guestfs_list_filesystems>."
32766 msgstr ""
32767
32768 #. type: textblock
32769 #: ../src/guestfs.pod:186
32770 msgid ""
32771 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
32772 "L</INSPECTION> below).  But you might find it easier to look at higher level "
32773 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
32774 msgstr ""
32775
32776 #. type: textblock
32777 #: ../src/guestfs.pod:191
32778 msgid ""
32779 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
32780 "several other variations of the C<guestfs_mount_*> call."
32781 msgstr ""
32782
32783 #. type: =head2
32784 #: ../src/guestfs.pod:194
32785 msgid "FILESYSTEM ACCESS AND MODIFICATION"
32786 msgstr ""
32787
32788 #. type: textblock
32789 #: ../src/guestfs.pod:196
32790 msgid ""
32791 "The majority of the libguestfs API consists of fairly low-level calls for "
32792 "accessing and modifying the files, directories, symlinks etc on mounted "
32793 "filesystems.  There are over a hundred such calls which you can find listed "
32794 "in detail below in this man page, and we don't even pretend to cover them "
32795 "all in this overview."
32796 msgstr ""
32797
32798 #. type: textblock
32799 #: ../src/guestfs.pod:202
32800 msgid ""
32801 "Specify filenames as full paths, starting with C<\"/\"> and including the "
32802 "mount point."
32803 msgstr ""
32804
32805 #. type: textblock
32806 #: ../src/guestfs.pod:205
32807 msgid ""
32808 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
32809 "the file called C<\"etc/passwd\"> then you could do:"
32810 msgstr ""
32811
32812 #. type: verbatim
32813 #: ../src/guestfs.pod:208
32814 #, no-wrap
32815 msgid ""
32816 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
32817 "\n"
32818 msgstr ""
32819
32820 #. type: textblock
32821 #: ../src/guestfs.pod:210
32822 msgid ""
32823 "This would return C<data> as a newly allocated buffer containing the full "
32824 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
32825 "or C<NULL> if there was an error."
32826 msgstr ""
32827
32828 #. type: textblock
32829 #: ../src/guestfs.pod:214
32830 msgid ""
32831 "As another example, to create a top-level directory on that filesystem "
32832 "called C<\"var\"> you would do:"
32833 msgstr ""
32834
32835 #. type: verbatim
32836 #: ../src/guestfs.pod:217
32837 #, no-wrap
32838 msgid ""
32839 " guestfs_mkdir (g, \"/var\");\n"
32840 "\n"
32841 msgstr ""
32842
32843 #. type: textblock
32844 #: ../src/guestfs.pod:219
32845 msgid "To create a symlink you could do:"
32846 msgstr ""
32847
32848 #. type: verbatim
32849 #: ../src/guestfs.pod:221
32850 #, no-wrap
32851 msgid ""
32852 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
32853 "               \"/etc/rc3.d/S30portmap\");\n"
32854 "\n"
32855 msgstr ""
32856
32857 #. type: textblock
32858 #: ../src/guestfs.pod:224
32859 msgid ""
32860 "Libguestfs will reject attempts to use relative paths and there is no "
32861 "concept of a current working directory."
32862 msgstr ""
32863
32864 #. type: textblock
32865 #: ../src/guestfs.pod:227
32866 msgid ""
32867 "Libguestfs can return errors in many situations: for example if the "
32868 "filesystem isn't writable, or if a file or directory that you requested "
32869 "doesn't exist.  If you are using the C API (documented here)  you have to "
32870 "check for those error conditions after each call.  (Other language bindings "
32871 "turn these errors into exceptions)."
32872 msgstr ""
32873
32874 #. type: textblock
32875 #: ../src/guestfs.pod:233
32876 msgid ""
32877 "File writes are affected by the per-handle umask, set by calling "
32878 "L</guestfs_umask> and defaulting to 022.  See L</UMASK>."
32879 msgstr ""
32880
32881 #. type: =head2
32882 #: ../src/guestfs.pod:236
32883 msgid "PARTITIONING"
32884 msgstr ""
32885
32886 #. type: textblock
32887 #: ../src/guestfs.pod:238
32888 msgid ""
32889 "Libguestfs contains API calls to read, create and modify partition tables on "
32890 "disk images."
32891 msgstr ""
32892
32893 #. type: textblock
32894 #: ../src/guestfs.pod:241
32895 msgid ""
32896 "In the common case where you want to create a single partition covering the "
32897 "whole disk, you should use the L</guestfs_part_disk> call:"
32898 msgstr ""
32899
32900 #. type: verbatim
32901 #: ../src/guestfs.pod:245
32902 #, no-wrap
32903 msgid ""
32904 " const char *parttype = \"mbr\";\n"
32905 " if (disk_is_larger_than_2TB)\n"
32906 "   parttype = \"gpt\";\n"
32907 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
32908 "\n"
32909 msgstr ""
32910
32911 #. type: textblock
32912 #: ../src/guestfs.pod:250
32913 msgid ""
32914 "Obviously this effectively wipes anything that was on that disk image "
32915 "before."
32916 msgstr ""
32917
32918 #. type: =head2
32919 #: ../src/guestfs.pod:253
32920 msgid "LVM2"
32921 msgstr ""
32922
32923 #. type: textblock
32924 #: ../src/guestfs.pod:255
32925 msgid ""
32926 "Libguestfs provides access to a large part of the LVM2 API, such as "
32927 "L</guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense "
32928 "unless you familiarize yourself with the concepts of physical volumes, "
32929 "volume groups and logical volumes."
32930 msgstr ""
32931
32932 #. type: textblock
32933 #: ../src/guestfs.pod:260
32934 msgid ""
32935 "This author strongly recommends reading the LVM HOWTO, online at "
32936 "L<http://tldp.org/HOWTO/LVM-HOWTO/>."
32937 msgstr ""
32938
32939 #. type: =head2
32940 #: ../src/guestfs.pod:263
32941 msgid "DOWNLOADING"
32942 msgstr ""
32943
32944 #. type: textblock
32945 #: ../src/guestfs.pod:265
32946 msgid ""
32947 "Use L</guestfs_cat> to download small, text only files.  This call is "
32948 "limited to files which are less than 2 MB and which cannot contain any ASCII "
32949 "NUL (C<\\0>) characters.  However the API is very simple to use."
32950 msgstr ""
32951
32952 #. type: textblock
32953 #: ../src/guestfs.pod:269
32954 msgid ""
32955 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
32956 "bit data, since it returns a (pointer, size) pair.  However it is still "
32957 "limited to \"small\" files, less than 2 MB."
32958 msgstr ""
32959
32960 #. type: textblock
32961 #: ../src/guestfs.pod:273
32962 msgid ""
32963 "L</guestfs_download> can be used to download any file, with no limits on "
32964 "content or size (even files larger than 4 GB)."
32965 msgstr ""
32966
32967 #. type: textblock
32968 #: ../src/guestfs.pod:276
32969 msgid "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
32970 msgstr ""
32971
32972 #. type: =head2
32973 #: ../src/guestfs.pod:279
32974 msgid "UPLOADING"
32975 msgstr ""
32976
32977 #. type: textblock
32978 #: ../src/guestfs.pod:281
32979 msgid ""
32980 "It's often the case that you want to write a file or files to the disk "
32981 "image."
32982 msgstr ""
32983
32984 #. type: textblock
32985 #: ../src/guestfs.pod:284
32986 msgid ""
32987 "To write a small file with fixed content, use L</guestfs_write>.  To create "
32988 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or "
32989 "L</guestfs_fallocate64> (with all disk blocks allocated).  There are a "
32990 "variety of other functions for creating test files, for example "
32991 "L</guestfs_fill> and L</guestfs_fill_pattern>."
32992 msgstr ""
32993
32994 #. type: textblock
32995 #: ../src/guestfs.pod:290
32996 msgid ""
32997 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
32998 "file content or size (even files larger than 4 GB)."
32999 msgstr ""
33000
33001 #. type: textblock
33002 #: ../src/guestfs.pod:293
33003 msgid "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
33004 msgstr ""
33005
33006 #. type: textblock
33007 #: ../src/guestfs.pod:295
33008 msgid ""
33009 "However the fastest way to upload I<large numbers of arbitrary files> is to "
33010 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and "
33011 "L<mkisofs(8)>), then attach this using L</guestfs_add_drive_ro>.  If you add "
33012 "the drive in a predictable way (eg. adding it last after all other drives) "
33013 "then you can get the device name from L</guestfs_list_devices> and mount it "
33014 "directly using L</guestfs_mount_ro>.  Note that squashfs images are "
33015 "sometimes non-portable between kernel versions, and they don't support "
33016 "labels or UUIDs.  If you want to pre-build an image or you need to mount it "
33017 "using a label or UUID, use an ISO image instead."
33018 msgstr ""
33019
33020 #. type: =head2
33021 #: ../src/guestfs.pod:306
33022 msgid "COPYING"
33023 msgstr ""
33024
33025 #. type: textblock
33026 #: ../src/guestfs.pod:308
33027 msgid ""
33028 "There are various different commands for copying between files and devices "
33029 "and in and out of the guest filesystem.  These are summarised in the table "
33030 "below."
33031 msgstr ""
33032
33033 #. type: =item
33034 #: ../src/guestfs.pod:314
33035 msgid "B<file> to B<file>"
33036 msgstr ""
33037
33038 #. type: textblock
33039 #: ../src/guestfs.pod:316
33040 msgid ""
33041 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
33042 "directories recursively."
33043 msgstr ""
33044
33045 #. type: =item
33046 #: ../src/guestfs.pod:319
33047 msgid "B<file or device> to B<file or device>"
33048 msgstr ""
33049
33050 #. type: textblock
33051 #: ../src/guestfs.pod:321
33052 msgid ""
33053 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
33054 "devices in the guest."
33055 msgstr ""
33056
33057 #. type: textblock
33058 #: ../src/guestfs.pod:324
33059 msgid "Example: duplicate the contents of an LV:"
33060 msgstr ""
33061
33062 #. type: verbatim
33063 #: ../src/guestfs.pod:326
33064 #, no-wrap
33065 msgid ""
33066 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
33067 "\n"
33068 msgstr ""
33069
33070 #. type: textblock
33071 #: ../src/guestfs.pod:328
33072 msgid ""
33073 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
33074 "(C</dev/VG/Original>).  To copy less than the whole source device, use "
33075 "L</guestfs_copy_size>."
33076 msgstr ""
33077
33078 #. type: =item
33079 #: ../src/guestfs.pod:332
33080 msgid "B<file on the host> to B<file or device>"
33081 msgstr ""
33082
33083 #. type: textblock
33084 #: ../src/guestfs.pod:334
33085 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
33086 msgstr ""
33087
33088 #. type: =item
33089 #: ../src/guestfs.pod:336
33090 msgid "B<file or device> to B<file on the host>"
33091 msgstr ""
33092
33093 #. type: textblock
33094 #: ../src/guestfs.pod:338
33095 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
33096 msgstr ""
33097
33098 #. type: =head2
33099 #: ../src/guestfs.pod:342
33100 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
33101 msgstr ""
33102
33103 #. type: textblock
33104 #: ../src/guestfs.pod:344
33105 msgid ""
33106 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, "
33107 "L</guestfs_tar_out> etc appear to only take filenames as arguments, so it "
33108 "appears you can only upload and download to files.  However many Un*x-like "
33109 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, "
33110 "C</dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, "
33111 "stderr, and arbitrary file descriptor N."
33112 msgstr ""
33113
33114 #. type: textblock
33115 #: ../src/guestfs.pod:352
33116 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
33117 msgstr ""
33118
33119 #. type: verbatim
33120 #: ../src/guestfs.pod:355
33121 #, no-wrap
33122 msgid ""
33123 " guestfs_download (g, filename, \"/dev/stdout\");\n"
33124 "\n"
33125 msgstr ""
33126
33127 #. type: textblock
33128 #: ../src/guestfs.pod:357
33129 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
33130 msgstr ""
33131
33132 #. type: verbatim
33133 #: ../src/guestfs.pod:359
33134 #, no-wrap
33135 msgid ""
33136 " char devfd[64];\n"
33137 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
33138 " guestfs_tar_out (g, \"/\", devfd);\n"
33139 "\n"
33140 msgstr ""
33141
33142 #. type: =head2
33143 #: ../src/guestfs.pod:363
33144 msgid "LISTING FILES"
33145 msgstr ""
33146
33147 #. type: textblock
33148 #: ../src/guestfs.pod:365
33149 msgid ""
33150 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
33151 "L<guestfish(1)>-equivalent command C<ll>)."
33152 msgstr ""
33153
33154 #. type: textblock
33155 #: ../src/guestfs.pod:368
33156 msgid ""
33157 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
33158 "programs, as a flat list of strings."
33159 msgstr ""
33160
33161 #. type: textblock
33162 #: ../src/guestfs.pod:371
33163 msgid ""
33164 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
33165 "directory, plus additional information about each one.  It is more "
33166 "equivalent to using the L<readdir(3)> call on a local filesystem."
33167 msgstr ""
33168
33169 #. type: textblock
33170 #: ../src/guestfs.pod:375
33171 msgid ""
33172 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list "
33173 "files."
33174 msgstr ""
33175
33176 #. type: =head2
33177 #: ../src/guestfs.pod:378
33178 msgid "RUNNING COMMANDS"
33179 msgstr ""
33180
33181 #. type: textblock
33182 #: ../src/guestfs.pod:380
33183 msgid ""
33184 "Although libguestfs is primarily an API for manipulating files inside guest "
33185 "images, we also provide some limited facilities for running commands inside "
33186 "guests."
33187 msgstr ""
33188
33189 #. type: textblock
33190 #: ../src/guestfs.pod:384
33191 msgid "There are many limitations to this:"
33192 msgstr ""
33193
33194 #. type: textblock
33195 #: ../src/guestfs.pod:390
33196 msgid ""
33197 "The kernel version that the command runs under will be different from what "
33198 "it expects."
33199 msgstr ""
33200
33201 #. type: textblock
33202 #: ../src/guestfs.pod:395
33203 msgid ""
33204 "If the command needs to communicate with daemons, then most likely they "
33205 "won't be running."
33206 msgstr ""
33207
33208 #. type: textblock
33209 #: ../src/guestfs.pod:400
33210 msgid "The command will be running in limited memory."
33211 msgstr ""
33212
33213 #. type: textblock
33214 #: ../src/guestfs.pod:404
33215 msgid ""
33216 "The network may not be available unless you enable it (see "
33217 "L</guestfs_set_network>)."
33218 msgstr ""
33219
33220 #. type: textblock
33221 #: ../src/guestfs.pod:409
33222 msgid "Only supports Linux guests (not Windows, BSD, etc)."
33223 msgstr ""
33224
33225 #. type: textblock
33226 #: ../src/guestfs.pod:413
33227 msgid "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
33228 msgstr ""
33229
33230 #. type: textblock
33231 #: ../src/guestfs.pod:418
33232 msgid ""
33233 "For SELinux guests, you may need to enable SELinux and load policy first.  "
33234 "See L</SELINUX> in this manpage."
33235 msgstr ""
33236
33237 #. type: textblock
33238 #: ../src/guestfs.pod:423
33239 msgid ""
33240 "I<Security:> It is not safe to run commands from untrusted, possibly "
33241 "malicious guests.  These commands may attempt to exploit your program by "
33242 "sending unexpected output.  They could also try to exploit the Linux kernel "
33243 "or qemu provided by the libguestfs appliance.  They could use the network "
33244 "provided by the libguestfs appliance to bypass ordinary network partitions "
33245 "and firewalls.  They could use the elevated privileges or different SELinux "
33246 "context of your program to their advantage."
33247 msgstr ""
33248
33249 #. type: textblock
33250 #: ../src/guestfs.pod:432
33251 msgid ""
33252 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
33253 "(a script which runs when the guest next boots normally), and to have this "
33254 "script run the commands you want in the normal context of the running guest, "
33255 "network security and so on.  For information about other security issues, "
33256 "see L</SECURITY>."
33257 msgstr ""
33258
33259 #. type: textblock
33260 #: ../src/guestfs.pod:440
33261 msgid ""
33262 "The two main API calls to run commands are L</guestfs_command> and "
33263 "L</guestfs_sh> (there are also variations)."
33264 msgstr ""
33265
33266 #. type: textblock
33267 #: ../src/guestfs.pod:443
33268 msgid ""
33269 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
33270 "shell globs, redirections, etc will work."
33271 msgstr ""
33272
33273 #. type: =head2
33274 #: ../src/guestfs.pod:446
33275 msgid "CONFIGURATION FILES"
33276 msgstr ""
33277
33278 #. type: textblock
33279 #: ../src/guestfs.pod:448
33280 msgid ""
33281 "To read and write configuration files in Linux guest filesystems, we "
33282 "strongly recommend using Augeas.  For example, Augeas understands how to "
33283 "read and write, say, a Linux shadow password file or X.org configuration "
33284 "file, and so avoids you having to write that code."
33285 msgstr ""
33286
33287 #. type: textblock
33288 #: ../src/guestfs.pod:453
33289 msgid ""
33290 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
33291 "document Augeas itself here because there is excellent documentation on the "
33292 "L<http://augeas.net/> website."
33293 msgstr ""
33294
33295 #. type: textblock
33296 #: ../src/guestfs.pod:457
33297 msgid ""
33298 "If you don't want to use Augeas (you fool!) then try calling "
33299 "L</guestfs_read_lines> to get the file as a list of lines which you can "
33300 "iterate over."
33301 msgstr ""
33302
33303 #. type: =head2
33304 #: ../src/guestfs.pod:461
33305 msgid "SELINUX"
33306 msgstr ""
33307
33308 #. type: textblock
33309 #: ../src/guestfs.pod:463
33310 msgid ""
33311 "We support SELinux guests.  To ensure that labeling happens correctly in "
33312 "SELinux guests, you need to enable SELinux and load the guest's policy:"
33313 msgstr ""
33314
33315 #. type: textblock
33316 #: ../src/guestfs.pod:471
33317 msgid "Before launching, do:"
33318 msgstr ""
33319
33320 #. type: verbatim
33321 #: ../src/guestfs.pod:473
33322 #, no-wrap
33323 msgid ""
33324 " guestfs_set_selinux (g, 1);\n"
33325 "\n"
33326 msgstr ""
33327
33328 #. type: textblock
33329 #: ../src/guestfs.pod:477
33330 msgid ""
33331 "After mounting the guest's filesystem(s), load the policy.  This is best "
33332 "done by running the L<load_policy(8)> command in the guest itself:"
33333 msgstr ""
33334
33335 #. type: verbatim
33336 #: ../src/guestfs.pod:481
33337 #, no-wrap
33338 msgid ""
33339 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
33340 "\n"
33341 msgstr ""
33342
33343 #. type: textblock
33344 #: ../src/guestfs.pod:483
33345 msgid ""
33346 "(Older versions of C<load_policy> require you to specify the name of the "
33347 "policy file)."
33348 msgstr ""
33349
33350 #. type: textblock
33351 #: ../src/guestfs.pod:488
33352 msgid ""
33353 "Optionally, set the security context for the API.  The correct security "
33354 "context to use can only be known by inspecting the guest.  As an example:"
33355 msgstr ""
33356
33357 #. type: verbatim
33358 #: ../src/guestfs.pod:492
33359 #, no-wrap
33360 msgid ""
33361 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
33362 "\n"
33363 msgstr ""
33364
33365 #. type: textblock
33366 #: ../src/guestfs.pod:496
33367 msgid "This will work for running commands and editing existing files."
33368 msgstr ""
33369
33370 #. type: textblock
33371 #: ../src/guestfs.pod:498
33372 msgid ""
33373 "When new files are created, you may need to label them explicitly, for "
33374 "example by running the external command C<restorecon pathname>."
33375 msgstr ""
33376
33377 #. type: =head2
33378 #: ../src/guestfs.pod:502
33379 msgid "UMASK"
33380 msgstr ""
33381
33382 #. type: textblock
33383 #: ../src/guestfs.pod:504
33384 msgid ""
33385 "Certain calls are affected by the current file mode creation mask (the "
33386 "\"umask\").  In particular ones which create files or directories, such as "
33387 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
33388 "either the default mode that the file is created with or modifies the mode "
33389 "that you supply."
33390 msgstr ""
33391
33392 #. type: textblock
33393 #: ../src/guestfs.pod:510
33394 msgid ""
33395 "The default umask is C<022>, so files are created with modes such as C<0644> "
33396 "and directories with C<0755>."
33397 msgstr ""
33398
33399 #. type: textblock
33400 #: ../src/guestfs.pod:513
33401 msgid ""
33402 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
33403 "(call C<guestfs_umask (g, 0)> early after launching).  Or call "
33404 "L</guestfs_chmod> after creating each file or directory."
33405 msgstr ""
33406
33407 #. type: textblock
33408 #: ../src/guestfs.pod:517
33409 msgid "For more information about umask, see L<umask(2)>."
33410 msgstr ""
33411
33412 #. type: textblock
33413 #: ../src/guestfs.pod:521
33414 msgid ""
33415 "Libguestfs allows you to access Linux guests which have been encrypted using "
33416 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
33417 "standard.  This includes nearly all whole disk encryption systems used by "
33418 "modern Linux guests."
33419 msgstr ""
33420
33421 #. type: textblock
33422 #: ../src/guestfs.pod:527
33423 msgid ""
33424 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
33425 "returns the string C<crypto_LUKS>)."
33426 msgstr ""
33427
33428 #. type: textblock
33429 #: ../src/guestfs.pod:530
33430 msgid ""
33431 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
33432 "will require the passphrase!"
33433 msgstr ""
33434
33435 #. type: textblock
33436 #: ../src/guestfs.pod:533
33437 msgid ""
33438 "Opening a LUKS device creates a new device mapper device called "
33439 "C</dev/mapper/mapname> (where C<mapname> is the string you supply to "
33440 "L</guestfs_luks_open>).  Reads and writes to this mapper device are "
33441 "decrypted from and encrypted to the underlying block device respectively."
33442 msgstr ""
33443
33444 #. type: textblock
33445 #: ../src/guestfs.pod:539
33446 msgid ""
33447 "LVM volume groups on the device can be made visible by calling "
33448 "L</guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical "
33449 "volume(s) can now be mounted in the usual way."
33450 msgstr ""
33451
33452 #. type: textblock
33453 #: ../src/guestfs.pod:543
33454 msgid ""
33455 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
33456 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
33457 "[\"/dev/VG\"])>.  Then close the mapper device by calling "
33458 "L</guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
33459 "underlying encrypted block device)."
33460 msgstr ""
33461
33462 #. type: =head2
33463 #: ../src/guestfs.pod:550
33464 msgid "INSPECTION"
33465 msgstr ""
33466
33467 #. type: textblock
33468 #: ../src/guestfs.pod:552
33469 msgid ""
33470 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
33471 "contains operating systems, an install CD or a live CD.  (These APIs used to "
33472 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
33473 "version 1.5.3 the most frequently used part of this library has been "
33474 "rewritten in C and moved into the core code)."
33475 msgstr ""
33476
33477 #. type: textblock
33478 #: ../src/guestfs.pod:559
33479 msgid ""
33480 "Add all disks belonging to the unknown virtual machine and call "
33481 "L</guestfs_launch> in the usual way."
33482 msgstr ""
33483
33484 #. type: textblock
33485 #: ../src/guestfs.pod:562
33486 msgid ""
33487 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
33488 "and certain heuristics, and returns a list of operating systems that were "
33489 "found.  An empty list means none were found.  A single element is the root "
33490 "filesystem of the operating system.  For dual- or multi-boot guests, "
33491 "multiple roots can be returned, each one corresponding to a separate "
33492 "operating system.  (Multi-boot virtual machines are extremely rare in the "
33493 "world of virtualization, but since this scenario can happen, we have built "
33494 "libguestfs to deal with it.)"
33495 msgstr ""
33496
33497 #. type: textblock
33498 #: ../src/guestfs.pod:571
33499 msgid ""
33500 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
33501 "to get additional details about that operating system.  For example, call "
33502 "L</guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
33503 "Windows and Linux-based operating systems respectively."
33504 msgstr ""
33505
33506 #. type: textblock
33507 #: ../src/guestfs.pod:577
33508 msgid ""
33509 "Un*x-like and Linux-based operating systems usually consist of several "
33510 "filesystems which are mounted at boot time (for example, a separate boot "
33511 "partition mounted on C</boot>).  The inspection rules are able to detect how "
33512 "filesystems correspond to mount points.  Call "
33513 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
33514 "hash table like this example:"
33515 msgstr ""
33516
33517 #. type: verbatim
33518 #: ../src/guestfs.pod:584
33519 #, no-wrap
33520 msgid ""
33521 " /boot => /dev/sda1\n"
33522 " /     => /dev/vg_guest/lv_root\n"
33523 " /usr  => /dev/vg_guest/lv_usr\n"
33524 "\n"
33525 msgstr ""
33526
33527 #. type: textblock
33528 #: ../src/guestfs.pod:588
33529 msgid ""
33530 "The caller can then make calls to L</guestfs_mount_options> to mount the "
33531 "filesystems as suggested."
33532 msgstr ""
33533
33534 #. type: textblock
33535 #: ../src/guestfs.pod:591
33536 msgid ""
33537 "Be careful to mount filesystems in the right order (eg. C</> before "
33538 "C</usr>).  Sorting the keys of the hash by length, shortest first, should "
33539 "work."
33540 msgstr ""
33541
33542 #. type: textblock
33543 #: ../src/guestfs.pod:595
33544 msgid ""
33545 "Inspection currently only works for some common operating systems.  "
33546 "Contributors are welcome to send patches for other operating systems that we "
33547 "currently cannot detect."
33548 msgstr ""
33549
33550 #. type: textblock
33551 #: ../src/guestfs.pod:599
33552 msgid ""
33553 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
33554 "for more details.  The L</guestfs_inspect_os> function just ignores any "
33555 "encrypted devices."
33556 msgstr ""
33557
33558 #. type: textblock
33559 #: ../src/guestfs.pod:603
33560 msgid ""
33561 "A note on the implementation: The call L</guestfs_inspect_os> performs "
33562 "inspection and caches the results in the guest handle.  Subsequent calls to "
33563 "C<guestfs_inspect_get_*> return this cached information, but I<do not> "
33564 "re-read the disks.  If you change the content of the guest disks, you can "
33565 "redo inspection by calling L</guestfs_inspect_os> again.  "
33566 "(L</guestfs_inspect_list_applications> works a little differently from the "
33567 "other calls and does read the disks.  See documentation for that function "
33568 "for details)."
33569 msgstr ""
33570
33571 #. type: =head3
33572 #: ../src/guestfs.pod:612
33573 msgid "INSPECTING INSTALL DISKS"
33574 msgstr ""
33575
33576 #. type: textblock
33577 #: ../src/guestfs.pod:614
33578 msgid ""
33579 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
33580 "CDs and more."
33581 msgstr ""
33582
33583 #. type: textblock
33584 #: ../src/guestfs.pod:617
33585 msgid ""
33586 "Call L</guestfs_inspect_get_format> to return the format of the operating "
33587 "system, which currently can be C<installed> (a regular operating system) or "
33588 "C<installer> (some sort of install disk)."
33589 msgstr ""
33590
33591 #. type: textblock
33592 #: ../src/guestfs.pod:621
33593 msgid ""
33594 "Further information is available about the operating system that can be "
33595 "installed using the regular inspection APIs like "
33596 "L</guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> "
33597 "etc."
33598 msgstr ""
33599
33600 #. type: textblock
33601 #: ../src/guestfs.pod:626
33602 msgid ""
33603 "Some additional information specific to installer disks is also available "
33604 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and "
33605 "L</guestfs_inspect_is_multipart> calls."
33606 msgstr ""
33607
33608 #. type: =head2
33609 #: ../src/guestfs.pod:631
33610 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
33611 msgstr ""
33612
33613 #. type: textblock
33614 #: ../src/guestfs.pod:633
33615 msgid ""
33616 "Libguestfs can mount NTFS partitions.  It does this using the "
33617 "L<http://www.ntfs-3g.org/> driver."
33618 msgstr ""
33619
33620 #. type: =head3
33621 #: ../src/guestfs.pod:636
33622 msgid "DRIVE LETTERS AND PATHS"
33623 msgstr ""
33624
33625 #. type: textblock
33626 #: ../src/guestfs.pod:638
33627 msgid ""
33628 "DOS and Windows still use drive letters, and the filesystems are always "
33629 "treated as case insensitive by Windows itself, and therefore you might find "
33630 "a Windows configuration file referring to a path like "
33631 "C<c:\\windows\\system32>.  When the filesystem is mounted in libguestfs, "
33632 "that directory might be referred to as C</WINDOWS/System32>."
33633 msgstr ""
33634
33635 #. type: textblock
33636 #: ../src/guestfs.pod:644
33637 msgid ""
33638 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
33639 "L</guestfs_inspect_get_drive_mappings>)"
33640 msgstr ""
33641
33642 #. type: textblock
33643 #: ../src/guestfs.pod:647
33644 msgid ""
33645 "Dealing with separator characters (backslash vs forward slash) is outside "
33646 "the scope of libguestfs, but usually a simple character replacement will "
33647 "work."
33648 msgstr ""
33649
33650 #. type: textblock
33651 #: ../src/guestfs.pod:651
33652 msgid ""
33653 "To resolve the case insensitivity of paths, call "
33654 "L</guestfs_case_sensitive_path>."
33655 msgstr ""
33656
33657 #. type: =head3
33658 #: ../src/guestfs.pod:654
33659 msgid "ACCESSING THE WINDOWS REGISTRY"
33660 msgstr ""
33661
33662 #. type: textblock
33663 #: ../src/guestfs.pod:656
33664 msgid ""
33665 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
33666 "files, through the library C<hivex> which is part of the libguestfs project "
33667 "although ships as a separate tarball.  You have to locate and download the "
33668 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
33669 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and "
33670 "L<virt-win-reg(1)> for more help on this issue."
33671 msgstr ""
33672
33673 #. type: =head3
33674 #: ../src/guestfs.pod:664
33675 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
33676 msgstr ""
33677
33678 #. type: textblock
33679 #: ../src/guestfs.pod:666
33680 msgid ""
33681 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
33682 "provide something which looks like a Linux symlink.  The way it tries to do "
33683 "the rewriting is described here:"
33684 msgstr ""
33685
33686 #. type: textblock
33687 #: ../src/guestfs.pod:670
33688 msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-symbolic-links/>"
33689 msgstr ""
33690
33691 #. type: textblock
33692 #: ../src/guestfs.pod:672
33693 msgid ""
33694 "The essential problem is that ntfs-3g simply does not have enough "
33695 "information to do a correct job.  NTFS links can contain drive letters and "
33696 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
33697 "It is almost certainly the case that libguestfs callers should ignore what "
33698 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
33699 msgstr ""
33700
33701 #. type: textblock
33702 #: ../src/guestfs.pod:679
33703 msgid ""
33704 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use "
33705 "L</guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
33706 "attribute, and read the raw reparse data from that (you can find the format "
33707 "documented in various places around the web)."
33708 msgstr ""
33709
33710 #. type: =head3
33711 #: ../src/guestfs.pod:684
33712 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
33713 msgstr ""
33714
33715 #. type: textblock
33716 #: ../src/guestfs.pod:686
33717 msgid ""
33718 "There are other useful extended attributes that can be read from ntfs-3g "
33719 "filesystems (using L</guestfs_getxattr>).  See:"
33720 msgstr ""
33721
33722 #. type: textblock
33723 #: ../src/guestfs.pod:689
33724 msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
33725 msgstr ""
33726
33727 #. type: =head2
33728 #: ../src/guestfs.pod:691
33729 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
33730 msgstr ""
33731
33732 #. type: textblock
33733 #: ../src/guestfs.pod:693
33734 msgid ""
33735 "Although we don't want to discourage you from using the C API, we will "
33736 "mention here that the same API is also available in other languages."
33737 msgstr ""
33738
33739 #. type: textblock
33740 #: ../src/guestfs.pod:696
33741 msgid ""
33742 "The API is broadly identical in all supported languages.  This means that "
33743 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
33744 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
33745 "OCaml.  In other words, a straightforward, predictable isomorphism between "
33746 "each language."
33747 msgstr ""
33748
33749 #. type: textblock
33750 #: ../src/guestfs.pod:702
33751 msgid ""
33752 "Error messages are automatically transformed into exceptions if the language "
33753 "supports it."
33754 msgstr ""
33755
33756 #. type: textblock
33757 #: ../src/guestfs.pod:705
33758 msgid ""
33759 "We don't try to \"object orientify\" parts of the API in OO languages, "
33760 "although contributors are welcome to write higher level APIs above what we "
33761 "provide in their favourite languages if they wish."
33762 msgstr ""
33763
33764 #. type: =item
33765 #: ../src/guestfs.pod:711
33766 msgid "B<C++>"
33767 msgstr ""
33768
33769 #. type: textblock
33770 #: ../src/guestfs.pod:713
33771 msgid ""
33772 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
33773 "identical to the C API.  C++ classes and exceptions are not used."
33774 msgstr ""
33775
33776 #. type: =item
33777 #: ../src/guestfs.pod:717
33778 msgid "B<C#>"
33779 msgstr ""
33780
33781 #. type: textblock
33782 #: ../src/guestfs.pod:719
33783 msgid ""
33784 "The C# bindings are highly experimental.  Please read the warnings at the "
33785 "top of C<csharp/Libguestfs.cs>."
33786 msgstr ""
33787
33788 #. type: =item
33789 #: ../src/guestfs.pod:722
33790 msgid "B<Erlang>"
33791 msgstr ""
33792
33793 #. type: textblock
33794 #: ../src/guestfs.pod:724
33795 msgid "See L<guestfs-erlang(3)>."
33796 msgstr ""
33797
33798 #. type: =item
33799 #: ../src/guestfs.pod:726
33800 msgid "B<Haskell>"
33801 msgstr ""
33802
33803 #. type: textblock
33804 #: ../src/guestfs.pod:728
33805 msgid ""
33806 "This is the only language binding that is working but incomplete.  Only "
33807 "calls which return simple integers have been bound in Haskell, and we are "
33808 "looking for help to complete this binding."
33809 msgstr ""
33810
33811 #. type: =item
33812 #: ../src/guestfs.pod:732
33813 msgid "B<Java>"
33814 msgstr ""
33815
33816 #. type: textblock
33817 #: ../src/guestfs.pod:734
33818 msgid ""
33819 "Full documentation is contained in the Javadoc which is distributed with "
33820 "libguestfs.  For examples, see L<guestfs-java(3)>."
33821 msgstr ""
33822
33823 #. type: =item
33824 #: ../src/guestfs.pod:737
33825 msgid "B<OCaml>"
33826 msgstr ""
33827
33828 #. type: textblock
33829 #: ../src/guestfs.pod:739
33830 msgid "See L<guestfs-ocaml(3)>."
33831 msgstr ""
33832
33833 #. type: =item
33834 #: ../src/guestfs.pod:741
33835 msgid "B<Perl>"
33836 msgstr ""
33837
33838 #. type: textblock
33839 #: ../src/guestfs.pod:743
33840 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
33841 msgstr ""
33842
33843 #. type: =item
33844 #: ../src/guestfs.pod:745
33845 msgid "B<PHP>"
33846 msgstr ""
33847
33848 #. type: textblock
33849 #: ../src/guestfs.pod:747
33850 msgid ""
33851 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
33852 "the php-libguestfs package for your distribution."
33853 msgstr ""
33854
33855 #. type: textblock
33856 #: ../src/guestfs.pod:750
33857 msgid "The PHP binding only works correctly on 64 bit machines."
33858 msgstr ""
33859
33860 #. type: =item
33861 #: ../src/guestfs.pod:752
33862 msgid "B<Python>"
33863 msgstr ""
33864
33865 #. type: textblock
33866 #: ../src/guestfs.pod:754
33867 msgid "See L<guestfs-python(3)>."
33868 msgstr ""
33869
33870 #. type: =item
33871 #: ../src/guestfs.pod:756
33872 msgid "B<Ruby>"
33873 msgstr ""
33874
33875 #. type: textblock
33876 #: ../src/guestfs.pod:758
33877 msgid "See L<guestfs-ruby(3)>."
33878 msgstr ""
33879
33880 #. type: =item
33881 #: ../src/guestfs.pod:760
33882 msgid "B<shell scripts>"
33883 msgstr ""
33884
33885 #. type: textblock
33886 #: ../src/guestfs.pod:762
33887 msgid "See L<guestfish(1)>."
33888 msgstr ""
33889
33890 #. type: =head2
33891 #: ../src/guestfs.pod:766
33892 msgid "LIBGUESTFS GOTCHAS"
33893 msgstr ""
33894
33895 #. type: textblock
33896 #: ../src/guestfs.pod:768
33897 msgid ""
33898 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
33899 "system [...] that works in the way it is documented but is counterintuitive "
33900 "and almost invites mistakes.\""
33901 msgstr ""
33902
33903 #. type: textblock
33904 #: ../src/guestfs.pod:772
33905 msgid ""
33906 "Since we developed libguestfs and the associated tools, there are several "
33907 "things we would have designed differently, but are now stuck with for "
33908 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
33909 "release, you can expect these to change.  Beware of them."
33910 msgstr ""
33911
33912 #. type: =item
33913 #: ../src/guestfs.pod:780
33914 msgid "Autosync / forgetting to sync."
33915 msgstr ""
33916
33917 #. type: textblock
33918 #: ../src/guestfs.pod:782
33919 msgid ""
33920 "I<Update:> Autosync is enabled by default for all API users starting from "
33921 "libguestfs 1.5.24.  This section only applies to older versions."
33922 msgstr ""
33923
33924 #. type: textblock
33925 #: ../src/guestfs.pod:785
33926 msgid ""
33927 "When modifying a filesystem from C or another language, you B<must> unmount "
33928 "all filesystems and call L</guestfs_sync> explicitly before you close the "
33929 "libguestfs handle.  You can also call:"
33930 msgstr ""
33931
33932 #. type: verbatim
33933 #: ../src/guestfs.pod:789
33934 #, no-wrap
33935 msgid ""
33936 " guestfs_set_autosync (g, 1);\n"
33937 "\n"
33938 msgstr ""
33939
33940 #. type: textblock
33941 #: ../src/guestfs.pod:791
33942 msgid ""
33943 "to have the unmount/sync done automatically for you when the handle 'g' is "
33944 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> "
33945 "q.v.)"
33946 msgstr ""
33947
33948 #. type: textblock
33949 #: ../src/guestfs.pod:795
33950 msgid ""
33951 "If you forget to do this, then it is entirely possible that your changes "
33952 "won't be written out, or will be partially written, or (very rarely) that "
33953 "you'll get disk corruption."
33954 msgstr ""
33955
33956 #. type: textblock
33957 #: ../src/guestfs.pod:799
33958 msgid ""
33959 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
33960 "guestfish scripts that forget to sync will work just fine, which can make "
33961 "this very puzzling if you are trying to debug a problem."
33962 msgstr ""
33963
33964 #. type: =item
33965 #: ../src/guestfs.pod:803
33966 msgid "Mount option C<-o sync> should not be the default."
33967 msgstr ""
33968
33969 #. type: textblock
33970 #: ../src/guestfs.pod:805
33971 msgid ""
33972 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
33973 "libguestfs 1.13.16.  This section only applies to older versions."
33974 msgstr ""
33975
33976 #. type: textblock
33977 #: ../src/guestfs.pod:808
33978 msgid ""
33979 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
33980 "However C<-o sync> does not add any reliability benefit, but does have a "
33981 "very large performance impact."
33982 msgstr ""
33983
33984 #. type: textblock
33985 #: ../src/guestfs.pod:812
33986 msgid ""
33987 "The work around is to use L</guestfs_mount_options> and set the mount "
33988 "options that you actually want to use."
33989 msgstr ""
33990
33991 #. type: =item
33992 #: ../src/guestfs.pod:815
33993 msgid "Read-only should be the default."
33994 msgstr ""
33995
33996 #. type: textblock
33997 #: ../src/guestfs.pod:817
33998 msgid ""
33999 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
34000 "specify I<--rw> if you want to make changes to the image."
34001 msgstr ""
34002
34003 #. type: textblock
34004 #: ../src/guestfs.pod:820
34005 msgid "This would reduce the potential to corrupt live VM images."
34006 msgstr ""
34007
34008 #. type: textblock
34009 #: ../src/guestfs.pod:822
34010 msgid ""
34011 "Note that many filesystems change the disk when you just mount and unmount, "
34012 "even if you didn't perform any writes.  You need to use "
34013 "L</guestfs_add_drive_ro> to guarantee that the disk is not changed."
34014 msgstr ""
34015
34016 #. type: =item
34017 #: ../src/guestfs.pod:826
34018 msgid "guestfish command line is hard to use."
34019 msgstr ""
34020
34021 #. type: textblock
34022 #: ../src/guestfs.pod:828
34023 msgid ""
34024 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
34025 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
34026 "exist, so it fails.  In earlier versions of guestfish the error message was "
34027 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
34028 "we should have used C<guestfish -c command> to run commands."
34029 msgstr ""
34030
34031 #. type: =item
34032 #: ../src/guestfs.pod:835
34033 msgid "guestfish megabyte modifiers don't work right on all commands"
34034 msgstr ""
34035
34036 #. type: textblock
34037 #: ../src/guestfs.pod:837
34038 msgid ""
34039 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
34040 "other modifiers).  What guestfish actually does is to multiply the number "
34041 "part by the modifier part and pass the result to the C API.  However this "
34042 "doesn't work for a few APIs which aren't expecting bytes, but are already "
34043 "expecting some other unit (eg. megabytes)."
34044 msgstr ""
34045
34046 #. type: textblock
34047 #: ../src/guestfs.pod:844
34048 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
34049 msgstr ""
34050
34051 #. type: verbatim
34052 #: ../src/guestfs.pod:846
34053 #, no-wrap
34054 msgid ""
34055 " lvcreate LV VG 100M\n"
34056 "\n"
34057 msgstr ""
34058
34059 #. type: textblock
34060 #: ../src/guestfs.pod:848
34061 msgid ""
34062 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
34063 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
34064 "megabytes * megabytes) logical volume.  The error message you get from this "
34065 "is also a little obscure."
34066 msgstr ""
34067
34068 #. type: textblock
34069 #: ../src/guestfs.pod:853
34070 msgid ""
34071 "This could be fixed in the generator by specially marking parameters and "
34072 "return values which take bytes or other units."
34073 msgstr ""
34074
34075 #. type: =item
34076 #: ../src/guestfs.pod:856
34077 msgid "Ambiguity between devices and paths"
34078 msgstr ""
34079
34080 #. type: textblock
34081 #: ../src/guestfs.pod:858
34082 msgid ""
34083 "There is a subtle ambiguity in the API between a device name "
34084 "(eg. C</dev/sdb2>) and a similar pathname.  A file might just happen to be "
34085 "called C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
34086 msgstr ""
34087
34088 #. type: textblock
34089 #: ../src/guestfs.pod:863
34090 msgid ""
34091 "In the current API we usually resolve this ambiguity by having two separate "
34092 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
34093 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
34094 "detecting if the path supplied begins with C</dev/>."
34095 msgstr ""
34096
34097 #. type: textblock
34098 #: ../src/guestfs.pod:869
34099 msgid ""
34100 "To avoid both the ambiguity and the need to duplicate some calls, we could "
34101 "make paths/devices into structured names.  One way to do this would be to "
34102 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
34103 "aspect of grub.  Another way would be to use a structured type, equivalent "
34104 "to this OCaml type:"
34105 msgstr ""
34106
34107 #. type: verbatim
34108 #: ../src/guestfs.pod:875
34109 #, no-wrap
34110 msgid ""
34111 " type path = Path of string | Device of int | Partition of int * int\n"
34112 "\n"
34113 msgstr ""
34114
34115 #. type: textblock
34116 #: ../src/guestfs.pod:877
34117 msgid "which would allow you to pass arguments like:"
34118 msgstr ""
34119
34120 #. type: verbatim
34121 #: ../src/guestfs.pod:879
34122 #, no-wrap
34123 msgid ""
34124 " Path \"/foo/bar\"\n"
34125 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
34126 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
34127 " Path \"/dev/sdb2\"    (* not a device *)\n"
34128 "\n"
34129 msgstr ""
34130
34131 #. type: textblock
34132 #: ../src/guestfs.pod:884
34133 msgid ""
34134 "As you can see there are still problems to resolve even with this "
34135 "representation.  Also consider how it might work in guestfish."
34136 msgstr ""
34137
34138 #. type: =head2
34139 #: ../src/guestfs.pod:889
34140 msgid "KEYS AND PASSPHRASES"
34141 msgstr ""
34142
34143 #. type: textblock
34144 #: ../src/guestfs.pod:891
34145 msgid ""
34146 "Certain libguestfs calls take a parameter that contains sensitive key "
34147 "material, passed in as a C string."
34148 msgstr ""
34149
34150 #. type: textblock
34151 #: ../src/guestfs.pod:894
34152 msgid ""
34153 "In the future we would hope to change the libguestfs implementation so that "
34154 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
34155 "swap.  However this is I<not> done at the moment, because of the complexity "
34156 "of such an implementation."
34157 msgstr ""
34158
34159 #. type: textblock
34160 #: ../src/guestfs.pod:899
34161 msgid ""
34162 "Therefore you should be aware that any key parameter you pass to libguestfs "
34163 "might end up being written out to the swap partition.  If this is a concern, "
34164 "scrub the swap partition or don't use libguestfs on encrypted devices."
34165 msgstr ""
34166
34167 #. type: =head2
34168 #: ../src/guestfs.pod:904
34169 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
34170 msgstr ""
34171
34172 #. type: textblock
34173 #: ../src/guestfs.pod:906
34174 msgid ""
34175 "All high-level libguestfs actions are synchronous.  If you want to use "
34176 "libguestfs asynchronously then you must create a thread."
34177 msgstr ""
34178
34179 #. type: textblock
34180 #: ../src/guestfs.pod:909
34181 msgid ""
34182 "Only use the handle from a single thread.  Either use the handle exclusively "
34183 "from one thread, or provide your own mutex so that two threads cannot issue "
34184 "calls on the same handle at the same time."
34185 msgstr ""
34186
34187 #. type: textblock
34188 #: ../src/guestfs.pod:913
34189 msgid ""
34190 "See the graphical program guestfs-browser for one possible architecture for "
34191 "multithreaded programs using libvirt and libguestfs."
34192 msgstr ""
34193
34194 #. type: =head2
34195 #: ../src/guestfs.pod:916
34196 msgid "PATH"
34197 msgstr ""
34198
34199 #. type: textblock
34200 #: ../src/guestfs.pod:918
34201 msgid ""
34202 "Libguestfs needs a supermin appliance, which it finds by looking along an "
34203 "internal path."
34204 msgstr ""
34205
34206 #. type: textblock
34207 #: ../src/guestfs.pod:921
34208 msgid ""
34209 "By default it looks for these in the directory C<$libdir/guestfs> "
34210 "(eg. C</usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
34211 msgstr ""
34212
34213 #. type: textblock
34214 #: ../src/guestfs.pod:924
34215 msgid ""
34216 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
34217 "to change the directories that libguestfs will search in.  The value is a "
34218 "colon-separated list of paths.  The current directory is I<not> searched "
34219 "unless the path contains an empty element or C<.>.  For example "
34220 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
34221 "then C</usr/lib/guestfs>."
34222 msgstr ""
34223
34224 #. type: =head2
34225 #: ../src/guestfs.pod:931
34226 msgid "QEMU WRAPPERS"
34227 msgstr ""
34228
34229 #. type: textblock
34230 #: ../src/guestfs.pod:933
34231 msgid ""
34232 "If you want to compile your own qemu, run qemu from a non-standard location, "
34233 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
34234 "around qemu."
34235 msgstr ""
34236
34237 #. type: textblock
34238 #: ../src/guestfs.pod:937
34239 msgid ""
34240 "There is one important rule to remember: you I<must C<exec qemu>> as the "
34241 "last command in the shell script (so that qemu replaces the shell and "
34242 "becomes the direct child of the libguestfs-using program).  If you don't do "
34243 "this, then the qemu process won't be cleaned up correctly."
34244 msgstr ""
34245
34246 #. type: textblock
34247 #: ../src/guestfs.pod:942
34248 msgid ""
34249 "Here is an example of a wrapper, where I have built my own copy of qemu from "
34250 "source:"
34251 msgstr ""
34252
34253 #. type: verbatim
34254 #: ../src/guestfs.pod:945
34255 #, no-wrap
34256 msgid ""
34257 " #!/bin/sh -\n"
34258 " qemudir=/home/rjones/d/qemu\n"
34259 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios "
34260 "\"$@\"\n"
34261 "\n"
34262 msgstr ""
34263
34264 #. type: textblock
34265 #: ../src/guestfs.pod:949
34266 msgid ""
34267 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
34268 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
34269 "example:"
34270 msgstr ""
34271
34272 #. type: verbatim
34273 #: ../src/guestfs.pod:953
34274 #, no-wrap
34275 msgid ""
34276 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
34277 "\n"
34278 msgstr ""
34279
34280 #. type: textblock
34281 #: ../src/guestfs.pod:955
34282 msgid ""
34283 "Note that libguestfs also calls qemu with the -help and -version options in "
34284 "order to determine features."
34285 msgstr ""
34286
34287 #. type: textblock
34288 #: ../src/guestfs.pod:958
34289 msgid ""
34290 "Wrappers can also be used to edit the options passed to qemu.  In the "
34291 "following example, the C<-machine ...> option (C<-machine> and the following "
34292 "argument) are removed from the command line and replaced with C<-machine "
34293 "pc,accel=tcg>.  The while loop iterates over the options until it finds the "
34294 "right one to remove, putting the remaining options into the C<args> array."
34295 msgstr ""
34296
34297 #. type: verbatim
34298 #: ../src/guestfs.pod:967
34299 #, no-wrap
34300 msgid ""
34301 " i=0\n"
34302 " while [ $# -gt 0 ]; do\n"
34303 "     case \"$1\" in\n"
34304 "     -machine)\n"
34305 "         shift 2;;\n"
34306 "     *)\n"
34307 "         args[i]=\"$1\"\n"
34308 "         (( i++ ))\n"
34309 "         shift ;;\n"
34310 "     esac\n"
34311 " done\n"
34312 " \n"
34313 msgstr ""
34314
34315 #. type: verbatim
34316 #: ../src/guestfs.pod:979
34317 #, no-wrap
34318 msgid ""
34319 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
34320 "\n"
34321 msgstr ""
34322
34323 #. type: =head2
34324 #: ../src/guestfs.pod:981
34325 msgid "ATTACHING TO RUNNING DAEMONS"
34326 msgstr ""
34327
34328 #. type: textblock
34329 #: ../src/guestfs.pod:983
34330 msgid ""
34331 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
34332 "babies.  Use with caution."
34333 msgstr ""
34334
34335 #. type: textblock
34336 #: ../src/guestfs.pod:986
34337 msgid ""
34338 "I<Note (2):> This section explains how to attach to a running daemon from a "
34339 "low level perspective.  For most users, simply using virt tools such as "
34340 "L<guestfish(1)> with the I<--live> option will \"just work\"."
34341 msgstr ""
34342
34343 #. type: =head3
34344 #: ../src/guestfs.pod:990
34345 msgid "Using guestfs_set_attach_method"
34346 msgstr ""
34347
34348 #. type: textblock
34349 #: ../src/guestfs.pod:992
34350 msgid ""
34351 "By calling L</guestfs_set_attach_method> you can change how the library "
34352 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read "
34353 "L</ARCHITECTURE> for some background)."
34354 msgstr ""
34355
34356 #. type: textblock
34357 #: ../src/guestfs.pod:996
34358 msgid ""
34359 "The normal attach method is C<appliance>, where a small appliance is created "
34360 "containing the daemon, and then the library connects to this."
34361 msgstr ""
34362
34363 #. type: textblock
34364 #: ../src/guestfs.pod:999
34365 msgid ""
34366 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
34367 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
34368 "daemon over the Unix domain socket."
34369 msgstr ""
34370
34371 #. type: textblock
34372 #: ../src/guestfs.pod:1003
34373 msgid ""
34374 "The normal use for this is to connect to a running virtual machine that "
34375 "contains a C<guestfsd> daemon, and send commands so you can read and write "
34376 "files inside the live virtual machine."
34377 msgstr ""
34378
34379 #. type: =head3
34380 #: ../src/guestfs.pod:1007
34381 msgid "Using guestfs_add_domain with live flag"
34382 msgstr ""
34383
34384 #. type: textblock
34385 #: ../src/guestfs.pod:1009
34386 msgid ""
34387 "L</guestfs_add_domain> provides some help for getting the correct attach "
34388 "method.  If you pass the C<live> option to this function, then (if the "
34389 "virtual machine is running) it will examine the libvirt XML looking for a "
34390 "virtio-serial channel to connect to:"
34391 msgstr ""
34392
34393 #. type: verbatim
34394 #: ../src/guestfs.pod:1015
34395 #, no-wrap
34396 msgid ""
34397 " <domain>\n"
34398 "   ...\n"
34399 "   <devices>\n"
34400 "     ...\n"
34401 "     <channel type='unix'>\n"
34402 "       <source mode='bind' path='/path/to/socket'/>\n"
34403 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
34404 "     </channel>\n"
34405 "     ...\n"
34406 "   </devices>\n"
34407 " </domain>\n"
34408 "\n"
34409 msgstr ""
34410
34411 #. type: textblock
34412 #: ../src/guestfs.pod:1027
34413 msgid ""
34414 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
34415 "method to C<unix:/path/to/socket>."
34416 msgstr ""
34417
34418 #. type: textblock
34419 #: ../src/guestfs.pod:1030
34420 msgid ""
34421 "Some of the libguestfs tools (including guestfish) support a I<--live> "
34422 "option which is passed through to L</guestfs_add_domain> thus allowing you "
34423 "to attach to and modify live virtual machines."
34424 msgstr ""
34425
34426 #. type: textblock
34427 #: ../src/guestfs.pod:1034
34428 msgid ""
34429 "The virtual machine needs to have been set up beforehand so that it has the "
34430 "virtio-serial channel and so that guestfsd is running inside it."
34431 msgstr ""
34432
34433 #. type: =head2
34434 #: ../src/guestfs.pod:1038
34435 msgid "ABI GUARANTEE"
34436 msgstr ""
34437
34438 #. type: textblock
34439 #: ../src/guestfs.pod:1040
34440 msgid ""
34441 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
34442 "actions as outlined in this section.  Although we will deprecate some "
34443 "actions, for example if they get replaced by newer calls, we will keep the "
34444 "old actions forever.  This allows you the developer to program in confidence "
34445 "against the libguestfs API."
34446 msgstr ""
34447
34448 #. type: =head2
34449 #: ../src/guestfs.pod:1046
34450 msgid "BLOCK DEVICE NAMING"
34451 msgstr ""
34452
34453 #. type: textblock
34454 #: ../src/guestfs.pod:1048
34455 msgid ""
34456 "In the kernel there is now quite a profusion of schemata for naming block "
34457 "devices (in this context, by I<block device> I mean a physical or virtual "
34458 "hard drive).  The original Linux IDE driver used names starting with "
34459 "C</dev/hd*>.  SCSI devices have historically used a different naming scheme, "
34460 "C</dev/sd*>.  When the Linux kernel I<libata> driver became a popular "
34461 "replacement for the old IDE driver (particularly for SATA devices) those "
34462 "devices also used the C</dev/sd*> scheme.  Additionally we now have virtual "
34463 "machines with paravirtualized drivers.  This has created several different "
34464 "naming systems, such as C</dev/vd*> for virtio disks and C</dev/xvd*> for "
34465 "Xen PV disks."
34466 msgstr ""
34467
34468 #. type: textblock
34469 #: ../src/guestfs.pod:1060
34470 msgid ""
34471 "As discussed above, libguestfs uses a qemu appliance running an embedded "
34472 "Linux kernel to access block devices.  We can run a variety of appliances "
34473 "based on a variety of Linux kernels."
34474 msgstr ""
34475
34476 #. type: textblock
34477 #: ../src/guestfs.pod:1064
34478 msgid ""
34479 "This causes a problem for libguestfs because many API calls use device or "
34480 "partition names.  Working scripts and the recipe (example) scripts that we "
34481 "make available over the internet could fail if the naming scheme changes."
34482 msgstr ""
34483
34484 #. type: textblock
34485 #: ../src/guestfs.pod:1069
34486 msgid ""
34487 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
34488 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
34489 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
34490 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
34491 msgstr ""
34492
34493 #. type: textblock
34494 #: ../src/guestfs.pod:1075
34495 msgid ""
34496 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
34497 "L</guestfs_list_partitions> and similar calls return the true names of the "
34498 "devices and partitions as known to the appliance."
34499 msgstr ""
34500
34501 #. type: =head3
34502 #: ../src/guestfs.pod:1080
34503 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
34504 msgstr ""
34505
34506 #. type: textblock
34507 #: ../src/guestfs.pod:1082
34508 msgid ""
34509 "Usually this translation is transparent.  However in some (very rare)  cases "
34510 "you may need to know the exact algorithm.  Such cases include where you use "
34511 "L</guestfs_config> to add a mixture of virtio and IDE devices to the "
34512 "qemu-based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> "
34513 "devices."
34514 msgstr ""
34515
34516 #. type: textblock
34517 #: ../src/guestfs.pod:1088
34518 msgid ""
34519 "The algorithm is applied only to I<parameters> which are known to be either "
34520 "device or partition names.  Return values from functions such as "
34521 "L</guestfs_list_devices> are never changed."
34522 msgstr ""
34523
34524 #. type: textblock
34525 #: ../src/guestfs.pod:1096
34526 msgid "Is the string a parameter which is a device or partition name?"
34527 msgstr ""
34528
34529 #. type: textblock
34530 #: ../src/guestfs.pod:1100
34531 msgid "Does the string begin with C</dev/sd>?"
34532 msgstr ""
34533
34534 #. type: textblock
34535 #: ../src/guestfs.pod:1104
34536 msgid ""
34537 "Does the named device exist? If so, we use that device.  However if I<not> "
34538 "then we continue with this algorithm."
34539 msgstr ""
34540
34541 #. type: textblock
34542 #: ../src/guestfs.pod:1109
34543 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
34544 msgstr ""
34545
34546 #. type: textblock
34547 #: ../src/guestfs.pod:1111
34548 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
34549 msgstr ""
34550
34551 #. type: textblock
34552 #: ../src/guestfs.pod:1113
34553 msgid "If that named device exists, use it.  If not, continue."
34554 msgstr ""
34555
34556 #. type: textblock
34557 #: ../src/guestfs.pod:1117
34558 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
34559 msgstr ""
34560
34561 #. type: textblock
34562 #: ../src/guestfs.pod:1119
34563 msgid "If that named device exists, use it.  If not, return an error."
34564 msgstr ""
34565
34566 #. type: =head3
34567 #: ../src/guestfs.pod:1123
34568 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
34569 msgstr ""
34570
34571 #. type: textblock
34572 #: ../src/guestfs.pod:1125
34573 msgid ""
34574 "Although the standard naming scheme and automatic translation is useful for "
34575 "simple programs and guestfish scripts, for larger programs it is best not to "
34576 "rely on this mechanism."
34577 msgstr ""
34578
34579 #. type: textblock
34580 #: ../src/guestfs.pod:1129
34581 msgid ""
34582 "Where possible for maximum future portability programs using libguestfs "
34583 "should use these future-proof techniques:"
34584 msgstr ""
34585
34586 #. type: textblock
34587 #: ../src/guestfs.pod:1136
34588 msgid ""
34589 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
34590 "device names, and then use those names directly."
34591 msgstr ""
34592
34593 #. type: textblock
34594 #: ../src/guestfs.pod:1139
34595 msgid "Since those device names exist by definition, they will never be translated."
34596 msgstr ""
34597
34598 #. type: textblock
34599 #: ../src/guestfs.pod:1144
34600 msgid ""
34601 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
34602 "filesystem labels."
34603 msgstr ""
34604
34605 #. type: textblock
34606 #: ../src/guestfs.pod:1151
34607 msgid ""
34608 "This section discusses security implications of using libguestfs, "
34609 "particularly with untrusted or malicious guests or disk images."
34610 msgstr ""
34611
34612 #. type: =head2
34613 #: ../src/guestfs.pod:1154
34614 msgid "GENERAL SECURITY CONSIDERATIONS"
34615 msgstr ""
34616
34617 #. type: textblock
34618 #: ../src/guestfs.pod:1156
34619 msgid ""
34620 "Be careful with any files or data that you download from a guest (by "
34621 "\"download\" we mean not just the L</guestfs_download> command but any "
34622 "command that reads files, filenames, directories or anything else from a "
34623 "disk image).  An attacker could manipulate the data to fool your program "
34624 "into doing the wrong thing.  Consider cases such as:"
34625 msgstr ""
34626
34627 #. type: textblock
34628 #: ../src/guestfs.pod:1166
34629 msgid "the data (file etc) not being present"
34630 msgstr ""
34631
34632 #. type: textblock
34633 #: ../src/guestfs.pod:1170
34634 msgid "being present but empty"
34635 msgstr ""
34636
34637 #. type: textblock
34638 #: ../src/guestfs.pod:1174
34639 msgid "being much larger than normal"
34640 msgstr ""
34641
34642 #. type: textblock
34643 #: ../src/guestfs.pod:1178
34644 msgid "containing arbitrary 8 bit data"
34645 msgstr ""
34646
34647 #. type: textblock
34648 #: ../src/guestfs.pod:1182
34649 msgid "being in an unexpected character encoding"
34650 msgstr ""
34651
34652 #. type: textblock
34653 #: ../src/guestfs.pod:1186
34654 msgid "containing homoglyphs."
34655 msgstr ""
34656
34657 #. type: =head2
34658 #: ../src/guestfs.pod:1190
34659 msgid "SECURITY OF MOUNTING FILESYSTEMS"
34660 msgstr ""
34661
34662 #. type: textblock
34663 #: ../src/guestfs.pod:1192
34664 msgid ""
34665 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
34666 "(VFS) module can sometimes be escalated into exploits by deliberately "
34667 "creating a malicious, malformed filesystem.  These exploits are very severe "
34668 "for two reasons.  Firstly there are very many filesystem drivers in the "
34669 "kernel, and many of them are infrequently used and not much developer "
34670 "attention has been paid to the code.  Linux userspace helps potential "
34671 "crackers by detecting the filesystem type and automatically choosing the "
34672 "right VFS driver, even if that filesystem type is obscure or unexpected for "
34673 "the administrator.  Secondly, a kernel-level exploit is like a local root "
34674 "exploit (worse in some ways), giving immediate and total access to the "
34675 "system right down to the hardware level."
34676 msgstr ""
34677
34678 #. type: textblock
34679 #: ../src/guestfs.pod:1205
34680 msgid ""
34681 "That explains why you should never mount a filesystem from an untrusted "
34682 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
34683 "inside a qemu virtual machine, usually running as a non-root user.  The "
34684 "attacker would need to write a filesystem which first exploited the kernel, "
34685 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
34686 "the libguestfs protocol, and finally to be as serious as the host kernel "
34687 "exploit it would need to escalate its privileges to root.  This multi-step "
34688 "escalation, performed by a static piece of data, is thought to be extremely "
34689 "hard to do, although we never say 'never' about security issues."
34690 msgstr ""
34691
34692 #. type: textblock
34693 #: ../src/guestfs.pod:1216
34694 msgid ""
34695 "In any case callers can reduce the attack surface by forcing the filesystem "
34696 "type when mounting (use L</guestfs_mount_vfs>)."
34697 msgstr ""
34698
34699 #. type: =head2
34700 #: ../src/guestfs.pod:1219
34701 msgid "PROTOCOL SECURITY"
34702 msgstr ""
34703
34704 #. type: textblock
34705 #: ../src/guestfs.pod:1221
34706 msgid ""
34707 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
34708 "defined upper message size.  However a program that uses libguestfs must "
34709 "also take care - for example you can write a program that downloads a binary "
34710 "from a disk image and executes it locally, and no amount of protocol "
34711 "security will save you from the consequences."
34712 msgstr ""
34713
34714 #. type: =head2
34715 #: ../src/guestfs.pod:1227
34716 msgid "INSPECTION SECURITY"
34717 msgstr ""
34718
34719 #. type: textblock
34720 #: ../src/guestfs.pod:1229
34721 msgid ""
34722 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
34723 "directly from the guest, and these could contain any 8 bit data.  Callers "
34724 "should be careful to escape these before printing them to a structured file "
34725 "(for example, use HTML escaping if creating a web page)."
34726 msgstr ""
34727
34728 #. type: textblock
34729 #: ../src/guestfs.pod:1235
34730 msgid ""
34731 "Guest configuration may be altered in unusual ways by the administrator of "
34732 "the virtual machine, and may not reflect reality (particularly for untrusted "
34733 "or actively malicious guests).  For example we parse the hostname from "
34734 "configuration files like C</etc/sysconfig/network> that we find in the "
34735 "guest, but the guest administrator can easily manipulate these files to "
34736 "provide the wrong hostname."
34737 msgstr ""
34738
34739 #. type: textblock
34740 #: ../src/guestfs.pod:1243
34741 msgid ""
34742 "The inspection API parses guest configuration using two external libraries: "
34743 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
34744 "designed to be robust in the face of malicious data, although denial of "
34745 "service attacks are still possible, for example with oversized configuration "
34746 "files."
34747 msgstr ""
34748
34749 #. type: =head2
34750 #: ../src/guestfs.pod:1249
34751 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
34752 msgstr ""
34753
34754 #. type: textblock
34755 #: ../src/guestfs.pod:1251
34756 msgid ""
34757 "Be very cautious about running commands from the guest.  By running a "
34758 "command in the guest, you are giving CPU time to a binary that you do not "
34759 "control, under the same user account as the library, albeit wrapped in qemu "
34760 "virtualization.  More information and alternatives can be found in the "
34761 "section L</RUNNING COMMANDS>."
34762 msgstr ""
34763
34764 #. type: =head2
34765 #: ../src/guestfs.pod:1257
34766 msgid "CVE-2010-3851"
34767 msgstr ""
34768
34769 #. type: textblock
34770 #: ../src/guestfs.pod:1259
34771 msgid "https://bugzilla.redhat.com/642934"
34772 msgstr ""
34773
34774 #. type: textblock
34775 #: ../src/guestfs.pod:1261
34776 msgid ""
34777 "This security bug concerns the automatic disk format detection that qemu "
34778 "does on disk images."
34779 msgstr ""
34780
34781 #. type: textblock
34782 #: ../src/guestfs.pod:1264
34783 msgid ""
34784 "A raw disk image is just the raw bytes, there is no header.  Other disk "
34785 "images like qcow2 contain a special header.  Qemu deals with this by looking "
34786 "for one of the known headers, and if none is found then assuming the disk "
34787 "image must be raw."
34788 msgstr ""
34789
34790 #. type: textblock
34791 #: ../src/guestfs.pod:1269
34792 msgid ""
34793 "This allows a guest which has been given a raw disk image to write some "
34794 "other header.  At next boot (or when the disk image is accessed by "
34795 "libguestfs) qemu would do autodetection and think the disk image format was, "
34796 "say, qcow2 based on the header written by the guest."
34797 msgstr ""
34798
34799 #. type: textblock
34800 #: ../src/guestfs.pod:1274
34801 msgid ""
34802 "This in itself would not be a problem, but qcow2 offers many features, one "
34803 "of which is to allow a disk image to refer to another image (called the "
34804 "\"backing disk\").  It does this by placing the path to the backing disk "
34805 "into the qcow2 header.  This path is not validated and could point to any "
34806 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
34807 "\"holes\" in the qcow2 disk image, which of course is completely under the "
34808 "control of the attacker."
34809 msgstr ""
34810
34811 #. type: textblock
34812 #: ../src/guestfs.pod:1282
34813 msgid "In libguestfs this is rather hard to exploit except under two circumstances:"
34814 msgstr ""
34815
34816 #. type: textblock
34817 #: ../src/guestfs.pod:1289
34818 msgid "You have enabled the network or have opened the disk in write mode."
34819 msgstr ""
34820
34821 #. type: textblock
34822 #: ../src/guestfs.pod:1293
34823 msgid ""
34824 "You are also running untrusted code from the guest (see L</RUNNING "
34825 "COMMANDS>)."
34826 msgstr ""
34827
34828 #. type: textblock
34829 #: ../src/guestfs.pod:1298
34830 msgid ""
34831 "The way to avoid this is to specify the expected disk format when adding "
34832 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
34833 "should always do this if the disk is raw format, and it's a good idea for "
34834 "other cases too."
34835 msgstr ""
34836
34837 #. type: textblock
34838 #: ../src/guestfs.pod:1303
34839 msgid ""
34840 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
34841 "format is fetched from libvirt and passed through."
34842 msgstr ""
34843
34844 #. type: textblock
34845 #: ../src/guestfs.pod:1306
34846 msgid ""
34847 "For libguestfs tools, use the I<--format> command line parameter as "
34848 "appropriate."
34849 msgstr ""
34850
34851 #. type: =head1
34852 #: ../src/guestfs.pod:1309
34853 msgid "CONNECTION MANAGEMENT"
34854 msgstr ""
34855
34856 #. type: =head2
34857 #: ../src/guestfs.pod:1311
34858 msgid "guestfs_h *"
34859 msgstr ""
34860
34861 #. type: textblock
34862 #: ../src/guestfs.pod:1313
34863 msgid ""
34864 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
34865 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
34866 "handle and release all resources used."
34867 msgstr ""
34868
34869 #. type: textblock
34870 #: ../src/guestfs.pod:1317
34871 msgid ""
34872 "For information on using multiple handles and threads, see the section "
34873 "L</MULTIPLE HANDLES AND MULTIPLE THREADS> above."
34874 msgstr ""
34875
34876 #. type: =head2
34877 #: ../src/guestfs.pod:1320
34878 msgid "guestfs_create"
34879 msgstr ""
34880
34881 #. type: verbatim
34882 #: ../src/guestfs.pod:1322
34883 #, no-wrap
34884 msgid ""
34885 " guestfs_h *guestfs_create (void);\n"
34886 "\n"
34887 msgstr ""
34888
34889 #. type: textblock
34890 #: ../src/guestfs.pod:1324
34891 msgid "Create a connection handle."
34892 msgstr ""
34893
34894 #. type: textblock
34895 #: ../src/guestfs.pod:1326
34896 msgid ""
34897 "On success this returns a non-NULL pointer to a handle.  On error it returns "
34898 "NULL."
34899 msgstr ""
34900
34901 #. type: textblock
34902 #: ../src/guestfs.pod:1329
34903 msgid ""
34904 "You have to \"configure\" the handle after creating it.  This includes "
34905 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
34906 "handle at least once."
34907 msgstr ""
34908
34909 #. type: textblock
34910 #: ../src/guestfs.pod:1333
34911 msgid "After configuring the handle, you have to call L</guestfs_launch>."
34912 msgstr ""
34913
34914 #. type: textblock
34915 #: ../src/guestfs.pod:1335
34916 msgid ""
34917 "You may also want to configure error handling for the handle.  See the "
34918 "L</ERROR HANDLING> section below."
34919 msgstr ""
34920
34921 #. type: =head2
34922 #: ../src/guestfs.pod:1338
34923 msgid "guestfs_close"
34924 msgstr ""
34925
34926 #. type: verbatim
34927 #: ../src/guestfs.pod:1340
34928 #, no-wrap
34929 msgid ""
34930 " void guestfs_close (guestfs_h *g);\n"
34931 "\n"
34932 msgstr ""
34933
34934 #. type: textblock
34935 #: ../src/guestfs.pod:1342
34936 msgid "This closes the connection handle and frees up all resources used."
34937 msgstr ""
34938
34939 #. type: textblock
34940 #: ../src/guestfs.pod:1344
34941 msgid ""
34942 "If autosync was set on the handle and the handle was launched, then this "
34943 "implicitly calls various functions to unmount filesystems and sync the "
34944 "disk.  See L</guestfs_set_autosync> for more details."
34945 msgstr ""
34946
34947 #. type: textblock
34948 #: ../src/guestfs.pod:1348
34949 msgid "If a close callback was set on the handle, then it is called."
34950 msgstr ""
34951
34952 #. type: =head1
34953 #: ../src/guestfs.pod:1350
34954 msgid "ERROR HANDLING"
34955 msgstr ""
34956
34957 #. type: textblock
34958 #: ../src/guestfs.pod:1352
34959 msgid ""
34960 "API functions can return errors.  For example, almost all functions that "
34961 "return C<int> will return C<-1> to indicate an error."
34962 msgstr ""
34963
34964 #. type: textblock
34965 #: ../src/guestfs.pod:1355
34966 msgid ""
34967 "Additional information is available for errors: an error message string and "
34968 "optionally an error number (errno) if the thing that failed was a system "
34969 "call."
34970 msgstr ""
34971
34972 #. type: textblock
34973 #: ../src/guestfs.pod:1359
34974 msgid ""
34975 "You can get at the additional information about the last error on the handle "
34976 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
34977 "up an error handler with L</guestfs_set_error_handler>."
34978 msgstr ""
34979
34980 #. type: textblock
34981 #: ../src/guestfs.pod:1364
34982 msgid ""
34983 "When the handle is created, a default error handler is installed which "
34984 "prints the error message string to C<stderr>.  For small short-running "
34985 "command line programs it is sufficient to do:"
34986 msgstr ""
34987
34988 #. type: verbatim
34989 #: ../src/guestfs.pod:1368
34990 #, no-wrap
34991 msgid ""
34992 " if (guestfs_launch (g) == -1)\n"
34993 "   exit (EXIT_FAILURE);\n"
34994 "\n"
34995 msgstr ""
34996
34997 #. type: textblock
34998 #: ../src/guestfs.pod:1371
34999 msgid ""
35000 "since the default error handler will ensure that an error message has been "
35001 "printed to C<stderr> before the program exits."
35002 msgstr ""
35003
35004 #. type: textblock
35005 #: ../src/guestfs.pod:1374
35006 msgid ""
35007 "For other programs the caller will almost certainly want to install an "
35008 "alternate error handler or do error handling in-line like this:"
35009 msgstr ""
35010
35011 #. type: verbatim
35012 #: ../src/guestfs.pod:1377
35013 #, no-wrap
35014 msgid ""
35015 " /* This disables the default behaviour of printing errors\n"
35016 "    on stderr. */\n"
35017 " guestfs_set_error_handler (g, NULL, NULL);\n"
35018 " \n"
35019 msgstr ""
35020
35021 #. type: verbatim
35022 #: ../src/guestfs.pod:1381
35023 #, no-wrap
35024 msgid ""
35025 " if (guestfs_launch (g) == -1) {\n"
35026 "   /* Examine the error message and print it etc. */\n"
35027 "   char *msg = guestfs_last_error (g);\n"
35028 "   int errnum = guestfs_last_errno (g);\n"
35029 "   fprintf (stderr, \"%s\", msg);\n"
35030 "   if (errnum != 0)\n"
35031 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
35032 "   fprintf (stderr, \"\\n\");\n"
35033 "   /* ... */\n"
35034 " }\n"
35035 "\n"
35036 msgstr ""
35037
35038 #. type: textblock
35039 #: ../src/guestfs.pod:1392
35040 msgid ""
35041 "Out of memory errors are handled differently.  The default action is to call "
35042 "L<abort(3)>.  If this is undesirable, then you can set a handler using "
35043 "L</guestfs_set_out_of_memory_handler>."
35044 msgstr ""
35045
35046 #. type: textblock
35047 #: ../src/guestfs.pod:1396
35048 msgid ""
35049 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
35050 "because there is no handle if this happens there is no way to get additional "
35051 "error information.  However L</guestfs_create> is supposed to be a "
35052 "lightweight operation which can only fail because of insufficient memory (it "
35053 "returns NULL in this case)."
35054 msgstr ""
35055
35056 #. type: =head2
35057 #: ../src/guestfs.pod:1402
35058 msgid "guestfs_last_error"
35059 msgstr ""
35060
35061 #. type: verbatim
35062 #: ../src/guestfs.pod:1404
35063 #, no-wrap
35064 msgid ""
35065 " const char *guestfs_last_error (guestfs_h *g);\n"
35066 "\n"
35067 msgstr ""
35068
35069 #. type: textblock
35070 #: ../src/guestfs.pod:1406
35071 msgid ""
35072 "This returns the last error message that happened on C<g>.  If there has not "
35073 "been an error since the handle was created, then this returns C<NULL>."
35074 msgstr ""
35075
35076 #. type: textblock
35077 #: ../src/guestfs.pod:1410
35078 msgid ""
35079 "The lifetime of the returned string is until the next error occurs, or "
35080 "L</guestfs_close> is called."
35081 msgstr ""
35082
35083 #. type: =head2
35084 #: ../src/guestfs.pod:1413
35085 msgid "guestfs_last_errno"
35086 msgstr ""
35087
35088 #. type: verbatim
35089 #: ../src/guestfs.pod:1415
35090 #, no-wrap
35091 msgid ""
35092 " int guestfs_last_errno (guestfs_h *g);\n"
35093 "\n"
35094 msgstr ""
35095
35096 #. type: textblock
35097 #: ../src/guestfs.pod:1417
35098 msgid "This returns the last error number (errno) that happened on C<g>."
35099 msgstr ""
35100
35101 #. type: textblock
35102 #: ../src/guestfs.pod:1419
35103 msgid "If successful, an errno integer not equal to zero is returned."
35104 msgstr ""
35105
35106 #. type: textblock
35107 #: ../src/guestfs.pod:1421
35108 msgid "If no error, this returns 0.  This call can return 0 in three situations:"
35109 msgstr ""
35110
35111 #. type: textblock
35112 #: ../src/guestfs.pod:1428
35113 msgid "There has not been any error on the handle."
35114 msgstr ""
35115
35116 #. type: textblock
35117 #: ../src/guestfs.pod:1432
35118 msgid ""
35119 "There has been an error but the errno was meaningless.  This corresponds to "
35120 "the case where the error did not come from a failed system call, but for "
35121 "some other reason."
35122 msgstr ""
35123
35124 #. type: textblock
35125 #: ../src/guestfs.pod:1438
35126 msgid ""
35127 "There was an error from a failed system call, but for some reason the errno "
35128 "was not captured and returned.  This usually indicates a bug in libguestfs."
35129 msgstr ""
35130
35131 #. type: textblock
35132 #: ../src/guestfs.pod:1444
35133 msgid ""
35134 "Libguestfs tries to convert the errno from inside the applicance into a "
35135 "corresponding errno for the caller (not entirely trivial: the appliance "
35136 "might be running a completely different operating system from the library "
35137 "and error numbers are not standardized across Un*xen).  If this could not be "
35138 "done, then the error is translated to C<EINVAL>.  In practice this should "
35139 "only happen in very rare circumstances."
35140 msgstr ""
35141
35142 #. type: =head2
35143 #: ../src/guestfs.pod:1452
35144 msgid "guestfs_set_error_handler"
35145 msgstr ""
35146
35147 #. type: verbatim
35148 #: ../src/guestfs.pod:1454
35149 #, no-wrap
35150 msgid ""
35151 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
35152 "                                           void *opaque,\n"
35153 "                                           const char *msg);\n"
35154 " void guestfs_set_error_handler (guestfs_h *g,\n"
35155 "                                 guestfs_error_handler_cb cb,\n"
35156 "                                 void *opaque);\n"
35157 "\n"
35158 msgstr ""
35159
35160 #. type: textblock
35161 #: ../src/guestfs.pod:1461
35162 msgid ""
35163 "The callback C<cb> will be called if there is an error.  The parameters "
35164 "passed to the callback are an opaque data pointer and the error message "
35165 "string."
35166 msgstr ""
35167
35168 #. type: textblock
35169 #: ../src/guestfs.pod:1465
35170 msgid ""
35171 "C<errno> is not passed to the callback.  To get that the callback must call "
35172 "L</guestfs_last_errno>."
35173 msgstr ""
35174
35175 #. type: textblock
35176 #: ../src/guestfs.pod:1468
35177 msgid ""
35178 "Note that the message string C<msg> is freed as soon as the callback "
35179 "function returns, so if you want to stash it somewhere you must make your "
35180 "own copy."
35181 msgstr ""
35182
35183 #. type: textblock
35184 #: ../src/guestfs.pod:1472
35185 msgid "The default handler prints messages on C<stderr>."
35186 msgstr ""
35187
35188 #. type: textblock
35189 #: ../src/guestfs.pod:1474
35190 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
35191 msgstr ""
35192
35193 #. type: =head2
35194 #: ../src/guestfs.pod:1476
35195 msgid "guestfs_get_error_handler"
35196 msgstr ""
35197
35198 #. type: verbatim
35199 #: ../src/guestfs.pod:1478
35200 #, no-wrap
35201 msgid ""
35202 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
35203 "                                                     void **opaque_rtn);\n"
35204 "\n"
35205 msgstr ""
35206
35207 #. type: textblock
35208 #: ../src/guestfs.pod:1481
35209 msgid "Returns the current error handler callback."
35210 msgstr ""
35211
35212 #. type: =head2
35213 #: ../src/guestfs.pod:1483
35214 msgid "guestfs_set_out_of_memory_handler"
35215 msgstr ""
35216
35217 #. type: verbatim
35218 #: ../src/guestfs.pod:1485
35219 #, no-wrap
35220 msgid ""
35221 " typedef void (*guestfs_abort_cb) (void);\n"
35222 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
35223 "                                         guestfs_abort_cb);\n"
35224 "\n"
35225 msgstr ""
35226
35227 #. type: textblock
35228 #: ../src/guestfs.pod:1489
35229 msgid ""
35230 "The callback C<cb> will be called if there is an out of memory situation.  "
35231 "I<Note this callback must not return>."
35232 msgstr ""
35233
35234 #. type: textblock
35235 #: ../src/guestfs.pod:1492
35236 msgid "The default is to call L<abort(3)>."
35237 msgstr ""
35238
35239 #. type: textblock
35240 #: ../src/guestfs.pod:1494
35241 msgid "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
35242 msgstr ""
35243
35244 #. type: =head2
35245 #: ../src/guestfs.pod:1497
35246 msgid "guestfs_get_out_of_memory_handler"
35247 msgstr ""
35248
35249 #. type: verbatim
35250 #: ../src/guestfs.pod:1499
35251 #, no-wrap
35252 msgid ""
35253 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
35254 "\n"
35255 msgstr ""
35256
35257 #. type: textblock
35258 #: ../src/guestfs.pod:1501
35259 msgid "This returns the current out of memory handler."
35260 msgstr ""
35261
35262 #. type: =head1
35263 #: ../src/guestfs.pod:1503
35264 msgid "API CALLS"
35265 msgstr ""
35266
35267 #. type: =head1
35268 #: ../src/guestfs.pod:1507
35269 msgid "STRUCTURES"
35270 msgstr ""
35271
35272 #. type: textblock
35273 #: ../src/guestfs.pod:1509
35274 msgid "@STRUCTS@"
35275 msgstr ""
35276
35277 #. type: =head1
35278 #: ../src/guestfs.pod:1511
35279 msgid "AVAILABILITY"
35280 msgstr ""
35281
35282 #. type: =head2
35283 #: ../src/guestfs.pod:1513
35284 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
35285 msgstr ""
35286
35287 #. type: textblock
35288 #: ../src/guestfs.pod:1515
35289 msgid ""
35290 "Using L</guestfs_available> you can test availability of the following "
35291 "groups of functions.  This test queries the appliance to see if the "
35292 "appliance you are currently using supports the functionality."
35293 msgstr ""
35294
35295 #. type: textblock
35296 #: ../src/guestfs.pod:1520
35297 msgid "@AVAILABILITY@"
35298 msgstr ""
35299
35300 #. type: =head2
35301 #: ../src/guestfs.pod:1522
35302 msgid "GUESTFISH supported COMMAND"
35303 msgstr ""
35304
35305 #. type: textblock
35306 #: ../src/guestfs.pod:1524
35307 msgid ""
35308 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
35309 "prints out the available groups and whether they are supported by this build "
35310 "of libguestfs.  Note however that you have to do C<run> first."
35311 msgstr ""
35312
35313 #. type: =head2
35314 #: ../src/guestfs.pod:1529
35315 msgid "SINGLE CALLS AT COMPILE TIME"
35316 msgstr ""
35317
35318 #. type: textblock
35319 #: ../src/guestfs.pod:1531
35320 msgid ""
35321 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
35322 "function, such as:"
35323 msgstr ""
35324
35325 #. type: verbatim
35326 #: ../src/guestfs.pod:1534
35327 #, no-wrap
35328 msgid ""
35329 " #define LIBGUESTFS_HAVE_DD 1\n"
35330 "\n"
35331 msgstr ""
35332
35333 #. type: textblock
35334 #: ../src/guestfs.pod:1536
35335 msgid "if L</guestfs_dd> is available."
35336 msgstr ""
35337
35338 #. type: textblock
35339 #: ../src/guestfs.pod:1538
35340 msgid ""
35341 "Before version 1.5.8, if you needed to test whether a single libguestfs "
35342 "function is available at compile time, we recommended using build tools such "
35343 "as autoconf or cmake.  For example in autotools you could use:"
35344 msgstr ""
35345
35346 #. type: verbatim
35347 #: ../src/guestfs.pod:1543
35348 #, no-wrap
35349 msgid ""
35350 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
35351 " AC_CHECK_FUNCS([guestfs_dd])\n"
35352 "\n"
35353 msgstr ""
35354
35355 #. type: textblock
35356 #: ../src/guestfs.pod:1546
35357 msgid ""
35358 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
35359 "in your program."
35360 msgstr ""
35361
35362 #. type: =head2
35363 #: ../src/guestfs.pod:1549
35364 msgid "SINGLE CALLS AT RUN TIME"
35365 msgstr ""
35366
35367 #. type: textblock
35368 #: ../src/guestfs.pod:1551
35369 msgid ""
35370 "Testing at compile time doesn't guarantee that a function really exists in "
35371 "the library.  The reason is that you might be dynamically linked against a "
35372 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
35373 "This situation unfortunately results in a segmentation fault, which is a "
35374 "shortcoming of the C dynamic linking system itself."
35375 msgstr ""
35376
35377 #. type: textblock
35378 #: ../src/guestfs.pod:1558
35379 msgid ""
35380 "You can use L<dlopen(3)> to test if a function is available at run time, as "
35381 "in this example program (note that you still need the compile time check as "
35382 "well):"
35383 msgstr ""
35384
35385 #. type: verbatim
35386 #: ../src/guestfs.pod:1562
35387 #, no-wrap
35388 msgid ""
35389 " #include <stdio.h>\n"
35390 " #include <stdlib.h>\n"
35391 " #include <unistd.h>\n"
35392 " #include <dlfcn.h>\n"
35393 " #include <guestfs.h>\n"
35394 " \n"
35395 msgstr ""
35396
35397 #. type: verbatim
35398 #: ../src/guestfs.pod:1568
35399 #, no-wrap
35400 msgid ""
35401 " main ()\n"
35402 " {\n"
35403 " #ifdef LIBGUESTFS_HAVE_DD\n"
35404 "   void *dl;\n"
35405 "   int has_function;\n"
35406 " \n"
35407 msgstr ""
35408
35409 #. type: verbatim
35410 #: ../src/guestfs.pod:1574
35411 #, no-wrap
35412 msgid ""
35413 "   /* Test if the function guestfs_dd is really available. */\n"
35414 "   dl = dlopen (NULL, RTLD_LAZY);\n"
35415 "   if (!dl) {\n"
35416 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
35417 "     exit (EXIT_FAILURE);\n"
35418 "   }\n"
35419 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
35420 "   dlclose (dl);\n"
35421 " \n"
35422 msgstr ""
35423
35424 #. type: verbatim
35425 #: ../src/guestfs.pod:1583
35426 #, no-wrap
35427 msgid ""
35428 "   if (!has_function)\n"
35429 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
35430 "   else {\n"
35431 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
35432 "     /* Now it's safe to call\n"
35433 "     guestfs_dd (g, \"foo\", \"bar\");\n"
35434 "     */\n"
35435 "   }\n"
35436 " #else\n"
35437 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
35438 " #endif\n"
35439 "  }\n"
35440 "\n"
35441 msgstr ""
35442
35443 #. type: textblock
35444 #: ../src/guestfs.pod:1596
35445 msgid ""
35446 "You may think the above is an awful lot of hassle, and it is.  There are "
35447 "other ways outside of the C linking system to ensure that this kind of "
35448 "incompatibility never arises, such as using package versioning:"
35449 msgstr ""
35450
35451 #. type: verbatim
35452 #: ../src/guestfs.pod:1601
35453 #, no-wrap
35454 msgid ""
35455 " Requires: libguestfs >= 1.0.80\n"
35456 "\n"
35457 msgstr ""
35458
35459 #. type: =head1
35460 #: ../src/guestfs.pod:1603
35461 msgid "CALLS WITH OPTIONAL ARGUMENTS"
35462 msgstr ""
35463
35464 #. type: textblock
35465 #: ../src/guestfs.pod:1605
35466 msgid ""
35467 "A recent feature of the API is the introduction of calls which take optional "
35468 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
35469 "takes variable arguments (ie. C<...>), as in this example:"
35470 msgstr ""
35471
35472 #. type: verbatim
35473 #: ../src/guestfs.pod:1610
35474 #, no-wrap
35475 msgid ""
35476 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
35477 "\n"
35478 msgstr ""
35479
35480 #. type: textblock
35481 #: ../src/guestfs.pod:1612
35482 msgid ""
35483 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
35484 "call with no optional arguments specified:"
35485 msgstr ""
35486
35487 #. type: verbatim
35488 #: ../src/guestfs.pod:1615
35489 #, no-wrap
35490 msgid ""
35491 " guestfs_add_drive_opts (g, filename, -1);\n"
35492 "\n"
35493 msgstr ""
35494
35495 #. type: textblock
35496 #: ../src/guestfs.pod:1617
35497 msgid "With a single optional argument:"
35498 msgstr ""
35499
35500 #. type: verbatim
35501 #: ../src/guestfs.pod:1619
35502 #, no-wrap
35503 msgid ""
35504 " guestfs_add_drive_opts (g, filename,\n"
35505 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35506 "                         -1);\n"
35507 "\n"
35508 msgstr ""
35509
35510 #. type: textblock
35511 #: ../src/guestfs.pod:1623
35512 msgid "With two:"
35513 msgstr ""
35514
35515 #. type: verbatim
35516 #: ../src/guestfs.pod:1625
35517 #, no-wrap
35518 msgid ""
35519 " guestfs_add_drive_opts (g, filename,\n"
35520 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35521 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35522 "                         -1);\n"
35523 "\n"
35524 msgstr ""
35525
35526 #. type: textblock
35527 #: ../src/guestfs.pod:1630
35528 msgid ""
35529 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
35530 "happen!"
35531 msgstr ""
35532
35533 #. type: =head2
35534 #: ../src/guestfs.pod:1633
35535 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
35536 msgstr ""
35537
35538 #. type: textblock
35539 #: ../src/guestfs.pod:1635
35540 msgid ""
35541 "The second variant has the same name with the suffix C<_va>, which works the "
35542 "same way but takes a C<va_list>.  See the C manual for details.  For the "
35543 "example function, this is declared:"
35544 msgstr ""
35545
35546 #. type: verbatim
35547 #: ../src/guestfs.pod:1639
35548 #, no-wrap
35549 msgid ""
35550 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
35551 "                                va_list args);\n"
35552 "\n"
35553 msgstr ""
35554
35555 #. type: =head2
35556 #: ../src/guestfs.pod:1642
35557 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
35558 msgstr ""
35559
35560 #. type: textblock
35561 #: ../src/guestfs.pod:1644
35562 msgid ""
35563 "The third variant is useful where you need to construct these calls.  You "
35564 "pass in a structure where you fill in the optional fields.  The structure "
35565 "has a bitmask as the first element which you must set to indicate which "
35566 "fields you have filled in.  For our example function the structure and call "
35567 "are declared:"
35568 msgstr ""
35569
35570 #. type: verbatim
35571 #: ../src/guestfs.pod:1650
35572 #, no-wrap
35573 msgid ""
35574 " struct guestfs_add_drive_opts_argv {\n"
35575 "   uint64_t bitmask;\n"
35576 "   int readonly;\n"
35577 "   const char *format;\n"
35578 "   /* ... */\n"
35579 " };\n"
35580 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
35581 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
35582 "\n"
35583 msgstr ""
35584
35585 #. type: textblock
35586 #: ../src/guestfs.pod:1659
35587 msgid "You could call it like this:"
35588 msgstr ""
35589
35590 #. type: verbatim
35591 #: ../src/guestfs.pod:1661
35592 #, no-wrap
35593 msgid ""
35594 " struct guestfs_add_drive_opts_argv optargs = {\n"
35595 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
35596 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
35597 "   .readonly = 1,\n"
35598 "   .format = \"qcow2\"\n"
35599 " };\n"
35600 " \n"
35601 msgstr ""
35602
35603 #. type: verbatim
35604 #: ../src/guestfs.pod:1668
35605 #, no-wrap
35606 msgid ""
35607 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
35608 "\n"
35609 msgstr ""
35610
35611 #. type: textblock
35612 #: ../src/guestfs.pod:1676
35613 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
35614 msgstr ""
35615
35616 #. type: textblock
35617 #: ../src/guestfs.pod:1681
35618 msgid "You do not need to fill in all fields of the structure."
35619 msgstr ""
35620
35621 #. type: textblock
35622 #: ../src/guestfs.pod:1685
35623 msgid ""
35624 "There must be a one-to-one correspondence between fields of the structure "
35625 "that are filled in, and bits set in the bitmask."
35626 msgstr ""
35627
35628 #. type: =head2
35629 #: ../src/guestfs.pod:1690
35630 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
35631 msgstr ""
35632
35633 #. type: textblock
35634 #: ../src/guestfs.pod:1692
35635 msgid ""
35636 "In other languages, optional arguments are expressed in the way that is "
35637 "natural for that language.  We refer you to the language-specific "
35638 "documentation for more details on that."
35639 msgstr ""
35640
35641 #. type: textblock
35642 #: ../src/guestfs.pod:1696
35643 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
35644 msgstr ""
35645
35646 #. type: =head2
35647 #: ../src/guestfs.pod:1698
35648 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
35649 msgstr ""
35650
35651 #. type: textblock
35652 #: ../src/guestfs.pod:1700
35653 msgid ""
35654 "B<Note:> This section documents the generic event mechanism introduced in "
35655 "libguestfs 1.10, which you should use in new code if possible.  The old "
35656 "functions C<guestfs_set_log_message_callback>, "
35657 "C<guestfs_set_subprocess_quit_callback>, "
35658 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
35659 "C<guestfs_set_progress_callback> are no longer documented in this manual "
35660 "page.  Because of the ABI guarantee, the old functions continue to work."
35661 msgstr ""
35662
35663 #. type: textblock
35664 #: ../src/guestfs.pod:1709
35665 msgid ""
35666 "Handles generate events when certain things happen, such as log messages "
35667 "being generated, progress messages during long-running operations, or the "
35668 "handle being closed.  The API calls described below let you register a "
35669 "callback to be called when events happen.  You can register multiple "
35670 "callbacks (for the same, different or overlapping sets of events), and "
35671 "individually remove callbacks.  If callbacks are not removed, then they "
35672 "remain in force until the handle is closed."
35673 msgstr ""
35674
35675 #. type: textblock
35676 #: ../src/guestfs.pod:1717
35677 msgid ""
35678 "In the current implementation, events are only generated synchronously: that "
35679 "means that events (and hence callbacks) can only happen while you are in the "
35680 "middle of making another libguestfs call.  The callback is called in the "
35681 "same thread."
35682 msgstr ""
35683
35684 #. type: textblock
35685 #: ../src/guestfs.pod:1722
35686 msgid ""
35687 "Events may contain a payload, usually nothing (void), an array of 64 bit "
35688 "unsigned integers, or a message buffer.  Payloads are discussed later on."
35689 msgstr ""
35690
35691 #. type: =head3
35692 #: ../src/guestfs.pod:1726
35693 msgid "CLASSES OF EVENTS"
35694 msgstr ""
35695
35696 #. type: =item
35697 #: ../src/guestfs.pod:1730
35698 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
35699 msgstr ""
35700
35701 #. type: textblock
35702 #: ../src/guestfs.pod:1733
35703 msgid ""
35704 "The callback function will be called while the handle is being closed "
35705 "(synchronously from L</guestfs_close>)."
35706 msgstr ""
35707
35708 #. type: textblock
35709 #: ../src/guestfs.pod:1736
35710 msgid ""
35711 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
35712 "handles that are open when the program exits.  This means that this callback "
35713 "might be called indirectly from L<exit(3)>, which can cause unexpected "
35714 "problems in higher-level languages (eg. if your HLL interpreter has already "
35715 "been cleaned up by the time this is called, and if your callback then jumps "
35716 "into some HLL function)."
35717 msgstr ""
35718
35719 #. type: textblock
35720 #: ../src/guestfs.pod:1743
35721 msgid ""
35722 "If no callback is registered: the handle is closed without any callback "
35723 "being invoked."
35724 msgstr ""
35725
35726 #. type: =item
35727 #: ../src/guestfs.pod:1746
35728 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
35729 msgstr ""
35730
35731 #. type: textblock
35732 #: ../src/guestfs.pod:1749
35733 msgid ""
35734 "The callback function will be called when the child process quits, either "
35735 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
35736 "corresponds to a transition from any state to the CONFIG state)."
35737 msgstr ""
35738
35739 #. type: textblock
35740 #: ../src/guestfs.pod:1753 ../src/guestfs.pod:1762 ../src/guestfs.pod:1879
35741 msgid "If no callback is registered: the event is ignored."
35742 msgstr ""
35743
35744 #. type: =item
35745 #: ../src/guestfs.pod:1755
35746 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
35747 msgstr ""
35748
35749 #. type: textblock
35750 #: ../src/guestfs.pod:1758
35751 msgid ""
35752 "The callback function will be called when the child process becomes ready "
35753 "first time after it has been launched.  (This corresponds to a transition "
35754 "from LAUNCHING to the READY state)."
35755 msgstr ""
35756
35757 #. type: =item
35758 #: ../src/guestfs.pod:1764
35759 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
35760 msgstr ""
35761
35762 #. type: textblock
35763 #: ../src/guestfs.pod:1767
35764 msgid ""
35765 "Some long-running operations can generate progress messages.  If this "
35766 "callback is registered, then it will be called each time a progress message "
35767 "is generated (usually two seconds after the operation started, and three "
35768 "times per second thereafter until it completes, although the frequency may "
35769 "change in future versions)."
35770 msgstr ""
35771
35772 #. type: textblock
35773 #: ../src/guestfs.pod:1773
35774 msgid ""
35775 "The callback receives in the payload four unsigned 64 bit numbers which are "
35776 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
35777 msgstr ""
35778
35779 #. type: textblock
35780 #: ../src/guestfs.pod:1776
35781 msgid ""
35782 "The units of C<total> are not defined, although for some operations C<total> "
35783 "may relate in some way to the amount of data to be transferred (eg. in bytes "
35784 "or megabytes), and C<position> may be the portion which has been "
35785 "transferred."
35786 msgstr ""
35787
35788 #. type: textblock
35789 #: ../src/guestfs.pod:1781
35790 msgid "The only defined and stable parts of the API are:"
35791 msgstr ""
35792
35793 #. type: textblock
35794 #: ../src/guestfs.pod:1787
35795 msgid ""
35796 "The callback can display to the user some type of progress bar or indicator "
35797 "which shows the ratio of C<position>:C<total>."
35798 msgstr ""
35799
35800 #. type: textblock
35801 #: ../src/guestfs.pod:1792
35802 msgid "0 E<lt>= C<position> E<lt>= C<total>"
35803 msgstr ""
35804
35805 #. type: textblock
35806 #: ../src/guestfs.pod:1796
35807 msgid ""
35808 "If any progress notification is sent during a call, then a final progress "
35809 "notification is always sent when C<position> = C<total> (I<unless> the call "
35810 "fails with an error)."
35811 msgstr ""
35812
35813 #. type: textblock
35814 #: ../src/guestfs.pod:1800
35815 msgid ""
35816 "This is to simplify caller code, so callers can easily set the progress "
35817 "indicator to \"100%\" at the end of the operation, without requiring special "
35818 "code to detect this case."
35819 msgstr ""
35820
35821 #. type: textblock
35822 #: ../src/guestfs.pod:1806
35823 msgid ""
35824 "For some calls we are unable to estimate the progress of the call, but we "
35825 "can still generate progress messages to indicate activity.  This is known as "
35826 "\"pulse mode\", and is directly supported by certain progress bar "
35827 "implementations (eg. GtkProgressBar)."
35828 msgstr ""
35829
35830 #. type: textblock
35831 #: ../src/guestfs.pod:1811
35832 msgid ""
35833 "For these calls, zero or more progress messages are generated with "
35834 "C<position = 0> and C<total = 1>, followed by a final message with "
35835 "C<position = total = 1>."
35836 msgstr ""
35837
35838 #. type: textblock
35839 #: ../src/guestfs.pod:1815
35840 msgid ""
35841 "As noted above, if the call fails with an error then the final message may "
35842 "not be generated."
35843 msgstr ""
35844
35845 #. type: textblock
35846 #: ../src/guestfs.pod:1820
35847 msgid ""
35848 "The callback also receives the procedure number (C<proc_nr>) and serial "
35849 "number (C<serial>) of the call.  These are only useful for debugging "
35850 "protocol issues, and the callback can normally ignore them.  The callback "
35851 "may want to print these numbers in error messages or debugging messages."
35852 msgstr ""
35853
35854 #. type: textblock
35855 #: ../src/guestfs.pod:1826
35856 msgid "If no callback is registered: progress messages are discarded."
35857 msgstr ""
35858
35859 #. type: =item
35860 #: ../src/guestfs.pod:1828
35861 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
35862 msgstr ""
35863
35864 #. type: textblock
35865 #: ../src/guestfs.pod:1831
35866 msgid ""
35867 "The callback function is called whenever a log message is generated by qemu, "
35868 "the appliance kernel, guestfsd (daemon), or utility programs."
35869 msgstr ""
35870
35871 #. type: textblock
35872 #: ../src/guestfs.pod:1834
35873 msgid ""
35874 "If the verbose flag (L</guestfs_set_verbose>) is set before launch "
35875 "(L</guestfs_launch>) then additional debug messages are generated."
35876 msgstr ""
35877
35878 #. type: textblock
35879 #: ../src/guestfs.pod:1837 ../src/guestfs.pod:1851
35880 msgid ""
35881 "If no callback is registered: the messages are discarded unless the verbose "
35882 "flag is set in which case they are sent to stderr.  You can override the "
35883 "printing of verbose messages to stderr by setting up a callback."
35884 msgstr ""
35885
35886 #. type: =item
35887 #: ../src/guestfs.pod:1842
35888 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
35889 msgstr ""
35890
35891 #. type: textblock
35892 #: ../src/guestfs.pod:1845
35893 msgid ""
35894 "The callback function is called whenever a log message is generated by the "
35895 "library part of libguestfs."
35896 msgstr ""
35897
35898 #. type: textblock
35899 #: ../src/guestfs.pod:1848
35900 msgid ""
35901 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
35902 "messages are generated."
35903 msgstr ""
35904
35905 #. type: =item
35906 #: ../src/guestfs.pod:1856
35907 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
35908 msgstr ""
35909
35910 #. type: textblock
35911 #: ../src/guestfs.pod:1859
35912 msgid ""
35913 "The callback function is called whenever a trace message is generated.  This "
35914 "only applies if the trace flag (L</guestfs_set_trace>) is set."
35915 msgstr ""
35916
35917 #. type: textblock
35918 #: ../src/guestfs.pod:1862
35919 msgid ""
35920 "If no callback is registered: the messages are sent to stderr.  You can "
35921 "override the printing of trace messages to stderr by setting up a callback."
35922 msgstr ""
35923
35924 #. type: =item
35925 #: ../src/guestfs.pod:1866
35926 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
35927 msgstr ""
35928
35929 #. type: textblock
35930 #: ../src/guestfs.pod:1869
35931 msgid "The callback function is called whenever a libguestfs function is entered."
35932 msgstr ""
35933
35934 #. type: textblock
35935 #: ../src/guestfs.pod:1872
35936 msgid ""
35937 "The payload is a string which contains the name of the function that we are "
35938 "entering (not including C<guestfs_> prefix)."
35939 msgstr ""
35940
35941 #. type: textblock
35942 #: ../src/guestfs.pod:1875
35943 msgid ""
35944 "Note that libguestfs functions can call themselves, so you may see many "
35945 "events from a single call.  A few libguestfs functions do not generate this "
35946 "event."
35947 msgstr ""
35948
35949 #. type: =head3
35950 #: ../src/guestfs.pod:1883
35951 msgid "guestfs_set_event_callback"
35952 msgstr ""
35953
35954 #. type: verbatim
35955 #: ../src/guestfs.pod:1885
35956 #, no-wrap
35957 msgid ""
35958 " int guestfs_set_event_callback (guestfs_h *g,\n"
35959 "                                 guestfs_event_callback cb,\n"
35960 "                                 uint64_t event_bitmask,\n"
35961 "                                 int flags,\n"
35962 "                                 void *opaque);\n"
35963 "\n"
35964 msgstr ""
35965
35966 #. type: textblock
35967 #: ../src/guestfs.pod:1891
35968 msgid ""
35969 "This function registers a callback (C<cb>) for all event classes in the "
35970 "C<event_bitmask>."
35971 msgstr ""
35972
35973 #. type: textblock
35974 #: ../src/guestfs.pod:1894
35975 msgid ""
35976 "For example, to register for all log message events, you could call this "
35977 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
35978 "To register a single callback for all possible classes of events, use "
35979 "C<GUESTFS_EVENT_ALL>."
35980 msgstr ""
35981
35982 #. type: textblock
35983 #: ../src/guestfs.pod:1900
35984 msgid "C<flags> should always be passed as 0."
35985 msgstr ""
35986
35987 #. type: textblock
35988 #: ../src/guestfs.pod:1902
35989 msgid ""
35990 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
35991 "it for any purpose."
35992 msgstr ""
35993
35994 #. type: textblock
35995 #: ../src/guestfs.pod:1905
35996 msgid ""
35997 "The return value is the event handle (an integer) which you can use to "
35998 "delete the callback (see below)."
35999 msgstr ""
36000
36001 #. type: textblock
36002 #: ../src/guestfs.pod:1908
36003 msgid ""
36004 "If there is an error, this function returns C<-1>, and sets the error in the "
36005 "handle in the usual way (see L</guestfs_last_error> etc.)"
36006 msgstr ""
36007
36008 #. type: textblock
36009 #: ../src/guestfs.pod:1911
36010 msgid ""
36011 "Callbacks remain in effect until they are deleted, or until the handle is "
36012 "closed."
36013 msgstr ""
36014
36015 #. type: textblock
36016 #: ../src/guestfs.pod:1914
36017 msgid ""
36018 "In the case where multiple callbacks are registered for a particular event "
36019 "class, all of the callbacks are called.  The order in which multiple "
36020 "callbacks are called is not defined."
36021 msgstr ""
36022
36023 #. type: =head3
36024 #: ../src/guestfs.pod:1918
36025 msgid "guestfs_delete_event_callback"
36026 msgstr ""
36027
36028 #. type: verbatim
36029 #: ../src/guestfs.pod:1920
36030 #, no-wrap
36031 msgid ""
36032 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
36033 "\n"
36034 msgstr ""
36035
36036 #. type: textblock
36037 #: ../src/guestfs.pod:1922
36038 msgid ""
36039 "Delete a callback that was previously registered.  C<event_handle> should be "
36040 "the integer that was returned by a previous call to "
36041 "C<guestfs_set_event_callback> on the same handle."
36042 msgstr ""
36043
36044 #. type: =head3
36045 #: ../src/guestfs.pod:1926
36046 msgid "guestfs_event_callback"
36047 msgstr ""
36048
36049 #. type: verbatim
36050 #: ../src/guestfs.pod:1928
36051 #, no-wrap
36052 msgid ""
36053 " typedef void (*guestfs_event_callback) (\n"
36054 "                  guestfs_h *g,\n"
36055 "                  void *opaque,\n"
36056 "                  uint64_t event,\n"
36057 "                  int event_handle,\n"
36058 "                  int flags,\n"
36059 "                  const char *buf, size_t buf_len,\n"
36060 "                  const uint64_t *array, size_t array_len);\n"
36061 "\n"
36062 msgstr ""
36063
36064 #. type: textblock
36065 #: ../src/guestfs.pod:1937
36066 msgid "This is the type of the event callback function that you have to provide."
36067 msgstr ""
36068
36069 #. type: textblock
36070 #: ../src/guestfs.pod:1940
36071 msgid ""
36072 "The basic parameters are: the handle (C<g>), the opaque user pointer "
36073 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
36074 "handle, and C<flags> which in the current API you should ignore."
36075 msgstr ""
36076
36077 #. type: textblock
36078 #: ../src/guestfs.pod:1944
36079 msgid ""
36080 "The remaining parameters contain the event payload (if any).  Each event may "
36081 "contain a payload, which usually relates to the event class, but for future "
36082 "proofing your code should be written to handle any payload for any event "
36083 "class."
36084 msgstr ""
36085
36086 #. type: textblock
36087 #: ../src/guestfs.pod:1949
36088 msgid ""
36089 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
36090 "there is no message buffer).  Note that this message buffer can contain "
36091 "arbitrary 8 bit data, including NUL bytes."
36092 msgstr ""
36093
36094 #. type: textblock
36095 #: ../src/guestfs.pod:1953
36096 msgid ""
36097 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
36098 "moment this is only used for progress messages."
36099 msgstr ""
36100
36101 #. type: =head3
36102 #: ../src/guestfs.pod:1956
36103 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
36104 msgstr ""
36105
36106 #. type: textblock
36107 #: ../src/guestfs.pod:1958
36108 msgid ""
36109 "One motivation for the generic event API was to allow GUI programs to "
36110 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
36111 "unconditionally to C<stderr>."
36112 msgstr ""
36113
36114 #. type: textblock
36115 #: ../src/guestfs.pod:1962
36116 msgid ""
36117 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
36118 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
36119 "messages are not events; you must capture error messages separately)."
36120 msgstr ""
36121
36122 #. type: textblock
36123 #: ../src/guestfs.pod:1967
36124 msgid ""
36125 "Programs have to set up a callback to capture the classes of events of "
36126 "interest:"
36127 msgstr ""
36128
36129 #. type: verbatim
36130 #: ../src/guestfs.pod:1970
36131 #, no-wrap
36132 msgid ""
36133 " int eh =\n"
36134 "   guestfs_set_event_callback\n"
36135 "     (g, message_callback,\n"
36136 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
36137 "      GUESTFS_EVENT_TRACE,\n"
36138 "      0, NULL) == -1)\n"
36139 " if (eh == -1) {\n"
36140 "   // handle error in the usual way\n"
36141 " }\n"
36142 "\n"
36143 msgstr ""
36144
36145 #. type: textblock
36146 #: ../src/guestfs.pod:1980
36147 msgid ""
36148 "The callback can then direct messages to the appropriate place.  In this "
36149 "example, messages are directed to syslog:"
36150 msgstr ""
36151
36152 #. type: verbatim
36153 #: ../src/guestfs.pod:1983
36154 #, no-wrap
36155 msgid ""
36156 " static void\n"
36157 " message_callback (\n"
36158 "         guestfs_h *g,\n"
36159 "         void *opaque,\n"
36160 "         uint64_t event,\n"
36161 "         int event_handle,\n"
36162 "         int flags,\n"
36163 "         const char *buf, size_t buf_len,\n"
36164 "         const uint64_t *array, size_t array_len)\n"
36165 " {\n"
36166 "   const int priority = LOG_USER|LOG_INFO;\n"
36167 "   if (buf_len > 0)\n"
36168 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
36169 " }\n"
36170 "\n"
36171 msgstr ""
36172
36173 #. type: =head1
36174 #: ../src/guestfs.pod:1998
36175 msgid "CANCELLING LONG TRANSFERS"
36176 msgstr ""
36177
36178 #. type: textblock
36179 #: ../src/guestfs.pod:2000
36180 msgid ""
36181 "Some operations can be cancelled by the caller while they are in progress.  "
36182 "Currently only operations that involve uploading or downloading data can be "
36183 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
36184 "parameters in the generator)."
36185 msgstr ""
36186
36187 #. type: =head2
36188 #: ../src/guestfs.pod:2005
36189 msgid "guestfs_user_cancel"
36190 msgstr ""
36191
36192 #. type: verbatim
36193 #: ../src/guestfs.pod:2007
36194 #, no-wrap
36195 msgid ""
36196 " void guestfs_user_cancel (guestfs_h *g);\n"
36197 "\n"
36198 msgstr ""
36199
36200 #. type: textblock
36201 #: ../src/guestfs.pod:2009
36202 msgid "C<guestfs_user_cancel> cancels the current upload or download operation."
36203 msgstr ""
36204
36205 #. type: textblock
36206 #: ../src/guestfs.pod:2012
36207 msgid ""
36208 "Unlike most other libguestfs calls, this function is signal safe and thread "
36209 "safe.  You can call it from a signal handler or from another thread, without "
36210 "needing to do any locking."
36211 msgstr ""
36212
36213 #. type: textblock
36214 #: ../src/guestfs.pod:2016
36215 msgid ""
36216 "The transfer that was in progress (if there is one) will stop shortly "
36217 "afterwards, and will return an error.  The errno (see "
36218 "L</guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
36219 "out if the operation was cancelled or failed because of another error."
36220 msgstr ""
36221
36222 #. type: textblock
36223 #: ../src/guestfs.pod:2022
36224 msgid ""
36225 "No cleanup is performed: for example, if a file was being uploaded then "
36226 "after cancellation there may be a partially uploaded file.  It is the "
36227 "caller's responsibility to clean up if necessary."
36228 msgstr ""
36229
36230 #. type: textblock
36231 #: ../src/guestfs.pod:2026
36232 msgid "There are two common places that you might call C<guestfs_user_cancel>."
36233 msgstr ""
36234
36235 #. type: textblock
36236 #: ../src/guestfs.pod:2028
36237 msgid ""
36238 "In an interactive text-based program, you might call it from a C<SIGINT> "
36239 "signal handler so that pressing C<^C> cancels the current operation.  (You "
36240 "also need to call L</guestfs_set_pgroup> so that child processes don't "
36241 "receive the C<^C> signal)."
36242 msgstr ""
36243
36244 #. type: textblock
36245 #: ../src/guestfs.pod:2033
36246 msgid ""
36247 "In a graphical program, when the main thread is displaying a progress bar "
36248 "with a cancel button, wire up the cancel button to call this function."
36249 msgstr ""
36250
36251 #. type: =head1
36252 #: ../src/guestfs.pod:2037
36253 msgid "PRIVATE DATA AREA"
36254 msgstr ""
36255
36256 #. type: textblock
36257 #: ../src/guestfs.pod:2039
36258 msgid ""
36259 "You can attach named pieces of private data to the libguestfs handle, fetch "
36260 "them by name, and walk over them, for the lifetime of the handle.  This is "
36261 "called the private data area and is only available from the C API."
36262 msgstr ""
36263
36264 #. type: textblock
36265 #: ../src/guestfs.pod:2044
36266 msgid "To attach a named piece of data, use the following call:"
36267 msgstr ""
36268
36269 #. type: verbatim
36270 #: ../src/guestfs.pod:2046
36271 #, no-wrap
36272 msgid ""
36273 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
36274 "\n"
36275 msgstr ""
36276
36277 #. type: textblock
36278 #: ../src/guestfs.pod:2048
36279 msgid ""
36280 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
36281 "pointer (which can be C<NULL>).  Any previous item with the same key is "
36282 "overwritten."
36283 msgstr ""
36284
36285 #. type: textblock
36286 #: ../src/guestfs.pod:2052
36287 msgid ""
36288 "You can use any C<key> you want, but your key should I<not> start with an "
36289 "underscore character.  Keys beginning with an underscore character are "
36290 "reserved for internal libguestfs purposes (eg. for implementing language "
36291 "bindings).  It is recommended that you prefix the key with some unique "
36292 "string to avoid collisions with other users."
36293 msgstr ""
36294
36295 #. type: textblock
36296 #: ../src/guestfs.pod:2058
36297 msgid "To retrieve the pointer, use:"
36298 msgstr ""
36299
36300 #. type: verbatim
36301 #: ../src/guestfs.pod:2060
36302 #, no-wrap
36303 msgid ""
36304 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
36305 "\n"
36306 msgstr ""
36307
36308 #. type: textblock
36309 #: ../src/guestfs.pod:2062
36310 msgid ""
36311 "This function returns C<NULL> if either no data is found associated with "
36312 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
36313 "C<NULL>."
36314 msgstr ""
36315
36316 #. type: textblock
36317 #: ../src/guestfs.pod:2066
36318 msgid ""
36319 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
36320 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
36321 "all.  In particular, libguestfs does I<not> try to free the data when the "
36322 "handle is closed.  If the data must be freed, then the caller must either "
36323 "free it before calling L</guestfs_close> or must set up a close callback to "
36324 "do it (see L</GUESTFS_EVENT_CLOSE>)."
36325 msgstr ""
36326
36327 #. type: textblock
36328 #: ../src/guestfs.pod:2073
36329 msgid "To walk over all entries, use these two functions:"
36330 msgstr ""
36331
36332 #. type: verbatim
36333 #: ../src/guestfs.pod:2075
36334 #, no-wrap
36335 msgid ""
36336 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
36337 "\n"
36338 msgstr ""
36339
36340 #. type: verbatim
36341 #: ../src/guestfs.pod:2077
36342 #, no-wrap
36343 msgid ""
36344 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
36345 "\n"
36346 msgstr ""
36347
36348 #. type: textblock
36349 #: ../src/guestfs.pod:2079
36350 msgid ""
36351 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
36352 "not have any particular meaning -- keys are not returned in any defined "
36353 "order).  A pointer to the key is returned in C<*key_rtn> and the "
36354 "corresponding data pointer is returned from the function.  C<NULL> is "
36355 "returned if there are no keys stored in the handle."
36356 msgstr ""
36357
36358 #. type: textblock
36359 #: ../src/guestfs.pod:2085
36360 msgid ""
36361 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
36362 "value of this function is also C<NULL> is there are no further entries to "
36363 "return."
36364 msgstr ""
36365
36366 #. type: textblock
36367 #: ../src/guestfs.pod:2089
36368 msgid "Notes about walking over entries:"
36369 msgstr ""
36370
36371 #. type: textblock
36372 #: ../src/guestfs.pod:2095
36373 msgid "You must not call C<guestfs_set_private> while walking over the entries."
36374 msgstr ""
36375
36376 #. type: textblock
36377 #: ../src/guestfs.pod:2100
36378 msgid ""
36379 "The handle maintains an internal iterator which is reset when you call "
36380 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
36381 "call C<guestfs_set_private>."
36382 msgstr ""
36383
36384 #. type: textblock
36385 #: ../src/guestfs.pod:2106
36386 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
36387 msgstr ""
36388
36389 #. type: verbatim
36390 #: ../src/guestfs.pod:2108
36391 #, no-wrap
36392 msgid ""
36393 " guestfs_set_private (g, key, NULL);\n"
36394 "\n"
36395 msgstr ""
36396
36397 #. type: textblock
36398 #: ../src/guestfs.pod:2110
36399 msgid "then that C<key> is not returned when walking."
36400 msgstr ""
36401
36402 #. type: textblock
36403 #: ../src/guestfs.pod:2114
36404 msgid ""
36405 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
36406 "C<guestfs_next_private> or C<guestfs_set_private>."
36407 msgstr ""
36408
36409 #. type: textblock
36410 #: ../src/guestfs.pod:2120
36411 msgid ""
36412 "The following example code shows how to print all keys and data pointers "
36413 "that are associated with the handle C<g>:"
36414 msgstr ""
36415
36416 #. type: verbatim
36417 #: ../src/guestfs.pod:2123
36418 #, no-wrap
36419 msgid ""
36420 " const char *key;\n"
36421 " void *data = guestfs_first_private (g, &key);\n"
36422 " while (data != NULL)\n"
36423 "   {\n"
36424 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
36425 "     data = guestfs_next_private (g, &key);\n"
36426 "   }\n"
36427 "\n"
36428 msgstr ""
36429
36430 #. type: textblock
36431 #: ../src/guestfs.pod:2131
36432 msgid ""
36433 "More commonly you are only interested in keys that begin with an "
36434 "application-specific prefix C<foo_>.  Modify the loop like so:"
36435 msgstr ""
36436
36437 #. type: verbatim
36438 #: ../src/guestfs.pod:2134
36439 #, no-wrap
36440 msgid ""
36441 " const char *key;\n"
36442 " void *data = guestfs_first_private (g, &key);\n"
36443 " while (data != NULL)\n"
36444 "   {\n"
36445 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
36446 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
36447 "     data = guestfs_next_private (g, &key);\n"
36448 "   }\n"
36449 "\n"
36450 msgstr ""
36451
36452 #. type: textblock
36453 #: ../src/guestfs.pod:2143
36454 msgid ""
36455 "If you need to modify keys while walking, then you have to jump back to the "
36456 "beginning of the loop.  For example, to delete all keys prefixed with "
36457 "C<foo_>:"
36458 msgstr ""
36459
36460 #. type: verbatim
36461 #: ../src/guestfs.pod:2147
36462 #, no-wrap
36463 msgid ""
36464 "  const char *key;\n"
36465 "  void *data;\n"
36466 " again:\n"
36467 "  data = guestfs_first_private (g, &key);\n"
36468 "  while (data != NULL)\n"
36469 "    {\n"
36470 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
36471 "        {\n"
36472 "          guestfs_set_private (g, key, NULL);\n"
36473 "          /* note that 'key' pointer is now invalid, and so is\n"
36474 "             the internal iterator */\n"
36475 "          goto again;\n"
36476 "        }\n"
36477 "      data = guestfs_next_private (g, &key);\n"
36478 "    }\n"
36479 "\n"
36480 msgstr ""
36481
36482 #. type: textblock
36483 #: ../src/guestfs.pod:2163
36484 msgid ""
36485 "Note that the above loop is guaranteed to terminate because the keys are "
36486 "being deleted, but other manipulations of keys within the loop might not "
36487 "terminate unless you also maintain an indication of which keys have been "
36488 "visited."
36489 msgstr ""
36490
36491 #. type: =head1
36492 #: ../src/guestfs.pod:2168
36493 msgid "SYSTEMTAP"
36494 msgstr ""
36495
36496 #. type: textblock
36497 #: ../src/guestfs.pod:2170
36498 msgid ""
36499 "The libguestfs C library can be probed using systemtap or DTrace.  This is "
36500 "true of any library, not just libguestfs.  However libguestfs also contains "
36501 "static markers to help in probing internal operations."
36502 msgstr ""
36503
36504 #. type: textblock
36505 #: ../src/guestfs.pod:2174
36506 msgid "You can list all the static markers by doing:"
36507 msgstr ""
36508
36509 #. type: verbatim
36510 #: ../src/guestfs.pod:2176
36511 #, no-wrap
36512 msgid ""
36513 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
36514 "              .provider(\"guestfs\").mark(\"*\")'\n"
36515 "\n"
36516 msgstr ""
36517
36518 #. type: textblock
36519 #: ../src/guestfs.pod:2179
36520 msgid ""
36521 "B<Note:> These static markers are I<not> part of the stable API and may "
36522 "change in future versions."
36523 msgstr ""
36524
36525 #. type: =head2
36526 #: ../src/guestfs.pod:2182
36527 msgid "SYSTEMTAP SCRIPT EXAMPLE"
36528 msgstr ""
36529
36530 #. type: textblock
36531 #: ../src/guestfs.pod:2184
36532 msgid ""
36533 "This script contains examples of displaying both the static markers and some "
36534 "ordinary C entry points:"
36535 msgstr ""
36536
36537 #. type: verbatim
36538 #: ../src/guestfs.pod:2187
36539 #, no-wrap
36540 msgid ""
36541 " global last;\n"
36542 " \n"
36543 msgstr ""
36544
36545 #. type: verbatim
36546 #: ../src/guestfs.pod:2189
36547 #, no-wrap
36548 msgid ""
36549 " function display_time () {\n"
36550 "       now = gettimeofday_us ();\n"
36551 "       delta = 0;\n"
36552 "       if (last > 0)\n"
36553 "             delta = now - last;\n"
36554 "       last = now;\n"
36555 " \n"
36556 msgstr ""
36557
36558 #. type: verbatim
36559 #: ../src/guestfs.pod:2196
36560 #, no-wrap
36561 msgid ""
36562 "       printf (\"%d (+%d):\", now, delta);\n"
36563 " }\n"
36564 " \n"
36565 msgstr ""
36566
36567 #. type: verbatim
36568 #: ../src/guestfs.pod:2199
36569 #, no-wrap
36570 msgid ""
36571 " probe begin {\n"
36572 "       last = 0;\n"
36573 "       printf (\"ready\\n\");\n"
36574 " }\n"
36575 " \n"
36576 msgstr ""
36577
36578 #. type: verbatim
36579 #: ../src/guestfs.pod:2204
36580 #, no-wrap
36581 msgid ""
36582 " /* Display all calls to static markers. */\n"
36583 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
36584 "           .provider(\"guestfs\").mark(\"*\") ? {\n"
36585 "       display_time();\n"
36586 "       printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
36587 " }\n"
36588 " \n"
36589 msgstr ""
36590
36591 #. type: verbatim
36592 #: ../src/guestfs.pod:2211
36593 #, no-wrap
36594 msgid ""
36595 " /* Display all calls to guestfs_mkfs* functions. */\n"
36596 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
36597 "           .function(\"guestfs_mkfs*\") ? {\n"
36598 "       display_time();\n"
36599 "       printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
36600 " }\n"
36601 "\n"
36602 msgstr ""
36603
36604 #. type: textblock
36605 #: ../src/guestfs.pod:2218
36606 msgid ""
36607 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
36608 "program.  Note that you either have to be root, or you have to add yourself "
36609 "to several special stap groups.  Consult the systemtap documentation for "
36610 "more information."
36611 msgstr ""
36612
36613 #. type: verbatim
36614 #: ../src/guestfs.pod:2223
36615 #, no-wrap
36616 msgid ""
36617 " # stap /tmp/test.stap\n"
36618 " ready\n"
36619 "\n"
36620 msgstr ""
36621
36622 #. type: textblock
36623 #: ../src/guestfs.pod:2226
36624 msgid "In another terminal, run a guestfish command such as this:"
36625 msgstr ""
36626
36627 #. type: textblock
36628 #: ../src/guestfs.pod:2230
36629 msgid "In the first terminal, stap trace output similar to this is shown:"
36630 msgstr ""
36631
36632 #. type: verbatim
36633 #: ../src/guestfs.pod:2232
36634 #, no-wrap
36635 msgid ""
36636 " 1318248056692655 (+0):\tlaunch_start\n"
36637 " 1318248056692850 (+195):       launch_build_appliance_start\n"
36638 " 1318248056818285 (+125435):    launch_build_appliance_end\n"
36639 " 1318248056838059 (+19774):     launch_run_qemu\n"
36640 " 1318248061071167 (+4233108):   launch_end\n"
36641 " 1318248061280324 (+209157):    guestfs_mkfs g=0x1024ab0 fstype=0x46116f "
36642 "device=0x1024e60\n"
36643 "\n"
36644 msgstr ""
36645
36646 #. type: =end
36647 #: ../src/guestfs.pod:2239 ../src/guestfs.pod:2244
36648 msgid "html"
36649 msgstr ""
36650
36651 #. type: textblock
36652 #: ../src/guestfs.pod:2241
36653 msgid ""
36654 "<!-- old anchor for the next section --> <a "
36655 "name=\"state_machine_and_low_level_event_api\"/>"
36656 msgstr ""
36657
36658 #. type: =head1
36659 #: ../src/guestfs.pod:2246
36660 msgid "ARCHITECTURE"
36661 msgstr ""
36662
36663 #. type: textblock
36664 #: ../src/guestfs.pod:2248
36665 msgid ""
36666 "Internally, libguestfs is implemented by running an appliance (a special "
36667 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
36668 "process of the main program."
36669 msgstr ""
36670
36671 #. type: verbatim
36672 #: ../src/guestfs.pod:2252
36673 #, no-wrap
36674 msgid ""
36675 "  ___________________\n"
36676 " /                   \\\n"
36677 " | main program      |\n"
36678 " |                   |\n"
36679 " |                   |           child process / appliance\n"
36680 " |                   |           __________________________\n"
36681 " |                   |          / qemu                     \\\n"
36682 " +-------------------+   RPC    |      +-----------------+ |\n"
36683 " | libguestfs     <--------------------> guestfsd        | |\n"
36684 " |                   |          |      +-----------------+ |\n"
36685 " \\___________________/          |      | Linux kernel    | |\n"
36686 "                                |      +--^--------------+ |\n"
36687 "                                \\_________|________________/\n"
36688 "                                          |\n"
36689 "                                   _______v______\n"
36690 "                                  /              \\\n"
36691 "                                  | Device or    |\n"
36692 "                                  | disk image   |\n"
36693 "                                  \\______________/\n"
36694 "\n"
36695 msgstr ""
36696
36697 #. type: textblock
36698 #: ../src/guestfs.pod:2272
36699 msgid ""
36700 "The library, linked to the main program, creates the child process and hence "
36701 "the appliance in the L</guestfs_launch> function."
36702 msgstr ""
36703
36704 #. type: textblock
36705 #: ../src/guestfs.pod:2275
36706 msgid ""
36707 "Inside the appliance is a Linux kernel and a complete stack of userspace "
36708 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
36709 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
36710 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
36711 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
36712 "attached to the qemu process which translates device access by the "
36713 "appliance's Linux kernel into accesses to the image."
36714 msgstr ""
36715
36716 #. type: textblock
36717 #: ../src/guestfs.pod:2284
36718 msgid ""
36719 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
36720 "Although the disk image you are attached to might also be used by some "
36721 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
36722 "care if both libguestfs's qemu process and your virtual machine are trying "
36723 "to update the disk image at the same time, since these usually results in "
36724 "massive disk corruption)."
36725 msgstr ""
36726
36727 #. type: =head1
36728 #: ../src/guestfs.pod:2291
36729 msgid "STATE MACHINE"
36730 msgstr ""
36731
36732 #. type: textblock
36733 #: ../src/guestfs.pod:2293
36734 msgid "libguestfs uses a state machine to model the child process:"
36735 msgstr ""
36736
36737 #. type: verbatim
36738 #: ../src/guestfs.pod:2295
36739 #, no-wrap
36740 msgid ""
36741 "                         |\n"
36742 "                    guestfs_create\n"
36743 "                         |\n"
36744 "                         |\n"
36745 "                     ____V_____\n"
36746 "                    /          \\\n"
36747 "                    |  CONFIG  |\n"
36748 "                    \\__________/\n"
36749 "                     ^ ^   ^  \\\n"
36750 "                    /  |    \\  \\ guestfs_launch\n"
36751 "                   /   |    _\\__V______\n"
36752 "                  /    |   /           \\\n"
36753 "                 /     |   | LAUNCHING |\n"
36754 "                /      |   \\___________/\n"
36755 "               /       |       /\n"
36756 "              /        |  guestfs_launch\n"
36757 "             /         |     /\n"
36758 "    ______  /        __|____V\n"
36759 "   /      \\ ------> /        \\\n"
36760 "   | BUSY |         | READY  |\n"
36761 "   \\______/ <------ \\________/\n"
36762 "\n"
36763 msgstr ""
36764
36765 #. type: textblock
36766 #: ../src/guestfs.pod:2317
36767 msgid ""
36768 "The normal transitions are (1) CONFIG (when the handle is created, but there "
36769 "is no child process), (2) LAUNCHING (when the child process is booting up), "
36770 "(3) alternating between READY and BUSY as commands are issued to, and "
36771 "carried out by, the child process."
36772 msgstr ""
36773
36774 #. type: textblock
36775 #: ../src/guestfs.pod:2322
36776 msgid ""
36777 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
36778 "asynchronously at any time (eg. due to some internal error), and that causes "
36779 "the state to transition back to CONFIG."
36780 msgstr ""
36781
36782 #. type: textblock
36783 #: ../src/guestfs.pod:2326
36784 msgid ""
36785 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
36786 "issued when in the CONFIG state."
36787 msgstr ""
36788
36789 #. type: textblock
36790 #: ../src/guestfs.pod:2329
36791 msgid ""
36792 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
36793 "L</guestfs_launch> blocks until the child process is READY to accept "
36794 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
36795 "moves the state from CONFIG to LAUNCHING while it is running."
36796 msgstr ""
36797
36798 #. type: textblock
36799 #: ../src/guestfs.pod:2335
36800 msgid ""
36801 "API actions such as L</guestfs_mount> can only be issued when in the READY "
36802 "state.  These API calls block waiting for the command to be carried out "
36803 "(ie. the state to transition to BUSY and then back to READY).  There are no "
36804 "non-blocking versions, and no way to issue more than one command per handle "
36805 "at the same time."
36806 msgstr ""
36807
36808 #. type: textblock
36809 #: ../src/guestfs.pod:2341
36810 msgid ""
36811 "Finally, the child process sends asynchronous messages back to the main "
36812 "program, such as kernel log messages.  You can register a callback to "
36813 "receive these messages."
36814 msgstr ""
36815
36816 #. type: =head1
36817 #: ../src/guestfs.pod:2345
36818 msgid "INTERNALS"
36819 msgstr ""
36820
36821 #. type: =head2
36822 #: ../src/guestfs.pod:2347
36823 msgid "APPLIANCE BOOT PROCESS"
36824 msgstr ""
36825
36826 #. type: textblock
36827 #: ../src/guestfs.pod:2349
36828 msgid ""
36829 "This process has evolved and continues to evolve.  The description here "
36830 "corresponds only to the current version of libguestfs and is provided for "
36831 "information only."
36832 msgstr ""
36833
36834 #. type: textblock
36835 #: ../src/guestfs.pod:2353
36836 msgid ""
36837 "In order to follow the stages involved below, enable libguestfs debugging "
36838 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
36839 msgstr ""
36840
36841 #. type: =item
36842 #: ../src/guestfs.pod:2358
36843 msgid "Create the appliance"
36844 msgstr ""
36845
36846 #. type: textblock
36847 #: ../src/guestfs.pod:2360
36848 msgid ""
36849 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
36850 "initrd and the appliance."
36851 msgstr ""
36852
36853 #. type: textblock
36854 #: ../src/guestfs.pod:2363
36855 msgid ""
36856 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
36857 "directory if C<TMPDIR> is set)."
36858 msgstr ""
36859
36860 #. type: textblock
36861 #: ../src/guestfs.pod:2366
36862 msgid ""
36863 "For a complete description of how the appliance is created and cached, read "
36864 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
36865 msgstr ""
36866
36867 #. type: =item
36868 #: ../src/guestfs.pod:2370
36869 msgid "Start qemu and boot the kernel"
36870 msgstr ""
36871
36872 #. type: textblock
36873 #: ../src/guestfs.pod:2372
36874 msgid "qemu is invoked to boot the kernel."
36875 msgstr ""
36876
36877 #. type: =item
36878 #: ../src/guestfs.pod:2374
36879 msgid "Run the initrd"
36880 msgstr ""
36881
36882 #. type: textblock
36883 #: ../src/guestfs.pod:2376
36884 msgid ""
36885 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
36886 "appliance.  The purpose of the initrd is to load enough kernel modules in "
36887 "order that the appliance itself can be mounted and started."
36888 msgstr ""
36889
36890 #. type: textblock
36891 #: ../src/guestfs.pod:2380
36892 msgid ""
36893 "The initrd is a cpio archive called "
36894 "C</var/tmp/.guestfs-E<lt>UIDE<gt>/initrd>."
36895 msgstr ""
36896
36897 #. type: textblock
36898 #: ../src/guestfs.pod:2383
36899 msgid ""
36900 "When the initrd has started you will see messages showing that kernel "
36901 "modules are being loaded, similar to this:"
36902 msgstr ""
36903
36904 #. type: verbatim
36905 #: ../src/guestfs.pod:2386
36906 #, no-wrap
36907 msgid ""
36908 " febootstrap: ext2 mini initrd starting up\n"
36909 " febootstrap: mounting /sys\n"
36910 " febootstrap: internal insmod libcrc32c.ko\n"
36911 " febootstrap: internal insmod crc32c-intel.ko\n"
36912 "\n"
36913 msgstr ""
36914
36915 #. type: =item
36916 #: ../src/guestfs.pod:2391
36917 msgid "Find and mount the appliance device"
36918 msgstr ""
36919
36920 #. type: textblock
36921 #: ../src/guestfs.pod:2393
36922 msgid ""
36923 "The appliance is a sparse file containing an ext2 filesystem which contains "
36924 "a familiar (although reduced in size) Linux operating system.  It would "
36925 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
36926 msgstr ""
36927
36928 #. type: textblock
36929 #: ../src/guestfs.pod:2397
36930 msgid ""
36931 "The regular disks being inspected by libguestfs are the first devices "
36932 "exposed by qemu (eg. as C</dev/vda>)."
36933 msgstr ""
36934
36935 #. type: textblock
36936 #: ../src/guestfs.pod:2400
36937 msgid ""
36938 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
36939 "there was only one regular disk)."
36940 msgstr ""
36941
36942 #. type: textblock
36943 #: ../src/guestfs.pod:2403
36944 msgid ""
36945 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
36946 "and switch root into the appliance, and run C</init> from the appliance."
36947 msgstr ""
36948
36949 #. type: textblock
36950 #: ../src/guestfs.pod:2407
36951 msgid "If this works successfully you will see messages such as:"
36952 msgstr ""
36953
36954 #. type: verbatim
36955 #: ../src/guestfs.pod:2409
36956 #, no-wrap
36957 msgid ""
36958 " febootstrap: picked /sys/block/vdb/dev as root device\n"
36959 " febootstrap: creating /dev/root as block special 252:16\n"
36960 " febootstrap: mounting new root on /root\n"
36961 " febootstrap: chroot\n"
36962 " Starting /init script ...\n"
36963 "\n"
36964 msgstr ""
36965
36966 #. type: textblock
36967 #: ../src/guestfs.pod:2415
36968 msgid ""
36969 "Note that C<Starting /init script ...> indicates that the appliance's init "
36970 "script is now running."
36971 msgstr ""
36972
36973 #. type: =item
36974 #: ../src/guestfs.pod:2418
36975 msgid "Initialize the appliance"
36976 msgstr ""
36977
36978 #. type: textblock
36979 #: ../src/guestfs.pod:2420
36980 msgid ""
36981 "The appliance itself now initializes itself.  This involves starting certain "
36982 "processes like C<udev>, possibly printing some debug information, and "
36983 "finally running the daemon (C<guestfsd>)."
36984 msgstr ""
36985
36986 #. type: =item
36987 #: ../src/guestfs.pod:2424
36988 msgid "The daemon"
36989 msgstr ""
36990
36991 #. type: textblock
36992 #: ../src/guestfs.pod:2426
36993 msgid ""
36994 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
36995 "should see:"
36996 msgstr ""
36997
36998 #. type: verbatim
36999 #: ../src/guestfs.pod:2429
37000 #, no-wrap
37001 msgid ""
37002 " verbose daemon enabled\n"
37003 "\n"
37004 msgstr ""
37005
37006 #. type: textblock
37007 #: ../src/guestfs.pod:2431
37008 msgid ""
37009 "The daemon expects to see a named virtio-serial port exposed by qemu and "
37010 "connected on the other end to the library."
37011 msgstr ""
37012
37013 #. type: textblock
37014 #: ../src/guestfs.pod:2434
37015 msgid ""
37016 "The daemon connects to this port (and hence to the library) and sends a four "
37017 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
37018 "protocol (see below)."
37019 msgstr ""
37020
37021 #. type: =head2
37022 #: ../src/guestfs.pod:2440
37023 msgid "COMMUNICATION PROTOCOL"
37024 msgstr ""
37025
37026 #. type: textblock
37027 #: ../src/guestfs.pod:2442
37028 msgid ""
37029 "Don't rely on using this protocol directly.  This section documents how it "
37030 "currently works, but it may change at any time."
37031 msgstr ""
37032
37033 #. type: textblock
37034 #: ../src/guestfs.pod:2445
37035 msgid ""
37036 "The protocol used to talk between the library and the daemon running inside "
37037 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
37038 "1014, RFC 1832, RFC 4506)."
37039 msgstr ""
37040
37041 #. type: textblock
37042 #: ../src/guestfs.pod:2449
37043 msgid ""
37044 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
37045 "this file is automatically generated)."
37046 msgstr ""
37047
37048 #. type: textblock
37049 #: ../src/guestfs.pod:2452
37050 msgid ""
37051 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
37052 "and C<FileOut> parameters, which are handled with very simple request/reply "
37053 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
37054 "parameters, which use the same request and reply messages, but they may also "
37055 "be followed by files sent using a chunked encoding."
37056 msgstr ""
37057
37058 #. type: =head3
37059 #: ../src/guestfs.pod:2459
37060 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
37061 msgstr ""
37062
37063 #. type: textblock
37064 #: ../src/guestfs.pod:2461
37065 msgid "For ordinary functions, the request message is:"
37066 msgstr ""
37067
37068 #. type: verbatim
37069 #: ../src/guestfs.pod:2463
37070 #, no-wrap
37071 msgid ""
37072 " total length (header + arguments,\n"
37073 "      but not including the length word itself)\n"
37074 " struct guestfs_message_header (encoded as XDR)\n"
37075 " struct guestfs_<foo>_args (encoded as XDR)\n"
37076 "\n"
37077 msgstr ""
37078
37079 #. type: textblock
37080 #: ../src/guestfs.pod:2468
37081 msgid ""
37082 "The total length field allows the daemon to allocate a fixed size buffer "
37083 "into which it slurps the rest of the message.  As a result, the total length "
37084 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
37085 "effective size of any request is limited to somewhere under this size."
37086 msgstr ""
37087
37088 #. type: textblock
37089 #: ../src/guestfs.pod:2474
37090 msgid ""
37091 "Note also that many functions don't take any arguments, in which case the "
37092 "C<guestfs_I<foo>_args> is completely omitted."
37093 msgstr ""
37094
37095 #. type: textblock
37096 #: ../src/guestfs.pod:2477
37097 msgid ""
37098 "The header contains the procedure number (C<guestfs_proc>) which is how the "
37099 "receiver knows what type of args structure to expect, or none at all."
37100 msgstr ""
37101
37102 #. type: textblock
37103 #: ../src/guestfs.pod:2481
37104 msgid ""
37105 "For functions that take optional arguments, the optional arguments are "
37106 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
37107 "arguments.  A bitmask in the header indicates which optional arguments are "
37108 "meaningful.  The bitmask is also checked to see if it contains bits set "
37109 "which the daemon does not know about (eg. if more optional arguments were "
37110 "added in a later version of the library), and this causes the call to be "
37111 "rejected."
37112 msgstr ""
37113
37114 #. type: textblock
37115 #: ../src/guestfs.pod:2489
37116 msgid "The reply message for ordinary functions is:"
37117 msgstr ""
37118
37119 #. type: verbatim
37120 #: ../src/guestfs.pod:2491
37121 #, no-wrap
37122 msgid ""
37123 " total length (header + ret,\n"
37124 "      but not including the length word itself)\n"
37125 " struct guestfs_message_header (encoded as XDR)\n"
37126 " struct guestfs_<foo>_ret (encoded as XDR)\n"
37127 "\n"
37128 msgstr ""
37129
37130 #. type: textblock
37131 #: ../src/guestfs.pod:2496
37132 msgid ""
37133 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
37134 "functions that return no formal return values."
37135 msgstr ""
37136
37137 #. type: textblock
37138 #: ../src/guestfs.pod:2499
37139 msgid "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
37140 msgstr ""
37141
37142 #. type: textblock
37143 #: ../src/guestfs.pod:2502
37144 msgid ""
37145 "In the case of an error, a flag is set in the header, and the reply message "
37146 "is slightly changed:"
37147 msgstr ""
37148
37149 #. type: verbatim
37150 #: ../src/guestfs.pod:2505
37151 #, no-wrap
37152 msgid ""
37153 " total length (header + error,\n"
37154 "      but not including the length word itself)\n"
37155 " struct guestfs_message_header (encoded as XDR)\n"
37156 " struct guestfs_message_error (encoded as XDR)\n"
37157 "\n"
37158 msgstr ""
37159
37160 #. type: textblock
37161 #: ../src/guestfs.pod:2510
37162 msgid ""
37163 "The C<guestfs_message_error> structure contains the error message as a "
37164 "string."
37165 msgstr ""
37166
37167 #. type: =head3
37168 #: ../src/guestfs.pod:2513
37169 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
37170 msgstr ""
37171
37172 #. type: textblock
37173 #: ../src/guestfs.pod:2515
37174 msgid ""
37175 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
37176 "The normal request message is sent (see above).  However this is followed by "
37177 "a sequence of file chunks."
37178 msgstr ""
37179
37180 #. type: verbatim
37181 #: ../src/guestfs.pod:2519
37182 #, no-wrap
37183 msgid ""
37184 " total length (header + arguments,\n"
37185 "      but not including the length word itself,\n"
37186 "      and not including the chunks)\n"
37187 " struct guestfs_message_header (encoded as XDR)\n"
37188 " struct guestfs_<foo>_args (encoded as XDR)\n"
37189 " sequence of chunks for FileIn param #0\n"
37190 " sequence of chunks for FileIn param #1 etc.\n"
37191 "\n"
37192 msgstr ""
37193
37194 #. type: textblock
37195 #: ../src/guestfs.pod:2527
37196 msgid "The \"sequence of chunks\" is:"
37197 msgstr ""
37198
37199 #. type: verbatim
37200 #: ../src/guestfs.pod:2529
37201 #, no-wrap
37202 msgid ""
37203 " length of chunk (not including length word itself)\n"
37204 " struct guestfs_chunk (encoded as XDR)\n"
37205 " length of chunk\n"
37206 " struct guestfs_chunk (encoded as XDR)\n"
37207 "   ...\n"
37208 " length of chunk\n"
37209 " struct guestfs_chunk (with data.data_len == 0)\n"
37210 "\n"
37211 msgstr ""
37212
37213 #. type: textblock
37214 #: ../src/guestfs.pod:2537
37215 msgid ""
37216 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
37217 "is set in the final chunk to indicate either successful completion or early "
37218 "cancellation."
37219 msgstr ""
37220
37221 #. type: textblock
37222 #: ../src/guestfs.pod:2541
37223 msgid ""
37224 "At time of writing there are no functions that have more than one FileIn "
37225 "parameter.  However this is (theoretically) supported, by sending the "
37226 "sequence of chunks for each FileIn parameter one after another (from left to "
37227 "right)."
37228 msgstr ""
37229
37230 #. type: textblock
37231 #: ../src/guestfs.pod:2546
37232 msgid ""
37233 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
37234 "transfer.  The library does this by sending a chunk with a special flag set "
37235 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
37236 "RPC, does I<not> send any reply, and goes back to reading the next request."
37237 msgstr ""
37238
37239 #. type: textblock
37240 #: ../src/guestfs.pod:2552
37241 msgid ""
37242 "The daemon may also cancel.  It does this by writing a special word "
37243 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
37244 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
37245 "cancel chunk).  The special word is chosen so that even if cancellation "
37246 "happens right at the end of the transfer (after the library has finished "
37247 "writing and has started listening for the reply), the \"spurious\" cancel "
37248 "flag will not be confused with the reply message."
37249 msgstr ""
37250
37251 #. type: textblock
37252 #: ../src/guestfs.pod:2561
37253 msgid ""
37254 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
37255 "limit), and also files where the size is not known in advance (eg. from "
37256 "pipes or sockets).  However the chunks are rather small "
37257 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
37258 "to keep much in memory."
37259 msgstr ""
37260
37261 #. type: =head3
37262 #: ../src/guestfs.pod:2567
37263 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
37264 msgstr ""
37265
37266 #. type: textblock
37267 #: ../src/guestfs.pod:2569
37268 msgid ""
37269 "The protocol for FileOut parameters is exactly the same as for FileIn "
37270 "parameters, but with the roles of daemon and library reversed."
37271 msgstr ""
37272
37273 #. type: verbatim
37274 #: ../src/guestfs.pod:2572
37275 #, no-wrap
37276 msgid ""
37277 " total length (header + ret,\n"
37278 "      but not including the length word itself,\n"
37279 "      and not including the chunks)\n"
37280 " struct guestfs_message_header (encoded as XDR)\n"
37281 " struct guestfs_<foo>_ret (encoded as XDR)\n"
37282 " sequence of chunks for FileOut param #0\n"
37283 " sequence of chunks for FileOut param #1 etc.\n"
37284 "\n"
37285 msgstr ""
37286
37287 #. type: =head3
37288 #: ../src/guestfs.pod:2580
37289 msgid "INITIAL MESSAGE"
37290 msgstr ""
37291
37292 #. type: textblock
37293 #: ../src/guestfs.pod:2582
37294 msgid ""
37295 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
37296 "which indicates that the guest and daemon is alive.  This is what "
37297 "L</guestfs_launch> waits for."
37298 msgstr ""
37299
37300 #. type: =head3
37301 #: ../src/guestfs.pod:2586
37302 msgid "PROGRESS NOTIFICATION MESSAGES"
37303 msgstr ""
37304
37305 #. type: textblock
37306 #: ../src/guestfs.pod:2588
37307 msgid ""
37308 "The daemon may send progress notification messages at any time.  These are "
37309 "distinguished by the normal length word being replaced by "
37310 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
37311 msgstr ""
37312
37313 #. type: textblock
37314 #: ../src/guestfs.pod:2592
37315 msgid ""
37316 "The library turns them into progress callbacks (see "
37317 "L</GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards "
37318 "them if not."
37319 msgstr ""
37320
37321 #. type: textblock
37322 #: ../src/guestfs.pod:2596
37323 msgid ""
37324 "The daemon self-limits the frequency of progress messages it sends (see "
37325 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
37326 "messages."
37327 msgstr ""
37328
37329 #. type: =head1
37330 #: ../src/guestfs.pod:2600
37331 msgid "LIBGUESTFS VERSION NUMBERS"
37332 msgstr ""
37333
37334 #. type: textblock
37335 #: ../src/guestfs.pod:2602
37336 msgid ""
37337 "Since April 2010, libguestfs has started to make separate development and "
37338 "stable releases, along with corresponding branches in our git repository.  "
37339 "These separate releases can be identified by version number:"
37340 msgstr ""
37341
37342 #. type: verbatim
37343 #: ../src/guestfs.pod:2607
37344 #, no-wrap
37345 msgid ""
37346 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
37347 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
37348 "       |\n"
37349 "       v\n"
37350 " 1  .  3  .  5\n"
37351 " ^           ^\n"
37352 " |           |\n"
37353 " |           `-------- sub-version\n"
37354 " |\n"
37355 " `------ always '1' because we don't change the ABI\n"
37356 "\n"
37357 msgstr ""
37358
37359 #. type: textblock
37360 #: ../src/guestfs.pod:2618
37361 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
37362 msgstr ""
37363
37364 #. type: textblock
37365 #: ../src/guestfs.pod:2620
37366 msgid ""
37367 "As time passes we cherry pick fixes from the development branch and backport "
37368 "those into the stable branch, the effect being that the stable branch should "
37369 "get more stable and less buggy over time.  So the stable releases are ideal "
37370 "for people who don't need new features but would just like the software to "
37371 "work."
37372 msgstr ""
37373
37374 #. type: textblock
37375 #: ../src/guestfs.pod:2626
37376 msgid "Our criteria for backporting changes are:"
37377 msgstr ""
37378
37379 #. type: textblock
37380 #: ../src/guestfs.pod:2632
37381 msgid ""
37382 "Documentation changes which don't affect any code are backported unless the "
37383 "documentation refers to a future feature which is not in stable."
37384 msgstr ""
37385
37386 #. type: textblock
37387 #: ../src/guestfs.pod:2638
37388 msgid ""
37389 "Bug fixes which are not controversial, fix obvious problems, and have been "
37390 "well tested are backported."
37391 msgstr ""
37392
37393 #. type: textblock
37394 #: ../src/guestfs.pod:2643
37395 msgid ""
37396 "Simple rearrangements of code which shouldn't affect how it works get "
37397 "backported.  This is so that the code in the two branches doesn't get too "
37398 "far out of step, allowing us to backport future fixes more easily."
37399 msgstr ""
37400
37401 #. type: textblock
37402 #: ../src/guestfs.pod:2649
37403 msgid ""
37404 "We I<don't> backport new features, new APIs, new tools etc, except in one "
37405 "exceptional case: the new feature is required in order to implement an "
37406 "important bug fix."
37407 msgstr ""
37408
37409 #. type: textblock
37410 #: ../src/guestfs.pod:2655
37411 msgid ""
37412 "A new stable branch starts when we think the new features in development are "
37413 "substantial and compelling enough over the current stable branch to warrant "
37414 "it.  When that happens we create new stable and development versions 1.N.0 "
37415 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
37416 "stable at this point, but by backporting fixes from development, that branch "
37417 "will stabilize over time."
37418 msgstr ""
37419
37420 #. type: =head1
37421 #: ../src/guestfs.pod:2663
37422 msgid "EXTENDING LIBGUESTFS"
37423 msgstr ""
37424
37425 #. type: =head2
37426 #: ../src/guestfs.pod:2665
37427 msgid "ADDING A NEW API ACTION"
37428 msgstr ""
37429
37430 #. type: textblock
37431 #: ../src/guestfs.pod:2667
37432 msgid ""
37433 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
37434 "documentation) are generated, and this makes it easy to extend the "
37435 "libguestfs API."
37436 msgstr ""
37437
37438 #. type: textblock
37439 #: ../src/guestfs.pod:2671
37440 msgid "To add a new API action there are two changes:"
37441 msgstr ""
37442
37443 #. type: textblock
37444 #: ../src/guestfs.pod:2677
37445 msgid ""
37446 "You need to add a description of the call (name, parameters, return type, "
37447 "tests, documentation) to C<generator/generator_actions.ml>."
37448 msgstr ""
37449
37450 #. type: textblock
37451 #: ../src/guestfs.pod:2680
37452 msgid ""
37453 "There are two sorts of API action, depending on whether the call goes "
37454 "through to the daemon in the appliance, or is serviced entirely by the "
37455 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
37456 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
37457 "an example of the latter, since a trace flag is maintained in the handle and "
37458 "all tracing is done on the library side."
37459 msgstr ""
37460
37461 #. type: textblock
37462 #: ../src/guestfs.pod:2688
37463 msgid ""
37464 "Most new actions are of the first type, and get added to the "
37465 "C<daemon_functions> list.  Each function has a unique procedure number used "
37466 "in the RPC protocol which is assigned to that action when we publish "
37467 "libguestfs and cannot be reused.  Take the latest procedure number and "
37468 "increment it."
37469 msgstr ""
37470
37471 #. type: textblock
37472 #: ../src/guestfs.pod:2694
37473 msgid ""
37474 "For library-only actions of the second type, add to the "
37475 "C<non_daemon_functions> list.  Since these functions are serviced by the "
37476 "library and do not travel over the RPC mechanism to the daemon, these "
37477 "functions do not need a procedure number, and so the procedure number is set "
37478 "to C<-1>."
37479 msgstr ""
37480
37481 #. type: textblock
37482 #: ../src/guestfs.pod:2702
37483 msgid "Implement the action (in C):"
37484 msgstr ""
37485
37486 #. type: textblock
37487 #: ../src/guestfs.pod:2704
37488 msgid ""
37489 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
37490 "C<daemon/> directory."
37491 msgstr ""
37492
37493 #. type: textblock
37494 #: ../src/guestfs.pod:2707
37495 msgid ""
37496 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
37497 "(note: double underscore) in the C<src/> directory."
37498 msgstr ""
37499
37500 #. type: textblock
37501 #: ../src/guestfs.pod:2710
37502 msgid "In either case, use another function as an example of what to do."
37503 msgstr ""
37504
37505 #. type: textblock
37506 #: ../src/guestfs.pod:2714
37507 msgid "After making these changes, use C<make> to compile."
37508 msgstr ""
37509
37510 #. type: textblock
37511 #: ../src/guestfs.pod:2716
37512 msgid ""
37513 "Note that you don't need to implement the RPC, language bindings, manual "
37514 "pages or anything else.  It's all automatically generated from the OCaml "
37515 "description."
37516 msgstr ""
37517
37518 #. type: =head2
37519 #: ../src/guestfs.pod:2720
37520 msgid "ADDING TESTS FOR AN API ACTION"
37521 msgstr ""
37522
37523 #. type: textblock
37524 #: ../src/guestfs.pod:2722
37525 msgid ""
37526 "You can supply zero or as many tests as you want per API call.  The tests "
37527 "can either be added as part of the API description "
37528 "(C<generator/generator_actions.ml>), or in some rarer cases you may want to "
37529 "drop a script into C<regressions/>.  Note that adding a script to "
37530 "C<regressions/> is slower, so if possible use the first method."
37531 msgstr ""
37532
37533 #. type: textblock
37534 #: ../src/guestfs.pod:2728
37535 msgid ""
37536 "The following describes the test environment used when you add an API test "
37537 "in C<generator_actions.ml>."
37538 msgstr ""
37539
37540 #. type: textblock
37541 #: ../src/guestfs.pod:2731
37542 msgid "The test environment has 4 block devices:"
37543 msgstr ""
37544
37545 #. type: =item
37546 #: ../src/guestfs.pod:2735
37547 msgid "C</dev/sda> 500MB"
37548 msgstr ""
37549
37550 #. type: textblock
37551 #: ../src/guestfs.pod:2737
37552 msgid "General block device for testing."
37553 msgstr ""
37554
37555 #. type: =item
37556 #: ../src/guestfs.pod:2739
37557 msgid "C</dev/sdb> 50MB"
37558 msgstr ""
37559
37560 #. type: textblock
37561 #: ../src/guestfs.pod:2741
37562 msgid ""
37563 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
37564 "operations."
37565 msgstr ""
37566
37567 #. type: =item
37568 #: ../src/guestfs.pod:2744
37569 msgid "C</dev/sdc> 10MB"
37570 msgstr ""
37571
37572 #. type: textblock
37573 #: ../src/guestfs.pod:2746
37574 msgid "Used in a few tests where two block devices are needed."
37575 msgstr ""
37576
37577 #. type: =item
37578 #: ../src/guestfs.pod:2748
37579 msgid "C</dev/sdd>"
37580 msgstr ""
37581
37582 #. type: textblock
37583 #: ../src/guestfs.pod:2750
37584 msgid "ISO with fixed content (see C<images/test.iso>)."
37585 msgstr ""
37586
37587 #. type: textblock
37588 #: ../src/guestfs.pod:2754
37589 msgid ""
37590 "To be able to run the tests in a reasonable amount of time, the libguestfs "
37591 "appliance and block devices are reused between tests.  So don't try testing "
37592 "L</guestfs_kill_subprocess> :-x"
37593 msgstr ""
37594
37595 #. type: textblock
37596 #: ../src/guestfs.pod:2758
37597 msgid ""
37598 "Each test starts with an initial scenario, selected using one of the "
37599 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
37600 "initialize the disks mentioned above in a particular way as documented in "
37601 "C<generator_types.ml>.  You should not assume anything about the previous "
37602 "contents of other disks that are not initialized."
37603 msgstr ""
37604
37605 #. type: textblock
37606 #: ../src/guestfs.pod:2764
37607 msgid ""
37608 "You can add a prerequisite clause to any individual test.  This is a "
37609 "run-time check, which, if it fails, causes the test to be skipped.  Useful "
37610 "if testing a command which might not work on all variations of libguestfs "
37611 "builds.  A test that has prerequisite of C<Always> means to run "
37612 "unconditionally."
37613 msgstr ""
37614
37615 #. type: textblock
37616 #: ../src/guestfs.pod:2770
37617 msgid ""
37618 "In addition, packagers can skip individual tests by setting environment "
37619 "variables before running C<make check>."
37620 msgstr ""
37621
37622 #. type: verbatim
37623 #: ../src/guestfs.pod:2773
37624 #, no-wrap
37625 msgid ""
37626 " SKIP_TEST_<CMD>_<NUM>=1\n"
37627 "\n"
37628 msgstr ""
37629
37630 #. type: textblock
37631 #: ../src/guestfs.pod:2775
37632 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
37633 msgstr ""
37634
37635 #. type: textblock
37636 #: ../src/guestfs.pod:2777
37637 msgid "or:"
37638 msgstr ""
37639
37640 #. type: verbatim
37641 #: ../src/guestfs.pod:2779
37642 #, no-wrap
37643 msgid ""
37644 " SKIP_TEST_<CMD>=1\n"
37645 "\n"
37646 msgstr ""
37647
37648 #. type: textblock
37649 #: ../src/guestfs.pod:2781
37650 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
37651 msgstr ""
37652
37653 #. type: textblock
37654 #: ../src/guestfs.pod:2783
37655 msgid "Packagers can run only certain tests by setting for example:"
37656 msgstr ""
37657
37658 #. type: verbatim
37659 #: ../src/guestfs.pod:2785
37660 #, no-wrap
37661 msgid ""
37662 " TEST_ONLY=\"vfs_type zerofree\"\n"
37663 "\n"
37664 msgstr ""
37665
37666 #. type: textblock
37667 #: ../src/guestfs.pod:2787
37668 msgid ""
37669 "See C<capitests/tests.c> for more details of how these environment variables "
37670 "work."
37671 msgstr ""
37672
37673 #. type: =head2
37674 #: ../src/guestfs.pod:2790
37675 msgid "DEBUGGING NEW API ACTIONS"
37676 msgstr ""
37677
37678 #. type: textblock
37679 #: ../src/guestfs.pod:2792
37680 msgid "Test new actions work before submitting them."
37681 msgstr ""
37682
37683 #. type: textblock
37684 #: ../src/guestfs.pod:2794
37685 msgid "You can use guestfish to try out new commands."
37686 msgstr ""
37687
37688 #. type: textblock
37689 #: ../src/guestfs.pod:2796
37690 msgid ""
37691 "Debugging the daemon is a problem because it runs inside a minimal "
37692 "environment.  However you can fprintf messages in the daemon to stderr, and "
37693 "they will show up if you use C<guestfish -v>."
37694 msgstr ""
37695
37696 #. type: =head2
37697 #: ../src/guestfs.pod:2800
37698 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
37699 msgstr ""
37700
37701 #. type: textblock
37702 #: ../src/guestfs.pod:2802
37703 msgid ""
37704 "Our C source code generally adheres to some basic code-formatting "
37705 "conventions.  The existing code base is not totally consistent on this "
37706 "front, but we do prefer that contributed code be formatted similarly.  In "
37707 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
37708 "indentation level, and other than that, follow the K&R style."
37709 msgstr ""
37710
37711 #. type: textblock
37712 #: ../src/guestfs.pod:2808
37713 msgid ""
37714 "If you use Emacs, add the following to one of one of your start-up files "
37715 "(e.g., ~/.emacs), to help ensure that you get indentation right:"
37716 msgstr ""
37717
37718 #. type: verbatim
37719 #: ../src/guestfs.pod:2811
37720 #, no-wrap
37721 msgid ""
37722 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
37723 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
37724 " (add-hook 'find-file-hook\n"
37725 "     '(lambda () (if (and buffer-file-name\n"
37726 "                          (string-match \"/libguestfs\\\\>\"\n"
37727 "                              (buffer-file-name))\n"
37728 "                          (not (string-equal mode-name \"Change Log\"))\n"
37729 "                          (not (string-equal mode-name \"Makefile\")))\n"
37730 "                     (setq indent-tabs-mode nil))))\n"
37731 " \n"
37732 msgstr ""
37733
37734 #. type: verbatim
37735 #: ../src/guestfs.pod:2821
37736 #, no-wrap
37737 msgid ""
37738 " ;;; When editing C sources in libguestfs, use this style.\n"
37739 " (defun libguestfs-c-mode ()\n"
37740 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
37741 "   (interactive)\n"
37742 "   (c-set-style \"K&R\")\n"
37743 "   (setq c-indent-level 2)\n"
37744 "   (setq c-basic-offset 2))\n"
37745 " (add-hook 'c-mode-hook\n"
37746 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
37747 "                               (buffer-file-name))\n"
37748 "                           (libguestfs-c-mode))))\n"
37749 "\n"
37750 msgstr ""
37751
37752 #. type: textblock
37753 #: ../src/guestfs.pod:2833
37754 msgid "Enable warnings when compiling (and fix any problems this finds):"
37755 msgstr ""
37756
37757 #. type: verbatim
37758 #: ../src/guestfs.pod:2836
37759 #, no-wrap
37760 msgid ""
37761 " ./configure --enable-gcc-warnings\n"
37762 "\n"
37763 msgstr ""
37764
37765 #. type: textblock
37766 #: ../src/guestfs.pod:2838
37767 msgid "Useful targets are:"
37768 msgstr ""
37769
37770 #. type: verbatim
37771 #: ../src/guestfs.pod:2840
37772 #, no-wrap
37773 msgid ""
37774 " make syntax-check  # checks the syntax of the C code\n"
37775 " make check         # runs the test suite\n"
37776 "\n"
37777 msgstr ""
37778
37779 #. type: =head2
37780 #: ../src/guestfs.pod:2843
37781 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
37782 msgstr ""
37783
37784 #. type: textblock
37785 #: ../src/guestfs.pod:2845
37786 msgid ""
37787 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
37788 "which are used to do shell quoting."
37789 msgstr ""
37790
37791 #. type: =item
37792 #: ../src/guestfs.pod:2850
37793 msgid "%Q"
37794 msgstr ""
37795
37796 #. type: textblock
37797 #: ../src/guestfs.pod:2852
37798 msgid ""
37799 "Simple shell quoted string.  Any spaces or other shell characters are "
37800 "escaped for you."
37801 msgstr ""
37802
37803 #. type: =item
37804 #: ../src/guestfs.pod:2855
37805 msgid "%R"
37806 msgstr ""
37807
37808 #. type: textblock
37809 #: ../src/guestfs.pod:2857
37810 msgid ""
37811 "Same as C<%Q> except the string is treated as a path which is prefixed by "
37812 "the sysroot."
37813 msgstr ""
37814
37815 #. type: verbatim
37816 #: ../src/guestfs.pod:2864
37817 #, no-wrap
37818 msgid ""
37819 " asprintf (&cmd, \"cat %R\", path);\n"
37820 "\n"
37821 msgstr ""
37822
37823 #. type: textblock
37824 #: ../src/guestfs.pod:2866
37825 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
37826 msgstr ""
37827
37828 #. type: textblock
37829 #: ../src/guestfs.pod:2868
37830 msgid ""
37831 "I<Note:> Do I<not> use these when you are passing parameters to the "
37832 "C<command{,r,v,rv}()> functions.  These parameters do NOT need to be quoted "
37833 "because they are not passed via the shell (instead, straight to exec).  You "
37834 "probably want to use the C<sysroot_path()> function however."
37835 msgstr ""
37836
37837 #. type: =head2
37838 #: ../src/guestfs.pod:2874
37839 msgid "SUBMITTING YOUR NEW API ACTIONS"
37840 msgstr ""
37841
37842 #. type: textblock
37843 #: ../src/guestfs.pod:2876
37844 msgid ""
37845 "Submit patches to the mailing list: "
37846 "L<http://www.redhat.com/mailman/listinfo/libguestfs> and CC to "
37847 "L<rjones@redhat.com>."
37848 msgstr ""
37849
37850 #. type: =head2
37851 #: ../src/guestfs.pod:2880
37852 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
37853 msgstr ""
37854
37855 #. type: textblock
37856 #: ../src/guestfs.pod:2882
37857 msgid "We support i18n (gettext anyhow) in the library."
37858 msgstr ""
37859
37860 #. type: textblock
37861 #: ../src/guestfs.pod:2884
37862 msgid ""
37863 "However many messages come from the daemon, and we don't translate those at "
37864 "the moment.  One reason is that the appliance generally has all locale files "
37865 "removed from it, because they take up a lot of space.  So we'd have to readd "
37866 "some of those, as well as copying our PO files into the appliance."
37867 msgstr ""
37868
37869 #. type: textblock
37870 #: ../src/guestfs.pod:2890
37871 msgid ""
37872 "Debugging messages are never translated, since they are intended for the "
37873 "programmers."
37874 msgstr ""
37875
37876 #. type: =head2
37877 #: ../src/guestfs.pod:2893
37878 msgid "SOURCE CODE SUBDIRECTORIES"
37879 msgstr ""
37880
37881 #. type: =item
37882 #: ../src/guestfs.pod:2897
37883 msgid "C<align>"
37884 msgstr ""
37885
37886 #. type: textblock
37887 #: ../src/guestfs.pod:2899
37888 msgid "L<virt-alignment-scan(1)> command and documentation."
37889 msgstr ""
37890
37891 #. type: textblock
37892 #: ../src/guestfs.pod:2903
37893 msgid "The libguestfs appliance, build scripts and so on."
37894 msgstr ""
37895
37896 #. type: =item
37897 #: ../src/guestfs.pod:2905
37898 msgid "C<capitests>"
37899 msgstr ""
37900
37901 #. type: textblock
37902 #: ../src/guestfs.pod:2907
37903 msgid "Automated tests of the C API."
37904 msgstr ""
37905
37906 #. type: =item
37907 #: ../src/guestfs.pod:2909
37908 msgid "C<cat>"
37909 msgstr ""
37910
37911 #. type: textblock
37912 #: ../src/guestfs.pod:2911
37913 msgid ""
37914 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
37915 "documentation."
37916 msgstr ""
37917
37918 #. type: =item
37919 #: ../src/guestfs.pod:2914
37920 msgid "C<caution>"
37921 msgstr ""
37922
37923 #. type: textblock
37924 #: ../src/guestfs.pod:2916
37925 msgid ""
37926 "Safety and liveness tests of components that libguestfs depends upon (not of "
37927 "libguestfs itself).  Mainly this is for qemu and the kernel."
37928 msgstr ""
37929
37930 #. type: =item
37931 #: ../src/guestfs.pod:2919
37932 msgid "C<clone>"
37933 msgstr ""
37934
37935 #. type: textblock
37936 #: ../src/guestfs.pod:2921
37937 msgid ""
37938 "Tools for cloning virtual machines.  Currently contains L<virt-sysprep(1)> "
37939 "command and documentation."
37940 msgstr ""
37941
37942 #. type: =item
37943 #: ../src/guestfs.pod:2924
37944 msgid "C<contrib>"
37945 msgstr ""
37946
37947 #. type: textblock
37948 #: ../src/guestfs.pod:2926
37949 msgid "Outside contributions, experimental parts."
37950 msgstr ""
37951
37952 #. type: =item
37953 #: ../src/guestfs.pod:2928
37954 msgid "C<daemon>"
37955 msgstr ""
37956
37957 #. type: textblock
37958 #: ../src/guestfs.pod:2930
37959 msgid ""
37960 "The daemon that runs inside the libguestfs appliance and carries out "
37961 "actions."
37962 msgstr ""
37963
37964 #. type: =item
37965 #: ../src/guestfs.pod:2933
37966 msgid "C<df>"
37967 msgstr ""
37968
37969 #. type: textblock
37970 #: ../src/guestfs.pod:2935
37971 msgid "L<virt-df(1)> command and documentation."
37972 msgstr ""
37973
37974 #. type: =item
37975 #: ../src/guestfs.pod:2937
37976 msgid "C<edit>"
37977 msgstr ""
37978
37979 #. type: textblock
37980 #: ../src/guestfs.pod:2939
37981 msgid "L<virt-edit(1)> command and documentation."
37982 msgstr ""
37983
37984 #. type: =item
37985 #: ../src/guestfs.pod:2941
37986 msgid "C<examples>"
37987 msgstr ""
37988
37989 #. type: textblock
37990 #: ../src/guestfs.pod:2943
37991 msgid "C API example code."
37992 msgstr ""
37993
37994 #. type: =item
37995 #: ../src/guestfs.pod:2945
37996 msgid "C<fish>"
37997 msgstr ""
37998
37999 #. type: textblock
38000 #: ../src/guestfs.pod:2947
38001 msgid ""
38002 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
38003 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
38004 "L<virt-tar-out(1)>."
38005 msgstr ""
38006
38007 #. type: =item
38008 #: ../src/guestfs.pod:2951
38009 msgid "C<fuse>"
38010 msgstr ""
38011
38012 #. type: textblock
38013 #: ../src/guestfs.pod:2953
38014 msgid "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
38015 msgstr ""
38016
38017 #. type: =item
38018 #: ../src/guestfs.pod:2955
38019 msgid "C<generator>"
38020 msgstr ""
38021
38022 #. type: textblock
38023 #: ../src/guestfs.pod:2957
38024 msgid ""
38025 "The crucially important generator, used to automatically generate large "
38026 "amounts of boilerplate C code for things like RPC and bindings."
38027 msgstr ""
38028
38029 #. type: =item
38030 #: ../src/guestfs.pod:2960
38031 msgid "C<images>"
38032 msgstr ""
38033
38034 #. type: textblock
38035 #: ../src/guestfs.pod:2962
38036 msgid "Files used by the test suite."
38037 msgstr ""
38038
38039 #. type: textblock
38040 #: ../src/guestfs.pod:2964
38041 msgid "Some \"phony\" guest images which we test against."
38042 msgstr ""
38043
38044 #. type: =item
38045 #: ../src/guestfs.pod:2966
38046 msgid "C<inspector>"
38047 msgstr ""
38048
38049 #. type: textblock
38050 #: ../src/guestfs.pod:2968
38051 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
38052 msgstr ""
38053
38054 #. type: =item
38055 #: ../src/guestfs.pod:2970
38056 msgid "C<logo>"
38057 msgstr ""
38058
38059 #. type: textblock
38060 #: ../src/guestfs.pod:2972
38061 msgid "Logo used on the website.  The fish is called Arthur by the way."
38062 msgstr ""
38063
38064 #. type: =item
38065 #: ../src/guestfs.pod:2974
38066 msgid "C<m4>"
38067 msgstr ""
38068
38069 #. type: textblock
38070 #: ../src/guestfs.pod:2976
38071 msgid "M4 macros used by autoconf."
38072 msgstr ""
38073
38074 #. type: =item
38075 #: ../src/guestfs.pod:2978
38076 msgid "C<po>"
38077 msgstr ""
38078
38079 #. type: textblock
38080 #: ../src/guestfs.pod:2980
38081 msgid "Translations of simple gettext strings."
38082 msgstr ""
38083
38084 #. type: =item
38085 #: ../src/guestfs.pod:2982
38086 msgid "C<po-docs>"
38087 msgstr ""
38088
38089 #. type: textblock
38090 #: ../src/guestfs.pod:2984
38091 msgid ""
38092 "The build infrastructure and PO files for translations of manpages and POD "
38093 "files.  Eventually this will be combined with the C<po> directory, but that "
38094 "is rather complicated."
38095 msgstr ""
38096
38097 #. type: =item
38098 #: ../src/guestfs.pod:2988
38099 msgid "C<regressions>"
38100 msgstr ""
38101
38102 #. type: textblock
38103 #: ../src/guestfs.pod:2990
38104 msgid "Regression tests."
38105 msgstr ""
38106
38107 #. type: =item
38108 #: ../src/guestfs.pod:2992
38109 msgid "C<rescue>"
38110 msgstr ""
38111
38112 #. type: textblock
38113 #: ../src/guestfs.pod:2994
38114 msgid "L<virt-rescue(1)> command and documentation."
38115 msgstr ""
38116
38117 #. type: =item
38118 #: ../src/guestfs.pod:2996
38119 msgid "C<resize>"
38120 msgstr ""
38121
38122 #. type: textblock
38123 #: ../src/guestfs.pod:2998
38124 msgid "L<virt-resize(1)> command and documentation."
38125 msgstr ""
38126
38127 #. type: =item
38128 #: ../src/guestfs.pod:3000
38129 msgid "C<sparsify>"
38130 msgstr ""
38131
38132 #. type: textblock
38133 #: ../src/guestfs.pod:3002
38134 msgid "L<virt-sparsify(1)> command and documentation."
38135 msgstr ""
38136
38137 #. type: =item
38138 #: ../src/guestfs.pod:3004
38139 msgid "C<src>"
38140 msgstr ""
38141
38142 #. type: textblock
38143 #: ../src/guestfs.pod:3006
38144 msgid "Source code to the C library."
38145 msgstr ""
38146
38147 #. type: =item
38148 #: ../src/guestfs.pod:3008
38149 msgid "C<tools>"
38150 msgstr ""
38151
38152 #. type: textblock
38153 #: ../src/guestfs.pod:3010
38154 msgid "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
38155 msgstr ""
38156
38157 #. type: =item
38158 #: ../src/guestfs.pod:3012
38159 msgid "C<test-tool>"
38160 msgstr ""
38161
38162 #. type: textblock
38163 #: ../src/guestfs.pod:3014
38164 msgid ""
38165 "Test tool for end users to test if their qemu/kernel combination will work "
38166 "with libguestfs."
38167 msgstr ""
38168
38169 #. type: =item
38170 #: ../src/guestfs.pod:3017
38171 msgid "C<csharp>"
38172 msgstr ""
38173
38174 #. type: =item
38175 #: ../src/guestfs.pod:3019
38176 msgid "C<erlang>"
38177 msgstr ""
38178
38179 #. type: =item
38180 #: ../src/guestfs.pod:3021
38181 msgid "C<haskell>"
38182 msgstr ""
38183
38184 #. type: =item
38185 #: ../src/guestfs.pod:3023
38186 msgid "C<java>"
38187 msgstr ""
38188
38189 #. type: =item
38190 #: ../src/guestfs.pod:3025
38191 msgid "C<ocaml>"
38192 msgstr ""
38193
38194 #. type: =item
38195 #: ../src/guestfs.pod:3027
38196 msgid "C<php>"
38197 msgstr ""
38198
38199 #. type: =item
38200 #: ../src/guestfs.pod:3029
38201 msgid "C<perl>"
38202 msgstr ""
38203
38204 #. type: =item
38205 #: ../src/guestfs.pod:3031
38206 msgid "C<python>"
38207 msgstr ""
38208
38209 #. type: =item
38210 #: ../src/guestfs.pod:3033
38211 msgid "C<ruby>"
38212 msgstr ""
38213
38214 #. type: textblock
38215 #: ../src/guestfs.pod:3035
38216 msgid "Language bindings."
38217 msgstr ""
38218
38219 #. type: =head2
38220 #: ../src/guestfs.pod:3039
38221 msgid "MAKING A STABLE RELEASE"
38222 msgstr ""
38223
38224 #. type: textblock
38225 #: ../src/guestfs.pod:3041
38226 msgid ""
38227 "When we make a stable release, there are several steps documented here.  See "
38228 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
38229 "branch policy."
38230 msgstr ""
38231
38232 #. type: textblock
38233 #: ../src/guestfs.pod:3049
38234 msgid "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
38235 msgstr ""
38236
38237 #. type: textblock
38238 #: ../src/guestfs.pod:3054
38239 msgid "Finalize RELEASE-NOTES."
38240 msgstr ""
38241
38242 #. type: textblock
38243 #: ../src/guestfs.pod:3058
38244 msgid "Update ROADMAP."
38245 msgstr ""
38246
38247 #. type: textblock
38248 #: ../src/guestfs.pod:3062
38249 msgid "Run C<src/api-support/update-from-tarballs.sh>."
38250 msgstr ""
38251
38252 #. type: textblock
38253 #: ../src/guestfs.pod:3066
38254 msgid "Push and pull from Transifex."
38255 msgstr ""
38256
38257 #. type: textblock
38258 #: ../src/guestfs.pod:3068
38259 msgid "Run:"
38260 msgstr ""
38261
38262 #. type: verbatim
38263 #: ../src/guestfs.pod:3070
38264 #, no-wrap
38265 msgid ""
38266 " tx push -s\n"
38267 "\n"
38268 msgstr ""
38269
38270 #. type: textblock
38271 #: ../src/guestfs.pod:3072
38272 msgid "to push the latest POT files to Transifex.  Then run:"
38273 msgstr ""
38274
38275 #. type: verbatim
38276 #: ../src/guestfs.pod:3074
38277 #, no-wrap
38278 msgid ""
38279 " ./tx-pull.sh\n"
38280 "\n"
38281 msgstr ""
38282
38283 #. type: textblock
38284 #: ../src/guestfs.pod:3076
38285 msgid "which is a wrapper to pull the latest translated C<*.po> files."
38286 msgstr ""
38287
38288 #. type: textblock
38289 #: ../src/guestfs.pod:3080
38290 msgid ""
38291 "Create new stable and development directories under "
38292 "L<http://libguestfs.org/download>."
38293 msgstr ""
38294
38295 #. type: textblock
38296 #: ../src/guestfs.pod:3085
38297 msgid "Create the branch in git:"
38298 msgstr ""
38299
38300 #. type: verbatim
38301 #: ../src/guestfs.pod:3087
38302 #, no-wrap
38303 msgid ""
38304 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
38305 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
38306 " git branch stable-1.XX\n"
38307 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
38308 "\n"
38309 msgstr ""
38310
38311 #. type: =head1
38312 #: ../src/guestfs.pod:3094
38313 msgid "LIMITS"
38314 msgstr ""
38315
38316 #. type: =head2
38317 #: ../src/guestfs.pod:3096
38318 msgid "PROTOCOL LIMITS"
38319 msgstr ""
38320
38321 #. type: textblock
38322 #: ../src/guestfs.pod:3098
38323 msgid ""
38324 "Internally libguestfs uses a message-based protocol to pass API calls and "
38325 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
38326 "plenty more detail about this).  The maximum message size used by the "
38327 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
38328 "aware of this limit.  The API calls which may be affected are individually "
38329 "documented, with a link back to this section of the documentation."
38330 msgstr ""
38331
38332 #. type: textblock
38333 #: ../src/guestfs.pod:3106
38334 msgid ""
38335 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
38336 "a simple string.  Because this string is at some point internally encoded as "
38337 "a message, the maximum size that it can return is slightly under 4 MB.  If "
38338 "the requested file is larger than this then you will get an error."
38339 msgstr ""
38340
38341 #. type: textblock
38342 #: ../src/guestfs.pod:3112
38343 msgid ""
38344 "In order to transfer large files into and out of the guest filesystem, you "
38345 "need to use particular calls that support this.  The sections L</UPLOADING> "
38346 "and L</DOWNLOADING> document how to do this."
38347 msgstr ""
38348
38349 #. type: textblock
38350 #: ../src/guestfs.pod:3116
38351 msgid ""
38352 "You might also consider mounting the disk image using our FUSE filesystem "
38353 "support (L<guestmount(1)>)."
38354 msgstr ""
38355
38356 #. type: =head2
38357 #: ../src/guestfs.pod:3119
38358 msgid "MAXIMUM NUMBER OF DISKS"
38359 msgstr ""
38360
38361 #. type: textblock
38362 #: ../src/guestfs.pod:3121
38363 msgid "When using virtio disks (the default) the current limit is B<25> disks."
38364 msgstr ""
38365
38366 #. type: textblock
38367 #: ../src/guestfs.pod:3124
38368 msgid ""
38369 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
38370 "slots.  However febootstrap only understands disks with names C</dev/vda> "
38371 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
38372 "purposes."
38373 msgstr ""
38374
38375 #. type: textblock
38376 #: ../src/guestfs.pod:3129
38377 msgid ""
38378 "We are working to substantially raise this limit in future versions but it "
38379 "requires complex changes to qemu."
38380 msgstr ""
38381
38382 #. type: textblock
38383 #: ../src/guestfs.pod:3132
38384 msgid ""
38385 "In future versions of libguestfs it should also be possible to \"hot plug\" "
38386 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
38387 "requires changes to qemu."
38388 msgstr ""
38389
38390 #. type: =head2
38391 #: ../src/guestfs.pod:3136
38392 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
38393 msgstr ""
38394
38395 #. type: textblock
38396 #: ../src/guestfs.pod:3138
38397 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
38398 msgstr ""
38399
38400 #. type: textblock
38401 #: ../src/guestfs.pod:3140
38402 msgid ""
38403 "This is because it reserves 4 bits for the minor device number (thus "
38404 "C</dev/vda>, and C</dev/vda1> through C</dev/vda15>)."
38405 msgstr ""
38406
38407 #. type: textblock
38408 #: ../src/guestfs.pod:3143
38409 msgid ""
38410 "If you attach a disk with more than 15 partitions, the extra partitions are "
38411 "ignored by libguestfs."
38412 msgstr ""
38413
38414 #. type: =head2
38415 #: ../src/guestfs.pod:3146
38416 msgid "MAXIMUM SIZE OF A DISK"
38417 msgstr ""
38418
38419 #. type: textblock
38420 #: ../src/guestfs.pod:3148
38421 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
38422 msgstr ""
38423
38424 #. type: textblock
38425 #: ../src/guestfs.pod:3150
38426 msgid ""
38427 "We have tested block devices up to 1 exabyte (2**60 or "
38428 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
38429 "filesystem."
38430 msgstr ""
38431
38432 #. type: textblock
38433 #: ../src/guestfs.pod:3154
38434 msgid ""
38435 "Although libguestfs probably does not impose any limit, the underlying host "
38436 "storage will.  If you store disk images on a host ext4 filesystem, then the "
38437 "maximum size will be limited by the maximum ext4 file size (currently 16 "
38438 "TB).  If you store disk images as host logical volumes then you are limited "
38439 "by the maximum size of an LV."
38440 msgstr ""
38441
38442 #. type: textblock
38443 #: ../src/guestfs.pod:3160
38444 msgid ""
38445 "For the hugest disk image files, we recommend using XFS on the host for "
38446 "storage."
38447 msgstr ""
38448
38449 #. type: =head2
38450 #: ../src/guestfs.pod:3163
38451 msgid "MAXIMUM SIZE OF A PARTITION"
38452 msgstr ""
38453
38454 #. type: textblock
38455 #: ../src/guestfs.pod:3165
38456 msgid ""
38457 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
38458 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
38459 "address a partition located beyond 2 TB on the disk."
38460 msgstr ""
38461
38462 #. type: textblock
38463 #: ../src/guestfs.pod:3169
38464 msgid ""
38465 "It is recommended that you use GPT partitions on disks which are larger than "
38466 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
38467 "which are theoretically larger than the largest disk we could support."
38468 msgstr ""
38469
38470 #. type: =head2
38471 #: ../src/guestfs.pod:3174
38472 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
38473 msgstr ""
38474
38475 #. type: textblock
38476 #: ../src/guestfs.pod:3176
38477 msgid ""
38478 "This depends on the filesystem type.  libguestfs itself does not impose any "
38479 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
38480 "what these limits are."
38481 msgstr ""
38482
38483 #. type: =head2
38484 #: ../src/guestfs.pod:3180
38485 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
38486 msgstr ""
38487
38488 #. type: textblock
38489 #: ../src/guestfs.pod:3182
38490 msgid ""
38491 "The API functions L</guestfs_upload>, L</guestfs_download>, "
38492 "L</guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
38493 "uploads and downloads."
38494 msgstr ""
38495
38496 #. type: =head2
38497 #: ../src/guestfs.pod:3186
38498 msgid "INSPECTION LIMITS"
38499 msgstr ""
38500
38501 #. type: textblock
38502 #: ../src/guestfs.pod:3188
38503 msgid ""
38504 "The inspection code has several arbitrary limits on things like the size of "
38505 "Windows Registry hive it will read, and the length of product name.  These "
38506 "are intended to stop a malicious guest from consuming arbitrary amounts of "
38507 "memory and disk space on the host, and should not be reached in practice.  "
38508 "See the source code for more information."
38509 msgstr ""
38510
38511 #. type: textblock
38512 #: ../src/guestfs.pod:3214
38513 msgid ""
38514 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
38515 "effect as calling C<guestfs_set_verbose (g, 1)>."
38516 msgstr ""
38517
38518 #. type: textblock
38519 #: ../src/guestfs.pod:3226
38520 msgid ""
38521 "Set the path that libguestfs uses to search for a supermin appliance.  See "
38522 "the discussion of paths in section L</PATH> above."
38523 msgstr ""
38524
38525 #. type: textblock
38526 #: ../src/guestfs.pod:3235
38527 msgid "See also L</QEMU WRAPPERS> above."
38528 msgstr ""
38529
38530 #. type: textblock
38531 #: ../src/guestfs.pod:3239
38532 msgid ""
38533 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
38534 "effect as calling C<guestfs_set_trace (g, 1)>."
38535 msgstr ""
38536
38537 #. type: textblock
38538 #: ../src/guestfs.pod:3257
38539 msgid ""
38540 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, "
38541 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
38542 "L<guestfs-ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, "
38543 "L<virt-alignment-scan(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, "
38544 "L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, "
38545 "L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
38546 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
38547 "L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, "
38548 "L<virt-sysprep(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
38549 "L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, "
38550 "L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<stap(1)>, "
38551 "L<http://libguestfs.org/>."
38552 msgstr ""
38553
38554 #. type: textblock
38555 #: ../src/guestfs.pod:3293
38556 msgid ""
38557 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, "
38558 "L<lvm(8)>, L<disktype(1)>."
38559 msgstr ""
38560
38561 #. type: =head1
38562 #: ../src/guestfs.pod:3300 ../tools/virt-make-fs.pl:553 ../tools/virt-win-reg.pl:761
38563 msgid "BUGS"
38564 msgstr ""
38565
38566 #. type: textblock
38567 #: ../src/guestfs.pod:3302
38568 msgid "To get a list of bugs against libguestfs use this link:"
38569 msgstr ""
38570
38571 #. type: textblock
38572 #: ../src/guestfs.pod:3304
38573 msgid "L<https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools>"
38574 msgstr ""
38575
38576 #. type: textblock
38577 #: ../src/guestfs.pod:3306
38578 msgid "To report a new bug against libguestfs use this link:"
38579 msgstr ""
38580
38581 #. type: textblock
38582 #: ../src/guestfs.pod:3308
38583 msgid "L<https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools>"
38584 msgstr ""
38585
38586 #. type: textblock
38587 #: ../src/guestfs.pod:3310
38588 msgid "When reporting a bug, please check:"
38589 msgstr ""
38590
38591 #. type: textblock
38592 #: ../src/guestfs.pod:3316
38593 msgid "That the bug hasn't been reported already."
38594 msgstr ""
38595
38596 #. type: textblock
38597 #: ../src/guestfs.pod:3320
38598 msgid "That you are testing a recent version."
38599 msgstr ""
38600
38601 #. type: textblock
38602 #: ../src/guestfs.pod:3324
38603 msgid "Describe the bug accurately, and give a way to reproduce it."
38604 msgstr ""
38605
38606 #. type: textblock
38607 #: ../src/guestfs.pod:3328
38608 msgid ""
38609 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
38610 "bug report."
38611 msgstr ""
38612
38613 #. type: textblock
38614 #: ../test-tool/libguestfs-test-tool.pod:5
38615 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
38616 msgstr ""
38617
38618 #. type: verbatim
38619 #: ../test-tool/libguestfs-test-tool.pod:9
38620 #, no-wrap
38621 msgid ""
38622 " libguestfs-test-tool [--options]\n"
38623 "\n"
38624 msgstr ""
38625
38626 #. type: textblock
38627 #: ../test-tool/libguestfs-test-tool.pod:13
38628 msgid ""
38629 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
38630 "to check basic libguestfs functionality is working.  This is needed because "
38631 "libguestfs occasionally breaks for reasons beyond our control: usually "
38632 "because of changes in the underlying qemu or kernel packages, or the host "
38633 "environment."
38634 msgstr ""
38635
38636 #. type: textblock
38637 #: ../test-tool/libguestfs-test-tool.pod:19
38638 msgid "If you suspect a problem in libguestfs, then just run:"
38639 msgstr ""
38640
38641 #. type: verbatim
38642 #: ../test-tool/libguestfs-test-tool.pod:21
38643 #, no-wrap
38644 msgid ""
38645 " libguestfs-test-tool\n"
38646 "\n"
38647 msgstr ""
38648
38649 #. type: textblock
38650 #: ../test-tool/libguestfs-test-tool.pod:23
38651 msgid "It will print lots of diagnostic messages."
38652 msgstr ""
38653
38654 #. type: textblock
38655 #: ../test-tool/libguestfs-test-tool.pod:25
38656 msgid "If it runs to completion successfully, you will see this near the end:"
38657 msgstr ""
38658
38659 #. type: verbatim
38660 #: ../test-tool/libguestfs-test-tool.pod:27
38661 #, no-wrap
38662 msgid ""
38663 " ===== TEST FINISHED OK =====\n"
38664 "\n"
38665 msgstr ""
38666
38667 #. type: textblock
38668 #: ../test-tool/libguestfs-test-tool.pod:29
38669 msgid "and the test tool will exit with code 0."
38670 msgstr ""
38671
38672 #. type: textblock
38673 #: ../test-tool/libguestfs-test-tool.pod:31
38674 msgid ""
38675 "If it fails (and/or exits with non-zero error code), please paste the "
38676 "I<complete, unedited> output of the test tool into a bug report.  More "
38677 "information about reporting bugs can be found on the "
38678 "L<http://libguestfs.org/> website."
38679 msgstr ""
38680
38681 #. type: textblock
38682 #: ../test-tool/libguestfs-test-tool.pod:42
38683 msgid "Display short usage information and exit."
38684 msgstr ""
38685
38686 #. type: =item
38687 #: ../test-tool/libguestfs-test-tool.pod:44
38688 msgid "B<--qemu qemu_binary>"
38689 msgstr ""
38690
38691 #. type: textblock
38692 #: ../test-tool/libguestfs-test-tool.pod:46
38693 msgid ""
38694 "If you have downloaded another qemu binary, point this option at the full "
38695 "path of the binary to try it."
38696 msgstr ""
38697
38698 #. type: =item
38699 #: ../test-tool/libguestfs-test-tool.pod:49
38700 msgid "B<--qemudir qemu_source_dir>"
38701 msgstr ""
38702
38703 #. type: textblock
38704 #: ../test-tool/libguestfs-test-tool.pod:51
38705 msgid ""
38706 "If you have compiled qemu from source, point this option at the source "
38707 "directory to try it."
38708 msgstr ""
38709
38710 #. type: =item
38711 #: ../test-tool/libguestfs-test-tool.pod:54
38712 msgid "B<-t N>"
38713 msgstr ""
38714
38715 #. type: =item
38716 #: ../test-tool/libguestfs-test-tool.pod:56
38717 msgid "B<--timeout N>"
38718 msgstr ""
38719
38720 #. type: textblock
38721 #: ../test-tool/libguestfs-test-tool.pod:58
38722 msgid ""
38723 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
38724 "minutes) which does not usually need to be adjusted."
38725 msgstr ""
38726
38727 #. type: =head1
38728 #: ../test-tool/libguestfs-test-tool.pod:63
38729 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
38730 msgstr ""
38731
38732 #. type: textblock
38733 #: ../test-tool/libguestfs-test-tool.pod:65
38734 msgid ""
38735 "If you have compiled another version of qemu from source and would like to "
38736 "try that, then you can use the I<--qemudir> option to point to the qemu "
38737 "source directory."
38738 msgstr ""
38739
38740 #. type: textblock
38741 #: ../test-tool/libguestfs-test-tool.pod:69
38742 msgid ""
38743 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
38744 "option to point to the binary."
38745 msgstr ""
38746
38747 #. type: textblock
38748 #: ../test-tool/libguestfs-test-tool.pod:72
38749 msgid ""
38750 "Note when using these options, you can ignore the business of qemu wrapper "
38751 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
38752 "wrapper script for you if one is needed."
38753 msgstr ""
38754
38755 #. type: =head1
38756 #: ../test-tool/libguestfs-test-tool.pod:76
38757 msgid "TRYING OUT A DIFFERENT KERNEL"
38758 msgstr ""
38759
38760 #. type: textblock
38761 #: ../test-tool/libguestfs-test-tool.pod:78
38762 msgid ""
38763 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
38764 "libguestfs tries.  You do this by setting the environment variables "
38765 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
38766 msgstr ""
38767
38768 #. type: textblock
38769 #: ../test-tool/libguestfs-test-tool.pod:82
38770 msgid ""
38771 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
38772 "information."
38773 msgstr ""
38774
38775 #. type: =head1
38776 #: ../test-tool/libguestfs-test-tool.pod:85
38777 msgid "SELF-DIAGNOSIS"
38778 msgstr ""
38779
38780 #. type: textblock
38781 #: ../test-tool/libguestfs-test-tool.pod:87
38782 msgid ""
38783 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
38784 "produced by libguestfs-test-tool and/or possible errors."
38785 msgstr ""
38786
38787 #. type: textblock
38788 #: ../test-tool/libguestfs-test-tool.pod:92
38789 msgid ""
38790 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
38791 "I<1> if there was an error."
38792 msgstr ""
38793
38794 #. type: textblock
38795 #: ../test-tool/libguestfs-test-tool.pod:97
38796 msgid ""
38797 "For the full list of environment variables which may affect libguestfs, "
38798 "please see the L<guestfs(3)> manual page."
38799 msgstr ""
38800
38801 #. type: textblock
38802 #: ../test-tool/libguestfs-test-tool.pod:102
38803 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
38804 msgstr ""
38805
38806 #. type: textblock
38807 #: ../tools/virt-list-filesystems.pl:32
38808 msgid "virt-list-filesystems - List filesystems in a virtual machine or disk image"
38809 msgstr ""
38810
38811 #. type: verbatim
38812 #: ../tools/virt-list-filesystems.pl:36
38813 #, no-wrap
38814 msgid ""
38815 " virt-list-filesystems [--options] domname\n"
38816 "\n"
38817 msgstr ""
38818
38819 #. type: verbatim
38820 #: ../tools/virt-list-filesystems.pl:38
38821 #, no-wrap
38822 msgid ""
38823 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
38824 "\n"
38825 msgstr ""
38826
38827 #. type: textblock
38828 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
38829 msgid ""
38830 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
38831 "replacement."
38832 msgstr ""
38833
38834 #. type: textblock
38835 #: ../tools/virt-list-filesystems.pl:45
38836 msgid ""
38837 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
38838 "are contained in a virtual machine or disk image."
38839 msgstr ""
38840
38841 #. type: textblock
38842 #: ../tools/virt-list-filesystems.pl:49
38843 msgid ""
38844 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
38845 "functionality.  For more complex cases you should look at the "
38846 "L<guestfish(1)> tool."
38847 msgstr ""
38848
38849 #. type: textblock
38850 #: ../tools/virt-list-filesystems.pl:112
38851 msgid ""
38852 "With this option, C<virt-list-filesystems> displays the type of each "
38853 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
38854 msgstr ""
38855
38856 #. type: =item
38857 #: ../tools/virt-list-filesystems.pl:119
38858 msgid "B<-a>"
38859 msgstr ""
38860
38861 #. type: textblock
38862 #: ../tools/virt-list-filesystems.pl:123
38863 msgid ""
38864 "Normally we only show mountable filesystems.  If this option is given then "
38865 "swap devices are shown too."
38866 msgstr ""
38867
38868 #. type: textblock
38869 #: ../tools/virt-list-filesystems.pl:197
38870 msgid ""
38871 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
38872 "L<virt-filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, "
38873 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38874 msgstr ""
38875
38876 #. type: textblock
38877 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
38878 msgid "Copyright (C) 2009 Red Hat Inc."
38879 msgstr ""
38880
38881 #. type: textblock
38882 #: ../tools/virt-list-partitions.pl:32
38883 msgid "virt-list-partitions - List partitions in a virtual machine or disk image"
38884 msgstr ""
38885
38886 #. type: verbatim
38887 #: ../tools/virt-list-partitions.pl:36
38888 #, no-wrap
38889 msgid ""
38890 " virt-list-partitions [--options] domname\n"
38891 "\n"
38892 msgstr ""
38893
38894 #. type: verbatim
38895 #: ../tools/virt-list-partitions.pl:38
38896 #, no-wrap
38897 msgid ""
38898 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
38899 "\n"
38900 msgstr ""
38901
38902 #. type: textblock
38903 #: ../tools/virt-list-partitions.pl:45
38904 msgid ""
38905 "C<virt-list-partitions> is a command line tool to list the partitions that "
38906 "are contained in a virtual machine or disk image.  It is mainly useful as a "
38907 "first step to using L<virt-resize(1)>."
38908 msgstr ""
38909
38910 #. type: textblock
38911 #: ../tools/virt-list-partitions.pl:50
38912 msgid ""
38913 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
38914 "functionality.  For more complex cases you should look at the "
38915 "L<guestfish(1)> tool."
38916 msgstr ""
38917
38918 #. type: textblock
38919 #: ../tools/virt-list-partitions.pl:113
38920 msgid "Show sizes in human-readable form (eg. \"1G\")."
38921 msgstr ""
38922
38923 #. type: textblock
38924 #: ../tools/virt-list-partitions.pl:123
38925 msgid ""
38926 "With this option, C<virt-list-partitions> displays the type and size of each "
38927 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
38928 msgstr ""
38929
38930 #. type: =item
38931 #: ../tools/virt-list-partitions.pl:130
38932 msgid "B<-t>"
38933 msgstr ""
38934
38935 #. type: =item
38936 #: ../tools/virt-list-partitions.pl:132
38937 msgid "B<--total>"
38938 msgstr ""
38939
38940 #. type: textblock
38941 #: ../tools/virt-list-partitions.pl:134
38942 msgid "Display the total size of each block device (as a separate row or rows)."
38943 msgstr ""
38944
38945 #. type: textblock
38946 #: ../tools/virt-list-partitions.pl:267
38947 msgid ""
38948 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, "
38949 "L<virt-list-filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, "
38950 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38951 msgstr ""
38952
38953 #. type: textblock
38954 #: ../tools/virt-list-partitions.pl:283
38955 msgid "Copyright (C) 2009-2010 Red Hat Inc."
38956 msgstr ""
38957
38958 #. type: textblock
38959 #: ../tools/virt-make-fs.pl:37
38960 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
38961 msgstr ""
38962
38963 #. type: verbatim
38964 #: ../tools/virt-make-fs.pl:41
38965 #, no-wrap
38966 msgid ""
38967 " virt-make-fs [--options] input.tar output.img\n"
38968 "\n"
38969 msgstr ""
38970
38971 #. type: verbatim
38972 #: ../tools/virt-make-fs.pl:43
38973 #, no-wrap
38974 msgid ""
38975 " virt-make-fs [--options] input.tar.gz output.img\n"
38976 "\n"
38977 msgstr ""
38978
38979 #. type: verbatim
38980 #: ../tools/virt-make-fs.pl:45
38981 #, no-wrap
38982 msgid ""
38983 " virt-make-fs [--options] directory output.img\n"
38984 "\n"
38985 msgstr ""
38986
38987 #. type: textblock
38988 #: ../tools/virt-make-fs.pl:49
38989 msgid ""
38990 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
38991 "archive or some files in a directory.  It is similar to tools like "
38992 "L<mkisofs(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, "
38993 "it can create common filesystem types like ext2/3 or NTFS, which can be "
38994 "useful if you want to attach these filesystems to existing virtual machines "
38995 "(eg. to import large amounts of read-only data to a VM)."
38996 msgstr ""
38997
38998 #. type: textblock
38999 #: ../tools/virt-make-fs.pl:57
39000 msgid "Basic usage is:"
39001 msgstr ""
39002
39003 #. type: verbatim
39004 #: ../tools/virt-make-fs.pl:59
39005 #, no-wrap
39006 msgid ""
39007 " virt-make-fs input output\n"
39008 "\n"
39009 msgstr ""
39010
39011 #. type: textblock
39012 #: ../tools/virt-make-fs.pl:61
39013 msgid ""
39014 "where C<input> is either a directory containing files that you want to add, "
39015 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
39016 "C<output> is a disk image.  The input type is detected automatically.  The "
39017 "output disk image defaults to a raw ext2 image unless you specify extra "
39018 "flags (see L</OPTIONS> below)."
39019 msgstr ""
39020
39021 #. type: =head2
39022 #: ../tools/virt-make-fs.pl:67
39023 msgid "EXTRA SPACE"
39024 msgstr ""
39025
39026 #. type: textblock
39027 #: ../tools/virt-make-fs.pl:69
39028 msgid ""
39029 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
39030 "the files that it contains, but might have extra space.  Depending on how "
39031 "you are going to use the output, you might think this extra space is wasted "
39032 "and want to minimize it, or you might want to leave space so that more files "
39033 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
39034 "but you can use the I<--size> flag to leave space in the filesystem if you "
39035 "want it."
39036 msgstr ""
39037
39038 #. type: textblock
39039 #: ../tools/virt-make-fs.pl:77
39040 msgid ""
39041 "An alternative way to leave extra space but not make the output image any "
39042 "bigger is to use an alternative disk image format (instead of the default "
39043 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
39044 "image format (check your hypervisor supports this before using it).  This "
39045 "allows you to choose a large I<--size> but the extra space won't actually be "
39046 "allocated in the image until you try to store something in it."
39047 msgstr ""
39048
39049 #. type: textblock
39050 #: ../tools/virt-make-fs.pl:85
39051 msgid ""
39052 "Don't forget that you can also use local commands including L<resize2fs(8)> "
39053 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
39054 "to build another image from scratch."
39055 msgstr ""
39056
39057 #. type: =head3
39058 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123 ../tools/virt-make-fs.pl:142
39059 msgid "EXAMPLE"
39060 msgstr ""
39061
39062 #. type: verbatim
39063 #: ../tools/virt-make-fs.pl:91
39064 #, no-wrap
39065 msgid ""
39066 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
39067 "\n"
39068 msgstr ""
39069
39070 #. type: =head2
39071 #: ../tools/virt-make-fs.pl:93
39072 msgid "FILESYSTEM TYPE"
39073 msgstr ""
39074
39075 #. type: textblock
39076 #: ../tools/virt-make-fs.pl:95
39077 msgid ""
39078 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
39079 "libguestfs supports can be used (but I<not> read-only formats like "
39080 "ISO9660).  Here are some of the more common choices:"
39081 msgstr ""
39082
39083 #. type: =item
39084 #: ../tools/virt-make-fs.pl:101
39085 msgid "I<ext3>"
39086 msgstr ""
39087
39088 #. type: textblock
39089 #: ../tools/virt-make-fs.pl:103
39090 msgid ""
39091 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
39092 "you are not going to use the filesystem in a way that requires the journal, "
39093 "then this is just wasted overhead."
39094 msgstr ""
39095
39096 #. type: =item
39097 #: ../tools/virt-make-fs.pl:107
39098 msgid "I<ntfs> or I<vfat>"
39099 msgstr ""
39100
39101 #. type: textblock
39102 #: ../tools/virt-make-fs.pl:109
39103 msgid "Useful if exporting data to a Windows guest."
39104 msgstr ""
39105
39106 #. type: textblock
39107 #: ../tools/virt-make-fs.pl:111
39108 msgid ""
39109 "I<Note for vfat>: The tar archive or local directory must only contain files "
39110 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
39111 "program running within libguestfs is unable to change the ownership of "
39112 "non-root files, since vfat itself does not support this."
39113 msgstr ""
39114
39115 #. type: =item
39116 #: ../tools/virt-make-fs.pl:116
39117 msgid "I<minix>"
39118 msgstr ""
39119
39120 #. type: textblock
39121 #: ../tools/virt-make-fs.pl:118
39122 msgid ""
39123 "Lower overhead than C<ext2>, but certain limitations on filename length and "
39124 "total filesystem size."
39125 msgstr ""
39126
39127 #. type: verbatim
39128 #: ../tools/virt-make-fs.pl:125
39129 #, no-wrap
39130 msgid ""
39131 " virt-make-fs --type=minix input minixfs.img\n"
39132 "\n"
39133 msgstr ""
39134
39135 #. type: =head2
39136 #: ../tools/virt-make-fs.pl:127
39137 msgid "TO PARTITION OR NOT TO PARTITION"
39138 msgstr ""
39139
39140 #. type: textblock
39141 #: ../tools/virt-make-fs.pl:129
39142 msgid "Optionally virt-make-fs can add a partition table to the output disk."
39143 msgstr ""
39144
39145 #. type: textblock
39146 #: ../tools/virt-make-fs.pl:131
39147 msgid ""
39148 "Adding a partition can make the disk image more compatible with certain "
39149 "virtualized operating systems which don't expect to see a filesystem "
39150 "directly located on a block device (Linux doesn't care and will happily "
39151 "handle both types)."
39152 msgstr ""
39153
39154 #. type: textblock
39155 #: ../tools/virt-make-fs.pl:136
39156 msgid ""
39157 "On the other hand, if you have a partition table then the output image is no "
39158 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
39159 "directly on a partitioned disk image.  (However libguestfs tools such as "
39160 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
39161 msgstr ""
39162
39163 #. type: textblock
39164 #: ../tools/virt-make-fs.pl:144
39165 msgid "Add an MBR partition:"
39166 msgstr ""
39167
39168 #. type: verbatim
39169 #: ../tools/virt-make-fs.pl:146
39170 #, no-wrap
39171 msgid ""
39172 " virt-make-fs --partition -- input disk.img\n"
39173 "\n"
39174 msgstr ""
39175
39176 #. type: textblock
39177 #: ../tools/virt-make-fs.pl:148
39178 msgid ""
39179 "If the output disk image could be terabyte-sized or larger, it's better to "
39180 "use an EFI/GPT-compatible partition table:"
39181 msgstr ""
39182
39183 #. type: verbatim
39184 #: ../tools/virt-make-fs.pl:151
39185 #, no-wrap
39186 msgid ""
39187 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
39188 "\n"
39189 msgstr ""
39190
39191 #. type: textblock
39192 #: ../tools/virt-make-fs.pl:179
39193 msgid "Enable debugging information."
39194 msgstr ""
39195
39196 #. type: =item
39197 #: ../tools/virt-make-fs.pl:185
39198 msgid "B<--size=E<lt>NE<gt>>"
39199 msgstr ""
39200
39201 #. type: =item
39202 #: ../tools/virt-make-fs.pl:187
39203 msgid "B<--size=+E<lt>NE<gt>>"
39204 msgstr ""
39205
39206 #. type: =item
39207 #: ../tools/virt-make-fs.pl:189
39208 msgid "B<-s E<lt>NE<gt>>"
39209 msgstr ""
39210
39211 #. type: =item
39212 #: ../tools/virt-make-fs.pl:191
39213 msgid "B<-s +E<lt>NE<gt>>"
39214 msgstr ""
39215
39216 #. type: textblock
39217 #: ../tools/virt-make-fs.pl:193
39218 msgid "Use the I<--size> (or I<-s>) option to choose the size of the output image."
39219 msgstr ""
39220
39221 #. type: textblock
39222 #: ../tools/virt-make-fs.pl:196
39223 msgid ""
39224 "If this option is I<not> given, then the output image will be just large "
39225 "enough to contain all the files, with not much wasted space."
39226 msgstr ""
39227
39228 #. type: textblock
39229 #: ../tools/virt-make-fs.pl:199
39230 msgid ""
39231 "To choose a fixed size output disk, specify an absolute number followed by "
39232 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
39233 "Petabytes or Exabytes.  This must be large enough to contain all the input "
39234 "files, else you will get an error."
39235 msgstr ""
39236
39237 #. type: textblock
39238 #: ../tools/virt-make-fs.pl:204
39239 msgid ""
39240 "To leave extra space, specify C<+> (plus sign) and a number followed by "
39241 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
39242 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
39243 "the input files, and (approximately) an extra 200 MB free space."
39244 msgstr ""
39245
39246 #. type: textblock
39247 #: ../tools/virt-make-fs.pl:210
39248 msgid ""
39249 "Note that virt-make-fs estimates free space, and therefore will not produce "
39250 "filesystems containing precisely the free space requested.  (It is much more "
39251 "expensive and time-consuming to produce a filesystem which has precisely the "
39252 "desired free space)."
39253 msgstr ""
39254
39255 #. type: =item
39256 #: ../tools/virt-make-fs.pl:219
39257 msgid "B<--format=E<lt>fmtE<gt>>"
39258 msgstr ""
39259
39260 #. type: =item
39261 #: ../tools/virt-make-fs.pl:221
39262 msgid "B<-F E<lt>fmtE<gt>>"
39263 msgstr ""
39264
39265 #. type: textblock
39266 #: ../tools/virt-make-fs.pl:223
39267 msgid "Choose the output disk image format."
39268 msgstr ""
39269
39270 #. type: textblock
39271 #: ../tools/virt-make-fs.pl:225
39272 msgid "The default is C<raw> (raw disk image)."
39273 msgstr ""
39274
39275 #. type: textblock
39276 #: ../tools/virt-make-fs.pl:227
39277 msgid ""
39278 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
39279 "that would really make sense here is C<qcow2>."
39280 msgstr ""
39281
39282 #. type: =item
39283 #: ../tools/virt-make-fs.pl:234
39284 msgid "B<--type=E<lt>fsE<gt>>"
39285 msgstr ""
39286
39287 #. type: =item
39288 #: ../tools/virt-make-fs.pl:236
39289 msgid "B<-t E<lt>fsE<gt>>"
39290 msgstr ""
39291
39292 #. type: textblock
39293 #: ../tools/virt-make-fs.pl:238
39294 msgid "Choose the output filesystem type."
39295 msgstr ""
39296
39297 #. type: textblock
39298 #: ../tools/virt-make-fs.pl:240
39299 msgid "The default is C<ext2>."
39300 msgstr ""
39301
39302 #. type: textblock
39303 #: ../tools/virt-make-fs.pl:242
39304 msgid "Any filesystem which is supported read-write by libguestfs can be used here."
39305 msgstr ""
39306
39307 #. type: =item
39308 #: ../tools/virt-make-fs.pl:249
39309 msgid "B<--partition>"
39310 msgstr ""
39311
39312 #. type: =item
39313 #: ../tools/virt-make-fs.pl:251
39314 msgid "B<--partition=E<lt>parttypeE<gt>>"
39315 msgstr ""
39316
39317 #. type: textblock
39318 #: ../tools/virt-make-fs.pl:253
39319 msgid ""
39320 "If specified, this flag adds an MBR partition table to the output disk "
39321 "image."
39322 msgstr ""
39323
39324 #. type: textblock
39325 #: ../tools/virt-make-fs.pl:256
39326 msgid ""
39327 "You can change the partition table type, eg. I<--partition=gpt> for large "
39328 "disks."
39329 msgstr ""
39330
39331 #. type: textblock
39332 #: ../tools/virt-make-fs.pl:259
39333 msgid ""
39334 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
39335 "might consider the next parameter to be the partition type.  For example:"
39336 msgstr ""
39337
39338 #. type: verbatim
39339 #: ../tools/virt-make-fs.pl:263
39340 #, no-wrap
39341 msgid ""
39342 " virt-make-fs --partition input.tar ...\n"
39343 "\n"
39344 msgstr ""
39345
39346 #. type: textblock
39347 #: ../tools/virt-make-fs.pl:265
39348 msgid ""
39349 "would cause virt-make-fs to think you wanted to use a partition type of "
39350 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
39351 "dash) between options and the input file argument:"
39352 msgstr ""
39353
39354 #. type: verbatim
39355 #: ../tools/virt-make-fs.pl:269
39356 #, no-wrap
39357 msgid ""
39358 " virt-make-fs --partition -- input.tar ...\n"
39359 "\n"
39360 msgstr ""
39361
39362 #. type: textblock
39363 #: ../tools/virt-make-fs.pl:541
39364 msgid ""
39365 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
39366 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
39367 "L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
39368 msgstr ""
39369
39370 #. type: textblock
39371 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
39372 msgid ""
39373 "When reporting bugs, please enable debugging and capture the I<complete> "
39374 "output:"
39375 msgstr ""
39376
39377 #. type: verbatim
39378 #: ../tools/virt-make-fs.pl:558
39379 #, no-wrap
39380 msgid ""
39381 " export LIBGUESTFS_DEBUG=1\n"
39382 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
39383 "\n"
39384 msgstr ""
39385
39386 #. type: textblock
39387 #: ../tools/virt-make-fs.pl:561
39388 msgid ""
39389 "Attach /tmp/virt-make-fs.log to a new bug report at "
39390 "L<https://bugzilla.redhat.com/>"
39391 msgstr ""
39392
39393 #. type: textblock
39394 #: ../tools/virt-tar.pl:33
39395 msgid "virt-tar - Extract or upload files to a virtual machine"
39396 msgstr ""
39397
39398 #. type: verbatim
39399 #: ../tools/virt-tar.pl:37
39400 #, no-wrap
39401 msgid ""
39402 " virt-tar [--options] -x domname directory tarball\n"
39403 "\n"
39404 msgstr ""
39405
39406 #. type: verbatim
39407 #: ../tools/virt-tar.pl:39
39408 #, no-wrap
39409 msgid ""
39410 " virt-tar [--options] -u domname tarball directory\n"
39411 "\n"
39412 msgstr ""
39413
39414 #. type: verbatim
39415 #: ../tools/virt-tar.pl:41
39416 #, no-wrap
39417 msgid ""
39418 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
39419 "\n"
39420 msgstr ""
39421
39422 #. type: verbatim
39423 #: ../tools/virt-tar.pl:43
39424 #, no-wrap
39425 msgid ""
39426 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
39427 "\n"
39428 msgstr ""
39429
39430 #. type: =head2
39431 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
39432 msgid "NOTE"
39433 msgstr ""
39434
39435 #. type: textblock
39436 #: ../tools/virt-tar.pl:47
39437 msgid ""
39438 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
39439 "L<virt-tar-in(1)>, L<virt-tar-out(1)> as replacements."
39440 msgstr ""
39441
39442 #. type: textblock
39443 #: ../tools/virt-tar.pl:52
39444 msgid "Download C</home> from the VM into a local tarball:"
39445 msgstr ""
39446
39447 #. type: verbatim
39448 #: ../tools/virt-tar.pl:54
39449 #, no-wrap
39450 msgid ""
39451 " virt-tar -x domname /home home.tar\n"
39452 "\n"
39453 msgstr ""
39454
39455 #. type: verbatim
39456 #: ../tools/virt-tar.pl:56
39457 #, no-wrap
39458 msgid ""
39459 " virt-tar -zx domname /home home.tar.gz\n"
39460 "\n"
39461 msgstr ""
39462
39463 #. type: textblock
39464 #: ../tools/virt-tar.pl:58
39465 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
39466 msgstr ""
39467
39468 #. type: verbatim
39469 #: ../tools/virt-tar.pl:60
39470 #, no-wrap
39471 msgid ""
39472 " virt-tar -u domname uploadstuff.tar /tmp\n"
39473 "\n"
39474 msgstr ""
39475
39476 #. type: verbatim
39477 #: ../tools/virt-tar.pl:62
39478 #, no-wrap
39479 msgid ""
39480 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
39481 "\n"
39482 msgstr ""
39483
39484 #. type: textblock
39485 #: ../tools/virt-tar.pl:66
39486 msgid ""
39487 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
39488 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
39489 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
39490 msgstr ""
39491
39492 #. type: textblock
39493 #: ../tools/virt-tar.pl:71
39494 msgid ""
39495 "You can use I<-x> (extract) on live virtual machines, but you might get "
39496 "inconsistent results or errors if there is filesystem activity inside the "
39497 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
39498 "work, but the only way to guarantee consistent results is if the virtual "
39499 "machine is shut down."
39500 msgstr ""
39501
39502 #. type: textblock
39503 #: ../tools/virt-tar.pl:79
39504 msgid ""
39505 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
39506 "parts of a guest filesystem.  There are many possibilities: making backups, "
39507 "uploading data files, snooping on guest activity, fixing or customizing "
39508 "guests, etc."
39509 msgstr ""
39510
39511 #. type: textblock
39512 #: ../tools/virt-tar.pl:84
39513 msgid ""
39514 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
39515 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
39516 "should look at the L<guestfish(1)> tool."
39517 msgstr ""
39518
39519 #. type: textblock
39520 #: ../tools/virt-tar.pl:88
39521 msgid ""
39522 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
39523 "its contents (recursively) from the virtual machine into a local tarball.  "
39524 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
39525 "virtual machine.  You cannot use these two options together."
39526 msgstr ""
39527
39528 #. type: textblock
39529 #: ../tools/virt-tar.pl:94
39530 msgid ""
39531 "In addition, you may need to use the I<-z> (gZip) option to enable "
39532 "compression.  When uploading, you have to specify I<-z> if the upload file "
39533 "is compressed because virt-tar won't detect this on its own."
39534 msgstr ""
39535
39536 #. type: textblock
39537 #: ../tools/virt-tar.pl:98
39538 msgid ""
39539 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
39540 "example it cannot do PKZip files or bzip2 compression.  If you want that "
39541 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
39542 "the L<libguestfs(3)> API)."
39543 msgstr ""
39544
39545 #. type: =item
39546 #: ../tools/virt-tar.pl:160
39547 msgid "B<--extract>"
39548 msgstr ""
39549
39550 #. type: =item
39551 #: ../tools/virt-tar.pl:162
39552 msgid "B<--download>"
39553 msgstr ""
39554
39555 #. type: =item
39556 #: ../tools/virt-tar.pl:164
39557 msgid "B<-u>"
39558 msgstr ""
39559
39560 #. type: =item
39561 #: ../tools/virt-tar.pl:166
39562 msgid "B<--upload>"
39563 msgstr ""
39564
39565 #. type: textblock
39566 #: ../tools/virt-tar.pl:168
39567 msgid ""
39568 "Use I<-x> to extract (download) a directory from a virtual machine to a "
39569 "local tarball."
39570 msgstr ""
39571
39572 #. type: textblock
39573 #: ../tools/virt-tar.pl:171
39574 msgid ""
39575 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
39576 "Please read the L</WARNING> section above before using this option."
39577 msgstr ""
39578
39579 #. type: textblock
39580 #: ../tools/virt-tar.pl:175
39581 msgid "You must specify exactly one of these options."
39582 msgstr ""
39583
39584 #. type: =item
39585 #: ../tools/virt-tar.pl:181
39586 msgid "B<-z>"
39587 msgstr ""
39588
39589 #. type: =item
39590 #: ../tools/virt-tar.pl:183
39591 msgid "B<--gzip>"
39592 msgstr ""
39593
39594 #. type: textblock
39595 #: ../tools/virt-tar.pl:185
39596 msgid "Specify that the input or output tarball is gzip-compressed."
39597 msgstr ""
39598
39599 #. type: textblock
39600 #: ../tools/virt-tar.pl:298
39601 msgid ""
39602 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
39603 "L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
39604 "L<virt-tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
39605 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
39606 msgstr ""
39607
39608 #. type: textblock
39609 #: ../tools/virt-win-reg.pl:37
39610 msgid ""
39611 "virt-win-reg - Export and merge Windows Registry entries from a Windows "
39612 "guest"
39613 msgstr ""
39614
39615 #. type: verbatim
39616 #: ../tools/virt-win-reg.pl:41
39617 #, no-wrap
39618 msgid ""
39619 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
39620 "\n"
39621 msgstr ""
39622
39623 #. type: verbatim
39624 #: ../tools/virt-win-reg.pl:43
39625 #, no-wrap
39626 msgid ""
39627 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
39628 "\n"
39629 msgstr ""
39630
39631 #. type: verbatim
39632 #: ../tools/virt-win-reg.pl:45
39633 #, no-wrap
39634 msgid ""
39635 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
39636 "\n"
39637 msgstr ""
39638
39639 #. type: verbatim
39640 #: ../tools/virt-win-reg.pl:47
39641 #, no-wrap
39642 msgid ""
39643 " virt-win-reg --merge domname [input.reg ...]\n"
39644 "\n"
39645 msgstr ""
39646
39647 #. type: verbatim
39648 #: ../tools/virt-win-reg.pl:49
39649 #, no-wrap
39650 msgid ""
39651 " virt-win-reg [--options] disk.img ... # instead of domname\n"
39652 "\n"
39653 msgstr ""
39654
39655 #. type: textblock
39656 #: ../tools/virt-win-reg.pl:53
39657 msgid ""
39658 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
39659 "virtual machines.  If you do this, you I<will> get irreversible disk "
39660 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
39661 "but doesn't catch all cases."
39662 msgstr ""
39663
39664 #. type: textblock
39665 #: ../tools/virt-win-reg.pl:58
39666 msgid ""
39667 "Modifying the Windows Registry is an inherently risky operation.  The format "
39668 "is deliberately obscure and undocumented, and Registry changes can leave the "
39669 "system unbootable.  Therefore when using the I<--merge> option, make sure "
39670 "you have a reliable backup first."
39671 msgstr ""
39672
39673 #. type: textblock
39674 #: ../tools/virt-win-reg.pl:65
39675 msgid ""
39676 "This program can export and merge Windows Registry entries from a Windows "
39677 "guest."
39678 msgstr ""
39679
39680 #. type: textblock
39681 #: ../tools/virt-win-reg.pl:68
39682 msgid ""
39683 "The first parameter is the libvirt guest name or the raw disk image of a "
39684 "Windows guest."
39685 msgstr ""
39686
39687 #. type: textblock
39688 #: ../tools/virt-win-reg.pl:71
39689 msgid ""
39690 "If I<--merge> is I<not> specified, then the chosen registry key is "
39691 "displayed/exported (recursively).  For example:"
39692 msgstr ""
39693
39694 #. type: verbatim
39695 #: ../tools/virt-win-reg.pl:74
39696 #, no-wrap
39697 msgid ""
39698 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
39699 "\n"
39700 msgstr ""
39701
39702 #. type: textblock
39703 #: ../tools/virt-win-reg.pl:76
39704 msgid "You can also display single values from within registry keys, for example:"
39705 msgstr ""
39706
39707 #. type: verbatim
39708 #: ../tools/virt-win-reg.pl:79
39709 #, no-wrap
39710 msgid ""
39711 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
39712 " $ virt-win-reg Windows7 $cvkey ProductName\n"
39713 " Windows 7 Enterprise\n"
39714 "\n"
39715 msgstr ""
39716
39717 #. type: textblock
39718 #: ../tools/virt-win-reg.pl:83
39719 msgid ""
39720 "With I<--merge>, you can merge a textual regedit file into the Windows "
39721 "Registry:"
39722 msgstr ""
39723
39724 #. type: verbatim
39725 #: ../tools/virt-win-reg.pl:86
39726 #, no-wrap
39727 msgid ""
39728 " $ virt-win-reg --merge Windows7 changes.reg\n"
39729 "\n"
39730 msgstr ""
39731
39732 #. type: textblock
39733 #: ../tools/virt-win-reg.pl:90
39734 msgid ""
39735 "This program is only meant for simple access to the registry.  If you want "
39736 "to do complicated things with the registry, we suggest you download the "
39737 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
39738 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
39739 "L<hivexregedit(1)>."
39740 msgstr ""
39741
39742 #. type: =item
39743 #: ../tools/virt-win-reg.pl:159
39744 msgid "B<--merge>"
39745 msgstr ""
39746
39747 #. type: textblock
39748 #: ../tools/virt-win-reg.pl:161
39749 msgid ""
39750 "In merge mode, this merges a textual regedit file into the Windows Registry "
39751 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
39752 "displays or exports Registry entries instead."
39753 msgstr ""
39754
39755 #. type: textblock
39756 #: ../tools/virt-win-reg.pl:165
39757 msgid ""
39758 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
39759 "result in disk corruption.  However exporting (without this flag)  is always "
39760 "safe."
39761 msgstr ""
39762
39763 #. type: =item
39764 #: ../tools/virt-win-reg.pl:173
39765 msgid "B<--encoding> UTF-16LE|ASCII"
39766 msgstr ""
39767
39768 #. type: textblock
39769 #: ../tools/virt-win-reg.pl:175
39770 msgid ""
39771 "When merging (only), you may need to specify the encoding for strings to be "
39772 "used in the hive file.  This is explained in detail in "
39773 "L<Win::Hivex::Regedit(3)/ENCODING STRINGS>."
39774 msgstr ""
39775
39776 #. type: textblock
39777 #: ../tools/virt-win-reg.pl:179
39778 msgid ""
39779 "The default is to use UTF-16LE, which should work with recent versions of "
39780 "Windows."
39781 msgstr ""
39782
39783 #. type: =item
39784 #: ../tools/virt-win-reg.pl:186
39785 msgid "B<--unsafe-printable-strings>"
39786 msgstr ""
39787
39788 #. type: textblock
39789 #: ../tools/virt-win-reg.pl:188
39790 msgid ""
39791 "When exporting (only), assume strings are UTF-16LE and print them as strings "
39792 "instead of hex sequences.  Remove the final zero codepoint from strings if "
39793 "present."
39794 msgstr ""
39795
39796 #. type: textblock
39797 #: ../tools/virt-win-reg.pl:192
39798 msgid ""
39799 "This is unsafe and does not preserve the fidelity of strings in the original "
39800 "Registry for various reasons:"
39801 msgstr ""
39802
39803 #. type: textblock
39804 #: ../tools/virt-win-reg.pl:199
39805 msgid ""
39806 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
39807 "other encodings will be corrupted by this transformation."
39808 msgstr ""
39809
39810 #. type: textblock
39811 #: ../tools/virt-win-reg.pl:204
39812 msgid ""
39813 "Assumes that everything which has type 1 or 2 is really a string and that "
39814 "everything else is not a string, but the type field in real Registries is "
39815 "not reliable."
39816 msgstr ""
39817
39818 #. type: textblock
39819 #: ../tools/virt-win-reg.pl:210
39820 msgid ""
39821 "Loses information about whether a zero codepoint followed the string in the "
39822 "Registry or not."
39823 msgstr ""
39824
39825 #. type: textblock
39826 #: ../tools/virt-win-reg.pl:215
39827 msgid ""
39828 "This all happens because the Registry itself contains no information about "
39829 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
39830 msgstr ""
39831
39832 #. type: textblock
39833 #: ../tools/virt-win-reg.pl:219
39834 msgid ""
39835 "You should only use this option for quick hacking and debugging of the "
39836 "Registry contents, and I<never> use it if the output is going to be passed "
39837 "into another program or stored in another Registry."
39838 msgstr ""
39839
39840 #. type: =head1
39841 #: ../tools/virt-win-reg.pl:556
39842 msgid "SUPPORTED SYSTEMS"
39843 msgstr ""
39844
39845 #. type: textblock
39846 #: ../tools/virt-win-reg.pl:558
39847 msgid ""
39848 "The program currently supports Windows NT-derived guests starting with "
39849 "Windows XP through to at least Windows 7."
39850 msgstr ""
39851
39852 #. type: textblock
39853 #: ../tools/virt-win-reg.pl:561
39854 msgid "The following Registry keys are supported:"
39855 msgstr ""
39856
39857 #. type: =item
39858 #: ../tools/virt-win-reg.pl:565
39859 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
39860 msgstr ""
39861
39862 #. type: =item
39863 #: ../tools/virt-win-reg.pl:567
39864 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
39865 msgstr ""
39866
39867 #. type: =item
39868 #: ../tools/virt-win-reg.pl:569
39869 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
39870 msgstr ""
39871
39872 #. type: =item
39873 #: ../tools/virt-win-reg.pl:571
39874 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
39875 msgstr ""
39876
39877 #. type: =item
39878 #: ../tools/virt-win-reg.pl:573
39879 msgid "C<HKEY_USERS\\.DEFAULT>"
39880 msgstr ""
39881
39882 #. type: =item
39883 #: ../tools/virt-win-reg.pl:575
39884 msgid "C<HKEY_USERS\\I<SID>>"
39885 msgstr ""
39886
39887 #. type: textblock
39888 #: ../tools/virt-win-reg.pl:577
39889 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
39890 msgstr ""
39891
39892 #. type: =item
39893 #: ../tools/virt-win-reg.pl:579
39894 msgid "C<HKEY_USERS\\I<username>>"
39895 msgstr ""
39896
39897 #. type: textblock
39898 #: ../tools/virt-win-reg.pl:581
39899 msgid "where I<username> is a local user name (this is a libguestfs extension)."
39900 msgstr ""
39901
39902 #. type: textblock
39903 #: ../tools/virt-win-reg.pl:585
39904 msgid ""
39905 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
39906 "C<HKEY_USERS>."
39907 msgstr ""
39908
39909 #. type: textblock
39910 #: ../tools/virt-win-reg.pl:588
39911 msgid ""
39912 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
39913 "supported (there is no \"current user\")."
39914 msgstr ""
39915
39916 #. type: =head1
39917 #: ../tools/virt-win-reg.pl:591
39918 msgid "ENCODING"
39919 msgstr ""
39920
39921 #. type: textblock
39922 #: ../tools/virt-win-reg.pl:593
39923 msgid ""
39924 "C<virt-win-reg> expects that regedit files have already been reencoded in "
39925 "the local encoding.  Usually on Linux hosts, this means UTF-8 with "
39926 "Unix-style line endings.  Since Windows regedit files are often in UTF-16LE "
39927 "with Windows-style line endings, you may need to reencode the whole file "
39928 "before or after processing."
39929 msgstr ""
39930
39931 #. type: textblock
39932 #: ../tools/virt-win-reg.pl:599
39933 msgid ""
39934 "To reencode a file from Windows format to Linux (before processing it with "
39935 "the I<--merge> option), you would do something like this:"
39936 msgstr ""
39937
39938 #. type: verbatim
39939 #: ../tools/virt-win-reg.pl:602
39940 #, no-wrap
39941 msgid ""
39942 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
39943 "\n"
39944 msgstr ""
39945
39946 #. type: textblock
39947 #: ../tools/virt-win-reg.pl:604
39948 msgid ""
39949 "To go in the opposite direction, after exporting and before sending the file "
39950 "to a Windows user, do something like this:"
39951 msgstr ""
39952
39953 #. type: verbatim
39954 #: ../tools/virt-win-reg.pl:607
39955 #, no-wrap
39956 msgid ""
39957 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
39958 "\n"
39959 msgstr ""
39960
39961 #. type: textblock
39962 #: ../tools/virt-win-reg.pl:609
39963 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
39964 msgstr ""
39965
39966 #. type: textblock
39967 #: ../tools/virt-win-reg.pl:611
39968 msgid ""
39969 "If you are unsure about the current encoding, use the L<file(1)> command.  "
39970 "Recent versions of Windows regedit.exe produce a UTF-16LE file with "
39971 "Windows-style (CRLF) line endings, like this:"
39972 msgstr ""
39973
39974 #. type: verbatim
39975 #: ../tools/virt-win-reg.pl:615
39976 #, no-wrap
39977 msgid ""
39978 " $ file software.reg\n"
39979 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
39980 " with CRLF line terminators\n"
39981 "\n"
39982 msgstr ""
39983
39984 #. type: textblock
39985 #: ../tools/virt-win-reg.pl:619
39986 msgid "This file would need conversion before you could I<--merge> it."
39987 msgstr ""
39988
39989 #. type: =head1
39990 #: ../tools/virt-win-reg.pl:621
39991 msgid "CurrentControlSet etc."
39992 msgstr ""
39993
39994 #. type: textblock
39995 #: ../tools/virt-win-reg.pl:623
39996 msgid ""
39997 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
39998 "Registry at the level of the hive file, and therefore you cannot modify "
39999 "these."
40000 msgstr ""
40001
40002 #. type: textblock
40003 #: ../tools/virt-win-reg.pl:627
40004 msgid ""
40005 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
40006 "circumstances it might refer to another control set.  The way to find out is "
40007 "to look at the C<HKLM\\SYSTEM\\Select> key:"
40008 msgstr ""
40009
40010 #. type: verbatim
40011 #: ../tools/virt-win-reg.pl:631
40012 #, no-wrap
40013 msgid ""
40014 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
40015 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
40016 " \"Current\"=dword:00000001\n"
40017 " \"Default\"=dword:00000001\n"
40018 " \"Failed\"=dword:00000000\n"
40019 " \"LastKnownGood\"=dword:00000002\n"
40020 "\n"
40021 msgstr ""
40022
40023 #. type: textblock
40024 #: ../tools/virt-win-reg.pl:638
40025 msgid "\"Current\" is the one which Windows will choose when it boots."
40026 msgstr ""
40027
40028 #. type: textblock
40029 #: ../tools/virt-win-reg.pl:640
40030 msgid "Similarly, other C<Current...> keys in the path may need to be replaced."
40031 msgstr ""
40032
40033 #. type: =head1
40034 #: ../tools/virt-win-reg.pl:643
40035 msgid "WINDOWS TIPS"
40036 msgstr ""
40037
40038 #. type: textblock
40039 #: ../tools/virt-win-reg.pl:645
40040 msgid ""
40041 "Note that some of these tips modify the guest disk image.  The guest I<must> "
40042 "be shut off, else you will get disk corruption."
40043 msgstr ""
40044
40045 #. type: =head2
40046 #: ../tools/virt-win-reg.pl:648
40047 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
40048 msgstr ""
40049
40050 #. type: textblock
40051 #: ../tools/virt-win-reg.pl:650
40052 msgid ""
40053 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
40054 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
40055 "is uploaded into C<C:\\>:"
40056 msgstr ""
40057
40058 #. type: verbatim
40059 #: ../tools/virt-win-reg.pl:654
40060 #, no-wrap
40061 msgid ""
40062 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
40063 "\n"
40064 msgstr ""
40065
40066 #. type: textblock
40067 #: ../tools/virt-win-reg.pl:656
40068 msgid "Prepare a regedit file containing the registry change:"
40069 msgstr ""
40070
40071 #. type: verbatim
40072 #: ../tools/virt-win-reg.pl:658
40073 #, no-wrap
40074 msgid ""
40075 " cat > test.reg <<'EOF'\n"
40076 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
40077 " \"Test\"=\"c:\\\\test.bat\"\n"
40078 " EOF\n"
40079 "\n"
40080 msgstr ""
40081
40082 #. type: textblock
40083 #: ../tools/virt-win-reg.pl:663
40084 msgid ""
40085 "In this example we use the key C<RunOnce> which means that the script will "
40086 "run precisely once when the first user logs in.  If you want it to run every "
40087 "time a user logs in, replace C<RunOnce> with C<Run>."
40088 msgstr ""
40089
40090 #. type: textblock
40091 #: ../tools/virt-win-reg.pl:667
40092 msgid "Now update the registry:"
40093 msgstr ""
40094
40095 #. type: verbatim
40096 #: ../tools/virt-win-reg.pl:669
40097 #, no-wrap
40098 msgid ""
40099 " virt-win-reg --merge WindowsGuest test.reg\n"
40100 "\n"
40101 msgstr ""
40102
40103 #. type: =head2
40104 #: ../tools/virt-win-reg.pl:671
40105 msgid "INSTALLING A SERVICE"
40106 msgstr ""
40107
40108 #. type: textblock
40109 #: ../tools/virt-win-reg.pl:673
40110 msgid ""
40111 "This section assumes you are familiar with Windows services, and you either "
40112 "have a program which handles the Windows Service Control Protocol directly "
40113 "or you want to run any program using a service wrapper like SrvAny or the "
40114 "free RHSrvAny."
40115 msgstr ""
40116
40117 #. type: textblock
40118 #: ../tools/virt-win-reg.pl:678
40119 msgid ""
40120 "First upload the program and optionally the service wrapper.  In this case "
40121 "the test program is called C<test.exe> and we are using the RHSrvAny "
40122 "wrapper:"
40123 msgstr ""
40124
40125 #. type: verbatim
40126 #: ../tools/virt-win-reg.pl:682
40127 #, no-wrap
40128 msgid ""
40129 " guestfish -i -d WindowsGuest <<EOF\n"
40130 "   upload rhsrvany.exe /rhsrvany.exe\n"
40131 "   upload test.exe /test.exe\n"
40132 " EOF\n"
40133 "\n"
40134 msgstr ""
40135
40136 #. type: textblock
40137 #: ../tools/virt-win-reg.pl:687
40138 msgid ""
40139 "Prepare a regedit file containing the registry changes.  In this example, "
40140 "the first registry change is needed for the service itself or the service "
40141 "wrapper (if used).  The second registry change is only needed because I am "
40142 "using the RHSrvAny service wrapper."
40143 msgstr ""
40144
40145 #. type: verbatim
40146 #: ../tools/virt-win-reg.pl:692
40147 #, no-wrap
40148 msgid ""
40149 " cat > service.reg <<'EOF'\n"
40150 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
40151 " \"Type\"=dword:00000010\n"
40152 " \"Start\"=dword:00000002\n"
40153 " \"ErrorControl\"=dword:00000001\n"
40154 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
40155 " \"DisplayName\"=\"RHSrvAny\"\n"
40156 " \"ObjectName\"=\"NetworkService\"\n"
40157 " \n"
40158 msgstr ""
40159
40160 #. type: verbatim
40161 #: ../tools/virt-win-reg.pl:701
40162 #, no-wrap
40163 msgid ""
40164 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
40165 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
40166 " \"PWD\"=\"c:\\\\Temp\"\n"
40167 " EOF\n"
40168 "\n"
40169 msgstr ""
40170
40171 #. type: textblock
40172 #: ../tools/virt-win-reg.pl:712
40173 msgid ""
40174 "For use of C<ControlSet001> see the section above in this manual page.  You "
40175 "may need to adjust this according to the control set that is in use by the "
40176 "guest."
40177 msgstr ""
40178
40179 #. type: textblock
40180 #: ../tools/virt-win-reg.pl:718
40181 msgid ""
40182 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
40183 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
40184 "privileged account."
40185 msgstr ""
40186
40187 #. type: textblock
40188 #: ../tools/virt-win-reg.pl:724
40189 msgid ""
40190 "For the meaning of the magic numbers, see this Microsoft KB article: "
40191 "L<http://support.microsoft.com/kb/103000>."
40192 msgstr ""
40193
40194 #. type: textblock
40195 #: ../tools/virt-win-reg.pl:729
40196 msgid "Update the registry:"
40197 msgstr ""
40198
40199 #. type: verbatim
40200 #: ../tools/virt-win-reg.pl:731
40201 #, no-wrap
40202 msgid ""
40203 " virt-win-reg --merge WindowsGuest service.reg\n"
40204 "\n"
40205 msgstr ""
40206
40207 #. type: textblock
40208 #: ../tools/virt-win-reg.pl:735
40209 msgid ""
40210 "Be careful when passing parameters containing C<\\> (backslash) in the "
40211 "shell.  Usually you will have to use 'single quotes' or double backslashes "
40212 "(but not both) to protect them from the shell."
40213 msgstr ""
40214
40215 #. type: textblock
40216 #: ../tools/virt-win-reg.pl:739
40217 msgid "Paths and value names are case-insensitive."
40218 msgstr ""
40219
40220 #. type: textblock
40221 #: ../tools/virt-win-reg.pl:748
40222 msgid ""
40223 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
40224 "L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
40225 "L<Sys::Guestfs::Lib(3)>, L<Win::Hivex(3)>, L<Win::Hivex::Regedit(3)>, "
40226 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
40227 msgstr ""
40228
40229 #. type: verbatim
40230 #: ../tools/virt-win-reg.pl:766
40231 #, no-wrap
40232 msgid ""
40233 " export LIBGUESTFS_DEBUG=1\n"
40234 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
40235 "\n"
40236 msgstr ""
40237
40238 #. type: textblock
40239 #: ../tools/virt-win-reg.pl:769
40240 msgid ""
40241 "Attach /tmp/virt-win-reg.log to a new bug report at "
40242 "L<https://bugzilla.redhat.com/>"
40243 msgstr ""