Version 1.15.8.
[libguestfs.git] / po-docs / libguestfs-docs.pot
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Red Hat Inc.
3 # This file is distributed under the same license as the libguestfs package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: libguestfs 1.15.8\n"
10 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
11 "POT-Creation-Date: 2011-11-29 21:47+0000\n"
12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14 "Language-Team: LANGUAGE <LL@li.org>\n"
15 "Language: \n"
16 "MIME-Version: 1.0\n"
17 "Content-Type: text/plain; charset=UTF-8\n"
18 "Content-Transfer-Encoding: 8bit\n"
19
20 #. type: =head1
21 #: ../align/virt-alignment-scan.pod:3 ../cat/virt-cat.pod:3 ../cat/virt-filesystems.pod:3 ../cat/virt-ls.pod:3 ../clone/virt-sysprep.pod:3 ../df/virt-df.pod:3 ../edit/virt-edit.pod:3 ../erlang/examples/guestfs-erlang.pod:3 ../examples/guestfs-examples.pod:3 ../examples/guestfs-recipes.pod:14 ../examples/guestfs-testing.pod:3 ../fish/guestfish.pod:3 ../fish/virt-copy-in.pod:3 ../fish/virt-copy-out.pod:3 ../fish/virt-tar-in.pod:3 ../fish/virt-tar-out.pod:3 ../fuse/guestmount.pod:3 ../inspector/virt-inspector.pod:3 ../java/examples/guestfs-java.pod:3 ../ocaml/examples/guestfs-ocaml.pod:3 ../perl/examples/guestfs-perl.pod:3 ../python/examples/guestfs-python.pod:3 ../rescue/virt-rescue.pod:3 ../resize/virt-resize.pod:3 ../ruby/examples/guestfs-ruby.pod:3 ../sparsify/virt-sparsify.pod:3 ../src/guestfs.pod:3 ../test-tool/libguestfs-test-tool.pod:3 ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30 ../tools/virt-make-fs.pl:35 ../tools/virt-tar.pl:31 ../tools/virt-win-reg.pl:35
22 msgid "NAME"
23 msgstr ""
24
25 #. type: textblock
26 #: ../align/virt-alignment-scan.pod:5
27 msgid "virt-alignment-scan - Check alignment of virtual machine partitions"
28 msgstr ""
29
30 #. type: =head1
31 #: ../align/virt-alignment-scan.pod:7 ../cat/virt-cat.pod:7 ../cat/virt-filesystems.pod:7 ../cat/virt-ls.pod:7 ../clone/virt-sysprep.pod:7 ../df/virt-df.pod:7 ../edit/virt-edit.pod:7 ../erlang/examples/guestfs-erlang.pod:7 ../examples/guestfs-examples.pod:7 ../fish/guestfish.pod:7 ../fish/virt-copy-in.pod:7 ../fish/virt-copy-out.pod:7 ../fish/virt-tar-in.pod:7 ../fish/virt-tar-out.pod:7 ../fuse/guestmount.pod:7 ../inspector/virt-inspector.pod:7 ../java/examples/guestfs-java.pod:7 ../ocaml/examples/guestfs-ocaml.pod:7 ../perl/examples/guestfs-perl.pod:7 ../python/examples/guestfs-python.pod:7 ../rescue/virt-rescue.pod:7 ../resize/virt-resize.pod:7 ../ruby/examples/guestfs-ruby.pod:7 ../sparsify/virt-sparsify.pod:7 ../src/guestfs.pod:7 ../test-tool/libguestfs-test-tool.pod:7 ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34 ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35 ../tools/virt-win-reg.pl:39
32 msgid "SYNOPSIS"
33 msgstr ""
34
35 #. type: verbatim
36 #: ../align/virt-alignment-scan.pod:9
37 #, no-wrap
38 msgid ""
39 " virt-alignment-scan [--options] -d domname\n"
40 "\n"
41 msgstr ""
42
43 #. type: verbatim
44 #: ../align/virt-alignment-scan.pod:11
45 #, no-wrap
46 msgid ""
47 " virt-alignment-scan [--options] -a disk.img [-a disk.img ...]\n"
48 "\n"
49 msgstr ""
50
51 #. type: =head1
52 #: ../align/virt-alignment-scan.pod:13 ../cat/virt-cat.pod:19 ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19 ../clone/virt-sysprep.pod:13 ../df/virt-df.pod:21 ../edit/virt-edit.pod:27 ../erlang/examples/guestfs-erlang.pod:16 ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18 ../examples/guestfs-testing.pod:7 ../fish/guestfish.pod:30 ../fish/virt-copy-in.pod:19 ../fish/virt-copy-out.pod:13 ../fish/virt-tar-in.pod:21 ../fish/virt-tar-out.pod:15 ../fuse/guestmount.pod:20 ../inspector/virt-inspector.pod:19 ../java/examples/guestfs-java.pod:15 ../ocaml/examples/guestfs-ocaml.pod:25 ../perl/examples/guestfs-perl.pod:18 ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:31 ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15 ../sparsify/virt-sparsify.pod:11 ../src/guestfs.pod:23 ../test-tool/libguestfs-test-tool.pod:11 ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40 ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77 ../tools/virt-win-reg.pl:63
53 msgid "DESCRIPTION"
54 msgstr ""
55
56 #. type: textblock
57 #: ../align/virt-alignment-scan.pod:15
58 msgid ""
59 "When older operating systems install themselves, the partitioning tools "
60 "place partitions at a sector misaligned with the underlying storage "
61 "(commonly the first partition starts on sector C<63>).  Misaligned "
62 "partitions can result in an operating system issuing more I/O than should be "
63 "necessary."
64 msgstr ""
65
66 #. type: textblock
67 #: ../align/virt-alignment-scan.pod:21
68 msgid ""
69 "The virt-alignment-scan tool checks the alignment of partitions in virtual "
70 "machines and disk images and warns you if there are alignment problems."
71 msgstr ""
72
73 #. type: textblock
74 #: ../align/virt-alignment-scan.pod:25
75 msgid ""
76 "Currently there is no virt tool for fixing alignment problems.  You can only "
77 "reinstall the guest operating system.  The following NetApp document "
78 "summarises the problem and possible solutions: "
79 "L<http://media.netapp.com/documents/tr-3747.pdf>"
80 msgstr ""
81
82 #. type: =head1
83 #: ../align/virt-alignment-scan.pod:30
84 msgid "OUTPUT"
85 msgstr ""
86
87 #. type: textblock
88 #: ../align/virt-alignment-scan.pod:32
89 msgid "To run this tool on a disk image directly, use the I<-a> option:"
90 msgstr ""
91
92 #. type: verbatim
93 #: ../align/virt-alignment-scan.pod:34
94 #, no-wrap
95 msgid ""
96 " $ virt-alignment-scan -a winxp.img\n"
97 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
98 "\n"
99 msgstr ""
100
101 #. type: verbatim
102 #: ../align/virt-alignment-scan.pod:37
103 #, no-wrap
104 msgid ""
105 " $ virt-alignment-scan -a fedora16.img\n"
106 " /dev/sda1      1048576         1024K   ok\n"
107 " /dev/sda2      2097152         2048K   ok\n"
108 " /dev/sda3    526385152         2048K   ok\n"
109 "\n"
110 msgstr ""
111
112 #. type: textblock
113 #: ../align/virt-alignment-scan.pod:42
114 msgid ""
115 "To run the tool on a guest known to libvirt, use the I<-d> option and "
116 "possibly the I<-c> option:"
117 msgstr ""
118
119 #. type: verbatim
120 #: ../align/virt-alignment-scan.pod:45
121 #, no-wrap
122 msgid ""
123 " # virt-alignment-scan -d RHEL5\n"
124 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
125 " /dev/sda2    106928640          512    bad (alignment < 4K)\n"
126 "\n"
127 msgstr ""
128
129 #. type: verbatim
130 #: ../align/virt-alignment-scan.pod:49
131 #, no-wrap
132 msgid ""
133 " $ virt-alignment-scan -c qemu:///system -d Win7TwoDisks\n"
134 " /dev/sda1      1048576         1024K   ok\n"
135 " /dev/sda2    105906176         1024K   ok\n"
136 " /dev/sdb1        65536           64K   ok\n"
137 "\n"
138 msgstr ""
139
140 #. type: textblock
141 #: ../align/virt-alignment-scan.pod:54
142 msgid ""
143 "The output consists of 4 or more whitespace-separated columns.  Only the "
144 "first 4 columns are signficant if you want to parse this from a program.  "
145 "The columns are:"
146 msgstr ""
147
148 #. type: =item
149 #: ../align/virt-alignment-scan.pod:60
150 msgid "col 1"
151 msgstr ""
152
153 #. type: textblock
154 #: ../align/virt-alignment-scan.pod:62
155 msgid ""
156 "the device and partition name (eg. C</dev/sda1> meaning the first partition "
157 "on the first block device)"
158 msgstr ""
159
160 #. type: =item
161 #: ../align/virt-alignment-scan.pod:65
162 msgid "col 2"
163 msgstr ""
164
165 #. type: textblock
166 #: ../align/virt-alignment-scan.pod:67
167 msgid "the start of the partition in bytes"
168 msgstr ""
169
170 #. type: =item
171 #: ../align/virt-alignment-scan.pod:69
172 msgid "col 3"
173 msgstr ""
174
175 #. type: textblock
176 #: ../align/virt-alignment-scan.pod:71
177 msgid "the alignment in bytes or Kbytes (eg. C<512> or C<4K>)"
178 msgstr ""
179
180 #. type: =item
181 #: ../align/virt-alignment-scan.pod:73
182 msgid "col 4"
183 msgstr ""
184
185 #. type: textblock
186 #: ../align/virt-alignment-scan.pod:75
187 msgid ""
188 "C<ok> if the alignment is best for performance, or C<bad> if the alignment "
189 "can cause performance problems"
190 msgstr ""
191
192 #. type: =item
193 #: ../align/virt-alignment-scan.pod:78
194 msgid "cols 5+"
195 msgstr ""
196
197 #. type: textblock
198 #: ../align/virt-alignment-scan.pod:80
199 msgid "optional free-text explanation."
200 msgstr ""
201
202 #. type: textblock
203 #: ../align/virt-alignment-scan.pod:84
204 msgid ""
205 "The exit code from the program changes depending on whether poorly aligned "
206 "partitions were found.  See L</EXIT STATUS> below."
207 msgstr ""
208
209 #. type: textblock
210 #: ../align/virt-alignment-scan.pod:87
211 msgid "If you just want the exit code with no output, use the I<-q> option."
212 msgstr ""
213
214 #. type: =head1
215 #: ../align/virt-alignment-scan.pod:89 ../cat/virt-cat.pod:62 ../cat/virt-filesystems.pod:91 ../cat/virt-ls.pod:261 ../clone/virt-sysprep.pod:42 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62 ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45 ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42 ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:92 ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:112 ../resize/virt-resize.pod:262 ../sparsify/virt-sparsify.pod:99 ../test-tool/libguestfs-test-tool.pod:36 ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54 ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103 ../tools/virt-win-reg.pl:96
216 msgid "OPTIONS"
217 msgstr ""
218
219 #. type: =item
220 #: ../align/virt-alignment-scan.pod:93 ../cat/virt-cat.pod:66 ../cat/virt-filesystems.pod:95 ../cat/virt-ls.pod:265 ../clone/virt-sysprep.pod:46 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66 ../fish/guestfish.pod:152 ../fuse/guestmount.pod:160 ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:116 ../resize/virt-resize.pod:266 ../sparsify/virt-sparsify.pod:103 ../test-tool/libguestfs-test-tool.pod:40 ../tools/virt-list-filesystems.pl:61 ../tools/virt-list-partitions.pl:62 ../tools/virt-make-fs.pl:161 ../tools/virt-tar.pl:111 ../tools/virt-win-reg.pl:104
221 msgid "B<--help>"
222 msgstr ""
223
224 #. type: textblock
225 #: ../align/virt-alignment-scan.pod:95 ../cat/virt-cat.pod:68 ../cat/virt-filesystems.pod:97 ../cat/virt-ls.pod:267 ../clone/virt-sysprep.pod:48 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68 ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:118 ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64 ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113 ../tools/virt-win-reg.pl:106
226 msgid "Display brief help."
227 msgstr ""
228
229 #. type: =item
230 #: ../align/virt-alignment-scan.pod:97 ../cat/virt-cat.pod:70 ../cat/virt-filesystems.pod:99 ../cat/virt-ls.pod:269 ../clone/virt-sysprep.pod:50 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70 ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:120
231 msgid "B<-a> file"
232 msgstr ""
233
234 #. type: =item
235 #: ../align/virt-alignment-scan.pod:99 ../cat/virt-cat.pod:72 ../cat/virt-filesystems.pod:101 ../cat/virt-ls.pod:271 ../clone/virt-sysprep.pod:52 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72 ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:122
236 msgid "B<--add> file"
237 msgstr ""
238
239 #. type: textblock
240 #: ../align/virt-alignment-scan.pod:101 ../clone/virt-sysprep.pod:54
241 msgid "Add I<file> which should be a disk image from a virtual machine."
242 msgstr ""
243
244 #. type: textblock
245 #: ../align/virt-alignment-scan.pod:103 ../cat/virt-cat.pod:78 ../cat/virt-filesystems.pod:107 ../cat/virt-ls.pod:277 ../clone/virt-sysprep.pod:56 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78 ../fish/guestfish.pod:174 ../fuse/guestmount.pod:102 ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:128
246 msgid ""
247 "The format of the disk image is auto-detected.  To override this and force a "
248 "particular format use the I<--format=..> option."
249 msgstr ""
250
251 #. type: =item
252 #: ../align/virt-alignment-scan.pod:106 ../cat/virt-cat.pod:81 ../cat/virt-filesystems.pod:125 ../cat/virt-ls.pod:291 ../clone/virt-sysprep.pod:59 ../df/virt-df.pod:78 ../rescue/virt-rescue.pod:135
253 msgid "B<-c> URI"
254 msgstr ""
255
256 #. type: =item
257 #: ../align/virt-alignment-scan.pod:108 ../cat/virt-cat.pod:83 ../cat/virt-filesystems.pod:127 ../cat/virt-ls.pod:293 ../clone/virt-sysprep.pod:61 ../df/virt-df.pod:80 ../rescue/virt-rescue.pod:137
258 msgid "B<--connect> URI"
259 msgstr ""
260
261 #. type: textblock
262 #: ../align/virt-alignment-scan.pod:110 ../cat/virt-cat.pod:85 ../cat/virt-filesystems.pod:129 ../cat/virt-ls.pod:295 ../clone/virt-sysprep.pod:63 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99 ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:139 ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82 ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
263 msgid ""
264 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
265 "to the default libvirt hypervisor."
266 msgstr ""
267
268 #. type: textblock
269 #: ../align/virt-alignment-scan.pod:113 ../cat/virt-cat.pod:88 ../cat/virt-filesystems.pod:132 ../cat/virt-ls.pod:298 ../clone/virt-sysprep.pod:66 ../df/virt-df.pod:85 ../rescue/virt-rescue.pod:142
270 msgid ""
271 "If you specify guest block devices directly (I<-a>), then libvirt is not "
272 "used at all."
273 msgstr ""
274
275 #. type: =item
276 #: ../align/virt-alignment-scan.pod:116 ../cat/virt-cat.pod:91 ../cat/virt-filesystems.pod:141 ../cat/virt-ls.pod:307 ../clone/virt-sysprep.pod:69 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105 ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:145
277 msgid "B<-d> guest"
278 msgstr ""
279
280 #. type: =item
281 #: ../align/virt-alignment-scan.pod:118 ../cat/virt-cat.pod:93 ../cat/virt-filesystems.pod:143 ../cat/virt-ls.pod:309 ../clone/virt-sysprep.pod:71 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107 ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:147
282 msgid "B<--domain> guest"
283 msgstr ""
284
285 #. type: textblock
286 #: ../align/virt-alignment-scan.pod:120 ../cat/virt-cat.pod:95 ../cat/virt-filesystems.pod:145 ../cat/virt-ls.pod:311 ../clone/virt-sysprep.pod:73 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109 ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:149
287 msgid ""
288 "Add all the disks from the named libvirt guest.  Domain UUIDs can be used "
289 "instead of names."
290 msgstr ""
291
292 #. type: =item
293 #: ../align/virt-alignment-scan.pod:123 ../cat/virt-cat.pod:105 ../cat/virt-filesystems.pod:170 ../cat/virt-ls.pod:328 ../clone/virt-sysprep.pod:95 ../df/virt-df.pod:101 ../fish/guestfish.pod:233 ../fuse/guestmount.pod:142 ../inspector/virt-inspector.pod:99 ../rescue/virt-rescue.pod:152
294 msgid "B<--format=raw|qcow2|..>"
295 msgstr ""
296
297 #. type: =item
298 #: ../align/virt-alignment-scan.pod:125 ../cat/virt-cat.pod:107 ../cat/virt-filesystems.pod:172 ../cat/virt-ls.pod:330 ../clone/virt-sysprep.pod:97 ../df/virt-df.pod:103 ../edit/virt-edit.pod:134 ../fish/guestfish.pod:235 ../fuse/guestmount.pod:144 ../inspector/virt-inspector.pod:101 ../rescue/virt-rescue.pod:154
299 msgid "B<--format>"
300 msgstr ""
301
302 #. type: textblock
303 #: ../align/virt-alignment-scan.pod:127 ../cat/virt-cat.pod:109 ../cat/virt-filesystems.pod:174 ../cat/virt-ls.pod:332 ../clone/virt-sysprep.pod:99 ../df/virt-df.pod:105 ../edit/virt-edit.pod:136 ../fish/guestfish.pod:237 ../fuse/guestmount.pod:146 ../rescue/virt-rescue.pod:156
304 msgid ""
305 "The default for the I<-a> option is to auto-detect the format of the disk "
306 "image.  Using this forces the disk format for I<-a> options which follow on "
307 "the command line.  Using I<--format> with no argument switches back to "
308 "auto-detection for subsequent I<-a> options."
309 msgstr ""
310
311 #. type: textblock
312 #: ../align/virt-alignment-scan.pod:132 ../cat/virt-cat.pod:114 ../cat/virt-filesystems.pod:179 ../cat/virt-ls.pod:337 ../clone/virt-sysprep.pod:104 ../df/virt-df.pod:110 ../edit/virt-edit.pod:141 ../fish/guestfish.pod:242 ../fish/guestfish.pod:673 ../inspector/virt-inspector.pod:351 ../rescue/virt-rescue.pod:161 ../src/guestfs.pod:2877
313 msgid "For example:"
314 msgstr ""
315
316 #. type: verbatim
317 #: ../align/virt-alignment-scan.pod:134
318 #, no-wrap
319 msgid ""
320 " virt-alignment-scan --format=raw -a disk.img\n"
321 "\n"
322 msgstr ""
323
324 #. type: textblock
325 #: ../align/virt-alignment-scan.pod:136 ../cat/virt-cat.pod:118 ../cat/virt-filesystems.pod:183 ../cat/virt-ls.pod:341 ../clone/virt-sysprep.pod:108 ../df/virt-df.pod:114 ../edit/virt-edit.pod:145 ../fish/guestfish.pod:246 ../rescue/virt-rescue.pod:165
326 msgid "forces raw format (no auto-detection) for C<disk.img>."
327 msgstr ""
328
329 #. type: verbatim
330 #: ../align/virt-alignment-scan.pod:138
331 #, no-wrap
332 msgid ""
333 " virt-alignment-scan --format=raw -a disk.img --format -a another.img\n"
334 "\n"
335 msgstr ""
336
337 #. type: textblock
338 #: ../align/virt-alignment-scan.pod:140 ../cat/virt-cat.pod:122 ../cat/virt-filesystems.pod:187 ../cat/virt-ls.pod:345 ../clone/virt-sysprep.pod:112 ../df/virt-df.pod:118 ../edit/virt-edit.pod:149 ../fish/guestfish.pod:250 ../rescue/virt-rescue.pod:169
339 msgid ""
340 "forces raw format (no auto-detection) for C<disk.img> and reverts to "
341 "auto-detection for C<another.img>."
342 msgstr ""
343
344 #. type: textblock
345 #: ../align/virt-alignment-scan.pod:143 ../cat/virt-cat.pod:125 ../cat/virt-filesystems.pod:190 ../cat/virt-ls.pod:348 ../clone/virt-sysprep.pod:115 ../df/virt-df.pod:121 ../edit/virt-edit.pod:152 ../rescue/virt-rescue.pod:172
346 msgid ""
347 "If you have untrusted raw-format guest disk images, you should use this "
348 "option to specify the disk format.  This avoids a possible security problem "
349 "with malicious guests (CVE-2010-3851)."
350 msgstr ""
351
352 #. type: =item
353 #: ../align/virt-alignment-scan.pod:147 ../resize/virt-resize.pod:497 ../sparsify/virt-sparsify.pod:177
354 msgid "B<-q>"
355 msgstr ""
356
357 #. type: =item
358 #: ../align/virt-alignment-scan.pod:149 ../resize/virt-resize.pod:499 ../sparsify/virt-sparsify.pod:179
359 msgid "B<--quiet>"
360 msgstr ""
361
362 #. type: textblock
363 #: ../align/virt-alignment-scan.pod:151
364 msgid ""
365 "Don't produce any output.  Just set the exit code (see L</EXIT STATUS> "
366 "below)."
367 msgstr ""
368
369 #. type: =item
370 #: ../align/virt-alignment-scan.pod:154 ../cat/virt-cat.pod:134 ../cat/virt-filesystems.pod:261 ../cat/virt-ls.pod:425 ../clone/virt-sysprep.pod:138 ../df/virt-df.pod:173 ../edit/virt-edit.pod:161 ../fish/guestfish.pod:390 ../fuse/guestmount.pod:266 ../inspector/virt-inspector.pod:119 ../rescue/virt-rescue.pod:219 ../sparsify/virt-sparsify.pod:183
371 msgid "B<-v>"
372 msgstr ""
373
374 #. type: =item
375 #: ../align/virt-alignment-scan.pod:156 ../cat/virt-cat.pod:136 ../cat/virt-filesystems.pod:263 ../cat/virt-ls.pod:427 ../clone/virt-sysprep.pod:140 ../df/virt-df.pod:175 ../edit/virt-edit.pod:163 ../fish/guestfish.pod:392 ../fuse/guestmount.pod:268 ../inspector/virt-inspector.pod:121 ../rescue/virt-rescue.pod:221 ../sparsify/virt-sparsify.pod:185
376 msgid "B<--verbose>"
377 msgstr ""
378
379 #. type: textblock
380 #: ../align/virt-alignment-scan.pod:158 ../cat/virt-cat.pod:138 ../cat/virt-filesystems.pod:265 ../cat/virt-ls.pod:429 ../clone/virt-sysprep.pod:142 ../df/virt-df.pod:177 ../edit/virt-edit.pod:165 ../inspector/virt-inspector.pod:123 ../rescue/virt-rescue.pod:223 ../sparsify/virt-sparsify.pod:187
381 msgid "Enable verbose messages for debugging."
382 msgstr ""
383
384 #. type: =item
385 #: ../align/virt-alignment-scan.pod:160 ../cat/virt-cat.pod:140 ../cat/virt-filesystems.pod:267 ../cat/virt-ls.pod:431 ../clone/virt-sysprep.pod:144 ../df/virt-df.pod:179 ../edit/virt-edit.pod:167 ../fish/guestfish.pod:397 ../fuse/guestmount.pod:272 ../inspector/virt-inspector.pod:125 ../rescue/virt-rescue.pod:225 ../resize/virt-resize.pod:567 ../sparsify/virt-sparsify.pod:189
386 msgid "B<-V>"
387 msgstr ""
388
389 #. type: =item
390 #: ../align/virt-alignment-scan.pod:162 ../cat/virt-cat.pod:142 ../cat/virt-filesystems.pod:269 ../cat/virt-ls.pod:433 ../clone/virt-sysprep.pod:146 ../df/virt-df.pod:181 ../edit/virt-edit.pod:169 ../fish/guestfish.pod:399 ../fuse/guestmount.pod:274 ../inspector/virt-inspector.pod:127 ../rescue/virt-rescue.pod:227 ../resize/virt-resize.pod:569 ../sparsify/virt-sparsify.pod:191 ../tools/virt-list-filesystems.pl:69 ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169 ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
391 msgid "B<--version>"
392 msgstr ""
393
394 #. type: textblock
395 #: ../align/virt-alignment-scan.pod:164 ../cat/virt-cat.pod:144 ../cat/virt-filesystems.pod:271 ../cat/virt-ls.pod:435 ../clone/virt-sysprep.pod:148 ../df/virt-df.pod:183 ../edit/virt-edit.pod:171 ../inspector/virt-inspector.pod:129 ../rescue/virt-rescue.pod:229 ../resize/virt-resize.pod:571 ../sparsify/virt-sparsify.pod:193 ../tools/virt-list-filesystems.pl:71 ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171 ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114
396 msgid "Display version number and exit."
397 msgstr ""
398
399 #. type: =item
400 #: ../align/virt-alignment-scan.pod:166 ../cat/virt-cat.pod:146 ../cat/virt-filesystems.pod:281 ../cat/virt-ls.pod:437 ../clone/virt-sysprep.pod:150 ../df/virt-df.pod:185 ../edit/virt-edit.pod:173 ../fish/guestfish.pod:412 ../fuse/guestmount.pod:287 ../inspector/virt-inspector.pod:131 ../rescue/virt-rescue.pod:240 ../sparsify/virt-sparsify.pod:195 ../tools/virt-tar.pl:158
401 msgid "B<-x>"
402 msgstr ""
403
404 #. type: textblock
405 #: ../align/virt-alignment-scan.pod:168 ../cat/virt-cat.pod:148 ../cat/virt-filesystems.pod:283 ../cat/virt-ls.pod:439 ../clone/virt-sysprep.pod:152 ../df/virt-df.pod:187 ../edit/virt-edit.pod:175 ../inspector/virt-inspector.pod:133 ../rescue/virt-rescue.pod:242 ../sparsify/virt-sparsify.pod:197
406 msgid "Enable tracing of libguestfs API calls."
407 msgstr ""
408
409 #. type: =head1
410 #: ../align/virt-alignment-scan.pod:172
411 msgid "RECOMMENDED ALIGNMENT"
412 msgstr ""
413
414 #. type: textblock
415 #: ../align/virt-alignment-scan.pod:174
416 msgid ""
417 "Operating systems older than Windows 2008 and Linux before ca.2010 place the "
418 "first sector of the first partition at sector 63, with a 512 byte sector "
419 "size.  This happens because of a historical accident.  Drives have to report "
420 "a cylinder / head / sector (CHS) geometry to the BIOS.  The geometry is "
421 "completely meaningless on modern drives, but it happens that the geometry "
422 "reported always has 63 sectors per track.  The operating system therefore "
423 "places the first partition at the start of the second \"track\", at sector "
424 "63."
425 msgstr ""
426
427 #. type: textblock
428 #: ../align/virt-alignment-scan.pod:183
429 msgid ""
430 "When the guest OS is virtualized, the host operating system and hypervisor "
431 "may prefer accesses aligned to one of:"
432 msgstr ""
433
434 #. type: =item
435 #: ../align/virt-alignment-scan.pod:188
436 msgid "* 512 bytes"
437 msgstr ""
438
439 #. type: textblock
440 #: ../align/virt-alignment-scan.pod:190
441 msgid ""
442 "if the host OS uses local storage directly on hard drive partitions, and the "
443 "hard drive has 512 byte physical sectors."
444 msgstr ""
445
446 #. type: =item
447 #: ../align/virt-alignment-scan.pod:193
448 msgid "* 4 Kbytes"
449 msgstr ""
450
451 #. type: textblock
452 #: ../align/virt-alignment-scan.pod:195
453 msgid ""
454 "for local storage on new hard drives with 4Kbyte physical sectors; for "
455 "file-backed storage on filesystems with 4Kbyte block size; or for some types "
456 "of network-attached storage."
457 msgstr ""
458
459 #. type: =item
460 #: ../align/virt-alignment-scan.pod:199
461 msgid "* 64 Kbytes"
462 msgstr ""
463
464 #. type: textblock
465 #: ../align/virt-alignment-scan.pod:201
466 msgid ""
467 "for high-end network-attached storage.  This is the optimal block size for "
468 "some NetApp hardware."
469 msgstr ""
470
471 #. type: =item
472 #: ../align/virt-alignment-scan.pod:204
473 msgid "* 1 Mbyte"
474 msgstr ""
475
476 #. type: textblock
477 #: ../align/virt-alignment-scan.pod:206
478 msgid "see L</1 MB PARTITION ALIGNMENT> below."
479 msgstr ""
480
481 #. type: textblock
482 #: ../align/virt-alignment-scan.pod:210
483 msgid ""
484 "Partitions which are not aligned correctly to the underlying storage cause "
485 "extra I/O.  For example:"
486 msgstr ""
487
488 #. type: verbatim
489 #: ../align/virt-alignment-scan.pod:213
490 #, no-wrap
491 msgid ""
492 "                       sect#63\n"
493 "                       +--------------------------+------\n"
494 "                       |         guest            |\n"
495 "                       |    filesystem block      |\n"
496 " ---+------------------+------+-------------------+-----+---\n"
497 "    |  host block             |  host block             |\n"
498 "    |                         |                         |\n"
499 " ---+-------------------------+-------------------------+---\n"
500 "\n"
501 msgstr ""
502
503 #. type: textblock
504 #: ../align/virt-alignment-scan.pod:222
505 msgid ""
506 "In this example, each time a 4K guest block is read, two blocks on the host "
507 "must be accessed (so twice as much I/O is done).  When a 4K guest block is "
508 "written, two host blocks must first be read, the old and new data combined, "
509 "and the two blocks written back (4x I/O)."
510 msgstr ""
511
512 #. type: =head2
513 #: ../align/virt-alignment-scan.pod:227
514 msgid "LINUX HOST BLOCK AND I/O SIZE"
515 msgstr ""
516
517 #. type: textblock
518 #: ../align/virt-alignment-scan.pod:229
519 msgid ""
520 "New versions of the Linux kernel expose the physical and logical block size, "
521 "and minimum and recommended I/O size."
522 msgstr ""
523
524 #. type: textblock
525 #: ../align/virt-alignment-scan.pod:232
526 msgid "For a typical consumer hard drive with 512 byte sectors:"
527 msgstr ""
528
529 #. type: verbatim
530 #: ../align/virt-alignment-scan.pod:234
531 #, no-wrap
532 msgid ""
533 " $ cat /sys/block/sda/queue/hw_sector_size\n"
534 " 512\n"
535 " $ cat /sys/block/sda/queue/physical_block_size\n"
536 " 512\n"
537 " $ cat /sys/block/sda/queue/logical_block_size\n"
538 " 512\n"
539 " $ cat /sys/block/sda/queue/minimum_io_size\n"
540 " 512\n"
541 " $ cat /sys/block/sda/queue/optimal_io_size\n"
542 " 0\n"
543 "\n"
544 msgstr ""
545
546 #. type: textblock
547 #: ../align/virt-alignment-scan.pod:245
548 msgid "For a new consumer hard drive with 4Kbyte sectors:"
549 msgstr ""
550
551 #. type: verbatim
552 #: ../align/virt-alignment-scan.pod:247
553 #, no-wrap
554 msgid ""
555 " $ cat /sys/block/sda/queue/hw_sector_size\n"
556 " 4096\n"
557 " $ cat /sys/block/sda/queue/physical_block_size\n"
558 " 4096\n"
559 " $ cat /sys/block/sda/queue/logical_block_size\n"
560 " 4096\n"
561 " $ cat /sys/block/sda/queue/minimum_io_size\n"
562 " 4096\n"
563 " $ cat /sys/block/sda/queue/optimal_io_size\n"
564 " 0\n"
565 "\n"
566 msgstr ""
567
568 #. type: textblock
569 #: ../align/virt-alignment-scan.pod:258
570 msgid "For a NetApp LUN:"
571 msgstr ""
572
573 #. type: verbatim
574 #: ../align/virt-alignment-scan.pod:260
575 #, no-wrap
576 msgid ""
577 " $ cat /sys/block/sdc/queue/logical_block_size\n"
578 " 512\n"
579 " $ cat /sys/block/sdc/queue/physical_block_size\n"
580 " 512\n"
581 " $ cat /sys/block/sdc/queue/minimum_io_size\n"
582 " 4096\n"
583 " $ cat /sys/block/sdc/queue/optimal_io_size\n"
584 " 65536\n"
585 "\n"
586 msgstr ""
587
588 #. type: textblock
589 #: ../align/virt-alignment-scan.pod:269
590 msgid ""
591 "The NetApp allows 512 byte accesses (but they will be very inefficient), "
592 "prefers a minimum 4K I/O size, but the optimal I/O size is 64K."
593 msgstr ""
594
595 #. type: textblock
596 #: ../align/virt-alignment-scan.pod:273
597 msgid ""
598 "For detailed information about what these numbers mean, see "
599 "L<http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Storage_Administration_Guide/newstorage-iolimits.html>"
600 msgstr ""
601
602 #. type: textblock
603 #: ../align/virt-alignment-scan.pod:276
604 msgid ""
605 "[Thanks to Matt Booth for providing 4K drive data.  Thanks to Mike Snitzer "
606 "for providing NetApp data and additional information.]"
607 msgstr ""
608
609 #. type: =head2
610 #: ../align/virt-alignment-scan.pod:279
611 msgid "1 MB PARTITION ALIGNMENT"
612 msgstr ""
613
614 #. type: textblock
615 #: ../align/virt-alignment-scan.pod:281
616 msgid ""
617 "Microsoft picked 1 MB as the default alignment for all partitions starting "
618 "with Windows 2008 Server, and Linux has followed this."
619 msgstr ""
620
621 #. type: textblock
622 #: ../align/virt-alignment-scan.pod:284
623 msgid ""
624 "Assuming 512 byte sectors in the guest, you will now see the first partition "
625 "starting at sector 2048, and subsequent partitions (if any)  will start at a "
626 "multiple of 2048 sectors."
627 msgstr ""
628
629 #. type: textblock
630 #: ../align/virt-alignment-scan.pod:288
631 msgid ""
632 "1 MB alignment is compatible with all current alignment requirements (4K, "
633 "64K) and provides room for future growth in physical block sizes."
634 msgstr ""
635
636 #. type: =head2
637 #: ../align/virt-alignment-scan.pod:291
638 msgid "SETTING ALIGNMENT"
639 msgstr ""
640
641 #. type: textblock
642 #: ../align/virt-alignment-scan.pod:293
643 msgid ""
644 "L<virt-resize(1)> can change the alignment of the partitions of some "
645 "guests.  Currently it can fully align all the partitions of all Windows "
646 "guests, and it will fix the bootloader where necessary.  For Linux guests, "
647 "it can align the second and subsequent partitions, so the majority of OS "
648 "accesses except at boot will be aligned."
649 msgstr ""
650
651 #. type: textblock
652 #: ../align/virt-alignment-scan.pod:299
653 msgid ""
654 "Another way to correct partition alignment problems is to reinstall your "
655 "guest operating systems.  If you install operating systems from templates, "
656 "ensure these have correct partition alignment too."
657 msgstr ""
658
659 #. type: textblock
660 #: ../align/virt-alignment-scan.pod:303
661 msgid ""
662 "For older versions of Windows, the following NetApp document contains useful "
663 "information: L<http://media.netapp.com/documents/tr-3747.pdf>"
664 msgstr ""
665
666 #. type: textblock
667 #: ../align/virt-alignment-scan.pod:306
668 msgid ""
669 "For Red Hat Enterprise Linux E<le> 5, use a Kickstart script that contains "
670 "an explicit C<%pre> section that creates aligned partitions using "
671 "L<parted(8)>.  Do not use the Kickstart C<part> command.  The NetApp "
672 "document above contains an example."
673 msgstr ""
674
675 #. type: =head1
676 #: ../align/virt-alignment-scan.pod:311 ../cat/virt-cat.pod:231 ../cat/virt-filesystems.pod:373 ../cat/virt-ls.pod:483 ../clone/virt-sysprep.pod:475 ../df/virt-df.pod:241 ../edit/virt-edit.pod:342 ../inspector/virt-inspector.pod:367 ../rescue/virt-rescue.pod:303 ../resize/virt-resize.pod:682 ../tools/virt-list-filesystems.pl:188 ../tools/virt-list-partitions.pl:258 ../tools/virt-make-fs.pl:550 ../tools/virt-tar.pl:289 ../tools/virt-win-reg.pl:744
677 msgid "SHELL QUOTING"
678 msgstr ""
679
680 #. type: textblock
681 #: ../align/virt-alignment-scan.pod:313 ../cat/virt-cat.pod:233 ../cat/virt-filesystems.pod:375 ../cat/virt-ls.pod:485 ../clone/virt-sysprep.pod:477 ../df/virt-df.pod:243 ../edit/virt-edit.pod:344 ../inspector/virt-inspector.pod:369 ../rescue/virt-rescue.pod:305 ../resize/virt-resize.pod:684 ../tools/virt-list-filesystems.pl:190 ../tools/virt-list-partitions.pl:260 ../tools/virt-make-fs.pl:552 ../tools/virt-tar.pl:291 ../tools/virt-win-reg.pl:752
682 msgid ""
683 "Libvirt guest names can contain arbitrary characters, some of which have "
684 "meaning to the shell such as C<#> and space.  You may need to quote or "
685 "escape these characters on the command line.  See the shell manual page "
686 "L<sh(1)> for details."
687 msgstr ""
688
689 #. type: =head1
690 #: ../align/virt-alignment-scan.pod:318 ../cat/virt-cat.pod:238 ../cat/virt-filesystems.pod:380 ../cat/virt-ls.pod:490 ../clone/virt-sysprep.pod:482 ../df/virt-df.pod:248 ../edit/virt-edit.pod:349 ../fish/guestfish.pod:1114 ../fuse/guestmount.pod:312 ../inspector/virt-inspector.pod:390 ../resize/virt-resize.pod:689 ../sparsify/virt-sparsify.pod:251 ../test-tool/libguestfs-test-tool.pod:90
691 msgid "EXIT STATUS"
692 msgstr ""
693
694 #. type: textblock
695 #: ../align/virt-alignment-scan.pod:320
696 msgid "This program returns:"
697 msgstr ""
698
699 #. type: =item
700 #: ../align/virt-alignment-scan.pod:324 ../align/virt-alignment-scan.pod:330 ../align/virt-alignment-scan.pod:336 ../align/virt-alignment-scan.pod:343 ../cat/virt-cat.pod:177 ../cat/virt-cat.pod:182 ../cat/virt-cat.pod:187 ../cat/virt-cat.pod:198 ../cat/virt-cat.pod:202 ../clone/virt-sysprep.pod:283 ../clone/virt-sysprep.pod:287 ../clone/virt-sysprep.pod:291 ../clone/virt-sysprep.pod:295 ../clone/virt-sysprep.pod:310 ../clone/virt-sysprep.pod:314 ../clone/virt-sysprep.pod:318 ../clone/virt-sysprep.pod:322 ../clone/virt-sysprep.pod:326 ../clone/virt-sysprep.pod:362 ../clone/virt-sysprep.pod:384 ../clone/virt-sysprep.pod:388 ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266 ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276 ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291 ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102 ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132 ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227 ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235 ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243 ../examples/guestfs-testing.pod:110 ../examples/guestfs-testing.pod:114 ../examples/guestfs-testing.pod:118 ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:441 ../fish/guestfish-actions.pod:449 ../fish/guestfish-actions.pod:456 ../fish/guestfish-actions.pod:463 ../fish/guestfish-actions.pod:1262 ../fish/guestfish-actions.pod:1266 ../fish/guestfish-actions.pod:1270 ../fish/guestfish-actions.pod:1274 ../fish/guestfish-actions.pod:1282 ../fish/guestfish-actions.pod:1286 ../fish/guestfish-actions.pod:1290 ../fish/guestfish-actions.pod:1300 ../fish/guestfish-actions.pod:1304 ../fish/guestfish-actions.pod:1308 ../fish/guestfish-actions.pod:1398 ../fish/guestfish-actions.pod:1402 ../fish/guestfish-actions.pod:1407 ../fish/guestfish-actions.pod:1412 ../fish/guestfish-actions.pod:1454 ../fish/guestfish-actions.pod:1458 ../fish/guestfish-actions.pod:1463 ../fish/guestfish-actions.pod:1719 ../fish/guestfish-actions.pod:1726 ../fish/guestfish-actions.pod:1733 ../fish/guestfish-actions.pod:2136 ../fish/guestfish-actions.pod:2142 ../fish/guestfish-actions.pod:2150 ../fish/guestfish-actions.pod:2157 ../fish/guestfish-actions.pod:2164 ../fish/guestfish.pod:445 ../fish/guestfish.pod:449 ../fish/guestfish.pod:453 ../fish/guestfish.pod:457 ../inspector/virt-inspector.pod:408 ../inspector/virt-inspector.pod:412 ../resize/virt-resize.pod:365 ../resize/virt-resize.pod:369 ../resize/virt-resize.pod:378 ../resize/virt-resize.pod:384 ../sparsify/virt-sparsify.pod:32 ../sparsify/virt-sparsify.pod:39 ../sparsify/virt-sparsify.pod:43 ../sparsify/virt-sparsify.pod:49 ../sparsify/virt-sparsify.pod:54 ../sparsify/virt-sparsify.pod:58 ../sparsify/virt-sparsify.pod:64 ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:29 ../src/guestfs-actions.pod:641 ../src/guestfs-actions.pod:649 ../src/guestfs-actions.pod:656 ../src/guestfs-actions.pod:663 ../src/guestfs-actions.pod:2079 ../src/guestfs-actions.pod:2083 ../src/guestfs-actions.pod:2087 ../src/guestfs-actions.pod:2091 ../src/guestfs-actions.pod:2099 ../src/guestfs-actions.pod:2103 ../src/guestfs-actions.pod:2107 ../src/guestfs-actions.pod:2117 ../src/guestfs-actions.pod:2121 ../src/guestfs-actions.pod:2125 ../src/guestfs-actions.pod:2263 ../src/guestfs-actions.pod:2267 ../src/guestfs-actions.pod:2272 ../src/guestfs-actions.pod:2277 ../src/guestfs-actions.pod:2338 ../src/guestfs-actions.pod:2342 ../src/guestfs-actions.pod:2347 ../src/guestfs-actions.pod:2762 ../src/guestfs-actions.pod:2769 ../src/guestfs-actions.pod:2776 ../src/guestfs-actions.pod:3321 ../src/guestfs-actions.pod:3327 ../src/guestfs-actions.pod:3335 ../src/guestfs-actions.pod:3342 ../src/guestfs-actions.pod:3349 ../src/guestfs.pod:403 ../src/guestfs.pod:408 ../src/guestfs.pod:413 ../src/guestfs.pod:417 ../src/guestfs.pod:422 ../src/guestfs.pod:426 ../src/guestfs.pod:431 ../src/guestfs.pod:436 ../src/guestfs.pod:1109 ../src/guestfs.pod:1113 ../src/guestfs.pod:1117 ../src/guestfs.pod:1122 ../src/guestfs.pod:1130 ../src/guestfs.pod:1149 ../src/guestfs.pod:1157 ../src/guestfs.pod:1179 ../src/guestfs.pod:1183 ../src/guestfs.pod:1187 ../src/guestfs.pod:1191 ../src/guestfs.pod:1195 ../src/guestfs.pod:1199 ../src/guestfs.pod:1689 ../src/guestfs.pod:1694 ../src/guestfs.pod:1698 ../src/guestfs.pod:1800 ../src/guestfs.pod:1805 ../src/guestfs.pod:1809 ../src/guestfs.pod:1819 ../src/guestfs.pod:2108 ../src/guestfs.pod:2113 ../src/guestfs.pod:2119 ../src/guestfs.pod:2127 ../src/guestfs.pod:2645 ../src/guestfs.pod:2651 ../src/guestfs.pod:2656 ../src/guestfs.pod:2662 ../src/guestfs.pod:3067 ../src/guestfs.pod:3072 ../src/guestfs.pod:3076 ../src/guestfs.pod:3080 ../src/guestfs.pod:3084 ../src/guestfs.pod:3098 ../src/guestfs.pod:3103 ../src/guestfs.pod:3335 ../src/guestfs.pod:3339 ../src/guestfs.pod:3343 ../src/guestfs.pod:3347 ../tools/virt-win-reg.pl:197 ../tools/virt-win-reg.pl:202 ../tools/virt-win-reg.pl:208 ../tools/virt-win-reg.pl:721 ../tools/virt-win-reg.pl:727 ../tools/virt-win-reg.pl:733
701 msgid "*"
702 msgstr ""
703
704 #. type: textblock
705 #: ../align/virt-alignment-scan.pod:326
706 msgid "0"
707 msgstr ""
708
709 #. type: textblock
710 #: ../align/virt-alignment-scan.pod:328
711 msgid "successful exit, all partitions are aligned E<ge> 64K for best performance"
712 msgstr ""
713
714 #. type: textblock
715 #: ../align/virt-alignment-scan.pod:332
716 msgid "1"
717 msgstr ""
718
719 #. type: textblock
720 #: ../align/virt-alignment-scan.pod:334
721 msgid "an error scanning the disk image or guest"
722 msgstr ""
723
724 #. type: textblock
725 #: ../align/virt-alignment-scan.pod:338
726 msgid "2"
727 msgstr ""
728
729 #. type: textblock
730 #: ../align/virt-alignment-scan.pod:340
731 msgid ""
732 "successful exit, some partitions have alignment E<lt> 64K which can result "
733 "in poor performance on high end network storage"
734 msgstr ""
735
736 #. type: textblock
737 #: ../align/virt-alignment-scan.pod:345
738 msgid "3"
739 msgstr ""
740
741 #. type: textblock
742 #: ../align/virt-alignment-scan.pod:347
743 msgid ""
744 "successful exit, some partitions have alignment E<lt> 4K which can result in "
745 "poor performance on most hypervisors"
746 msgstr ""
747
748 #. type: =head1
749 #: ../align/virt-alignment-scan.pod:352 ../cat/virt-cat.pod:243 ../cat/virt-filesystems.pod:385 ../cat/virt-ls.pod:495 ../clone/virt-sysprep.pod:486 ../df/virt-df.pod:253 ../edit/virt-edit.pod:354 ../erlang/examples/guestfs-erlang.pod:97 ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384 ../examples/guestfs-testing.pod:291 ../fish/guestfish.pod:1268 ../fish/virt-copy-in.pod:50 ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47 ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:317 ../inspector/virt-inspector.pod:395 ../java/examples/guestfs-java.pod:45 ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39 ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:325 ../resize/virt-resize.pod:694 ../ruby/examples/guestfs-ruby.pod:36 ../sparsify/virt-sparsify.pod:275 ../src/guestfs.pod:3275 ../test-tool/libguestfs-test-tool.pod:100 ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265 ../tools/virt-make-fs.pl:557 ../tools/virt-tar.pl:296 ../tools/virt-win-reg.pl:757
750 msgid "SEE ALSO"
751 msgstr ""
752
753 #. type: textblock
754 #: ../align/virt-alignment-scan.pod:354
755 msgid ""
756 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-rescue(1)>, "
757 "L<virt-resize(1)>, L<http://libguestfs.org/>."
758 msgstr ""
759
760 #. type: =head1
761 #: ../align/virt-alignment-scan.pod:361 ../cat/virt-cat.pod:252 ../cat/virt-filesystems.pod:396 ../cat/virt-ls.pod:507 ../clone/virt-sysprep.pod:501 ../df/virt-df.pod:261 ../edit/virt-edit.pod:368 ../rescue/virt-rescue.pod:334 ../resize/virt-resize.pod:717 ../sparsify/virt-sparsify.pod:288 ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277 ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:311 ../tools/virt-win-reg.pl:783
762 msgid "AUTHOR"
763 msgstr ""
764
765 #. type: textblock
766 #: ../align/virt-alignment-scan.pod:363 ../cat/virt-cat.pod:254 ../cat/virt-filesystems.pod:398 ../cat/virt-ls.pod:509 ../clone/virt-sysprep.pod:503 ../df/virt-df.pod:263 ../edit/virt-edit.pod:370 ../inspector/virt-inspector.pod:410 ../rescue/virt-rescue.pod:336 ../resize/virt-resize.pod:719 ../sparsify/virt-sparsify.pod:290 ../tools/virt-list-filesystems.pl:210 ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:584 ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:785
767 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
768 msgstr ""
769
770 #. type: =head1
771 #: ../align/virt-alignment-scan.pod:365 ../cat/virt-cat.pod:256 ../cat/virt-filesystems.pod:400 ../cat/virt-ls.pod:511 ../clone/virt-sysprep.pod:505 ../df/virt-df.pod:265 ../edit/virt-edit.pod:372 ../erlang/examples/guestfs-erlang.pod:114 ../examples/guestfs-examples.pod:49 ../examples/guestfs-recipes.pod:401 ../examples/guestfs-testing.pod:302 ../fish/guestfish.pod:1300 ../fish/virt-copy-in.pod:64 ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62 ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:332 ../inspector/virt-inspector.pod:418 ../java/examples/guestfs-java.pod:62 ../ocaml/examples/guestfs-ocaml.pod:95 ../perl/examples/guestfs-perl.pod:56 ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:338 ../resize/virt-resize.pod:721 ../ruby/examples/guestfs-ruby.pod:52 ../sparsify/virt-sparsify.pod:292 ../src/guestfs.pod:3358 ../test-tool/libguestfs-test-tool.pod:110 ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281 ../tools/virt-make-fs.pl:586 ../tools/virt-tar.pl:315 ../tools/virt-win-reg.pl:787
772 msgid "COPYRIGHT"
773 msgstr ""
774
775 #. type: textblock
776 #: ../align/virt-alignment-scan.pod:367 ../clone/virt-sysprep.pod:507 ../sparsify/virt-sparsify.pod:294
777 msgid "Copyright (C) 2011 Red Hat Inc."
778 msgstr ""
779
780 #. type: textblock
781 #: ../align/virt-alignment-scan.pod:369 ../cat/virt-cat.pod:260 ../cat/virt-filesystems.pod:404 ../cat/virt-ls.pod:515 ../clone/virt-sysprep.pod:509 ../df/virt-df.pod:269 ../edit/virt-edit.pod:376 ../fish/guestfish.pod:1305 ../fish/virt-copy-in.pod:69 ../fish/virt-copy-out.pod:58 ../fish/virt-tar-in.pod:67 ../fish/virt-tar-out.pod:60 ../fuse/guestmount.pod:337 ../inspector/virt-inspector.pod:422 ../rescue/virt-rescue.pod:342 ../resize/virt-resize.pod:725 ../sparsify/virt-sparsify.pod:296 ../test-tool/libguestfs-test-tool.pod:115 ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285 ../tools/virt-make-fs.pl:590 ../tools/virt-tar.pl:319 ../tools/virt-win-reg.pl:791
782 msgid ""
783 "This program is free software; you can redistribute it and/or modify it "
784 "under the terms of the GNU General Public License as published by the Free "
785 "Software Foundation; either version 2 of the License, or (at your option) "
786 "any later version."
787 msgstr ""
788
789 #. type: textblock
790 #: ../align/virt-alignment-scan.pod:374 ../cat/virt-cat.pod:265 ../cat/virt-filesystems.pod:409 ../cat/virt-ls.pod:520 ../clone/virt-sysprep.pod:514 ../df/virt-df.pod:274 ../edit/virt-edit.pod:381 ../fish/guestfish.pod:1310 ../fish/virt-copy-in.pod:74 ../fish/virt-copy-out.pod:63 ../fish/virt-tar-in.pod:72 ../fish/virt-tar-out.pod:65 ../fuse/guestmount.pod:342 ../inspector/virt-inspector.pod:427 ../rescue/virt-rescue.pod:347 ../resize/virt-resize.pod:730 ../sparsify/virt-sparsify.pod:301 ../test-tool/libguestfs-test-tool.pod:120 ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290 ../tools/virt-make-fs.pl:595 ../tools/virt-tar.pl:324 ../tools/virt-win-reg.pl:796
791 msgid ""
792 "This program is distributed in the hope that it will be useful, but WITHOUT "
793 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
794 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
795 "more details."
796 msgstr ""
797
798 #. type: textblock
799 #: ../align/virt-alignment-scan.pod:379 ../cat/virt-cat.pod:270 ../cat/virt-filesystems.pod:414 ../cat/virt-ls.pod:525 ../clone/virt-sysprep.pod:519 ../df/virt-df.pod:279 ../edit/virt-edit.pod:386 ../fish/guestfish.pod:1315 ../fish/virt-copy-in.pod:79 ../fish/virt-copy-out.pod:68 ../fish/virt-tar-in.pod:77 ../fish/virt-tar-out.pod:70 ../fuse/guestmount.pod:347 ../inspector/virt-inspector.pod:432 ../rescue/virt-rescue.pod:352 ../resize/virt-resize.pod:735 ../sparsify/virt-sparsify.pod:306 ../test-tool/libguestfs-test-tool.pod:125 ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295 ../tools/virt-make-fs.pl:600 ../tools/virt-tar.pl:329 ../tools/virt-win-reg.pl:801
800 msgid ""
801 "You should have received a copy of the GNU General Public License along with "
802 "this program; if not, write to the Free Software Foundation, Inc., 51 "
803 "Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA."
804 msgstr ""
805
806 #. type: textblock
807 #: ../cat/virt-cat.pod:5
808 msgid "virt-cat - Display files in a virtual machine"
809 msgstr ""
810
811 #. type: verbatim
812 #: ../cat/virt-cat.pod:9
813 #, no-wrap
814 msgid ""
815 " virt-cat [--options] -d domname file [file ...]\n"
816 "\n"
817 msgstr ""
818
819 #. type: verbatim
820 #: ../cat/virt-cat.pod:11
821 #, no-wrap
822 msgid ""
823 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
824 "\n"
825 msgstr ""
826
827 #. type: textblock
828 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15 ../inspector/virt-inspector.pod:13
829 msgid "Old-style:"
830 msgstr ""
831
832 #. type: verbatim
833 #: ../cat/virt-cat.pod:15
834 #, no-wrap
835 msgid ""
836 " virt-cat domname file\n"
837 "\n"
838 msgstr ""
839
840 #. type: verbatim
841 #: ../cat/virt-cat.pod:17
842 #, no-wrap
843 msgid ""
844 " virt-cat disk.img file\n"
845 "\n"
846 msgstr ""
847
848 #. type: textblock
849 #: ../cat/virt-cat.pod:21
850 msgid ""
851 "C<virt-cat> is a command line tool to display the contents of C<file> where "
852 "C<file> exists in the named virtual machine (or disk image)."
853 msgstr ""
854
855 #. type: textblock
856 #: ../cat/virt-cat.pod:24
857 msgid ""
858 "Multiple filenames can be given, in which case they are concatenated "
859 "together.  Each filename must be a full path, starting at the root directory "
860 "(starting with '/')."
861 msgstr ""
862
863 #. type: textblock
864 #: ../cat/virt-cat.pod:28
865 msgid ""
866 "C<virt-cat> can be used to quickly view a file.  To edit a file, use "
867 "C<virt-edit>.  For more complex cases you should look at the L<guestfish(1)> "
868 "tool (see L</USING GUESTFISH> below)."
869 msgstr ""
870
871 #. type: =head1
872 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43 ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41 ../fish/guestfish.pod:1051 ../fish/virt-copy-in.pod:29 ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30 ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39 ../resize/virt-resize.pod:27 ../sparsify/virt-sparsify.pod:75 ../tools/virt-tar.pl:50
873 msgid "EXAMPLES"
874 msgstr ""
875
876 #. type: textblock
877 #: ../cat/virt-cat.pod:34
878 msgid "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
879 msgstr ""
880
881 #. type: verbatim
882 #: ../cat/virt-cat.pod:37
883 #, no-wrap
884 msgid ""
885 " virt-cat -d mydomain /etc/fstab\n"
886 "\n"
887 msgstr ""
888
889 #. type: textblock
890 #: ../cat/virt-cat.pod:39
891 msgid "List syslog messages from a VM disk image file:"
892 msgstr ""
893
894 #. type: verbatim
895 #: ../cat/virt-cat.pod:41
896 #, no-wrap
897 msgid ""
898 " virt-cat -a disk.img /var/log/messages | tail\n"
899 "\n"
900 msgstr ""
901
902 #. type: textblock
903 #: ../cat/virt-cat.pod:43
904 msgid "Find out what DHCP IP address a VM acquired:"
905 msgstr ""
906
907 #. type: verbatim
908 #: ../cat/virt-cat.pod:45
909 #, no-wrap
910 msgid ""
911 " virt-cat -d mydomain /var/log/messages | \\\n"
912 "   grep 'dhclient: bound to' | tail\n"
913 "\n"
914 msgstr ""
915
916 #. type: textblock
917 #: ../cat/virt-cat.pod:48
918 msgid "Find out what packages were recently installed:"
919 msgstr ""
920
921 #. type: verbatim
922 #: ../cat/virt-cat.pod:50
923 #, no-wrap
924 msgid ""
925 " virt-cat -d mydomain /var/log/yum.log | tail\n"
926 "\n"
927 msgstr ""
928
929 #. type: textblock
930 #: ../cat/virt-cat.pod:52
931 msgid "Find out who is logged on inside a virtual machine:"
932 msgstr ""
933
934 #. type: verbatim
935 #: ../cat/virt-cat.pod:54
936 #, no-wrap
937 msgid ""
938 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
939 " who /tmp/utmp\n"
940 "\n"
941 msgstr ""
942
943 #. type: textblock
944 #: ../cat/virt-cat.pod:57
945 msgid "or who was logged on:"
946 msgstr ""
947
948 #. type: verbatim
949 #: ../cat/virt-cat.pod:59
950 #, no-wrap
951 msgid ""
952 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
953 " last -f /tmp/wtmp\n"
954 "\n"
955 msgstr ""
956
957 #. type: textblock
958 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103 ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74 ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:124
959 msgid ""
960 "Add I<file> which should be a disk image from a virtual machine.  If the "
961 "virtual machine has multiple block devices, you must supply all of them with "
962 "separate I<-a> options."
963 msgstr ""
964
965 #. type: =item
966 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148 ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217 ../fuse/guestmount.pod:135 ../inspector/virt-inspector.pod:92
967 msgid "B<--echo-keys>"
968 msgstr ""
969
970 #. type: textblock
971 #: ../cat/virt-cat.pod:100
972 msgid ""
973 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
974 "so you cannot see what you are typing.  If you are not worried about Tempest "
975 "attacks and there is no one else in the room you can specify this flag to "
976 "see what you are typing."
977 msgstr ""
978
979 #. type: verbatim
980 #: ../cat/virt-cat.pod:116
981 #, no-wrap
982 msgid ""
983 " virt-cat --format=raw -a disk.img file\n"
984 "\n"
985 msgstr ""
986
987 #. type: verbatim
988 #: ../cat/virt-cat.pod:120
989 #, no-wrap
990 msgid ""
991 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
992 "\n"
993 msgstr ""
994
995 #. type: =item
996 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200 ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289 ../fuse/guestmount.pod:172 ../inspector/virt-inspector.pod:114
997 msgid "B<--keys-from-stdin>"
998 msgstr ""
999
1000 #. type: textblock
1001 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202 ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291 ../fuse/guestmount.pod:174 ../inspector/virt-inspector.pod:116
1002 msgid ""
1003 "Read key or passphrase parameters from stdin.  The default is to try to read "
1004 "passphrases from the user by opening C</dev/tty>."
1005 msgstr ""
1006
1007 #. type: =head1
1008 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179 ../inspector/virt-inspector.pod:144 ../rescue/virt-rescue.pod:246
1009 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
1010 msgstr ""
1011
1012 #. type: textblock
1013 #: ../cat/virt-cat.pod:154
1014 msgid "Previous versions of virt-cat allowed you to write either:"
1015 msgstr ""
1016
1017 #. type: verbatim
1018 #: ../cat/virt-cat.pod:156
1019 #, no-wrap
1020 msgid ""
1021 " virt-cat disk.img [disk.img ...] file\n"
1022 "\n"
1023 msgstr ""
1024
1025 #. type: textblock
1026 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185 ../inspector/virt-inspector.pod:150 ../rescue/virt-rescue.pod:252
1027 msgid "or"
1028 msgstr ""
1029
1030 #. type: verbatim
1031 #: ../cat/virt-cat.pod:160
1032 #, no-wrap
1033 msgid ""
1034 " virt-cat guestname file\n"
1035 "\n"
1036 msgstr ""
1037
1038 #. type: textblock
1039 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189 ../inspector/virt-inspector.pod:154 ../rescue/virt-rescue.pod:256
1040 msgid ""
1041 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
1042 "the confusing case where a disk image might have the same name as a guest."
1043 msgstr ""
1044
1045 #. type: textblock
1046 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193 ../inspector/virt-inspector.pod:158 ../rescue/virt-rescue.pod:260
1047 msgid "For compatibility the old style is still supported."
1048 msgstr ""
1049
1050 #. type: =head1
1051 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
1052 msgid "WINDOWS PATHS"
1053 msgstr ""
1054
1055 #. type: textblock
1056 #: ../cat/virt-cat.pod:170
1057 msgid ""
1058 "C<virt-cat> has a limited ability to understand Windows drive letters and "
1059 "paths (eg. C<E:\\foo\\bar.txt>)."
1060 msgstr ""
1061
1062 #. type: textblock
1063 #: ../cat/virt-cat.pod:173 ../edit/virt-edit.pod:262
1064 msgid "If and only if the guest is running Windows then:"
1065 msgstr ""
1066
1067 #. type: textblock
1068 #: ../cat/virt-cat.pod:179 ../edit/virt-edit.pod:268
1069 msgid ""
1070 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
1071 "to the correct filesystem."
1072 msgstr ""
1073
1074 #. type: textblock
1075 #: ../cat/virt-cat.pod:184 ../edit/virt-edit.pod:273
1076 msgid ""
1077 "Any backslash (C<\\>) characters in the path are replaced with forward "
1078 "slashes so that libguestfs can process it."
1079 msgstr ""
1080
1081 #. type: textblock
1082 #: ../cat/virt-cat.pod:189
1083 msgid ""
1084 "The path is resolved case insensitively to locate the file that should be "
1085 "displayed."
1086 msgstr ""
1087
1088 #. type: textblock
1089 #: ../cat/virt-cat.pod:194 ../edit/virt-edit.pod:283
1090 msgid "There are some known shortcomings:"
1091 msgstr ""
1092
1093 #. type: textblock
1094 #: ../cat/virt-cat.pod:200 ../edit/virt-edit.pod:289
1095 msgid "Some NTFS symbolic links may not be followed correctly."
1096 msgstr ""
1097
1098 #. type: textblock
1099 #: ../cat/virt-cat.pod:204 ../edit/virt-edit.pod:293
1100 msgid "NTFS junction points that cross filesystems are not followed."
1101 msgstr ""
1102
1103 #. type: =head1
1104 #: ../cat/virt-cat.pod:208 ../edit/virt-edit.pod:297
1105 msgid "USING GUESTFISH"
1106 msgstr ""
1107
1108 #. type: textblock
1109 #: ../cat/virt-cat.pod:210
1110 msgid ""
1111 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
1112 "C<virt-cat> doesn't work."
1113 msgstr ""
1114
1115 #. type: textblock
1116 #: ../cat/virt-cat.pod:213
1117 msgid "Using C<virt-cat> is approximately equivalent to doing:"
1118 msgstr ""
1119
1120 #. type: verbatim
1121 #: ../cat/virt-cat.pod:215
1122 #, no-wrap
1123 msgid ""
1124 " guestfish --ro -i -d domname download file -\n"
1125 "\n"
1126 msgstr ""
1127
1128 #. type: textblock
1129 #: ../cat/virt-cat.pod:217
1130 msgid ""
1131 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
1132 "path to the file.  Note the final C<-> (meaning \"output to stdout\")."
1133 msgstr ""
1134
1135 #. type: textblock
1136 #: ../cat/virt-cat.pod:221
1137 msgid ""
1138 "The command above uses libguestfs's guest inspection feature and so does not "
1139 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
1140 "disk images that don't contain guests.  To display a file from a disk image "
1141 "directly, use:"
1142 msgstr ""
1143
1144 #. type: verbatim
1145 #: ../cat/virt-cat.pod:226
1146 #, no-wrap
1147 msgid ""
1148 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
1149 "\n"
1150 msgstr ""
1151
1152 #. type: textblock
1153 #: ../cat/virt-cat.pod:228
1154 msgid ""
1155 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
1156 "the disk image, and C<file> is the full path to the file."
1157 msgstr ""
1158
1159 #. type: textblock
1160 #: ../cat/virt-cat.pod:240 ../cat/virt-filesystems.pod:382 ../cat/virt-ls.pod:492 ../df/virt-df.pod:250 ../edit/virt-edit.pod:351 ../fuse/guestmount.pod:314 ../inspector/virt-inspector.pod:392 ../resize/virt-resize.pod:691 ../sparsify/virt-sparsify.pod:253
1161 msgid "This program returns 0 if successful, or non-zero if there was an error."
1162 msgstr ""
1163
1164 #. type: textblock
1165 #: ../cat/virt-cat.pod:245
1166 msgid ""
1167 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
1168 "L<virt-tar-out(1)>, L<http://libguestfs.org/>."
1169 msgstr ""
1170
1171 #. type: textblock
1172 #: ../cat/virt-cat.pod:258 ../inspector/virt-inspector.pod:420 ../resize/virt-resize.pod:723 ../tools/virt-make-fs.pl:588
1173 msgid "Copyright (C) 2010-2011 Red Hat Inc."
1174 msgstr ""
1175
1176 #. type: textblock
1177 #: ../cat/virt-filesystems.pod:5
1178 msgid ""
1179 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
1180 "virtual machine or disk image"
1181 msgstr ""
1182
1183 #. type: verbatim
1184 #: ../cat/virt-filesystems.pod:9
1185 #, no-wrap
1186 msgid ""
1187 " virt-filesystems [--options] -d domname\n"
1188 "\n"
1189 msgstr ""
1190
1191 #. type: verbatim
1192 #: ../cat/virt-filesystems.pod:11
1193 #, no-wrap
1194 msgid ""
1195 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
1196 "\n"
1197 msgstr ""
1198
1199 #. type: textblock
1200 #: ../cat/virt-filesystems.pod:15
1201 msgid ""
1202 "This tool allows you to discover filesystems, partitions, logical volumes, "
1203 "and their sizes in a disk image or virtual machine.  It is a replacement for "
1204 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
1205 msgstr ""
1206
1207 #. type: textblock
1208 #: ../cat/virt-filesystems.pod:20
1209 msgid ""
1210 "One use for this tool is from shell scripts to iterate over all filesystems "
1211 "from a disk image:"
1212 msgstr ""
1213
1214 #. type: verbatim
1215 #: ../cat/virt-filesystems.pod:23
1216 #, no-wrap
1217 msgid ""
1218 " for fs in $(virt-filesystems -a disk.img); do\n"
1219 "   # ...\n"
1220 " done\n"
1221 "\n"
1222 msgstr ""
1223
1224 #. type: textblock
1225 #: ../cat/virt-filesystems.pod:27
1226 msgid ""
1227 "Another use is to list partitions before using another tool to modify those "
1228 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
1229 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
1230 msgstr ""
1231
1232 #. type: textblock
1233 #: ../cat/virt-filesystems.pod:32
1234 msgid ""
1235 "Various command line options control what this program displays.  You need "
1236 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
1237 "guest respectively.  If you just specify that then the program shows "
1238 "filesystems found, one per line, like this:"
1239 msgstr ""
1240
1241 #. type: verbatim
1242 #: ../cat/virt-filesystems.pod:37
1243 #, no-wrap
1244 msgid ""
1245 " $ virt-filesystems -a disk.img\n"
1246 " /dev/sda1\n"
1247 " /dev/vg_guest/lv_root\n"
1248 "\n"
1249 msgstr ""
1250
1251 #. type: textblock
1252 #: ../cat/virt-filesystems.pod:41
1253 msgid "If you add I<-l> or I<--long> then the output includes extra information:"
1254 msgstr ""
1255
1256 #. type: verbatim
1257 #: ../cat/virt-filesystems.pod:44
1258 #, no-wrap
1259 msgid ""
1260 " $ virt-filesystems -a disk.img -l\n"
1261 " Name                   Type         VFS   Label  Size\n"
1262 " /dev/sda1              filesystem   ext4  boot   524288000\n"
1263 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
1264 "\n"
1265 msgstr ""
1266
1267 #. type: textblock
1268 #: ../cat/virt-filesystems.pod:49
1269 msgid ""
1270 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
1271 "shown as well:"
1272 msgstr ""
1273
1274 #. type: verbatim
1275 #: ../cat/virt-filesystems.pod:52
1276 #, no-wrap
1277 msgid ""
1278 " $ virt-filesystems -a disk.img --extra\n"
1279 " /dev/sda1\n"
1280 " /dev/vg_guest/lv_root\n"
1281 " /dev/vg_guest/lv_swap\n"
1282 " /dev/vg_guest/lv_data\n"
1283 "\n"
1284 msgstr ""
1285
1286 #. type: textblock
1287 #: ../cat/virt-filesystems.pod:58
1288 msgid "If you add I<--partitions> then partitions are shown instead of filesystems:"
1289 msgstr ""
1290
1291 #. type: verbatim
1292 #: ../cat/virt-filesystems.pod:60
1293 #, no-wrap
1294 msgid ""
1295 " $ virt-filesystems -a disk.img --partitions\n"
1296 " /dev/sda1\n"
1297 " /dev/sda2\n"
1298 "\n"
1299 msgstr ""
1300
1301 #. type: textblock
1302 #: ../cat/virt-filesystems.pod:64
1303 msgid ""
1304 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, "
1305 "I<--physical-volumes>, I<--block-devices> to list those items."
1306 msgstr ""
1307
1308 #. type: textblock
1309 #: ../cat/virt-filesystems.pod:67
1310 msgid ""
1311 "You can use these options in combination as well (if you want a combination "
1312 "including filesystems, you have to add I<--filesystems>).  Notice that some "
1313 "items fall into several categories (eg. C</dev/sda1> might be both a "
1314 "partition and a filesystem).  These items are listed several times.  To get "
1315 "a list which includes absolutely everything that virt-filesystems knows "
1316 "about, use the I<--all> option."
1317 msgstr ""
1318
1319 #. type: textblock
1320 #: ../cat/virt-filesystems.pod:74
1321 msgid ""
1322 "UUIDs (because they are quite long) are not shown by default.  Add the "
1323 "I<--uuid> option to display device and filesystem UUIDs in the long output."
1324 msgstr ""
1325
1326 #. type: textblock
1327 #: ../cat/virt-filesystems.pod:78
1328 msgid ""
1329 "I<--all --long --uuid> is a useful combination to display all possible "
1330 "information about everything."
1331 msgstr ""
1332
1333 #. type: verbatim
1334 #: ../cat/virt-filesystems.pod:81
1335 #, no-wrap
1336 msgid ""
1337 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1338 " Name      Type       VFS  Label           Size Parent   UUID\n"
1339 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
1340 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
1341 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
1342 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
1343 " /dev/sda  device     -    -               20G  -        -\n"
1344 "\n"
1345 msgstr ""
1346
1347 #. type: textblock
1348 #: ../cat/virt-filesystems.pod:89
1349 msgid "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1350 msgstr ""
1351
1352 #. type: =item
1353 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1354 msgid "B<--all>"
1355 msgstr ""
1356
1357 #. type: textblock
1358 #: ../cat/virt-filesystems.pod:112
1359 msgid ""
1360 "Display everything.  This is currently the same as specifying these options: "
1361 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, "
1362 "I<--logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may "
1363 "be added to this list in future)."
1364 msgstr ""
1365
1366 #. type: textblock
1367 #: ../cat/virt-filesystems.pod:117
1368 msgid "See also I<--long>."
1369 msgstr ""
1370
1371 #. type: =item
1372 #: ../cat/virt-filesystems.pod:119
1373 msgid "B<--blkdevs>"
1374 msgstr ""
1375
1376 #. type: =item
1377 #: ../cat/virt-filesystems.pod:121
1378 msgid "B<--block-devices>"
1379 msgstr ""
1380
1381 #. type: textblock
1382 #: ../cat/virt-filesystems.pod:123
1383 msgid "Display block devices."
1384 msgstr ""
1385
1386 #. type: =item
1387 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1388 msgid "B<--csv>"
1389 msgstr ""
1390
1391 #. type: textblock
1392 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1393 msgid ""
1394 "Write out the results in CSV format (comma-separated values).  This format "
1395 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1396 "ABOUT CSV FORMAT> below."
1397 msgstr ""
1398
1399 #. type: textblock
1400 #: ../cat/virt-filesystems.pod:150
1401 msgid ""
1402 "When prompting for keys and passphrases, virt-filesystems normally turns "
1403 "echoing off so you cannot see what you are typing.  If you are not worried "
1404 "about Tempest attacks and there is no one else in the room you can specify "
1405 "this flag to see what you are typing."
1406 msgstr ""
1407
1408 #. type: =item
1409 #: ../cat/virt-filesystems.pod:155
1410 msgid "B<--extra>"
1411 msgstr ""
1412
1413 #. type: textblock
1414 #: ../cat/virt-filesystems.pod:157
1415 msgid ""
1416 "This causes filesystems that are not ordinary, mountable filesystems to be "
1417 "displayed.  This category includes swapspace, and filesystems that are empty "
1418 "or contain unknown data."
1419 msgstr ""
1420
1421 #. type: textblock
1422 #: ../cat/virt-filesystems.pod:161
1423 msgid "This option implies I<--filesystems>."
1424 msgstr ""
1425
1426 #. type: =item
1427 #: ../cat/virt-filesystems.pod:163
1428 msgid "B<--filesystems>"
1429 msgstr ""
1430
1431 #. type: textblock
1432 #: ../cat/virt-filesystems.pod:165
1433 msgid ""
1434 "Display mountable filesystems.  If no display option was selected then this "
1435 "option is implied."
1436 msgstr ""
1437
1438 #. type: textblock
1439 #: ../cat/virt-filesystems.pod:168
1440 msgid "With I<--extra>, non-mountable filesystems are shown too."
1441 msgstr ""
1442
1443 #. type: verbatim
1444 #: ../cat/virt-filesystems.pod:181
1445 #, no-wrap
1446 msgid ""
1447 " virt-filesystems --format=raw -a disk.img\n"
1448 "\n"
1449 msgstr ""
1450
1451 #. type: verbatim
1452 #: ../cat/virt-filesystems.pod:185
1453 #, no-wrap
1454 msgid ""
1455 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1456 "\n"
1457 msgstr ""
1458
1459 #. type: =item
1460 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352 ../df/virt-df.pod:125 ../fish/guestfish.pod:156 ../tools/virt-list-partitions.pl:109
1461 msgid "B<-h>"
1462 msgstr ""
1463
1464 #. type: =item
1465 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354 ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1466 msgid "B<--human-readable>"
1467 msgstr ""
1468
1469 #. type: textblock
1470 #: ../cat/virt-filesystems.pod:198
1471 msgid "In I<--long> mode, display sizes in human-readable format."
1472 msgstr ""
1473
1474 #. type: =item
1475 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366 ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1476 msgid "B<-l>"
1477 msgstr ""
1478
1479 #. type: =item
1480 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368 ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1481 msgid "B<--long>"
1482 msgstr ""
1483
1484 #. type: textblock
1485 #: ../cat/virt-filesystems.pod:209
1486 msgid "Display extra columns of data (\"long format\")."
1487 msgstr ""
1488
1489 #. type: textblock
1490 #: ../cat/virt-filesystems.pod:211
1491 msgid "A title row is added unless you also specify I<--no-title>."
1492 msgstr ""
1493
1494 #. type: textblock
1495 #: ../cat/virt-filesystems.pod:213
1496 msgid ""
1497 "The extra columns displayed depend on what output you select, and the "
1498 "ordering of columns may change in future versions.  Use the title row, "
1499 "I<--csv> output and/or L<csvtool(1)> to match columns to data in external "
1500 "programs."
1501 msgstr ""
1502
1503 #. type: textblock
1504 #: ../cat/virt-filesystems.pod:218
1505 msgid ""
1506 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
1507 "default is to show raw numbers of I<bytes>."
1508 msgstr ""
1509
1510 #. type: textblock
1511 #: ../cat/virt-filesystems.pod:221
1512 msgid "Use I<--uuid> to display UUIDs too."
1513 msgstr ""
1514
1515 #. type: =item
1516 #: ../cat/virt-filesystems.pod:223
1517 msgid "B<--lvs>"
1518 msgstr ""
1519
1520 #. type: =item
1521 #: ../cat/virt-filesystems.pod:225
1522 msgid "B<--logvols>"
1523 msgstr ""
1524
1525 #. type: =item
1526 #: ../cat/virt-filesystems.pod:227
1527 msgid "B<--logical-volumes>"
1528 msgstr ""
1529
1530 #. type: textblock
1531 #: ../cat/virt-filesystems.pod:229
1532 msgid ""
1533 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
1534 "of whether the LVs contain filesystems."
1535 msgstr ""
1536
1537 #. type: =item
1538 #: ../cat/virt-filesystems.pod:232
1539 msgid "B<--no-title>"
1540 msgstr ""
1541
1542 #. type: textblock
1543 #: ../cat/virt-filesystems.pod:234
1544 msgid "In I<--long> mode, don't add a title row."
1545 msgstr ""
1546
1547 #. type: textblock
1548 #: ../cat/virt-filesystems.pod:236
1549 msgid ""
1550 "Note that the order of the columns is not fixed, and may change in future "
1551 "versions of virt-filesystems, so using this option may give you unexpected "
1552 "surprises."
1553 msgstr ""
1554
1555 #. type: =item
1556 #: ../cat/virt-filesystems.pod:240
1557 msgid "B<--parts>"
1558 msgstr ""
1559
1560 #. type: =item
1561 #: ../cat/virt-filesystems.pod:242
1562 msgid "B<--partitions>"
1563 msgstr ""
1564
1565 #. type: textblock
1566 #: ../cat/virt-filesystems.pod:244
1567 msgid ""
1568 "Display partitions.  In this mode, these are displayed irrespective of "
1569 "whether the partitions contain filesystems."
1570 msgstr ""
1571
1572 #. type: =item
1573 #: ../cat/virt-filesystems.pod:247
1574 msgid "B<--pvs>"
1575 msgstr ""
1576
1577 #. type: =item
1578 #: ../cat/virt-filesystems.pod:249
1579 msgid "B<--physvols>"
1580 msgstr ""
1581
1582 #. type: =item
1583 #: ../cat/virt-filesystems.pod:251
1584 msgid "B<--physical-volumes>"
1585 msgstr ""
1586
1587 #. type: textblock
1588 #: ../cat/virt-filesystems.pod:253
1589 msgid "Display LVM physical volumes."
1590 msgstr ""
1591
1592 #. type: =item
1593 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1594 msgid "B<--uuid>"
1595 msgstr ""
1596
1597 #. type: =item
1598 #: ../cat/virt-filesystems.pod:257
1599 msgid "B<--uuids>"
1600 msgstr ""
1601
1602 #. type: textblock
1603 #: ../cat/virt-filesystems.pod:259
1604 msgid "In I<--long> mode, display UUIDs as well."
1605 msgstr ""
1606
1607 #. type: =item
1608 #: ../cat/virt-filesystems.pod:273
1609 msgid "B<--vgs>"
1610 msgstr ""
1611
1612 #. type: =item
1613 #: ../cat/virt-filesystems.pod:275
1614 msgid "B<--volgroups>"
1615 msgstr ""
1616
1617 #. type: =item
1618 #: ../cat/virt-filesystems.pod:277
1619 msgid "B<--volume-groups>"
1620 msgstr ""
1621
1622 #. type: textblock
1623 #: ../cat/virt-filesystems.pod:279
1624 msgid "Display LVM volume groups."
1625 msgstr ""
1626
1627 #. type: =head1
1628 #: ../cat/virt-filesystems.pod:287
1629 msgid "COLUMNS"
1630 msgstr ""
1631
1632 #. type: textblock
1633 #: ../cat/virt-filesystems.pod:289
1634 msgid ""
1635 "Note that columns in the output are subject to reordering and change in "
1636 "future versions of this tool."
1637 msgstr ""
1638
1639 #. type: =item
1640 #: ../cat/virt-filesystems.pod:294
1641 msgid "B<Name>"
1642 msgstr ""
1643
1644 #. type: textblock
1645 #: ../cat/virt-filesystems.pod:296
1646 msgid "The filesystem, partition, block device or LVM name."
1647 msgstr ""
1648
1649 #. type: textblock
1650 #: ../cat/virt-filesystems.pod:298
1651 msgid ""
1652 "For device and partition names these are displayed as canonical libguestfs "
1653 "names, so that for example C</dev/sda2> is the second partition on the first "
1654 "device."
1655 msgstr ""
1656
1657 #. type: textblock
1658 #: ../cat/virt-filesystems.pod:302
1659 msgid ""
1660 "If the I<--long> option is B<not> specified, then only the name column is "
1661 "shown in the output."
1662 msgstr ""
1663
1664 #. type: =item
1665 #: ../cat/virt-filesystems.pod:305
1666 msgid "B<Type>"
1667 msgstr ""
1668
1669 #. type: textblock
1670 #: ../cat/virt-filesystems.pod:307
1671 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
1672 msgstr ""
1673
1674 #. type: =item
1675 #: ../cat/virt-filesystems.pod:309
1676 msgid "B<VFS>"
1677 msgstr ""
1678
1679 #. type: textblock
1680 #: ../cat/virt-filesystems.pod:311
1681 msgid ""
1682 "If there is a filesystem, then this column displays the filesystem type if "
1683 "one could be detected, eg. C<ext4>."
1684 msgstr ""
1685
1686 #. type: =item
1687 #: ../cat/virt-filesystems.pod:314
1688 msgid "B<Label>"
1689 msgstr ""
1690
1691 #. type: textblock
1692 #: ../cat/virt-filesystems.pod:316
1693 msgid ""
1694 "If the object has a label (used for identifying and mounting filesystems) "
1695 "then this column contains the label."
1696 msgstr ""
1697
1698 #. type: =item
1699 #: ../cat/virt-filesystems.pod:319
1700 msgid "B<MBR>"
1701 msgstr ""
1702
1703 #. type: textblock
1704 #: ../cat/virt-filesystems.pod:321
1705 msgid ""
1706 "The partition type byte, displayed as a two digit hexadecimal number.  A "
1707 "comprehensive list of partition types can be found here: "
1708 "L<http://www.win.tue.nl/~aeb/partitions/partition_types-1.html>"
1709 msgstr ""
1710
1711 #. type: textblock
1712 #: ../cat/virt-filesystems.pod:325
1713 msgid "This is only applicable for DOS (MBR) partitions."
1714 msgstr ""
1715
1716 #. type: =item
1717 #: ../cat/virt-filesystems.pod:327
1718 msgid "B<Size>"
1719 msgstr ""
1720
1721 #. type: textblock
1722 #: ../cat/virt-filesystems.pod:329
1723 msgid ""
1724 "The size of the object in bytes.  If the I<--human> option is used then the "
1725 "size is displayed in a human-readable form."
1726 msgstr ""
1727
1728 #. type: =item
1729 #: ../cat/virt-filesystems.pod:332
1730 msgid "B<Parent>"
1731 msgstr ""
1732
1733 #. type: textblock
1734 #: ../cat/virt-filesystems.pod:334
1735 msgid ""
1736 "The parent column records the parent relationship between objects.  For "
1737 "example, if the object is a partition, then this column contains the name of "
1738 "the containing device.  If the object is a logical volume, then this column "
1739 "is the name of the volume group."
1740 msgstr ""
1741
1742 #. type: =item
1743 #: ../cat/virt-filesystems.pod:339
1744 msgid "B<UUID>"
1745 msgstr ""
1746
1747 #. type: textblock
1748 #: ../cat/virt-filesystems.pod:341
1749 msgid ""
1750 "If the object has a UUID (used for identifying and mounting filesystems and "
1751 "block devices) then this column contains the UUID as a string."
1752 msgstr ""
1753
1754 #. type: textblock
1755 #: ../cat/virt-filesystems.pod:345
1756 msgid "The UUID is only displayed if the I<--uuid> option is given."
1757 msgstr ""
1758
1759 #. type: =head1
1760 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:459 ../df/virt-df.pod:217
1761 msgid "NOTE ABOUT CSV FORMAT"
1762 msgstr ""
1763
1764 #. type: textblock
1765 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:461 ../df/virt-df.pod:219
1766 msgid ""
1767 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
1768 "should be easy to parse, but it is definitely not easy to parse."
1769 msgstr ""
1770
1771 #. type: textblock
1772 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:464 ../df/virt-df.pod:222
1773 msgid ""
1774 "Myth: Just split fields at commas.  Reality: This does I<not> work "
1775 "reliably.  This example has two columns:"
1776 msgstr ""
1777
1778 #. type: verbatim
1779 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:467 ../df/virt-df.pod:225
1780 #, no-wrap
1781 msgid ""
1782 " \"foo,bar\",baz\n"
1783 "\n"
1784 msgstr ""
1785
1786 #. type: textblock
1787 #: ../cat/virt-filesystems.pod:359 ../cat/virt-ls.pod:469 ../df/virt-df.pod:227
1788 msgid ""
1789 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
1790 "reliably.  This example has one row:"
1791 msgstr ""
1792
1793 #. type: verbatim
1794 #: ../cat/virt-filesystems.pod:362 ../cat/virt-ls.pod:472 ../df/virt-df.pod:230
1795 #, no-wrap
1796 msgid ""
1797 " \"foo\n"
1798 " bar\",baz\n"
1799 "\n"
1800 msgstr ""
1801
1802 #. type: textblock
1803 #: ../cat/virt-filesystems.pod:365 ../cat/virt-ls.pod:475 ../df/virt-df.pod:233
1804 msgid ""
1805 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
1806 "packaged in major Linux distributions)."
1807 msgstr ""
1808
1809 #. type: textblock
1810 #: ../cat/virt-filesystems.pod:368 ../cat/virt-ls.pod:478 ../df/virt-df.pod:236
1811 msgid ""
1812 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
1813 "or Python's built-in csv library)."
1814 msgstr ""
1815
1816 #. type: textblock
1817 #: ../cat/virt-filesystems.pod:371 ../cat/virt-ls.pod:481 ../df/virt-df.pod:239
1818 msgid "Most spreadsheets and databases can import CSV directly."
1819 msgstr ""
1820
1821 #. type: textblock
1822 #: ../cat/virt-filesystems.pod:387
1823 msgid ""
1824 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, "
1825 "L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, "
1826 "L<http://libguestfs.org/>."
1827 msgstr ""
1828
1829 #. type: textblock
1830 #: ../cat/virt-filesystems.pod:402 ../tools/virt-win-reg.pl:789
1831 msgid "Copyright (C) 2010 Red Hat Inc."
1832 msgstr ""
1833
1834 #. type: textblock
1835 #: ../cat/virt-ls.pod:5
1836 msgid "virt-ls - List files in a virtual machine"
1837 msgstr ""
1838
1839 #. type: verbatim
1840 #: ../cat/virt-ls.pod:9
1841 #, no-wrap
1842 msgid ""
1843 " virt-ls [--options] -d domname directory [directory ...]\n"
1844 "\n"
1845 msgstr ""
1846
1847 #. type: verbatim
1848 #: ../cat/virt-ls.pod:11
1849 #, no-wrap
1850 msgid ""
1851 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory "
1852 "...]\n"
1853 "\n"
1854 msgstr ""
1855
1856 #. type: textblock
1857 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:15
1858 msgid "Old style:"
1859 msgstr ""
1860
1861 #. type: verbatim
1862 #: ../cat/virt-ls.pod:15
1863 #, no-wrap
1864 msgid ""
1865 " virt-ls [--options] domname directory\n"
1866 "\n"
1867 msgstr ""
1868
1869 #. type: verbatim
1870 #: ../cat/virt-ls.pod:17
1871 #, no-wrap
1872 msgid ""
1873 " virt-ls [--options] disk.img [disk.img ...] directory\n"
1874 "\n"
1875 msgstr ""
1876
1877 #. type: textblock
1878 #: ../cat/virt-ls.pod:21
1879 msgid ""
1880 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
1881 "more from a virtual machine or disk image."
1882 msgstr ""
1883
1884 #. type: textblock
1885 #: ../cat/virt-ls.pod:24
1886 msgid ""
1887 "Multiple directory names can be given, in which case the output from each is "
1888 "concatenated."
1889 msgstr ""
1890
1891 #. type: textblock
1892 #: ../cat/virt-ls.pod:27
1893 msgid ""
1894 "To list directories from a libvirt guest use the I<-d> option to specify the "
1895 "name of the guest.  For a disk image, use the I<-a> option."
1896 msgstr ""
1897
1898 #. type: textblock
1899 #: ../cat/virt-ls.pod:31
1900 msgid ""
1901 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
1902 "may need to use L<guestfish(1)>, or write a program directly to the "
1903 "L<guestfs(3)> API."
1904 msgstr ""
1905
1906 #. type: textblock
1907 #: ../cat/virt-ls.pod:37
1908 msgid "Get a list of all files and directories in a virtual machine:"
1909 msgstr ""
1910
1911 #. type: verbatim
1912 #: ../cat/virt-ls.pod:39
1913 #, no-wrap
1914 msgid ""
1915 " virt-ls -R -d guest /\n"
1916 "\n"
1917 msgstr ""
1918
1919 #. type: textblock
1920 #: ../cat/virt-ls.pod:41 ../examples/guestfs-testing.pod:182
1921 msgid "List all setuid or setgid programs in a Linux virtual machine:"
1922 msgstr ""
1923
1924 #. type: verbatim
1925 #: ../cat/virt-ls.pod:43
1926 #, no-wrap
1927 msgid ""
1928 " virt-ls -lR -d guest / | grep '^- [42]'\n"
1929 "\n"
1930 msgstr ""
1931
1932 #. type: textblock
1933 #: ../cat/virt-ls.pod:45 ../examples/guestfs-testing.pod:186
1934 msgid "List all public-writable directories in a Linux virtual machine:"
1935 msgstr ""
1936
1937 #. type: verbatim
1938 #: ../cat/virt-ls.pod:47
1939 #, no-wrap
1940 msgid ""
1941 " virt-ls -lR -d guest / | grep '^d ...7'\n"
1942 "\n"
1943 msgstr ""
1944
1945 #. type: textblock
1946 #: ../cat/virt-ls.pod:49 ../examples/guestfs-testing.pod:190
1947 msgid "List all Unix domain sockets in a Linux virtual machine:"
1948 msgstr ""
1949
1950 #. type: verbatim
1951 #: ../cat/virt-ls.pod:51
1952 #, no-wrap
1953 msgid ""
1954 " virt-ls -lR -d guest / | grep '^s'\n"
1955 "\n"
1956 msgstr ""
1957
1958 #. type: textblock
1959 #: ../cat/virt-ls.pod:53 ../examples/guestfs-testing.pod:194
1960 msgid "List all regular files with filenames ending in '.png':"
1961 msgstr ""
1962
1963 #. type: verbatim
1964 #: ../cat/virt-ls.pod:55
1965 #, no-wrap
1966 msgid ""
1967 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
1968 "\n"
1969 msgstr ""
1970
1971 #. type: textblock
1972 #: ../cat/virt-ls.pod:57
1973 msgid "To display files larger than 10MB in home directories:"
1974 msgstr ""
1975
1976 #. type: verbatim
1977 #: ../cat/virt-ls.pod:59
1978 #, no-wrap
1979 msgid ""
1980 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
1981 "\n"
1982 msgstr ""
1983
1984 #. type: textblock
1985 #: ../cat/virt-ls.pod:61 ../examples/guestfs-testing.pod:202
1986 msgid "Find everything modified in the last 7 days:"
1987 msgstr ""
1988
1989 #. type: verbatim
1990 #: ../cat/virt-ls.pod:63
1991 #, no-wrap
1992 msgid ""
1993 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
1994 "\n"
1995 msgstr ""
1996
1997 #. type: textblock
1998 #: ../cat/virt-ls.pod:65 ../examples/guestfs-testing.pod:206
1999 msgid "Find regular files modified in the last 24 hours:"
2000 msgstr ""
2001
2002 #. type: verbatim
2003 #: ../cat/virt-ls.pod:67
2004 #, no-wrap
2005 msgid ""
2006 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
2007 "\n"
2008 msgstr ""
2009
2010 #. type: =head2
2011 #: ../cat/virt-ls.pod:69
2012 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
2013 msgstr ""
2014
2015 #. type: textblock
2016 #: ../cat/virt-ls.pod:71
2017 msgid ""
2018 "Find the differences between files in a guest and an earlier snapshot of the "
2019 "same guest."
2020 msgstr ""
2021
2022 #. type: verbatim
2023 #: ../cat/virt-ls.pod:74
2024 #, no-wrap
2025 msgid ""
2026 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
2027 " virt-ls -lR -a current.img / --uids --time-t > new\n"
2028 " diff -u old new | less\n"
2029 "\n"
2030 msgstr ""
2031
2032 #. type: textblock
2033 #: ../cat/virt-ls.pod:78
2034 msgid ""
2035 "The commands above won't find files where the content has changed but the "
2036 "metadata (eg. file size and modification date) is the same.  To do that, you "
2037 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  "
2038 "I<--checksum> can be quite slow since it has to read and compute a checksum "
2039 "of every regular file in the virtual machine."
2040 msgstr ""
2041
2042 #. type: =head1
2043 #: ../cat/virt-ls.pod:84
2044 msgid "OUTPUT MODES"
2045 msgstr ""
2046
2047 #. type: textblock
2048 #: ../cat/virt-ls.pod:86
2049 msgid ""
2050 "C<virt-ls> has four output modes, controlled by different combinations of "
2051 "the I<-l> and I<-R> options."
2052 msgstr ""
2053
2054 #. type: =head2
2055 #: ../cat/virt-ls.pod:89
2056 msgid "SIMPLE LISTING"
2057 msgstr ""
2058
2059 #. type: textblock
2060 #: ../cat/virt-ls.pod:91
2061 msgid "A simple listing is like the ordinary L<ls(1)> command:"
2062 msgstr ""
2063
2064 #. type: verbatim
2065 #: ../cat/virt-ls.pod:93
2066 #, no-wrap
2067 msgid ""
2068 " $ virt-ls -d guest /\n"
2069 " bin\n"
2070 " boot\n"
2071 " [etc.]\n"
2072 "\n"
2073 msgstr ""
2074
2075 #. type: =head2
2076 #: ../cat/virt-ls.pod:98
2077 msgid "LONG LISTING"
2078 msgstr ""
2079
2080 #. type: textblock
2081 #: ../cat/virt-ls.pod:100
2082 msgid ""
2083 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
2084 "(more specifically, like the C<guestfs_ll> function)."
2085 msgstr ""
2086
2087 #. type: verbatim
2088 #: ../cat/virt-ls.pod:103
2089 #, no-wrap
2090 msgid ""
2091 " $ virt-ls -l -d guest /\n"
2092 " total 204\n"
2093 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
2094 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
2095 " [etc.]\n"
2096 "\n"
2097 msgstr ""
2098
2099 #. type: textblock
2100 #: ../cat/virt-ls.pod:109
2101 msgid ""
2102 "Note that while this is useful for displaying a directory, do not try "
2103 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
2104 "instead."
2105 msgstr ""
2106
2107 #. type: =head2
2108 #: ../cat/virt-ls.pod:113
2109 msgid "RECURSIVE LISTING"
2110 msgstr ""
2111
2112 #. type: textblock
2113 #: ../cat/virt-ls.pod:115
2114 msgid ""
2115 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
2116 "and directories recursively:"
2117 msgstr ""
2118
2119 #. type: verbatim
2120 #: ../cat/virt-ls.pod:118
2121 #, no-wrap
2122 msgid ""
2123 " $ virt-ls -R -d guest /tmp\n"
2124 " foo\n"
2125 " foo/bar\n"
2126 " [etc.]\n"
2127 "\n"
2128 msgstr ""
2129
2130 #. type: textblock
2131 #: ../cat/virt-ls.pod:123
2132 msgid ""
2133 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
2134 "converts C<\\0> characters to C<\\n>."
2135 msgstr ""
2136
2137 #. type: =head2
2138 #: ../cat/virt-ls.pod:126
2139 msgid "RECURSIVE LONG LISTING"
2140 msgstr ""
2141
2142 #. type: textblock
2143 #: ../cat/virt-ls.pod:128
2144 msgid ""
2145 "Using I<-lR> options together changes the output to display directories "
2146 "recursively, with file stats, and optionally other features such as "
2147 "checksums and extended attributes."
2148 msgstr ""
2149
2150 #. type: textblock
2151 #: ../cat/virt-ls.pod:132
2152 msgid ""
2153 "Most of the interesting features of C<virt-ls> are only available when using "
2154 "I<-lR> mode."
2155 msgstr ""
2156
2157 #. type: textblock
2158 #: ../cat/virt-ls.pod:135
2159 msgid ""
2160 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
2161 "you cannot use the output in another program (because filenames can contain "
2162 "spaces and other unsafe characters).  If the guest was untrusted and someone "
2163 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
2164 "on you by creating filenames with embedded newline characters.  To B<safely> "
2165 "parse the output in another program, use the I<--csv> (Comma-Separated "
2166 "Values) option."
2167 msgstr ""
2168
2169 #. type: textblock
2170 #: ../cat/virt-ls.pod:143
2171 msgid ""
2172 "Note that this output format is completely unrelated to the C<ls -lR> "
2173 "command."
2174 msgstr ""
2175
2176 #. type: verbatim
2177 #: ../cat/virt-ls.pod:146
2178 #, no-wrap
2179 msgid ""
2180 " $ virt-ls -lR -d guest /bin\n"
2181 " d 0555       4096 /bin\n"
2182 " - 0755        123 /bin/alsaunmute\n"
2183 " - 0755      28328 /bin/arch\n"
2184 " l 0777          4 /bin/awk -> gawk\n"
2185 " - 0755      27216 /bin/basename\n"
2186 " - 0755     943360 /bin/bash\n"
2187 " [etc.]\n"
2188 "\n"
2189 msgstr ""
2190
2191 #. type: textblock
2192 #: ../cat/virt-ls.pod:155
2193 msgid "These basic fields are always shown:"
2194 msgstr ""
2195
2196 #. type: =item
2197 #: ../cat/virt-ls.pod:159
2198 msgid "type"
2199 msgstr ""
2200
2201 #. type: textblock
2202 #: ../cat/virt-ls.pod:161
2203 msgid ""
2204 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
2205 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
2206 "link), C<s> (socket) or C<u> (unknown)."
2207 msgstr ""
2208
2209 #. type: =item
2210 #: ../cat/virt-ls.pod:171
2211 msgid "permissions"
2212 msgstr ""
2213
2214 #. type: textblock
2215 #: ../cat/virt-ls.pod:173
2216 msgid "The Unix permissions, displayed as a 4 digit octal number."
2217 msgstr ""
2218
2219 #. type: =item
2220 #: ../cat/virt-ls.pod:175
2221 msgid "size"
2222 msgstr ""
2223
2224 #. type: textblock
2225 #: ../cat/virt-ls.pod:177
2226 msgid ""
2227 "The size of the file.  This is shown in bytes unless I<-h> or "
2228 "I<--human-readable> option is given, in which case this is shown as a "
2229 "human-readable number."
2230 msgstr ""
2231
2232 #. type: =head2
2233 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4488
2234 msgid "path"
2235 msgstr ""
2236
2237 #. type: textblock
2238 #: ../cat/virt-ls.pod:183
2239 msgid "The full path of the file or directory."
2240 msgstr ""
2241
2242 #. type: =item
2243 #: ../cat/virt-ls.pod:185
2244 msgid "link"
2245 msgstr ""
2246
2247 #. type: textblock
2248 #: ../cat/virt-ls.pod:187
2249 msgid "For symbolic links only, the link target."
2250 msgstr ""
2251
2252 #. type: textblock
2253 #: ../cat/virt-ls.pod:191
2254 msgid ""
2255 "In I<-lR> mode, additional command line options enable the display of more "
2256 "fields."
2257 msgstr ""
2258
2259 #. type: textblock
2260 #: ../cat/virt-ls.pod:194
2261 msgid ""
2262 "With the I<--uids> flag, these additional fields are displayed before the "
2263 "path:"
2264 msgstr ""
2265
2266 #. type: =item
2267 #: ../cat/virt-ls.pod:199
2268 msgid "uid"
2269 msgstr ""
2270
2271 #. type: =item
2272 #: ../cat/virt-ls.pod:201
2273 msgid "gid"
2274 msgstr ""
2275
2276 #. type: textblock
2277 #: ../cat/virt-ls.pod:203
2278 msgid ""
2279 "The UID and GID of the owner of the file (displayed numerically).  Note "
2280 "these only make sense in the context of a Unix-like guest."
2281 msgstr ""
2282
2283 #. type: textblock
2284 #: ../cat/virt-ls.pod:208
2285 msgid "With the I<--times> flag, these additional fields are displayed:"
2286 msgstr ""
2287
2288 #. type: =item
2289 #: ../cat/virt-ls.pod:212
2290 msgid "atime"
2291 msgstr ""
2292
2293 #. type: textblock
2294 #: ../cat/virt-ls.pod:214
2295 msgid "The time of last access."
2296 msgstr ""
2297
2298 #. type: =item
2299 #: ../cat/virt-ls.pod:216
2300 msgid "mtime"
2301 msgstr ""
2302
2303 #. type: textblock
2304 #: ../cat/virt-ls.pod:218
2305 msgid "The time of last modification."
2306 msgstr ""
2307
2308 #. type: =item
2309 #: ../cat/virt-ls.pod:220
2310 msgid "ctime"
2311 msgstr ""
2312
2313 #. type: textblock
2314 #: ../cat/virt-ls.pod:222
2315 msgid "The time of last status change."
2316 msgstr ""
2317
2318 #. type: textblock
2319 #: ../cat/virt-ls.pod:226
2320 msgid ""
2321 "The time fields are displayed as string dates and times, unless one of the "
2322 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2323 msgstr ""
2324
2325 #. type: textblock
2326 #: ../cat/virt-ls.pod:229
2327 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2328 msgstr ""
2329
2330 #. type: =item
2331 #: ../cat/virt-ls.pod:233
2332 msgid "device"
2333 msgstr ""
2334
2335 #. type: textblock
2336 #: ../cat/virt-ls.pod:235
2337 msgid ""
2338 "The device containing the file (displayed as major:minor).  This may not "
2339 "match devices as known to the guest."
2340 msgstr ""
2341
2342 #. type: =item
2343 #: ../cat/virt-ls.pod:238
2344 msgid "inode"
2345 msgstr ""
2346
2347 #. type: textblock
2348 #: ../cat/virt-ls.pod:240
2349 msgid "The inode number."
2350 msgstr ""
2351
2352 #. type: =item
2353 #: ../cat/virt-ls.pod:242
2354 msgid "nlink"
2355 msgstr ""
2356
2357 #. type: textblock
2358 #: ../cat/virt-ls.pod:244
2359 msgid "The number of hard links."
2360 msgstr ""
2361
2362 #. type: =item
2363 #: ../cat/virt-ls.pod:246
2364 msgid "rdev"
2365 msgstr ""
2366
2367 #. type: textblock
2368 #: ../cat/virt-ls.pod:248
2369 msgid "For block and char special files, the device (displayed as major:minor)."
2370 msgstr ""
2371
2372 #. type: =item
2373 #: ../cat/virt-ls.pod:251
2374 msgid "blocks"
2375 msgstr ""
2376
2377 #. type: textblock
2378 #: ../cat/virt-ls.pod:253
2379 msgid "The number of 512 byte blocks allocated to the file."
2380 msgstr ""
2381
2382 #. type: textblock
2383 #: ../cat/virt-ls.pod:257
2384 msgid ""
2385 "With the I<--checksum> flag, the checksum of the file contents is shown "
2386 "(only for regular files).  Computing file checksums can take a considerable "
2387 "amount of time."
2388 msgstr ""
2389
2390 #. type: =item
2391 #: ../cat/virt-ls.pod:280
2392 msgid "B<--checksum>"
2393 msgstr ""
2394
2395 #. type: =item
2396 #: ../cat/virt-ls.pod:282
2397 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2398 msgstr ""
2399
2400 #. type: textblock
2401 #: ../cat/virt-ls.pod:284
2402 msgid ""
2403 "Display checksum over file contents for regular files.  With no argument, "
2404 "this defaults to using I<md5>.  Using an argument, you can select the "
2405 "checksum type to use."
2406 msgstr ""
2407
2408 #. type: textblock
2409 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358 ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408 ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2410 msgid ""
2411 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
2412 "LISTING> above."
2413 msgstr ""
2414
2415 #. type: textblock
2416 #: ../cat/virt-ls.pod:316
2417 msgid ""
2418 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2419 "so you cannot see what you are typing.  If you are not worried about Tempest "
2420 "attacks and there is no one else in the room you can specify this flag to "
2421 "see what you are typing."
2422 msgstr ""
2423
2424 #. type: =item
2425 #: ../cat/virt-ls.pod:321
2426 msgid "B<--extra-stats>"
2427 msgstr ""
2428
2429 #. type: textblock
2430 #: ../cat/virt-ls.pod:323
2431 msgid "Display extra stats."
2432 msgstr ""
2433
2434 #. type: verbatim
2435 #: ../cat/virt-ls.pod:339
2436 #, no-wrap
2437 msgid ""
2438 " virt-ls --format=raw -a disk.img /dir\n"
2439 "\n"
2440 msgstr ""
2441
2442 #. type: verbatim
2443 #: ../cat/virt-ls.pod:343
2444 #, no-wrap
2445 msgid ""
2446 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2447 "\n"
2448 msgstr ""
2449
2450 #. type: textblock
2451 #: ../cat/virt-ls.pod:356
2452 msgid "Display file sizes in human-readable format."
2453 msgstr ""
2454
2455 #. type: =item
2456 #: ../cat/virt-ls.pod:370
2457 msgid "B<-R>"
2458 msgstr ""
2459
2460 #. type: =item
2461 #: ../cat/virt-ls.pod:372
2462 msgid "B<--recursive>"
2463 msgstr ""
2464
2465 #. type: textblock
2466 #: ../cat/virt-ls.pod:374
2467 msgid ""
2468 "Select the mode.  With neither of these options, C<virt-ls> produces a "
2469 "simple, flat list of the files in the named directory.  See L</SIMPLE "
2470 "LISTING>."
2471 msgstr ""
2472
2473 #. type: textblock
2474 #: ../cat/virt-ls.pod:378
2475 msgid ""
2476 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See "
2477 "L</LONG LISTING>."
2478 msgstr ""
2479
2480 #. type: textblock
2481 #: ../cat/virt-ls.pod:381
2482 msgid ""
2483 "C<virt-ls -R> produces a recursive list of files starting at the named "
2484 "directory.  See L</RECURSIVE LISTING>."
2485 msgstr ""
2486
2487 #. type: textblock
2488 #: ../cat/virt-ls.pod:384
2489 msgid ""
2490 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2491 "parsed.  See L</RECURSIVE LONG LISTING>."
2492 msgstr ""
2493
2494 #. type: =item
2495 #: ../cat/virt-ls.pod:387
2496 msgid "B<--times>"
2497 msgstr ""
2498
2499 #. type: textblock
2500 #: ../cat/virt-ls.pod:389
2501 msgid "Display time fields."
2502 msgstr ""
2503
2504 #. type: =item
2505 #: ../cat/virt-ls.pod:394
2506 msgid "B<--time-days>"
2507 msgstr ""
2508
2509 #. type: textblock
2510 #: ../cat/virt-ls.pod:396
2511 msgid "Display time fields as days before now (negative if in the future)."
2512 msgstr ""
2513
2514 #. type: textblock
2515 #: ../cat/virt-ls.pod:398
2516 msgid ""
2517 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2518 "of the file is between 0 and 86399 seconds."
2519 msgstr ""
2520
2521 #. type: =item
2522 #: ../cat/virt-ls.pod:404
2523 msgid "B<--time-relative>"
2524 msgstr ""
2525
2526 #. type: textblock
2527 #: ../cat/virt-ls.pod:406
2528 msgid "Display time fields as seconds before now (negative if in the future)."
2529 msgstr ""
2530
2531 #. type: =item
2532 #: ../cat/virt-ls.pod:411
2533 msgid "B<--time-t>"
2534 msgstr ""
2535
2536 #. type: textblock
2537 #: ../cat/virt-ls.pod:413
2538 msgid "Display time fields as seconds since the Unix epoch."
2539 msgstr ""
2540
2541 #. type: =item
2542 #: ../cat/virt-ls.pod:418
2543 msgid "B<--uids>"
2544 msgstr ""
2545
2546 #. type: textblock
2547 #: ../cat/virt-ls.pod:420
2548 msgid "Display UID and GID fields."
2549 msgstr ""
2550
2551 #. type: textblock
2552 #: ../cat/virt-ls.pod:445
2553 msgid "Previous versions of virt-ls allowed you to write either:"
2554 msgstr ""
2555
2556 #. type: verbatim
2557 #: ../cat/virt-ls.pod:447
2558 #, no-wrap
2559 msgid ""
2560 " virt-ls disk.img [disk.img ...] /dir\n"
2561 "\n"
2562 msgstr ""
2563
2564 #. type: verbatim
2565 #: ../cat/virt-ls.pod:451
2566 #, no-wrap
2567 msgid ""
2568 " virt-ls guestname /dir\n"
2569 "\n"
2570 msgstr ""
2571
2572 #. type: textblock
2573 #: ../cat/virt-ls.pod:497
2574 msgid ""
2575 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, "
2576 "L<virt-tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
2577 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
2578 msgstr ""
2579
2580 #. type: textblock
2581 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:267 ../edit/virt-edit.pod:374 ../rescue/virt-rescue.pod:340
2582 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2583 msgstr ""
2584
2585 #. type: textblock
2586 #: ../clone/virt-sysprep.pod:5
2587 msgid "virt-sysprep - Reset or unconfigure a virtual machine so clones can be made"
2588 msgstr ""
2589
2590 #. type: verbatim
2591 #: ../clone/virt-sysprep.pod:9
2592 #, no-wrap
2593 msgid ""
2594 " virt-sysprep [--options] -d domname\n"
2595 "\n"
2596 msgstr ""
2597
2598 #. type: verbatim
2599 #: ../clone/virt-sysprep.pod:11
2600 #, no-wrap
2601 msgid ""
2602 " virt-sysprep [--options] -a disk.img [-a disk.img ...]\n"
2603 "\n"
2604 msgstr ""
2605
2606 #. type: textblock
2607 #: ../clone/virt-sysprep.pod:15
2608 msgid ""
2609 "Virt-sysprep \"resets\" or \"unconfigures\" a virtual machine so that clones "
2610 "can be made from it.  Steps in this process include removing SSH host keys, "
2611 "removing persistent network MAC configuration, and removing user accounts.  "
2612 "Each step can be enabled or disabled as required."
2613 msgstr ""
2614
2615 #. type: textblock
2616 #: ../clone/virt-sysprep.pod:21
2617 msgid ""
2618 "Virt-sysprep is a simple shell script, allowing easy inspection or "
2619 "customization by the system administrator."
2620 msgstr ""
2621
2622 #. type: textblock
2623 #: ../clone/virt-sysprep.pod:24
2624 msgid ""
2625 "Virt-sysprep modifies the guest or disk image I<in place>.  The guest must "
2626 "be shut down.  If you want to preserve the existing contents of the guest, "
2627 "you I<must copy or clone the disk first>.  See L</COPYING AND CLONING> "
2628 "below."
2629 msgstr ""
2630
2631 #. type: textblock
2632 #: ../clone/virt-sysprep.pod:29
2633 msgid ""
2634 "You do I<not> need to run virt-sysprep as root.  In fact we'd generally "
2635 "recommend that you don't.  The time you might want to run it as root is when "
2636 "you need root in order to access the disk image, but even in this case it "
2637 "would be better to change the permissions on the disk image to be writable "
2638 "as the non-root user running virt-sysprep."
2639 msgstr ""
2640
2641 #. type: textblock
2642 #: ../clone/virt-sysprep.pod:35
2643 msgid ""
2644 "\"Sysprep\" stands for \"system preparation\" tool.  The name comes from the "
2645 "Microsoft program C<sysprep.exe> which is used to unconfigure Windows "
2646 "machines in preparation for cloning them.  Having said that, virt-sysprep "
2647 "does I<not> currently work on Microsoft Windows guests.  We plan to support "
2648 "Windows sysprepping in a future version, and we already have code to do it."
2649 msgstr ""
2650
2651 #. type: =item
2652 #: ../clone/virt-sysprep.pod:76
2653 msgid "B<--enable=...>"
2654 msgstr ""
2655
2656 #. type: textblock
2657 #: ../clone/virt-sysprep.pod:78
2658 msgid ""
2659 "Choose which sysprep operations to perform.  Give a comma-separated list of "
2660 "operations, for example:"
2661 msgstr ""
2662
2663 #. type: verbatim
2664 #: ../clone/virt-sysprep.pod:81
2665 #, no-wrap
2666 msgid ""
2667 " --enable=ssh-hostkeys,udev-persistent-net\n"
2668 "\n"
2669 msgstr ""
2670
2671 #. type: textblock
2672 #: ../clone/virt-sysprep.pod:83
2673 msgid "would enable ONLY C<ssh-hostkeys> and C<udev-persistent-net> operations."
2674 msgstr ""
2675
2676 #. type: textblock
2677 #: ../clone/virt-sysprep.pod:85
2678 msgid ""
2679 "If the I<--enable> option is not given, then we default to trying all "
2680 "possible sysprep operations.  But some sysprep operations are skipped for "
2681 "some guest types."
2682 msgstr ""
2683
2684 #. type: textblock
2685 #: ../clone/virt-sysprep.pod:89
2686 msgid ""
2687 "Use I<--list-operations> to list operations supported by a particular "
2688 "version of virt-sysprep."
2689 msgstr ""
2690
2691 #. type: textblock
2692 #: ../clone/virt-sysprep.pod:92
2693 msgid "See L</OPERATIONS> below for a list and an explanation of each operation."
2694 msgstr ""
2695
2696 #. type: verbatim
2697 #: ../clone/virt-sysprep.pod:106
2698 #, no-wrap
2699 msgid ""
2700 " virt-sysprep --format=raw -a disk.img\n"
2701 "\n"
2702 msgstr ""
2703
2704 #. type: verbatim
2705 #: ../clone/virt-sysprep.pod:110
2706 #, no-wrap
2707 msgid ""
2708 " virt-sysprep --format=raw -a disk.img --format -a another.img\n"
2709 "\n"
2710 msgstr ""
2711
2712 #. type: =item
2713 #: ../clone/virt-sysprep.pod:119
2714 msgid "B<--hostname> newhostname"
2715 msgstr ""
2716
2717 #. type: textblock
2718 #: ../clone/virt-sysprep.pod:121
2719 msgid ""
2720 "Change the hostname.  See the L</hostname> operation below.  If not given, "
2721 "defaults to C<localhost.localdomain>."
2722 msgstr ""
2723
2724 #. type: =item
2725 #: ../clone/virt-sysprep.pod:124
2726 msgid "B<--list-operations>"
2727 msgstr ""
2728
2729 #. type: textblock
2730 #: ../clone/virt-sysprep.pod:126
2731 msgid "List the operations supported by the virt-sysprep program."
2732 msgstr ""
2733
2734 #. type: =item
2735 #: ../clone/virt-sysprep.pod:128
2736 msgid "B<--selinux-relabel>"
2737 msgstr ""
2738
2739 #. type: =item
2740 #: ../clone/virt-sysprep.pod:130
2741 msgid "B<--no-selinux-relabel>"
2742 msgstr ""
2743
2744 #. type: textblock
2745 #: ../clone/virt-sysprep.pod:132
2746 msgid ""
2747 "I<--selinux-relabel> forces SELinux relabelling next time the guest boots.  "
2748 "I<--no-selinux-relabel> disables relabelling."
2749 msgstr ""
2750
2751 #. type: textblock
2752 #: ../clone/virt-sysprep.pod:135
2753 msgid ""
2754 "The default is to try to detect if SELinux relabelling is required.  See "
2755 "L</SELINUX RELABELLING> below for more details."
2756 msgstr ""
2757
2758 #. type: =head1
2759 #: ../clone/virt-sysprep.pod:156
2760 msgid "OPERATIONS"
2761 msgstr ""
2762
2763 #. type: textblock
2764 #: ../clone/virt-sysprep.pod:158
2765 msgid ""
2766 "If the I<--enable> option is I<not> given, then I<all sysprep operations are "
2767 "enabled>, although some are skipped depending on the type of guest."
2768 msgstr ""
2769
2770 #. type: textblock
2771 #: ../clone/virt-sysprep.pod:162
2772 msgid ""
2773 "Operations can be individually enabled using the I<--enable> option.  Use a "
2774 "comma-separated list, for example:"
2775 msgstr ""
2776
2777 #. type: verbatim
2778 #: ../clone/virt-sysprep.pod:165
2779 #, no-wrap
2780 msgid ""
2781 " virt-sysprep --enable=ssh-hostkeys,udev-persistent-net [etc..]\n"
2782 "\n"
2783 msgstr ""
2784
2785 #. type: textblock
2786 #: ../clone/virt-sysprep.pod:167
2787 msgid ""
2788 "To list the operations supported by the current version of virt-sysprep, use "
2789 "I<--list-operations>."
2790 msgstr ""
2791
2792 #. type: textblock
2793 #: ../clone/virt-sysprep.pod:170
2794 msgid ""
2795 "Future versions of virt-sysprep may add more operations.  If you are using "
2796 "virt-sysprep and want predictable behaviour, specify only the operations "
2797 "that you want to have enabled."
2798 msgstr ""
2799
2800 #. type: =head2
2801 #: ../clone/virt-sysprep.pod:174
2802 msgid "cron-spool"
2803 msgstr ""
2804
2805 #. type: textblock
2806 #: ../clone/virt-sysprep.pod:176
2807 msgid "Remove user at-jobs and cron-jobs."
2808 msgstr ""
2809
2810 #. type: =head2
2811 #: ../clone/virt-sysprep.pod:178
2812 msgid "dhcp-client-state"
2813 msgstr ""
2814
2815 #. type: textblock
2816 #: ../clone/virt-sysprep.pod:180
2817 msgid "Remove DHCP client leases."
2818 msgstr ""
2819
2820 #. type: =head2
2821 #: ../clone/virt-sysprep.pod:182
2822 msgid "dhcp-server-state"
2823 msgstr ""
2824
2825 #. type: textblock
2826 #: ../clone/virt-sysprep.pod:184
2827 msgid "Remove DHCP server leases."
2828 msgstr ""
2829
2830 #. type: =head2
2831 #: ../clone/virt-sysprep.pod:186
2832 msgid "hostname"
2833 msgstr ""
2834
2835 #. type: textblock
2836 #: ../clone/virt-sysprep.pod:188
2837 msgid ""
2838 "Changes the hostname of the guest to the value given in the I<--hostname> "
2839 "parameter."
2840 msgstr ""
2841
2842 #. type: textblock
2843 #: ../clone/virt-sysprep.pod:191
2844 msgid ""
2845 "If the I<--hostname> parameter is not given, then the hostname is changed to "
2846 "C<localhost.localdomain>."
2847 msgstr ""
2848
2849 #. type: =head2
2850 #: ../clone/virt-sysprep.pod:194
2851 msgid "logfiles"
2852 msgstr ""
2853
2854 #. type: textblock
2855 #: ../clone/virt-sysprep.pod:196
2856 msgid "Remove many log files."
2857 msgstr ""
2858
2859 #. type: =head2
2860 #: ../clone/virt-sysprep.pod:198
2861 msgid "mail-spool"
2862 msgstr ""
2863
2864 #. type: textblock
2865 #: ../clone/virt-sysprep.pod:200
2866 msgid "Remove email from the local mail spool directory."
2867 msgstr ""
2868
2869 #. type: =head2
2870 #: ../clone/virt-sysprep.pod:202
2871 msgid "net-hwaddr"
2872 msgstr ""
2873
2874 #. type: textblock
2875 #: ../clone/virt-sysprep.pod:204
2876 msgid ""
2877 "Remove HWADDR (hard-coded MAC address) configuration.  For Fedora and Red "
2878 "Hat Enterprise Linux, this is removed from C<ifcfg-*> files."
2879 msgstr ""
2880
2881 #. type: =head2
2882 #: ../clone/virt-sysprep.pod:207
2883 msgid "random-seed"
2884 msgstr ""
2885
2886 #. type: textblock
2887 #: ../clone/virt-sysprep.pod:209
2888 msgid ""
2889 "Write some random bytes from the host into the random seed file of the "
2890 "guest."
2891 msgstr ""
2892
2893 #. type: textblock
2894 #: ../clone/virt-sysprep.pod:212
2895 msgid "See L</RANDOM SEED> below."
2896 msgstr ""
2897
2898 #. type: =head2
2899 #: ../clone/virt-sysprep.pod:214
2900 msgid "rhn-systemid"
2901 msgstr ""
2902
2903 #. type: textblock
2904 #: ../clone/virt-sysprep.pod:216
2905 msgid "Remove the RHN system ID."
2906 msgstr ""
2907
2908 #. type: =head2
2909 #: ../clone/virt-sysprep.pod:218
2910 msgid "smolt-uuid"
2911 msgstr ""
2912
2913 #. type: textblock
2914 #: ../clone/virt-sysprep.pod:220
2915 msgid "Remove the Smolt hardware UUID."
2916 msgstr ""
2917
2918 #. type: =head2
2919 #: ../clone/virt-sysprep.pod:222
2920 msgid "ssh-hostkeys"
2921 msgstr ""
2922
2923 #. type: textblock
2924 #: ../clone/virt-sysprep.pod:224
2925 msgid "Remove the SSH host keys in the guest."
2926 msgstr ""
2927
2928 #. type: textblock
2929 #: ../clone/virt-sysprep.pod:226
2930 msgid ""
2931 "The SSH host keys are regenerated (differently) next time the guest is "
2932 "booted."
2933 msgstr ""
2934
2935 #. type: textblock
2936 #: ../clone/virt-sysprep.pod:229
2937 msgid ""
2938 "If, after cloning, the guest gets the same IP address, ssh will give you a "
2939 "stark warning about the host key changing:"
2940 msgstr ""
2941
2942 #. type: verbatim
2943 #: ../clone/virt-sysprep.pod:232
2944 #, no-wrap
2945 msgid ""
2946 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
2947 " @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @\n"
2948 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
2949 " IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!\n"
2950 "\n"
2951 msgstr ""
2952
2953 #. type: =head2
2954 #: ../clone/virt-sysprep.pod:237
2955 msgid "udev-persistent-net"
2956 msgstr ""
2957
2958 #. type: textblock
2959 #: ../clone/virt-sysprep.pod:239
2960 msgid ""
2961 "Remove udev persistent net rules which map the guest's existing MAC address "
2962 "to a fixed ethernet device (eg. eth0)."
2963 msgstr ""
2964
2965 #. type: textblock
2966 #: ../clone/virt-sysprep.pod:242
2967 msgid ""
2968 "After a guest is cloned, the MAC address usually changes.  Since the old MAC "
2969 "address occupies the old name (eg. eth0), this means the fresh MAC address "
2970 "is assigned to a new name (eg. eth1) and this is usually undesirable.  "
2971 "Erasing the udev persistent net rules avoids this."
2972 msgstr ""
2973
2974 #. type: =head2
2975 #: ../clone/virt-sysprep.pod:247
2976 msgid "utmp"
2977 msgstr ""
2978
2979 #. type: textblock
2980 #: ../clone/virt-sysprep.pod:249
2981 msgid "Remove the utmp file."
2982 msgstr ""
2983
2984 #. type: textblock
2985 #: ../clone/virt-sysprep.pod:251
2986 msgid ""
2987 "This records who is currently logged in on a machine.  In modern Linux "
2988 "distros it is stored in a ramdisk and hence not part of the virtual "
2989 "machine's disk, but it was stored on disk in older distros."
2990 msgstr ""
2991
2992 #. type: =head2
2993 #: ../clone/virt-sysprep.pod:255
2994 msgid "yum-uuid"
2995 msgstr ""
2996
2997 #. type: textblock
2998 #: ../clone/virt-sysprep.pod:257
2999 msgid "Remove the yum UUID."
3000 msgstr ""
3001
3002 #. type: textblock
3003 #: ../clone/virt-sysprep.pod:259
3004 msgid ""
3005 "Yum creates a fresh UUID the next time it runs when it notices that the "
3006 "original UUID has been erased."
3007 msgstr ""
3008
3009 #. type: =head1
3010 #: ../clone/virt-sysprep.pod:262
3011 msgid "COPYING AND CLONING"
3012 msgstr ""
3013
3014 #. type: textblock
3015 #: ../clone/virt-sysprep.pod:264
3016 msgid ""
3017 "Virt-sysprep can be used as part of a process of cloning guests, or to "
3018 "prepare a template from which guests can be cloned.  There are many "
3019 "different ways to achieve this using the virt tools, and this section is "
3020 "just an introduction."
3021 msgstr ""
3022
3023 #. type: textblock
3024 #: ../clone/virt-sysprep.pod:269
3025 msgid "A virtual machine (when switched off) consists of two parts:"
3026 msgstr ""
3027
3028 #. type: =item
3029 #: ../clone/virt-sysprep.pod:273
3030 msgid "I<configuration>"
3031 msgstr ""
3032
3033 #. type: textblock
3034 #: ../clone/virt-sysprep.pod:275
3035 msgid ""
3036 "The configuration or description of the guest.  eg. The libvirt XML (see "
3037 "C<virsh dumpxml>), the running configuration of the guest, or another "
3038 "external format like OVF."
3039 msgstr ""
3040
3041 #. type: textblock
3042 #: ../clone/virt-sysprep.pod:279
3043 msgid "Some configuration items that might need to be changed:"
3044 msgstr ""
3045
3046 #. type: textblock
3047 #: ../clone/virt-sysprep.pod:285
3048 msgid "name"
3049 msgstr ""
3050
3051 #. type: textblock
3052 #: ../clone/virt-sysprep.pod:289 ../clone/virt-sysprep.pod:316
3053 msgid "UUID"
3054 msgstr ""
3055
3056 #. type: textblock
3057 #: ../clone/virt-sysprep.pod:293
3058 msgid "path to block device(s)"
3059 msgstr ""
3060
3061 #. type: textblock
3062 #: ../clone/virt-sysprep.pod:297
3063 msgid "network card MAC address"
3064 msgstr ""
3065
3066 #. type: =item
3067 #: ../clone/virt-sysprep.pod:301
3068 msgid "I<block device(s)>"
3069 msgstr ""
3070
3071 #. type: textblock
3072 #: ../clone/virt-sysprep.pod:303
3073 msgid ""
3074 "One or more hard disk images, themselves containing files, directories, "
3075 "applications, kernels, configuration, etc."
3076 msgstr ""
3077
3078 #. type: textblock
3079 #: ../clone/virt-sysprep.pod:306
3080 msgid "Some things inside the block devices that might need to be changed:"
3081 msgstr ""
3082
3083 #. type: textblock
3084 #: ../clone/virt-sysprep.pod:312
3085 msgid "hostname and other net configuration"
3086 msgstr ""
3087
3088 #. type: textblock
3089 #: ../clone/virt-sysprep.pod:320
3090 msgid "SSH host keys"
3091 msgstr ""
3092
3093 #. type: textblock
3094 #: ../clone/virt-sysprep.pod:324
3095 msgid "Windows unique security ID (SID)"
3096 msgstr ""
3097
3098 #. type: textblock
3099 #: ../clone/virt-sysprep.pod:328
3100 msgid "Puppet registration"
3101 msgstr ""
3102
3103 #. type: =head2
3104 #: ../clone/virt-sysprep.pod:334
3105 msgid "COPYING THE BLOCK DEVICE"
3106 msgstr ""
3107
3108 #. type: textblock
3109 #: ../clone/virt-sysprep.pod:336
3110 msgid ""
3111 "Starting with an original guest, you probably wish to copy the guest block "
3112 "device and its configuration to make a template.  Then once you are happy "
3113 "with the template, you will want to make many clones from it."
3114 msgstr ""
3115
3116 #. type: verbatim
3117 #: ../clone/virt-sysprep.pod:341
3118 #, no-wrap
3119 msgid ""
3120 "                        virt-sysprep\n"
3121 "                             |\n"
3122 "                             v\n"
3123 " original guest --------> template ---------->\n"
3124 "                                      \\------> cloned\n"
3125 "                                       \\-----> guests\n"
3126 "                                        \\---->\n"
3127 "\n"
3128 msgstr ""
3129
3130 #. type: textblock
3131 #: ../clone/virt-sysprep.pod:349
3132 msgid ""
3133 "You can, of course, just copy the block device on the host using L<cp(1)> or "
3134 "L<dd(1)>."
3135 msgstr ""
3136
3137 #. type: verbatim
3138 #: ../clone/virt-sysprep.pod:352
3139 #, no-wrap
3140 msgid ""
3141 "                   dd                 dd\n"
3142 " original guest --------> template ---------->\n"
3143 "                                      \\------> cloned\n"
3144 "                                       \\-----> guests\n"
3145 "                                        \\---->\n"
3146 "\n"
3147 msgstr ""
3148
3149 #. type: textblock
3150 #: ../clone/virt-sysprep.pod:358
3151 msgid "There are some smarter (and faster) ways too:"
3152 msgstr ""
3153
3154 #. type: verbatim
3155 #: ../clone/virt-sysprep.pod:364
3156 #, no-wrap
3157 msgid ""
3158 "                          snapshot\n"
3159 "                template ---------->\n"
3160 "                            \\------> cloned\n"
3161 "                             \\-----> guests\n"
3162 "                              \\---->\n"
3163 "\n"
3164 msgstr ""
3165
3166 #. type: textblock
3167 #: ../clone/virt-sysprep.pod:370
3168 msgid ""
3169 "Use the block device as a backing file and create a snapshot on top for each "
3170 "guest.  The advantage is that you don't need to copy the block device (very "
3171 "fast) and only changes are stored (less storage required)."
3172 msgstr ""
3173
3174 #. type: textblock
3175 #: ../clone/virt-sysprep.pod:375
3176 msgid ""
3177 "Note that writing to the backing file once you have created guests on top of "
3178 "it is not possible: you will corrupt the guests."
3179 msgstr ""
3180
3181 #. type: textblock
3182 #: ../clone/virt-sysprep.pod:378
3183 msgid ""
3184 "Tools that can do this include: L<qemu-img(1)> (with the I<create -f qcow2 "
3185 "-o backing_file> option), L<lvcreate(8)> (I<--snapshot> option).  Some "
3186 "filesystems (such as btrfs) and most Network Attached Storage devices can "
3187 "also create cheap snapshots from files or LUNs."
3188 msgstr ""
3189
3190 #. type: textblock
3191 #: ../clone/virt-sysprep.pod:386
3192 msgid "Get your NAS to snapshot and/or duplicate the LUN."
3193 msgstr ""
3194
3195 #. type: textblock
3196 #: ../clone/virt-sysprep.pod:390
3197 msgid "Prepare your template using L<virt-sparsify(1)>.  See below."
3198 msgstr ""
3199
3200 #. type: =head2
3201 #: ../clone/virt-sysprep.pod:394
3202 msgid "VIRT-CLONE"
3203 msgstr ""
3204
3205 #. type: textblock
3206 #: ../clone/virt-sysprep.pod:396
3207 msgid ""
3208 "A separate tool, L<virt-clone(1)>, can be used to duplicate the block device "
3209 "and/or modify the external libvirt configuration of a guest.  It will reset "
3210 "the name, UUID and MAC address of the guest in the libvirt XML."
3211 msgstr ""
3212
3213 #. type: textblock
3214 #: ../clone/virt-sysprep.pod:401
3215 msgid ""
3216 "L<virt-clone(1)> does not use libguestfs and cannot look inside the disk "
3217 "image.  This was the original motivation to write virt-sysprep."
3218 msgstr ""
3219
3220 #. type: =head2
3221 #: ../clone/virt-sysprep.pod:404
3222 msgid "SPARSIFY"
3223 msgstr ""
3224
3225 #. type: verbatim
3226 #: ../clone/virt-sysprep.pod:406
3227 #, no-wrap
3228 msgid ""
3229 "              virt-sparsify\n"
3230 " original guest --------> template\n"
3231 "\n"
3232 msgstr ""
3233
3234 #. type: textblock
3235 #: ../clone/virt-sysprep.pod:409
3236 msgid ""
3237 "L<virt-sparsify(1)> can be used to make the cloning template smaller, making "
3238 "it easier to compress and/or faster to copy."
3239 msgstr ""
3240
3241 #. type: textblock
3242 #: ../clone/virt-sysprep.pod:412
3243 msgid ""
3244 "Notice that since virt-sparsify also copies the image, you can use it to "
3245 "make the initial copy (instead of C<dd>)."
3246 msgstr ""
3247
3248 #. type: =head2
3249 #: ../clone/virt-sysprep.pod:415
3250 msgid "RESIZE"
3251 msgstr ""
3252
3253 #. type: verbatim
3254 #: ../clone/virt-sysprep.pod:417
3255 #, no-wrap
3256 msgid ""
3257 "                         virt-resize\n"
3258 "                template ---------->\n"
3259 "                            \\------> cloned\n"
3260 "                             \\-----> guests\n"
3261 "                              \\---->\n"
3262 "\n"
3263 msgstr ""
3264
3265 #. type: textblock
3266 #: ../clone/virt-sysprep.pod:423
3267 msgid ""
3268 "If you want to give people cloned guests, but let them pick the size of the "
3269 "guest themselves (eg. depending on how much they are prepared to pay for "
3270 "disk space), then instead of copying the template, you can run "
3271 "L<virt-resize(1)>.  Virt-resize performs a copy and resize, and thus is "
3272 "ideal for cloning guests from a template."
3273 msgstr ""
3274
3275 #. type: =head1
3276 #: ../clone/virt-sysprep.pod:429 ../src/guestfs.pod:1164
3277 msgid "SECURITY"
3278 msgstr ""
3279
3280 #. type: textblock
3281 #: ../clone/virt-sysprep.pod:431
3282 msgid ""
3283 "Although virt-sysprep removes some sensitive information from the guest, it "
3284 "does not pretend to remove all of it.  You should examine the L</OPERATIONS> "
3285 "above, and the implementation of the operations in the shell script.  You "
3286 "should also examine the guest afterwards."
3287 msgstr ""
3288
3289 #. type: textblock
3290 #: ../clone/virt-sysprep.pod:436
3291 msgid ""
3292 "Sensitive files are simply removed.  The data they contained may still exist "
3293 "on the disk, easily recovered with a hex editor or undelete tool.  Use "
3294 "L<virt-sparsify(1)> as one way to remove this content.  See also the "
3295 "L<scrub(1)> command to get rid of deleted content in directory entries and "
3296 "inodes."
3297 msgstr ""
3298
3299 #. type: =head2
3300 #: ../clone/virt-sysprep.pod:442
3301 msgid "RANDOM SEED"
3302 msgstr ""
3303
3304 #. type: textblock
3305 #: ../clone/virt-sysprep.pod:444
3306 msgid "I<(This section applies to Linux guests only)>"
3307 msgstr ""
3308
3309 #. type: textblock
3310 #: ../clone/virt-sysprep.pod:446
3311 msgid ""
3312 "The virt-sysprep C<random-seed> operation writes a few bytes of randomness "
3313 "from the host into the guest's random seed file."
3314 msgstr ""
3315
3316 #. type: textblock
3317 #: ../clone/virt-sysprep.pod:449
3318 msgid ""
3319 "If this is just done once and the guest is cloned from the same template, "
3320 "then each guest will start with the same entropy, and things like SSH host "
3321 "keys and TCP sequence numbers may be predictable."
3322 msgstr ""
3323
3324 #. type: textblock
3325 #: ../clone/virt-sysprep.pod:453
3326 msgid ""
3327 "Therefore you should arrange to add more randomness I<after> cloning from a "
3328 "template too, which can be done by just enabling the C<random-seed> "
3329 "operation:"
3330 msgstr ""
3331
3332 #. type: verbatim
3333 #: ../clone/virt-sysprep.pod:457
3334 #, no-wrap
3335 msgid ""
3336 " cp template.img newguest.img\n"
3337 " virt-sysprep --enable=random-seed -a newguest.img\n"
3338 "\n"
3339 msgstr ""
3340
3341 #. type: =head2
3342 #: ../clone/virt-sysprep.pod:460
3343 msgid "SELINUX RELABELLING"
3344 msgstr ""
3345
3346 #. type: textblock
3347 #: ../clone/virt-sysprep.pod:462
3348 msgid "I<(This section applies to Linux guests using SELinux only)>"
3349 msgstr ""
3350
3351 #. type: textblock
3352 #: ../clone/virt-sysprep.pod:464
3353 msgid ""
3354 "If any new files are created by virt-sysprep, then virt-sysprep touches "
3355 "C</.autorelabel> so that these will be correctly labelled by SELinux the "
3356 "next time the guest is booted.  This process interrupts boot and can take "
3357 "some time."
3358 msgstr ""
3359
3360 #. type: textblock
3361 #: ../clone/virt-sysprep.pod:469
3362 msgid ""
3363 "You can force relabelling for all guests by supplying the "
3364 "I<--selinux-relabel> option."
3365 msgstr ""
3366
3367 #. type: textblock
3368 #: ../clone/virt-sysprep.pod:472
3369 msgid ""
3370 "You can disable relabelling entirely by supplying the "
3371 "I<--no-selinux-relabel> option."
3372 msgstr ""
3373
3374 #. type: textblock
3375 #: ../clone/virt-sysprep.pod:484
3376 msgid "This program returns 0 on success, or 1 if there was an error."
3377 msgstr ""
3378
3379 #. type: textblock
3380 #: ../clone/virt-sysprep.pod:488
3381 msgid ""
3382 "L<guestfs(3)>, L<guestfish(1)>, L<virt-clone(1)>, L<virt-rescue(1)>, "
3383 "L<virt-resize(1)>, L<virt-sparsify(1)>, L<virsh(1)>, L<lvcreate(8)>, "
3384 "L<qemu-img(1)>, L<scrub(1)>, L<http://libguestfs.org/>, "
3385 "L<http://libvirt.org/>."
3386 msgstr ""
3387
3388 #. type: textblock
3389 #: ../df/virt-df.pod:5
3390 msgid "virt-df - Display free space on virtual filesystems"
3391 msgstr ""
3392
3393 #. type: verbatim
3394 #: ../df/virt-df.pod:9
3395 #, no-wrap
3396 msgid ""
3397 " virt-df [--options]\n"
3398 "\n"
3399 msgstr ""
3400
3401 #. type: verbatim
3402 #: ../df/virt-df.pod:11
3403 #, no-wrap
3404 msgid ""
3405 " virt-df [--options] -d domname\n"
3406 "\n"
3407 msgstr ""
3408
3409 #. type: verbatim
3410 #: ../df/virt-df.pod:13
3411 #, no-wrap
3412 msgid ""
3413 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
3414 "\n"
3415 msgstr ""
3416
3417 #. type: verbatim
3418 #: ../df/virt-df.pod:17
3419 #, no-wrap
3420 msgid ""
3421 " virt-df [--options] domname\n"
3422 "\n"
3423 msgstr ""
3424
3425 #. type: verbatim
3426 #: ../df/virt-df.pod:19
3427 #, no-wrap
3428 msgid ""
3429 " virt-df [--options] disk.img [disk.img ...]\n"
3430 "\n"
3431 msgstr ""
3432
3433 #. type: textblock
3434 #: ../df/virt-df.pod:23
3435 msgid ""
3436 "C<virt-df> is a command line tool to display free space on virtual machine "
3437 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
3438 "allocated to a virtual machine, but can look inside disk images to see how "
3439 "much space is really being used."
3440 msgstr ""
3441
3442 #. type: textblock
3443 #: ../df/virt-df.pod:28
3444 msgid ""
3445 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
3446 "to get a list of all active and inactive guests, and performs a C<df>-type "
3447 "operation on each one in turn, printing out the results."
3448 msgstr ""
3449
3450 #. type: textblock
3451 #: ../df/virt-df.pod:32
3452 msgid ""
3453 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a "
3454 "C<df>-type operation on either the single named libvirt domain, or on the "
3455 "disk image(s) listed on the command line (which must all belong to a single "
3456 "VM).  In this mode (with arguments), C<virt-df> will I<only work for a "
3457 "single guest>.  If you want to run on multiple guests, then you have to "
3458 "invoke C<virt-df> multiple times."
3459 msgstr ""
3460
3461 #. type: textblock
3462 #: ../df/virt-df.pod:39
3463 msgid ""
3464 "Use the I<--csv> option to get a format which can be easily parsed by other "
3465 "programs.  Other options are similar to the standard L<df(1)> command."
3466 msgstr ""
3467
3468 #. type: textblock
3469 #: ../df/virt-df.pod:45
3470 msgid ""
3471 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
3472 "output human-readable:"
3473 msgstr ""
3474
3475 #. type: verbatim
3476 #: ../df/virt-df.pod:48
3477 #, no-wrap
3478 msgid ""
3479 " # virt-df -d F14x64 -h\n"
3480 " Filesystem                       Size     Used  Available  Use%\n"
3481 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
3482 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
3483 "\n"
3484 msgstr ""
3485
3486 #. type: textblock
3487 #: ../df/virt-df.pod:53
3488 msgid "Show disk usage for a disk image file called C<test.img>:"
3489 msgstr ""
3490
3491 #. type: verbatim
3492 #: ../df/virt-df.pod:55
3493 #, no-wrap
3494 msgid ""
3495 " $ virt-df -a test1.img\n"
3496 " Filesystem                  1K-blocks     Used  Available  Use%\n"
3497 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
3498 "\n"
3499 msgstr ""
3500
3501 #. type: verbatim
3502 #: ../df/virt-df.pod:112
3503 #, no-wrap
3504 msgid ""
3505 " virt-df --format=raw -a disk.img\n"
3506 "\n"
3507 msgstr ""
3508
3509 #. type: verbatim
3510 #: ../df/virt-df.pod:116
3511 #, no-wrap
3512 msgid ""
3513 " virt-df --format=raw -a disk.img --format -a another.img\n"
3514 "\n"
3515 msgstr ""
3516
3517 #. type: textblock
3518 #: ../df/virt-df.pod:129
3519 msgid "Print sizes in human-readable format."
3520 msgstr ""
3521
3522 #. type: textblock
3523 #: ../df/virt-df.pod:131
3524 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
3525 msgstr ""
3526
3527 #. type: =item
3528 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:164
3529 msgid "B<-i>"
3530 msgstr ""
3531
3532 #. type: =item
3533 #: ../df/virt-df.pod:135
3534 msgid "B<--inodes>"
3535 msgstr ""
3536
3537 #. type: textblock
3538 #: ../df/virt-df.pod:137
3539 msgid "Print inodes instead of blocks."
3540 msgstr ""
3541
3542 #. type: =item
3543 #: ../df/virt-df.pod:139
3544 msgid "B<--one-per-guest>"
3545 msgstr ""
3546
3547 #. type: textblock
3548 #: ../df/virt-df.pod:141
3549 msgid ""
3550 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
3551 "disks from several guests to a single libguestfs appliance."
3552 msgstr ""
3553
3554 #. type: textblock
3555 #: ../df/virt-df.pod:144
3556 msgid "You might use this option in the following circumstances:"
3557 msgstr ""
3558
3559 #. type: textblock
3560 #: ../df/virt-df.pod:150
3561 msgid ""
3562 "If you think an untrusted guest might actively try to exploit the libguestfs "
3563 "appliance kernel, then this prevents one guest from interfering with the "
3564 "stats printed for another guest."
3565 msgstr ""
3566
3567 #. type: textblock
3568 #: ../df/virt-df.pod:156
3569 msgid ""
3570 "If the kernel has a bug which stops it from accessing a filesystem in one "
3571 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
3572 "and report stats for further guests."
3573 msgstr ""
3574
3575 #. type: textblock
3576 #: ../df/virt-df.pod:165
3577 msgid ""
3578 "Print UUIDs instead of names.  This is useful for following a guest even "
3579 "when the guest is migrated or renamed, or when two guests happen to have the "
3580 "same name."
3581 msgstr ""
3582
3583 #. type: textblock
3584 #: ../df/virt-df.pod:169
3585 msgid ""
3586 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
3587 "images, we still print the disk image name even when this option is "
3588 "specified."
3589 msgstr ""
3590
3591 #. type: =head1
3592 #: ../df/virt-df.pod:191
3593 msgid "STATVFS NUMBERS"
3594 msgstr ""
3595
3596 #. type: textblock
3597 #: ../df/virt-df.pod:193
3598 msgid ""
3599 "C<virt-df> (and L<df(1)>) get information by issuing a L<statvfs(3)> system "
3600 "call.  You can get the same information directly, either from the host "
3601 "(using libguestfs) or inside the guest:"
3602 msgstr ""
3603
3604 #. type: =item
3605 #: ../df/virt-df.pod:199
3606 msgid "From the host"
3607 msgstr ""
3608
3609 #. type: textblock
3610 #: ../df/virt-df.pod:201 ../df/virt-df.pod:209
3611 msgid "Run this command:"
3612 msgstr ""
3613
3614 #. type: verbatim
3615 #: ../df/virt-df.pod:203
3616 #, no-wrap
3617 msgid ""
3618 " guestfish --ro -d GuestName -i statvfs /\n"
3619 "\n"
3620 msgstr ""
3621
3622 #. type: textblock
3623 #: ../df/virt-df.pod:205 ../df/virt-df.pod:213
3624 msgid "(change C</> to see stats for other filesystems)."
3625 msgstr ""
3626
3627 #. type: =item
3628 #: ../df/virt-df.pod:207
3629 msgid "From inside the guest"
3630 msgstr ""
3631
3632 #. type: verbatim
3633 #: ../df/virt-df.pod:211
3634 #, no-wrap
3635 msgid ""
3636 " python -c 'import os; s = os.statvfs (\"/\"); print s'\n"
3637 "\n"
3638 msgstr ""
3639
3640 #. type: textblock
3641 #: ../df/virt-df.pod:255
3642 msgid ""
3643 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, "
3644 "L<http://libguestfs.org/>."
3645 msgstr ""
3646
3647 #. type: textblock
3648 #: ../edit/virt-edit.pod:5
3649 msgid "virt-edit - Edit a file in a virtual machine"
3650 msgstr ""
3651
3652 #. type: verbatim
3653 #: ../edit/virt-edit.pod:9
3654 #, no-wrap
3655 msgid ""
3656 " virt-edit [--options] -d domname file [file ...]\n"
3657 "\n"
3658 msgstr ""
3659
3660 #. type: verbatim
3661 #: ../edit/virt-edit.pod:11
3662 #, no-wrap
3663 msgid ""
3664 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
3665 "\n"
3666 msgstr ""
3667
3668 #. type: verbatim
3669 #: ../edit/virt-edit.pod:13
3670 #, no-wrap
3671 msgid ""
3672 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
3673 "\n"
3674 msgstr ""
3675
3676 #. type: verbatim
3677 #: ../edit/virt-edit.pod:17
3678 #, no-wrap
3679 msgid ""
3680 " virt-edit domname file\n"
3681 "\n"
3682 msgstr ""
3683
3684 #. type: verbatim
3685 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
3686 #, no-wrap
3687 msgid ""
3688 " virt-edit disk.img [disk.img ...] file\n"
3689 "\n"
3690 msgstr ""
3691
3692 #. type: =head1
3693 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23 ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15 ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:21 ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
3694 msgid "WARNING"
3695 msgstr ""
3696
3697 #. type: textblock
3698 #: ../edit/virt-edit.pod:23
3699 msgid ""
3700 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
3701 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
3702 "doing this, but doesn't catch all cases."
3703 msgstr ""
3704
3705 #. type: textblock
3706 #: ../edit/virt-edit.pod:29
3707 msgid ""
3708 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
3709 "exists in the named virtual machine (or disk image)."
3710 msgstr ""
3711
3712 #. type: textblock
3713 #: ../edit/virt-edit.pod:32
3714 msgid ""
3715 "Multiple filenames can be given, in which case they are each edited in "
3716 "turn.  Each filename must be a full path, starting at the root directory "
3717 "(starting with '/')."
3718 msgstr ""
3719
3720 #. type: textblock
3721 #: ../edit/virt-edit.pod:36
3722 msgid "If you want to just view a file, use L<virt-cat(1)>."
3723 msgstr ""
3724
3725 #. type: textblock
3726 #: ../edit/virt-edit.pod:38
3727 msgid ""
3728 "For more complex cases you should look at the L<guestfish(1)> tool (see "
3729 "L</USING GUESTFISH> below)."
3730 msgstr ""
3731
3732 #. type: textblock
3733 #: ../edit/virt-edit.pod:41
3734 msgid ""
3735 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
3736 "that and much more."
3737 msgstr ""
3738
3739 #. type: textblock
3740 #: ../edit/virt-edit.pod:46
3741 msgid "Edit the named files interactively:"
3742 msgstr ""
3743
3744 #. type: verbatim
3745 #: ../edit/virt-edit.pod:48
3746 #, no-wrap
3747 msgid ""
3748 " virt-edit -d mydomain /boot/grub/grub.conf\n"
3749 "\n"
3750 msgstr ""
3751
3752 #. type: verbatim
3753 #: ../edit/virt-edit.pod:50
3754 #, no-wrap
3755 msgid ""
3756 " virt-edit -d mydomain /etc/passwd\n"
3757 "\n"
3758 msgstr ""
3759
3760 #. type: textblock
3761 #: ../edit/virt-edit.pod:52
3762 msgid "For Windows guests, some Windows paths are understood:"
3763 msgstr ""
3764
3765 #. type: verbatim
3766 #: ../edit/virt-edit.pod:54
3767 #, no-wrap
3768 msgid ""
3769 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
3770 "\n"
3771 msgstr ""
3772
3773 #. type: textblock
3774 #: ../edit/virt-edit.pod:56
3775 msgid ""
3776 "If Perl is installed, you can also edit files non-interactively (see "
3777 "L</NON-INTERACTIVE EDITING> below).  To change the init default level to 5:"
3778 msgstr ""
3779
3780 #. type: verbatim
3781 #: ../edit/virt-edit.pod:60
3782 #, no-wrap
3783 msgid ""
3784 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
3785 "\n"
3786 msgstr ""
3787
3788 #. type: =item
3789 #: ../edit/virt-edit.pod:81
3790 msgid "B<-b> extension"
3791 msgstr ""
3792
3793 #. type: =item
3794 #: ../edit/virt-edit.pod:83
3795 msgid "B<--backup> extension"
3796 msgstr ""
3797
3798 #. type: textblock
3799 #: ../edit/virt-edit.pod:85
3800 msgid ""
3801 "Create a backup of the original file I<in the guest disk image>.  The backup "
3802 "has the original filename with C<extension> added."
3803 msgstr ""
3804
3805 #. type: textblock
3806 #: ../edit/virt-edit.pod:88
3807 msgid ""
3808 "Usually the first character of C<extension> would be a dot C<.> so you would "
3809 "write:"
3810 msgstr ""
3811
3812 #. type: verbatim
3813 #: ../edit/virt-edit.pod:91
3814 #, no-wrap
3815 msgid ""
3816 " virt-edit -b .orig [etc]\n"
3817 "\n"
3818 msgstr ""
3819
3820 #. type: textblock
3821 #: ../edit/virt-edit.pod:93
3822 msgid "By default, no backup file is made."
3823 msgstr ""
3824
3825 #. type: =item
3826 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181 ../fuse/guestmount.pod:105 ../inspector/virt-inspector.pod:74 ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78 ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
3827 msgid "B<-c URI>"
3828 msgstr ""
3829
3830 #. type: =item
3831 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183 ../fuse/guestmount.pod:107 ../inspector/virt-inspector.pod:76 ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80 ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
3832 msgid "B<--connect URI>"
3833 msgstr ""
3834
3835 #. type: textblock
3836 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84 ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134 ../tools/virt-win-reg.pl:135
3837 msgid ""
3838 "If you specify guest block devices directly, then libvirt is not used at "
3839 "all."
3840 msgstr ""
3841
3842 #. type: textblock
3843 #: ../edit/virt-edit.pod:114
3844 msgid ""
3845 "When prompting for keys and passphrases, virt-edit normally turns echoing "
3846 "off so you cannot see what you are typing.  If you are not worried about "
3847 "Tempest attacks and there is no one else in the room you can specify this "
3848 "flag to see what you are typing."
3849 msgstr ""
3850
3851 #. type: =item
3852 #: ../edit/virt-edit.pod:119
3853 msgid "B<-e> EXPR"
3854 msgstr ""
3855
3856 #. type: =item
3857 #: ../edit/virt-edit.pod:121
3858 msgid "B<--expr> EXPR"
3859 msgstr ""
3860
3861 #. type: textblock
3862 #: ../edit/virt-edit.pod:123
3863 msgid ""
3864 "Instead of launching the external editor, non-interactively apply the Perl "
3865 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
3866 "EDITING> below."
3867 msgstr ""
3868
3869 #. type: textblock
3870 #: ../edit/virt-edit.pod:127
3871 msgid ""
3872 "Be careful to properly quote the expression to prevent it from being altered "
3873 "by the shell."
3874 msgstr ""
3875
3876 #. type: textblock
3877 #: ../edit/virt-edit.pod:130
3878 msgid "Note that this option is only available when Perl 5 is installed."
3879 msgstr ""
3880
3881 #. type: =item
3882 #: ../edit/virt-edit.pod:132
3883 msgid "B<--format> raw|qcow2|..."
3884 msgstr ""
3885
3886 #. type: verbatim
3887 #: ../edit/virt-edit.pod:143
3888 #, no-wrap
3889 msgid ""
3890 " virt-edit --format=raw -a disk.img file\n"
3891 "\n"
3892 msgstr ""
3893
3894 #. type: verbatim
3895 #: ../edit/virt-edit.pod:147
3896 #, no-wrap
3897 msgid ""
3898 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
3899 "\n"
3900 msgstr ""
3901
3902 #. type: textblock
3903 #: ../edit/virt-edit.pod:181
3904 msgid "Previous versions of virt-edit allowed you to write either:"
3905 msgstr ""
3906
3907 #. type: verbatim
3908 #: ../edit/virt-edit.pod:187
3909 #, no-wrap
3910 msgid ""
3911 " virt-edit guestname file\n"
3912 "\n"
3913 msgstr ""
3914
3915 #. type: =head1
3916 #: ../edit/virt-edit.pod:195
3917 msgid "NON-INTERACTIVE EDITING"
3918 msgstr ""
3919
3920 #. type: textblock
3921 #: ../edit/virt-edit.pod:197
3922 msgid ""
3923 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
3924 "administrator can interactively edit the file."
3925 msgstr ""
3926
3927 #. type: textblock
3928 #: ../edit/virt-edit.pod:200
3929 msgid ""
3930 "There are two ways also to use C<virt-edit> from scripts in order to make "
3931 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
3932 "like this, it's less error-prone to write scripts directly using the "
3933 "libguestfs API and Augeas for configuration file editing.)"
3934 msgstr ""
3935
3936 #. type: textblock
3937 #: ../edit/virt-edit.pod:206
3938 msgid ""
3939 "The first method is to temporarily set C<$EDITOR> to any script or program "
3940 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
3941 "update C<tmpfile> in place however it likes."
3942 msgstr ""
3943
3944 #. type: textblock
3945 #: ../edit/virt-edit.pod:210
3946 msgid ""
3947 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
3948 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
3949 "instances of C<foo> with C<bar> in a file:"
3950 msgstr ""
3951
3952 #. type: verbatim
3953 #: ../edit/virt-edit.pod:214
3954 #, no-wrap
3955 msgid ""
3956 " virt-edit -d domname filename -e 's/foo/bar/'\n"
3957 "\n"
3958 msgstr ""
3959
3960 #. type: textblock
3961 #: ../edit/virt-edit.pod:216
3962 msgid ""
3963 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
3964 "For example to delete root's password you could do:"
3965 msgstr ""
3966
3967 #. type: verbatim
3968 #: ../edit/virt-edit.pod:219
3969 #, no-wrap
3970 msgid ""
3971 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
3972 "\n"
3973 msgstr ""
3974
3975 #. type: textblock
3976 #: ../edit/virt-edit.pod:221
3977 msgid ""
3978 "What really happens is that the snippet is evaluated as a Perl expression "
3979 "for each line of the file.  The line, including the final C<\\n>, is passed "
3980 "in C<$_> and the expression should update C<$_> or leave it unchanged."
3981 msgstr ""
3982
3983 #. type: textblock
3984 #: ../edit/virt-edit.pod:226
3985 msgid ""
3986 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
3987 "C<apache> user account from the password file you can do:"
3988 msgstr ""
3989
3990 #. type: verbatim
3991 #: ../edit/virt-edit.pod:229
3992 #, no-wrap
3993 msgid ""
3994 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
3995 "\n"
3996 msgstr ""
3997
3998 #. type: textblock
3999 #: ../edit/virt-edit.pod:231
4000 msgid ""
4001 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
4002 "the end of the file is rather difficult this way since there is no concept "
4003 "of \"last line of the file\" - your expression just doesn't get called "
4004 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
4005 "want to do this."
4006 msgstr ""
4007
4008 #. type: textblock
4009 #: ../edit/virt-edit.pod:237
4010 msgid ""
4011 "The variable C<$lineno> contains the current line number.  As is "
4012 "traditional, the first line in the file is number C<1>."
4013 msgstr ""
4014
4015 #. type: textblock
4016 #: ../edit/virt-edit.pod:240
4017 msgid ""
4018 "The return value from the expression is ignored, but the expression may call "
4019 "C<die> in order to abort the whole program, leaving the original file "
4020 "untouched."
4021 msgstr ""
4022
4023 #. type: textblock
4024 #: ../edit/virt-edit.pod:244
4025 msgid ""
4026 "Remember when matching the end of a line that C<$_> may contain the final "
4027 "C<\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
4028 "newline then neither of these.  Thus to match or substitute some text at the "
4029 "end of a line, use this regular expression:"
4030 msgstr ""
4031
4032 #. type: verbatim
4033 #: ../edit/virt-edit.pod:249
4034 #, no-wrap
4035 msgid ""
4036 " /some text(\\r?\\n)?$/\n"
4037 "\n"
4038 msgstr ""
4039
4040 #. type: textblock
4041 #: ../edit/virt-edit.pod:251
4042 msgid ""
4043 "Alternately, use the perl C<chomp> function, being careful not to chomp "
4044 "C<$_> itself (since that would remove all newlines from the file):"
4045 msgstr ""
4046
4047 #. type: verbatim
4048 #: ../edit/virt-edit.pod:255
4049 #, no-wrap
4050 msgid ""
4051 " my $m = $_; chomp $m; $m =~ /some text$/\n"
4052 "\n"
4053 msgstr ""
4054
4055 #. type: textblock
4056 #: ../edit/virt-edit.pod:259
4057 msgid ""
4058 "C<virt-edit> has a limited ability to understand Windows drive letters and "
4059 "paths (eg. C<E:\\foo\\bar.txt>)."
4060 msgstr ""
4061
4062 #. type: textblock
4063 #: ../edit/virt-edit.pod:278
4064 msgid ""
4065 "The path is resolved case insensitively to locate the file that should be "
4066 "edited."
4067 msgstr ""
4068
4069 #. type: textblock
4070 #: ../edit/virt-edit.pod:299
4071 msgid ""
4072 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
4073 "C<virt-edit> doesn't work."
4074 msgstr ""
4075
4076 #. type: textblock
4077 #: ../edit/virt-edit.pod:302
4078 msgid "Using C<virt-edit> is approximately equivalent to doing:"
4079 msgstr ""
4080
4081 #. type: verbatim
4082 #: ../edit/virt-edit.pod:304
4083 #, no-wrap
4084 msgid ""
4085 " guestfish --rw -i -d domname edit /file\n"
4086 "\n"
4087 msgstr ""
4088
4089 #. type: textblock
4090 #: ../edit/virt-edit.pod:306
4091 msgid ""
4092 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
4093 "path to the file."
4094 msgstr ""
4095
4096 #. type: textblock
4097 #: ../edit/virt-edit.pod:309
4098 msgid ""
4099 "The command above uses libguestfs's guest inspection feature and so does not "
4100 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
4101 "disk images that don't contain guests.  To edit a file on a disk image "
4102 "directly, use:"
4103 msgstr ""
4104
4105 #. type: verbatim
4106 #: ../edit/virt-edit.pod:314
4107 #, no-wrap
4108 msgid ""
4109 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
4110 "\n"
4111 msgstr ""
4112
4113 #. type: textblock
4114 #: ../edit/virt-edit.pod:316
4115 msgid ""
4116 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
4117 "the disk image to edit, and C</file> is the full path to the file."
4118 msgstr ""
4119
4120 #. type: textblock
4121 #: ../edit/virt-edit.pod:320
4122 msgid ""
4123 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
4124 "C<write> or C<upload> instead:"
4125 msgstr ""
4126
4127 #. type: verbatim
4128 #: ../edit/virt-edit.pod:323
4129 #, no-wrap
4130 msgid ""
4131 " guestfish --rw -i -d domname touch /newfile\n"
4132 "\n"
4133 msgstr ""
4134
4135 #. type: verbatim
4136 #: ../edit/virt-edit.pod:325
4137 #, no-wrap
4138 msgid ""
4139 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
4140 "\n"
4141 msgstr ""
4142
4143 #. type: verbatim
4144 #: ../edit/virt-edit.pod:327
4145 #, no-wrap
4146 msgid ""
4147 " guestfish --rw -i -d domname upload localfile /newfile\n"
4148 "\n"
4149 msgstr ""
4150
4151 #. type: =head1
4152 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1119 ../rescue/virt-rescue.pod:298 ../sparsify/virt-sparsify.pod:256 ../src/guestfs.pod:3214 ../test-tool/libguestfs-test-tool.pod:95
4153 msgid "ENVIRONMENT VARIABLES"
4154 msgstr ""
4155
4156 #. type: =item
4157 #: ../edit/virt-edit.pod:333
4158 msgid "C<EDITOR>"
4159 msgstr ""
4160
4161 #. type: textblock
4162 #: ../edit/virt-edit.pod:335
4163 msgid ""
4164 "If set, this string is used as the editor.  It may contain arguments, "
4165 "eg. C<\"emacs -nw\">"
4166 msgstr ""
4167
4168 #. type: textblock
4169 #: ../edit/virt-edit.pod:338
4170 msgid "If not set, C<vi> is used."
4171 msgstr ""
4172
4173 #. type: textblock
4174 #: ../edit/virt-edit.pod:356
4175 msgid ""
4176 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, "
4177 "L<virt-tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
4178 "L<Sys::Virt(3)>, L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4179 msgstr ""
4180
4181 #. type: textblock
4182 #: ../erlang/examples/guestfs-erlang.pod:5
4183 msgid "guestfs-erlang - How to use libguestfs from Erlang"
4184 msgstr ""
4185
4186 #. type: verbatim
4187 #: ../erlang/examples/guestfs-erlang.pod:9
4188 #, no-wrap
4189 msgid ""
4190 " {ok, G} = guestfs:create(),\n"
4191 " ok = guestfs:add_drive_opts(G, Disk,\n"
4192 "                             [{format, \"raw\"}, {readonly, true}]),\n"
4193 " ok = guestfs:launch(G),\n"
4194 " [Device] = guestfs:list_devices(G),\n"
4195 " ok = guestfs:close(G).\n"
4196 "\n"
4197 msgstr ""
4198
4199 #. type: textblock
4200 #: ../erlang/examples/guestfs-erlang.pod:18
4201 msgid ""
4202 "This manual page documents how to call libguestfs from the Erlang "
4203 "programming language.  This page just documents the differences from the C "
4204 "API and gives some examples.  If you are not familiar with using libguestfs, "
4205 "you also need to read L<guestfs(3)>."
4206 msgstr ""
4207
4208 #. type: =head2
4209 #: ../erlang/examples/guestfs-erlang.pod:23
4210 msgid "OPENING AND CLOSING THE HANDLE"
4211 msgstr ""
4212
4213 #. type: textblock
4214 #: ../erlang/examples/guestfs-erlang.pod:25
4215 msgid ""
4216 "The Erlang bindings are implemented using an external program called "
4217 "C<erl-guestfs>.  This program must be on the current PATH, or else you "
4218 "should specify the full path to the program:"
4219 msgstr ""
4220
4221 #. type: verbatim
4222 #: ../erlang/examples/guestfs-erlang.pod:29
4223 #, no-wrap
4224 msgid ""
4225 " {ok, G} = guestfs:create().\n"
4226 "\n"
4227 msgstr ""
4228
4229 #. type: verbatim
4230 #: ../erlang/examples/guestfs-erlang.pod:31
4231 #, no-wrap
4232 msgid ""
4233 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
4234 "\n"
4235 msgstr ""
4236
4237 #. type: textblock
4238 #: ../erlang/examples/guestfs-erlang.pod:33
4239 msgid "C<G> is the libguestfs handle which you should pass to other functions."
4240 msgstr ""
4241
4242 #. type: textblock
4243 #: ../erlang/examples/guestfs-erlang.pod:36
4244 msgid "To close the handle:"
4245 msgstr ""
4246
4247 #. type: verbatim
4248 #: ../erlang/examples/guestfs-erlang.pod:38
4249 #, no-wrap
4250 msgid ""
4251 " ok = guestfs:close(G).\n"
4252 "\n"
4253 msgstr ""
4254
4255 #. type: =head2
4256 #: ../erlang/examples/guestfs-erlang.pod:40
4257 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
4258 msgstr ""
4259
4260 #. type: textblock
4261 #: ../erlang/examples/guestfs-erlang.pod:42
4262 msgid ""
4263 "For functions that take optional arguments, the first arguments are the "
4264 "non-optional ones.  The last argument is a list of tuples supplying the "
4265 "remaining optional arguments."
4266 msgstr ""
4267
4268 #. type: verbatim
4269 #: ../erlang/examples/guestfs-erlang.pod:46
4270 #, no-wrap
4271 msgid ""
4272 " ok = guestfs:add_drive_opts(G, Disk,\n"
4273 "                             [{format, \"raw\"}, {readonly, true}]).\n"
4274 "\n"
4275 msgstr ""
4276
4277 #. type: textblock
4278 #: ../erlang/examples/guestfs-erlang.pod:49
4279 msgid "If the last argument would be an empty list, you can also omit it:"
4280 msgstr ""
4281
4282 #. type: verbatim
4283 #: ../erlang/examples/guestfs-erlang.pod:51
4284 #, no-wrap
4285 msgid ""
4286 " ok = guestfs:add_drive_opts(G, Disk).\n"
4287 "\n"
4288 msgstr ""
4289
4290 #. type: =head2
4291 #: ../erlang/examples/guestfs-erlang.pod:53
4292 msgid "RETURN VALUES AND ERRORS"
4293 msgstr ""
4294
4295 #. type: textblock
4296 #: ../erlang/examples/guestfs-erlang.pod:55
4297 msgid ""
4298 "On success, most functions return a C<Result> term (which could be a list, "
4299 "string, tuple etc.).  If there is nothing for the function to return, then "
4300 "the atom C<ok> is returned."
4301 msgstr ""
4302
4303 #. type: textblock
4304 #: ../erlang/examples/guestfs-erlang.pod:59
4305 msgid "On error, you would see one of the following tuples:"
4306 msgstr ""
4307
4308 #. type: =item
4309 #: ../erlang/examples/guestfs-erlang.pod:63
4310 msgid "C<{error, Msg, Errno}>"
4311 msgstr ""
4312
4313 #. type: textblock
4314 #: ../erlang/examples/guestfs-erlang.pod:65
4315 msgid "This indicates an ordinary error from the function."
4316 msgstr ""
4317
4318 #. type: textblock
4319 #: ../erlang/examples/guestfs-erlang.pod:67
4320 msgid ""
4321 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
4322 "(integer)."
4323 msgstr ""
4324
4325 #. type: textblock
4326 #: ../erlang/examples/guestfs-erlang.pod:70
4327 msgid "C<Errno> can be zero.  See L<guestfs(3)/guestfs_last_errno>."
4328 msgstr ""
4329
4330 #. type: =item
4331 #: ../erlang/examples/guestfs-erlang.pod:72
4332 msgid "C<{unknown, Function}>"
4333 msgstr ""
4334
4335 #. type: textblock
4336 #: ../erlang/examples/guestfs-erlang.pod:74
4337 msgid ""
4338 "This indicates that the function you called is not known.  Generally this "
4339 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
4340 "which you should not do."
4341 msgstr ""
4342
4343 #. type: textblock
4344 #: ../erlang/examples/guestfs-erlang.pod:78
4345 msgid "C<Function> is the name of the unknown function."
4346 msgstr ""
4347
4348 #. type: =item
4349 #: ../erlang/examples/guestfs-erlang.pod:80
4350 msgid "C<{unknownarg, Arg}>"
4351 msgstr ""
4352
4353 #. type: textblock
4354 #: ../erlang/examples/guestfs-erlang.pod:82
4355 msgid ""
4356 "This indicates that you called a function with optional arguments, with an "
4357 "unknown argument name."
4358 msgstr ""
4359
4360 #. type: textblock
4361 #: ../erlang/examples/guestfs-erlang.pod:85
4362 msgid "C<Arg> is the name of the unknown argument."
4363 msgstr ""
4364
4365 #. type: =head1
4366 #: ../erlang/examples/guestfs-erlang.pod:89 ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37 ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31 ../python/examples/guestfs-python.pod:34 ../ruby/examples/guestfs-ruby.pod:28
4367 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
4368 msgstr ""
4369
4370 #. type: textblock
4371 #: ../erlang/examples/guestfs-erlang.pod:91 ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39 ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33 ../python/examples/guestfs-python.pod:36 ../ruby/examples/guestfs-ruby.pod:30
4372 msgid "@EXAMPLE1@"
4373 msgstr ""
4374
4375 #. type: =head1
4376 #: ../erlang/examples/guestfs-erlang.pod:93 ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41 ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35 ../python/examples/guestfs-python.pod:38 ../ruby/examples/guestfs-ruby.pod:32
4377 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
4378 msgstr ""
4379
4380 #. type: textblock
4381 #: ../erlang/examples/guestfs-erlang.pod:95 ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43 ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37 ../python/examples/guestfs-python.pod:40 ../ruby/examples/guestfs-ruby.pod:34
4382 msgid "@EXAMPLE2@"
4383 msgstr ""
4384
4385 #. type: textblock
4386 #: ../erlang/examples/guestfs-erlang.pod:99
4387 msgid ""
4388 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, "
4389 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
4390 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://www.erlang.org/>.  "
4391 "L<http://libguestfs.org/>."
4392 msgstr ""
4393
4394 #. type: =head1
4395 #: ../erlang/examples/guestfs-erlang.pod:110 ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397 ../examples/guestfs-testing.pod:298 ../fish/guestfish.pod:1296 ../fish/virt-copy-in.pod:60 ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58 ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:328 ../inspector/virt-inspector.pod:404 ../java/examples/guestfs-java.pod:58 ../ocaml/examples/guestfs-ocaml.pod:91 ../perl/examples/guestfs-perl.pod:52 ../python/examples/guestfs-python.pod:54 ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3354 ../test-tool/libguestfs-test-tool.pod:106
4396 msgid "AUTHORS"
4397 msgstr ""
4398
4399 #. type: textblock
4400 #: ../erlang/examples/guestfs-erlang.pod:112 ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399 ../examples/guestfs-testing.pod:300 ../fish/guestfish.pod:1298 ../fish/virt-copy-in.pod:62 ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60 ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:330 ../java/examples/guestfs-java.pod:60 ../ocaml/examples/guestfs-ocaml.pod:93 ../perl/examples/guestfs-perl.pod:54 ../python/examples/guestfs-python.pod:56 ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:3356 ../test-tool/libguestfs-test-tool.pod:108
4401 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4402 msgstr ""
4403
4404 #. type: textblock
4405 #: ../erlang/examples/guestfs-erlang.pod:116 ../examples/guestfs-testing.pod:304 ../java/examples/guestfs-java.pod:64 ../perl/examples/guestfs-perl.pod:58
4406 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
4407 msgstr ""
4408
4409 #. type: textblock
4410 #: ../erlang/examples/guestfs-erlang.pod:118 ../examples/guestfs-examples.pod:53 ../examples/guestfs-recipes.pod:405 ../java/examples/guestfs-java.pod:66 ../ocaml/examples/guestfs-ocaml.pod:99 ../perl/examples/guestfs-perl.pod:60 ../python/examples/guestfs-python.pod:62 ../ruby/examples/guestfs-ruby.pod:56
4411 msgid ""
4412 "The examples in this manual page may be freely copied, modified and "
4413 "distributed without any restrictions."
4414 msgstr ""
4415
4416 #. type: textblock
4417 #: ../erlang/examples/guestfs-erlang.pod:121 ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408 ../examples/guestfs-testing.pod:306 ../java/examples/guestfs-java.pod:69 ../ocaml/examples/guestfs-ocaml.pod:102 ../perl/examples/guestfs-perl.pod:63 ../python/examples/guestfs-python.pod:65 ../ruby/examples/guestfs-ruby.pod:59 ../src/guestfs.pod:3363
4418 msgid ""
4419 "This library is free software; you can redistribute it and/or modify it "
4420 "under the terms of the GNU Lesser General Public License as published by the "
4421 "Free Software Foundation; either version 2 of the License, or (at your "
4422 "option) any later version."
4423 msgstr ""
4424
4425 #. type: textblock
4426 #: ../erlang/examples/guestfs-erlang.pod:126 ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413 ../examples/guestfs-testing.pod:311 ../java/examples/guestfs-java.pod:74 ../ocaml/examples/guestfs-ocaml.pod:107 ../perl/examples/guestfs-perl.pod:68 ../python/examples/guestfs-python.pod:70 ../ruby/examples/guestfs-ruby.pod:64 ../src/guestfs.pod:3368
4427 msgid ""
4428 "This library is distributed in the hope that it will be useful, but WITHOUT "
4429 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4430 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
4431 "for more details."
4432 msgstr ""
4433
4434 #. type: textblock
4435 #: ../erlang/examples/guestfs-erlang.pod:131 ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418 ../examples/guestfs-testing.pod:316 ../java/examples/guestfs-java.pod:79 ../ocaml/examples/guestfs-ocaml.pod:112 ../perl/examples/guestfs-perl.pod:73 ../python/examples/guestfs-python.pod:75 ../ruby/examples/guestfs-ruby.pod:69 ../src/guestfs.pod:3373
4436 msgid ""
4437 "You should have received a copy of the GNU Lesser General Public License "
4438 "along with this library; if not, write to the Free Software Foundation, "
4439 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4440 msgstr ""
4441
4442 #. type: textblock
4443 #: ../examples/guestfs-examples.pod:5
4444 msgid "guestfs-examples - Examples of using libguestfs from C"
4445 msgstr ""
4446
4447 #. type: verbatim
4448 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
4449 #, no-wrap
4450 msgid ""
4451 " #include <guestfs.h>\n"
4452 " \n"
4453 msgstr ""
4454
4455 #. type: verbatim
4456 #: ../examples/guestfs-examples.pod:11
4457 #, no-wrap
4458 msgid ""
4459 " guestfs_h *g = guestfs_create ();\n"
4460 " guestfs_add_drive_ro (g, \"disk.img\");\n"
4461 " guestfs_launch (g);\n"
4462 "\n"
4463 msgstr ""
4464
4465 #. type: verbatim
4466 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
4467 #, no-wrap
4468 msgid ""
4469 " cc prog.c -o prog -lguestfs\n"
4470 "or:\n"
4471 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4472 "\n"
4473 msgstr ""
4474
4475 #. type: textblock
4476 #: ../examples/guestfs-examples.pod:21
4477 msgid ""
4478 "This manual page contains examples of calling libguestfs from the C "
4479 "programming language.  If you are not familiar with using libguestfs, you "
4480 "also need to read L<guestfs(3)>."
4481 msgstr ""
4482
4483 #. type: textblock
4484 #: ../examples/guestfs-examples.pod:35
4485 msgid ""
4486 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, "
4487 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
4488 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
4489 msgstr ""
4490
4491 #. type: textblock
4492 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97 ../python/examples/guestfs-python.pod:60 ../ruby/examples/guestfs-ruby.pod:54
4493 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
4494 msgstr ""
4495
4496 #. type: =end
4497 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
4498 msgid "comment"
4499 msgstr ""
4500
4501 #. type: textblock
4502 #: ../examples/guestfs-recipes.pod:5
4503 msgid ""
4504 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
4505 "here.  The only way which works for both sorts of output is to just write "
4506 "the URL directly.  Do NOT use L<...> for URLs."
4507 msgstr ""
4508
4509 #. type: textblock
4510 #: ../examples/guestfs-recipes.pod:9
4511 msgid ""
4512 "We break with tradition here and don't use ALL CAPS for the section "
4513 "headings, as this makes them much easier to read."
4514 msgstr ""
4515
4516 #. type: textblock
4517 #: ../examples/guestfs-recipes.pod:16
4518 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
4519 msgstr ""
4520
4521 #. type: textblock
4522 #: ../examples/guestfs-recipes.pod:20
4523 msgid ""
4524 "This page contains recipes for and links to things you can do using "
4525 "libguestfs, L<guestfish(1)> and the virt tools."
4526 msgstr ""
4527
4528 #. type: =head1
4529 #: ../examples/guestfs-recipes.pod:23
4530 msgid "Audit a virtual machine for setuid files"
4531 msgstr ""
4532
4533 #. type: textblock
4534 #: ../examples/guestfs-recipes.pod:25
4535 msgid ""
4536 "The link below contains a small program which can be used to audit a Linux "
4537 "virtual machine to see what setuid and setgid files it contains."
4538 msgstr ""
4539
4540 #. type: textblock
4541 #: ../examples/guestfs-recipes.pod:28
4542 msgid "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-files/#content"
4543 msgstr ""
4544
4545 #. type: =head1
4546 #: ../examples/guestfs-recipes.pod:30
4547 msgid "Change the background image in a Windows XP VM"
4548 msgstr ""
4549
4550 #. type: textblock
4551 #: ../examples/guestfs-recipes.pod:32
4552 msgid ""
4553 "The links below explain how to use L<guestfish(1)> to change the background "
4554 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
4555 "be substantially different for each version of Windows."
4556 msgstr ""
4557
4558 #. type: textblock
4559 #: ../examples/guestfs-recipes.pod:37
4560 msgid ""
4561 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html "
4562 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
4563 msgstr ""
4564
4565 #. type: =head1
4566 #: ../examples/guestfs-recipes.pod:40
4567 msgid "Cloning a virtual machine (Linux)"
4568 msgstr ""
4569
4570 #. type: textblock
4571 #: ../examples/guestfs-recipes.pod:42
4572 msgid ""
4573 "The guestfish technique described in the link below works well for most "
4574 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
4575 "slightly."
4576 msgstr ""
4577
4578 #. type: textblock
4579 #: ../examples/guestfs-recipes.pod:46
4580 msgid "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-vm/#content"
4581 msgstr ""
4582
4583 #. type: textblock
4584 #: ../examples/guestfs-recipes.pod:48
4585 msgid ""
4586 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
4587 "discussion."
4588 msgstr ""
4589
4590 #. type: textblock
4591 #: ../examples/guestfs-recipes.pod:51
4592 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
4593 msgstr ""
4594
4595 #. type: =head1
4596 #: ../examples/guestfs-recipes.pod:53
4597 msgid "Cloning a virtual machine (Windows)"
4598 msgstr ""
4599
4600 #. type: textblock
4601 #: ../examples/guestfs-recipes.pod:55
4602 msgid ""
4603 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
4604 "straightforward.  Currently there is code in the Aeolus Oz project which "
4605 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
4606 "we may add sysprepping ability."
4607 msgstr ""
4608
4609 #. type: textblock
4610 #: ../examples/guestfs-recipes.pod:60
4611 msgid ""
4612 "https://github.com/clalancette/oz "
4613 "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
4614 msgstr ""
4615
4616 #. type: =head1
4617 #: ../examples/guestfs-recipes.pod:63
4618 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
4619 msgstr ""
4620
4621 #. type: textblock
4622 #: ../examples/guestfs-recipes.pod:65
4623 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
4624 msgstr ""
4625
4626 #. type: verbatim
4627 #: ../examples/guestfs-recipes.pod:67
4628 #, no-wrap
4629 msgid ""
4630 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
4631 "\n"
4632 msgstr ""
4633
4634 #. type: textblock
4635 #: ../examples/guestfs-recipes.pod:69
4636 msgid "To export just a subdirectory, eg. C</files>, do:"
4637 msgstr ""
4638
4639 #. type: verbatim
4640 #: ../examples/guestfs-recipes.pod:71
4641 #, no-wrap
4642 msgid ""
4643 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
4644 "\n"
4645 msgstr ""
4646
4647 #. type: =head1
4648 #: ../examples/guestfs-recipes.pod:73
4649 msgid "Create empty disk images"
4650 msgstr ""
4651
4652 #. type: textblock
4653 #: ../examples/guestfs-recipes.pod:75
4654 msgid ""
4655 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
4656 "The useful guide below explains the options available."
4657 msgstr ""
4658
4659 #. type: textblock
4660 #: ../examples/guestfs-recipes.pod:78
4661 msgid "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/#content"
4662 msgstr ""
4663
4664 #. type: =head1
4665 #: ../examples/guestfs-recipes.pod:80
4666 msgid "Dump raw filesystem content from inside a disk image or VM"
4667 msgstr ""
4668
4669 #. type: textblock
4670 #: ../examples/guestfs-recipes.pod:82
4671 msgid ""
4672 "You can use the L<guestfish(1)> C<download> command to extract the raw "
4673 "filesystem content from any filesystem in a disk image or a VM (even one "
4674 "which is encrypted or buried inside an LV):"
4675 msgstr ""
4676
4677 #. type: verbatim
4678 #: ../examples/guestfs-recipes.pod:86
4679 #, no-wrap
4680 msgid ""
4681 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
4682 "\n"
4683 msgstr ""
4684
4685 #. type: verbatim
4686 #: ../examples/guestfs-recipes.pod:88
4687 #, no-wrap
4688 msgid ""
4689 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
4690 "\n"
4691 msgstr ""
4692
4693 #. type: textblock
4694 #: ../examples/guestfs-recipes.pod:90
4695 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
4696 msgstr ""
4697
4698 #. type: =head1
4699 #: ../examples/guestfs-recipes.pod:92
4700 msgid "Edit grub configuration in a VM"
4701 msgstr ""
4702
4703 #. type: textblock
4704 #: ../examples/guestfs-recipes.pod:94
4705 msgid "You can use this to:"
4706 msgstr ""
4707
4708 #. type: textblock
4709 #: ../examples/guestfs-recipes.pod:100
4710 msgid "Fix a virtual machine that does not boot."
4711 msgstr ""
4712
4713 #. type: textblock
4714 #: ../examples/guestfs-recipes.pod:104
4715 msgid "Change which kernel is used to boot the VM."
4716 msgstr ""
4717
4718 #. type: textblock
4719 #: ../examples/guestfs-recipes.pod:108
4720 msgid "Change kernel command line options."
4721 msgstr ""
4722
4723 #. type: textblock
4724 #: ../examples/guestfs-recipes.pod:112
4725 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
4726 msgstr ""
4727
4728 #. type: verbatim
4729 #: ../examples/guestfs-recipes.pod:114
4730 #, no-wrap
4731 msgid ""
4732 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
4733 "\n"
4734 msgstr ""
4735
4736 #. type: textblock
4737 #: ../examples/guestfs-recipes.pod:116
4738 msgid ""
4739 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
4740 "this:"
4741 msgstr ""
4742
4743 #. type: verbatim
4744 #: ../examples/guestfs-recipes.pod:119
4745 #, no-wrap
4746 msgid ""
4747 " virt-rescue -d BrokenGuest\n"
4748 "\n"
4749 msgstr ""
4750
4751 #. type: =head1
4752 #: ../examples/guestfs-recipes.pod:121
4753 msgid "Export any directory from a VM"
4754 msgstr ""
4755
4756 #. type: textblock
4757 #: ../examples/guestfs-recipes.pod:123
4758 msgid "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
4759 msgstr ""
4760
4761 #. type: verbatim
4762 #: ../examples/guestfs-recipes.pod:126 ../examples/guestfs-testing.pod:93
4763 #, no-wrap
4764 msgid ""
4765 " virt-copy-out -d Guest /home .\n"
4766 "\n"
4767 msgstr ""
4768
4769 #. type: textblock
4770 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9 ../fish/guestfish-actions.pod:1450 ../fish/guestfish-actions.pod:1715 ../fish/guestfish-actions.pod:2132 ../src/guestfs-actions.pod:18 ../src/guestfs-actions.pod:2334 ../src/guestfs-actions.pod:2758 ../src/guestfs-actions.pod:3317 ../src/guestfs.pod:1685 ../tools/virt-win-reg.pl:717
4771 msgid "Notes:"
4772 msgstr ""
4773
4774 #. type: textblock
4775 #: ../examples/guestfs-recipes.pod:134
4776 msgid ""
4777 "The final dot of the command is not a printing error.  It means we want to "
4778 "copy out to the current directory."
4779 msgstr ""
4780
4781 #. type: textblock
4782 #: ../examples/guestfs-recipes.pod:139
4783 msgid "This creates a directory called C<home> under the current directory."
4784 msgstr ""
4785
4786 #. type: textblock
4787 #: ../examples/guestfs-recipes.pod:143
4788 msgid ""
4789 "If the guest is a Windows guest then you can use drive letters and "
4790 "backslashes, but you must prefix the path with C<win:> and quote it to "
4791 "protect it from the shell, like this:"
4792 msgstr ""
4793
4794 #. type: verbatim
4795 #: ../examples/guestfs-recipes.pod:147
4796 #, no-wrap
4797 msgid ""
4798 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
4799 "\n"
4800 msgstr ""
4801
4802 #. type: textblock
4803 #: ../examples/guestfs-recipes.pod:149
4804 msgid "To get the output as a compressed tarball, do:"
4805 msgstr ""
4806
4807 #. type: verbatim
4808 #: ../examples/guestfs-recipes.pod:151
4809 #, no-wrap
4810 msgid ""
4811 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
4812 "\n"
4813 msgstr ""
4814
4815 #. type: textblock
4816 #: ../examples/guestfs-recipes.pod:153
4817 msgid ""
4818 "Although it sounds tempting, this is usually not a reliable way to get a "
4819 "backup from a running guest.  See the entry in the FAQ: "
4820 "http://libguestfs.org/FAQ.html#backup"
4821 msgstr ""
4822
4823 #. type: =head1
4824 #: ../examples/guestfs-recipes.pod:157
4825 msgid "Find out which user is using the most space"
4826 msgstr ""
4827
4828 #. type: textblock
4829 #: ../examples/guestfs-recipes.pod:159
4830 msgid ""
4831 "This simple script examines a Linux guest to find out which user is using "
4832 "the most space in their home directory:"
4833 msgstr ""
4834
4835 #. type: verbatim
4836 #: ../examples/guestfs-recipes.pod:162
4837 #, no-wrap
4838 msgid ""
4839 " #!/bin/sh -\n"
4840 " \n"
4841 msgstr ""
4842
4843 #. type: verbatim
4844 #: ../examples/guestfs-recipes.pod:164 ../fish/guestfish.pod:984
4845 #, no-wrap
4846 msgid ""
4847 " set -e\n"
4848 " \n"
4849 msgstr ""
4850
4851 #. type: verbatim
4852 #: ../examples/guestfs-recipes.pod:166
4853 #, no-wrap
4854 msgid ""
4855 " vm=\"$1\"\n"
4856 " dir=/home\n"
4857 " \n"
4858 msgstr ""
4859
4860 #. type: verbatim
4861 #: ../examples/guestfs-recipes.pod:169
4862 #, no-wrap
4863 msgid ""
4864 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
4865 " \n"
4866 msgstr ""
4867
4868 #. type: verbatim
4869 #: ../examples/guestfs-recipes.pod:171
4870 #, no-wrap
4871 msgid ""
4872 " for d in $(guestfish --remote ls \"$dir\"); do\n"
4873 "     echo -n \"$dir/$d\"\n"
4874 "     echo -ne '\\t'\n"
4875 "     guestfish --remote du \"$dir/$d\";\n"
4876 " done | sort -nr -k 2\n"
4877 " \n"
4878 msgstr ""
4879
4880 #. type: verbatim
4881 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
4882 #, no-wrap
4883 msgid ""
4884 " guestfish --remote exit\n"
4885 "\n"
4886 msgstr ""
4887
4888 #. type: =head1
4889 #: ../examples/guestfs-recipes.pod:179
4890 msgid "Get DHCP address from a VM"
4891 msgstr ""
4892
4893 #. type: textblock
4894 #: ../examples/guestfs-recipes.pod:181
4895 msgid ""
4896 "The link below explains the many different possible techniques for getting "
4897 "the last assigned DHCP address of a virtual machine."
4898 msgstr ""
4899
4900 #. type: textblock
4901 #: ../examples/guestfs-recipes.pod:184
4902 msgid "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-a-virtual-machine-disk-image/#content"
4903 msgstr ""
4904
4905 #. type: textblock
4906 #: ../examples/guestfs-recipes.pod:186
4907 msgid ""
4908 "In the libguestfs source examples directory you will find the latest version "
4909 "of the C<virt-dhcp-address.c> program."
4910 msgstr ""
4911
4912 #. type: =head1
4913 #: ../examples/guestfs-recipes.pod:189
4914 msgid "Get the operating system product name string"
4915 msgstr ""
4916
4917 #. type: textblock
4918 #: ../examples/guestfs-recipes.pod:191
4919 msgid "Save the following script into a file called C<product-name.sh>:"
4920 msgstr ""
4921
4922 #. type: verbatim
4923 #: ../examples/guestfs-recipes.pod:193
4924 #, no-wrap
4925 msgid ""
4926 " #!/bin/sh -\n"
4927 " set -e\n"
4928 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
4929 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
4930 " guestfish --remote inspect-get-product-name \"$root\"\n"
4931 " guestfish --remote exit\n"
4932 "\n"
4933 msgstr ""
4934
4935 #. type: textblock
4936 #: ../examples/guestfs-recipes.pod:200
4937 msgid "Make the script executable and run it on a named guest:"
4938 msgstr ""
4939
4940 #. type: verbatim
4941 #: ../examples/guestfs-recipes.pod:202
4942 #, no-wrap
4943 msgid ""
4944 " # product-name.sh RHEL60x64\n"
4945 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
4946 "\n"
4947 msgstr ""
4948
4949 #. type: textblock
4950 #: ../examples/guestfs-recipes.pod:205
4951 msgid ""
4952 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
4953 "C<xpath> command line tool or from your favourite programming language:"
4954 msgstr ""
4955
4956 #. type: verbatim
4957 #: ../examples/guestfs-recipes.pod:209
4958 #, no-wrap
4959 msgid ""
4960 " # virt-inspector RHEL60x64 > xml\n"
4961 " # xpath '//product_name' < xml\n"
4962 " Found 1 nodes:\n"
4963 " -- NODE --\n"
4964 " <product_name>Red Hat Enterprise Linux Server release 6.0 "
4965 "(Santiago)</product_name>\n"
4966 "\n"
4967 msgstr ""
4968
4969 #. type: =head1
4970 #: ../examples/guestfs-recipes.pod:215
4971 msgid "Get the default boot kernel for a Linux VM"
4972 msgstr ""
4973
4974 #. type: textblock
4975 #: ../examples/guestfs-recipes.pod:217
4976 msgid ""
4977 "The link below contains a program to print the default boot kernel for a "
4978 "Linux VM."
4979 msgstr ""
4980
4981 #. type: textblock
4982 #: ../examples/guestfs-recipes.pod:220
4983 msgid "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-kernel-for-a-vm/#content"
4984 msgstr ""
4985
4986 #. type: textblock
4987 #: ../examples/guestfs-recipes.pod:222
4988 msgid ""
4989 "It uses Augeas, and the technique is generally applicable for many different "
4990 "tasks, such as:"
4991 msgstr ""
4992
4993 #. type: textblock
4994 #: ../examples/guestfs-recipes.pod:229
4995 msgid "listing the user accounts in the guest"
4996 msgstr ""
4997
4998 #. type: textblock
4999 #: ../examples/guestfs-recipes.pod:233
5000 msgid "what repositories is it configured to use"
5001 msgstr ""
5002
5003 #. type: textblock
5004 #: ../examples/guestfs-recipes.pod:237
5005 msgid "what NTP servers does it connect to"
5006 msgstr ""
5007
5008 #. type: textblock
5009 #: ../examples/guestfs-recipes.pod:241
5010 msgid "what were the boot messages last time it booted"
5011 msgstr ""
5012
5013 #. type: textblock
5014 #: ../examples/guestfs-recipes.pod:245
5015 msgid "listing who was logged in recently"
5016 msgstr ""
5017
5018 #. type: textblock
5019 #: ../examples/guestfs-recipes.pod:249
5020 msgid "http://augeas.net/"
5021 msgstr ""
5022
5023 #. type: =head1
5024 #: ../examples/guestfs-recipes.pod:251
5025 msgid "Install RPMs in a guest"
5026 msgstr ""
5027
5028 #. type: textblock
5029 #: ../examples/guestfs-recipes.pod:253
5030 msgid ""
5031 "The link below contains a method to install RPMs in a guest.  In fact the "
5032 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
5033 "installs them next time the guest is booted.  You could use this technique "
5034 "to install vital security updates in an offline guest."
5035 msgstr ""
5036
5037 #. type: textblock
5038 #: ../examples/guestfs-recipes.pod:259
5039 msgid "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
5040 msgstr ""
5041
5042 #. type: =head1
5043 #: ../examples/guestfs-recipes.pod:261
5044 msgid "List applications installed in a VM"
5045 msgstr ""
5046
5047 #. type: textblock
5048 #: ../examples/guestfs-recipes.pod:263
5049 msgid "Save the following to a file C<list-apps.sh>:"
5050 msgstr ""
5051
5052 #. type: verbatim
5053 #: ../examples/guestfs-recipes.pod:265
5054 #, no-wrap
5055 msgid ""
5056 " #!/bin/sh -\n"
5057 " set -e\n"
5058 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5059 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5060 " guestfish --remote inspect-list-applications \"$root\"\n"
5061 " guestfish --remote exit\n"
5062 "\n"
5063 msgstr ""
5064
5065 #. type: textblock
5066 #: ../examples/guestfs-recipes.pod:272
5067 msgid ""
5068 "Make the file executable and then you can run it on any named virtual "
5069 "machine:"
5070 msgstr ""
5071
5072 #. type: verbatim
5073 #: ../examples/guestfs-recipes.pod:275
5074 #, no-wrap
5075 msgid ""
5076 " # list-apps.sh WinGuest\n"
5077 " [0] = {\n"
5078 "   app_name: Mozilla Firefox (3.6.12)\n"
5079 "   app_display_name: Mozilla Firefox (3.6.12)\n"
5080 "   app_epoch: 0\n"
5081 "   app_version: 3.6.12 (en-GB)\n"
5082 "   app_release:\n"
5083 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
5084 "   app_trans_path:\n"
5085 "   app_publisher: Mozilla\n"
5086 "   app_url: http://www.mozilla.com/en-GB/\n"
5087 "   app_source_package:\n"
5088 "   app_summary:\n"
5089 "   app_description: Mozilla Firefox\n"
5090 " }\n"
5091 " [1] = {\n"
5092 "   app_name: VLC media player\n"
5093 "   app_display_name: VLC media player 1.1.5\n"
5094 "   app_epoch: 0\n"
5095 "   app_version: 1.1.5\n"
5096 "   app_release:\n"
5097 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
5098 "   app_trans_path:\n"
5099 "   app_publisher: VideoLAN\n"
5100 "   app_url: http://www.videolan.org/\n"
5101 "   app_source_package:\n"
5102 "   app_summary:\n"
5103 "   app_description:\n"
5104 " }\n"
5105 "\n"
5106 msgstr ""
5107
5108 #. type: textblock
5109 #: ../examples/guestfs-recipes.pod:305
5110 msgid ""
5111 "If you want to run the script on disk images (instead of libvirt virtual "
5112 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also "
5113 "L<virt-inspector(1)>."
5114 msgstr ""
5115
5116 #. type: =head1
5117 #: ../examples/guestfs-recipes.pod:309
5118 msgid "List files and directories in a VM"
5119 msgstr ""
5120
5121 #. type: textblock
5122 #: ../examples/guestfs-recipes.pod:311
5123 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
5124 msgstr ""
5125
5126 #. type: verbatim
5127 #: ../examples/guestfs-recipes.pod:313
5128 #, no-wrap
5129 msgid ""
5130 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
5131 "\n"
5132 msgstr ""
5133
5134 #. type: =head1
5135 #: ../examples/guestfs-recipes.pod:315
5136 msgid "List services in a Windows VM"
5137 msgstr ""
5138
5139 #. type: textblock
5140 #: ../examples/guestfs-recipes.pod:317
5141 msgid ""
5142 "The link below contains a script that can be used to list out the services "
5143 "from a Windows VM, and whether those services run at boot time or are loaded "
5144 "on demand."
5145 msgstr ""
5146
5147 #. type: textblock
5148 #: ../examples/guestfs-recipes.pod:321
5149 msgid "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/#content"
5150 msgstr ""
5151
5152 #. type: =head1
5153 #: ../examples/guestfs-recipes.pod:323
5154 msgid "Make a disk image sparse"
5155 msgstr ""
5156
5157 #. type: textblock
5158 #: ../examples/guestfs-recipes.pod:325
5159 msgid ""
5160 "The link below contains some guides for making a disk image sparse (or "
5161 "reintroducing sparseness)."
5162 msgstr ""
5163
5164 #. type: textblock
5165 #: ../examples/guestfs-recipes.pod:328
5166 msgid "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
5167 msgstr ""
5168
5169 #. type: =head1
5170 #: ../examples/guestfs-recipes.pod:330
5171 msgid "Monitor disk usage over time"
5172 msgstr ""
5173
5174 #. type: textblock
5175 #: ../examples/guestfs-recipes.pod:332
5176 msgid ""
5177 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
5178 "The link below contains a guide."
5179 msgstr ""
5180
5181 #. type: textblock
5182 #: ../examples/guestfs-recipes.pod:335
5183 msgid "http://virt-tools.org/learning/advanced-virt-df/"
5184 msgstr ""
5185
5186 #. type: =head1
5187 #: ../examples/guestfs-recipes.pod:337
5188 msgid "Reading the Windows Event Log from Windows Vista (or later)"
5189 msgstr ""
5190
5191 #. type: textblock
5192 #: ../examples/guestfs-recipes.pod:339
5193 msgid ""
5194 "L<guestfish(1)> plus the tools described in the link below can be used to "
5195 "read out the Windows Event Log from any virtual machine running Windows "
5196 "Vista or a later version."
5197 msgstr ""
5198
5199 #. type: textblock
5200 #: ../examples/guestfs-recipes.pod:343
5201 msgid "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-guestfish/#content"
5202 msgstr ""
5203
5204 #. type: =head1
5205 #: ../examples/guestfs-recipes.pod:345
5206 msgid "Remove root password (Linux)"
5207 msgstr ""
5208
5209 #. type: textblock
5210 #: ../examples/guestfs-recipes.pod:347
5211 msgid ""
5212 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
5213 "files.  One use is to remove the root password from a Linux guest:"
5214 msgstr ""
5215
5216 #. type: verbatim
5217 #: ../examples/guestfs-recipes.pod:350
5218 #, no-wrap
5219 msgid ""
5220 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
5221 "\n"
5222 msgstr ""
5223
5224 #. type: =head1
5225 #: ../examples/guestfs-recipes.pod:352
5226 msgid "Remove Administrator password (Windows)"
5227 msgstr ""
5228
5229 #. type: textblock
5230 #: ../examples/guestfs-recipes.pod:354
5231 msgid ""
5232 "The link below contains one technique for removing the Administrator "
5233 "password from a Windows VM, or to be more precise, it gives you a command "
5234 "prompt the next time you log in which you can use to bypass any security:"
5235 msgstr ""
5236
5237 #. type: textblock
5238 #: ../examples/guestfs-recipes.pod:359
5239 msgid "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-administrator-password-with-guestfish/"
5240 msgstr ""
5241
5242 #. type: =head1
5243 #: ../examples/guestfs-recipes.pod:361
5244 msgid "Unpack a live CD"
5245 msgstr ""
5246
5247 #. type: textblock
5248 #: ../examples/guestfs-recipes.pod:363
5249 msgid ""
5250 "Linux live CDs often contain multiple layers of disk images wrapped like a "
5251 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
5252 "layers, as outlined in the guide below."
5253 msgstr ""
5254
5255 #. type: textblock
5256 #: ../examples/guestfs-recipes.pod:367
5257 msgid "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-cd/#content"
5258 msgstr ""
5259
5260 #. type: =head1
5261 #: ../examples/guestfs-recipes.pod:369
5262 msgid "Uploading and downloading files"
5263 msgstr ""
5264
5265 #. type: textblock
5266 #: ../examples/guestfs-recipes.pod:371
5267 msgid ""
5268 "The link below contains general tips on uploading (copying in)  and "
5269 "downloading (copying out) files from VMs."
5270 msgstr ""
5271
5272 #. type: textblock
5273 #: ../examples/guestfs-recipes.pod:374
5274 msgid "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
5275 msgstr ""
5276
5277 #. type: =head1
5278 #: ../examples/guestfs-recipes.pod:376
5279 msgid "Use libguestfs tools on VMware ESX guests"
5280 msgstr ""
5281
5282 #. type: textblock
5283 #: ../examples/guestfs-recipes.pod:378
5284 msgid ""
5285 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
5286 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
5287 msgstr ""
5288
5289 #. type: textblock
5290 #: ../examples/guestfs-recipes.pod:382
5291 msgid "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-guests/#content"
5292 msgstr ""
5293
5294 #. type: textblock
5295 #: ../examples/guestfs-recipes.pod:386
5296 msgid ""
5297 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, "
5298 "L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, "
5299 "L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
5300 "L<http://libguestfs.org/>."
5301 msgstr ""
5302
5303 #. type: textblock
5304 #: ../examples/guestfs-recipes.pod:403
5305 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
5306 msgstr ""
5307
5308 #. type: textblock
5309 #: ../examples/guestfs-testing.pod:5
5310 msgid "guestfs-testing - manual testing of libguestfs, you can help!"
5311 msgstr ""
5312
5313 #. type: textblock
5314 #: ../examples/guestfs-testing.pod:9
5315 msgid ""
5316 "This page has manual tests you can try on libguestfs.  Everyone has a "
5317 "slightly different combination of platform, hardware and guests, so this "
5318 "testing is very valuable.  Thanks for helping out!"
5319 msgstr ""
5320
5321 #. type: textblock
5322 #: ../examples/guestfs-testing.pod:13
5323 msgid "These tests require libguestfs E<ge> 1.14."
5324 msgstr ""
5325
5326 #. type: textblock
5327 #: ../examples/guestfs-testing.pod:15
5328 msgid ""
5329 "Tests marked with a B<*> (asterisk) can B<destroy data> if you're not "
5330 "careful.  The others are safe and won't modify anything."
5331 msgstr ""
5332
5333 #. type: textblock
5334 #: ../examples/guestfs-testing.pod:18
5335 msgid "You can report bugs you find through this link:"
5336 msgstr ""
5337
5338 #. type: textblock
5339 #: ../examples/guestfs-testing.pod:20
5340 msgid "https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools"
5341 msgstr ""
5342
5343 #. type: textblock
5344 #: ../examples/guestfs-testing.pod:22
5345 msgid ""
5346 "or post on the mailing list (registration is B<not> required, but if you're "
5347 "not registered then you'll have to wait for a moderator to manually approve "
5348 "your message):"
5349 msgstr ""
5350
5351 #. type: textblock
5352 #: ../examples/guestfs-testing.pod:26
5353 msgid "https://www.redhat.com/mailman/listinfo/libguestfs"
5354 msgstr ""
5355
5356 #. type: =head1
5357 #: ../examples/guestfs-testing.pod:28
5358 msgid "TESTS"
5359 msgstr ""
5360
5361 #. type: =head2
5362 #: ../examples/guestfs-testing.pod:30
5363 msgid "Check KVM acceleration is being used."
5364 msgstr ""
5365
5366 #. type: textblock
5367 #: ../examples/guestfs-testing.pod:32
5368 msgid ""
5369 "If your host has hardware virt acceleration, then with a hot cache "
5370 "libguestfs should be able to start up in a few seconds.  Run the following "
5371 "command a few times:"
5372 msgstr ""
5373
5374 #. type: verbatim
5375 #: ../examples/guestfs-testing.pod:36
5376 #, no-wrap
5377 msgid ""
5378 " time guestfish -a /dev/null run\n"
5379 "\n"
5380 msgstr ""
5381
5382 #. type: textblock
5383 #: ../examples/guestfs-testing.pod:38
5384 msgid ""
5385 "After a few runs, the time should settle down to a few seconds (under 5 "
5386 "seconds on fast 64 bit hardware)."
5387 msgstr ""
5388
5389 #. type: textblock
5390 #: ../examples/guestfs-testing.pod:41
5391 msgid "How to check for hardware virt:"
5392 msgstr ""
5393
5394 #. type: textblock
5395 #: ../examples/guestfs-testing.pod:43
5396 msgid "http://virt-tools.org/learning/check-hardware-virt/"
5397 msgstr ""
5398
5399 #. type: textblock
5400 #: ../examples/guestfs-testing.pod:45
5401 msgid "If the command above does not work at all, use L<libguestfs-test-tool(1)>."
5402 msgstr ""
5403
5404 #. type: =head2
5405 #: ../examples/guestfs-testing.pod:48
5406 msgid "Run virt-alignment-scan on all your guests."
5407 msgstr ""
5408
5409 #. type: textblock
5410 #: ../examples/guestfs-testing.pod:50
5411 msgid "Run L<virt-alignment-scan(1)> on guests or disk images:"
5412 msgstr ""
5413
5414 #. type: verbatim
5415 #: ../examples/guestfs-testing.pod:52
5416 #, no-wrap
5417 msgid ""
5418 " virt-alignment-scan -a /path/to/disk.img\n"
5419 "\n"
5420 msgstr ""
5421
5422 #. type: textblock
5423 #: ../examples/guestfs-testing.pod:54 ../examples/guestfs-testing.pod:161 ../examples/guestfs-testing.pod:174 ../examples/guestfs-testing.pod:234 ../src/guestfs.pod:2792
5424 msgid "or:"
5425 msgstr ""
5426
5427 #. type: verbatim
5428 #: ../examples/guestfs-testing.pod:56
5429 #, no-wrap
5430 msgid ""
5431 " virt-alignment-scan -d Guest\n"
5432 "\n"
5433 msgstr ""
5434
5435 #. type: textblock
5436 #: ../examples/guestfs-testing.pod:58
5437 msgid "Does the alignment report match how the guest partitions are aligned?"
5438 msgstr ""
5439
5440 #. type: =head2
5441 #: ../examples/guestfs-testing.pod:60
5442 msgid "Run virt-cat on some files in guests."
5443 msgstr ""
5444
5445 #. type: textblock
5446 #: ../examples/guestfs-testing.pod:62
5447 msgid "L<virt-cat(1)> can display files from guests.  For a Linux guest, try:"
5448 msgstr ""
5449
5450 #. type: verbatim
5451 #: ../examples/guestfs-testing.pod:64
5452 #, no-wrap
5453 msgid ""
5454 " virt-cat LinuxGuest /etc/passwd\n"
5455 "\n"
5456 msgstr ""
5457
5458 #. type: textblock
5459 #: ../examples/guestfs-testing.pod:66
5460 msgid "A recent feature is support for Windows paths, for example:"
5461 msgstr ""
5462
5463 #. type: verbatim
5464 #: ../examples/guestfs-testing.pod:68
5465 #, no-wrap
5466 msgid ""
5467 " virt-cat WindowsGuest 'c:\\windows\\win.ini'\n"
5468 "\n"
5469 msgstr ""
5470
5471 #. type: textblock
5472 #: ../examples/guestfs-testing.pod:70
5473 msgid ""
5474 "An even better test is if you have a Windows guest with multiple drives.  Do "
5475 "C<D:>, C<E:> etc paths work correctly?"
5476 msgstr ""
5477
5478 #. type: =head2
5479 #: ../examples/guestfs-testing.pod:73
5480 msgid "B<*> Copy some files into a B<shut off> guest."
5481 msgstr ""
5482
5483 #. type: textblock
5484 #: ../examples/guestfs-testing.pod:75
5485 msgid ""
5486 "L<virt-copy-in(1)> can recursively copy files and directories into a guest "
5487 "or disk image."
5488 msgstr ""
5489
5490 #. type: verbatim
5491 #: ../examples/guestfs-testing.pod:78
5492 #, no-wrap
5493 msgid ""
5494 " virt-copy-in -d Guest /etc /tmp\n"
5495 "\n"
5496 msgstr ""
5497
5498 #. type: textblock
5499 #: ../examples/guestfs-testing.pod:80
5500 msgid ""
5501 "This should copy local directory C</etc> to C</tmp/etc> in the guest "
5502 "(recursively).  If you boot the guest, can you see all of the copied files "
5503 "and directories?"
5504 msgstr ""
5505
5506 #. type: textblock
5507 #: ../examples/guestfs-testing.pod:84
5508 msgid "Shut the guest down and try copying multiple files and directories:"
5509 msgstr ""
5510
5511 #. type: verbatim
5512 #: ../examples/guestfs-testing.pod:86
5513 #, no-wrap
5514 msgid ""
5515 " virt-copy-in -d Guest /home /etc/issue /tmp\n"
5516 "\n"
5517 msgstr ""
5518
5519 #. type: =head2
5520 #: ../examples/guestfs-testing.pod:88
5521 msgid "Copy some files out of a guest."
5522 msgstr ""
5523
5524 #. type: textblock
5525 #: ../examples/guestfs-testing.pod:90
5526 msgid ""
5527 "L<virt-copy-out(1)> can recursively copy files and directories out of a "
5528 "guest or disk image."
5529 msgstr ""
5530
5531 #. type: textblock
5532 #: ../examples/guestfs-testing.pod:95
5533 msgid "Note the final space and period in the command is not a typo."
5534 msgstr ""
5535
5536 #. type: textblock
5537 #: ../examples/guestfs-testing.pod:97
5538 msgid "This should copy C</home> from the guest into the current directory."
5539 msgstr ""
5540
5541 #. type: =head2
5542 #: ../examples/guestfs-testing.pod:99
5543 msgid "Run virt-df."
5544 msgstr ""
5545
5546 #. type: textblock
5547 #: ../examples/guestfs-testing.pod:101
5548 msgid "L<virt-df(1)> lists disk space.  Run:"
5549 msgstr ""
5550
5551 #. type: verbatim
5552 #: ../examples/guestfs-testing.pod:103
5553 #, no-wrap
5554 msgid ""
5555 " virt-df\n"
5556 "\n"
5557 msgstr ""
5558
5559 #. type: textblock
5560 #: ../examples/guestfs-testing.pod:105
5561 msgid ""
5562 "You can try comparing this to the results from L<df(1)> inside the guest, "
5563 "but there are some provisos:"
5564 msgstr ""
5565
5566 #. type: textblock
5567 #: ../examples/guestfs-testing.pod:112
5568 msgid "The guest must be idle."
5569 msgstr ""
5570
5571 #. type: textblock
5572 #: ../examples/guestfs-testing.pod:116
5573 msgid "The guest disks must be synched using L<sync(1)>."
5574 msgstr ""
5575
5576 #. type: textblock
5577 #: ../examples/guestfs-testing.pod:120
5578 msgid ""
5579 "Any action such as booting the guest will write log files causing the "
5580 "numbers to change."
5581 msgstr ""
5582
5583 #. type: textblock
5584 #: ../examples/guestfs-testing.pod:125
5585 msgid ""
5586 "We don't guarantee that the numbers will be identical even under these "
5587 "circumstances.  They should be similar.  It would indicate a bug if you saw "
5588 "greatly differing numbers."
5589 msgstr ""
5590
5591 #. type: =head2
5592 #: ../examples/guestfs-testing.pod:129
5593 msgid "Try importing virt-df CSV output into a spreadsheet or database."
5594 msgstr ""
5595
5596 #. type: textblock
5597 #: ../examples/guestfs-testing.pod:131 ../src/guestfs.pod:3088
5598 msgid "Run:"
5599 msgstr ""
5600
5601 #. type: verbatim
5602 #: ../examples/guestfs-testing.pod:133
5603 #, no-wrap
5604 msgid ""
5605 " virt-df --csv > /tmp/report.csv\n"
5606 "\n"
5607 msgstr ""
5608
5609 #. type: textblock
5610 #: ../examples/guestfs-testing.pod:135
5611 msgid ""
5612 "Now try to load this into your favorite spreadsheet or database.  Are the "
5613 "results reproduced faithfully in the spreadsheet/database?"
5614 msgstr ""
5615
5616 #. type: textblock
5617 #: ../examples/guestfs-testing.pod:138
5618 msgid ""
5619 "http://www.postgresql.org/docs/8.1/static/sql-copy.html "
5620 "http://dev.mysql.com/doc/refman/5.1/en/load-data.html"
5621 msgstr ""
5622
5623 #. type: =head2
5624 #: ../examples/guestfs-testing.pod:141
5625 msgid "B<*> Edit a file in a B<shut off> guest."
5626 msgstr ""
5627
5628 #. type: textblock
5629 #: ../examples/guestfs-testing.pod:143
5630 msgid ""
5631 "L<virt-edit(1)> can edit files in guests.  Try this command on a RHEL or "
5632 "Fedora guest:"
5633 msgstr ""
5634
5635 #. type: verbatim
5636 #: ../examples/guestfs-testing.pod:146
5637 #, no-wrap
5638 msgid ""
5639 " virt-edit LinuxGuest /etc/sysconfig/network\n"
5640 "\n"
5641 msgstr ""
5642
5643 #. type: textblock
5644 #: ../examples/guestfs-testing.pod:148
5645 msgid "On other Linux guests try editing other files such as:"
5646 msgstr ""
5647
5648 #. type: verbatim
5649 #: ../examples/guestfs-testing.pod:150
5650 #, no-wrap
5651 msgid ""
5652 " virt-edit LinuxGuest /etc/motd\n"
5653 "\n"
5654 msgstr ""
5655
5656 #. type: textblock
5657 #: ../examples/guestfs-testing.pod:152
5658 msgid "Are the changes seen inside the guest when it is booted?"
5659 msgstr ""
5660
5661 #. type: =head2
5662 #: ../examples/guestfs-testing.pod:154
5663 msgid "Display the filesystems / partitions / LVs in a guest."
5664 msgstr ""
5665
5666 #. type: textblock
5667 #: ../examples/guestfs-testing.pod:156
5668 msgid ""
5669 "L<virt-filesystems(1)> can be used to display filesystems in a guest.  Try "
5670 "this command on any disk image or guest:"
5671 msgstr ""
5672
5673 #. type: verbatim
5674 #: ../examples/guestfs-testing.pod:159
5675 #, no-wrap
5676 msgid ""
5677 " virt-filesystems -a /path/to/disk.img --all --long -h\n"
5678 "\n"
5679 msgstr ""
5680
5681 #. type: verbatim
5682 #: ../examples/guestfs-testing.pod:163
5683 #, no-wrap
5684 msgid ""
5685 " virt-filesystems -d Guest --all --long -h\n"
5686 "\n"
5687 msgstr ""
5688
5689 #. type: textblock
5690 #: ../examples/guestfs-testing.pod:165
5691 msgid "Do the results match what is seen in the guest?"
5692 msgstr ""
5693
5694 #. type: =head2
5695 #: ../examples/guestfs-testing.pod:167
5696 msgid "Run virt-inspector on all your guests."
5697 msgstr ""
5698
5699 #. type: textblock
5700 #: ../examples/guestfs-testing.pod:169
5701 msgid ""
5702 "Use L<virt-inspector(1)> to get a report on all of your guests or disk "
5703 "images:"
5704 msgstr ""
5705
5706 #. type: verbatim
5707 #: ../examples/guestfs-testing.pod:172
5708 #, no-wrap
5709 msgid ""
5710 " virt-inspector -a /path/to/disk.img | less\n"
5711 "\n"
5712 msgstr ""
5713
5714 #. type: verbatim
5715 #: ../examples/guestfs-testing.pod:176
5716 #, no-wrap
5717 msgid ""
5718 " virt-inspector -d Guest | less\n"
5719 "\n"
5720 msgstr ""
5721
5722 #. type: textblock
5723 #: ../examples/guestfs-testing.pod:178
5724 msgid "Do the results match what is actually in the guest?"
5725 msgstr ""
5726
5727 #. type: =head2
5728 #: ../examples/guestfs-testing.pod:180
5729 msgid "Try the auditing features of virt-ls on all your guests."
5730 msgstr ""
5731
5732 #. type: verbatim
5733 #: ../examples/guestfs-testing.pod:184
5734 #, no-wrap
5735 msgid ""
5736 " virt-ls -lR -d Guest / | grep '^- [42]'\n"
5737 "\n"
5738 msgstr ""
5739
5740 #. type: verbatim
5741 #: ../examples/guestfs-testing.pod:188
5742 #, no-wrap
5743 msgid ""
5744 " virt-ls -lR -d Guest / | grep '^d ...7'\n"
5745 "\n"
5746 msgstr ""
5747
5748 #. type: verbatim
5749 #: ../examples/guestfs-testing.pod:192
5750 #, no-wrap
5751 msgid ""
5752 " virt-ls -lR -d Guest / | grep '^s'\n"
5753 "\n"
5754 msgstr ""
5755
5756 #. type: verbatim
5757 #: ../examples/guestfs-testing.pod:196
5758 #, no-wrap
5759 msgid ""
5760 " virt-ls -lR -d Guest / | grep -i '^-.*\\.png$'\n"
5761 "\n"
5762 msgstr ""
5763
5764 #. type: textblock
5765 #: ../examples/guestfs-testing.pod:198
5766 msgid "Display files larger than 10MB in home directories:"
5767 msgstr ""
5768
5769 #. type: verbatim
5770 #: ../examples/guestfs-testing.pod:200
5771 #, no-wrap
5772 msgid ""
5773 " virt-ls -lR -d Guest /home | awk '$3 > 10*1024*1024'\n"
5774 "\n"
5775 msgstr ""
5776
5777 #. type: verbatim
5778 #: ../examples/guestfs-testing.pod:204
5779 #, no-wrap
5780 msgid ""
5781 " virt-ls -lR -d Guest --time-days / | awk '$6 <= 7'\n"
5782 "\n"
5783 msgstr ""
5784
5785 #. type: verbatim
5786 #: ../examples/guestfs-testing.pod:208
5787 #, no-wrap
5788 msgid ""
5789 " virt-ls -lR -d Guest --time-days / | grep '^-' | awk '$6 < 1'\n"
5790 "\n"
5791 msgstr ""
5792
5793 #. type: textblock
5794 #: ../examples/guestfs-testing.pod:210
5795 msgid "Do the results match what is in the guest?"
5796 msgstr ""
5797
5798 #. type: =head2
5799 #: ../examples/guestfs-testing.pod:212
5800 msgid "Create a disk image from a tarball."
5801 msgstr ""
5802
5803 #. type: textblock
5804 #: ../examples/guestfs-testing.pod:214
5805 msgid ""
5806 "Use L<virt-make-fs(1)> to create a disk image from any tarball that you "
5807 "happen to have:"
5808 msgstr ""
5809
5810 #. type: verbatim
5811 #: ../examples/guestfs-testing.pod:217
5812 #, no-wrap
5813 msgid ""
5814 " virt-make-fs --partition=mbr --type=vfat /any/tarball.tar.gz output.img\n"
5815 "\n"
5816 msgstr ""
5817
5818 #. type: textblock
5819 #: ../examples/guestfs-testing.pod:219
5820 msgid ""
5821 "Add 'output.img' as a raw disk to an existing guest.  Check the guest can "
5822 "see the files.  This test is particularly useful if you try it with a "
5823 "Windows guest."
5824 msgstr ""
5825
5826 #. type: textblock
5827 #: ../examples/guestfs-testing.pod:223
5828 msgid "Try other partitioning schemes, eg. I<--partition=gpt>."
5829 msgstr ""
5830
5831 #. type: textblock
5832 #: ../examples/guestfs-testing.pod:225
5833 msgid "Try other filesystem formats, eg. I<--type=ntfs>, I<--type=ext2>."
5834 msgstr ""
5835
5836 #. type: =head2
5837 #: ../examples/guestfs-testing.pod:227
5838 msgid "B<*> Run virt-rescue on a B<shut off> disk image or guest."
5839 msgstr ""
5840
5841 #. type: textblock
5842 #: ../examples/guestfs-testing.pod:229
5843 msgid ""
5844 "Use L<virt-rescue(1)> to examine, rescue or repair a B<shut off> guest or "
5845 "disk image:"
5846 msgstr ""
5847
5848 #. type: verbatim
5849 #: ../examples/guestfs-testing.pod:232
5850 #, no-wrap
5851 msgid ""
5852 " virt-rescue -a /path/to/disk.img\n"
5853 "\n"
5854 msgstr ""
5855
5856 #. type: verbatim
5857 #: ../examples/guestfs-testing.pod:236
5858 #, no-wrap
5859 msgid ""
5860 " virt-rescue -d Guest\n"
5861 "\n"
5862 msgstr ""
5863
5864 #. type: textblock
5865 #: ../examples/guestfs-testing.pod:238
5866 msgid "Can you use ordinary shell commands to examine the guest?"
5867 msgstr ""
5868
5869 #. type: =head2
5870 #: ../examples/guestfs-testing.pod:240
5871 msgid "B<*> Resize your guests."
5872 msgstr ""
5873
5874 #. type: textblock
5875 #: ../examples/guestfs-testing.pod:242
5876 msgid ""
5877 "Use L<virt-resize(1)> to give a guest some more disk space.  For example, if "
5878 "you have a disk image that is smaller than 30G, increase it to 30G by doing:"
5879 msgstr ""
5880
5881 #. type: verbatim
5882 #: ../examples/guestfs-testing.pod:246
5883 #, no-wrap
5884 msgid ""
5885 " truncate -s 30G newdisk.img\n"
5886 " virt-filesystems -a /path/to/olddisk.img --all --long -h\n"
5887 " virt-resize /path/to/olddisk.img newdisk.img --expand /dev/sda1\n"
5888 " qemu-kvm -m 1024 -hda newdisk.img\n"
5889 "\n"
5890 msgstr ""
5891
5892 #. type: textblock
5893 #: ../examples/guestfs-testing.pod:251
5894 msgid "Does the guest still boot? Try expanding other partitions."
5895 msgstr ""
5896
5897 #. type: =head2
5898 #: ../examples/guestfs-testing.pod:253
5899 msgid "B<*> Sparsify a guest disk."
5900 msgstr ""
5901
5902 #. type: textblock
5903 #: ../examples/guestfs-testing.pod:255
5904 msgid "Using L<virt-sparsify(1)>, make a disk image more sparse:"
5905 msgstr ""
5906
5907 #. type: verbatim
5908 #: ../examples/guestfs-testing.pod:257
5909 #, no-wrap
5910 msgid ""
5911 " virt-sparsify /path/to/olddisk.img newdisk.img\n"
5912 "\n"
5913 msgstr ""
5914
5915 #. type: textblock
5916 #: ../examples/guestfs-testing.pod:259
5917 msgid ""
5918 "Is C<newdisk.img> still bootable after sparsifying? Is the resulting disk "
5919 "image smaller (use C<du> to check)?"
5920 msgstr ""
5921
5922 #. type: =head2
5923 #: ../examples/guestfs-testing.pod:262
5924 msgid "B<*> \"sysprep\" a B<shut off> Linux guest."
5925 msgstr ""
5926
5927 #. type: textblock
5928 #: ../examples/guestfs-testing.pod:264
5929 msgid ""
5930 "Note that this really will mess up an existing guest, so it's better to "
5931 "clone the guest before trying this."
5932 msgstr ""
5933
5934 #. type: verbatim
5935 #: ../examples/guestfs-testing.pod:267
5936 #, no-wrap
5937 msgid ""
5938 " virt-sysprep --hostname newhost.example.com -a /path/to/disk.img\n"
5939 "\n"
5940 msgstr ""
5941
5942 #. type: textblock
5943 #: ../examples/guestfs-testing.pod:269
5944 msgid ""
5945 "Was the sysprep successful? After booting, what changes were made and were "
5946 "they successful?"
5947 msgstr ""
5948
5949 #. type: =head2
5950 #: ../examples/guestfs-testing.pod:272
5951 msgid "Dump the Windows Registry from your Windows guests."
5952 msgstr ""
5953
5954 #. type: textblock
5955 #: ../examples/guestfs-testing.pod:274
5956 msgid ""
5957 "Use L<virt-win-reg(1)> to dump out the Windows Registry from any Windows "
5958 "guests that you have."
5959 msgstr ""
5960
5961 #. type: verbatim
5962 #: ../examples/guestfs-testing.pod:277
5963 #, no-wrap
5964 msgid ""
5965 " virt-win-reg --unsafe-printable-strings WindowsGuest 'HKLM\\Software' |\n"
5966 "   less\n"
5967 "\n"
5968 msgstr ""
5969
5970 #. type: verbatim
5971 #: ../examples/guestfs-testing.pod:280
5972 #, no-wrap
5973 msgid ""
5974 " virt-win-reg --unsafe-printable-strings WindowsGuest 'HKLM\\System' |\n"
5975 "   less\n"
5976 "\n"
5977 msgstr ""
5978
5979 #. type: textblock
5980 #: ../examples/guestfs-testing.pod:283
5981 msgid "Does the output match running C<regedit> inside the guest?"
5982 msgstr ""
5983
5984 #. type: textblock
5985 #: ../examples/guestfs-testing.pod:285
5986 msgid ""
5987 "A recent feature is the ability to dump user registries, so try this, "
5988 "replacing I<username> with the name of a local user in the guest:"
5989 msgstr ""
5990
5991 #. type: verbatim
5992 #: ../examples/guestfs-testing.pod:288
5993 #, no-wrap
5994 msgid ""
5995 " virt-win-reg --unsafe-printable-strings WindowsGuest 'HKEY_USERS\\username' "
5996 "|\n"
5997 "   less\n"
5998 "\n"
5999 msgstr ""
6000
6001 #. type: textblock
6002 #: ../examples/guestfs-testing.pod:293
6003 msgid ""
6004 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, "
6005 "L<http://libguestfs.org/>."
6006 msgstr ""
6007
6008 #. type: =head2
6009 #: ../fish/guestfish-actions.pod:1
6010 msgid "add-cdrom"
6011 msgstr ""
6012
6013 #. type: verbatim
6014 #: ../fish/guestfish-actions.pod:3
6015 #, no-wrap
6016 msgid ""
6017 " add-cdrom filename\n"
6018 "\n"
6019 msgstr ""
6020
6021 #. type: textblock
6022 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
6023 msgid "This function adds a virtual CD-ROM disk image to the guest."
6024 msgstr ""
6025
6026 #. type: textblock
6027 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
6028 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
6029 msgstr ""
6030
6031 #. type: textblock
6032 #: ../fish/guestfish-actions.pod:15
6033 msgid ""
6034 "This call checks for the existence of C<filename>.  This stops you from "
6035 "specifying other types of drive which are supported by qemu such as C<nbd:> "
6036 "and C<http:> URLs.  To specify those, use the general L</config> call "
6037 "instead."
6038 msgstr ""
6039
6040 #. type: textblock
6041 #: ../fish/guestfish-actions.pod:22
6042 msgid ""
6043 "If you just want to add an ISO file (often you use this as an efficient way "
6044 "to transfer large files into the guest), then you should probably use "
6045 "L</add-drive-ro> instead."
6046 msgstr ""
6047
6048 #. type: textblock
6049 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:214 ../fish/guestfish-actions.pod:228
6050 msgid ""
6051 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
6052 "instead."
6053 msgstr ""
6054
6055 #. type: textblock
6056 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:217 ../fish/guestfish-actions.pod:231 ../fish/guestfish-actions.pod:941 ../fish/guestfish-actions.pod:976 ../fish/guestfish-actions.pod:1149 ../fish/guestfish-actions.pod:1509 ../fish/guestfish-actions.pod:1523 ../fish/guestfish-actions.pod:3392 ../fish/guestfish-actions.pod:3703 ../fish/guestfish-actions.pod:3751 ../fish/guestfish-actions.pod:4669 ../fish/guestfish-actions.pod:4689 ../fish/guestfish-actions.pod:4708 ../fish/guestfish-actions.pod:4746 ../fish/guestfish-actions.pod:5474 ../fish/guestfish-actions.pod:5577 ../src/guestfs-actions.pod:10 ../src/guestfs-actions.pod:305 ../src/guestfs-actions.pod:326 ../src/guestfs-actions.pod:1580 ../src/guestfs-actions.pod:1637 ../src/guestfs-actions.pod:1920 ../src/guestfs-actions.pod:2419 ../src/guestfs-actions.pod:2440 ../src/guestfs-actions.pod:5242 ../src/guestfs-actions.pod:5764 ../src/guestfs-actions.pod:5864 ../src/guestfs-actions.pod:7160 ../src/guestfs-actions.pod:7201 ../src/guestfs-actions.pod:7232 ../src/guestfs-actions.pod:7292 ../src/guestfs-actions.pod:8346 ../src/guestfs-actions.pod:8455 ../src/guestfs-actions.pod:8635
6057 msgid ""
6058 "Deprecated functions will not be removed from the API, but the fact that "
6059 "they are deprecated indicates that there are problems with correct use of "
6060 "these functions."
6061 msgstr ""
6062
6063 #. type: =head2
6064 #: ../fish/guestfish-actions.pod:35
6065 msgid "add-domain"
6066 msgstr ""
6067
6068 #. type: =head2
6069 #: ../fish/guestfish-actions.pod:37
6070 msgid "domain"
6071 msgstr ""
6072
6073 #. type: verbatim
6074 #: ../fish/guestfish-actions.pod:39
6075 #, no-wrap
6076 msgid ""
6077 " add-domain dom [libvirturi:..] [readonly:true|false] [iface:..] "
6078 "[live:true|false] [allowuuid:true|false] [readonlydisk:..]\n"
6079 "\n"
6080 msgstr ""
6081
6082 #. type: textblock
6083 #: ../fish/guestfish-actions.pod:41
6084 msgid ""
6085 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
6086 "It works by connecting to libvirt, requesting the domain and domain XML from "
6087 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
6088 msgstr ""
6089
6090 #. type: textblock
6091 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:65
6092 msgid ""
6093 "The number of disks added is returned.  This operation is atomic: if an "
6094 "error is returned, then no disks are added."
6095 msgstr ""
6096
6097 #. type: textblock
6098 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:68
6099 msgid ""
6100 "This function does some minimal checks to make sure the libvirt domain is "
6101 "not running (unless C<readonly> is true).  In a future version we will try "
6102 "to acquire the libvirt lock on each disk."
6103 msgstr ""
6104
6105 #. type: textblock
6106 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:72
6107 msgid ""
6108 "Disks must be accessible locally.  This often means that adding disks from a "
6109 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
6110 "unless those disks are accessible via the same device path locally too."
6111 msgstr ""
6112
6113 #. type: textblock
6114 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:77
6115 msgid ""
6116 "The optional C<libvirturi> parameter sets the libvirt URI (see "
6117 "L<http://libvirt.org/uri.html>).  If this is not set then we connect to the "
6118 "default libvirt URI (or one set through an environment variable, see the "
6119 "libvirt documentation for full details)."
6120 msgstr ""
6121
6122 #. type: textblock
6123 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:83
6124 msgid ""
6125 "The optional C<live> flag controls whether this call will try to connect to "
6126 "a running virtual machine C<guestfsd> process if it sees a suitable "
6127 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
6128 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
6129 "DAEMONS> for more information."
6130 msgstr ""
6131
6132 #. type: textblock
6133 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:90
6134 msgid ""
6135 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
6136 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
6137 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
6138 "as usual."
6139 msgstr ""
6140
6141 #. type: textblock
6142 #: ../fish/guestfish-actions.pod:76 ../src/guestfs-actions.pod:95
6143 msgid ""
6144 "The optional C<readonlydisk> parameter controls what we do for disks which "
6145 "are marked E<lt>readonly/E<gt> in the libvirt XML.  Possible values are:"
6146 msgstr ""
6147
6148 #. type: =item
6149 #: ../fish/guestfish-actions.pod:82 ../src/guestfs-actions.pod:101
6150 msgid "readonlydisk = \"error\""
6151 msgstr ""
6152
6153 #. type: textblock
6154 #: ../fish/guestfish-actions.pod:84 ../fish/guestfish-actions.pod:95 ../fish/guestfish-actions.pod:106 ../src/guestfs-actions.pod:103 ../src/guestfs-actions.pod:114 ../src/guestfs-actions.pod:125
6155 msgid "If C<readonly> is false:"
6156 msgstr ""
6157
6158 #. type: textblock
6159 #: ../fish/guestfish-actions.pod:86 ../src/guestfs-actions.pod:105
6160 msgid ""
6161 "The whole call is aborted with an error if any disk with the "
6162 "E<lt>readonly/E<gt> flag is found."
6163 msgstr ""
6164
6165 #. type: textblock
6166 #: ../fish/guestfish-actions.pod:89 ../fish/guestfish-actions.pod:100 ../fish/guestfish-actions.pod:110 ../src/guestfs-actions.pod:108 ../src/guestfs-actions.pod:119 ../src/guestfs-actions.pod:129
6167 msgid "If C<readonly> is true:"
6168 msgstr ""
6169
6170 #. type: textblock
6171 #: ../fish/guestfish-actions.pod:91 ../fish/guestfish-actions.pod:102 ../fish/guestfish-actions.pod:112 ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121 ../src/guestfs-actions.pod:131
6172 msgid "Disks with the E<lt>readonly/E<gt> flag are added read-only."
6173 msgstr ""
6174
6175 #. type: =item
6176 #: ../fish/guestfish-actions.pod:93 ../src/guestfs-actions.pod:112
6177 msgid "readonlydisk = \"read\""
6178 msgstr ""
6179
6180 #. type: textblock
6181 #: ../fish/guestfish-actions.pod:97 ../src/guestfs-actions.pod:116
6182 msgid ""
6183 "Disks with the E<lt>readonly/E<gt> flag are added read-only.  Other disks "
6184 "are added read/write."
6185 msgstr ""
6186
6187 #. type: =item
6188 #: ../fish/guestfish-actions.pod:104 ../src/guestfs-actions.pod:123
6189 msgid "readonlydisk = \"write\" (default)"
6190 msgstr ""
6191
6192 #. type: textblock
6193 #: ../fish/guestfish-actions.pod:108 ../src/guestfs-actions.pod:127
6194 msgid "Disks with the E<lt>readonly/E<gt> flag are added read/write."
6195 msgstr ""
6196
6197 #. type: =item
6198 #: ../fish/guestfish-actions.pod:114 ../src/guestfs-actions.pod:133
6199 msgid "readonlydisk = \"ignore\""
6200 msgstr ""
6201
6202 #. type: textblock
6203 #: ../fish/guestfish-actions.pod:116 ../src/guestfs-actions.pod:135
6204 msgid "If C<readonly> is true or false:"
6205 msgstr ""
6206
6207 #. type: textblock
6208 #: ../fish/guestfish-actions.pod:118 ../src/guestfs-actions.pod:137
6209 msgid "Disks with the E<lt>readonly/E<gt> flag are skipped."
6210 msgstr ""
6211
6212 #. type: textblock
6213 #: ../fish/guestfish-actions.pod:122
6214 msgid ""
6215 "The other optional parameters are passed directly through to "
6216 "L</add-drive-opts>."
6217 msgstr ""
6218
6219 #. type: textblock
6220 #: ../fish/guestfish-actions.pod:125 ../fish/guestfish-actions.pod:194 ../fish/guestfish-actions.pod:624 ../fish/guestfish-actions.pod:835 ../fish/guestfish-actions.pod:856 ../fish/guestfish-actions.pod:894 ../fish/guestfish-actions.pod:903 ../fish/guestfish-actions.pod:912 ../fish/guestfish-actions.pod:926 ../fish/guestfish-actions.pod:2171 ../fish/guestfish-actions.pod:3219 ../fish/guestfish-actions.pod:3441 ../fish/guestfish-actions.pod:3604 ../fish/guestfish-actions.pod:3739 ../fish/guestfish-actions.pod:5110
6221 msgid ""
6222 "This command has one or more optional arguments.  See L</OPTIONAL "
6223 "ARGUMENTS>."
6224 msgstr ""
6225
6226 #. type: =head2
6227 #: ../fish/guestfish-actions.pod:127
6228 msgid "add-drive"
6229 msgstr ""
6230
6231 #. type: verbatim
6232 #: ../fish/guestfish-actions.pod:129
6233 #, no-wrap
6234 msgid ""
6235 " add-drive filename\n"
6236 "\n"
6237 msgstr ""
6238
6239 #. type: textblock
6240 #: ../fish/guestfish-actions.pod:131
6241 msgid ""
6242 "This function is the equivalent of calling L</add-drive-opts> with no "
6243 "optional parameters, so the disk is added writable, with the format being "
6244 "detected automatically."
6245 msgstr ""
6246
6247 #. type: textblock
6248 #: ../fish/guestfish-actions.pod:135
6249 msgid ""
6250 "Automatic detection of the format opens you up to a potential security hole "
6251 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6252 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
6253 "you should think about replacing calls to this function with calls to "
6254 "L</add-drive-opts>, and specifying the format."
6255 msgstr ""
6256
6257 #. type: =head2
6258 #: ../fish/guestfish-actions.pod:142
6259 msgid "add-drive-opts"
6260 msgstr ""
6261
6262 #. type: =head2
6263 #: ../fish/guestfish-actions.pod:144
6264 msgid "add"
6265 msgstr ""
6266
6267 #. type: verbatim
6268 #: ../fish/guestfish-actions.pod:146
6269 #, no-wrap
6270 msgid ""
6271 " add-drive-opts filename [readonly:true|false] [format:..] [iface:..] "
6272 "[name:..]\n"
6273 "\n"
6274 msgstr ""
6275
6276 #. type: textblock
6277 #: ../fish/guestfish-actions.pod:148 ../src/guestfs-actions.pod:208
6278 msgid ""
6279 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
6280 "The first time you call this function, the disk appears as C</dev/sda>, the "
6281 "second time as C</dev/sdb>, and so on."
6282 msgstr ""
6283
6284 #. type: textblock
6285 #: ../fish/guestfish-actions.pod:153 ../src/guestfs-actions.pod:213
6286 msgid ""
6287 "You don't necessarily need to be root when using libguestfs.  However you "
6288 "obviously do need sufficient permissions to access the filename for whatever "
6289 "operations you want to perform (ie. read access if you just want to read the "
6290 "image or write access if you want to modify the image)."
6291 msgstr ""
6292
6293 #. type: textblock
6294 #: ../fish/guestfish-actions.pod:159 ../src/guestfs-actions.pod:219
6295 msgid "This call checks that C<filename> exists."
6296 msgstr ""
6297
6298 #. type: textblock
6299 #: ../fish/guestfish-actions.pod:161 ../fish/guestfish-actions.pod:3403 ../src/guestfs-actions.pod:221 ../src/guestfs-actions.pod:5279
6300 msgid "The optional arguments are:"
6301 msgstr ""
6302
6303 #. type: =item
6304 #: ../fish/guestfish-actions.pod:165 ../src/guestfs-actions.pod:225
6305 msgid "C<readonly>"
6306 msgstr ""
6307
6308 #. type: textblock
6309 #: ../fish/guestfish-actions.pod:167 ../src/guestfs-actions.pod:227
6310 msgid ""
6311 "If true then the image is treated as read-only.  Writes are still allowed, "
6312 "but they are stored in a temporary snapshot overlay which is discarded at "
6313 "the end.  The disk that you add is not modified."
6314 msgstr ""
6315
6316 #. type: =item
6317 #: ../fish/guestfish-actions.pod:171 ../src/guestfs-actions.pod:231
6318 msgid "C<format>"
6319 msgstr ""
6320
6321 #. type: textblock
6322 #: ../fish/guestfish-actions.pod:173
6323 msgid ""
6324 "This forces the image format.  If you omit this (or use L</add-drive> or "
6325 "L</add-drive-ro>) then the format is automatically detected.  Possible "
6326 "formats include C<raw> and C<qcow2>."
6327 msgstr ""
6328
6329 #. type: textblock
6330 #: ../fish/guestfish-actions.pod:177 ../src/guestfs-actions.pod:237
6331 msgid ""
6332 "Automatic detection of the format opens you up to a potential security hole "
6333 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6334 "RHBZ#642934.  Specifying the format closes this security hole."
6335 msgstr ""
6336
6337 #. type: =item
6338 #: ../fish/guestfish-actions.pod:182 ../src/guestfs-actions.pod:242
6339 msgid "C<iface>"
6340 msgstr ""
6341
6342 #. type: textblock
6343 #: ../fish/guestfish-actions.pod:184
6344 msgid ""
6345 "This rarely-used option lets you emulate the behaviour of the deprecated "
6346 "L</add-drive-with-if> call (q.v.)"
6347 msgstr ""
6348
6349 #. type: =item
6350 #: ../fish/guestfish-actions.pod:187 ../fish/guestfish-actions.pod:3246 ../src/guestfs-actions.pod:247 ../src/guestfs-actions.pod:5000
6351 msgid "C<name>"
6352 msgstr ""
6353
6354 #. type: textblock
6355 #: ../fish/guestfish-actions.pod:189 ../src/guestfs-actions.pod:249
6356 msgid ""
6357 "The name the drive had in the original guest, e.g. /dev/sdb. This is used as "
6358 "a hint to the guest inspection process if it is available."
6359 msgstr ""
6360
6361 #. type: =head2
6362 #: ../fish/guestfish-actions.pod:196
6363 msgid "add-drive-ro"
6364 msgstr ""
6365
6366 #. type: =head2
6367 #: ../fish/guestfish-actions.pod:198
6368 msgid "add-ro"
6369 msgstr ""
6370
6371 #. type: verbatim
6372 #: ../fish/guestfish-actions.pod:200
6373 #, no-wrap
6374 msgid ""
6375 " add-drive-ro filename\n"
6376 "\n"
6377 msgstr ""
6378
6379 #. type: textblock
6380 #: ../fish/guestfish-actions.pod:202
6381 msgid ""
6382 "This function is the equivalent of calling L</add-drive-opts> with the "
6383 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
6384 "is added read-only, with the format being detected automatically."
6385 msgstr ""
6386
6387 #. type: =head2
6388 #: ../fish/guestfish-actions.pod:207
6389 msgid "add-drive-ro-with-if"
6390 msgstr ""
6391
6392 #. type: verbatim
6393 #: ../fish/guestfish-actions.pod:209
6394 #, no-wrap
6395 msgid ""
6396 " add-drive-ro-with-if filename iface\n"
6397 "\n"
6398 msgstr ""
6399
6400 #. type: textblock
6401 #: ../fish/guestfish-actions.pod:211
6402 msgid ""
6403 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
6404 "interface emulation to use at run time."
6405 msgstr ""
6406
6407 #. type: =head2
6408 #: ../fish/guestfish-actions.pod:221
6409 msgid "add-drive-with-if"
6410 msgstr ""
6411
6412 #. type: verbatim
6413 #: ../fish/guestfish-actions.pod:223
6414 #, no-wrap
6415 msgid ""
6416 " add-drive-with-if filename iface\n"
6417 "\n"
6418 msgstr ""
6419
6420 #. type: textblock
6421 #: ../fish/guestfish-actions.pod:225
6422 msgid ""
6423 "This is the same as L</add-drive> but it allows you to specify the QEMU "
6424 "interface emulation to use at run time."
6425 msgstr ""
6426
6427 #. type: =head2
6428 #: ../fish/guestfish-actions.pod:235
6429 msgid "aug-clear"
6430 msgstr ""
6431
6432 #. type: verbatim
6433 #: ../fish/guestfish-actions.pod:237
6434 #, no-wrap
6435 msgid ""
6436 " aug-clear augpath\n"
6437 "\n"
6438 msgstr ""
6439
6440 #. type: textblock
6441 #: ../fish/guestfish-actions.pod:239 ../src/guestfs-actions.pod:343
6442 msgid ""
6443 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
6444 "L<augtool(1)> C<clear> command."
6445 msgstr ""
6446
6447 #. type: =head2
6448 #: ../fish/guestfish-actions.pod:242
6449 msgid "aug-close"
6450 msgstr ""
6451
6452 #. type: verbatim
6453 #: ../fish/guestfish-actions.pod:244
6454 #, no-wrap
6455 msgid ""
6456 " aug-close\n"
6457 "\n"
6458 msgstr ""
6459
6460 #. type: textblock
6461 #: ../fish/guestfish-actions.pod:246
6462 msgid ""
6463 "Close the current Augeas handle and free up any resources used by it.  After "
6464 "calling this, you have to call L</aug-init> again before you can use any "
6465 "other Augeas functions."
6466 msgstr ""
6467
6468 #. type: =head2
6469 #: ../fish/guestfish-actions.pod:251
6470 msgid "aug-defnode"
6471 msgstr ""
6472
6473 #. type: verbatim
6474 #: ../fish/guestfish-actions.pod:253
6475 #, no-wrap
6476 msgid ""
6477 " aug-defnode name expr val\n"
6478 "\n"
6479 msgstr ""
6480
6481 #. type: textblock
6482 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:372
6483 msgid "Defines a variable C<name> whose value is the result of evaluating C<expr>."
6484 msgstr ""
6485
6486 #. type: textblock
6487 #: ../fish/guestfish-actions.pod:258
6488 msgid ""
6489 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
6490 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
6491 "containing that single node."
6492 msgstr ""
6493
6494 #. type: textblock
6495 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:379
6496 msgid ""
6497 "On success this returns a pair containing the number of nodes in the "
6498 "nodeset, and a boolean flag if a node was created."
6499 msgstr ""
6500
6501 #. type: =head2
6502 #: ../fish/guestfish-actions.pod:266
6503 msgid "aug-defvar"
6504 msgstr ""
6505
6506 #. type: verbatim
6507 #: ../fish/guestfish-actions.pod:268
6508 #, no-wrap
6509 msgid ""
6510 " aug-defvar name expr\n"
6511 "\n"
6512 msgstr ""
6513
6514 #. type: textblock
6515 #: ../fish/guestfish-actions.pod:270 ../src/guestfs-actions.pod:396
6516 msgid ""
6517 "Defines an Augeas variable C<name> whose value is the result of evaluating "
6518 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
6519 msgstr ""
6520
6521 #. type: textblock
6522 #: ../fish/guestfish-actions.pod:274 ../src/guestfs-actions.pod:400
6523 msgid ""
6524 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
6525 "evaluates to something which is not a nodeset."
6526 msgstr ""
6527
6528 #. type: =head2
6529 #: ../fish/guestfish-actions.pod:277
6530 msgid "aug-get"
6531 msgstr ""
6532
6533 #. type: verbatim
6534 #: ../fish/guestfish-actions.pod:279
6535 #, no-wrap
6536 msgid ""
6537 " aug-get augpath\n"
6538 "\n"
6539 msgstr ""
6540
6541 #. type: textblock
6542 #: ../fish/guestfish-actions.pod:281 ../src/guestfs-actions.pod:413
6543 msgid ""
6544 "Look up the value associated with C<path>.  If C<path> matches exactly one "
6545 "node, the C<value> is returned."
6546 msgstr ""
6547
6548 #. type: =head2
6549 #: ../fish/guestfish-actions.pod:284
6550 msgid "aug-init"
6551 msgstr ""
6552
6553 #. type: verbatim
6554 #: ../fish/guestfish-actions.pod:286
6555 #, no-wrap
6556 msgid ""
6557 " aug-init root flags\n"
6558 "\n"
6559 msgstr ""
6560
6561 #. type: textblock
6562 #: ../fish/guestfish-actions.pod:288 ../src/guestfs-actions.pod:428
6563 msgid ""
6564 "Create a new Augeas handle for editing configuration files.  If there was "
6565 "any previous Augeas handle associated with this guestfs session, then it is "
6566 "closed."
6567 msgstr ""
6568
6569 #. type: textblock
6570 #: ../fish/guestfish-actions.pod:292
6571 msgid "You must call this before using any other L</aug-*> commands."
6572 msgstr ""
6573
6574 #. type: textblock
6575 #: ../fish/guestfish-actions.pod:295 ../src/guestfs-actions.pod:435
6576 msgid "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
6577 msgstr ""
6578
6579 #. type: textblock
6580 #: ../fish/guestfish-actions.pod:298 ../src/guestfs-actions.pod:438
6581 msgid ""
6582 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
6583 "logical I<or> of the following integers:"
6584 msgstr ""
6585
6586 #. type: =item
6587 #: ../fish/guestfish-actions.pod:304 ../src/guestfs-actions.pod:444
6588 msgid "C<AUG_SAVE_BACKUP> = 1"
6589 msgstr ""
6590
6591 #. type: textblock
6592 #: ../fish/guestfish-actions.pod:306 ../src/guestfs-actions.pod:446
6593 msgid "Keep the original file with a C<.augsave> extension."
6594 msgstr ""
6595
6596 #. type: =item
6597 #: ../fish/guestfish-actions.pod:308 ../src/guestfs-actions.pod:448
6598 msgid "C<AUG_SAVE_NEWFILE> = 2"
6599 msgstr ""
6600
6601 #. type: textblock
6602 #: ../fish/guestfish-actions.pod:310 ../src/guestfs-actions.pod:450
6603 msgid ""
6604 "Save changes into a file with extension C<.augnew>, and do not overwrite "
6605 "original.  Overrides C<AUG_SAVE_BACKUP>."
6606 msgstr ""
6607
6608 #. type: =item
6609 #: ../fish/guestfish-actions.pod:313 ../src/guestfs-actions.pod:453
6610 msgid "C<AUG_TYPE_CHECK> = 4"
6611 msgstr ""
6612
6613 #. type: textblock
6614 #: ../fish/guestfish-actions.pod:315 ../src/guestfs-actions.pod:455
6615 msgid "Typecheck lenses."
6616 msgstr ""
6617
6618 #. type: textblock
6619 #: ../fish/guestfish-actions.pod:317
6620 msgid ""
6621 "This option is only useful when debugging Augeas lenses.  Use of this option "
6622 "may require additional memory for the libguestfs appliance.  You may need to "
6623 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
6624 msgstr ""
6625
6626 #. type: =item
6627 #: ../fish/guestfish-actions.pod:322 ../src/guestfs-actions.pod:462
6628 msgid "C<AUG_NO_STDINC> = 8"
6629 msgstr ""
6630
6631 #. type: textblock
6632 #: ../fish/guestfish-actions.pod:324 ../src/guestfs-actions.pod:464
6633 msgid "Do not use standard load path for modules."
6634 msgstr ""
6635
6636 #. type: =item
6637 #: ../fish/guestfish-actions.pod:326 ../src/guestfs-actions.pod:466
6638 msgid "C<AUG_SAVE_NOOP> = 16"
6639 msgstr ""
6640
6641 #. type: textblock
6642 #: ../fish/guestfish-actions.pod:328 ../src/guestfs-actions.pod:468
6643 msgid "Make save a no-op, just record what would have been changed."
6644 msgstr ""
6645
6646 #. type: =item
6647 #: ../fish/guestfish-actions.pod:330 ../src/guestfs-actions.pod:470
6648 msgid "C<AUG_NO_LOAD> = 32"
6649 msgstr ""
6650
6651 #. type: textblock
6652 #: ../fish/guestfish-actions.pod:332
6653 msgid "Do not load the tree in L</aug-init>."
6654 msgstr ""
6655
6656 #. type: textblock
6657 #: ../fish/guestfish-actions.pod:336
6658 msgid "To close the handle, you can call L</aug-close>."
6659 msgstr ""
6660
6661 #. type: textblock
6662 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:478
6663 msgid "To find out more about Augeas, see L<http://augeas.net/>."
6664 msgstr ""
6665
6666 #. type: =head2
6667 #: ../fish/guestfish-actions.pod:340
6668 msgid "aug-insert"
6669 msgstr ""
6670
6671 #. type: verbatim
6672 #: ../fish/guestfish-actions.pod:342
6673 #, no-wrap
6674 msgid ""
6675 " aug-insert augpath label true|false\n"
6676 "\n"
6677 msgstr ""
6678
6679 #. type: textblock
6680 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:492
6681 msgid ""
6682 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
6683 "or after C<path> (depending on the boolean flag C<before>)."
6684 msgstr ""
6685
6686 #. type: textblock
6687 #: ../fish/guestfish-actions.pod:348 ../src/guestfs-actions.pod:496
6688 msgid ""
6689 "C<path> must match exactly one existing node in the tree, and C<label> must "
6690 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
6691 msgstr ""
6692
6693 #. type: =head2
6694 #: ../fish/guestfish-actions.pod:352
6695 msgid "aug-load"
6696 msgstr ""
6697
6698 #. type: verbatim
6699 #: ../fish/guestfish-actions.pod:354
6700 #, no-wrap
6701 msgid ""
6702 " aug-load\n"
6703 "\n"
6704 msgstr ""
6705
6706 #. type: textblock
6707 #: ../fish/guestfish-actions.pod:356 ../src/guestfs-actions.pod:509
6708 msgid "Load files into the tree."
6709 msgstr ""
6710
6711 #. type: textblock
6712 #: ../fish/guestfish-actions.pod:358 ../src/guestfs-actions.pod:511
6713 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
6714 msgstr ""
6715
6716 #. type: =head2
6717 #: ../fish/guestfish-actions.pod:361
6718 msgid "aug-ls"
6719 msgstr ""
6720
6721 #. type: verbatim
6722 #: ../fish/guestfish-actions.pod:363
6723 #, no-wrap
6724 msgid ""
6725 " aug-ls augpath\n"
6726 "\n"
6727 msgstr ""
6728
6729 #. type: textblock
6730 #: ../fish/guestfish-actions.pod:365
6731 msgid ""
6732 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
6733 "resulting nodes into alphabetical order."
6734 msgstr ""
6735
6736 #. type: =head2
6737 #: ../fish/guestfish-actions.pod:368
6738 msgid "aug-match"
6739 msgstr ""
6740
6741 #. type: verbatim
6742 #: ../fish/guestfish-actions.pod:370
6743 #, no-wrap
6744 msgid ""
6745 " aug-match augpath\n"
6746 "\n"
6747 msgstr ""
6748
6749 #. type: textblock
6750 #: ../fish/guestfish-actions.pod:372 ../src/guestfs-actions.pod:539
6751 msgid ""
6752 "Returns a list of paths which match the path expression C<path>.  The "
6753 "returned paths are sufficiently qualified so that they match exactly one "
6754 "node in the current tree."
6755 msgstr ""
6756
6757 #. type: =head2
6758 #: ../fish/guestfish-actions.pod:376
6759 msgid "aug-mv"
6760 msgstr ""
6761
6762 #. type: verbatim
6763 #: ../fish/guestfish-actions.pod:378
6764 #, no-wrap
6765 msgid ""
6766 " aug-mv src dest\n"
6767 "\n"
6768 msgstr ""
6769
6770 #. type: textblock
6771 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:556
6772 msgid ""
6773 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
6774 "C<dest> is overwritten if it exists."
6775 msgstr ""
6776
6777 #. type: =head2
6778 #: ../fish/guestfish-actions.pod:383
6779 msgid "aug-rm"
6780 msgstr ""
6781
6782 #. type: verbatim
6783 #: ../fish/guestfish-actions.pod:385
6784 #, no-wrap
6785 msgid ""
6786 " aug-rm augpath\n"
6787 "\n"
6788 msgstr ""
6789
6790 #. type: textblock
6791 #: ../fish/guestfish-actions.pod:387 ../src/guestfs-actions.pod:569
6792 msgid "Remove C<path> and all of its children."
6793 msgstr ""
6794
6795 #. type: textblock
6796 #: ../fish/guestfish-actions.pod:389 ../src/guestfs-actions.pod:571
6797 msgid "On success this returns the number of entries which were removed."
6798 msgstr ""
6799
6800 #. type: =head2
6801 #: ../fish/guestfish-actions.pod:391
6802 msgid "aug-save"
6803 msgstr ""
6804
6805 #. type: verbatim
6806 #: ../fish/guestfish-actions.pod:393
6807 #, no-wrap
6808 msgid ""
6809 " aug-save\n"
6810 "\n"
6811 msgstr ""
6812
6813 #. type: textblock
6814 #: ../fish/guestfish-actions.pod:395 ../src/guestfs-actions.pod:582
6815 msgid "This writes all pending changes to disk."
6816 msgstr ""
6817
6818 #. type: textblock
6819 #: ../fish/guestfish-actions.pod:397
6820 msgid ""
6821 "The flags which were passed to L</aug-init> affect exactly how files are "
6822 "saved."
6823 msgstr ""
6824
6825 #. type: =head2
6826 #: ../fish/guestfish-actions.pod:400
6827 msgid "aug-set"
6828 msgstr ""
6829
6830 #. type: verbatim
6831 #: ../fish/guestfish-actions.pod:402
6832 #, no-wrap
6833 msgid ""
6834 " aug-set augpath val\n"
6835 "\n"
6836 msgstr ""
6837
6838 #. type: textblock
6839 #: ../fish/guestfish-actions.pod:404 ../src/guestfs-actions.pod:598
6840 msgid "Set the value associated with C<path> to C<val>."
6841 msgstr ""
6842
6843 #. type: textblock
6844 #: ../fish/guestfish-actions.pod:406
6845 msgid ""
6846 "In the Augeas API, it is possible to clear a node by setting the value to "
6847 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
6848 "this call.  Instead you must use the L</aug-clear> call."
6849 msgstr ""
6850
6851 #. type: =head2
6852 #: ../fish/guestfish-actions.pod:411
6853 msgid "available"
6854 msgstr ""
6855
6856 #. type: verbatim
6857 #: ../fish/guestfish-actions.pod:413
6858 #, no-wrap
6859 msgid ""
6860 " available 'groups ...'\n"
6861 "\n"
6862 msgstr ""
6863
6864 #. type: textblock
6865 #: ../fish/guestfish-actions.pod:415 ../src/guestfs-actions.pod:615
6866 msgid ""
6867 "This command is used to check the availability of some groups of "
6868 "functionality in the appliance, which not all builds of the libguestfs "
6869 "appliance will be able to provide."
6870 msgstr ""
6871
6872 #. type: textblock
6873 #: ../fish/guestfish-actions.pod:419
6874 msgid ""
6875 "The libguestfs groups, and the functions that those groups correspond to, "
6876 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
6877 "runtime by calling L</available-all-groups>."
6878 msgstr ""
6879
6880 #. type: textblock
6881 #: ../fish/guestfish-actions.pod:424 ../src/guestfs-actions.pod:624
6882 msgid ""
6883 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", "
6884 "\"augeas\"]> would check for the availability of the Linux inotify functions "
6885 "and Augeas (configuration file editing) functions."
6886 msgstr ""
6887
6888 #. type: textblock
6889 #: ../fish/guestfish-actions.pod:429 ../src/guestfs-actions.pod:629
6890 msgid "The command returns no error if I<all> requested groups are available."
6891 msgstr ""
6892
6893 #. type: textblock
6894 #: ../fish/guestfish-actions.pod:431 ../src/guestfs-actions.pod:631
6895 msgid ""
6896 "It fails with an error if one or more of the requested groups is unavailable "
6897 "in the appliance."
6898 msgstr ""
6899
6900 #. type: textblock
6901 #: ../fish/guestfish-actions.pod:434 ../src/guestfs-actions.pod:634
6902 msgid ""
6903 "If an unknown group name is included in the list of groups then an error is "
6904 "always returned."
6905 msgstr ""
6906
6907 #. type: textblock
6908 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:637
6909 msgid "I<Notes:>"
6910 msgstr ""
6911
6912 #. type: textblock
6913 #: ../fish/guestfish-actions.pod:443
6914 msgid "You must call L</launch> before calling this function."
6915 msgstr ""
6916
6917 #. type: textblock
6918 #: ../fish/guestfish-actions.pod:445 ../src/guestfs-actions.pod:645
6919 msgid ""
6920 "The reason is because we don't know what groups are supported by the "
6921 "appliance/daemon until it is running and can be queried."
6922 msgstr ""
6923
6924 #. type: textblock
6925 #: ../fish/guestfish-actions.pod:451 ../src/guestfs-actions.pod:651
6926 msgid ""
6927 "If a group of functions is available, this does not necessarily mean that "
6928 "they will work.  You still have to check for errors when calling individual "
6929 "API functions even if they are available."
6930 msgstr ""
6931
6932 #. type: textblock
6933 #: ../fish/guestfish-actions.pod:458 ../src/guestfs-actions.pod:658
6934 msgid ""
6935 "It is usually the job of distro packagers to build complete functionality "
6936 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
6937 "with all requirements satisfied, will support everything."
6938 msgstr ""
6939
6940 #. type: textblock
6941 #: ../fish/guestfish-actions.pod:465
6942 msgid ""
6943 "This call was added in version C<1.0.80>.  In previous versions of "
6944 "libguestfs all you could do would be to speculatively execute a command to "
6945 "find out if the daemon implemented it.  See also L</version>."
6946 msgstr ""
6947
6948 #. type: =head2
6949 #: ../fish/guestfish-actions.pod:472
6950 msgid "available-all-groups"
6951 msgstr ""
6952
6953 #. type: verbatim
6954 #: ../fish/guestfish-actions.pod:474
6955 #, no-wrap
6956 msgid ""
6957 " available-all-groups\n"
6958 "\n"
6959 msgstr ""
6960
6961 #. type: textblock
6962 #: ../fish/guestfish-actions.pod:476
6963 msgid ""
6964 "This command returns a list of all optional groups that this daemon knows "
6965 "about.  Note this returns both supported and unsupported groups.  To find "
6966 "out which ones the daemon can actually support you have to call "
6967 "L</available> on each member of the returned list."
6968 msgstr ""
6969
6970 #. type: textblock
6971 #: ../fish/guestfish-actions.pod:482
6972 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
6973 msgstr ""
6974
6975 #. type: =head2
6976 #: ../fish/guestfish-actions.pod:484
6977 msgid "base64-in"
6978 msgstr ""
6979
6980 #. type: verbatim
6981 #: ../fish/guestfish-actions.pod:486
6982 #, no-wrap
6983 msgid ""
6984 " base64-in (base64file|-) filename\n"
6985 "\n"
6986 msgstr ""
6987
6988 #. type: textblock
6989 #: ../fish/guestfish-actions.pod:488 ../src/guestfs-actions.pod:702
6990 msgid "This command uploads base64-encoded data from C<base64file> to C<filename>."
6991 msgstr ""
6992
6993 #. type: textblock
6994 #: ../fish/guestfish-actions.pod:491 ../fish/guestfish-actions.pod:500 ../fish/guestfish-actions.pod:749 ../fish/guestfish-actions.pod:833 ../fish/guestfish-actions.pod:854 ../fish/guestfish-actions.pod:1025 ../fish/guestfish-actions.pod:1044 ../fish/guestfish-actions.pod:1418 ../fish/guestfish-actions.pod:4966 ../fish/guestfish-actions.pod:4978 ../fish/guestfish-actions.pod:4989 ../fish/guestfish-actions.pod:5000 ../fish/guestfish-actions.pod:5131 ../fish/guestfish-actions.pod:5140 ../fish/guestfish-actions.pod:5194 ../fish/guestfish-actions.pod:5217
6995 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
6996 msgstr ""
6997
6998 #. type: =head2
6999 #: ../fish/guestfish-actions.pod:493
7000 msgid "base64-out"
7001 msgstr ""
7002
7003 #. type: verbatim
7004 #: ../fish/guestfish-actions.pod:495
7005 #, no-wrap
7006 msgid ""
7007 " base64-out filename (base64file|-)\n"
7008 "\n"
7009 msgstr ""
7010
7011 #. type: textblock
7012 #: ../fish/guestfish-actions.pod:497 ../src/guestfs-actions.pod:716
7013 msgid ""
7014 "This command downloads the contents of C<filename>, writing it out to local "
7015 "file C<base64file> encoded as base64."
7016 msgstr ""
7017
7018 #. type: =head2
7019 #: ../fish/guestfish-actions.pod:502
7020 msgid "blockdev-flushbufs"
7021 msgstr ""
7022
7023 #. type: verbatim
7024 #: ../fish/guestfish-actions.pod:504
7025 #, no-wrap
7026 msgid ""
7027 " blockdev-flushbufs device\n"
7028 "\n"
7029 msgstr ""
7030
7031 #. type: textblock
7032 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:729
7033 msgid "This tells the kernel to flush internal buffers associated with C<device>."
7034 msgstr ""
7035
7036 #. type: textblock
7037 #: ../fish/guestfish-actions.pod:509 ../fish/guestfish-actions.pod:520 ../fish/guestfish-actions.pod:529 ../fish/guestfish-actions.pod:539 ../fish/guestfish-actions.pod:551 ../fish/guestfish-actions.pod:564 ../fish/guestfish-actions.pod:572 ../fish/guestfish-actions.pod:583 ../fish/guestfish-actions.pod:591 ../fish/guestfish-actions.pod:599 ../src/guestfs-actions.pod:732 ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:764 ../src/guestfs-actions.pod:780 ../src/guestfs-actions.pod:798 ../src/guestfs-actions.pod:817 ../src/guestfs-actions.pod:831 ../src/guestfs-actions.pod:849 ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:877
7038 msgid "This uses the L<blockdev(8)> command."
7039 msgstr ""
7040
7041 #. type: =head2
7042 #: ../fish/guestfish-actions.pod:511
7043 msgid "blockdev-getbsz"
7044 msgstr ""
7045
7046 #. type: verbatim
7047 #: ../fish/guestfish-actions.pod:513
7048 #, no-wrap
7049 msgid ""
7050 " blockdev-getbsz device\n"
7051 "\n"
7052 msgstr ""
7053
7054 #. type: textblock
7055 #: ../fish/guestfish-actions.pod:515 ../src/guestfs-actions.pod:744
7056 msgid "This returns the block size of a device."
7057 msgstr ""
7058
7059 #. type: textblock
7060 #: ../fish/guestfish-actions.pod:517 ../fish/guestfish-actions.pod:580 ../src/guestfs-actions.pod:746 ../src/guestfs-actions.pod:846
7061 msgid ""
7062 "(Note this is different from both I<size in blocks> and I<filesystem block "
7063 "size>)."
7064 msgstr ""
7065
7066 #. type: =head2
7067 #: ../fish/guestfish-actions.pod:522
7068 msgid "blockdev-getro"
7069 msgstr ""
7070
7071 #. type: verbatim
7072 #: ../fish/guestfish-actions.pod:524
7073 #, no-wrap
7074 msgid ""
7075 " blockdev-getro device\n"
7076 "\n"
7077 msgstr ""
7078
7079 #. type: textblock
7080 #: ../fish/guestfish-actions.pod:526 ../src/guestfs-actions.pod:761
7081 msgid ""
7082 "Returns a boolean indicating if the block device is read-only (true if "
7083 "read-only, false if not)."
7084 msgstr ""
7085
7086 #. type: =head2
7087 #: ../fish/guestfish-actions.pod:531
7088 msgid "blockdev-getsize64"
7089 msgstr ""
7090
7091 #. type: verbatim
7092 #: ../fish/guestfish-actions.pod:533
7093 #, no-wrap
7094 msgid ""
7095 " blockdev-getsize64 device\n"
7096 "\n"
7097 msgstr ""
7098
7099 #. type: textblock
7100 #: ../fish/guestfish-actions.pod:535 ../src/guestfs-actions.pod:776
7101 msgid "This returns the size of the device in bytes."
7102 msgstr ""
7103
7104 #. type: textblock
7105 #: ../fish/guestfish-actions.pod:537
7106 msgid "See also L</blockdev-getsz>."
7107 msgstr ""
7108
7109 #. type: =head2
7110 #: ../fish/guestfish-actions.pod:541
7111 msgid "blockdev-getss"
7112 msgstr ""
7113
7114 #. type: verbatim
7115 #: ../fish/guestfish-actions.pod:543
7116 #, no-wrap
7117 msgid ""
7118 " blockdev-getss device\n"
7119 "\n"
7120 msgstr ""
7121
7122 #. type: textblock
7123 #: ../fish/guestfish-actions.pod:545 ../src/guestfs-actions.pod:792
7124 msgid ""
7125 "This returns the size of sectors on a block device.  Usually 512, but can be "
7126 "larger for modern devices."
7127 msgstr ""
7128
7129 #. type: textblock
7130 #: ../fish/guestfish-actions.pod:548
7131 msgid "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
7132 msgstr ""
7133
7134 #. type: =head2
7135 #: ../fish/guestfish-actions.pod:553
7136 msgid "blockdev-getsz"
7137 msgstr ""
7138
7139 #. type: verbatim
7140 #: ../fish/guestfish-actions.pod:555
7141 #, no-wrap
7142 msgid ""
7143 " blockdev-getsz device\n"
7144 "\n"
7145 msgstr ""
7146
7147 #. type: textblock
7148 #: ../fish/guestfish-actions.pod:557 ../src/guestfs-actions.pod:810
7149 msgid ""
7150 "This returns the size of the device in units of 512-byte sectors (even if "
7151 "the sectorsize isn't 512 bytes ... weird)."
7152 msgstr ""
7153
7154 #. type: textblock
7155 #: ../fish/guestfish-actions.pod:560
7156 msgid ""
7157 "See also L</blockdev-getss> for the real sector size of the device, and "
7158 "L</blockdev-getsize64> for the more useful I<size in bytes>."
7159 msgstr ""
7160
7161 #. type: =head2
7162 #: ../fish/guestfish-actions.pod:566
7163 msgid "blockdev-rereadpt"
7164 msgstr ""
7165
7166 #. type: verbatim
7167 #: ../fish/guestfish-actions.pod:568
7168 #, no-wrap
7169 msgid ""
7170 " blockdev-rereadpt device\n"
7171 "\n"
7172 msgstr ""
7173
7174 #. type: textblock
7175 #: ../fish/guestfish-actions.pod:570 ../src/guestfs-actions.pod:829
7176 msgid "Reread the partition table on C<device>."
7177 msgstr ""
7178
7179 #. type: =head2
7180 #: ../fish/guestfish-actions.pod:574
7181 msgid "blockdev-setbsz"
7182 msgstr ""
7183
7184 #. type: verbatim
7185 #: ../fish/guestfish-actions.pod:576
7186 #, no-wrap
7187 msgid ""
7188 " blockdev-setbsz device blocksize\n"
7189 "\n"
7190 msgstr ""
7191
7192 #. type: textblock
7193 #: ../fish/guestfish-actions.pod:578 ../src/guestfs-actions.pod:844
7194 msgid "This sets the block size of a device."
7195 msgstr ""
7196
7197 #. type: =head2
7198 #: ../fish/guestfish-actions.pod:585
7199 msgid "blockdev-setro"
7200 msgstr ""
7201
7202 #. type: verbatim
7203 #: ../fish/guestfish-actions.pod:587
7204 #, no-wrap
7205 msgid ""
7206 " blockdev-setro device\n"
7207 "\n"
7208 msgstr ""
7209
7210 #. type: textblock
7211 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:861
7212 msgid "Sets the block device named C<device> to read-only."
7213 msgstr ""
7214
7215 #. type: =head2
7216 #: ../fish/guestfish-actions.pod:593
7217 msgid "blockdev-setrw"
7218 msgstr ""
7219
7220 #. type: verbatim
7221 #: ../fish/guestfish-actions.pod:595
7222 #, no-wrap
7223 msgid ""
7224 " blockdev-setrw device\n"
7225 "\n"
7226 msgstr ""
7227
7228 #. type: textblock
7229 #: ../fish/guestfish-actions.pod:597 ../src/guestfs-actions.pod:875
7230 msgid "Sets the block device named C<device> to read-write."
7231 msgstr ""
7232
7233 #. type: =head2
7234 #: ../fish/guestfish-actions.pod:601
7235 msgid "btrfs-filesystem-resize"
7236 msgstr ""
7237
7238 #. type: verbatim
7239 #: ../fish/guestfish-actions.pod:603
7240 #, no-wrap
7241 msgid ""
7242 " btrfs-filesystem-resize mountpoint [size:N]\n"
7243 "\n"
7244 msgstr ""
7245
7246 #. type: textblock
7247 #: ../fish/guestfish-actions.pod:605 ../src/guestfs-actions.pod:897
7248 msgid "This command resizes a btrfs filesystem."
7249 msgstr ""
7250
7251 #. type: textblock
7252 #: ../fish/guestfish-actions.pod:607 ../src/guestfs-actions.pod:899
7253 msgid ""
7254 "Note that unlike other resize calls, the filesystem has to be mounted and "
7255 "the parameter is the mountpoint not the device (this is a requirement of "
7256 "btrfs itself)."
7257 msgstr ""
7258
7259 #. type: textblock
7260 #: ../fish/guestfish-actions.pod:611 ../fish/guestfish-actions.pod:3168 ../fish/guestfish-actions.pod:3714 ../fish/guestfish-actions.pod:5040 ../src/guestfs-actions.pod:903 ../src/guestfs-actions.pod:4896 ../src/guestfs-actions.pod:5803 ../src/guestfs-actions.pod:7779
7261 msgid "The optional parameters are:"
7262 msgstr ""
7263
7264 #. type: =item
7265 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3718 ../src/guestfs-actions.pod:907 ../src/guestfs-actions.pod:5807
7266 msgid "C<size>"
7267 msgstr ""
7268
7269 #. type: textblock
7270 #: ../fish/guestfish-actions.pod:617 ../src/guestfs-actions.pod:909
7271 msgid ""
7272 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
7273 "resized to the maximum size."
7274 msgstr ""
7275
7276 #. type: textblock
7277 #: ../fish/guestfish-actions.pod:622 ../src/guestfs-actions.pod:914
7278 msgid "See also L<btrfs(8)>."
7279 msgstr ""
7280
7281 #. type: =head2
7282 #: ../fish/guestfish-actions.pod:626
7283 msgid "case-sensitive-path"
7284 msgstr ""
7285
7286 #. type: verbatim
7287 #: ../fish/guestfish-actions.pod:628
7288 #, no-wrap
7289 msgid ""
7290 " case-sensitive-path path\n"
7291 "\n"
7292 msgstr ""
7293
7294 #. type: textblock
7295 #: ../fish/guestfish-actions.pod:630 ../src/guestfs-actions.pod:948
7296 msgid ""
7297 "This can be used to resolve case insensitive paths on a filesystem which is "
7298 "case sensitive.  The use case is to resolve paths which you have read from "
7299 "Windows configuration files or the Windows Registry, to the true path."
7300 msgstr ""
7301
7302 #. type: textblock
7303 #: ../fish/guestfish-actions.pod:635 ../src/guestfs-actions.pod:953
7304 msgid ""
7305 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
7306 "(and probably others), which is that although the underlying filesystem is "
7307 "case-insensitive, the driver exports the filesystem to Linux as "
7308 "case-sensitive."
7309 msgstr ""
7310
7311 #. type: textblock
7312 #: ../fish/guestfish-actions.pod:640 ../src/guestfs-actions.pod:958
7313 msgid ""
7314 "One consequence of this is that special directories such as C<c:\\windows> "
7315 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
7316 "precise details of how they were created.  In Windows itself this would not "
7317 "be a problem."
7318 msgstr ""
7319
7320 #. type: textblock
7321 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:964
7322 msgid ""
7323 "Bug or feature? You decide: "
7324 "L<http://www.tuxera.com/community/ntfs-3g-faq/#posixfilenames1>"
7325 msgstr ""
7326
7327 #. type: textblock
7328 #: ../fish/guestfish-actions.pod:649 ../src/guestfs-actions.pod:967
7329 msgid ""
7330 "This function resolves the true case of each element in the path and returns "
7331 "the case-sensitive path."
7332 msgstr ""
7333
7334 #. type: textblock
7335 #: ../fish/guestfish-actions.pod:652
7336 msgid ""
7337 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return "
7338 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
7339 "how the directories were originally created under Windows)."
7340 msgstr ""
7341
7342 #. type: textblock
7343 #: ../fish/guestfish-actions.pod:657 ../src/guestfs-actions.pod:975
7344 msgid "I<Note>: This function does not handle drive names, backslashes etc."
7345 msgstr ""
7346
7347 #. type: textblock
7348 #: ../fish/guestfish-actions.pod:660
7349 msgid "See also L</realpath>."
7350 msgstr ""
7351
7352 #. type: =head2
7353 #: ../fish/guestfish-actions.pod:662
7354 msgid "cat"
7355 msgstr ""
7356
7357 #. type: verbatim
7358 #: ../fish/guestfish-actions.pod:664
7359 #, no-wrap
7360 msgid ""
7361 " cat path\n"
7362 "\n"
7363 msgstr ""
7364
7365 #. type: textblock
7366 #: ../fish/guestfish-actions.pod:666 ../fish/guestfish-actions.pod:4145 ../src/guestfs-actions.pod:991 ../src/guestfs-actions.pod:6463
7367 msgid "Return the contents of the file named C<path>."
7368 msgstr ""
7369
7370 #. type: textblock
7371 #: ../fish/guestfish-actions.pod:668
7372 msgid ""
7373 "Note that this function cannot correctly handle binary files (specifically, "
7374 "files containing C<\\0> character which is treated as end of string).  For "
7375 "those you need to use the L</read-file> or L</download> functions which have "
7376 "a more complex interface."
7377 msgstr ""
7378
7379 #. type: textblock
7380 #: ../fish/guestfish-actions.pod:673 ../fish/guestfish-actions.pod:808 ../fish/guestfish-actions.pod:820 ../fish/guestfish-actions.pod:1103 ../fish/guestfish-actions.pod:1113 ../fish/guestfish-actions.pod:1180 ../fish/guestfish-actions.pod:1190 ../fish/guestfish-actions.pod:1382 ../fish/guestfish-actions.pod:1695 ../fish/guestfish-actions.pod:1705 ../fish/guestfish-actions.pod:1755 ../fish/guestfish-actions.pod:1770 ../fish/guestfish-actions.pod:1780 ../fish/guestfish-actions.pod:1799 ../fish/guestfish-actions.pod:4015 ../fish/guestfish-actions.pod:4030 ../fish/guestfish-actions.pod:4106 ../fish/guestfish-actions.pod:4123 ../fish/guestfish-actions.pod:4138 ../fish/guestfish-actions.pod:4807 ../fish/guestfish-actions.pod:4853 ../fish/guestfish-actions.pod:4938 ../fish/guestfish-actions.pod:4953 ../fish/guestfish-actions.pod:5438 ../fish/guestfish-actions.pod:5450 ../fish/guestfish-actions.pod:5468 ../fish/guestfish-actions.pod:5485 ../fish/guestfish-actions.pod:5495 ../fish/guestfish-actions.pod:5549 ../fish/guestfish-actions.pod:5559 ../fish/guestfish-actions.pod:5588 ../fish/guestfish-actions.pod:5598 ../src/guestfs-actions.pod:1001 ../src/guestfs-actions.pod:1180 ../src/guestfs-actions.pod:1200 ../src/guestfs-actions.pod:1855 ../src/guestfs-actions.pod:1874 ../src/guestfs-actions.pod:1977 ../src/guestfs-actions.pod:1996 ../src/guestfs-actions.pod:2242 ../src/guestfs-actions.pod:2724 ../src/guestfs-actions.pod:2743 ../src/guestfs-actions.pod:2808 ../src/guestfs-actions.pod:2832 ../src/guestfs-actions.pod:2849 ../src/guestfs-actions.pod:2878 ../src/guestfs-actions.pod:6245 ../src/guestfs-actions.pod:6271 ../src/guestfs-actions.pod:6402 ../src/guestfs-actions.pod:6428 ../src/guestfs-actions.pod:6452 ../src/guestfs-actions.pod:7407 ../src/guestfs-actions.pod:7462 ../src/guestfs-actions.pod:7608 ../src/guestfs-actions.pod:7632 ../src/guestfs-actions.pod:8419 ../src/guestfs-actions.pod:8439 ../src/guestfs-actions.pod:8472 ../src/guestfs-actions.pod:8491 ../src/guestfs-actions.pod:8510 ../src/guestfs-actions.pod:8601 ../src/guestfs-actions.pod:8620 ../src/guestfs-actions.pod:8666 ../src/guestfs-actions.pod:8685
7381 msgid ""
7382 "Because of the message protocol, there is a transfer limit of somewhere "
7383 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
7384 msgstr ""
7385
7386 #. type: =head2
7387 #: ../fish/guestfish-actions.pod:676
7388 msgid "checksum"
7389 msgstr ""
7390
7391 #. type: verbatim
7392 #: ../fish/guestfish-actions.pod:678
7393 #, no-wrap
7394 msgid ""
7395 " checksum csumtype path\n"
7396 "\n"
7397 msgstr ""
7398
7399 #. type: textblock
7400 #: ../fish/guestfish-actions.pod:680 ../src/guestfs-actions.pod:1013
7401 msgid "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
7402 msgstr ""
7403
7404 #. type: textblock
7405 #: ../fish/guestfish-actions.pod:683 ../src/guestfs-actions.pod:1016
7406 msgid ""
7407 "The type of checksum to compute is given by the C<csumtype> parameter which "
7408 "must have one of the following values:"
7409 msgstr ""
7410
7411 #. type: =item
7412 #: ../fish/guestfish-actions.pod:688 ../src/guestfs-actions.pod:1021
7413 msgid "C<crc>"
7414 msgstr ""
7415
7416 #. type: textblock
7417 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1023
7418 msgid ""
7419 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
7420 "C<cksum> command."
7421 msgstr ""
7422
7423 #. type: =item
7424 #: ../fish/guestfish-actions.pod:693 ../src/guestfs-actions.pod:1026
7425 msgid "C<md5>"
7426 msgstr ""
7427
7428 #. type: textblock
7429 #: ../fish/guestfish-actions.pod:695 ../src/guestfs-actions.pod:1028
7430 msgid "Compute the MD5 hash (using the C<md5sum> program)."
7431 msgstr ""
7432
7433 #. type: =item
7434 #: ../fish/guestfish-actions.pod:697 ../src/guestfs-actions.pod:1030
7435 msgid "C<sha1>"
7436 msgstr ""
7437
7438 #. type: textblock
7439 #: ../fish/guestfish-actions.pod:699 ../src/guestfs-actions.pod:1032
7440 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
7441 msgstr ""
7442
7443 #. type: =item
7444 #: ../fish/guestfish-actions.pod:701 ../src/guestfs-actions.pod:1034
7445 msgid "C<sha224>"
7446 msgstr ""
7447
7448 #. type: textblock
7449 #: ../fish/guestfish-actions.pod:703 ../src/guestfs-actions.pod:1036
7450 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
7451 msgstr ""
7452
7453 #. type: =item
7454 #: ../fish/guestfish-actions.pod:705 ../src/guestfs-actions.pod:1038
7455 msgid "C<sha256>"
7456 msgstr ""
7457
7458 #. type: textblock
7459 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1040
7460 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
7461 msgstr ""
7462
7463 #. type: =item
7464 #: ../fish/guestfish-actions.pod:709 ../src/guestfs-actions.pod:1042
7465 msgid "C<sha384>"
7466 msgstr ""
7467
7468 #. type: textblock
7469 #: ../fish/guestfish-actions.pod:711 ../src/guestfs-actions.pod:1044
7470 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
7471 msgstr ""
7472
7473 #. type: =item
7474 #: ../fish/guestfish-actions.pod:713 ../src/guestfs-actions.pod:1046
7475 msgid "C<sha512>"
7476 msgstr ""
7477
7478 #. type: textblock
7479 #: ../fish/guestfish-actions.pod:715 ../src/guestfs-actions.pod:1048
7480 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
7481 msgstr ""
7482
7483 #. type: textblock
7484 #: ../fish/guestfish-actions.pod:719 ../src/guestfs-actions.pod:1052
7485 msgid "The checksum is returned as a printable string."
7486 msgstr ""
7487
7488 #. type: textblock
7489 #: ../fish/guestfish-actions.pod:721
7490 msgid "To get the checksum for a device, use L</checksum-device>."
7491 msgstr ""
7492
7493 #. type: textblock
7494 #: ../fish/guestfish-actions.pod:723
7495 msgid "To get the checksums for many files, use L</checksums-out>."
7496 msgstr ""
7497
7498 #. type: =head2
7499 #: ../fish/guestfish-actions.pod:725
7500 msgid "checksum-device"
7501 msgstr ""
7502
7503 #. type: verbatim
7504 #: ../fish/guestfish-actions.pod:727
7505 #, no-wrap
7506 msgid ""
7507 " checksum-device csumtype device\n"
7508 "\n"
7509 msgstr ""
7510
7511 #. type: textblock
7512 #: ../fish/guestfish-actions.pod:729
7513 msgid ""
7514 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
7515 "device named C<device>.  For the types of checksums supported see the "
7516 "L</checksum> command."
7517 msgstr ""
7518
7519 #. type: =head2
7520 #: ../fish/guestfish-actions.pod:733
7521 msgid "checksums-out"
7522 msgstr ""
7523
7524 #. type: verbatim
7525 #: ../fish/guestfish-actions.pod:735
7526 #, no-wrap
7527 msgid ""
7528 " checksums-out csumtype directory (sumsfile|-)\n"
7529 "\n"
7530 msgstr ""
7531
7532 #. type: textblock
7533 #: ../fish/guestfish-actions.pod:737 ../src/guestfs-actions.pod:1087
7534 msgid ""
7535 "This command computes the checksums of all regular files in C<directory> and "
7536 "then emits a list of those checksums to the local output file C<sumsfile>."
7537 msgstr ""
7538
7539 #. type: textblock
7540 #: ../fish/guestfish-actions.pod:741 ../src/guestfs-actions.pod:1091
7541 msgid ""
7542 "This can be used for verifying the integrity of a virtual machine.  However "
7543 "to be properly secure you should pay attention to the output of the checksum "
7544 "command (it uses the ones from GNU coreutils).  In particular when the "
7545 "filename is not printable, coreutils uses a special backslash syntax.  For "
7546 "more information, see the GNU coreutils info file."
7547 msgstr ""
7548
7549 #. type: =head2
7550 #: ../fish/guestfish-actions.pod:751
7551 msgid "chmod"
7552 msgstr ""
7553
7554 #. type: verbatim
7555 #: ../fish/guestfish-actions.pod:753
7556 #, no-wrap
7557 msgid ""
7558 " chmod mode path\n"
7559 "\n"
7560 msgstr ""
7561
7562 #. type: textblock
7563 #: ../fish/guestfish-actions.pod:755 ../src/guestfs-actions.pod:1110
7564 msgid ""
7565 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
7566 "supported."
7567 msgstr ""
7568
7569 #. type: textblock
7570 #: ../fish/guestfish-actions.pod:758 ../src/guestfs-actions.pod:1113
7571 msgid ""
7572 "I<Note>: When using this command from guestfish, C<mode> by default would be "
7573 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
7574 "C<700>."
7575 msgstr ""
7576
7577 #. type: textblock
7578 #: ../fish/guestfish-actions.pod:762 ../fish/guestfish-actions.pod:3367 ../fish/guestfish-actions.pod:3506 ../fish/guestfish-actions.pod:3516 ../fish/guestfish-actions.pod:3526 ../src/guestfs-actions.pod:1117 ../src/guestfs-actions.pod:5210 ../src/guestfs-actions.pod:5419 ../src/guestfs-actions.pod:5438 ../src/guestfs-actions.pod:5457
7579 msgid "The mode actually set is affected by the umask."
7580 msgstr ""
7581
7582 #. type: =head2
7583 #: ../fish/guestfish-actions.pod:764
7584 msgid "chown"
7585 msgstr ""
7586
7587 #. type: verbatim
7588 #: ../fish/guestfish-actions.pod:766
7589 #, no-wrap
7590 msgid ""
7591 " chown owner group path\n"
7592 "\n"
7593 msgstr ""
7594
7595 #. type: textblock
7596 #: ../fish/guestfish-actions.pod:768 ../src/guestfs-actions.pod:1131
7597 msgid "Change the file owner to C<owner> and group to C<group>."
7598 msgstr ""
7599
7600 #. type: textblock
7601 #: ../fish/guestfish-actions.pod:770 ../fish/guestfish-actions.pod:2707 ../src/guestfs-actions.pod:1133 ../src/guestfs-actions.pod:4128
7602 msgid ""
7603 "Only numeric uid and gid are supported.  If you want to use names, you will "
7604 "need to locate and parse the password file yourself (Augeas support makes "
7605 "this relatively easy)."
7606 msgstr ""
7607
7608 #. type: =head2
7609 #: ../fish/guestfish-actions.pod:774
7610 msgid "command"
7611 msgstr ""
7612
7613 #. type: verbatim
7614 #: ../fish/guestfish-actions.pod:776
7615 #, no-wrap
7616 msgid ""
7617 " command 'arguments ...'\n"
7618 "\n"
7619 msgstr ""
7620
7621 #. type: textblock
7622 #: ../fish/guestfish-actions.pod:778 ../src/guestfs-actions.pod:1147
7623 msgid ""
7624 "This call runs a command from the guest filesystem.  The filesystem must be "
7625 "mounted, and must contain a compatible operating system (ie. something "
7626 "Linux, with the same or compatible processor architecture)."
7627 msgstr ""
7628
7629 #. type: textblock
7630 #: ../fish/guestfish-actions.pod:783
7631 msgid ""
7632 "The single parameter is an argv-style list of arguments.  The first element "
7633 "is the name of the program to run.  Subsequent elements are parameters.  The "
7634 "list must be non-empty (ie. must contain a program name).  Note that the "
7635 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
7636 msgstr ""
7637
7638 #. type: textblock
7639 #: ../fish/guestfish-actions.pod:790 ../src/guestfs-actions.pod:1159
7640 msgid "The return value is anything printed to I<stdout> by the command."
7641 msgstr ""
7642
7643 #. type: textblock
7644 #: ../fish/guestfish-actions.pod:793 ../src/guestfs-actions.pod:1162
7645 msgid ""
7646 "If the command returns a non-zero exit status, then this function returns an "
7647 "error message.  The error message string is the content of I<stderr> from "
7648 "the command."
7649 msgstr ""
7650
7651 #. type: textblock
7652 #: ../fish/guestfish-actions.pod:797 ../src/guestfs-actions.pod:1166
7653 msgid ""
7654 "The C<$PATH> environment variable will contain at least C</usr/bin> and "
7655 "C</bin>.  If you require a program from another location, you should provide "
7656 "the full path in the first parameter."
7657 msgstr ""
7658
7659 #. type: textblock
7660 #: ../fish/guestfish-actions.pod:802 ../src/guestfs-actions.pod:1171
7661 msgid ""
7662 "Shared libraries and data files required by the program must be available on "
7663 "filesystems which are mounted in the correct places.  It is the caller's "
7664 "responsibility to ensure all filesystems that are needed are mounted at the "
7665 "right locations."
7666 msgstr ""
7667
7668 #. type: =head2
7669 #: ../fish/guestfish-actions.pod:811
7670 msgid "command-lines"
7671 msgstr ""
7672
7673 #. type: verbatim
7674 #: ../fish/guestfish-actions.pod:813
7675 #, no-wrap
7676 msgid ""
7677 " command-lines 'arguments ...'\n"
7678 "\n"
7679 msgstr ""
7680
7681 #. type: textblock
7682 #: ../fish/guestfish-actions.pod:815
7683 msgid "This is the same as L</command>, but splits the result into a list of lines."
7684 msgstr ""
7685
7686 #. type: textblock
7687 #: ../fish/guestfish-actions.pod:818
7688 msgid "See also: L</sh-lines>"
7689 msgstr ""
7690
7691 #. type: =head2
7692 #: ../fish/guestfish-actions.pod:823
7693 msgid "compress-device-out"
7694 msgstr ""
7695
7696 #. type: verbatim
7697 #: ../fish/guestfish-actions.pod:825
7698 #, no-wrap
7699 msgid ""
7700 " compress-device-out ctype device (zdevice|-) [level:N]\n"
7701 "\n"
7702 msgstr ""
7703
7704 #. type: textblock
7705 #: ../fish/guestfish-actions.pod:827 ../src/guestfs-actions.pod:1221
7706 msgid ""
7707 "This command compresses C<device> and writes it out to the local file "
7708 "C<zdevice>."
7709 msgstr ""
7710
7711 #. type: textblock
7712 #: ../fish/guestfish-actions.pod:830
7713 msgid ""
7714 "The C<ctype> and optional C<level> parameters have the same meaning as in "
7715 "L</compress-out>."
7716 msgstr ""
7717
7718 #. type: =head2
7719 #: ../fish/guestfish-actions.pod:837
7720 msgid "compress-out"
7721 msgstr ""
7722
7723 #. type: verbatim
7724 #: ../fish/guestfish-actions.pod:839
7725 #, no-wrap
7726 msgid ""
7727 " compress-out ctype file (zfile|-) [level:N]\n"
7728 "\n"
7729 msgstr ""
7730
7731 #. type: textblock
7732 #: ../fish/guestfish-actions.pod:841 ../src/guestfs-actions.pod:1273
7733 msgid ""
7734 "This command compresses C<file> and writes it out to the local file "
7735 "C<zfile>."
7736 msgstr ""
7737
7738 #. type: textblock
7739 #: ../fish/guestfish-actions.pod:844 ../src/guestfs-actions.pod:1276
7740 msgid ""
7741 "The compression program used is controlled by the C<ctype> parameter.  "
7742 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>.  "
7743 "Some compression types may not be supported by particular builds of "
7744 "libguestfs, in which case you will get an error containing the substring "
7745 "\"not supported\"."
7746 msgstr ""
7747
7748 #. type: textblock
7749 #: ../fish/guestfish-actions.pod:850 ../src/guestfs-actions.pod:1282
7750 msgid ""
7751 "The optional C<level> parameter controls compression level.  The meaning and "
7752 "default for this parameter depends on the compression program being used."
7753 msgstr ""
7754
7755 #. type: =head2
7756 #: ../fish/guestfish-actions.pod:858
7757 msgid "config"
7758 msgstr ""
7759
7760 #. type: verbatim
7761 #: ../fish/guestfish-actions.pod:860
7762 #, no-wrap
7763 msgid ""
7764 " config qemuparam qemuvalue\n"
7765 "\n"
7766 msgstr ""
7767
7768 #. type: textblock
7769 #: ../fish/guestfish-actions.pod:862 ../src/guestfs-actions.pod:1323
7770 msgid ""
7771 "This can be used to add arbitrary qemu command line parameters of the form "
7772 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
7773 "setting some parameters which would interfere with parameters that we use."
7774 msgstr ""
7775
7776 #. type: textblock
7777 #: ../fish/guestfish-actions.pod:867 ../src/guestfs-actions.pod:1328
7778 msgid "The first character of C<param> string must be a C<-> (dash)."
7779 msgstr ""
7780
7781 #. type: textblock
7782 #: ../fish/guestfish-actions.pod:869 ../src/guestfs-actions.pod:1330
7783 msgid "C<value> can be NULL."
7784 msgstr ""
7785
7786 #. type: =head2
7787 #: ../fish/guestfish-actions.pod:871
7788 msgid "copy-device-to-device"
7789 msgstr ""
7790
7791 #. type: verbatim
7792 #: ../fish/guestfish-actions.pod:873
7793 #, no-wrap
7794 msgid ""
7795 " copy-device-to-device src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7796 "\n"
7797 msgstr ""
7798
7799 #. type: textblock
7800 #: ../fish/guestfish-actions.pod:875
7801 msgid ""
7802 "The four calls L</copy-device-to-device>, L</copy-device-to-file>, "
7803 "L</copy-file-to-device>, and L</copy-file-to-file> let you copy from a "
7804 "source (device|file) to a destination (device|file)."
7805 msgstr ""
7806
7807 #. type: textblock
7808 #: ../fish/guestfish-actions.pod:882 ../src/guestfs-actions.pod:1360
7809 msgid ""
7810 "Partial copies can be made since you can specify optionally the source "
7811 "offset, destination offset and size to copy.  These values are all specified "
7812 "in bytes.  If not given, the offsets both default to zero, and the size "
7813 "defaults to copying as much as possible until we hit the end of the source."
7814 msgstr ""
7815
7816 #. type: textblock
7817 #: ../fish/guestfish-actions.pod:888 ../src/guestfs-actions.pod:1366
7818 msgid ""
7819 "The source and destination may be the same object.  However overlapping "
7820 "regions may not be copied correctly."
7821 msgstr ""
7822
7823 #. type: textblock
7824 #: ../fish/guestfish-actions.pod:891 ../src/guestfs-actions.pod:1369
7825 msgid ""
7826 "If the destination is a file, it is created if required.  If the destination "
7827 "file is not large enough, it is extended."
7828 msgstr ""
7829
7830 #. type: =head2
7831 #: ../fish/guestfish-actions.pod:896
7832 msgid "copy-device-to-file"
7833 msgstr ""
7834
7835 #. type: verbatim
7836 #: ../fish/guestfish-actions.pod:898
7837 #, no-wrap
7838 msgid ""
7839 " copy-device-to-file src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7840 "\n"
7841 msgstr ""
7842
7843 #. type: textblock
7844 #: ../fish/guestfish-actions.pod:900 ../fish/guestfish-actions.pod:909 ../fish/guestfish-actions.pod:918
7845 msgid "See L</copy-device-to-device> for a general overview of this call."
7846 msgstr ""
7847
7848 #. type: =head2
7849 #: ../fish/guestfish-actions.pod:905
7850 msgid "copy-file-to-device"
7851 msgstr ""
7852
7853 #. type: verbatim
7854 #: ../fish/guestfish-actions.pod:907
7855 #, no-wrap
7856 msgid ""
7857 " copy-file-to-device src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7858 "\n"
7859 msgstr ""
7860
7861 #. type: =head2
7862 #: ../fish/guestfish-actions.pod:914
7863 msgid "copy-file-to-file"
7864 msgstr ""
7865
7866 #. type: verbatim
7867 #: ../fish/guestfish-actions.pod:916
7868 #, no-wrap
7869 msgid ""
7870 " copy-file-to-file src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7871 "\n"
7872 msgstr ""
7873
7874 #. type: textblock
7875 #: ../fish/guestfish-actions.pod:921
7876 msgid ""
7877 "This is B<not> the function you want for copying files.  This is for copying "
7878 "blocks within existing files.  See L</cp>, L</cp-a> and L</mv> for general "
7879 "file copying and moving functions."
7880 msgstr ""
7881
7882 #. type: =head2
7883 #: ../fish/guestfish-actions.pod:928
7884 msgid "copy-size"
7885 msgstr ""
7886
7887 #. type: verbatim
7888 #: ../fish/guestfish-actions.pod:930
7889 #, no-wrap
7890 msgid ""
7891 " copy-size src dest size\n"
7892 "\n"
7893 msgstr ""
7894
7895 #. type: textblock
7896 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1584
7897 msgid ""
7898 "This command copies exactly C<size> bytes from one source device or file "
7899 "C<src> to another destination device or file C<dest>."
7900 msgstr ""
7901
7902 #. type: textblock
7903 #: ../fish/guestfish-actions.pod:935 ../src/guestfs-actions.pod:1587
7904 msgid ""
7905 "Note this will fail if the source is too short or if the destination is not "
7906 "large enough."
7907 msgstr ""
7908
7909 #. type: textblock
7910 #: ../fish/guestfish-actions.pod:938 ../fish/guestfish-actions.pod:973
7911 msgid ""
7912 "I<This function is deprecated.> In new code, use the "
7913 "L</copy_device_to_device> call instead."
7914 msgstr ""
7915
7916 #. type: =head2
7917 #: ../fish/guestfish-actions.pod:945
7918 msgid "cp"
7919 msgstr ""
7920
7921 #. type: verbatim
7922 #: ../fish/guestfish-actions.pod:947
7923 #, no-wrap
7924 msgid ""
7925 " cp src dest\n"
7926 "\n"
7927 msgstr ""
7928
7929 #. type: textblock
7930 #: ../fish/guestfish-actions.pod:949 ../src/guestfs-actions.pod:1606
7931 msgid ""
7932 "This copies a file from C<src> to C<dest> where C<dest> is either a "
7933 "destination filename or destination directory."
7934 msgstr ""
7935
7936 #. type: =head2
7937 #: ../fish/guestfish-actions.pod:952
7938 msgid "cp-a"
7939 msgstr ""
7940
7941 #. type: verbatim
7942 #: ../fish/guestfish-actions.pod:954
7943 #, no-wrap
7944 msgid ""
7945 " cp-a src dest\n"
7946 "\n"
7947 msgstr ""
7948
7949 #. type: textblock
7950 #: ../fish/guestfish-actions.pod:956 ../src/guestfs-actions.pod:1620
7951 msgid ""
7952 "This copies a file or directory from C<src> to C<dest> recursively using the "
7953 "C<cp -a> command."
7954 msgstr ""
7955
7956 #. type: =head2
7957 #: ../fish/guestfish-actions.pod:959
7958 msgid "dd"
7959 msgstr ""
7960
7961 #. type: verbatim
7962 #: ../fish/guestfish-actions.pod:961
7963 #, no-wrap
7964 msgid ""
7965 " dd src dest\n"
7966 "\n"
7967 msgstr ""
7968
7969 #. type: textblock
7970 #: ../fish/guestfish-actions.pod:963 ../src/guestfs-actions.pod:1641
7971 msgid ""
7972 "This command copies from one source device or file C<src> to another "
7973 "destination device or file C<dest>.  Normally you would use this to copy to "
7974 "or from a device or partition, for example to duplicate a filesystem."
7975 msgstr ""
7976
7977 #. type: textblock
7978 #: ../fish/guestfish-actions.pod:968
7979 msgid ""
7980 "If the destination is a device, it must be as large or larger than the "
7981 "source file or device, otherwise the copy will fail.  This command cannot do "
7982 "partial copies (see L</copy-device-to-device>)."
7983 msgstr ""
7984
7985 #. type: =head2
7986 #: ../fish/guestfish-actions.pod:980
7987 msgid "df"
7988 msgstr ""
7989
7990 #. type: verbatim
7991 #: ../fish/guestfish-actions.pod:982
7992 #, no-wrap
7993 msgid ""
7994 " df\n"
7995 "\n"
7996 msgstr ""
7997
7998 #. type: textblock
7999 #: ../fish/guestfish-actions.pod:984 ../src/guestfs-actions.pod:1660
8000 msgid "This command runs the C<df> command to report disk space used."
8001 msgstr ""
8002
8003 #. type: textblock
8004 #: ../fish/guestfish-actions.pod:986 ../fish/guestfish-actions.pod:997
8005 msgid ""
8006 "This command is mostly useful for interactive sessions.  It is I<not> "
8007 "intended that you try to parse the output string.  Use L</statvfs> from "
8008 "programs."
8009 msgstr ""
8010
8011 #. type: =head2
8012 #: ../fish/guestfish-actions.pod:990
8013 msgid "df-h"
8014 msgstr ""
8015
8016 #. type: verbatim
8017 #: ../fish/guestfish-actions.pod:992
8018 #, no-wrap
8019 msgid ""
8020 " df-h\n"
8021 "\n"
8022 msgstr ""
8023
8024 #. type: textblock
8025 #: ../fish/guestfish-actions.pod:994 ../src/guestfs-actions.pod:1676
8026 msgid ""
8027 "This command runs the C<df -h> command to report disk space used in "
8028 "human-readable format."
8029 msgstr ""
8030
8031 #. type: =head2
8032 #: ../fish/guestfish-actions.pod:1001
8033 msgid "dmesg"
8034 msgstr ""
8035
8036 #. type: verbatim
8037 #: ../fish/guestfish-actions.pod:1003
8038 #, no-wrap
8039 msgid ""
8040 " dmesg\n"
8041 "\n"
8042 msgstr ""
8043
8044 #. type: textblock
8045 #: ../fish/guestfish-actions.pod:1005 ../src/guestfs-actions.pod:1693
8046 msgid ""
8047 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
8048 "This is sometimes useful for extended debugging of problems."
8049 msgstr ""
8050
8051 #. type: textblock
8052 #: ../fish/guestfish-actions.pod:1009
8053 msgid ""
8054 "Another way to get the same information is to enable verbose messages with "
8055 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
8056 "before running the program."
8057 msgstr ""
8058
8059 #. type: =head2
8060 #: ../fish/guestfish-actions.pod:1014
8061 msgid "download"
8062 msgstr ""
8063
8064 #. type: verbatim
8065 #: ../fish/guestfish-actions.pod:1016
8066 #, no-wrap
8067 msgid ""
8068 " download remotefilename (filename|-)\n"
8069 "\n"
8070 msgstr ""
8071
8072 #. type: textblock
8073 #: ../fish/guestfish-actions.pod:1018 ../fish/guestfish-actions.pod:1031 ../src/guestfs-actions.pod:1714 ../src/guestfs-actions.pod:1739
8074 msgid ""
8075 "Download file C<remotefilename> and save it as C<filename> on the local "
8076 "machine."
8077 msgstr ""
8078
8079 #. type: textblock
8080 #: ../fish/guestfish-actions.pod:1021 ../fish/guestfish-actions.pod:5190 ../src/guestfs-actions.pod:1717 ../src/guestfs-actions.pod:7989
8081 msgid "C<filename> can also be a named pipe."
8082 msgstr ""
8083
8084 #. type: textblock
8085 #: ../fish/guestfish-actions.pod:1023
8086 msgid "See also L</upload>, L</cat>."
8087 msgstr ""
8088
8089 #. type: =head2
8090 #: ../fish/guestfish-actions.pod:1027
8091 msgid "download-offset"
8092 msgstr ""
8093
8094 #. type: verbatim
8095 #: ../fish/guestfish-actions.pod:1029
8096 #, no-wrap
8097 msgid ""
8098 " download-offset remotefilename (filename|-) offset size\n"
8099 "\n"
8100 msgstr ""
8101
8102 #. type: textblock
8103 #: ../fish/guestfish-actions.pod:1034 ../src/guestfs-actions.pod:1742
8104 msgid ""
8105 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
8106 "region must be within the file or device)."
8107 msgstr ""
8108
8109 #. type: textblock
8110 #: ../fish/guestfish-actions.pod:1037
8111 msgid ""
8112 "Note that there is no limit on the amount of data that can be downloaded "
8113 "with this call, unlike with L</pread>, and this call always reads the full "
8114 "amount unless an error occurs."
8115 msgstr ""
8116
8117 #. type: textblock
8118 #: ../fish/guestfish-actions.pod:1042
8119 msgid "See also L</download>, L</pread>."
8120 msgstr ""
8121
8122 #. type: =head2
8123 #: ../fish/guestfish-actions.pod:1046
8124 msgid "drop-caches"
8125 msgstr ""
8126
8127 #. type: verbatim
8128 #: ../fish/guestfish-actions.pod:1048
8129 #, no-wrap
8130 msgid ""
8131 " drop-caches whattodrop\n"
8132 "\n"
8133 msgstr ""
8134
8135 #. type: textblock
8136 #: ../fish/guestfish-actions.pod:1050 ../src/guestfs-actions.pod:1767
8137 msgid ""
8138 "This instructs the guest kernel to drop its page cache, and/or dentries and "
8139 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
8140 "to drop, see L<http://linux-mm.org/Drop_Caches>"
8141 msgstr ""
8142
8143 #. type: textblock
8144 #: ../fish/guestfish-actions.pod:1055 ../src/guestfs-actions.pod:1772
8145 msgid "Setting C<whattodrop> to 3 should drop everything."
8146 msgstr ""
8147
8148 #. type: textblock
8149 #: ../fish/guestfish-actions.pod:1057 ../src/guestfs-actions.pod:1774
8150 msgid ""
8151 "This automatically calls L<sync(2)> before the operation, so that the "
8152 "maximum guest memory is freed."
8153 msgstr ""
8154
8155 #. type: =head2
8156 #: ../fish/guestfish-actions.pod:1060
8157 msgid "du"
8158 msgstr ""
8159
8160 #. type: verbatim
8161 #: ../fish/guestfish-actions.pod:1062
8162 #, no-wrap
8163 msgid ""
8164 " du path\n"
8165 "\n"
8166 msgstr ""
8167
8168 #. type: textblock
8169 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1787
8170 msgid ""
8171 "This command runs the C<du -s> command to estimate file space usage for "
8172 "C<path>."
8173 msgstr ""
8174
8175 #. type: textblock
8176 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1790
8177 msgid ""
8178 "C<path> can be a file or a directory.  If C<path> is a directory then the "
8179 "estimate includes the contents of the directory and all subdirectories "
8180 "(recursively)."
8181 msgstr ""
8182
8183 #. type: textblock
8184 #: ../fish/guestfish-actions.pod:1071 ../src/guestfs-actions.pod:1794
8185 msgid "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
8186 msgstr ""
8187
8188 #. type: =head2
8189 #: ../fish/guestfish-actions.pod:1074
8190 msgid "e2fsck-f"
8191 msgstr ""
8192
8193 #. type: verbatim
8194 #: ../fish/guestfish-actions.pod:1076
8195 #, no-wrap
8196 msgid ""
8197 " e2fsck-f device\n"
8198 "\n"
8199 msgstr ""
8200
8201 #. type: textblock
8202 #: ../fish/guestfish-actions.pod:1078 ../src/guestfs-actions.pod:1812
8203 msgid ""
8204 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
8205 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
8206 "clean (I<-f>)."
8207 msgstr ""
8208
8209 #. type: textblock
8210 #: ../fish/guestfish-actions.pod:1082
8211 msgid ""
8212 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
8213 "should use L</fsck>."
8214 msgstr ""
8215
8216 #. type: =head2
8217 #: ../fish/guestfish-actions.pod:1085
8218 msgid "echo-daemon"
8219 msgstr ""
8220
8221 #. type: verbatim
8222 #: ../fish/guestfish-actions.pod:1087
8223 #, no-wrap
8224 msgid ""
8225 " echo-daemon 'words ...'\n"
8226 "\n"
8227 msgstr ""
8228
8229 #. type: textblock
8230 #: ../fish/guestfish-actions.pod:1089 ../src/guestfs-actions.pod:1829
8231 msgid ""
8232 "This command concatenates the list of C<words> passed with single spaces "
8233 "between them and returns the resulting string."
8234 msgstr ""
8235
8236 #. type: textblock
8237 #: ../fish/guestfish-actions.pod:1092 ../src/guestfs-actions.pod:1832
8238 msgid "You can use this command to test the connection through to the daemon."
8239 msgstr ""
8240
8241 #. type: textblock
8242 #: ../fish/guestfish-actions.pod:1094
8243 msgid "See also L</ping-daemon>."
8244 msgstr ""
8245
8246 #. type: =head2
8247 #: ../fish/guestfish-actions.pod:1096
8248 msgid "egrep"
8249 msgstr ""
8250
8251 #. type: verbatim
8252 #: ../fish/guestfish-actions.pod:1098
8253 #, no-wrap
8254 msgid ""
8255 " egrep regex path\n"
8256 "\n"
8257 msgstr ""
8258
8259 #. type: textblock
8260 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1848
8261 msgid "This calls the external C<egrep> program and returns the matching lines."
8262 msgstr ""
8263
8264 #. type: =head2
8265 #: ../fish/guestfish-actions.pod:1106
8266 msgid "egrepi"
8267 msgstr ""
8268
8269 #. type: verbatim
8270 #: ../fish/guestfish-actions.pod:1108
8271 #, no-wrap
8272 msgid ""
8273 " egrepi regex path\n"
8274 "\n"
8275 msgstr ""
8276
8277 #. type: textblock
8278 #: ../fish/guestfish-actions.pod:1110 ../src/guestfs-actions.pod:1867
8279 msgid "This calls the external C<egrep -i> program and returns the matching lines."
8280 msgstr ""
8281
8282 #. type: =head2
8283 #: ../fish/guestfish-actions.pod:1116
8284 msgid "equal"
8285 msgstr ""
8286
8287 #. type: verbatim
8288 #: ../fish/guestfish-actions.pod:1118
8289 #, no-wrap
8290 msgid ""
8291 " equal file1 file2\n"
8292 "\n"
8293 msgstr ""
8294
8295 #. type: textblock
8296 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1886
8297 msgid ""
8298 "This compares the two files C<file1> and C<file2> and returns true if their "
8299 "content is exactly equal, or false otherwise."
8300 msgstr ""
8301
8302 #. type: textblock
8303 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1889
8304 msgid "The external L<cmp(1)> program is used for the comparison."
8305 msgstr ""
8306
8307 #. type: =head2
8308 #: ../fish/guestfish-actions.pod:1125
8309 msgid "exists"
8310 msgstr ""
8311
8312 #. type: verbatim
8313 #: ../fish/guestfish-actions.pod:1127
8314 #, no-wrap
8315 msgid ""
8316 " exists path\n"
8317 "\n"
8318 msgstr ""
8319
8320 #. type: textblock
8321 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1901
8322 msgid ""
8323 "This returns C<true> if and only if there is a file, directory (or anything) "
8324 "with the given C<path> name."
8325 msgstr ""
8326
8327 #. type: textblock
8328 #: ../fish/guestfish-actions.pod:1132
8329 msgid "See also L</is-file>, L</is-dir>, L</stat>."
8330 msgstr ""
8331
8332 #. type: =head2
8333 #: ../fish/guestfish-actions.pod:1134
8334 msgid "fallocate"
8335 msgstr ""
8336
8337 #. type: verbatim
8338 #: ../fish/guestfish-actions.pod:1136
8339 #, no-wrap
8340 msgid ""
8341 " fallocate path len\n"
8342 "\n"
8343 msgstr ""
8344
8345 #. type: textblock
8346 #: ../fish/guestfish-actions.pod:1138 ../fish/guestfish-actions.pod:1157 ../src/guestfs-actions.pod:1924 ../src/guestfs-actions.pod:1943
8347 msgid ""
8348 "This command preallocates a file (containing zero bytes) named C<path> of "
8349 "size C<len> bytes.  If the file exists already, it is overwritten."
8350 msgstr ""
8351
8352 #. type: textblock
8353 #: ../fish/guestfish-actions.pod:1142 ../src/guestfs-actions.pod:1928
8354 msgid ""
8355 "Do not confuse this with the guestfish-specific C<alloc> command which "
8356 "allocates a file in the host and attaches it as a device."
8357 msgstr ""
8358
8359 #. type: textblock
8360 #: ../fish/guestfish-actions.pod:1146
8361 msgid ""
8362 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
8363 "instead."
8364 msgstr ""
8365
8366 #. type: =head2
8367 #: ../fish/guestfish-actions.pod:1153
8368 msgid "fallocate64"
8369 msgstr ""
8370
8371 #. type: verbatim
8372 #: ../fish/guestfish-actions.pod:1155
8373 #, no-wrap
8374 msgid ""
8375 " fallocate64 path len\n"
8376 "\n"
8377 msgstr ""
8378
8379 #. type: textblock
8380 #: ../fish/guestfish-actions.pod:1161
8381 msgid ""
8382 "Note that this call allocates disk blocks for the file.  To create a sparse "
8383 "file use L</truncate-size> instead."
8384 msgstr ""
8385
8386 #. type: textblock
8387 #: ../fish/guestfish-actions.pod:1164
8388 msgid ""
8389 "The deprecated call L</fallocate> does the same, but owing to an oversight "
8390 "it only allowed 30 bit lengths to be specified, effectively limiting the "
8391 "maximum size of files created through that call to 1GB."
8392 msgstr ""
8393
8394 #. type: textblock
8395 #: ../fish/guestfish-actions.pod:1169 ../src/guestfs-actions.pod:1955
8396 msgid ""
8397 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
8398 "commands which create a file in the host and attach it as a device."
8399 msgstr ""
8400
8401 #. type: =head2
8402 #: ../fish/guestfish-actions.pod:1173
8403 msgid "fgrep"
8404 msgstr ""
8405
8406 #. type: verbatim
8407 #: ../fish/guestfish-actions.pod:1175
8408 #, no-wrap
8409 msgid ""
8410 " fgrep pattern path\n"
8411 "\n"
8412 msgstr ""
8413
8414 #. type: textblock
8415 #: ../fish/guestfish-actions.pod:1177 ../src/guestfs-actions.pod:1970
8416 msgid "This calls the external C<fgrep> program and returns the matching lines."
8417 msgstr ""
8418
8419 #. type: =head2
8420 #: ../fish/guestfish-actions.pod:1183
8421 msgid "fgrepi"
8422 msgstr ""
8423
8424 #. type: verbatim
8425 #: ../fish/guestfish-actions.pod:1185
8426 #, no-wrap
8427 msgid ""
8428 " fgrepi pattern path\n"
8429 "\n"
8430 msgstr ""
8431
8432 #. type: textblock
8433 #: ../fish/guestfish-actions.pod:1187 ../src/guestfs-actions.pod:1989
8434 msgid "This calls the external C<fgrep -i> program and returns the matching lines."
8435 msgstr ""
8436
8437 #. type: =head2
8438 #: ../fish/guestfish-actions.pod:1193
8439 msgid "file"
8440 msgstr ""
8441
8442 #. type: verbatim
8443 #: ../fish/guestfish-actions.pod:1195
8444 #, no-wrap
8445 msgid ""
8446 " file path\n"
8447 "\n"
8448 msgstr ""
8449
8450 #. type: textblock
8451 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:2007
8452 msgid ""
8453 "This call uses the standard L<file(1)> command to determine the type or "
8454 "contents of the file."
8455 msgstr ""
8456
8457 #. type: textblock
8458 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:2010
8459 msgid ""
8460 "This call will also transparently look inside various types of compressed "
8461 "file."
8462 msgstr ""
8463
8464 #. type: textblock
8465 #: ../fish/guestfish-actions.pod:1203 ../src/guestfs-actions.pod:2013
8466 msgid ""
8467 "The exact command which runs is C<file -zb path>.  Note in particular that "
8468 "the filename is not prepended to the output (the I<-b> option)."
8469 msgstr ""
8470
8471 #. type: textblock
8472 #: ../fish/guestfish-actions.pod:1207 ../src/guestfs-actions.pod:2017
8473 msgid ""
8474 "The output depends on the output of the underlying L<file(1)> command and it "
8475 "can change in future in ways beyond our control.  In other words, the output "
8476 "is not guaranteed by the ABI."
8477 msgstr ""
8478
8479 #. type: textblock
8480 #: ../fish/guestfish-actions.pod:1211
8481 msgid ""
8482 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
8483 "(etc), L</is-zero>."
8484 msgstr ""
8485
8486 #. type: =head2
8487 #: ../fish/guestfish-actions.pod:1214
8488 msgid "file-architecture"
8489 msgstr ""
8490
8491 #. type: verbatim
8492 #: ../fish/guestfish-actions.pod:1216
8493 #, no-wrap
8494 msgid ""
8495 " file-architecture filename\n"
8496 "\n"
8497 msgstr ""
8498
8499 #. type: textblock
8500 #: ../fish/guestfish-actions.pod:1218 ../src/guestfs-actions.pod:2035
8501 msgid ""
8502 "This detects the architecture of the binary C<filename>, and returns it if "
8503 "known."
8504 msgstr ""
8505
8506 #. type: textblock
8507 #: ../fish/guestfish-actions.pod:1221 ../src/guestfs-actions.pod:2038
8508 msgid "Currently defined architectures are:"
8509 msgstr ""
8510
8511 #. type: =item
8512 #: ../fish/guestfish-actions.pod:1225 ../src/guestfs-actions.pod:2042
8513 msgid "\"i386\""
8514 msgstr ""
8515
8516 #. type: textblock
8517 #: ../fish/guestfish-actions.pod:1227 ../src/guestfs-actions.pod:2044
8518 msgid ""
8519 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
8520 "irrespective of the precise processor requirements of the binary."
8521 msgstr ""
8522
8523 #. type: =item
8524 #: ../fish/guestfish-actions.pod:1230 ../src/guestfs-actions.pod:2047
8525 msgid "\"x86_64\""
8526 msgstr ""
8527
8528 #. type: textblock
8529 #: ../fish/guestfish-actions.pod:1232 ../src/guestfs-actions.pod:2049
8530 msgid "64 bit x86-64."
8531 msgstr ""
8532
8533 #. type: =item
8534 #: ../fish/guestfish-actions.pod:1234 ../src/guestfs-actions.pod:2051
8535 msgid "\"sparc\""
8536 msgstr ""
8537
8538 #. type: textblock
8539 #: ../fish/guestfish-actions.pod:1236 ../src/guestfs-actions.pod:2053
8540 msgid "32 bit SPARC."
8541 msgstr ""
8542
8543 #. type: =item
8544 #: ../fish/guestfish-actions.pod:1238 ../src/guestfs-actions.pod:2055
8545 msgid "\"sparc64\""
8546 msgstr ""
8547
8548 #. type: textblock
8549 #: ../fish/guestfish-actions.pod:1240 ../src/guestfs-actions.pod:2057
8550 msgid "64 bit SPARC V9 and above."
8551 msgstr ""
8552
8553 #. type: =item
8554 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:2059
8555 msgid "\"ia64\""
8556 msgstr ""
8557
8558 #. type: textblock
8559 #: ../fish/guestfish-actions.pod:1244 ../src/guestfs-actions.pod:2061
8560 msgid "Intel Itanium."
8561 msgstr ""
8562
8563 #. type: =item
8564 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:2063
8565 msgid "\"ppc\""
8566 msgstr ""
8567
8568 #. type: textblock
8569 #: ../fish/guestfish-actions.pod:1248 ../src/guestfs-actions.pod:2065
8570 msgid "32 bit Power PC."
8571 msgstr ""
8572
8573 #. type: =item
8574 #: ../fish/guestfish-actions.pod:1250 ../src/guestfs-actions.pod:2067
8575 msgid "\"ppc64\""
8576 msgstr ""
8577
8578 #. type: textblock
8579 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:2069
8580 msgid "64 bit Power PC."
8581 msgstr ""
8582
8583 #. type: textblock
8584 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:2073
8585 msgid "Libguestfs may return other architecture strings in future."
8586 msgstr ""
8587
8588 #. type: textblock
8589 #: ../fish/guestfish-actions.pod:1258 ../src/guestfs-actions.pod:2075
8590 msgid "The function works on at least the following types of files:"
8591 msgstr ""
8592
8593 #. type: textblock
8594 #: ../fish/guestfish-actions.pod:1264 ../src/guestfs-actions.pod:2081
8595 msgid "many types of Un*x and Linux binary"
8596 msgstr ""
8597
8598 #. type: textblock
8599 #: ../fish/guestfish-actions.pod:1268 ../src/guestfs-actions.pod:2085
8600 msgid "many types of Un*x and Linux shared library"
8601 msgstr ""
8602
8603 #. type: textblock
8604 #: ../fish/guestfish-actions.pod:1272 ../src/guestfs-actions.pod:2089
8605 msgid "Windows Win32 and Win64 binaries"
8606 msgstr ""
8607
8608 #. type: textblock
8609 #: ../fish/guestfish-actions.pod:1276 ../src/guestfs-actions.pod:2093
8610 msgid "Windows Win32 and Win64 DLLs"
8611 msgstr ""
8612
8613 #. type: textblock
8614 #: ../fish/guestfish-actions.pod:1278 ../src/guestfs-actions.pod:2095
8615 msgid "Win32 binaries and DLLs return C<i386>."
8616 msgstr ""
8617
8618 #. type: textblock
8619 #: ../fish/guestfish-actions.pod:1280 ../src/guestfs-actions.pod:2097
8620 msgid "Win64 binaries and DLLs return C<x86_64>."
8621 msgstr ""
8622
8623 #. type: textblock
8624 #: ../fish/guestfish-actions.pod:1284 ../src/guestfs-actions.pod:2101
8625 msgid "Linux kernel modules"
8626 msgstr ""
8627
8628 #. type: textblock
8629 #: ../fish/guestfish-actions.pod:1288 ../src/guestfs-actions.pod:2105
8630 msgid "Linux new-style initrd images"
8631 msgstr ""
8632
8633 #. type: textblock
8634 #: ../fish/guestfish-actions.pod:1292 ../src/guestfs-actions.pod:2109
8635 msgid "some non-x86 Linux vmlinuz kernels"
8636 msgstr ""
8637
8638 #. type: textblock
8639 #: ../fish/guestfish-actions.pod:1296 ../src/guestfs-actions.pod:2113
8640 msgid "What it can't do currently:"
8641 msgstr ""
8642
8643 #. type: textblock
8644 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:2119
8645 msgid "static libraries (libfoo.a)"
8646 msgstr ""
8647
8648 #. type: textblock
8649 #: ../fish/guestfish-actions.pod:1306 ../src/guestfs-actions.pod:2123
8650 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
8651 msgstr ""
8652
8653 #. type: textblock
8654 #: ../fish/guestfish-actions.pod:1310 ../src/guestfs-actions.pod:2127
8655 msgid "x86 Linux vmlinuz kernels"
8656 msgstr ""
8657
8658 #. type: textblock
8659 #: ../fish/guestfish-actions.pod:1312 ../src/guestfs-actions.pod:2129
8660 msgid ""
8661 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
8662 "compressed code, and are horribly hard to unpack.  If you want to find the "
8663 "architecture of a kernel, use the architecture of the associated initrd or "
8664 "kernel module(s) instead."
8665 msgstr ""
8666
8667 #. type: =head2
8668 #: ../fish/guestfish-actions.pod:1319
8669 msgid "filesize"
8670 msgstr ""
8671
8672 #. type: verbatim
8673 #: ../fish/guestfish-actions.pod:1321
8674 #, no-wrap
8675 msgid ""
8676 " filesize file\n"
8677 "\n"
8678 msgstr ""
8679
8680 #. type: textblock
8681 #: ../fish/guestfish-actions.pod:1323 ../src/guestfs-actions.pod:2147
8682 msgid "This command returns the size of C<file> in bytes."
8683 msgstr ""
8684
8685 #. type: textblock
8686 #: ../fish/guestfish-actions.pod:1325
8687 msgid ""
8688 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, "
8689 "L</is-file> etc.  To get the size of block devices, use "
8690 "L</blockdev-getsize64>."
8691 msgstr ""
8692
8693 #. type: =head2
8694 #: ../fish/guestfish-actions.pod:1329
8695 msgid "fill"
8696 msgstr ""
8697
8698 #. type: verbatim
8699 #: ../fish/guestfish-actions.pod:1331
8700 #, no-wrap
8701 msgid ""
8702 " fill c len path\n"
8703 "\n"
8704 msgstr ""
8705
8706 #. type: textblock
8707 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:2165
8708 msgid ""
8709 "This command creates a new file called C<path>.  The initial content of the "
8710 "file is C<len> octets of C<c>, where C<c> must be a number in the range "
8711 "C<[0..255]>."
8712 msgstr ""
8713
8714 #. type: textblock
8715 #: ../fish/guestfish-actions.pod:1337
8716 msgid ""
8717 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
8718 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
8719 "L</fill-pattern>."
8720 msgstr ""
8721
8722 #. type: =head2
8723 #: ../fish/guestfish-actions.pod:1342
8724 msgid "fill-pattern"
8725 msgstr ""
8726
8727 #. type: verbatim
8728 #: ../fish/guestfish-actions.pod:1344
8729 #, no-wrap
8730 msgid ""
8731 " fill-pattern pattern len path\n"
8732 "\n"
8733 msgstr ""
8734
8735 #. type: textblock
8736 #: ../fish/guestfish-actions.pod:1346
8737 msgid ""
8738 "This function is like L</fill> except that it creates a new file of length "
8739 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
8740 "is truncated if necessary to ensure the length of the file is exactly C<len> "
8741 "bytes."
8742 msgstr ""
8743
8744 #. type: =head2
8745 #: ../fish/guestfish-actions.pod:1351
8746 msgid "find"
8747 msgstr ""
8748
8749 #. type: verbatim
8750 #: ../fish/guestfish-actions.pod:1353
8751 #, no-wrap
8752 msgid ""
8753 " find directory\n"
8754 "\n"
8755 msgstr ""
8756
8757 #. type: textblock
8758 #: ../fish/guestfish-actions.pod:1355 ../src/guestfs-actions.pod:2211
8759 msgid ""
8760 "This command lists out all files and directories, recursively, starting at "
8761 "C<directory>.  It is essentially equivalent to running the shell command "
8762 "C<find directory -print> but some post-processing happens on the output, "
8763 "described below."
8764 msgstr ""
8765
8766 #. type: textblock
8767 #: ../fish/guestfish-actions.pod:1360 ../src/guestfs-actions.pod:2216
8768 msgid ""
8769 "This returns a list of strings I<without any prefix>.  Thus if the directory "
8770 "structure was:"
8771 msgstr ""
8772
8773 #. type: verbatim
8774 #: ../fish/guestfish-actions.pod:1363 ../src/guestfs-actions.pod:2219
8775 #, no-wrap
8776 msgid ""
8777 " /tmp/a\n"
8778 " /tmp/b\n"
8779 " /tmp/c/d\n"
8780 "\n"
8781 msgstr ""
8782
8783 #. type: textblock
8784 #: ../fish/guestfish-actions.pod:1367
8785 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
8786 msgstr ""
8787
8788 #. type: verbatim
8789 #: ../fish/guestfish-actions.pod:1370 ../src/guestfs-actions.pod:2226
8790 #, no-wrap
8791 msgid ""
8792 " a\n"
8793 " b\n"
8794 " c\n"
8795 " c/d\n"
8796 "\n"
8797 msgstr ""
8798
8799 #. type: textblock
8800 #: ../fish/guestfish-actions.pod:1375 ../src/guestfs-actions.pod:2231
8801 msgid "If C<directory> is not a directory, then this command returns an error."
8802 msgstr ""
8803
8804 #. type: textblock
8805 #: ../fish/guestfish-actions.pod:1378 ../src/guestfs-actions.pod:2234
8806 msgid "The returned list is sorted."
8807 msgstr ""
8808
8809 #. type: textblock
8810 #: ../fish/guestfish-actions.pod:1380
8811 msgid "See also L</find0>."
8812 msgstr ""
8813
8814 #. type: =head2
8815 #: ../fish/guestfish-actions.pod:1385
8816 msgid "find0"
8817 msgstr ""
8818
8819 #. type: verbatim
8820 #: ../fish/guestfish-actions.pod:1387
8821 #, no-wrap
8822 msgid ""
8823 " find0 directory (files|-)\n"
8824 "\n"
8825 msgstr ""
8826
8827 #. type: textblock
8828 #: ../fish/guestfish-actions.pod:1389 ../src/guestfs-actions.pod:2254
8829 msgid ""
8830 "This command lists out all files and directories, recursively, starting at "
8831 "C<directory>, placing the resulting list in the external file called "
8832 "C<files>."
8833 msgstr ""
8834
8835 #. type: textblock
8836 #: ../fish/guestfish-actions.pod:1393
8837 msgid "This command works the same way as L</find> with the following exceptions:"
8838 msgstr ""
8839
8840 #. type: textblock
8841 #: ../fish/guestfish-actions.pod:1400 ../src/guestfs-actions.pod:2265
8842 msgid "The resulting list is written to an external file."
8843 msgstr ""
8844
8845 #. type: textblock
8846 #: ../fish/guestfish-actions.pod:1404 ../src/guestfs-actions.pod:2269
8847 msgid ""
8848 "Items (filenames) in the result are separated by C<\\0> characters.  See "
8849 "L<find(1)> option I<-print0>."
8850 msgstr ""
8851
8852 #. type: textblock
8853 #: ../fish/guestfish-actions.pod:1409 ../src/guestfs-actions.pod:2274
8854 msgid "This command is not limited in the number of names that it can return."
8855 msgstr ""
8856
8857 #. type: textblock
8858 #: ../fish/guestfish-actions.pod:1414 ../src/guestfs-actions.pod:2279
8859 msgid "The result list is not sorted."
8860 msgstr ""
8861
8862 #. type: =head2
8863 #: ../fish/guestfish-actions.pod:1420
8864 msgid "findfs-label"
8865 msgstr ""
8866
8867 #. type: verbatim
8868 #: ../fish/guestfish-actions.pod:1422
8869 #, no-wrap
8870 msgid ""
8871 " findfs-label label\n"
8872 "\n"
8873 msgstr ""
8874
8875 #. type: textblock
8876 #: ../fish/guestfish-actions.pod:1424 ../src/guestfs-actions.pod:2293
8877 msgid ""
8878 "This command searches the filesystems and returns the one which has the "
8879 "given label.  An error is returned if no such filesystem can be found."
8880 msgstr ""
8881
8882 #. type: textblock
8883 #: ../fish/guestfish-actions.pod:1428
8884 msgid "To find the label of a filesystem, use L</vfs-label>."
8885 msgstr ""
8886
8887 #. type: =head2
8888 #: ../fish/guestfish-actions.pod:1430
8889 msgid "findfs-uuid"
8890 msgstr ""
8891
8892 #. type: verbatim
8893 #: ../fish/guestfish-actions.pod:1432
8894 #, no-wrap
8895 msgid ""
8896 " findfs-uuid uuid\n"
8897 "\n"
8898 msgstr ""
8899
8900 #. type: textblock
8901 #: ../fish/guestfish-actions.pod:1434 ../src/guestfs-actions.pod:2310
8902 msgid ""
8903 "This command searches the filesystems and returns the one which has the "
8904 "given UUID.  An error is returned if no such filesystem can be found."
8905 msgstr ""
8906
8907 #. type: textblock
8908 #: ../fish/guestfish-actions.pod:1438
8909 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
8910 msgstr ""
8911
8912 #. type: =head2
8913 #: ../fish/guestfish-actions.pod:1440
8914 msgid "fsck"
8915 msgstr ""
8916
8917 #. type: verbatim
8918 #: ../fish/guestfish-actions.pod:1442
8919 #, no-wrap
8920 msgid ""
8921 " fsck fstype device\n"
8922 "\n"
8923 msgstr ""
8924
8925 #. type: textblock
8926 #: ../fish/guestfish-actions.pod:1444 ../src/guestfs-actions.pod:2328
8927 msgid ""
8928 "This runs the filesystem checker (fsck) on C<device> which should have "
8929 "filesystem type C<fstype>."
8930 msgstr ""
8931
8932 #. type: textblock
8933 #: ../fish/guestfish-actions.pod:1447 ../src/guestfs-actions.pod:2331
8934 msgid ""
8935 "The returned integer is the status.  See L<fsck(8)> for the list of status "
8936 "codes from C<fsck>."
8937 msgstr ""
8938
8939 #. type: textblock
8940 #: ../fish/guestfish-actions.pod:1456 ../src/guestfs-actions.pod:2340
8941 msgid "Multiple status codes can be summed together."
8942 msgstr ""
8943
8944 #. type: textblock
8945 #: ../fish/guestfish-actions.pod:1460 ../src/guestfs-actions.pod:2344
8946 msgid ""
8947 "A non-zero return code can mean \"success\", for example if errors have been "
8948 "corrected on the filesystem."
8949 msgstr ""
8950
8951 #. type: textblock
8952 #: ../fish/guestfish-actions.pod:1465 ../src/guestfs-actions.pod:2349
8953 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
8954 msgstr ""
8955
8956 #. type: textblock
8957 #: ../fish/guestfish-actions.pod:1470 ../src/guestfs-actions.pod:2354
8958 msgid "This command is entirely equivalent to running C<fsck -a -t fstype device>."
8959 msgstr ""
8960
8961 #. type: =head2
8962 #: ../fish/guestfish-actions.pod:1472
8963 msgid "get-append"
8964 msgstr ""
8965
8966 #. type: verbatim
8967 #: ../fish/guestfish-actions.pod:1474
8968 #, no-wrap
8969 msgid ""
8970 " get-append\n"
8971 "\n"
8972 msgstr ""
8973
8974 #. type: textblock
8975 #: ../fish/guestfish-actions.pod:1476 ../src/guestfs-actions.pod:2365
8976 msgid ""
8977 "Return the additional kernel options which are added to the guest kernel "
8978 "command line."
8979 msgstr ""
8980
8981 #. type: textblock
8982 #: ../fish/guestfish-actions.pod:1479 ../src/guestfs-actions.pod:2368
8983 msgid "If C<NULL> then no options are added."
8984 msgstr ""
8985
8986 #. type: =head2
8987 #: ../fish/guestfish-actions.pod:1481
8988 msgid "get-attach-method"
8989 msgstr ""
8990
8991 #. type: verbatim
8992 #: ../fish/guestfish-actions.pod:1483
8993 #, no-wrap
8994 msgid ""
8995 " get-attach-method\n"
8996 "\n"
8997 msgstr ""
8998
8999 #. type: textblock
9000 #: ../fish/guestfish-actions.pod:1485
9001 msgid "Return the current attach method.  See L</set-attach-method>."
9002 msgstr ""
9003
9004 #. type: =head2
9005 #: ../fish/guestfish-actions.pod:1487
9006 msgid "get-autosync"
9007 msgstr ""
9008
9009 #. type: verbatim
9010 #: ../fish/guestfish-actions.pod:1489
9011 #, no-wrap
9012 msgid ""
9013 " get-autosync\n"
9014 "\n"
9015 msgstr ""
9016
9017 #. type: textblock
9018 #: ../fish/guestfish-actions.pod:1491 ../src/guestfs-actions.pod:2393
9019 msgid "Get the autosync flag."
9020 msgstr ""
9021
9022 #. type: =head2
9023 #: ../fish/guestfish-actions.pod:1493
9024 msgid "get-direct"
9025 msgstr ""
9026
9027 #. type: verbatim
9028 #: ../fish/guestfish-actions.pod:1495
9029 #, no-wrap
9030 msgid ""
9031 " get-direct\n"
9032 "\n"
9033 msgstr ""
9034
9035 #. type: textblock
9036 #: ../fish/guestfish-actions.pod:1497 ../src/guestfs-actions.pod:2404
9037 msgid "Return the direct appliance mode flag."
9038 msgstr ""
9039
9040 #. type: =head2
9041 #: ../fish/guestfish-actions.pod:1499
9042 msgid "get-e2label"
9043 msgstr ""
9044
9045 #. type: verbatim
9046 #: ../fish/guestfish-actions.pod:1501
9047 #, no-wrap
9048 msgid ""
9049 " get-e2label device\n"
9050 "\n"
9051 msgstr ""
9052
9053 #. type: textblock
9054 #: ../fish/guestfish-actions.pod:1503 ../src/guestfs-actions.pod:2423
9055 msgid "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
9056 msgstr ""
9057
9058 #. type: textblock
9059 #: ../fish/guestfish-actions.pod:1506
9060 msgid ""
9061 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
9062 "instead."
9063 msgstr ""
9064
9065 #. type: =head2
9066 #: ../fish/guestfish-actions.pod:1513
9067 msgid "get-e2uuid"
9068 msgstr ""
9069
9070 #. type: verbatim
9071 #: ../fish/guestfish-actions.pod:1515
9072 #, no-wrap
9073 msgid ""
9074 " get-e2uuid device\n"
9075 "\n"
9076 msgstr ""
9077
9078 #. type: textblock
9079 #: ../fish/guestfish-actions.pod:1517 ../src/guestfs-actions.pod:2444
9080 msgid "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
9081 msgstr ""
9082
9083 #. type: textblock
9084 #: ../fish/guestfish-actions.pod:1520
9085 msgid ""
9086 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
9087 "instead."
9088 msgstr ""
9089
9090 #. type: =head2
9091 #: ../fish/guestfish-actions.pod:1527
9092 msgid "get-memsize"
9093 msgstr ""
9094
9095 #. type: verbatim
9096 #: ../fish/guestfish-actions.pod:1529
9097 #, no-wrap
9098 msgid ""
9099 " get-memsize\n"
9100 "\n"
9101 msgstr ""
9102
9103 #. type: textblock
9104 #: ../fish/guestfish-actions.pod:1531 ../src/guestfs-actions.pod:2457
9105 msgid "This gets the memory size in megabytes allocated to the qemu subprocess."
9106 msgstr ""
9107
9108 #. type: textblock
9109 #: ../fish/guestfish-actions.pod:1534
9110 msgid ""
9111 "If L</set-memsize> was not called on this handle, and if "
9112 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
9113 "value for memsize."
9114 msgstr ""
9115
9116 #. type: textblock
9117 #: ../fish/guestfish-actions.pod:1538 ../fish/guestfish-actions.pod:1595 ../fish/guestfish-actions.pod:4468 ../fish/guestfish-actions.pod:4570 ../src/guestfs-actions.pod:2464 ../src/guestfs-actions.pod:2556 ../src/guestfs-actions.pod:6921 ../src/guestfs-actions.pod:7047
9118 msgid "For more information on the architecture of libguestfs, see L<guestfs(3)>."
9119 msgstr ""
9120
9121 #. type: =head2
9122 #: ../fish/guestfish-actions.pod:1541
9123 msgid "get-network"
9124 msgstr ""
9125
9126 #. type: verbatim
9127 #: ../fish/guestfish-actions.pod:1543
9128 #, no-wrap
9129 msgid ""
9130 " get-network\n"
9131 "\n"
9132 msgstr ""
9133
9134 #. type: textblock
9135 #: ../fish/guestfish-actions.pod:1545 ../src/guestfs-actions.pod:2476
9136 msgid "This returns the enable network flag."
9137 msgstr ""
9138
9139 #. type: =head2
9140 #: ../fish/guestfish-actions.pod:1547
9141 msgid "get-path"
9142 msgstr ""
9143
9144 #. type: verbatim
9145 #: ../fish/guestfish-actions.pod:1549
9146 #, no-wrap
9147 msgid ""
9148 " get-path\n"
9149 "\n"
9150 msgstr ""
9151
9152 #. type: textblock
9153 #: ../fish/guestfish-actions.pod:1551 ../src/guestfs-actions.pod:2487
9154 msgid "Return the current search path."
9155 msgstr ""
9156
9157 #. type: textblock
9158 #: ../fish/guestfish-actions.pod:1553 ../src/guestfs-actions.pod:2489
9159 msgid ""
9160 "This is always non-NULL.  If it wasn't set already, then this will return "
9161 "the default path."
9162 msgstr ""
9163
9164 #. type: =head2
9165 #: ../fish/guestfish-actions.pod:1556
9166 msgid "get-pgroup"
9167 msgstr ""
9168
9169 #. type: verbatim
9170 #: ../fish/guestfish-actions.pod:1558
9171 #, no-wrap
9172 msgid ""
9173 " get-pgroup\n"
9174 "\n"
9175 msgstr ""
9176
9177 #. type: textblock
9178 #: ../fish/guestfish-actions.pod:1560 ../src/guestfs-actions.pod:2502
9179 msgid "This returns the process group flag."
9180 msgstr ""
9181
9182 #. type: =head2
9183 #: ../fish/guestfish-actions.pod:1562
9184 msgid "get-pid"
9185 msgstr ""
9186
9187 #. type: =head2
9188 #: ../fish/guestfish-actions.pod:1564
9189 msgid "pid"
9190 msgstr ""
9191
9192 #. type: verbatim
9193 #: ../fish/guestfish-actions.pod:1566
9194 #, no-wrap
9195 msgid ""
9196 " get-pid\n"
9197 "\n"
9198 msgstr ""
9199
9200 #. type: textblock
9201 #: ../fish/guestfish-actions.pod:1568 ../src/guestfs-actions.pod:2513
9202 msgid ""
9203 "Return the process ID of the qemu subprocess.  If there is no qemu "
9204 "subprocess, then this will return an error."
9205 msgstr ""
9206
9207 #. type: textblock
9208 #: ../fish/guestfish-actions.pod:1571 ../src/guestfs-actions.pod:2516
9209 msgid "This is an internal call used for debugging and testing."
9210 msgstr ""
9211
9212 #. type: =head2
9213 #: ../fish/guestfish-actions.pod:1573
9214 msgid "get-qemu"
9215 msgstr ""
9216
9217 #. type: verbatim
9218 #: ../fish/guestfish-actions.pod:1575
9219 #, no-wrap
9220 msgid ""
9221 " get-qemu\n"
9222 "\n"
9223 msgstr ""
9224
9225 #. type: textblock
9226 #: ../fish/guestfish-actions.pod:1577 ../src/guestfs-actions.pod:2527
9227 msgid "Return the current qemu binary."
9228 msgstr ""
9229
9230 #. type: textblock
9231 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2529
9232 msgid ""
9233 "This is always non-NULL.  If it wasn't set already, then this will return "
9234 "the default qemu binary name."
9235 msgstr ""
9236
9237 #. type: =head2
9238 #: ../fish/guestfish-actions.pod:1582
9239 msgid "get-recovery-proc"
9240 msgstr ""
9241
9242 #. type: verbatim
9243 #: ../fish/guestfish-actions.pod:1584
9244 #, no-wrap
9245 msgid ""
9246 " get-recovery-proc\n"
9247 "\n"
9248 msgstr ""
9249
9250 #. type: textblock
9251 #: ../fish/guestfish-actions.pod:1586 ../src/guestfs-actions.pod:2542
9252 msgid "Return the recovery process enabled flag."
9253 msgstr ""
9254
9255 #. type: =head2
9256 #: ../fish/guestfish-actions.pod:1588
9257 msgid "get-selinux"
9258 msgstr ""
9259
9260 #. type: verbatim
9261 #: ../fish/guestfish-actions.pod:1590
9262 #, no-wrap
9263 msgid ""
9264 " get-selinux\n"
9265 "\n"
9266 msgstr ""
9267
9268 #. type: textblock
9269 #: ../fish/guestfish-actions.pod:1592
9270 msgid ""
9271 "This returns the current setting of the selinux flag which is passed to the "
9272 "appliance at boot time.  See L</set-selinux>."
9273 msgstr ""
9274
9275 #. type: =head2
9276 #: ../fish/guestfish-actions.pod:1598
9277 msgid "get-smp"
9278 msgstr ""
9279
9280 #. type: verbatim
9281 #: ../fish/guestfish-actions.pod:1600
9282 #, no-wrap
9283 msgid ""
9284 " get-smp\n"
9285 "\n"
9286 msgstr ""
9287
9288 #. type: textblock
9289 #: ../fish/guestfish-actions.pod:1602 ../src/guestfs-actions.pod:2568
9290 msgid "This returns the number of virtual CPUs assigned to the appliance."
9291 msgstr ""
9292
9293 #. type: =head2
9294 #: ../fish/guestfish-actions.pod:1604
9295 msgid "get-state"
9296 msgstr ""
9297
9298 #. type: verbatim
9299 #: ../fish/guestfish-actions.pod:1606
9300 #, no-wrap
9301 msgid ""
9302 " get-state\n"
9303 "\n"
9304 msgstr ""
9305
9306 #. type: textblock
9307 #: ../fish/guestfish-actions.pod:1608 ../src/guestfs-actions.pod:2579
9308 msgid ""
9309 "This returns the current state as an opaque integer.  This is only useful "
9310 "for printing debug and internal error messages."
9311 msgstr ""
9312
9313 #. type: textblock
9314 #: ../fish/guestfish-actions.pod:1611 ../fish/guestfish-actions.pod:2574 ../fish/guestfish-actions.pod:2592 ../fish/guestfish-actions.pod:2630 ../fish/guestfish-actions.pod:2646 ../src/guestfs-actions.pod:2582 ../src/guestfs-actions.pod:3905 ../src/guestfs-actions.pod:3934 ../src/guestfs-actions.pod:3995 ../src/guestfs-actions.pod:4022
9315 msgid "For more information on states, see L<guestfs(3)>."
9316 msgstr ""
9317
9318 #. type: =head2
9319 #: ../fish/guestfish-actions.pod:1613
9320 msgid "get-trace"
9321 msgstr ""
9322
9323 #. type: verbatim
9324 #: ../fish/guestfish-actions.pod:1615
9325 #, no-wrap
9326 msgid ""
9327 " get-trace\n"
9328 "\n"
9329 msgstr ""
9330
9331 #. type: textblock
9332 #: ../fish/guestfish-actions.pod:1617 ../src/guestfs-actions.pod:2593
9333 msgid "Return the command trace flag."
9334 msgstr ""
9335
9336 #. type: =head2
9337 #: ../fish/guestfish-actions.pod:1619
9338 msgid "get-umask"
9339 msgstr ""
9340
9341 #. type: verbatim
9342 #: ../fish/guestfish-actions.pod:1621
9343 #, no-wrap
9344 msgid ""
9345 " get-umask\n"
9346 "\n"
9347 msgstr ""
9348
9349 #. type: textblock
9350 #: ../fish/guestfish-actions.pod:1623
9351 msgid ""
9352 "Return the current umask.  By default the umask is C<022> unless it has been "
9353 "set by calling L</umask>."
9354 msgstr ""
9355
9356 #. type: =head2
9357 #: ../fish/guestfish-actions.pod:1626
9358 msgid "get-verbose"
9359 msgstr ""
9360
9361 #. type: verbatim
9362 #: ../fish/guestfish-actions.pod:1628
9363 #, no-wrap
9364 msgid ""
9365 " get-verbose\n"
9366 "\n"
9367 msgstr ""
9368
9369 #. type: textblock
9370 #: ../fish/guestfish-actions.pod:1630 ../src/guestfs-actions.pod:2616
9371 msgid "This returns the verbose messages flag."
9372 msgstr ""
9373
9374 #. type: =head2
9375 #: ../fish/guestfish-actions.pod:1632
9376 msgid "getcon"
9377 msgstr ""
9378
9379 #. type: verbatim
9380 #: ../fish/guestfish-actions.pod:1634
9381 #, no-wrap
9382 msgid ""
9383 " getcon\n"
9384 "\n"
9385 msgstr ""
9386
9387 #. type: textblock
9388 #: ../fish/guestfish-actions.pod:1636 ../src/guestfs-actions.pod:2627
9389 msgid "This gets the SELinux security context of the daemon."
9390 msgstr ""
9391
9392 #. type: textblock
9393 #: ../fish/guestfish-actions.pod:1638
9394 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
9395 msgstr ""
9396
9397 #. type: =head2
9398 #: ../fish/guestfish-actions.pod:1641
9399 msgid "getxattr"
9400 msgstr ""
9401
9402 #. type: verbatim
9403 #: ../fish/guestfish-actions.pod:1643
9404 #, no-wrap
9405 msgid ""
9406 " getxattr path name\n"
9407 "\n"
9408 msgstr ""
9409
9410 #. type: textblock
9411 #: ../fish/guestfish-actions.pod:1645
9412 msgid ""
9413 "Get a single extended attribute from file C<path> named C<name>.  This call "
9414 "follows symlinks.  If you want to lookup an extended attribute for the "
9415 "symlink itself, use L</lgetxattr>."
9416 msgstr ""
9417
9418 #. type: textblock
9419 #: ../fish/guestfish-actions.pod:1649 ../fish/guestfish-actions.pod:2719
9420 msgid ""
9421 "Normally it is better to get all extended attributes from a file in one go "
9422 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
9423 "buggy and do not provide a way to list out attributes.  For these "
9424 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
9425 "attributes you want in advance and call this function."
9426 msgstr ""
9427
9428 #. type: textblock
9429 #: ../fish/guestfish-actions.pod:1656 ../fish/guestfish-actions.pod:2726 ../src/guestfs-actions.pod:2656 ../src/guestfs-actions.pod:4155
9430 msgid ""
9431 "Extended attribute values are blobs of binary data.  If there is no extended "
9432 "attribute named C<name>, this returns an error."
9433 msgstr ""
9434
9435 #. type: textblock
9436 #: ../fish/guestfish-actions.pod:1659
9437 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9438 msgstr ""
9439
9440 #. type: =head2
9441 #: ../fish/guestfish-actions.pod:1661
9442 msgid "getxattrs"
9443 msgstr ""
9444
9445 #. type: verbatim
9446 #: ../fish/guestfish-actions.pod:1663
9447 #, no-wrap
9448 msgid ""
9449 " getxattrs path\n"
9450 "\n"
9451 msgstr ""
9452
9453 #. type: textblock
9454 #: ../fish/guestfish-actions.pod:1665 ../src/guestfs-actions.pod:2673
9455 msgid "This call lists the extended attributes of the file or directory C<path>."
9456 msgstr ""
9457
9458 #. type: textblock
9459 #: ../fish/guestfish-actions.pod:1668 ../src/guestfs-actions.pod:2676
9460 msgid ""
9461 "At the system call level, this is a combination of the L<listxattr(2)> and "
9462 "L<getxattr(2)> calls."
9463 msgstr ""
9464
9465 #. type: textblock
9466 #: ../fish/guestfish-actions.pod:1671
9467 msgid "See also: L</lgetxattrs>, L<attr(5)>."
9468 msgstr ""
9469
9470 #. type: =head2
9471 #: ../fish/guestfish-actions.pod:1673
9472 msgid "glob-expand"
9473 msgstr ""
9474
9475 #. type: verbatim
9476 #: ../fish/guestfish-actions.pod:1675
9477 #, no-wrap
9478 msgid ""
9479 " glob-expand pattern\n"
9480 "\n"
9481 msgstr ""
9482
9483 #. type: textblock
9484 #: ../fish/guestfish-actions.pod:1677 ../src/guestfs-actions.pod:2693
9485 msgid ""
9486 "This command searches for all the pathnames matching C<pattern> according to "
9487 "the wildcard expansion rules used by the shell."
9488 msgstr ""
9489
9490 #. type: textblock
9491 #: ../fish/guestfish-actions.pod:1681 ../src/guestfs-actions.pod:2697
9492 msgid "If no paths match, then this returns an empty list (note: not an error)."
9493 msgstr ""
9494
9495 #. type: textblock
9496 #: ../fish/guestfish-actions.pod:1684 ../src/guestfs-actions.pod:2700
9497 msgid ""
9498 "It is just a wrapper around the C L<glob(3)> function with flags "
9499 "C<GLOB_MARK|GLOB_BRACE>.  See that manual page for more details."
9500 msgstr ""
9501
9502 #. type: =head2
9503 #: ../fish/guestfish-actions.pod:1688
9504 msgid "grep"
9505 msgstr ""
9506
9507 #. type: verbatim
9508 #: ../fish/guestfish-actions.pod:1690
9509 #, no-wrap
9510 msgid ""
9511 " grep regex path\n"
9512 "\n"
9513 msgstr ""
9514
9515 #. type: textblock
9516 #: ../fish/guestfish-actions.pod:1692 ../src/guestfs-actions.pod:2717
9517 msgid "This calls the external C<grep> program and returns the matching lines."
9518 msgstr ""
9519
9520 #. type: =head2
9521 #: ../fish/guestfish-actions.pod:1698
9522 msgid "grepi"
9523 msgstr ""
9524
9525 #. type: verbatim
9526 #: ../fish/guestfish-actions.pod:1700
9527 #, no-wrap
9528 msgid ""
9529 " grepi regex path\n"
9530 "\n"
9531 msgstr ""
9532
9533 #. type: textblock
9534 #: ../fish/guestfish-actions.pod:1702 ../src/guestfs-actions.pod:2736
9535 msgid "This calls the external C<grep -i> program and returns the matching lines."
9536 msgstr ""
9537
9538 #. type: =head2
9539 #: ../fish/guestfish-actions.pod:1708
9540 msgid "grub-install"
9541 msgstr ""
9542
9543 #. type: verbatim
9544 #: ../fish/guestfish-actions.pod:1710
9545 #, no-wrap
9546 msgid ""
9547 " grub-install root device\n"
9548 "\n"
9549 msgstr ""
9550
9551 #. type: textblock
9552 #: ../fish/guestfish-actions.pod:1712 ../src/guestfs-actions.pod:2755
9553 msgid ""
9554 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
9555 "with the root directory being C<root>."
9556 msgstr ""
9557
9558 #. type: textblock
9559 #: ../fish/guestfish-actions.pod:1721 ../src/guestfs-actions.pod:2764
9560 msgid ""
9561 "There is currently no way in the API to install grub2, which is used by most "
9562 "modern Linux guests.  It is possible to run the grub2 command from the "
9563 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
9564 msgstr ""
9565
9566 #. type: textblock
9567 #: ../fish/guestfish-actions.pod:1728 ../src/guestfs-actions.pod:2771
9568 msgid ""
9569 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
9570 "compatible with itself, so this only works in rather narrow circumstances.  "
9571 "Careful testing with each guest version is advisable."
9572 msgstr ""
9573
9574 #. type: textblock
9575 #: ../fish/guestfish-actions.pod:1735 ../src/guestfs-actions.pod:2778
9576 msgid ""
9577 "If grub-install reports the error \"No suitable drive was found in the "
9578 "generated device map.\" it may be that you need to create a "
9579 "C</boot/grub/device.map> file first that contains the mapping between grub "
9580 "device names and Linux device names.  It is usually sufficient to create a "
9581 "file containing:"
9582 msgstr ""
9583
9584 #. type: verbatim
9585 #: ../fish/guestfish-actions.pod:1742 ../src/guestfs-actions.pod:2785
9586 #, no-wrap
9587 msgid ""
9588 " (hd0) /dev/vda\n"
9589 "\n"
9590 msgstr ""
9591
9592 #. type: textblock
9593 #: ../fish/guestfish-actions.pod:1744 ../src/guestfs-actions.pod:2787
9594 msgid "replacing C</dev/vda> with the name of the installation device."
9595 msgstr ""
9596
9597 #. type: =head2
9598 #: ../fish/guestfish-actions.pod:1748
9599 msgid "head"
9600 msgstr ""
9601
9602 #. type: verbatim
9603 #: ../fish/guestfish-actions.pod:1750
9604 #, no-wrap
9605 msgid ""
9606 " head path\n"
9607 "\n"
9608 msgstr ""
9609
9610 #. type: textblock
9611 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2801
9612 msgid ""
9613 "This command returns up to the first 10 lines of a file as a list of "
9614 "strings."
9615 msgstr ""
9616
9617 #. type: =head2
9618 #: ../fish/guestfish-actions.pod:1758
9619 msgid "head-n"
9620 msgstr ""
9621
9622 #. type: verbatim
9623 #: ../fish/guestfish-actions.pod:1760
9624 #, no-wrap
9625 msgid ""
9626 " head-n nrlines path\n"
9627 "\n"
9628 msgstr ""
9629
9630 #. type: textblock
9631 #: ../fish/guestfish-actions.pod:1762 ../src/guestfs-actions.pod:2820
9632 msgid ""
9633 "If the parameter C<nrlines> is a positive number, this returns the first "
9634 "C<nrlines> lines of the file C<path>."
9635 msgstr ""
9636
9637 #. type: textblock
9638 #: ../fish/guestfish-actions.pod:1765 ../src/guestfs-actions.pod:2823
9639 msgid ""
9640 "If the parameter C<nrlines> is a negative number, this returns lines from "
9641 "the file C<path>, excluding the last C<nrlines> lines."
9642 msgstr ""
9643
9644 #. type: textblock
9645 #: ../fish/guestfish-actions.pod:1768 ../fish/guestfish-actions.pod:4951 ../src/guestfs-actions.pod:2826 ../src/guestfs-actions.pod:7626
9646 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
9647 msgstr ""
9648
9649 #. type: =head2
9650 #: ../fish/guestfish-actions.pod:1773
9651 msgid "hexdump"
9652 msgstr ""
9653
9654 #. type: verbatim
9655 #: ../fish/guestfish-actions.pod:1775
9656 #, no-wrap
9657 msgid ""
9658 " hexdump path\n"
9659 "\n"
9660 msgstr ""
9661
9662 #. type: textblock
9663 #: ../fish/guestfish-actions.pod:1777 ../src/guestfs-actions.pod:2843
9664 msgid ""
9665 "This runs C<hexdump -C> on the given C<path>.  The result is the "
9666 "human-readable, canonical hex dump of the file."
9667 msgstr ""
9668
9669 #. type: =head2
9670 #: ../fish/guestfish-actions.pod:1783
9671 msgid "initrd-cat"
9672 msgstr ""
9673
9674 #. type: verbatim
9675 #: ../fish/guestfish-actions.pod:1785
9676 #, no-wrap
9677 msgid ""
9678 " initrd-cat initrdpath filename\n"
9679 "\n"
9680 msgstr ""
9681
9682 #. type: textblock
9683 #: ../fish/guestfish-actions.pod:1787 ../src/guestfs-actions.pod:2862
9684 msgid ""
9685 "This command unpacks the file C<filename> from the initrd file called "
9686 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
9687 "character."
9688 msgstr ""
9689
9690 #. type: textblock
9691 #: ../fish/guestfish-actions.pod:1791 ../src/guestfs-actions.pod:2866
9692 msgid ""
9693 "For example, in guestfish you could use the following command to examine the "
9694 "boot script (usually called C</init>)  contained in a Linux initrd or "
9695 "initramfs image:"
9696 msgstr ""
9697
9698 #. type: verbatim
9699 #: ../fish/guestfish-actions.pod:1795 ../src/guestfs-actions.pod:2870
9700 #, no-wrap
9701 msgid ""
9702 " initrd-cat /boot/initrd-<version>.img init\n"
9703 "\n"
9704 msgstr ""
9705
9706 #. type: textblock
9707 #: ../fish/guestfish-actions.pod:1797
9708 msgid "See also L</initrd-list>."
9709 msgstr ""
9710
9711 #. type: =head2
9712 #: ../fish/guestfish-actions.pod:1802
9713 msgid "initrd-list"
9714 msgstr ""
9715
9716 #. type: verbatim
9717 #: ../fish/guestfish-actions.pod:1804
9718 #, no-wrap
9719 msgid ""
9720 " initrd-list path\n"
9721 "\n"
9722 msgstr ""
9723
9724 #. type: textblock
9725 #: ../fish/guestfish-actions.pod:1806 ../src/guestfs-actions.pod:2889
9726 msgid "This command lists out files contained in an initrd."
9727 msgstr ""
9728
9729 #. type: textblock
9730 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2891
9731 msgid ""
9732 "The files are listed without any initial C</> character.  The files are "
9733 "listed in the order they appear (not necessarily alphabetical).  Directory "
9734 "names are listed as separate items."
9735 msgstr ""
9736
9737 #. type: textblock
9738 #: ../fish/guestfish-actions.pod:1812 ../src/guestfs-actions.pod:2895
9739 msgid ""
9740 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
9741 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
9742 "files)."
9743 msgstr ""
9744
9745 #. type: =head2
9746 #: ../fish/guestfish-actions.pod:1816
9747 msgid "inotify-add-watch"
9748 msgstr ""
9749
9750 #. type: verbatim
9751 #: ../fish/guestfish-actions.pod:1818
9752 #, no-wrap
9753 msgid ""
9754 " inotify-add-watch path mask\n"
9755 "\n"
9756 msgstr ""
9757
9758 #. type: textblock
9759 #: ../fish/guestfish-actions.pod:1820 ../src/guestfs-actions.pod:2912
9760 msgid "Watch C<path> for the events listed in C<mask>."
9761 msgstr ""
9762
9763 #. type: textblock
9764 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2914
9765 msgid ""
9766 "Note that if C<path> is a directory then events within that directory are "
9767 "watched, but this does I<not> happen recursively (in subdirectories)."
9768 msgstr ""
9769
9770 #. type: textblock
9771 #: ../fish/guestfish-actions.pod:1826 ../src/guestfs-actions.pod:2918
9772 msgid ""
9773 "Note for non-C or non-Linux callers: the inotify events are defined by the "
9774 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
9775 msgstr ""
9776
9777 #. type: =head2
9778 #: ../fish/guestfish-actions.pod:1830
9779 msgid "inotify-close"
9780 msgstr ""
9781
9782 #. type: verbatim
9783 #: ../fish/guestfish-actions.pod:1832
9784 #, no-wrap
9785 msgid ""
9786 " inotify-close\n"
9787 "\n"
9788 msgstr ""
9789
9790 #. type: textblock
9791 #: ../fish/guestfish-actions.pod:1834 ../src/guestfs-actions.pod:2931
9792 msgid ""
9793 "This closes the inotify handle which was previously opened by inotify_init.  "
9794 "It removes all watches, throws away any pending events, and deallocates all "
9795 "resources."
9796 msgstr ""
9797
9798 #. type: =head2
9799 #: ../fish/guestfish-actions.pod:1838
9800 msgid "inotify-files"
9801 msgstr ""
9802
9803 #. type: verbatim
9804 #: ../fish/guestfish-actions.pod:1840
9805 #, no-wrap
9806 msgid ""
9807 " inotify-files\n"
9808 "\n"
9809 msgstr ""
9810
9811 #. type: textblock
9812 #: ../fish/guestfish-actions.pod:1842
9813 msgid ""
9814 "This function is a helpful wrapper around L</inotify-read> which just "
9815 "returns a list of pathnames of objects that were touched.  The returned "
9816 "pathnames are sorted and deduplicated."
9817 msgstr ""
9818
9819 #. type: =head2
9820 #: ../fish/guestfish-actions.pod:1846
9821 msgid "inotify-init"
9822 msgstr ""
9823
9824 #. type: verbatim
9825 #: ../fish/guestfish-actions.pod:1848
9826 #, no-wrap
9827 msgid ""
9828 " inotify-init maxevents\n"
9829 "\n"
9830 msgstr ""
9831
9832 #. type: textblock
9833 #: ../fish/guestfish-actions.pod:1850 ../src/guestfs-actions.pod:2960
9834 msgid ""
9835 "This command creates a new inotify handle.  The inotify subsystem can be "
9836 "used to notify events which happen to objects in the guest filesystem."
9837 msgstr ""
9838
9839 #. type: textblock
9840 #: ../fish/guestfish-actions.pod:1854
9841 msgid ""
9842 "C<maxevents> is the maximum number of events which will be queued up between "
9843 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
9844 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
9845 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
9846 "but records the fact that it threw them away by setting a flag "
9847 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
9848 msgstr ""
9849
9850 #. type: textblock
9851 #: ../fish/guestfish-actions.pod:1864
9852 msgid ""
9853 "Before any events are generated, you have to add some watches to the "
9854 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
9855 "L</inotify-watch-all>."
9856 msgstr ""
9857
9858 #. type: textblock
9859 #: ../fish/guestfish-actions.pod:1870
9860 msgid ""
9861 "Queued up events should be read periodically by calling L</inotify-read> (or "
9862 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
9863 "If you don't read the events out often enough then you risk the internal "
9864 "queue overflowing."
9865 msgstr ""
9866
9867 #. type: textblock
9868 #: ../fish/guestfish-actions.pod:1877
9869 msgid ""
9870 "The handle should be closed after use by calling L</inotify-close>.  This "
9871 "also removes any watches automatically."
9872 msgstr ""
9873
9874 #. type: textblock
9875 #: ../fish/guestfish-actions.pod:1881 ../src/guestfs-actions.pod:2991
9876 msgid ""
9877 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
9878 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
9879 "that there is one global inotify handle per libguestfs instance."
9880 msgstr ""
9881
9882 #. type: =head2
9883 #: ../fish/guestfish-actions.pod:1886
9884 msgid "inotify-read"
9885 msgstr ""
9886
9887 #. type: verbatim
9888 #: ../fish/guestfish-actions.pod:1888
9889 #, no-wrap
9890 msgid ""
9891 " inotify-read\n"
9892 "\n"
9893 msgstr ""
9894
9895 #. type: textblock
9896 #: ../fish/guestfish-actions.pod:1890 ../src/guestfs-actions.pod:3005
9897 msgid ""
9898 "Return the complete queue of events that have happened since the previous "
9899 "read call."
9900 msgstr ""
9901
9902 #. type: textblock
9903 #: ../fish/guestfish-actions.pod:1893 ../src/guestfs-actions.pod:3008
9904 msgid "If no events have happened, this returns an empty list."
9905 msgstr ""
9906
9907 #. type: textblock
9908 #: ../fish/guestfish-actions.pod:1895 ../src/guestfs-actions.pod:3010
9909 msgid ""
9910 "I<Note>: In order to make sure that all events have been read, you must call "
9911 "this function repeatedly until it returns an empty list.  The reason is that "
9912 "the call will read events up to the maximum appliance-to-host message size "
9913 "and leave remaining events in the queue."
9914 msgstr ""
9915
9916 #. type: =head2
9917 #: ../fish/guestfish-actions.pod:1901
9918 msgid "inotify-rm-watch"
9919 msgstr ""
9920
9921 #. type: verbatim
9922 #: ../fish/guestfish-actions.pod:1903
9923 #, no-wrap
9924 msgid ""
9925 " inotify-rm-watch wd\n"
9926 "\n"
9927 msgstr ""
9928
9929 #. type: textblock
9930 #: ../fish/guestfish-actions.pod:1905
9931 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
9932 msgstr ""
9933
9934 #. type: =head2
9935 #: ../fish/guestfish-actions.pod:1908
9936 msgid "inspect-get-arch"
9937 msgstr ""
9938
9939 #. type: verbatim
9940 #: ../fish/guestfish-actions.pod:1910
9941 #, no-wrap
9942 msgid ""
9943 " inspect-get-arch root\n"
9944 "\n"
9945 msgstr ""
9946
9947 #. type: textblock
9948 #: ../fish/guestfish-actions.pod:1912
9949 msgid ""
9950 "This returns the architecture of the inspected operating system.  The "
9951 "possible return values are listed under L</file-architecture>."
9952 msgstr ""
9953
9954 #. type: textblock
9955 #: ../fish/guestfish-actions.pod:1916 ../src/guestfs-actions.pod:3045
9956 msgid ""
9957 "If the architecture could not be determined, then the string C<unknown> is "
9958 "returned."
9959 msgstr ""
9960
9961 #. type: textblock
9962 #: ../fish/guestfish-actions.pod:1919 ../fish/guestfish-actions.pod:2014 ../fish/guestfish-actions.pod:2093 ../fish/guestfish-actions.pod:2105 ../fish/guestfish-actions.pod:2189 ../fish/guestfish-actions.pod:2251 ../fish/guestfish-actions.pod:2272 ../fish/guestfish-actions.pod:2286 ../fish/guestfish-actions.pod:2326 ../fish/guestfish-actions.pod:2366 ../fish/guestfish-actions.pod:2379 ../fish/guestfish-actions.pod:2392 ../fish/guestfish-actions.pod:2402 ../fish/guestfish-actions.pod:2412 ../fish/guestfish-actions.pod:2424 ../fish/guestfish-actions.pod:2520 ../fish/guestfish-actions.pod:2554 ../src/guestfs-actions.pod:3048 ../src/guestfs-actions.pod:3150 ../src/guestfs-actions.pod:3254 ../src/guestfs-actions.pod:3273 ../src/guestfs-actions.pod:3404 ../src/guestfs-actions.pod:3488 ../src/guestfs-actions.pod:3516 ../src/guestfs-actions.pod:3537 ../src/guestfs-actions.pod:3590 ../src/guestfs-actions.pod:3638 ../src/guestfs-actions.pod:3658 ../src/guestfs-actions.pod:3678 ../src/guestfs-actions.pod:3695 ../src/guestfs-actions.pod:3711 ../src/guestfs-actions.pod:3729 ../src/guestfs-actions.pod:3831 ../src/guestfs-actions.pod:3872
9963 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
9964 msgstr ""
9965
9966 #. type: =head2
9967 #: ../fish/guestfish-actions.pod:1921
9968 msgid "inspect-get-distro"
9969 msgstr ""
9970
9971 #. type: verbatim
9972 #: ../fish/guestfish-actions.pod:1923
9973 #, no-wrap
9974 msgid ""
9975 " inspect-get-distro root\n"
9976 "\n"
9977 msgstr ""
9978
9979 #. type: textblock
9980 #: ../fish/guestfish-actions.pod:1925 ../src/guestfs-actions.pod:3061
9981 msgid "This returns the distro (distribution) of the inspected operating system."
9982 msgstr ""
9983
9984 #. type: textblock
9985 #: ../fish/guestfish-actions.pod:1928 ../src/guestfs-actions.pod:3064
9986 msgid "Currently defined distros are:"
9987 msgstr ""
9988
9989 #. type: =item
9990 #: ../fish/guestfish-actions.pod:1932 ../src/guestfs-actions.pod:3068
9991 msgid "\"archlinux\""
9992 msgstr ""
9993
9994 #. type: textblock
9995 #: ../fish/guestfish-actions.pod:1934 ../src/guestfs-actions.pod:3070
9996 msgid "Arch Linux."
9997 msgstr ""
9998
9999 #. type: =item
10000 #: ../fish/guestfish-actions.pod:1936 ../src/guestfs-actions.pod:3072
10001 msgid "\"centos\""
10002 msgstr ""
10003
10004 #. type: textblock
10005 #: ../fish/guestfish-actions.pod:1938 ../src/guestfs-actions.pod:3074
10006 msgid "CentOS."
10007 msgstr ""
10008
10009 #. type: =item
10010 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:3076
10011 msgid "\"debian\""
10012 msgstr ""
10013
10014 #. type: textblock
10015 #: ../fish/guestfish-actions.pod:1942 ../src/guestfs-actions.pod:3078
10016 msgid "Debian."
10017 msgstr ""
10018
10019 #. type: =item
10020 #: ../fish/guestfish-actions.pod:1944 ../src/guestfs-actions.pod:3080
10021 msgid "\"fedora\""
10022 msgstr ""
10023
10024 #. type: textblock
10025 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:3082
10026 msgid "Fedora."
10027 msgstr ""
10028
10029 #. type: =item
10030 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:3084
10031 msgid "\"gentoo\""
10032 msgstr ""
10033
10034 #. type: textblock
10035 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:3086
10036 msgid "Gentoo."
10037 msgstr ""
10038
10039 #. type: =item
10040 #: ../fish/guestfish-actions.pod:1952 ../src/guestfs-actions.pod:3088
10041 msgid "\"linuxmint\""
10042 msgstr ""
10043
10044 #. type: textblock
10045 #: ../fish/guestfish-actions.pod:1954 ../src/guestfs-actions.pod:3090
10046 msgid "Linux Mint."
10047 msgstr ""
10048
10049 #. type: =item
10050 #: ../fish/guestfish-actions.pod:1956 ../src/guestfs-actions.pod:3092
10051 msgid "\"mageia\""
10052 msgstr ""
10053
10054 #. type: textblock
10055 #: ../fish/guestfish-actions.pod:1958 ../src/guestfs-actions.pod:3094
10056 msgid "Mageia."
10057 msgstr ""
10058
10059 #. type: =item
10060 #: ../fish/guestfish-actions.pod:1960 ../src/guestfs-actions.pod:3096
10061 msgid "\"mandriva\""
10062 msgstr ""
10063
10064 #. type: textblock
10065 #: ../fish/guestfish-actions.pod:1962 ../src/guestfs-actions.pod:3098
10066 msgid "Mandriva."
10067 msgstr ""
10068
10069 #. type: =item
10070 #: ../fish/guestfish-actions.pod:1964 ../src/guestfs-actions.pod:3100
10071 msgid "\"meego\""
10072 msgstr ""
10073
10074 #. type: textblock
10075 #: ../fish/guestfish-actions.pod:1966 ../src/guestfs-actions.pod:3102
10076 msgid "MeeGo."
10077 msgstr ""
10078
10079 #. type: =item
10080 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:3104
10081 msgid "\"opensuse\""
10082 msgstr ""
10083
10084 #. type: textblock
10085 #: ../fish/guestfish-actions.pod:1970 ../src/guestfs-actions.pod:3106
10086 msgid "OpenSUSE."
10087 msgstr ""
10088
10089 #. type: =item
10090 #: ../fish/guestfish-actions.pod:1972 ../src/guestfs-actions.pod:3108
10091 msgid "\"pardus\""
10092 msgstr ""
10093
10094 #. type: textblock
10095 #: ../fish/guestfish-actions.pod:1974 ../src/guestfs-actions.pod:3110
10096 msgid "Pardus."
10097 msgstr ""
10098
10099 #. type: =item
10100 #: ../fish/guestfish-actions.pod:1976 ../src/guestfs-actions.pod:3112
10101 msgid "\"redhat-based\""
10102 msgstr ""
10103
10104 #. type: textblock
10105 #: ../fish/guestfish-actions.pod:1978 ../src/guestfs-actions.pod:3114
10106 msgid "Some Red Hat-derived distro."
10107 msgstr ""
10108
10109 #. type: =item
10110 #: ../fish/guestfish-actions.pod:1980 ../src/guestfs-actions.pod:3116
10111 msgid "\"rhel\""
10112 msgstr ""
10113
10114 #. type: textblock
10115 #: ../fish/guestfish-actions.pod:1982 ../src/guestfs-actions.pod:3118
10116 msgid "Red Hat Enterprise Linux."
10117 msgstr ""
10118
10119 #. type: =item
10120 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:3120
10121 msgid "\"scientificlinux\""
10122 msgstr ""
10123
10124 #. type: textblock
10125 #: ../fish/guestfish-actions.pod:1986 ../src/guestfs-actions.pod:3122
10126 msgid "Scientific Linux."
10127 msgstr ""
10128
10129 #. type: =item
10130 #: ../fish/guestfish-actions.pod:1988 ../src/guestfs-actions.pod:3124
10131 msgid "\"slackware\""
10132 msgstr ""
10133
10134 #. type: textblock
10135 #: ../fish/guestfish-actions.pod:1990 ../src/guestfs-actions.pod:3126
10136 msgid "Slackware."
10137 msgstr ""
10138
10139 #. type: =item
10140 #: ../fish/guestfish-actions.pod:1992 ../src/guestfs-actions.pod:3128
10141 msgid "\"ttylinux\""
10142 msgstr ""
10143
10144 #. type: textblock
10145 #: ../fish/guestfish-actions.pod:1994 ../src/guestfs-actions.pod:3130
10146 msgid "ttylinux."
10147 msgstr ""
10148
10149 #. type: =item
10150 #: ../fish/guestfish-actions.pod:1996 ../src/guestfs-actions.pod:3132
10151 msgid "\"ubuntu\""
10152 msgstr ""
10153
10154 #. type: textblock
10155 #: ../fish/guestfish-actions.pod:1998 ../src/guestfs-actions.pod:3134
10156 msgid "Ubuntu."
10157 msgstr ""
10158
10159 #. type: =item
10160 #: ../fish/guestfish-actions.pod:2000 ../fish/guestfish-actions.pod:2084 ../fish/guestfish-actions.pod:2357 ../src/guestfs-actions.pod:3136 ../src/guestfs-actions.pod:3245 ../src/guestfs-actions.pod:3629
10161 msgid "\"unknown\""
10162 msgstr ""
10163
10164 #. type: textblock
10165 #: ../fish/guestfish-actions.pod:2002 ../src/guestfs-actions.pod:3138
10166 msgid "The distro could not be determined."
10167 msgstr ""
10168
10169 #. type: =item
10170 #: ../fish/guestfish-actions.pod:2004 ../fish/guestfish-actions.pod:2341 ../src/guestfs-actions.pod:3140 ../src/guestfs-actions.pod:3613
10171 msgid "\"windows\""
10172 msgstr ""
10173
10174 #. type: textblock
10175 #: ../fish/guestfish-actions.pod:2006 ../src/guestfs-actions.pod:3142
10176 msgid ""
10177 "Windows does not have distributions.  This string is returned if the OS type "
10178 "is Windows."
10179 msgstr ""
10180
10181 #. type: textblock
10182 #: ../fish/guestfish-actions.pod:2011 ../fish/guestfish-actions.pod:2090 ../fish/guestfish-actions.pod:2363 ../src/guestfs-actions.pod:3147 ../src/guestfs-actions.pod:3251 ../src/guestfs-actions.pod:3635
10183 msgid ""
10184 "Future versions of libguestfs may return other strings here.  The caller "
10185 "should be prepared to handle any string."
10186 msgstr ""
10187
10188 #. type: =head2
10189 #: ../fish/guestfish-actions.pod:2016
10190 msgid "inspect-get-drive-mappings"
10191 msgstr ""
10192
10193 #. type: verbatim
10194 #: ../fish/guestfish-actions.pod:2018
10195 #, no-wrap
10196 msgid ""
10197 " inspect-get-drive-mappings root\n"
10198 "\n"
10199 msgstr ""
10200
10201 #. type: textblock
10202 #: ../fish/guestfish-actions.pod:2020 ../src/guestfs-actions.pod:3163
10203 msgid ""
10204 "This call is useful for Windows which uses a primitive system of assigning "
10205 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
10206 "Windows Registry to find out how disks/partitions are mapped to drive "
10207 "letters, and returns a hash table as in the example below:"
10208 msgstr ""
10209
10210 #. type: verbatim
10211 #: ../fish/guestfish-actions.pod:2026 ../src/guestfs-actions.pod:3169
10212 #, no-wrap
10213 msgid ""
10214 " C      =>     /dev/vda2\n"
10215 " E      =>     /dev/vdb1\n"
10216 " F      =>     /dev/vdc1\n"
10217 "\n"
10218 msgstr ""
10219
10220 #. type: textblock
10221 #: ../fish/guestfish-actions.pod:2030 ../src/guestfs-actions.pod:3173
10222 msgid ""
10223 "Note that keys are drive letters.  For Windows, the key is case insensitive "
10224 "and just contains the drive letter, without the customary colon separator "
10225 "character."
10226 msgstr ""
10227
10228 #. type: textblock
10229 #: ../fish/guestfish-actions.pod:2034 ../src/guestfs-actions.pod:3177
10230 msgid ""
10231 "In future we may support other operating systems that also used drive "
10232 "letters, but the keys for those might not be case insensitive and might be "
10233 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
10234 "C<h1> etc."
10235 msgstr ""
10236
10237 #. type: textblock
10238 #: ../fish/guestfish-actions.pod:2039 ../src/guestfs-actions.pod:3182
10239 msgid ""
10240 "For Windows guests, currently only hard drive mappings are returned.  "
10241 "Removable disks (eg. DVD-ROMs) are ignored."
10242 msgstr ""
10243
10244 #. type: textblock
10245 #: ../fish/guestfish-actions.pod:2042 ../src/guestfs-actions.pod:3185
10246 msgid ""
10247 "For guests that do not use drive mappings, or if the drive mappings could "
10248 "not be determined, this returns an empty hash table."
10249 msgstr ""
10250
10251 #. type: textblock
10252 #: ../fish/guestfish-actions.pod:2045
10253 msgid ""
10254 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10255 "L</inspect-get-mountpoints>, L</inspect-get-filesystems>."
10256 msgstr ""
10257
10258 #. type: =head2
10259 #: ../fish/guestfish-actions.pod:2049
10260 msgid "inspect-get-filesystems"
10261 msgstr ""
10262
10263 #. type: verbatim
10264 #: ../fish/guestfish-actions.pod:2051
10265 #, no-wrap
10266 msgid ""
10267 " inspect-get-filesystems root\n"
10268 "\n"
10269 msgstr ""
10270
10271 #. type: textblock
10272 #: ../fish/guestfish-actions.pod:2053 ../src/guestfs-actions.pod:3206
10273 msgid ""
10274 "This returns a list of all the filesystems that we think are associated with "
10275 "this operating system.  This includes the root filesystem, other ordinary "
10276 "filesystems, and non-mounted devices like swap partitions."
10277 msgstr ""
10278
10279 #. type: textblock
10280 #: ../fish/guestfish-actions.pod:2058 ../src/guestfs-actions.pod:3211
10281 msgid ""
10282 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
10283 "to be shared between operating systems."
10284 msgstr ""
10285
10286 #. type: textblock
10287 #: ../fish/guestfish-actions.pod:2061
10288 msgid ""
10289 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10290 "L</inspect-get-mountpoints>."
10291 msgstr ""
10292
10293 #. type: =head2
10294 #: ../fish/guestfish-actions.pod:2064
10295 msgid "inspect-get-format"
10296 msgstr ""
10297
10298 #. type: verbatim
10299 #: ../fish/guestfish-actions.pod:2066
10300 #, no-wrap
10301 msgid ""
10302 " inspect-get-format root\n"
10303 "\n"
10304 msgstr ""
10305
10306 #. type: textblock
10307 #: ../fish/guestfish-actions.pod:2068 ../src/guestfs-actions.pod:3229
10308 msgid ""
10309 "This returns the format of the inspected operating system.  You can use it "
10310 "to detect install images, live CDs and similar."
10311 msgstr ""
10312
10313 #. type: textblock
10314 #: ../fish/guestfish-actions.pod:2071 ../src/guestfs-actions.pod:3232
10315 msgid "Currently defined formats are:"
10316 msgstr ""
10317
10318 #. type: =item
10319 #: ../fish/guestfish-actions.pod:2075 ../src/guestfs-actions.pod:3236
10320 msgid "\"installed\""
10321 msgstr ""
10322
10323 #. type: textblock
10324 #: ../fish/guestfish-actions.pod:2077 ../src/guestfs-actions.pod:3238
10325 msgid "This is an installed operating system."
10326 msgstr ""
10327
10328 #. type: =item
10329 #: ../fish/guestfish-actions.pod:2079 ../src/guestfs-actions.pod:3240
10330 msgid "\"installer\""
10331 msgstr ""
10332
10333 #. type: textblock
10334 #: ../fish/guestfish-actions.pod:2081 ../src/guestfs-actions.pod:3242
10335 msgid ""
10336 "The disk image being inspected is not an installed operating system, but a "
10337 "I<bootable> install disk, live CD, or similar."
10338 msgstr ""
10339
10340 #. type: textblock
10341 #: ../fish/guestfish-actions.pod:2086 ../src/guestfs-actions.pod:3247
10342 msgid "The format of this disk image is not known."
10343 msgstr ""
10344
10345 #. type: =head2
10346 #: ../fish/guestfish-actions.pod:2095
10347 msgid "inspect-get-hostname"
10348 msgstr ""
10349
10350 #. type: verbatim
10351 #: ../fish/guestfish-actions.pod:2097
10352 #, no-wrap
10353 msgid ""
10354 " inspect-get-hostname root\n"
10355 "\n"
10356 msgstr ""
10357
10358 #. type: textblock
10359 #: ../fish/guestfish-actions.pod:2099 ../src/guestfs-actions.pod:3267
10360 msgid ""
10361 "This function returns the hostname of the operating system as found by "
10362 "inspection of the guest's configuration files."
10363 msgstr ""
10364
10365 #. type: textblock
10366 #: ../fish/guestfish-actions.pod:2102 ../src/guestfs-actions.pod:3270
10367 msgid ""
10368 "If the hostname could not be determined, then the string C<unknown> is "
10369 "returned."
10370 msgstr ""
10371
10372 #. type: =head2
10373 #: ../fish/guestfish-actions.pod:2107
10374 msgid "inspect-get-icon"
10375 msgstr ""
10376
10377 #. type: verbatim
10378 #: ../fish/guestfish-actions.pod:2109
10379 #, no-wrap
10380 msgid ""
10381 " inspect-get-icon root [favicon:true|false] [highquality:true|false]\n"
10382 "\n"
10383 msgstr ""
10384
10385 #. type: textblock
10386 #: ../fish/guestfish-actions.pod:2111 ../src/guestfs-actions.pod:3296
10387 msgid ""
10388 "This function returns an icon corresponding to the inspected operating "
10389 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
10390 "to PNG if necessary)."
10391 msgstr ""
10392
10393 #. type: textblock
10394 #: ../fish/guestfish-actions.pod:2115 ../src/guestfs-actions.pod:3300
10395 msgid ""
10396 "If it was not possible to get an icon this function returns a zero-length "
10397 "(non-NULL) buffer.  I<Callers must check for this case>."
10398 msgstr ""
10399
10400 #. type: textblock
10401 #: ../fish/guestfish-actions.pod:2118 ../src/guestfs-actions.pod:3303
10402 msgid ""
10403 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
10404 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
10405 "this file will be returned.  You can disable favicons by passing the "
10406 "optional C<favicon> boolean as false (default is true)."
10407 msgstr ""
10408
10409 #. type: textblock
10410 #: ../fish/guestfish-actions.pod:2124 ../src/guestfs-actions.pod:3309
10411 msgid ""
10412 "If finding the favicon fails, then we look in other places in the guest for "
10413 "a suitable icon."
10414 msgstr ""
10415
10416 #. type: textblock
10417 #: ../fish/guestfish-actions.pod:2127 ../src/guestfs-actions.pod:3312
10418 msgid ""
10419 "If the optional C<highquality> boolean is true then only high quality icons "
10420 "are returned, which means only icons of high resolution with an alpha "
10421 "channel.  The default (false) is to return any icon we can, even if it is of "
10422 "substandard quality."
10423 msgstr ""
10424
10425 #. type: textblock
10426 #: ../fish/guestfish-actions.pod:2138 ../src/guestfs-actions.pod:3323
10427 msgid ""
10428 "Unlike most other inspection API calls, the guest's disks must be mounted up "
10429 "before you call this, since it needs to read information from the guest "
10430 "filesystem during the call."
10431 msgstr ""
10432
10433 #. type: textblock
10434 #: ../fish/guestfish-actions.pod:2144 ../src/guestfs-actions.pod:3329
10435 msgid ""
10436 "B<Security:> The icon data comes from the untrusted guest, and should be "
10437 "treated with caution.  PNG files have been known to contain exploits.  "
10438 "Ensure that libpng (or other relevant libraries) are fully up to date before "
10439 "trying to process or display the icon."
10440 msgstr ""
10441
10442 #. type: textblock
10443 #: ../fish/guestfish-actions.pod:2152 ../src/guestfs-actions.pod:3337
10444 msgid ""
10445 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
10446 "tries to return the largest, highest quality icon available.  The "
10447 "application must scale the icon to the required size."
10448 msgstr ""
10449
10450 #. type: textblock
10451 #: ../fish/guestfish-actions.pod:2159 ../src/guestfs-actions.pod:3344
10452 msgid ""
10453 "Extracting icons from Windows guests requires the external C<wrestool> "
10454 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
10455 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
10456 "installed separately."
10457 msgstr ""
10458
10459 #. type: textblock
10460 #: ../fish/guestfish-actions.pod:2166 ../src/guestfs-actions.pod:3351
10461 msgid ""
10462 "Operating system icons are usually trademarks.  Seek legal advice before "
10463 "using trademarks in applications."
10464 msgstr ""
10465
10466 #. type: =head2
10467 #: ../fish/guestfish-actions.pod:2173
10468 msgid "inspect-get-major-version"
10469 msgstr ""
10470
10471 #. type: verbatim
10472 #: ../fish/guestfish-actions.pod:2175
10473 #, no-wrap
10474 msgid ""
10475 " inspect-get-major-version root\n"
10476 "\n"
10477 msgstr ""
10478
10479 #. type: textblock
10480 #: ../fish/guestfish-actions.pod:2177 ../src/guestfs-actions.pod:3392
10481 msgid "This returns the major version number of the inspected operating system."
10482 msgstr ""
10483
10484 #. type: textblock
10485 #: ../fish/guestfish-actions.pod:2180 ../src/guestfs-actions.pod:3395
10486 msgid ""
10487 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
10488 "popular public names used by the operating system.  Notably the operating "
10489 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
10490 "1).  You can find out the real versions corresponding to releases of Windows "
10491 "by consulting Wikipedia or MSDN."
10492 msgstr ""
10493
10494 #. type: textblock
10495 #: ../fish/guestfish-actions.pod:2187 ../fish/guestfish-actions.pod:2198 ../src/guestfs-actions.pod:3402 ../src/guestfs-actions.pod:3419
10496 msgid "If the version could not be determined, then C<0> is returned."
10497 msgstr ""
10498
10499 #. type: =head2
10500 #: ../fish/guestfish-actions.pod:2191
10501 msgid "inspect-get-minor-version"
10502 msgstr ""
10503
10504 #. type: verbatim
10505 #: ../fish/guestfish-actions.pod:2193
10506 #, no-wrap
10507 msgid ""
10508 " inspect-get-minor-version root\n"
10509 "\n"
10510 msgstr ""
10511
10512 #. type: textblock
10513 #: ../fish/guestfish-actions.pod:2195 ../src/guestfs-actions.pod:3416
10514 msgid "This returns the minor version number of the inspected operating system."
10515 msgstr ""
10516
10517 #. type: textblock
10518 #: ../fish/guestfish-actions.pod:2200
10519 msgid ""
10520 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10521 "L</inspect-get-major-version>."
10522 msgstr ""
10523
10524 #. type: =head2
10525 #: ../fish/guestfish-actions.pod:2203
10526 msgid "inspect-get-mountpoints"
10527 msgstr ""
10528
10529 #. type: verbatim
10530 #: ../fish/guestfish-actions.pod:2205
10531 #, no-wrap
10532 msgid ""
10533 " inspect-get-mountpoints root\n"
10534 "\n"
10535 msgstr ""
10536
10537 #. type: textblock
10538 #: ../fish/guestfish-actions.pod:2207 ../src/guestfs-actions.pod:3434
10539 msgid ""
10540 "This returns a hash of where we think the filesystems associated with this "
10541 "operating system should be mounted.  Callers should note that this is at "
10542 "best an educated guess made by reading configuration files such as "
10543 "C</etc/fstab>.  I<In particular note> that this may return filesystems which "
10544 "are non-existent or not mountable and callers should be prepared to handle "
10545 "or ignore failures if they try to mount them."
10546 msgstr ""
10547
10548 #. type: textblock
10549 #: ../fish/guestfish-actions.pod:2216 ../src/guestfs-actions.pod:3443
10550 msgid ""
10551 "Each element in the returned hashtable has a key which is the path of the "
10552 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
10553 "mounted there (eg. C</dev/sda1>)."
10554 msgstr ""
10555
10556 #. type: textblock
10557 #: ../fish/guestfish-actions.pod:2221 ../src/guestfs-actions.pod:3448
10558 msgid "Non-mounted devices such as swap devices are I<not> returned in this list."
10559 msgstr ""
10560
10561 #. type: textblock
10562 #: ../fish/guestfish-actions.pod:2224
10563 msgid ""
10564 "For operating systems like Windows which still use drive letters, this call "
10565 "will only return an entry for the first drive \"mounted on\" C</>.  For "
10566 "information about the mapping of drive letters to partitions, see "
10567 "L</inspect-get-drive-mappings>."
10568 msgstr ""
10569
10570 #. type: textblock
10571 #: ../fish/guestfish-actions.pod:2230
10572 msgid ""
10573 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10574 "L</inspect-get-filesystems>."
10575 msgstr ""
10576
10577 #. type: =head2
10578 #: ../fish/guestfish-actions.pod:2233
10579 msgid "inspect-get-package-format"
10580 msgstr ""
10581
10582 #. type: verbatim
10583 #: ../fish/guestfish-actions.pod:2235
10584 #, no-wrap
10585 msgid ""
10586 " inspect-get-package-format root\n"
10587 "\n"
10588 msgstr ""
10589
10590 #. type: textblock
10591 #: ../fish/guestfish-actions.pod:2237
10592 msgid ""
10593 "This function and L</inspect-get-package-management> return the package "
10594 "format and package management tool used by the inspected operating system.  "
10595 "For example for Fedora these functions would return C<rpm> (package format) "
10596 "and C<yum> (package management)."
10597 msgstr ""
10598
10599 #. type: textblock
10600 #: ../fish/guestfish-actions.pod:2243 ../src/guestfs-actions.pod:3480
10601 msgid ""
10602 "This returns the string C<unknown> if we could not determine the package "
10603 "format I<or> if the operating system does not have a real packaging system "
10604 "(eg. Windows)."
10605 msgstr ""
10606
10607 #. type: textblock
10608 #: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3484
10609 msgid ""
10610 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>, "
10611 "C<pkgsrc>.  Future versions of libguestfs may return other strings."
10612 msgstr ""
10613
10614 #. type: =head2
10615 #: ../fish/guestfish-actions.pod:2253
10616 msgid "inspect-get-package-management"
10617 msgstr ""
10618
10619 #. type: verbatim
10620 #: ../fish/guestfish-actions.pod:2255
10621 #, no-wrap
10622 msgid ""
10623 " inspect-get-package-management root\n"
10624 "\n"
10625 msgstr ""
10626
10627 #. type: textblock
10628 #: ../fish/guestfish-actions.pod:2257
10629 msgid ""
10630 "L</inspect-get-package-format> and this function return the package format "
10631 "and package management tool used by the inspected operating system.  For "
10632 "example for Fedora these functions would return C<rpm> (package format) and "
10633 "C<yum> (package management)."
10634 msgstr ""
10635
10636 #. type: textblock
10637 #: ../fish/guestfish-actions.pod:2263 ../src/guestfs-actions.pod:3507
10638 msgid ""
10639 "This returns the string C<unknown> if we could not determine the package "
10640 "management tool I<or> if the operating system does not have a real packaging "
10641 "system (eg. Windows)."
10642 msgstr ""
10643
10644 #. type: textblock
10645 #: ../fish/guestfish-actions.pod:2267 ../src/guestfs-actions.pod:3511
10646 msgid ""
10647 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
10648 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>, C<zypper>.  Future "
10649 "versions of libguestfs may return other strings."
10650 msgstr ""
10651
10652 #. type: =head2
10653 #: ../fish/guestfish-actions.pod:2274
10654 msgid "inspect-get-product-name"
10655 msgstr ""
10656
10657 #. type: verbatim
10658 #: ../fish/guestfish-actions.pod:2276
10659 #, no-wrap
10660 msgid ""
10661 " inspect-get-product-name root\n"
10662 "\n"
10663 msgstr ""
10664
10665 #. type: textblock
10666 #: ../fish/guestfish-actions.pod:2278 ../src/guestfs-actions.pod:3529
10667 msgid ""
10668 "This returns the product name of the inspected operating system.  The "
10669 "product name is generally some freeform string which can be displayed to the "
10670 "user, but should not be parsed by programs."
10671 msgstr ""
10672
10673 #. type: textblock
10674 #: ../fish/guestfish-actions.pod:2283 ../src/guestfs-actions.pod:3534
10675 msgid ""
10676 "If the product name could not be determined, then the string C<unknown> is "
10677 "returned."
10678 msgstr ""
10679
10680 #. type: =head2
10681 #: ../fish/guestfish-actions.pod:2288
10682 msgid "inspect-get-product-variant"
10683 msgstr ""
10684
10685 #. type: verbatim
10686 #: ../fish/guestfish-actions.pod:2290
10687 #, no-wrap
10688 msgid ""
10689 " inspect-get-product-variant root\n"
10690 "\n"
10691 msgstr ""
10692
10693 #. type: textblock
10694 #: ../fish/guestfish-actions.pod:2292 ../src/guestfs-actions.pod:3550
10695 msgid "This returns the product variant of the inspected operating system."
10696 msgstr ""
10697
10698 #. type: textblock
10699 #: ../fish/guestfish-actions.pod:2295 ../src/guestfs-actions.pod:3553
10700 msgid ""
10701 "For Windows guests, this returns the contents of the Registry key "
10702 "C<HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> "
10703 "which is usually a string such as C<Client> or C<Server> (other values are "
10704 "possible).  This can be used to distinguish consumer and enterprise versions "
10705 "of Windows that have the same version number (for example, Windows 7 and "
10706 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
10707 "the latter is C<Server>)."
10708 msgstr ""
10709
10710 #. type: textblock
10711 #: ../fish/guestfish-actions.pod:2304 ../src/guestfs-actions.pod:3562
10712 msgid ""
10713 "For enterprise Linux guests, in future we intend this to return the product "
10714 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
10715 "implemented at present."
10716 msgstr ""
10717
10718 #. type: textblock
10719 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3566
10720 msgid ""
10721 "If the product variant could not be determined, then the string C<unknown> "
10722 "is returned."
10723 msgstr ""
10724
10725 #. type: textblock
10726 #: ../fish/guestfish-actions.pod:2311
10727 msgid ""
10728 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10729 "L</inspect-get-product-name>, L</inspect-get-major-version>."
10730 msgstr ""
10731
10732 #. type: =head2
10733 #: ../fish/guestfish-actions.pod:2315
10734 msgid "inspect-get-roots"
10735 msgstr ""
10736
10737 #. type: verbatim
10738 #: ../fish/guestfish-actions.pod:2317
10739 #, no-wrap
10740 msgid ""
10741 " inspect-get-roots\n"
10742 "\n"
10743 msgstr ""
10744
10745 #. type: textblock
10746 #: ../fish/guestfish-actions.pod:2319
10747 msgid ""
10748 "This function is a convenient way to get the list of root devices, as "
10749 "returned from a previous call to L</inspect-os>, but without redoing the "
10750 "whole inspection process."
10751 msgstr ""
10752
10753 #. type: textblock
10754 #: ../fish/guestfish-actions.pod:2323
10755 msgid ""
10756 "This returns an empty list if either no root devices were found or the "
10757 "caller has not called L</inspect-os>."
10758 msgstr ""
10759
10760 #. type: =head2
10761 #: ../fish/guestfish-actions.pod:2328
10762 msgid "inspect-get-type"
10763 msgstr ""
10764
10765 #. type: verbatim
10766 #: ../fish/guestfish-actions.pod:2330
10767 #, no-wrap
10768 msgid ""
10769 " inspect-get-type root\n"
10770 "\n"
10771 msgstr ""
10772
10773 #. type: textblock
10774 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3604
10775 msgid ""
10776 "This returns the type of the inspected operating system.  Currently defined "
10777 "types are:"
10778 msgstr ""
10779
10780 #. type: =item
10781 #: ../fish/guestfish-actions.pod:2337 ../src/guestfs-actions.pod:3609
10782 msgid "\"linux\""
10783 msgstr ""
10784
10785 #. type: textblock
10786 #: ../fish/guestfish-actions.pod:2339 ../src/guestfs-actions.pod:3611
10787 msgid "Any Linux-based operating system."
10788 msgstr ""
10789
10790 #. type: textblock
10791 #: ../fish/guestfish-actions.pod:2343 ../src/guestfs-actions.pod:3615
10792 msgid "Any Microsoft Windows operating system."
10793 msgstr ""
10794
10795 #. type: =item
10796 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3617
10797 msgid "\"freebsd\""
10798 msgstr ""
10799
10800 #. type: textblock
10801 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3619
10802 msgid "FreeBSD."
10803 msgstr ""
10804
10805 #. type: =item
10806 #: ../fish/guestfish-actions.pod:2349 ../src/guestfs-actions.pod:3621
10807 msgid "\"netbsd\""
10808 msgstr ""
10809
10810 #. type: textblock
10811 #: ../fish/guestfish-actions.pod:2351 ../src/guestfs-actions.pod:3623
10812 msgid "NetBSD."
10813 msgstr ""
10814
10815 #. type: =item
10816 #: ../fish/guestfish-actions.pod:2353 ../src/guestfs-actions.pod:3625
10817 msgid "\"hurd\""
10818 msgstr ""
10819
10820 #. type: textblock
10821 #: ../fish/guestfish-actions.pod:2355 ../src/guestfs-actions.pod:3627
10822 msgid "GNU/Hurd."
10823 msgstr ""
10824
10825 #. type: textblock
10826 #: ../fish/guestfish-actions.pod:2359 ../src/guestfs-actions.pod:3631
10827 msgid "The operating system type could not be determined."
10828 msgstr ""
10829
10830 #. type: =head2
10831 #: ../fish/guestfish-actions.pod:2368
10832 msgid "inspect-get-windows-current-control-set"
10833 msgstr ""
10834
10835 #. type: verbatim
10836 #: ../fish/guestfish-actions.pod:2370
10837 #, no-wrap
10838 msgid ""
10839 " inspect-get-windows-current-control-set root\n"
10840 "\n"
10841 msgstr ""
10842
10843 #. type: textblock
10844 #: ../fish/guestfish-actions.pod:2372 ../src/guestfs-actions.pod:3651
10845 msgid ""
10846 "This returns the Windows CurrentControlSet of the inspected guest.  The "
10847 "CurrentControlSet is a registry key name such as C<ControlSet001>."
10848 msgstr ""
10849
10850 #. type: textblock
10851 #: ../fish/guestfish-actions.pod:2375 ../src/guestfs-actions.pod:3654
10852 msgid ""
10853 "This call assumes that the guest is Windows and that the Registry could be "
10854 "examined by inspection.  If this is not the case then an error is returned."
10855 msgstr ""
10856
10857 #. type: =head2
10858 #: ../fish/guestfish-actions.pod:2381
10859 msgid "inspect-get-windows-systemroot"
10860 msgstr ""
10861
10862 #. type: verbatim
10863 #: ../fish/guestfish-actions.pod:2383
10864 #, no-wrap
10865 msgid ""
10866 " inspect-get-windows-systemroot root\n"
10867 "\n"
10868 msgstr ""
10869
10870 #. type: textblock
10871 #: ../fish/guestfish-actions.pod:2385 ../src/guestfs-actions.pod:3671
10872 msgid ""
10873 "This returns the Windows systemroot of the inspected guest.  The systemroot "
10874 "is a directory path such as C</WINDOWS>."
10875 msgstr ""
10876
10877 #. type: textblock
10878 #: ../fish/guestfish-actions.pod:2388 ../src/guestfs-actions.pod:3674
10879 msgid ""
10880 "This call assumes that the guest is Windows and that the systemroot could be "
10881 "determined by inspection.  If this is not the case then an error is "
10882 "returned."
10883 msgstr ""
10884
10885 #. type: =head2
10886 #: ../fish/guestfish-actions.pod:2394
10887 msgid "inspect-is-live"
10888 msgstr ""
10889
10890 #. type: verbatim
10891 #: ../fish/guestfish-actions.pod:2396
10892 #, no-wrap
10893 msgid ""
10894 " inspect-is-live root\n"
10895 "\n"
10896 msgstr ""
10897
10898 #. type: textblock
10899 #: ../fish/guestfish-actions.pod:2398
10900 msgid ""
10901 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10902 "then this returns true if a live image was detected on the disk."
10903 msgstr ""
10904
10905 #. type: =head2
10906 #: ../fish/guestfish-actions.pod:2404
10907 msgid "inspect-is-multipart"
10908 msgstr ""
10909
10910 #. type: verbatim
10911 #: ../fish/guestfish-actions.pod:2406
10912 #, no-wrap
10913 msgid ""
10914 " inspect-is-multipart root\n"
10915 "\n"
10916 msgstr ""
10917
10918 #. type: textblock
10919 #: ../fish/guestfish-actions.pod:2408
10920 msgid ""
10921 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10922 "then this returns true if the disk is part of a set."
10923 msgstr ""
10924
10925 #. type: =head2
10926 #: ../fish/guestfish-actions.pod:2414
10927 msgid "inspect-is-netinst"
10928 msgstr ""
10929
10930 #. type: verbatim
10931 #: ../fish/guestfish-actions.pod:2416
10932 #, no-wrap
10933 msgid ""
10934 " inspect-is-netinst root\n"
10935 "\n"
10936 msgstr ""
10937
10938 #. type: textblock
10939 #: ../fish/guestfish-actions.pod:2418
10940 msgid ""
10941 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10942 "then this returns true if the disk is a network installer, ie. not a "
10943 "self-contained install CD but one which is likely to require network access "
10944 "to complete the install."
10945 msgstr ""
10946
10947 #. type: =head2
10948 #: ../fish/guestfish-actions.pod:2426
10949 msgid "inspect-list-applications"
10950 msgstr ""
10951
10952 #. type: verbatim
10953 #: ../fish/guestfish-actions.pod:2428
10954 #, no-wrap
10955 msgid ""
10956 " inspect-list-applications root\n"
10957 "\n"
10958 msgstr ""
10959
10960 #. type: textblock
10961 #: ../fish/guestfish-actions.pod:2430 ../src/guestfs-actions.pod:3741
10962 msgid "Return the list of applications installed in the operating system."
10963 msgstr ""
10964
10965 #. type: textblock
10966 #: ../fish/guestfish-actions.pod:2432
10967 msgid ""
10968 "I<Note:> This call works differently from other parts of the inspection "
10969 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
10970 "then mount up the disks, before calling this.  Listing applications is a "
10971 "significantly more difficult operation which requires access to the full "
10972 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
10973 "are just returning data cached in the libguestfs handle, this call actually "
10974 "reads parts of the mounted filesystems during the call."
10975 msgstr ""
10976
10977 #. type: textblock
10978 #: ../fish/guestfish-actions.pod:2442 ../src/guestfs-actions.pod:3753
10979 msgid ""
10980 "This returns an empty list if the inspection code was not able to determine "
10981 "the list of applications."
10982 msgstr ""
10983
10984 #. type: textblock
10985 #: ../fish/guestfish-actions.pod:2445 ../src/guestfs-actions.pod:3756
10986 msgid "The application structure contains the following fields:"
10987 msgstr ""
10988
10989 #. type: =item
10990 #: ../fish/guestfish-actions.pod:2449 ../src/guestfs-actions.pod:3760
10991 msgid "C<app_name>"
10992 msgstr ""
10993
10994 #. type: textblock
10995 #: ../fish/guestfish-actions.pod:2451 ../src/guestfs-actions.pod:3762
10996 msgid ""
10997 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
10998 "guests, this is the package name."
10999 msgstr ""
11000
11001 #. type: =item
11002 #: ../fish/guestfish-actions.pod:2454 ../src/guestfs-actions.pod:3765
11003 msgid "C<app_display_name>"
11004 msgstr ""
11005
11006 #. type: textblock
11007 #: ../fish/guestfish-actions.pod:2456 ../src/guestfs-actions.pod:3767
11008 msgid ""
11009 "The display name of the application, sometimes localized to the install "
11010 "language of the guest operating system."
11011 msgstr ""
11012
11013 #. type: textblock
11014 #: ../fish/guestfish-actions.pod:2459 ../src/guestfs-actions.pod:3770
11015 msgid ""
11016 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
11017 "to display something can use C<app_name> instead."
11018 msgstr ""
11019
11020 #. type: =item
11021 #: ../fish/guestfish-actions.pod:2462 ../src/guestfs-actions.pod:3773
11022 msgid "C<app_epoch>"
11023 msgstr ""
11024
11025 #. type: textblock
11026 #: ../fish/guestfish-actions.pod:2464 ../src/guestfs-actions.pod:3775
11027 msgid ""
11028 "For package managers which use epochs, this contains the epoch of the "
11029 "package (an integer).  If unavailable, this is returned as C<0>."
11030 msgstr ""
11031
11032 #. type: =item
11033 #: ../fish/guestfish-actions.pod:2467 ../src/guestfs-actions.pod:3778
11034 msgid "C<app_version>"
11035 msgstr ""
11036
11037 #. type: textblock
11038 #: ../fish/guestfish-actions.pod:2469 ../src/guestfs-actions.pod:3780
11039 msgid ""
11040 "The version string of the application or package.  If unavailable this is "
11041 "returned as an empty string C<\"\">."
11042 msgstr ""
11043
11044 #. type: =item
11045 #: ../fish/guestfish-actions.pod:2472 ../src/guestfs-actions.pod:3783
11046 msgid "C<app_release>"
11047 msgstr ""
11048
11049 #. type: textblock
11050 #: ../fish/guestfish-actions.pod:2474 ../src/guestfs-actions.pod:3785
11051 msgid ""
11052 "The release string of the application or package, for package managers that "
11053 "use this.  If unavailable this is returned as an empty string C<\"\">."
11054 msgstr ""
11055
11056 #. type: =item
11057 #: ../fish/guestfish-actions.pod:2478 ../src/guestfs-actions.pod:3789
11058 msgid "C<app_install_path>"
11059 msgstr ""
11060
11061 #. type: textblock
11062 #: ../fish/guestfish-actions.pod:2480 ../src/guestfs-actions.pod:3791
11063 msgid ""
11064 "The installation path of the application (on operating systems such as "
11065 "Windows which use installation paths).  This path is in the format used by "
11066 "the guest operating system, it is not a libguestfs path."
11067 msgstr ""
11068
11069 #. type: textblock
11070 #: ../fish/guestfish-actions.pod:2485 ../src/guestfs-actions.pod:3796
11071 msgid "If unavailable this is returned as an empty string C<\"\">."
11072 msgstr ""
11073
11074 #. type: =item
11075 #: ../fish/guestfish-actions.pod:2487 ../src/guestfs-actions.pod:3798
11076 msgid "C<app_trans_path>"
11077 msgstr ""
11078
11079 #. type: textblock
11080 #: ../fish/guestfish-actions.pod:2489 ../src/guestfs-actions.pod:3800
11081 msgid ""
11082 "The install path translated into a libguestfs path.  If unavailable this is "
11083 "returned as an empty string C<\"\">."
11084 msgstr ""
11085
11086 #. type: =item
11087 #: ../fish/guestfish-actions.pod:2492 ../src/guestfs-actions.pod:3803
11088 msgid "C<app_publisher>"
11089 msgstr ""
11090
11091 #. type: textblock
11092 #: ../fish/guestfish-actions.pod:2494 ../src/guestfs-actions.pod:3805
11093 msgid ""
11094 "The name of the publisher of the application, for package managers that use "
11095 "this.  If unavailable this is returned as an empty string C<\"\">."
11096 msgstr ""
11097
11098 #. type: =item
11099 #: ../fish/guestfish-actions.pod:2498 ../src/guestfs-actions.pod:3809
11100 msgid "C<app_url>"
11101 msgstr ""
11102
11103 #. type: textblock
11104 #: ../fish/guestfish-actions.pod:2500 ../src/guestfs-actions.pod:3811
11105 msgid ""
11106 "The URL (eg. upstream URL) of the application.  If unavailable this is "
11107 "returned as an empty string C<\"\">."
11108 msgstr ""
11109
11110 #. type: =item
11111 #: ../fish/guestfish-actions.pod:2503 ../src/guestfs-actions.pod:3814
11112 msgid "C<app_source_package>"
11113 msgstr ""
11114
11115 #. type: textblock
11116 #: ../fish/guestfish-actions.pod:2505 ../src/guestfs-actions.pod:3816
11117 msgid ""
11118 "For packaging systems which support this, the name of the source package.  "
11119 "If unavailable this is returned as an empty string C<\"\">."
11120 msgstr ""
11121
11122 #. type: =item
11123 #: ../fish/guestfish-actions.pod:2508 ../src/guestfs-actions.pod:3819
11124 msgid "C<app_summary>"
11125 msgstr ""
11126
11127 #. type: textblock
11128 #: ../fish/guestfish-actions.pod:2510 ../src/guestfs-actions.pod:3821
11129 msgid ""
11130 "A short (usually one line) description of the application or package.  If "
11131 "unavailable this is returned as an empty string C<\"\">."
11132 msgstr ""
11133
11134 #. type: =item
11135 #: ../fish/guestfish-actions.pod:2513 ../src/guestfs-actions.pod:3824
11136 msgid "C<app_description>"
11137 msgstr ""
11138
11139 #. type: textblock
11140 #: ../fish/guestfish-actions.pod:2515 ../src/guestfs-actions.pod:3826
11141 msgid ""
11142 "A longer description of the application or package.  If unavailable this is "
11143 "returned as an empty string C<\"\">."
11144 msgstr ""
11145
11146 #. type: =head2
11147 #: ../fish/guestfish-actions.pod:2522
11148 msgid "inspect-os"
11149 msgstr ""
11150
11151 #. type: verbatim
11152 #: ../fish/guestfish-actions.pod:2524
11153 #, no-wrap
11154 msgid ""
11155 " inspect-os\n"
11156 "\n"
11157 msgstr ""
11158
11159 #. type: textblock
11160 #: ../fish/guestfish-actions.pod:2526 ../src/guestfs-actions.pod:3844
11161 msgid ""
11162 "This function uses other libguestfs functions and certain heuristics to "
11163 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
11164 "for operating systems."
11165 msgstr ""
11166
11167 #. type: textblock
11168 #: ../fish/guestfish-actions.pod:2530 ../src/guestfs-actions.pod:3848
11169 msgid "The list returned is empty if no operating systems were found."
11170 msgstr ""
11171
11172 #. type: textblock
11173 #: ../fish/guestfish-actions.pod:2532 ../src/guestfs-actions.pod:3850
11174 msgid ""
11175 "If one operating system was found, then this returns a list with a single "
11176 "element, which is the name of the root filesystem of this operating system.  "
11177 "It is also possible for this function to return a list containing more than "
11178 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
11179 "element being the root filesystem of one of the operating systems."
11180 msgstr ""
11181
11182 #. type: textblock
11183 #: ../fish/guestfish-actions.pod:2539
11184 msgid ""
11185 "You can pass the root string(s) returned to other L</inspect-get-*> "
11186 "functions in order to query further information about each operating system, "
11187 "such as the name and version."
11188 msgstr ""
11189
11190 #. type: textblock
11191 #: ../fish/guestfish-actions.pod:2544
11192 msgid ""
11193 "This function uses other libguestfs features such as L</mount-ro> and "
11194 "L</umount-all> in order to mount and unmount filesystems and look at the "
11195 "contents.  This should be called with no disks currently mounted.  The "
11196 "function may also use Augeas, so any existing Augeas handle will be closed."
11197 msgstr ""
11198
11199 #. type: textblock
11200 #: ../fish/guestfish-actions.pod:2550 ../src/guestfs-actions.pod:3868
11201 msgid ""
11202 "This function cannot decrypt encrypted disks.  The caller must do that first "
11203 "(supplying the necessary keys) if the disk is encrypted."
11204 msgstr ""
11205
11206 #. type: textblock
11207 #: ../fish/guestfish-actions.pod:2556 ../fish/guestfish-actions.pod:2754 ../fish/guestfish-actions.pod:2819
11208 msgid "See also L</list-filesystems>."
11209 msgstr ""
11210
11211 #. type: =head2
11212 #: ../fish/guestfish-actions.pod:2558
11213 msgid "is-blockdev"
11214 msgstr ""
11215
11216 #. type: verbatim
11217 #: ../fish/guestfish-actions.pod:2560
11218 #, no-wrap
11219 msgid ""
11220 " is-blockdev path\n"
11221 "\n"
11222 msgstr ""
11223
11224 #. type: textblock
11225 #: ../fish/guestfish-actions.pod:2562 ../src/guestfs-actions.pod:3888
11226 msgid ""
11227 "This returns C<true> if and only if there is a block device with the given "
11228 "C<path> name."
11229 msgstr ""
11230
11231 #. type: textblock
11232 #: ../fish/guestfish-actions.pod:2565 ../fish/guestfish-actions.pod:2583 ../fish/guestfish-actions.pod:2602 ../fish/guestfish-actions.pod:2611 ../fish/guestfish-actions.pod:2621 ../fish/guestfish-actions.pod:2655 ../fish/guestfish-actions.pod:2664
11233 msgid "See also L</stat>."
11234 msgstr ""
11235
11236 #. type: =head2
11237 #: ../fish/guestfish-actions.pod:2567
11238 msgid "is-busy"
11239 msgstr ""
11240
11241 #. type: verbatim
11242 #: ../fish/guestfish-actions.pod:2569
11243 #, no-wrap
11244 msgid ""
11245 " is-busy\n"
11246 "\n"
11247 msgstr ""
11248
11249 #. type: textblock
11250 #: ../fish/guestfish-actions.pod:2571 ../src/guestfs-actions.pod:3902
11251 msgid ""
11252 "This returns true iff this handle is busy processing a command (in the "
11253 "C<BUSY> state)."
11254 msgstr ""
11255
11256 #. type: =head2
11257 #: ../fish/guestfish-actions.pod:2576
11258 msgid "is-chardev"
11259 msgstr ""
11260
11261 #. type: verbatim
11262 #: ../fish/guestfish-actions.pod:2578
11263 #, no-wrap
11264 msgid ""
11265 " is-chardev path\n"
11266 "\n"
11267 msgstr ""
11268
11269 #. type: textblock
11270 #: ../fish/guestfish-actions.pod:2580 ../src/guestfs-actions.pod:3917
11271 msgid ""
11272 "This returns C<true> if and only if there is a character device with the "
11273 "given C<path> name."
11274 msgstr ""
11275
11276 #. type: =head2
11277 #: ../fish/guestfish-actions.pod:2585
11278 msgid "is-config"
11279 msgstr ""
11280
11281 #. type: verbatim
11282 #: ../fish/guestfish-actions.pod:2587
11283 #, no-wrap
11284 msgid ""
11285 " is-config\n"
11286 "\n"
11287 msgstr ""
11288
11289 #. type: textblock
11290 #: ../fish/guestfish-actions.pod:2589 ../src/guestfs-actions.pod:3931
11291 msgid ""
11292 "This returns true iff this handle is being configured (in the C<CONFIG> "
11293 "state)."
11294 msgstr ""
11295
11296 #. type: =head2
11297 #: ../fish/guestfish-actions.pod:2594
11298 msgid "is-dir"
11299 msgstr ""
11300
11301 #. type: verbatim
11302 #: ../fish/guestfish-actions.pod:2596
11303 #, no-wrap
11304 msgid ""
11305 " is-dir path\n"
11306 "\n"
11307 msgstr ""
11308
11309 #. type: textblock
11310 #: ../fish/guestfish-actions.pod:2598 ../src/guestfs-actions.pod:3946
11311 msgid ""
11312 "This returns C<true> if and only if there is a directory with the given "
11313 "C<path> name.  Note that it returns false for other objects like files."
11314 msgstr ""
11315
11316 #. type: =head2
11317 #: ../fish/guestfish-actions.pod:2604
11318 msgid "is-fifo"
11319 msgstr ""
11320
11321 #. type: verbatim
11322 #: ../fish/guestfish-actions.pod:2606
11323 #, no-wrap
11324 msgid ""
11325 " is-fifo path\n"
11326 "\n"
11327 msgstr ""
11328
11329 #. type: textblock
11330 #: ../fish/guestfish-actions.pod:2608 ../src/guestfs-actions.pod:3962
11331 msgid ""
11332 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
11333 "given C<path> name."
11334 msgstr ""
11335
11336 #. type: =head2
11337 #: ../fish/guestfish-actions.pod:2613
11338 msgid "is-file"
11339 msgstr ""
11340
11341 #. type: verbatim
11342 #: ../fish/guestfish-actions.pod:2615
11343 #, no-wrap
11344 msgid ""
11345 " is-file path\n"
11346 "\n"
11347 msgstr ""
11348
11349 #. type: textblock
11350 #: ../fish/guestfish-actions.pod:2617 ../src/guestfs-actions.pod:3977
11351 msgid ""
11352 "This returns C<true> if and only if there is a regular file with the given "
11353 "C<path> name.  Note that it returns false for other objects like "
11354 "directories."
11355 msgstr ""
11356
11357 #. type: =head2
11358 #: ../fish/guestfish-actions.pod:2623
11359 msgid "is-launching"
11360 msgstr ""
11361
11362 #. type: verbatim
11363 #: ../fish/guestfish-actions.pod:2625
11364 #, no-wrap
11365 msgid ""
11366 " is-launching\n"
11367 "\n"
11368 msgstr ""
11369
11370 #. type: textblock
11371 #: ../fish/guestfish-actions.pod:2627 ../src/guestfs-actions.pod:3992
11372 msgid ""
11373 "This returns true iff this handle is launching the subprocess (in the "
11374 "C<LAUNCHING> state)."
11375 msgstr ""
11376
11377 #. type: =head2
11378 #: ../fish/guestfish-actions.pod:2632
11379 msgid "is-lv"
11380 msgstr ""
11381
11382 #. type: verbatim
11383 #: ../fish/guestfish-actions.pod:2634
11384 #, no-wrap
11385 msgid ""
11386 " is-lv device\n"
11387 "\n"
11388 msgstr ""
11389
11390 #. type: textblock
11391 #: ../fish/guestfish-actions.pod:2636 ../src/guestfs-actions.pod:4007
11392 msgid ""
11393 "This command tests whether C<device> is a logical volume, and returns true "
11394 "iff this is the case."
11395 msgstr ""
11396
11397 #. type: =head2
11398 #: ../fish/guestfish-actions.pod:2639
11399 msgid "is-ready"
11400 msgstr ""
11401
11402 #. type: verbatim
11403 #: ../fish/guestfish-actions.pod:2641
11404 #, no-wrap
11405 msgid ""
11406 " is-ready\n"
11407 "\n"
11408 msgstr ""
11409
11410 #. type: textblock
11411 #: ../fish/guestfish-actions.pod:2643 ../src/guestfs-actions.pod:4019
11412 msgid ""
11413 "This returns true iff this handle is ready to accept commands (in the "
11414 "C<READY> state)."
11415 msgstr ""
11416
11417 #. type: =head2
11418 #: ../fish/guestfish-actions.pod:2648
11419 msgid "is-socket"
11420 msgstr ""
11421
11422 #. type: verbatim
11423 #: ../fish/guestfish-actions.pod:2650
11424 #, no-wrap
11425 msgid ""
11426 " is-socket path\n"
11427 "\n"
11428 msgstr ""
11429
11430 #. type: textblock
11431 #: ../fish/guestfish-actions.pod:2652 ../src/guestfs-actions.pod:4034
11432 msgid ""
11433 "This returns C<true> if and only if there is a Unix domain socket with the "
11434 "given C<path> name."
11435 msgstr ""
11436
11437 #. type: =head2
11438 #: ../fish/guestfish-actions.pod:2657
11439 msgid "is-symlink"
11440 msgstr ""
11441
11442 #. type: verbatim
11443 #: ../fish/guestfish-actions.pod:2659
11444 #, no-wrap
11445 msgid ""
11446 " is-symlink path\n"
11447 "\n"
11448 msgstr ""
11449
11450 #. type: textblock
11451 #: ../fish/guestfish-actions.pod:2661 ../src/guestfs-actions.pod:4049
11452 msgid ""
11453 "This returns C<true> if and only if there is a symbolic link with the given "
11454 "C<path> name."
11455 msgstr ""
11456
11457 #. type: =head2
11458 #: ../fish/guestfish-actions.pod:2666
11459 msgid "is-zero"
11460 msgstr ""
11461
11462 #. type: verbatim
11463 #: ../fish/guestfish-actions.pod:2668
11464 #, no-wrap
11465 msgid ""
11466 " is-zero path\n"
11467 "\n"
11468 msgstr ""
11469
11470 #. type: textblock
11471 #: ../fish/guestfish-actions.pod:2670 ../src/guestfs-actions.pod:4064
11472 msgid ""
11473 "This returns true iff the file exists and the file is empty or it contains "
11474 "all zero bytes."
11475 msgstr ""
11476
11477 #. type: =head2
11478 #: ../fish/guestfish-actions.pod:2673
11479 msgid "is-zero-device"
11480 msgstr ""
11481
11482 #. type: verbatim
11483 #: ../fish/guestfish-actions.pod:2675
11484 #, no-wrap
11485 msgid ""
11486 " is-zero-device device\n"
11487 "\n"
11488 msgstr ""
11489
11490 #. type: textblock
11491 #: ../fish/guestfish-actions.pod:2677 ../src/guestfs-actions.pod:4077
11492 msgid "This returns true iff the device exists and contains all zero bytes."
11493 msgstr ""
11494
11495 #. type: textblock
11496 #: ../fish/guestfish-actions.pod:2679 ../src/guestfs-actions.pod:4079
11497 msgid "Note that for large devices this can take a long time to run."
11498 msgstr ""
11499
11500 #. type: =head2
11501 #: ../fish/guestfish-actions.pod:2681
11502 msgid "kill-subprocess"
11503 msgstr ""
11504
11505 #. type: verbatim
11506 #: ../fish/guestfish-actions.pod:2683
11507 #, no-wrap
11508 msgid ""
11509 " kill-subprocess\n"
11510 "\n"
11511 msgstr ""
11512
11513 #. type: textblock
11514 #: ../fish/guestfish-actions.pod:2685 ../src/guestfs-actions.pod:4090
11515 msgid "This kills the qemu subprocess.  You should never need to call this."
11516 msgstr ""
11517
11518 #. type: =head2
11519 #: ../fish/guestfish-actions.pod:2687
11520 msgid "launch"
11521 msgstr ""
11522
11523 #. type: =head2
11524 #: ../fish/guestfish-actions.pod:2689
11525 msgid "run"
11526 msgstr ""
11527
11528 #. type: verbatim
11529 #: ../fish/guestfish-actions.pod:2691
11530 #, no-wrap
11531 msgid ""
11532 " launch\n"
11533 "\n"
11534 msgstr ""
11535
11536 #. type: textblock
11537 #: ../fish/guestfish-actions.pod:2693 ../src/guestfs-actions.pod:4101
11538 msgid ""
11539 "Internally libguestfs is implemented by running a virtual machine using "
11540 "L<qemu(1)>."
11541 msgstr ""
11542
11543 #. type: textblock
11544 #: ../fish/guestfish-actions.pod:2696 ../src/guestfs-actions.pod:4104
11545 msgid ""
11546 "You should call this after configuring the handle (eg. adding drives) but "
11547 "before performing any actions."
11548 msgstr ""
11549
11550 #. type: =head2
11551 #: ../fish/guestfish-actions.pod:2699
11552 msgid "lchown"
11553 msgstr ""
11554
11555 #. type: verbatim
11556 #: ../fish/guestfish-actions.pod:2701
11557 #, no-wrap
11558 msgid ""
11559 " lchown owner group path\n"
11560 "\n"
11561 msgstr ""
11562
11563 #. type: textblock
11564 #: ../fish/guestfish-actions.pod:2703
11565 msgid ""
11566 "Change the file owner to C<owner> and group to C<group>.  This is like "
11567 "L</chown> but if C<path> is a symlink then the link itself is changed, not "
11568 "the target."
11569 msgstr ""
11570
11571 #. type: =head2
11572 #: ../fish/guestfish-actions.pod:2711
11573 msgid "lgetxattr"
11574 msgstr ""
11575
11576 #. type: verbatim
11577 #: ../fish/guestfish-actions.pod:2713
11578 #, no-wrap
11579 msgid ""
11580 " lgetxattr path name\n"
11581 "\n"
11582 msgstr ""
11583
11584 #. type: textblock
11585 #: ../fish/guestfish-actions.pod:2715 ../src/guestfs-actions.pod:4144
11586 msgid ""
11587 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
11588 "is a symlink, then this call returns an extended attribute from the symlink."
11589 msgstr ""
11590
11591 #. type: textblock
11592 #: ../fish/guestfish-actions.pod:2729
11593 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
11594 msgstr ""
11595
11596 #. type: =head2
11597 #: ../fish/guestfish-actions.pod:2731
11598 msgid "lgetxattrs"
11599 msgstr ""
11600
11601 #. type: verbatim
11602 #: ../fish/guestfish-actions.pod:2733
11603 #, no-wrap
11604 msgid ""
11605 " lgetxattrs path\n"
11606 "\n"
11607 msgstr ""
11608
11609 #. type: textblock
11610 #: ../fish/guestfish-actions.pod:2735
11611 msgid ""
11612 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
11613 "it returns the extended attributes of the link itself."
11614 msgstr ""
11615
11616 #. type: =head2
11617 #: ../fish/guestfish-actions.pod:2739
11618 msgid "list-9p"
11619 msgstr ""
11620
11621 #. type: verbatim
11622 #: ../fish/guestfish-actions.pod:2741
11623 #, no-wrap
11624 msgid ""
11625 " list-9p\n"
11626 "\n"
11627 msgstr ""
11628
11629 #. type: textblock
11630 #: ../fish/guestfish-actions.pod:2743 ../src/guestfs-actions.pod:4187
11631 msgid ""
11632 "List all 9p filesystems attached to the guest.  A list of mount tags is "
11633 "returned."
11634 msgstr ""
11635
11636 #. type: =head2
11637 #: ../fish/guestfish-actions.pod:2746
11638 msgid "list-devices"
11639 msgstr ""
11640
11641 #. type: verbatim
11642 #: ../fish/guestfish-actions.pod:2748
11643 #, no-wrap
11644 msgid ""
11645 " list-devices\n"
11646 "\n"
11647 msgstr ""
11648
11649 #. type: textblock
11650 #: ../fish/guestfish-actions.pod:2750 ../src/guestfs-actions.pod:4201
11651 msgid "List all the block devices."
11652 msgstr ""
11653
11654 #. type: textblock
11655 #: ../fish/guestfish-actions.pod:2752 ../src/guestfs-actions.pod:4203
11656 msgid "The full block device names are returned, eg. C</dev/sda>."
11657 msgstr ""
11658
11659 #. type: =head2
11660 #: ../fish/guestfish-actions.pod:2756
11661 msgid "list-dm-devices"
11662 msgstr ""
11663
11664 #. type: verbatim
11665 #: ../fish/guestfish-actions.pod:2758
11666 #, no-wrap
11667 msgid ""
11668 " list-dm-devices\n"
11669 "\n"
11670 msgstr ""
11671
11672 #. type: textblock
11673 #: ../fish/guestfish-actions.pod:2760 ../src/guestfs-actions.pod:4218
11674 msgid "List all device mapper devices."
11675 msgstr ""
11676
11677 #. type: textblock
11678 #: ../fish/guestfish-actions.pod:2762
11679 msgid ""
11680 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
11681 "previous call to L</luks-open>."
11682 msgstr ""
11683
11684 #. type: textblock
11685 #: ../fish/guestfish-actions.pod:2765
11686 msgid ""
11687 "Device mapper devices which correspond to logical volumes are I<not> "
11688 "returned in this list.  Call L</lvs> if you want to list logical volumes."
11689 msgstr ""
11690
11691 #. type: =head2
11692 #: ../fish/guestfish-actions.pod:2769
11693 msgid "list-filesystems"
11694 msgstr ""
11695
11696 #. type: verbatim
11697 #: ../fish/guestfish-actions.pod:2771
11698 #, no-wrap
11699 msgid ""
11700 " list-filesystems\n"
11701 "\n"
11702 msgstr ""
11703
11704 #. type: textblock
11705 #: ../fish/guestfish-actions.pod:2773 ../src/guestfs-actions.pod:4238
11706 msgid ""
11707 "This inspection command looks for filesystems on partitions, block devices "
11708 "and logical volumes, returning a list of devices containing filesystems and "
11709 "their type."
11710 msgstr ""
11711
11712 #. type: textblock
11713 #: ../fish/guestfish-actions.pod:2777 ../src/guestfs-actions.pod:4242
11714 msgid ""
11715 "The return value is a hash, where the keys are the devices containing "
11716 "filesystems, and the values are the filesystem types.  For example:"
11717 msgstr ""
11718
11719 #. type: verbatim
11720 #: ../fish/guestfish-actions.pod:2781 ../src/guestfs-actions.pod:4246
11721 #, no-wrap
11722 msgid ""
11723 " \"/dev/sda1\" => \"ntfs\"\n"
11724 " \"/dev/sda2\" => \"ext2\"\n"
11725 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
11726 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
11727 "\n"
11728 msgstr ""
11729
11730 #. type: textblock
11731 #: ../fish/guestfish-actions.pod:2786 ../src/guestfs-actions.pod:4251
11732 msgid ""
11733 "The value can have the special value \"unknown\", meaning the content of the "
11734 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
11735 msgstr ""
11736
11737 #. type: textblock
11738 #: ../fish/guestfish-actions.pod:2790
11739 msgid ""
11740 "This command runs other libguestfs commands, which might include L</mount> "
11741 "and L</umount>, and therefore you should use this soon after launch and only "
11742 "when nothing is mounted."
11743 msgstr ""
11744
11745 #. type: textblock
11746 #: ../fish/guestfish-actions.pod:2794
11747 msgid ""
11748 "Not all of the filesystems returned will be mountable.  In particular, swap "
11749 "partitions are returned in the list.  Also this command does not check that "
11750 "each filesystem found is valid and mountable, and some filesystems might be "
11751 "mountable but require special options.  Filesystems may not all belong to a "
11752 "single logical operating system (use L</inspect-os> to look for OSes)."
11753 msgstr ""
11754
11755 #. type: =head2
11756 #: ../fish/guestfish-actions.pod:2802
11757 msgid "list-md-devices"
11758 msgstr ""
11759
11760 #. type: verbatim
11761 #: ../fish/guestfish-actions.pod:2804
11762 #, no-wrap
11763 msgid ""
11764 " list-md-devices\n"
11765 "\n"
11766 msgstr ""
11767
11768 #. type: textblock
11769 #: ../fish/guestfish-actions.pod:2806 ../src/guestfs-actions.pod:4280
11770 msgid "List all Linux md devices."
11771 msgstr ""
11772
11773 #. type: =head2
11774 #: ../fish/guestfish-actions.pod:2808
11775 msgid "list-partitions"
11776 msgstr ""
11777
11778 #. type: verbatim
11779 #: ../fish/guestfish-actions.pod:2810
11780 #, no-wrap
11781 msgid ""
11782 " list-partitions\n"
11783 "\n"
11784 msgstr ""
11785
11786 #. type: textblock
11787 #: ../fish/guestfish-actions.pod:2812 ../src/guestfs-actions.pod:4293
11788 msgid "List all the partitions detected on all block devices."
11789 msgstr ""
11790
11791 #. type: textblock
11792 #: ../fish/guestfish-actions.pod:2814 ../src/guestfs-actions.pod:4295
11793 msgid "The full partition device names are returned, eg. C</dev/sda1>"
11794 msgstr ""
11795
11796 #. type: textblock
11797 #: ../fish/guestfish-actions.pod:2816
11798 msgid ""
11799 "This does not return logical volumes.  For that you will need to call "
11800 "L</lvs>."
11801 msgstr ""
11802
11803 #. type: =head2
11804 #: ../fish/guestfish-actions.pod:2821
11805 msgid "ll"
11806 msgstr ""
11807
11808 #. type: verbatim
11809 #: ../fish/guestfish-actions.pod:2823
11810 #, no-wrap
11811 msgid ""
11812 " ll directory\n"
11813 "\n"
11814 msgstr ""
11815
11816 #. type: textblock
11817 #: ../fish/guestfish-actions.pod:2825 ../src/guestfs-actions.pod:4314
11818 msgid ""
11819 "List the files in C<directory> (relative to the root directory, there is no "
11820 "cwd) in the format of 'ls -la'."
11821 msgstr ""
11822
11823 #. type: textblock
11824 #: ../fish/guestfish-actions.pod:2828 ../src/guestfs-actions.pod:4317
11825 msgid ""
11826 "This command is mostly useful for interactive sessions.  It is I<not> "
11827 "intended that you try to parse the output string."
11828 msgstr ""
11829
11830 #. type: =head2
11831 #: ../fish/guestfish-actions.pod:2831
11832 msgid "ln"
11833 msgstr ""
11834
11835 #. type: verbatim
11836 #: ../fish/guestfish-actions.pod:2833
11837 #, no-wrap
11838 msgid ""
11839 " ln target linkname\n"
11840 "\n"
11841 msgstr ""
11842
11843 #. type: textblock
11844 #: ../fish/guestfish-actions.pod:2835 ../src/guestfs-actions.pod:4332
11845 msgid "This command creates a hard link using the C<ln> command."
11846 msgstr ""
11847
11848 #. type: =head2
11849 #: ../fish/guestfish-actions.pod:2837
11850 msgid "ln-f"
11851 msgstr ""
11852
11853 #. type: verbatim
11854 #: ../fish/guestfish-actions.pod:2839
11855 #, no-wrap
11856 msgid ""
11857 " ln-f target linkname\n"
11858 "\n"
11859 msgstr ""
11860
11861 #. type: textblock
11862 #: ../fish/guestfish-actions.pod:2841 ../src/guestfs-actions.pod:4345
11863 msgid ""
11864 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
11865 "option removes the link (C<linkname>) if it exists already."
11866 msgstr ""
11867
11868 #. type: =head2
11869 #: ../fish/guestfish-actions.pod:2844
11870 msgid "ln-s"
11871 msgstr ""
11872
11873 #. type: verbatim
11874 #: ../fish/guestfish-actions.pod:2846
11875 #, no-wrap
11876 msgid ""
11877 " ln-s target linkname\n"
11878 "\n"
11879 msgstr ""
11880
11881 #. type: textblock
11882 #: ../fish/guestfish-actions.pod:2848 ../src/guestfs-actions.pod:4359
11883 msgid "This command creates a symbolic link using the C<ln -s> command."
11884 msgstr ""
11885
11886 #. type: =head2
11887 #: ../fish/guestfish-actions.pod:2850
11888 msgid "ln-sf"
11889 msgstr ""
11890
11891 #. type: verbatim
11892 #: ../fish/guestfish-actions.pod:2852
11893 #, no-wrap
11894 msgid ""
11895 " ln-sf target linkname\n"
11896 "\n"
11897 msgstr ""
11898
11899 #. type: textblock
11900 #: ../fish/guestfish-actions.pod:2854 ../src/guestfs-actions.pod:4372
11901 msgid ""
11902 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
11903 "option removes the link (C<linkname>) if it exists already."
11904 msgstr ""
11905
11906 #. type: =head2
11907 #: ../fish/guestfish-actions.pod:2857
11908 msgid "lremovexattr"
11909 msgstr ""
11910
11911 #. type: verbatim
11912 #: ../fish/guestfish-actions.pod:2859
11913 #, no-wrap
11914 msgid ""
11915 " lremovexattr xattr path\n"
11916 "\n"
11917 msgstr ""
11918
11919 #. type: textblock
11920 #: ../fish/guestfish-actions.pod:2861
11921 msgid ""
11922 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
11923 "it removes an extended attribute of the link itself."
11924 msgstr ""
11925
11926 #. type: =head2
11927 #: ../fish/guestfish-actions.pod:2865
11928 msgid "ls"
11929 msgstr ""
11930
11931 #. type: verbatim
11932 #: ../fish/guestfish-actions.pod:2867
11933 #, no-wrap
11934 msgid ""
11935 " ls directory\n"
11936 "\n"
11937 msgstr ""
11938
11939 #. type: textblock
11940 #: ../fish/guestfish-actions.pod:2869 ../src/guestfs-actions.pod:4400
11941 msgid ""
11942 "List the files in C<directory> (relative to the root directory, there is no "
11943 "cwd).  The '.' and '..' entries are not returned, but hidden files are "
11944 "shown."
11945 msgstr ""
11946
11947 #. type: textblock
11948 #: ../fish/guestfish-actions.pod:2873
11949 msgid ""
11950 "This command is mostly useful for interactive sessions.  Programs should "
11951 "probably use L</readdir> instead."
11952 msgstr ""
11953
11954 #. type: =head2
11955 #: ../fish/guestfish-actions.pod:2876
11956 msgid "lsetxattr"
11957 msgstr ""
11958
11959 #. type: verbatim
11960 #: ../fish/guestfish-actions.pod:2878
11961 #, no-wrap
11962 msgid ""
11963 " lsetxattr xattr val vallen path\n"
11964 "\n"
11965 msgstr ""
11966
11967 #. type: textblock
11968 #: ../fish/guestfish-actions.pod:2880
11969 msgid ""
11970 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
11971 "sets an extended attribute of the link itself."
11972 msgstr ""
11973
11974 #. type: =head2
11975 #: ../fish/guestfish-actions.pod:2884
11976 msgid "lstat"
11977 msgstr ""
11978
11979 #. type: verbatim
11980 #: ../fish/guestfish-actions.pod:2886
11981 #, no-wrap
11982 msgid ""
11983 " lstat path\n"
11984 "\n"
11985 msgstr ""
11986
11987 #. type: textblock
11988 #: ../fish/guestfish-actions.pod:2888 ../fish/guestfish-actions.pod:4786 ../src/guestfs-actions.pod:4436 ../src/guestfs-actions.pod:7366
11989 msgid "Returns file information for the given C<path>."
11990 msgstr ""
11991
11992 #. type: textblock
11993 #: ../fish/guestfish-actions.pod:2890
11994 msgid ""
11995 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
11996 "the link is stat-ed, not the file it refers to."
11997 msgstr ""
11998
11999 #. type: textblock
12000 #: ../fish/guestfish-actions.pod:2894 ../src/guestfs-actions.pod:4442
12001 msgid "This is the same as the C<lstat(2)> system call."
12002 msgstr ""
12003
12004 #. type: =head2
12005 #: ../fish/guestfish-actions.pod:2896
12006 msgid "lstatlist"
12007 msgstr ""
12008
12009 #. type: verbatim
12010 #: ../fish/guestfish-actions.pod:2898
12011 #, no-wrap
12012 msgid ""
12013 " lstatlist path 'names ...'\n"
12014 "\n"
12015 msgstr ""
12016
12017 #. type: textblock
12018 #: ../fish/guestfish-actions.pod:2900
12019 msgid ""
12020 "This call allows you to perform the L</lstat> operation on multiple files, "
12021 "where all files are in the directory C<path>.  C<names> is the list of files "
12022 "from this directory."
12023 msgstr ""
12024
12025 #. type: textblock
12026 #: ../fish/guestfish-actions.pod:2904 ../src/guestfs-actions.pod:4461
12027 msgid ""
12028 "On return you get a list of stat structs, with a one-to-one correspondence "
12029 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
12030 "then the C<ino> field of that structure is set to C<-1>."
12031 msgstr ""
12032
12033 #. type: textblock
12034 #: ../fish/guestfish-actions.pod:2909
12035 msgid ""
12036 "This call is intended for programs that want to efficiently list a directory "
12037 "contents without making many round-trips.  See also L</lxattrlist> for a "
12038 "similarly efficient call for getting extended attributes.  Very long "
12039 "directory listings might cause the protocol message size to be exceeded, "
12040 "causing this call to fail.  The caller must split up such requests into "
12041 "smaller groups of names."
12042 msgstr ""
12043
12044 #. type: =head2
12045 #: ../fish/guestfish-actions.pod:2917
12046 msgid "luks-add-key"
12047 msgstr ""
12048
12049 #. type: verbatim
12050 #: ../fish/guestfish-actions.pod:2919
12051 #, no-wrap
12052 msgid ""
12053 " luks-add-key device keyslot\n"
12054 "\n"
12055 msgstr ""
12056
12057 #. type: textblock
12058 #: ../fish/guestfish-actions.pod:2921 ../src/guestfs-actions.pod:4489
12059 msgid ""
12060 "This command adds a new key on LUKS device C<device>.  C<key> is any "
12061 "existing key, and is used to access the device.  C<newkey> is the new key to "
12062 "add.  C<keyslot> is the key slot that will be replaced."
12063 msgstr ""
12064
12065 #. type: textblock
12066 #: ../fish/guestfish-actions.pod:2926
12067 msgid ""
12068 "Note that if C<keyslot> already contains a key, then this command will "
12069 "fail.  You have to use L</luks-kill-slot> first to remove that key."
12070 msgstr ""
12071
12072 #. type: textblock
12073 #: ../fish/guestfish-actions.pod:2930 ../fish/guestfish-actions.pod:2952 ../fish/guestfish-actions.pod:2962 ../fish/guestfish-actions.pod:2973 ../fish/guestfish-actions.pod:2999 ../fish/guestfish-actions.pod:3009
12074 msgid ""
12075 "This command has one or more key or passphrase parameters.  Guestfish will "
12076 "prompt for these separately."
12077 msgstr ""
12078
12079 #. type: =head2
12080 #: ../fish/guestfish-actions.pod:2933
12081 msgid "luks-close"
12082 msgstr ""
12083
12084 #. type: verbatim
12085 #: ../fish/guestfish-actions.pod:2935
12086 #, no-wrap
12087 msgid ""
12088 " luks-close device\n"
12089 "\n"
12090 msgstr ""
12091
12092 #. type: textblock
12093 #: ../fish/guestfish-actions.pod:2937
12094 msgid ""
12095 "This closes a LUKS device that was created earlier by L</luks-open> or "
12096 "L</luks-open-ro>.  The C<device> parameter must be the name of the LUKS "
12097 "mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
12098 "underlying block device."
12099 msgstr ""
12100
12101 #. type: =head2
12102 #: ../fish/guestfish-actions.pod:2943
12103 msgid "luks-format"
12104 msgstr ""
12105
12106 #. type: verbatim
12107 #: ../fish/guestfish-actions.pod:2945
12108 #, no-wrap
12109 msgid ""
12110 " luks-format device keyslot\n"
12111 "\n"
12112 msgstr ""
12113
12114 #. type: textblock
12115 #: ../fish/guestfish-actions.pod:2947 ../src/guestfs-actions.pod:4530
12116 msgid ""
12117 "This command erases existing data on C<device> and formats the device as a "
12118 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
12119 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
12120 msgstr ""
12121
12122 #. type: =head2
12123 #: ../fish/guestfish-actions.pod:2955
12124 msgid "luks-format-cipher"
12125 msgstr ""
12126
12127 #. type: verbatim
12128 #: ../fish/guestfish-actions.pod:2957
12129 #, no-wrap
12130 msgid ""
12131 " luks-format-cipher device keyslot cipher\n"
12132 "\n"
12133 msgstr ""
12134
12135 #. type: textblock
12136 #: ../fish/guestfish-actions.pod:2959
12137 msgid ""
12138 "This command is the same as L</luks-format> but it also allows you to set "
12139 "the C<cipher> used."
12140 msgstr ""
12141
12142 #. type: =head2
12143 #: ../fish/guestfish-actions.pod:2965
12144 msgid "luks-kill-slot"
12145 msgstr ""
12146
12147 #. type: verbatim
12148 #: ../fish/guestfish-actions.pod:2967
12149 #, no-wrap
12150 msgid ""
12151 " luks-kill-slot device keyslot\n"
12152 "\n"
12153 msgstr ""
12154
12155 #. type: textblock
12156 #: ../fish/guestfish-actions.pod:2969 ../src/guestfs-actions.pod:4571
12157 msgid ""
12158 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
12159 "device C<device>.  C<key> must be one of the I<other> keys."
12160 msgstr ""
12161
12162 #. type: =head2
12163 #: ../fish/guestfish-actions.pod:2976
12164 msgid "luks-open"
12165 msgstr ""
12166
12167 #. type: verbatim
12168 #: ../fish/guestfish-actions.pod:2978
12169 #, no-wrap
12170 msgid ""
12171 " luks-open device mapname\n"
12172 "\n"
12173 msgstr ""
12174
12175 #. type: textblock
12176 #: ../fish/guestfish-actions.pod:2980 ../src/guestfs-actions.pod:4591
12177 msgid ""
12178 "This command opens a block device which has been encrypted according to the "
12179 "Linux Unified Key Setup (LUKS) standard."
12180 msgstr ""
12181
12182 #. type: textblock
12183 #: ../fish/guestfish-actions.pod:2983 ../src/guestfs-actions.pod:4594
12184 msgid "C<device> is the encrypted block device or partition."
12185 msgstr ""
12186
12187 #. type: textblock
12188 #: ../fish/guestfish-actions.pod:2985 ../src/guestfs-actions.pod:4596
12189 msgid ""
12190 "The caller must supply one of the keys associated with the LUKS block "
12191 "device, in the C<key> parameter."
12192 msgstr ""
12193
12194 #. type: textblock
12195 #: ../fish/guestfish-actions.pod:2988 ../src/guestfs-actions.pod:4599
12196 msgid ""
12197 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
12198 "writes to this block device are decrypted from and encrypted to the "
12199 "underlying C<device> respectively."
12200 msgstr ""
12201
12202 #. type: textblock
12203 #: ../fish/guestfish-actions.pod:2992
12204 msgid ""
12205 "If this block device contains LVM volume groups, then calling L</vgscan> "
12206 "followed by L</vg-activate-all> will make them visible."
12207 msgstr ""
12208
12209 #. type: textblock
12210 #: ../fish/guestfish-actions.pod:2996
12211 msgid "Use L</list-dm-devices> to list all device mapper devices."
12212 msgstr ""
12213
12214 #. type: =head2
12215 #: ../fish/guestfish-actions.pod:3002
12216 msgid "luks-open-ro"
12217 msgstr ""
12218
12219 #. type: verbatim
12220 #: ../fish/guestfish-actions.pod:3004
12221 #, no-wrap
12222 msgid ""
12223 " luks-open-ro device mapname\n"
12224 "\n"
12225 msgstr ""
12226
12227 #. type: textblock
12228 #: ../fish/guestfish-actions.pod:3006
12229 msgid ""
12230 "This is the same as L</luks-open> except that a read-only mapping is "
12231 "created."
12232 msgstr ""
12233
12234 #. type: =head2
12235 #: ../fish/guestfish-actions.pod:3012
12236 msgid "lvcreate"
12237 msgstr ""
12238
12239 #. type: verbatim
12240 #: ../fish/guestfish-actions.pod:3014
12241 #, no-wrap
12242 msgid ""
12243 " lvcreate logvol volgroup mbytes\n"
12244 "\n"
12245 msgstr ""
12246
12247 #. type: textblock
12248 #: ../fish/guestfish-actions.pod:3016 ../src/guestfs-actions.pod:4645
12249 msgid ""
12250 "This creates an LVM logical volume called C<logvol> on the volume group "
12251 "C<volgroup>, with C<size> megabytes."
12252 msgstr ""
12253
12254 #. type: =head2
12255 #: ../fish/guestfish-actions.pod:3019
12256 msgid "lvm-canonical-lv-name"
12257 msgstr ""
12258
12259 #. type: verbatim
12260 #: ../fish/guestfish-actions.pod:3021
12261 #, no-wrap
12262 msgid ""
12263 " lvm-canonical-lv-name lvname\n"
12264 "\n"
12265 msgstr ""
12266
12267 #. type: textblock
12268 #: ../fish/guestfish-actions.pod:3023 ../src/guestfs-actions.pod:4658
12269 msgid ""
12270 "This converts alternative naming schemes for LVs that you might find to the "
12271 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to "
12272 "C</dev/VG/LV>."
12273 msgstr ""
12274
12275 #. type: textblock
12276 #: ../fish/guestfish-actions.pod:3027 ../src/guestfs-actions.pod:4662
12277 msgid ""
12278 "This command returns an error if the C<lvname> parameter does not refer to a "
12279 "logical volume."
12280 msgstr ""
12281
12282 #. type: textblock
12283 #: ../fish/guestfish-actions.pod:3030
12284 msgid "See also L</is-lv>."
12285 msgstr ""
12286
12287 #. type: =head2
12288 #: ../fish/guestfish-actions.pod:3032
12289 msgid "lvm-clear-filter"
12290 msgstr ""
12291
12292 #. type: verbatim
12293 #: ../fish/guestfish-actions.pod:3034
12294 #, no-wrap
12295 msgid ""
12296 " lvm-clear-filter\n"
12297 "\n"
12298 msgstr ""
12299
12300 #. type: textblock
12301 #: ../fish/guestfish-actions.pod:3036
12302 msgid ""
12303 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
12304 "block device."
12305 msgstr ""
12306
12307 #. type: textblock
12308 #: ../fish/guestfish-actions.pod:3039 ../fish/guestfish-actions.pod:3067 ../src/guestfs-actions.pod:4680 ../src/guestfs-actions.pod:4719
12309 msgid "This command also clears the LVM cache and performs a volume group scan."
12310 msgstr ""
12311
12312 #. type: =head2
12313 #: ../fish/guestfish-actions.pod:3042
12314 msgid "lvm-remove-all"
12315 msgstr ""
12316
12317 #. type: verbatim
12318 #: ../fish/guestfish-actions.pod:3044
12319 #, no-wrap
12320 msgid ""
12321 " lvm-remove-all\n"
12322 "\n"
12323 msgstr ""
12324
12325 #. type: textblock
12326 #: ../fish/guestfish-actions.pod:3046 ../src/guestfs-actions.pod:4692
12327 msgid ""
12328 "This command removes all LVM logical volumes, volume groups and physical "
12329 "volumes."
12330 msgstr ""
12331
12332 #. type: =head2
12333 #: ../fish/guestfish-actions.pod:3049
12334 msgid "lvm-set-filter"
12335 msgstr ""
12336
12337 #. type: verbatim
12338 #: ../fish/guestfish-actions.pod:3051
12339 #, no-wrap
12340 msgid ""
12341 " lvm-set-filter 'devices ...'\n"
12342 "\n"
12343 msgstr ""
12344
12345 #. type: textblock
12346 #: ../fish/guestfish-actions.pod:3053 ../src/guestfs-actions.pod:4705
12347 msgid ""
12348 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
12349 "block devices in the list C<devices>, and will ignore all other attached "
12350 "block devices."
12351 msgstr ""
12352
12353 #. type: textblock
12354 #: ../fish/guestfish-actions.pod:3057 ../src/guestfs-actions.pod:4709
12355 msgid ""
12356 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
12357 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
12358 "there are two types of duplication possible: either cloned PVs/VGs which "
12359 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
12360 "same name.  In normal operation you cannot create this situation, but you "
12361 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
12362 "inside the LVM metadata."
12363 msgstr ""
12364
12365 #. type: textblock
12366 #: ../fish/guestfish-actions.pod:3070 ../src/guestfs-actions.pod:4722
12367 msgid "You can filter whole block devices or individual partitions."
12368 msgstr ""
12369
12370 #. type: textblock
12371 #: ../fish/guestfish-actions.pod:3072 ../src/guestfs-actions.pod:4724
12372 msgid ""
12373 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
12374 "filesystem), even if you are not filtering out that VG."
12375 msgstr ""
12376
12377 #. type: =head2
12378 #: ../fish/guestfish-actions.pod:3076
12379 msgid "lvremove"
12380 msgstr ""
12381
12382 #. type: verbatim
12383 #: ../fish/guestfish-actions.pod:3078
12384 #, no-wrap
12385 msgid ""
12386 " lvremove device\n"
12387 "\n"
12388 msgstr ""
12389
12390 #. type: textblock
12391 #: ../fish/guestfish-actions.pod:3080 ../src/guestfs-actions.pod:4738
12392 msgid ""
12393 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
12394 "LV, such as C</dev/VG/LV>."
12395 msgstr ""
12396
12397 #. type: textblock
12398 #: ../fish/guestfish-actions.pod:3083 ../src/guestfs-actions.pod:4741
12399 msgid ""
12400 "You can also remove all LVs in a volume group by specifying the VG name, "
12401 "C</dev/VG>."
12402 msgstr ""
12403
12404 #. type: =head2
12405 #: ../fish/guestfish-actions.pod:3086
12406 msgid "lvrename"
12407 msgstr ""
12408
12409 #. type: verbatim
12410 #: ../fish/guestfish-actions.pod:3088
12411 #, no-wrap
12412 msgid ""
12413 " lvrename logvol newlogvol\n"
12414 "\n"
12415 msgstr ""
12416
12417 #. type: textblock
12418 #: ../fish/guestfish-actions.pod:3090 ../src/guestfs-actions.pod:4755
12419 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
12420 msgstr ""
12421
12422 #. type: =head2
12423 #: ../fish/guestfish-actions.pod:3092
12424 msgid "lvresize"
12425 msgstr ""
12426
12427 #. type: verbatim
12428 #: ../fish/guestfish-actions.pod:3094
12429 #, no-wrap
12430 msgid ""
12431 " lvresize device mbytes\n"
12432 "\n"
12433 msgstr ""
12434
12435 #. type: textblock
12436 #: ../fish/guestfish-actions.pod:3096 ../src/guestfs-actions.pod:4768
12437 msgid ""
12438 "This resizes (expands or shrinks) an existing LVM logical volume to "
12439 "C<mbytes>.  When reducing, data in the reduced part is lost."
12440 msgstr ""
12441
12442 #. type: =head2
12443 #: ../fish/guestfish-actions.pod:3100
12444 msgid "lvresize-free"
12445 msgstr ""
12446
12447 #. type: verbatim
12448 #: ../fish/guestfish-actions.pod:3102
12449 #, no-wrap
12450 msgid ""
12451 " lvresize-free lv percent\n"
12452 "\n"
12453 msgstr ""
12454
12455 #. type: textblock
12456 #: ../fish/guestfish-actions.pod:3104 ../src/guestfs-actions.pod:4783
12457 msgid ""
12458 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
12459 "remaining free space in the volume group.  Commonly you would call this with "
12460 "pc = 100 which expands the logical volume as much as possible, using all "
12461 "remaining free space in the volume group."
12462 msgstr ""
12463
12464 #. type: =head2
12465 #: ../fish/guestfish-actions.pod:3110
12466 msgid "lvs"
12467 msgstr ""
12468
12469 #. type: verbatim
12470 #: ../fish/guestfish-actions.pod:3112
12471 #, no-wrap
12472 msgid ""
12473 " lvs\n"
12474 "\n"
12475 msgstr ""
12476
12477 #. type: textblock
12478 #: ../fish/guestfish-actions.pod:3114 ../src/guestfs-actions.pod:4798
12479 msgid ""
12480 "List all the logical volumes detected.  This is the equivalent of the "
12481 "L<lvs(8)> command."
12482 msgstr ""
12483
12484 #. type: textblock
12485 #: ../fish/guestfish-actions.pod:3117 ../src/guestfs-actions.pod:4801
12486 msgid ""
12487 "This returns a list of the logical volume device names "
12488 "(eg. C</dev/VolGroup00/LogVol00>)."
12489 msgstr ""
12490
12491 #. type: textblock
12492 #: ../fish/guestfish-actions.pod:3120
12493 msgid "See also L</lvs-full>, L</list-filesystems>."
12494 msgstr ""
12495
12496 #. type: =head2
12497 #: ../fish/guestfish-actions.pod:3122
12498 msgid "lvs-full"
12499 msgstr ""
12500
12501 #. type: verbatim
12502 #: ../fish/guestfish-actions.pod:3124
12503 #, no-wrap
12504 msgid ""
12505 " lvs-full\n"
12506 "\n"
12507 msgstr ""
12508
12509 #. type: textblock
12510 #: ../fish/guestfish-actions.pod:3126 ../src/guestfs-actions.pod:4817
12511 msgid ""
12512 "List all the logical volumes detected.  This is the equivalent of the "
12513 "L<lvs(8)> command.  The \"full\" version includes all fields."
12514 msgstr ""
12515
12516 #. type: =head2
12517 #: ../fish/guestfish-actions.pod:3129
12518 msgid "lvuuid"
12519 msgstr ""
12520
12521 #. type: verbatim
12522 #: ../fish/guestfish-actions.pod:3131
12523 #, no-wrap
12524 msgid ""
12525 " lvuuid device\n"
12526 "\n"
12527 msgstr ""
12528
12529 #. type: textblock
12530 #: ../fish/guestfish-actions.pod:3133 ../src/guestfs-actions.pod:4832
12531 msgid "This command returns the UUID of the LVM LV C<device>."
12532 msgstr ""
12533
12534 #. type: =head2
12535 #: ../fish/guestfish-actions.pod:3135
12536 msgid "lxattrlist"
12537 msgstr ""
12538
12539 #. type: verbatim
12540 #: ../fish/guestfish-actions.pod:3137
12541 #, no-wrap
12542 msgid ""
12543 " lxattrlist path 'names ...'\n"
12544 "\n"
12545 msgstr ""
12546
12547 #. type: textblock
12548 #: ../fish/guestfish-actions.pod:3139 ../src/guestfs-actions.pod:4846
12549 msgid ""
12550 "This call allows you to get the extended attributes of multiple files, where "
12551 "all files are in the directory C<path>.  C<names> is the list of files from "
12552 "this directory."
12553 msgstr ""
12554
12555 #. type: textblock
12556 #: ../fish/guestfish-actions.pod:3143 ../src/guestfs-actions.pod:4850
12557 msgid ""
12558 "On return you get a flat list of xattr structs which must be interpreted "
12559 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
12560 "C<attrval> in this struct is zero-length to indicate there was an error "
12561 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
12562 "number (the number of following attributes for this file, which could be "
12563 "C<\"0\">).  Then after the first xattr struct are the zero or more "
12564 "attributes for the first named file.  This repeats for the second and "
12565 "subsequent files."
12566 msgstr ""
12567
12568 #. type: textblock
12569 #: ../fish/guestfish-actions.pod:3153
12570 msgid ""
12571 "This call is intended for programs that want to efficiently list a directory "
12572 "contents without making many round-trips.  See also L</lstatlist> for a "
12573 "similarly efficient call for getting standard stats.  Very long directory "
12574 "listings might cause the protocol message size to be exceeded, causing this "
12575 "call to fail.  The caller must split up such requests into smaller groups of "
12576 "names."
12577 msgstr ""
12578
12579 #. type: =head2
12580 #: ../fish/guestfish-actions.pod:3161
12581 msgid "md-create"
12582 msgstr ""
12583
12584 #. type: verbatim
12585 #: ../fish/guestfish-actions.pod:3163
12586 #, no-wrap
12587 msgid ""
12588 " md-create name 'devices ...' [missingbitmap:N] [nrdevices:N] [spare:N] "
12589 "[chunk:N] [level:..]\n"
12590 "\n"
12591 msgstr ""
12592
12593 #. type: textblock
12594 #: ../fish/guestfish-actions.pod:3165 ../src/guestfs-actions.pod:4893
12595 msgid ""
12596 "Create a Linux md (RAID) device named C<name> on the devices in the list "
12597 "C<devices>."
12598 msgstr ""
12599
12600 #. type: =item
12601 #: ../fish/guestfish-actions.pod:3172 ../src/guestfs-actions.pod:4900
12602 msgid "C<missingbitmap>"
12603 msgstr ""
12604
12605 #. type: textblock
12606 #: ../fish/guestfish-actions.pod:3174 ../src/guestfs-actions.pod:4902
12607 msgid ""
12608 "A bitmap of missing devices.  If a bit is set it means that a missing device "
12609 "is added to the array.  The least significant bit corresponds to the first "
12610 "device in the array."
12611 msgstr ""
12612
12613 #. type: textblock
12614 #: ../fish/guestfish-actions.pod:3178 ../src/guestfs-actions.pod:4906
12615 msgid "As examples:"
12616 msgstr ""
12617
12618 #. type: textblock
12619 #: ../fish/guestfish-actions.pod:3180 ../src/guestfs-actions.pod:4908
12620 msgid ""
12621 "If C<devices = [\"/dev/sda\"]> and C<missingbitmap = 0x1> then the resulting "
12622 "array would be C<[E<lt>missingE<gt>, \"/dev/sda\"]>."
12623 msgstr ""
12624
12625 #. type: textblock
12626 #: ../fish/guestfish-actions.pod:3183 ../src/guestfs-actions.pod:4911
12627 msgid ""
12628 "If C<devices = [\"/dev/sda\"]> and C<missingbitmap = 0x2> then the resulting "
12629 "array would be C<[\"/dev/sda\", E<lt>missingE<gt>]>."
12630 msgstr ""
12631
12632 #. type: textblock
12633 #: ../fish/guestfish-actions.pod:3186 ../src/guestfs-actions.pod:4914
12634 msgid "This defaults to C<0> (no missing devices)."
12635 msgstr ""
12636
12637 #. type: textblock
12638 #: ../fish/guestfish-actions.pod:3188 ../src/guestfs-actions.pod:4916
12639 msgid ""
12640 "The length of C<devices> + the number of bits set in C<missingbitmap> must "
12641 "equal C<nrdevices> + C<spare>."
12642 msgstr ""
12643
12644 #. type: =item
12645 #: ../fish/guestfish-actions.pod:3191 ../src/guestfs-actions.pod:4919
12646 msgid "C<nrdevices>"
12647 msgstr ""
12648
12649 #. type: textblock
12650 #: ../fish/guestfish-actions.pod:3193 ../src/guestfs-actions.pod:4921
12651 msgid "The number of active RAID devices."
12652 msgstr ""
12653
12654 #. type: textblock
12655 #: ../fish/guestfish-actions.pod:3195 ../src/guestfs-actions.pod:4923
12656 msgid ""
12657 "If not set, this defaults to the length of C<devices> plus the number of "
12658 "bits set in C<missingbitmap>."
12659 msgstr ""
12660
12661 #. type: =item
12662 #: ../fish/guestfish-actions.pod:3198 ../src/guestfs-actions.pod:4926
12663 msgid "C<spare>"
12664 msgstr ""
12665
12666 #. type: textblock
12667 #: ../fish/guestfish-actions.pod:3200 ../src/guestfs-actions.pod:4928
12668 msgid "The number of spare devices."
12669 msgstr ""
12670
12671 #. type: textblock
12672 #: ../fish/guestfish-actions.pod:3202 ../src/guestfs-actions.pod:4930
12673 msgid "If not set, this defaults to C<0>."
12674 msgstr ""
12675
12676 #. type: =item
12677 #: ../fish/guestfish-actions.pod:3204 ../src/guestfs-actions.pod:4932
12678 msgid "C<chunk>"
12679 msgstr ""
12680
12681 #. type: textblock
12682 #: ../fish/guestfish-actions.pod:3206 ../src/guestfs-actions.pod:4934
12683 msgid "The chunk size in bytes."
12684 msgstr ""
12685
12686 #. type: =item
12687 #: ../fish/guestfish-actions.pod:3208 ../fish/guestfish-actions.pod:3230 ../src/guestfs-actions.pod:4936 ../src/guestfs-actions.pod:4984
12688 msgid "C<level>"
12689 msgstr ""
12690
12691 #. type: textblock
12692 #: ../fish/guestfish-actions.pod:3210 ../src/guestfs-actions.pod:4938
12693 msgid ""
12694 "The RAID level, which can be one of: I<linear>, I<raid0>, I<0>, I<stripe>, "
12695 "I<raid1>, I<1>, I<mirror>, I<raid4>, I<4>, I<raid5>, I<5>, I<raid6>, I<6>, "
12696 "I<raid10>, I<10>.  Some of these are synonymous, and more levels may be "
12697 "added in future."
12698 msgstr ""
12699
12700 #. type: textblock
12701 #: ../fish/guestfish-actions.pod:3215 ../src/guestfs-actions.pod:4943
12702 msgid "If not set, this defaults to C<raid1>."
12703 msgstr ""
12704
12705 #. type: =head2
12706 #: ../fish/guestfish-actions.pod:3221
12707 msgid "md-detail"
12708 msgstr ""
12709
12710 #. type: verbatim
12711 #: ../fish/guestfish-actions.pod:3223
12712 #, no-wrap
12713 msgid ""
12714 " md-detail md\n"
12715 "\n"
12716 msgstr ""
12717
12718 #. type: textblock
12719 #: ../fish/guestfish-actions.pod:3225 ../src/guestfs-actions.pod:4979
12720 msgid ""
12721 "This command exposes the output of 'mdadm -DY <md>'. The following fields "
12722 "are usually present in the returned hash. Other fields may also be present."
12723 msgstr ""
12724
12725 #. type: textblock
12726 #: ../fish/guestfish-actions.pod:3232 ../src/guestfs-actions.pod:4986
12727 msgid "The raid level of the MD device."
12728 msgstr ""
12729
12730 #. type: =item
12731 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4988
12732 msgid "C<devices>"
12733 msgstr ""
12734
12735 #. type: textblock
12736 #: ../fish/guestfish-actions.pod:3236 ../src/guestfs-actions.pod:4990
12737 msgid "The number of underlying devices in the MD device."
12738 msgstr ""
12739
12740 #. type: =item
12741 #: ../fish/guestfish-actions.pod:3238 ../src/guestfs-actions.pod:4992
12742 msgid "C<metadata>"
12743 msgstr ""
12744
12745 #. type: textblock
12746 #: ../fish/guestfish-actions.pod:3240 ../src/guestfs-actions.pod:4994
12747 msgid "The metadata version used."
12748 msgstr ""
12749
12750 #. type: =item
12751 #: ../fish/guestfish-actions.pod:3242 ../src/guestfs-actions.pod:4996
12752 msgid "C<uuid>"
12753 msgstr ""
12754
12755 #. type: textblock
12756 #: ../fish/guestfish-actions.pod:3244 ../src/guestfs-actions.pod:4998
12757 msgid "The UUID of the MD device."
12758 msgstr ""
12759
12760 #. type: textblock
12761 #: ../fish/guestfish-actions.pod:3248 ../src/guestfs-actions.pod:5002
12762 msgid "The name of the MD device."
12763 msgstr ""
12764
12765 #. type: =head2
12766 #: ../fish/guestfish-actions.pod:3252
12767 msgid "md-stop"
12768 msgstr ""
12769
12770 #. type: verbatim
12771 #: ../fish/guestfish-actions.pod:3254
12772 #, no-wrap
12773 msgid ""
12774 " md-stop md\n"
12775 "\n"
12776 msgstr ""
12777
12778 #. type: textblock
12779 #: ../fish/guestfish-actions.pod:3256 ../src/guestfs-actions.pod:5018
12780 msgid ""
12781 "This command deactivates the MD array named C<md>.  The device is stopped, "
12782 "but it is not destroyed or zeroed."
12783 msgstr ""
12784
12785 #. type: =head2
12786 #: ../fish/guestfish-actions.pod:3259
12787 msgid "mkdir"
12788 msgstr ""
12789
12790 #. type: verbatim
12791 #: ../fish/guestfish-actions.pod:3261
12792 #, no-wrap
12793 msgid ""
12794 " mkdir path\n"
12795 "\n"
12796 msgstr ""
12797
12798 #. type: textblock
12799 #: ../fish/guestfish-actions.pod:3263 ../src/guestfs-actions.pod:5029
12800 msgid "Create a directory named C<path>."
12801 msgstr ""
12802
12803 #. type: =head2
12804 #: ../fish/guestfish-actions.pod:3265
12805 msgid "mkdir-mode"
12806 msgstr ""
12807
12808 #. type: verbatim
12809 #: ../fish/guestfish-actions.pod:3267
12810 #, no-wrap
12811 msgid ""
12812 " mkdir-mode path mode\n"
12813 "\n"
12814 msgstr ""
12815
12816 #. type: textblock
12817 #: ../fish/guestfish-actions.pod:3269 ../src/guestfs-actions.pod:5042
12818 msgid ""
12819 "This command creates a directory, setting the initial permissions of the "
12820 "directory to C<mode>."
12821 msgstr ""
12822
12823 #. type: textblock
12824 #: ../fish/guestfish-actions.pod:3272 ../src/guestfs-actions.pod:5045
12825 msgid ""
12826 "For common Linux filesystems, the actual mode which is set will be C<mode & "
12827 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
12828 "other ways."
12829 msgstr ""
12830
12831 #. type: textblock
12832 #: ../fish/guestfish-actions.pod:3276
12833 msgid "See also L</mkdir>, L</umask>"
12834 msgstr ""
12835
12836 #. type: =head2
12837 #: ../fish/guestfish-actions.pod:3278
12838 msgid "mkdir-p"
12839 msgstr ""
12840
12841 #. type: verbatim
12842 #: ../fish/guestfish-actions.pod:3280
12843 #, no-wrap
12844 msgid ""
12845 " mkdir-p path\n"
12846 "\n"
12847 msgstr ""
12848
12849 #. type: textblock
12850 #: ../fish/guestfish-actions.pod:3282 ../src/guestfs-actions.pod:5061
12851 msgid ""
12852 "Create a directory named C<path>, creating any parent directories as "
12853 "necessary.  This is like the C<mkdir -p> shell command."
12854 msgstr ""
12855
12856 #. type: =head2
12857 #: ../fish/guestfish-actions.pod:3285
12858 msgid "mkdtemp"
12859 msgstr ""
12860
12861 #. type: verbatim
12862 #: ../fish/guestfish-actions.pod:3287
12863 #, no-wrap
12864 msgid ""
12865 " mkdtemp template\n"
12866 "\n"
12867 msgstr ""
12868
12869 #. type: textblock
12870 #: ../fish/guestfish-actions.pod:3289 ../src/guestfs-actions.pod:5074
12871 msgid ""
12872 "This command creates a temporary directory.  The C<template> parameter "
12873 "should be a full pathname for the temporary directory name with the final "
12874 "six characters being \"XXXXXX\"."
12875 msgstr ""
12876
12877 #. type: textblock
12878 #: ../fish/guestfish-actions.pod:3294 ../src/guestfs-actions.pod:5079
12879 msgid ""
12880 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
12881 "being suitable for Windows filesystems."
12882 msgstr ""
12883
12884 #. type: textblock
12885 #: ../fish/guestfish-actions.pod:3297 ../src/guestfs-actions.pod:5082
12886 msgid "The name of the temporary directory that was created is returned."
12887 msgstr ""
12888
12889 #. type: textblock
12890 #: ../fish/guestfish-actions.pod:3300 ../src/guestfs-actions.pod:5085
12891 msgid "The temporary directory is created with mode 0700 and is owned by root."
12892 msgstr ""
12893
12894 #. type: textblock
12895 #: ../fish/guestfish-actions.pod:3303 ../src/guestfs-actions.pod:5088
12896 msgid ""
12897 "The caller is responsible for deleting the temporary directory and its "
12898 "contents after use."
12899 msgstr ""
12900
12901 #. type: textblock
12902 #: ../fish/guestfish-actions.pod:3306 ../src/guestfs-actions.pod:5091
12903 msgid "See also: L<mkdtemp(3)>"
12904 msgstr ""
12905
12906 #. type: =head2
12907 #: ../fish/guestfish-actions.pod:3308
12908 msgid "mke2fs-J"
12909 msgstr ""
12910
12911 #. type: verbatim
12912 #: ../fish/guestfish-actions.pod:3310
12913 #, no-wrap
12914 msgid ""
12915 " mke2fs-J fstype blocksize device journal\n"
12916 "\n"
12917 msgstr ""
12918
12919 #. type: textblock
12920 #: ../fish/guestfish-actions.pod:3312 ../src/guestfs-actions.pod:5107
12921 msgid ""
12922 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12923 "C<journal>.  It is equivalent to the command:"
12924 msgstr ""
12925
12926 #. type: verbatim
12927 #: ../fish/guestfish-actions.pod:3316 ../src/guestfs-actions.pod:5111
12928 #, no-wrap
12929 msgid ""
12930 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
12931 "\n"
12932 msgstr ""
12933
12934 #. type: textblock
12935 #: ../fish/guestfish-actions.pod:3318
12936 msgid "See also L</mke2journal>."
12937 msgstr ""
12938
12939 #. type: =head2
12940 #: ../fish/guestfish-actions.pod:3320
12941 msgid "mke2fs-JL"
12942 msgstr ""
12943
12944 #. type: verbatim
12945 #: ../fish/guestfish-actions.pod:3322
12946 #, no-wrap
12947 msgid ""
12948 " mke2fs-JL fstype blocksize device label\n"
12949 "\n"
12950 msgstr ""
12951
12952 #. type: textblock
12953 #: ../fish/guestfish-actions.pod:3324 ../src/guestfs-actions.pod:5128
12954 msgid ""
12955 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12956 "the journal labeled C<label>."
12957 msgstr ""
12958
12959 #. type: textblock
12960 #: ../fish/guestfish-actions.pod:3327
12961 msgid "See also L</mke2journal-L>."
12962 msgstr ""
12963
12964 #. type: =head2
12965 #: ../fish/guestfish-actions.pod:3329
12966 msgid "mke2fs-JU"
12967 msgstr ""
12968
12969 #. type: verbatim
12970 #: ../fish/guestfish-actions.pod:3331
12971 #, no-wrap
12972 msgid ""
12973 " mke2fs-JU fstype blocksize device uuid\n"
12974 "\n"
12975 msgstr ""
12976
12977 #. type: textblock
12978 #: ../fish/guestfish-actions.pod:3333 ../src/guestfs-actions.pod:5146
12979 msgid ""
12980 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12981 "the journal with UUID C<uuid>."
12982 msgstr ""
12983
12984 #. type: textblock
12985 #: ../fish/guestfish-actions.pod:3336
12986 msgid "See also L</mke2journal-U>."
12987 msgstr ""
12988
12989 #. type: =head2
12990 #: ../fish/guestfish-actions.pod:3338
12991 msgid "mke2journal"
12992 msgstr ""
12993
12994 #. type: verbatim
12995 #: ../fish/guestfish-actions.pod:3340
12996 #, no-wrap
12997 msgid ""
12998 " mke2journal blocksize device\n"
12999 "\n"
13000 msgstr ""
13001
13002 #. type: textblock
13003 #: ../fish/guestfish-actions.pod:3342 ../src/guestfs-actions.pod:5162
13004 msgid ""
13005 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
13006 "command:"
13007 msgstr ""
13008
13009 #. type: verbatim
13010 #: ../fish/guestfish-actions.pod:3345 ../src/guestfs-actions.pod:5165
13011 #, no-wrap
13012 msgid ""
13013 " mke2fs -O journal_dev -b blocksize device\n"
13014 "\n"
13015 msgstr ""
13016
13017 #. type: =head2
13018 #: ../fish/guestfish-actions.pod:3347
13019 msgid "mke2journal-L"
13020 msgstr ""
13021
13022 #. type: verbatim
13023 #: ../fish/guestfish-actions.pod:3349
13024 #, no-wrap
13025 msgid ""
13026 " mke2journal-L blocksize label device\n"
13027 "\n"
13028 msgstr ""
13029
13030 #. type: textblock
13031 #: ../fish/guestfish-actions.pod:3351 ../src/guestfs-actions.pod:5179
13032 msgid "This creates an ext2 external journal on C<device> with label C<label>."
13033 msgstr ""
13034
13035 #. type: =head2
13036 #: ../fish/guestfish-actions.pod:3353
13037 msgid "mke2journal-U"
13038 msgstr ""
13039
13040 #. type: verbatim
13041 #: ../fish/guestfish-actions.pod:3355
13042 #, no-wrap
13043 msgid ""
13044 " mke2journal-U blocksize uuid device\n"
13045 "\n"
13046 msgstr ""
13047
13048 #. type: textblock
13049 #: ../fish/guestfish-actions.pod:3357 ../src/guestfs-actions.pod:5193
13050 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
13051 msgstr ""
13052
13053 #. type: =head2
13054 #: ../fish/guestfish-actions.pod:3359
13055 msgid "mkfifo"
13056 msgstr ""
13057
13058 #. type: verbatim
13059 #: ../fish/guestfish-actions.pod:3361
13060 #, no-wrap
13061 msgid ""
13062 " mkfifo mode path\n"
13063 "\n"
13064 msgstr ""
13065
13066 #. type: textblock
13067 #: ../fish/guestfish-actions.pod:3363
13068 msgid ""
13069 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
13070 "is just a convenient wrapper around L</mknod>."
13071 msgstr ""
13072
13073 #. type: =head2
13074 #: ../fish/guestfish-actions.pod:3369
13075 msgid "mkfs"
13076 msgstr ""
13077
13078 #. type: verbatim
13079 #: ../fish/guestfish-actions.pod:3371
13080 #, no-wrap
13081 msgid ""
13082 " mkfs fstype device\n"
13083 "\n"
13084 msgstr ""
13085
13086 #. type: textblock
13087 #: ../fish/guestfish-actions.pod:3373 ../src/guestfs-actions.pod:5223
13088 msgid ""
13089 "This creates a filesystem on C<device> (usually a partition or LVM logical "
13090 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
13091 msgstr ""
13092
13093 #. type: =head2
13094 #: ../fish/guestfish-actions.pod:3377
13095 msgid "mkfs-b"
13096 msgstr ""
13097
13098 #. type: verbatim
13099 #: ../fish/guestfish-actions.pod:3379
13100 #, no-wrap
13101 msgid ""
13102 " mkfs-b fstype blocksize device\n"
13103 "\n"
13104 msgstr ""
13105
13106 #. type: textblock
13107 #: ../fish/guestfish-actions.pod:3381
13108 msgid ""
13109 "This call is similar to L</mkfs>, but it allows you to control the block "
13110 "size of the resulting filesystem.  Supported block sizes depend on the "
13111 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
13112 msgstr ""
13113
13114 #. type: textblock
13115 #: ../fish/guestfish-actions.pod:3386 ../fish/guestfish-actions.pod:3413 ../src/guestfs-actions.pod:5251 ../src/guestfs-actions.pod:5289
13116 msgid ""
13117 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
13118 "cluster size."
13119 msgstr ""
13120
13121 #. type: textblock
13122 #: ../fish/guestfish-actions.pod:3389
13123 msgid ""
13124 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
13125 "instead."
13126 msgstr ""
13127
13128 #. type: =head2
13129 #: ../fish/guestfish-actions.pod:3396
13130 msgid "mkfs-opts"
13131 msgstr ""
13132
13133 #. type: verbatim
13134 #: ../fish/guestfish-actions.pod:3398
13135 #, no-wrap
13136 msgid ""
13137 " mkfs-opts fstype device [blocksize:N] [features:..] [inode:N] "
13138 "[sectorsize:N]\n"
13139 "\n"
13140 msgstr ""
13141
13142 #. type: textblock
13143 #: ../fish/guestfish-actions.pod:3400 ../src/guestfs-actions.pod:5276
13144 msgid ""
13145 "This function creates a filesystem on C<device>.  The filesystem type is "
13146 "C<fstype>, for example C<ext3>."
13147 msgstr ""
13148
13149 #. type: =item
13150 #: ../fish/guestfish-actions.pod:3407 ../src/guestfs-actions.pod:5283
13151 msgid "C<blocksize>"
13152 msgstr ""
13153
13154 #. type: textblock
13155 #: ../fish/guestfish-actions.pod:3409 ../src/guestfs-actions.pod:5285
13156 msgid ""
13157 "The filesystem block size.  Supported block sizes depend on the filesystem "
13158 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
13159 "filesystems."
13160 msgstr ""
13161
13162 #. type: textblock
13163 #: ../fish/guestfish-actions.pod:3416 ../src/guestfs-actions.pod:5292
13164 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
13165 msgstr ""
13166
13167 #. type: =item
13168 #: ../fish/guestfish-actions.pod:3418 ../src/guestfs-actions.pod:5294
13169 msgid "C<features>"
13170 msgstr ""
13171
13172 #. type: textblock
13173 #: ../fish/guestfish-actions.pod:3420 ../src/guestfs-actions.pod:5296
13174 msgid "This passes the I<-O> parameter to the external mkfs program."
13175 msgstr ""
13176
13177 #. type: textblock
13178 #: ../fish/guestfish-actions.pod:3422 ../src/guestfs-actions.pod:5298
13179 msgid ""
13180 "For certain filesystem types, this allows extra filesystem features to be "
13181 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
13182 msgstr ""
13183
13184 #. type: textblock
13185 #: ../fish/guestfish-actions.pod:3426 ../src/guestfs-actions.pod:5302
13186 msgid ""
13187 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
13188 "type."
13189 msgstr ""
13190
13191 #. type: =item
13192 #: ../fish/guestfish-actions.pod:3429 ../src/guestfs-actions.pod:5305
13193 msgid "C<inode>"
13194 msgstr ""
13195
13196 #. type: textblock
13197 #: ../fish/guestfish-actions.pod:3431 ../src/guestfs-actions.pod:5307
13198 msgid ""
13199 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
13200 "sets the inode size (only for ext2/3/4 filesystems at present)."
13201 msgstr ""
13202
13203 #. type: =item
13204 #: ../fish/guestfish-actions.pod:3434 ../src/guestfs-actions.pod:5310
13205 msgid "C<sectorsize>"
13206 msgstr ""
13207
13208 #. type: textblock
13209 #: ../fish/guestfish-actions.pod:3436 ../src/guestfs-actions.pod:5312
13210 msgid ""
13211 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
13212 "sets sector size for ufs filesystem."
13213 msgstr ""
13214
13215 #. type: =head2
13216 #: ../fish/guestfish-actions.pod:3443
13217 msgid "mkmountpoint"
13218 msgstr ""
13219
13220 #. type: verbatim
13221 #: ../fish/guestfish-actions.pod:3445
13222 #, no-wrap
13223 msgid ""
13224 " mkmountpoint exemptpath\n"
13225 "\n"
13226 msgstr ""
13227
13228 #. type: textblock
13229 #: ../fish/guestfish-actions.pod:3447
13230 msgid ""
13231 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
13232 "to create extra mountpoints before mounting the first filesystem."
13233 msgstr ""
13234
13235 #. type: textblock
13236 #: ../fish/guestfish-actions.pod:3451 ../src/guestfs-actions.pod:5355
13237 msgid ""
13238 "These calls are I<only> necessary in some very limited circumstances, mainly "
13239 "the case where you want to mount a mix of unrelated and/or read-only "
13240 "filesystems together."
13241 msgstr ""
13242
13243 #. type: textblock
13244 #: ../fish/guestfish-actions.pod:3455 ../src/guestfs-actions.pod:5359
13245 msgid ""
13246 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
13247 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
13248 "inside that.  You can unpack this as follows in guestfish:"
13249 msgstr ""
13250
13251 #. type: verbatim
13252 #: ../fish/guestfish-actions.pod:3460 ../src/guestfs-actions.pod:5364
13253 #, no-wrap
13254 msgid ""
13255 " add-ro Fedora-11-i686-Live.iso\n"
13256 " run\n"
13257 " mkmountpoint /cd\n"
13258 " mkmountpoint /sqsh\n"
13259 " mkmountpoint /ext3fs\n"
13260 " mount /dev/sda /cd\n"
13261 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13262 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13263 "\n"
13264 msgstr ""
13265
13266 #. type: textblock
13267 #: ../fish/guestfish-actions.pod:3469 ../src/guestfs-actions.pod:5373
13268 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
13269 msgstr ""
13270
13271 #. type: textblock
13272 #: ../fish/guestfish-actions.pod:3471
13273 msgid ""
13274 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
13275 "unexpected errors if you try to mix these calls.  It is safest to manually "
13276 "unmount filesystems and remove mountpoints after use."
13277 msgstr ""
13278
13279 #. type: textblock
13280 #: ../fish/guestfish-actions.pod:3475
13281 msgid ""
13282 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
13283 "for this to work for manual mountpoints, you must ensure that the innermost "
13284 "mountpoints have the longest pathnames, as in the example code above."
13285 msgstr ""
13286
13287 #. type: textblock
13288 #: ../fish/guestfish-actions.pod:3480 ../src/guestfs-actions.pod:5384
13289 msgid "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
13290 msgstr ""
13291
13292 #. type: textblock
13293 #: ../fish/guestfish-actions.pod:3482
13294 msgid ""
13295 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
13296 "L</umount-all> to be called when the handle is closed which can also trigger "
13297 "these issues."
13298 msgstr ""
13299
13300 #. type: =head2
13301 #: ../fish/guestfish-actions.pod:3486
13302 msgid "mknod"
13303 msgstr ""
13304
13305 #. type: verbatim
13306 #: ../fish/guestfish-actions.pod:3488
13307 #, no-wrap
13308 msgid ""
13309 " mknod mode devmajor devminor path\n"
13310 "\n"
13311 msgstr ""
13312
13313 #. type: textblock
13314 #: ../fish/guestfish-actions.pod:3490 ../src/guestfs-actions.pod:5403
13315 msgid ""
13316 "This call creates block or character special devices, or named pipes "
13317 "(FIFOs)."
13318 msgstr ""
13319
13320 #. type: textblock
13321 #: ../fish/guestfish-actions.pod:3493 ../src/guestfs-actions.pod:5406
13322 msgid ""
13323 "The C<mode> parameter should be the mode, using the standard constants.  "
13324 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
13325 "used when creating block and character special devices."
13326 msgstr ""
13327
13328 #. type: textblock
13329 #: ../fish/guestfish-actions.pod:3498
13330 msgid ""
13331 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
13332 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
13333 "regular file).  These constants are available in the standard Linux header "
13334 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
13335 "wrappers around this command which bitwise OR in the appropriate constant "
13336 "for you."
13337 msgstr ""
13338
13339 #. type: =head2
13340 #: ../fish/guestfish-actions.pod:3508
13341 msgid "mknod-b"
13342 msgstr ""
13343
13344 #. type: verbatim
13345 #: ../fish/guestfish-actions.pod:3510
13346 #, no-wrap
13347 msgid ""
13348 " mknod-b mode devmajor devminor path\n"
13349 "\n"
13350 msgstr ""
13351
13352 #. type: textblock
13353 #: ../fish/guestfish-actions.pod:3512
13354 msgid ""
13355 "This call creates a block device node called C<path> with mode C<mode> and "
13356 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13357 "wrapper around L</mknod>."
13358 msgstr ""
13359
13360 #. type: =head2
13361 #: ../fish/guestfish-actions.pod:3518
13362 msgid "mknod-c"
13363 msgstr ""
13364
13365 #. type: verbatim
13366 #: ../fish/guestfish-actions.pod:3520
13367 #, no-wrap
13368 msgid ""
13369 " mknod-c mode devmajor devminor path\n"
13370 "\n"
13371 msgstr ""
13372
13373 #. type: textblock
13374 #: ../fish/guestfish-actions.pod:3522
13375 msgid ""
13376 "This call creates a char device node called C<path> with mode C<mode> and "
13377 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13378 "wrapper around L</mknod>."
13379 msgstr ""
13380
13381 #. type: =head2
13382 #: ../fish/guestfish-actions.pod:3528
13383 msgid "mkswap"
13384 msgstr ""
13385
13386 #. type: verbatim
13387 #: ../fish/guestfish-actions.pod:3530
13388 #, no-wrap
13389 msgid ""
13390 " mkswap device\n"
13391 "\n"
13392 msgstr ""
13393
13394 #. type: textblock
13395 #: ../fish/guestfish-actions.pod:3532 ../src/guestfs-actions.pod:5469
13396 msgid "Create a swap partition on C<device>."
13397 msgstr ""
13398
13399 #. type: =head2
13400 #: ../fish/guestfish-actions.pod:3534
13401 msgid "mkswap-L"
13402 msgstr ""
13403
13404 #. type: verbatim
13405 #: ../fish/guestfish-actions.pod:3536
13406 #, no-wrap
13407 msgid ""
13408 " mkswap-L label device\n"
13409 "\n"
13410 msgstr ""
13411
13412 #. type: textblock
13413 #: ../fish/guestfish-actions.pod:3538 ../src/guestfs-actions.pod:5482
13414 msgid "Create a swap partition on C<device> with label C<label>."
13415 msgstr ""
13416
13417 #. type: textblock
13418 #: ../fish/guestfish-actions.pod:3540 ../src/guestfs-actions.pod:5484
13419 msgid ""
13420 "Note that you cannot attach a swap label to a block device "
13421 "(eg. C</dev/sda>), just to a partition.  This appears to be a limitation of "
13422 "the kernel or swap tools."
13423 msgstr ""
13424
13425 #. type: =head2
13426 #: ../fish/guestfish-actions.pod:3544
13427 msgid "mkswap-U"
13428 msgstr ""
13429
13430 #. type: verbatim
13431 #: ../fish/guestfish-actions.pod:3546
13432 #, no-wrap
13433 msgid ""
13434 " mkswap-U uuid device\n"
13435 "\n"
13436 msgstr ""
13437
13438 #. type: textblock
13439 #: ../fish/guestfish-actions.pod:3548 ../src/guestfs-actions.pod:5499
13440 msgid "Create a swap partition on C<device> with UUID C<uuid>."
13441 msgstr ""
13442
13443 #. type: =head2
13444 #: ../fish/guestfish-actions.pod:3550
13445 msgid "mkswap-file"
13446 msgstr ""
13447
13448 #. type: verbatim
13449 #: ../fish/guestfish-actions.pod:3552
13450 #, no-wrap
13451 msgid ""
13452 " mkswap-file path\n"
13453 "\n"
13454 msgstr ""
13455
13456 #. type: textblock
13457 #: ../fish/guestfish-actions.pod:3554 ../src/guestfs-actions.pod:5511
13458 msgid "Create a swap file."
13459 msgstr ""
13460
13461 #. type: textblock
13462 #: ../fish/guestfish-actions.pod:3556
13463 msgid ""
13464 "This command just writes a swap file signature to an existing file.  To "
13465 "create the file itself, use something like L</fallocate>."
13466 msgstr ""
13467
13468 #. type: =head2
13469 #: ../fish/guestfish-actions.pod:3559
13470 msgid "modprobe"
13471 msgstr ""
13472
13473 #. type: verbatim
13474 #: ../fish/guestfish-actions.pod:3561
13475 #, no-wrap
13476 msgid ""
13477 " modprobe modulename\n"
13478 "\n"
13479 msgstr ""
13480
13481 #. type: textblock
13482 #: ../fish/guestfish-actions.pod:3563 ../src/guestfs-actions.pod:5526
13483 msgid "This loads a kernel module in the appliance."
13484 msgstr ""
13485
13486 #. type: textblock
13487 #: ../fish/guestfish-actions.pod:3565 ../src/guestfs-actions.pod:5528
13488 msgid ""
13489 "The kernel module must have been whitelisted when libguestfs was built (see "
13490 "C<appliance/kmod.whitelist.in> in the source)."
13491 msgstr ""
13492
13493 #. type: =head2
13494 #: ../fish/guestfish-actions.pod:3568
13495 msgid "mount"
13496 msgstr ""
13497
13498 #. type: verbatim
13499 #: ../fish/guestfish-actions.pod:3570
13500 #, no-wrap
13501 msgid ""
13502 " mount device mountpoint\n"
13503 "\n"
13504 msgstr ""
13505
13506 #. type: textblock
13507 #: ../fish/guestfish-actions.pod:3572 ../src/guestfs-actions.pod:5542
13508 msgid ""
13509 "Mount a guest disk at a position in the filesystem.  Block devices are named "
13510 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
13511 "those block devices contain partitions, they will have the usual names "
13512 "(eg. C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
13513 msgstr ""
13514
13515 #. type: textblock
13516 #: ../fish/guestfish-actions.pod:3578 ../src/guestfs-actions.pod:5548
13517 msgid ""
13518 "The rules are the same as for L<mount(2)>: A filesystem must first be "
13519 "mounted on C</> before others can be mounted.  Other filesystems can only be "
13520 "mounted on directories which already exist."
13521 msgstr ""
13522
13523 #. type: textblock
13524 #: ../fish/guestfish-actions.pod:3583 ../src/guestfs-actions.pod:5553
13525 msgid ""
13526 "The mounted filesystem is writable, if we have sufficient permissions on the "
13527 "underlying device."
13528 msgstr ""
13529
13530 #. type: textblock
13531 #: ../fish/guestfish-actions.pod:3586
13532 msgid ""
13533 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
13534 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
13535 "problems for users.  If your program might need to work with older versions "
13536 "of libguestfs, use L</mount-options> instead (using an empty string for the "
13537 "first parameter if you don't want any options)."
13538 msgstr ""
13539
13540 #. type: =head2
13541 #: ../fish/guestfish-actions.pod:3593
13542 msgid "mount-9p"
13543 msgstr ""
13544
13545 #. type: verbatim
13546 #: ../fish/guestfish-actions.pod:3595
13547 #, no-wrap
13548 msgid ""
13549 " mount-9p mounttag mountpoint [options:..]\n"
13550 "\n"
13551 msgstr ""
13552
13553 #. type: textblock
13554 #: ../fish/guestfish-actions.pod:3597 ../src/guestfs-actions.pod:5582
13555 msgid ""
13556 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
13557 "C<mountpoint>."
13558 msgstr ""
13559
13560 #. type: textblock
13561 #: ../fish/guestfish-actions.pod:3600 ../src/guestfs-actions.pod:5585
13562 msgid ""
13563 "If required, C<trans=virtio> will be automatically added to the options.  "
13564 "Any other options required can be passed in the optional C<options> "
13565 "parameter."
13566 msgstr ""
13567
13568 #. type: =head2
13569 #: ../fish/guestfish-actions.pod:3606
13570 msgid "mount-loop"
13571 msgstr ""
13572
13573 #. type: verbatim
13574 #: ../fish/guestfish-actions.pod:3608
13575 #, no-wrap
13576 msgid ""
13577 " mount-loop file mountpoint\n"
13578 "\n"
13579 msgstr ""
13580
13581 #. type: textblock
13582 #: ../fish/guestfish-actions.pod:3610 ../src/guestfs-actions.pod:5624
13583 msgid ""
13584 "This command lets you mount C<file> (a filesystem image in a file) on a "
13585 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
13586 "mountpoint>."
13587 msgstr ""
13588
13589 #. type: =head2
13590 #: ../fish/guestfish-actions.pod:3614
13591 msgid "mount-options"
13592 msgstr ""
13593
13594 #. type: verbatim
13595 #: ../fish/guestfish-actions.pod:3616
13596 #, no-wrap
13597 msgid ""
13598 " mount-options options device mountpoint\n"
13599 "\n"
13600 msgstr ""
13601
13602 #. type: textblock
13603 #: ../fish/guestfish-actions.pod:3618
13604 msgid ""
13605 "This is the same as the L</mount> command, but it allows you to set the "
13606 "mount options as for the L<mount(8)> I<-o> flag."
13607 msgstr ""
13608
13609 #. type: textblock
13610 #: ../fish/guestfish-actions.pod:3622 ../src/guestfs-actions.pod:5644
13611 msgid ""
13612 "If the C<options> parameter is an empty string, then no options are passed "
13613 "(all options default to whatever the filesystem uses)."
13614 msgstr ""
13615
13616 #. type: =head2
13617 #: ../fish/guestfish-actions.pod:3626
13618 msgid "mount-ro"
13619 msgstr ""
13620
13621 #. type: verbatim
13622 #: ../fish/guestfish-actions.pod:3628
13623 #, no-wrap
13624 msgid ""
13625 " mount-ro device mountpoint\n"
13626 "\n"
13627 msgstr ""
13628
13629 #. type: textblock
13630 #: ../fish/guestfish-actions.pod:3630
13631 msgid ""
13632 "This is the same as the L</mount> command, but it mounts the filesystem with "
13633 "the read-only (I<-o ro>) flag."
13634 msgstr ""
13635
13636 #. type: =head2
13637 #: ../fish/guestfish-actions.pod:3633
13638 msgid "mount-vfs"
13639 msgstr ""
13640
13641 #. type: verbatim
13642 #: ../fish/guestfish-actions.pod:3635
13643 #, no-wrap
13644 msgid ""
13645 " mount-vfs options vfstype device mountpoint\n"
13646 "\n"
13647 msgstr ""
13648
13649 #. type: textblock
13650 #: ../fish/guestfish-actions.pod:3637
13651 msgid ""
13652 "This is the same as the L</mount> command, but it allows you to set both the "
13653 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
13654 msgstr ""
13655
13656 #. type: =head2
13657 #: ../fish/guestfish-actions.pod:3641
13658 msgid "mountpoints"
13659 msgstr ""
13660
13661 #. type: verbatim
13662 #: ../fish/guestfish-actions.pod:3643
13663 #, no-wrap
13664 msgid ""
13665 " mountpoints\n"
13666 "\n"
13667 msgstr ""
13668
13669 #. type: textblock
13670 #: ../fish/guestfish-actions.pod:3645
13671 msgid ""
13672 "This call is similar to L</mounts>.  That call returns a list of devices.  "
13673 "This one returns a hash table (map) of device name to directory where the "
13674 "device is mounted."
13675 msgstr ""
13676
13677 #. type: =head2
13678 #: ../fish/guestfish-actions.pod:3649
13679 msgid "mounts"
13680 msgstr ""
13681
13682 #. type: verbatim
13683 #: ../fish/guestfish-actions.pod:3651
13684 #, no-wrap
13685 msgid ""
13686 " mounts\n"
13687 "\n"
13688 msgstr ""
13689
13690 #. type: textblock
13691 #: ../fish/guestfish-actions.pod:3653 ../src/guestfs-actions.pod:5705
13692 msgid ""
13693 "This returns the list of currently mounted filesystems.  It returns the list "
13694 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
13695 msgstr ""
13696
13697 #. type: textblock
13698 #: ../fish/guestfish-actions.pod:3656 ../src/guestfs-actions.pod:5708
13699 msgid "Some internal mounts are not shown."
13700 msgstr ""
13701
13702 #. type: textblock
13703 #: ../fish/guestfish-actions.pod:3658
13704 msgid "See also: L</mountpoints>"
13705 msgstr ""
13706
13707 #. type: =head2
13708 #: ../fish/guestfish-actions.pod:3660
13709 msgid "mv"
13710 msgstr ""
13711
13712 #. type: verbatim
13713 #: ../fish/guestfish-actions.pod:3662
13714 #, no-wrap
13715 msgid ""
13716 " mv src dest\n"
13717 "\n"
13718 msgstr ""
13719
13720 #. type: textblock
13721 #: ../fish/guestfish-actions.pod:3664 ../src/guestfs-actions.pod:5725
13722 msgid ""
13723 "This moves a file from C<src> to C<dest> where C<dest> is either a "
13724 "destination filename or destination directory."
13725 msgstr ""
13726
13727 #. type: =head2
13728 #: ../fish/guestfish-actions.pod:3667
13729 msgid "ntfs-3g-probe"
13730 msgstr ""
13731
13732 #. type: verbatim
13733 #: ../fish/guestfish-actions.pod:3669
13734 #, no-wrap
13735 msgid ""
13736 " ntfs-3g-probe true|false device\n"
13737 "\n"
13738 msgstr ""
13739
13740 #. type: textblock
13741 #: ../fish/guestfish-actions.pod:3671 ../src/guestfs-actions.pod:5739
13742 msgid ""
13743 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
13744 "C<device> for mountability.  (Not all NTFS volumes can be mounted "
13745 "read-write, and some cannot be mounted at all)."
13746 msgstr ""
13747
13748 #. type: textblock
13749 #: ../fish/guestfish-actions.pod:3675 ../src/guestfs-actions.pod:5743
13750 msgid ""
13751 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
13752 "can be mounted read-write.  Set it to false if you want to test if the "
13753 "volume can be mounted read-only."
13754 msgstr ""
13755
13756 #. type: textblock
13757 #: ../fish/guestfish-actions.pod:3679 ../src/guestfs-actions.pod:5747
13758 msgid ""
13759 "The return value is an integer which C<0> if the operation would succeed, or "
13760 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
13761 msgstr ""
13762
13763 #. type: =head2
13764 #: ../fish/guestfish-actions.pod:3683
13765 msgid "ntfsresize"
13766 msgstr ""
13767
13768 #. type: verbatim
13769 #: ../fish/guestfish-actions.pod:3685
13770 #, no-wrap
13771 msgid ""
13772 " ntfsresize device\n"
13773 "\n"
13774 msgstr ""
13775
13776 #. type: textblock
13777 #: ../fish/guestfish-actions.pod:3687 ../fish/guestfish-actions.pod:3711 ../src/guestfs-actions.pod:5768 ../src/guestfs-actions.pod:5800
13778 msgid ""
13779 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
13780 "size of the underlying device."
13781 msgstr ""
13782
13783 #. type: textblock
13784 #: ../fish/guestfish-actions.pod:3690 ../src/guestfs-actions.pod:5771
13785 msgid ""
13786 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
13787 "consistency check (for safety).  You have to boot into Windows to perform "
13788 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
13789 "resize filesystems which have been marked in this way.  So in effect it is "
13790 "not possible to call ntfsresize multiple times on a single filesystem "
13791 "without booting into Windows between each resize."
13792 msgstr ""
13793
13794 #. type: textblock
13795 #: ../fish/guestfish-actions.pod:3698 ../fish/guestfish-actions.pod:3737 ../src/guestfs-actions.pod:5779 ../src/guestfs-actions.pod:5826
13796 msgid "See also L<ntfsresize(8)>."
13797 msgstr ""
13798
13799 #. type: textblock
13800 #: ../fish/guestfish-actions.pod:3700 ../fish/guestfish-actions.pod:3748
13801 msgid ""
13802 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
13803 "call instead."
13804 msgstr ""
13805
13806 #. type: =head2
13807 #: ../fish/guestfish-actions.pod:3707
13808 msgid "ntfsresize-opts"
13809 msgstr ""
13810
13811 #. type: verbatim
13812 #: ../fish/guestfish-actions.pod:3709
13813 #, no-wrap
13814 msgid ""
13815 " ntfsresize-opts device [size:N] [force:true|false]\n"
13816 "\n"
13817 msgstr ""
13818
13819 #. type: textblock
13820 #: ../fish/guestfish-actions.pod:3720 ../src/guestfs-actions.pod:5809
13821 msgid ""
13822 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
13823 "resized to fit the container (eg. partition)."
13824 msgstr ""
13825
13826 #. type: =item
13827 #: ../fish/guestfish-actions.pod:3723 ../fish/guestfish-actions.pod:5044 ../src/guestfs-actions.pod:5812 ../src/guestfs-actions.pod:7783
13828 msgid "C<force>"
13829 msgstr ""
13830
13831 #. type: textblock
13832 #: ../fish/guestfish-actions.pod:3725 ../src/guestfs-actions.pod:5814
13833 msgid ""
13834 "If this option is true, then force the resize of the filesystem even if the "
13835 "filesystem is marked as requiring a consistency check."
13836 msgstr ""
13837
13838 #. type: textblock
13839 #: ../fish/guestfish-actions.pod:3728
13840 msgid ""
13841 "After the resize operation, the filesystem is always marked as requiring a "
13842 "consistency check (for safety).  You have to boot into Windows to perform "
13843 "this check and clear this condition.  If you I<don't> set the C<force> "
13844 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
13845 "a single filesystem without booting into Windows between each resize."
13846 msgstr ""
13847
13848 #. type: =head2
13849 #: ../fish/guestfish-actions.pod:3741
13850 msgid "ntfsresize-size"
13851 msgstr ""
13852
13853 #. type: verbatim
13854 #: ../fish/guestfish-actions.pod:3743
13855 #, no-wrap
13856 msgid ""
13857 " ntfsresize-size device size\n"
13858 "\n"
13859 msgstr ""
13860
13861 #. type: textblock
13862 #: ../fish/guestfish-actions.pod:3745
13863 msgid ""
13864 "This command is the same as L</ntfsresize> except that it allows you to "
13865 "specify the new size (in bytes) explicitly."
13866 msgstr ""
13867
13868 #. type: =head2
13869 #: ../fish/guestfish-actions.pod:3755
13870 msgid "part-add"
13871 msgstr ""
13872
13873 #. type: verbatim
13874 #: ../fish/guestfish-actions.pod:3757
13875 #, no-wrap
13876 msgid ""
13877 " part-add device prlogex startsect endsect\n"
13878 "\n"
13879 msgstr ""
13880
13881 #. type: textblock
13882 #: ../fish/guestfish-actions.pod:3759
13883 msgid ""
13884 "This command adds a partition to C<device>.  If there is no partition table "
13885 "on the device, call L</part-init> first."
13886 msgstr ""
13887
13888 #. type: textblock
13889 #: ../fish/guestfish-actions.pod:3762 ../src/guestfs-actions.pod:5887
13890 msgid ""
13891 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
13892 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
13893 "C<logical>) and C<e> (or C<extended>) partition types."
13894 msgstr ""
13895
13896 #. type: textblock
13897 #: ../fish/guestfish-actions.pod:3767 ../src/guestfs-actions.pod:5892
13898 msgid ""
13899 "C<startsect> and C<endsect> are the start and end of the partition in "
13900 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
13901 "from the end of the disk (C<-1> is the last sector)."
13902 msgstr ""
13903
13904 #. type: textblock
13905 #: ../fish/guestfish-actions.pod:3771
13906 msgid ""
13907 "Creating a partition which covers the whole disk is not so easy.  Use "
13908 "L</part-disk> to do that."
13909 msgstr ""
13910
13911 #. type: =head2
13912 #: ../fish/guestfish-actions.pod:3774
13913 msgid "part-del"
13914 msgstr ""
13915
13916 #. type: verbatim
13917 #: ../fish/guestfish-actions.pod:3776
13918 #, no-wrap
13919 msgid ""
13920 " part-del device partnum\n"
13921 "\n"
13922 msgstr ""
13923
13924 #. type: textblock
13925 #: ../fish/guestfish-actions.pod:3778 ../src/guestfs-actions.pod:5910
13926 msgid "This command deletes the partition numbered C<partnum> on C<device>."
13927 msgstr ""
13928
13929 #. type: textblock
13930 #: ../fish/guestfish-actions.pod:3780 ../src/guestfs-actions.pod:5912
13931 msgid ""
13932 "Note that in the case of MBR partitioning, deleting an extended partition "
13933 "also deletes any logical partitions it contains."
13934 msgstr ""
13935
13936 #. type: =head2
13937 #: ../fish/guestfish-actions.pod:3784
13938 msgid "part-disk"
13939 msgstr ""
13940
13941 #. type: verbatim
13942 #: ../fish/guestfish-actions.pod:3786
13943 #, no-wrap
13944 msgid ""
13945 " part-disk device parttype\n"
13946 "\n"
13947 msgstr ""
13948
13949 #. type: textblock
13950 #: ../fish/guestfish-actions.pod:3788
13951 msgid ""
13952 "This command is simply a combination of L</part-init> followed by "
13953 "L</part-add> to create a single primary partition covering the whole disk."
13954 msgstr ""
13955
13956 #. type: textblock
13957 #: ../fish/guestfish-actions.pod:3792
13958 msgid ""
13959 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
13960 "possible values are described in L</part-init>."
13961 msgstr ""
13962
13963 #. type: =head2
13964 #: ../fish/guestfish-actions.pod:3795
13965 msgid "part-get-bootable"
13966 msgstr ""
13967
13968 #. type: verbatim
13969 #: ../fish/guestfish-actions.pod:3797
13970 #, no-wrap
13971 msgid ""
13972 " part-get-bootable device partnum\n"
13973 "\n"
13974 msgstr ""
13975
13976 #. type: textblock
13977 #: ../fish/guestfish-actions.pod:3799 ../src/guestfs-actions.pod:5945
13978 msgid ""
13979 "This command returns true if the partition C<partnum> on C<device> has the "
13980 "bootable flag set."
13981 msgstr ""
13982
13983 #. type: textblock
13984 #: ../fish/guestfish-actions.pod:3802
13985 msgid "See also L</part-set-bootable>."
13986 msgstr ""
13987
13988 #. type: =head2
13989 #: ../fish/guestfish-actions.pod:3804
13990 msgid "part-get-mbr-id"
13991 msgstr ""
13992
13993 #. type: verbatim
13994 #: ../fish/guestfish-actions.pod:3806
13995 #, no-wrap
13996 msgid ""
13997 " part-get-mbr-id device partnum\n"
13998 "\n"
13999 msgstr ""
14000
14001 #. type: textblock
14002 #: ../fish/guestfish-actions.pod:3808 ../src/guestfs-actions.pod:5961
14003 msgid ""
14004 "Returns the MBR type byte (also known as the ID byte) from the numbered "
14005 "partition C<partnum>."
14006 msgstr ""
14007
14008 #. type: textblock
14009 #: ../fish/guestfish-actions.pod:3811 ../fish/guestfish-actions.pod:3955
14010 msgid ""
14011 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
14012 "undefined results for other partition table types (see "
14013 "L</part-get-parttype>)."
14014 msgstr ""
14015
14016 #. type: =head2
14017 #: ../fish/guestfish-actions.pod:3815
14018 msgid "part-get-parttype"
14019 msgstr ""
14020
14021 #. type: verbatim
14022 #: ../fish/guestfish-actions.pod:3817
14023 #, no-wrap
14024 msgid ""
14025 " part-get-parttype device\n"
14026 "\n"
14027 msgstr ""
14028
14029 #. type: textblock
14030 #: ../fish/guestfish-actions.pod:3819 ../src/guestfs-actions.pod:5978
14031 msgid ""
14032 "This command examines the partition table on C<device> and returns the "
14033 "partition table type (format) being used."
14034 msgstr ""
14035
14036 #. type: textblock
14037 #: ../fish/guestfish-actions.pod:3822
14038 msgid ""
14039 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
14040 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
14041 "possible, although unusual.  See L</part-init> for a full list."
14042 msgstr ""
14043
14044 #. type: =head2
14045 #: ../fish/guestfish-actions.pod:3827
14046 msgid "part-init"
14047 msgstr ""
14048
14049 #. type: verbatim
14050 #: ../fish/guestfish-actions.pod:3829
14051 #, no-wrap
14052 msgid ""
14053 " part-init device parttype\n"
14054 "\n"
14055 msgstr ""
14056
14057 #. type: textblock
14058 #: ../fish/guestfish-actions.pod:3831 ../src/guestfs-actions.pod:5998
14059 msgid ""
14060 "This creates an empty partition table on C<device> of one of the partition "
14061 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
14062 "(for large disks)."
14063 msgstr ""
14064
14065 #. type: textblock
14066 #: ../fish/guestfish-actions.pod:3835
14067 msgid ""
14068 "Initially there are no partitions.  Following this, you should call "
14069 "L</part-add> for each partition required."
14070 msgstr ""
14071
14072 #. type: textblock
14073 #: ../fish/guestfish-actions.pod:3838 ../src/guestfs-actions.pod:6005
14074 msgid "Possible values for C<parttype> are:"
14075 msgstr ""
14076
14077 #. type: =item
14078 #: ../fish/guestfish-actions.pod:3842 ../src/guestfs-actions.pod:6009
14079 msgid "B<efi>"
14080 msgstr ""
14081
14082 #. type: =item
14083 #: ../fish/guestfish-actions.pod:3844 ../src/guestfs-actions.pod:6011
14084 msgid "B<gpt>"
14085 msgstr ""
14086
14087 #. type: textblock
14088 #: ../fish/guestfish-actions.pod:3846 ../src/guestfs-actions.pod:6013
14089 msgid "Intel EFI / GPT partition table."
14090 msgstr ""
14091
14092 #. type: textblock
14093 #: ../fish/guestfish-actions.pod:3848 ../src/guestfs-actions.pod:6015
14094 msgid ""
14095 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
14096 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
14097 "the C<mbr> format."
14098 msgstr ""
14099
14100 #. type: =item
14101 #: ../fish/guestfish-actions.pod:3852 ../src/guestfs-actions.pod:6019
14102 msgid "B<mbr>"
14103 msgstr ""
14104
14105 #. type: =item
14106 #: ../fish/guestfish-actions.pod:3854 ../src/guestfs-actions.pod:6021
14107 msgid "B<msdos>"
14108 msgstr ""
14109
14110 #. type: textblock
14111 #: ../fish/guestfish-actions.pod:3856 ../src/guestfs-actions.pod:6023
14112 msgid ""
14113 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
14114 "Windows.  This partition type will B<only> work for device sizes up to 2 "
14115 "TB.  For large disks we recommend using C<gpt>."
14116 msgstr ""
14117
14118 #. type: textblock
14119 #: ../fish/guestfish-actions.pod:3863 ../src/guestfs-actions.pod:6030
14120 msgid "Other partition table types that may work but are not supported include:"
14121 msgstr ""
14122
14123 #. type: =item
14124 #: ../fish/guestfish-actions.pod:3868 ../src/guestfs-actions.pod:6035
14125 msgid "B<aix>"
14126 msgstr ""
14127
14128 #. type: textblock
14129 #: ../fish/guestfish-actions.pod:3870 ../src/guestfs-actions.pod:6037
14130 msgid "AIX disk labels."
14131 msgstr ""
14132
14133 #. type: =item
14134 #: ../fish/guestfish-actions.pod:3872 ../src/guestfs-actions.pod:6039
14135 msgid "B<amiga>"
14136 msgstr ""
14137
14138 #. type: =item
14139 #: ../fish/guestfish-actions.pod:3874 ../src/guestfs-actions.pod:6041
14140 msgid "B<rdb>"
14141 msgstr ""
14142
14143 #. type: textblock
14144 #: ../fish/guestfish-actions.pod:3876 ../src/guestfs-actions.pod:6043
14145 msgid "Amiga \"Rigid Disk Block\" format."
14146 msgstr ""
14147
14148 #. type: =item
14149 #: ../fish/guestfish-actions.pod:3878 ../src/guestfs-actions.pod:6045
14150 msgid "B<bsd>"
14151 msgstr ""
14152
14153 #. type: textblock
14154 #: ../fish/guestfish-actions.pod:3880 ../src/guestfs-actions.pod:6047
14155 msgid "BSD disk labels."
14156 msgstr ""
14157
14158 #. type: =item
14159 #: ../fish/guestfish-actions.pod:3882 ../src/guestfs-actions.pod:6049
14160 msgid "B<dasd>"
14161 msgstr ""
14162
14163 #. type: textblock
14164 #: ../fish/guestfish-actions.pod:3884 ../src/guestfs-actions.pod:6051
14165 msgid "DASD, used on IBM mainframes."
14166 msgstr ""
14167
14168 #. type: =item
14169 #: ../fish/guestfish-actions.pod:3886 ../src/guestfs-actions.pod:6053
14170 msgid "B<dvh>"
14171 msgstr ""
14172
14173 #. type: textblock
14174 #: ../fish/guestfish-actions.pod:3888 ../src/guestfs-actions.pod:6055
14175 msgid "MIPS/SGI volumes."
14176 msgstr ""
14177
14178 #. type: =item
14179 #: ../fish/guestfish-actions.pod:3890 ../src/guestfs-actions.pod:6057
14180 msgid "B<mac>"
14181 msgstr ""
14182
14183 #. type: textblock
14184 #: ../fish/guestfish-actions.pod:3892 ../src/guestfs-actions.pod:6059
14185 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
14186 msgstr ""
14187
14188 #. type: =item
14189 #: ../fish/guestfish-actions.pod:3894 ../src/guestfs-actions.pod:6061
14190 msgid "B<pc98>"
14191 msgstr ""
14192
14193 #. type: textblock
14194 #: ../fish/guestfish-actions.pod:3896 ../src/guestfs-actions.pod:6063
14195 msgid "NEC PC-98 format, common in Japan apparently."
14196 msgstr ""
14197
14198 #. type: =item
14199 #: ../fish/guestfish-actions.pod:3898 ../src/guestfs-actions.pod:6065
14200 msgid "B<sun>"
14201 msgstr ""
14202
14203 #. type: textblock
14204 #: ../fish/guestfish-actions.pod:3900 ../src/guestfs-actions.pod:6067
14205 msgid "Sun disk labels."
14206 msgstr ""
14207
14208 #. type: =head2
14209 #: ../fish/guestfish-actions.pod:3904
14210 msgid "part-list"
14211 msgstr ""
14212
14213 #. type: verbatim
14214 #: ../fish/guestfish-actions.pod:3906
14215 #, no-wrap
14216 msgid ""
14217 " part-list device\n"
14218 "\n"
14219 msgstr ""
14220
14221 #. type: textblock
14222 #: ../fish/guestfish-actions.pod:3908 ../src/guestfs-actions.pod:6081
14223 msgid ""
14224 "This command parses the partition table on C<device> and returns the list of "
14225 "partitions found."
14226 msgstr ""
14227
14228 #. type: textblock
14229 #: ../fish/guestfish-actions.pod:3911 ../src/guestfs-actions.pod:6084
14230 msgid "The fields in the returned structure are:"
14231 msgstr ""
14232
14233 #. type: =item
14234 #: ../fish/guestfish-actions.pod:3915 ../src/guestfs-actions.pod:6088
14235 msgid "B<part_num>"
14236 msgstr ""
14237
14238 #. type: textblock
14239 #: ../fish/guestfish-actions.pod:3917 ../src/guestfs-actions.pod:6090
14240 msgid "Partition number, counting from 1."
14241 msgstr ""
14242
14243 #. type: =item
14244 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:6092
14245 msgid "B<part_start>"
14246 msgstr ""
14247
14248 #. type: textblock
14249 #: ../fish/guestfish-actions.pod:3921
14250 msgid ""
14251 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
14252 "the device's sector size, see L</blockdev-getss>."
14253 msgstr ""
14254
14255 #. type: =item
14256 #: ../fish/guestfish-actions.pod:3924 ../src/guestfs-actions.pod:6097
14257 msgid "B<part_end>"
14258 msgstr ""
14259
14260 #. type: textblock
14261 #: ../fish/guestfish-actions.pod:3926 ../src/guestfs-actions.pod:6099
14262 msgid "End of the partition in bytes."
14263 msgstr ""
14264
14265 #. type: =item
14266 #: ../fish/guestfish-actions.pod:3928 ../src/guestfs-actions.pod:6101
14267 msgid "B<part_size>"
14268 msgstr ""
14269
14270 #. type: textblock
14271 #: ../fish/guestfish-actions.pod:3930 ../src/guestfs-actions.pod:6103
14272 msgid "Size of the partition in bytes."
14273 msgstr ""
14274
14275 #. type: =head2
14276 #: ../fish/guestfish-actions.pod:3934
14277 msgid "part-set-bootable"
14278 msgstr ""
14279
14280 #. type: verbatim
14281 #: ../fish/guestfish-actions.pod:3936
14282 #, no-wrap
14283 msgid ""
14284 " part-set-bootable device partnum true|false\n"
14285 "\n"
14286 msgstr ""
14287
14288 #. type: textblock
14289 #: ../fish/guestfish-actions.pod:3938 ../src/guestfs-actions.pod:6121
14290 msgid ""
14291 "This sets the bootable flag on partition numbered C<partnum> on device "
14292 "C<device>.  Note that partitions are numbered from 1."
14293 msgstr ""
14294
14295 #. type: textblock
14296 #: ../fish/guestfish-actions.pod:3941 ../src/guestfs-actions.pod:6124
14297 msgid ""
14298 "The bootable flag is used by some operating systems (notably Windows) to "
14299 "determine which partition to boot from.  It is by no means universally "
14300 "recognized."
14301 msgstr ""
14302
14303 #. type: =head2
14304 #: ../fish/guestfish-actions.pod:3945
14305 msgid "part-set-mbr-id"
14306 msgstr ""
14307
14308 #. type: verbatim
14309 #: ../fish/guestfish-actions.pod:3947
14310 #, no-wrap
14311 msgid ""
14312 " part-set-mbr-id device partnum idbyte\n"
14313 "\n"
14314 msgstr ""
14315
14316 #. type: textblock
14317 #: ../fish/guestfish-actions.pod:3949 ../src/guestfs-actions.pod:6140
14318 msgid ""
14319 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
14320 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
14321 "documentation are in fact hexadecimal numbers, but usually documented "
14322 "without any leading \"0x\" which might be confusing."
14323 msgstr ""
14324
14325 #. type: =head2
14326 #: ../fish/guestfish-actions.pod:3959
14327 msgid "part-set-name"
14328 msgstr ""
14329
14330 #. type: verbatim
14331 #: ../fish/guestfish-actions.pod:3961
14332 #, no-wrap
14333 msgid ""
14334 " part-set-name device partnum name\n"
14335 "\n"
14336 msgstr ""
14337
14338 #. type: textblock
14339 #: ../fish/guestfish-actions.pod:3963 ../src/guestfs-actions.pod:6162
14340 msgid ""
14341 "This sets the partition name on partition numbered C<partnum> on device "
14342 "C<device>.  Note that partitions are numbered from 1."
14343 msgstr ""
14344
14345 #. type: textblock
14346 #: ../fish/guestfish-actions.pod:3966 ../src/guestfs-actions.pod:6165
14347 msgid ""
14348 "The partition name can only be set on certain types of partition table.  "
14349 "This works on C<gpt> but not on C<mbr> partitions."
14350 msgstr ""
14351
14352 #. type: =head2
14353 #: ../fish/guestfish-actions.pod:3969
14354 msgid "part-to-dev"
14355 msgstr ""
14356
14357 #. type: verbatim
14358 #: ../fish/guestfish-actions.pod:3971
14359 #, no-wrap
14360 msgid ""
14361 " part-to-dev partition\n"
14362 "\n"
14363 msgstr ""
14364
14365 #. type: textblock
14366 #: ../fish/guestfish-actions.pod:3973 ../src/guestfs-actions.pod:6178
14367 msgid ""
14368 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
14369 "partition number, returning the device name (eg. \"/dev/sdb\")."
14370 msgstr ""
14371
14372 #. type: textblock
14373 #: ../fish/guestfish-actions.pod:3977 ../fish/guestfish-actions.pod:3989
14374 msgid ""
14375 "The named partition must exist, for example as a string returned from "
14376 "L</list-partitions>."
14377 msgstr ""
14378
14379 #. type: textblock
14380 #: ../fish/guestfish-actions.pod:3980
14381 msgid "See also L</part-to-partnum>."
14382 msgstr ""
14383
14384 #. type: =head2
14385 #: ../fish/guestfish-actions.pod:3982
14386 msgid "part-to-partnum"
14387 msgstr ""
14388
14389 #. type: verbatim
14390 #: ../fish/guestfish-actions.pod:3984
14391 #, no-wrap
14392 msgid ""
14393 " part-to-partnum partition\n"
14394 "\n"
14395 msgstr ""
14396
14397 #. type: textblock
14398 #: ../fish/guestfish-actions.pod:3986 ../src/guestfs-actions.pod:6198
14399 msgid ""
14400 "This function takes a partition name (eg. \"/dev/sdb1\") and returns the "
14401 "partition number (eg. C<1>)."
14402 msgstr ""
14403
14404 #. type: textblock
14405 #: ../fish/guestfish-actions.pod:3992
14406 msgid "See also L</part-to-dev>."
14407 msgstr ""
14408
14409 #. type: =head2
14410 #: ../fish/guestfish-actions.pod:3994
14411 msgid "ping-daemon"
14412 msgstr ""
14413
14414 #. type: verbatim
14415 #: ../fish/guestfish-actions.pod:3996
14416 #, no-wrap
14417 msgid ""
14418 " ping-daemon\n"
14419 "\n"
14420 msgstr ""
14421
14422 #. type: textblock
14423 #: ../fish/guestfish-actions.pod:3998 ../src/guestfs-actions.pod:6215
14424 msgid ""
14425 "This is a test probe into the guestfs daemon running inside the qemu "
14426 "subprocess.  Calling this function checks that the daemon responds to the "
14427 "ping message, without affecting the daemon or attached block device(s) in "
14428 "any other way."
14429 msgstr ""
14430
14431 #. type: =head2
14432 #: ../fish/guestfish-actions.pod:4003
14433 msgid "pread"
14434 msgstr ""
14435
14436 #. type: verbatim
14437 #: ../fish/guestfish-actions.pod:4005
14438 #, no-wrap
14439 msgid ""
14440 " pread path count offset\n"
14441 "\n"
14442 msgstr ""
14443
14444 #. type: textblock
14445 #: ../fish/guestfish-actions.pod:4007 ../src/guestfs-actions.pod:6233
14446 msgid ""
14447 "This command lets you read part of a file.  It reads C<count> bytes of the "
14448 "file, starting at C<offset>, from file C<path>."
14449 msgstr ""
14450
14451 #. type: textblock
14452 #: ../fish/guestfish-actions.pod:4010 ../fish/guestfish-actions.pod:4025 ../src/guestfs-actions.pod:6236 ../src/guestfs-actions.pod:6262
14453 msgid ""
14454 "This may read fewer bytes than requested.  For further details see the "
14455 "L<pread(2)> system call."
14456 msgstr ""
14457
14458 #. type: textblock
14459 #: ../fish/guestfish-actions.pod:4013
14460 msgid "See also L</pwrite>, L</pread-device>."
14461 msgstr ""
14462
14463 #. type: =head2
14464 #: ../fish/guestfish-actions.pod:4018
14465 msgid "pread-device"
14466 msgstr ""
14467
14468 #. type: verbatim
14469 #: ../fish/guestfish-actions.pod:4020
14470 #, no-wrap
14471 msgid ""
14472 " pread-device device count offset\n"
14473 "\n"
14474 msgstr ""
14475
14476 #. type: textblock
14477 #: ../fish/guestfish-actions.pod:4022 ../src/guestfs-actions.pod:6259
14478 msgid ""
14479 "This command lets you read part of a file.  It reads C<count> bytes of "
14480 "C<device>, starting at C<offset>."
14481 msgstr ""
14482
14483 #. type: textblock
14484 #: ../fish/guestfish-actions.pod:4028
14485 msgid "See also L</pread>."
14486 msgstr ""
14487
14488 #. type: =head2
14489 #: ../fish/guestfish-actions.pod:4033
14490 msgid "pvcreate"
14491 msgstr ""
14492
14493 #. type: verbatim
14494 #: ../fish/guestfish-actions.pod:4035
14495 #, no-wrap
14496 msgid ""
14497 " pvcreate device\n"
14498 "\n"
14499 msgstr ""
14500
14501 #. type: textblock
14502 #: ../fish/guestfish-actions.pod:4037 ../src/guestfs-actions.pod:6282
14503 msgid ""
14504 "This creates an LVM physical volume on the named C<device>, where C<device> "
14505 "should usually be a partition name such as C</dev/sda1>."
14506 msgstr ""
14507
14508 #. type: =head2
14509 #: ../fish/guestfish-actions.pod:4041
14510 msgid "pvremove"
14511 msgstr ""
14512
14513 #. type: verbatim
14514 #: ../fish/guestfish-actions.pod:4043
14515 #, no-wrap
14516 msgid ""
14517 " pvremove device\n"
14518 "\n"
14519 msgstr ""
14520
14521 #. type: textblock
14522 #: ../fish/guestfish-actions.pod:4045 ../src/guestfs-actions.pod:6296
14523 msgid ""
14524 "This wipes a physical volume C<device> so that LVM will no longer recognise "
14525 "it."
14526 msgstr ""
14527
14528 #. type: textblock
14529 #: ../fish/guestfish-actions.pod:4048 ../src/guestfs-actions.pod:6299
14530 msgid ""
14531 "The implementation uses the C<pvremove> command which refuses to wipe "
14532 "physical volumes that contain any volume groups, so you have to remove those "
14533 "first."
14534 msgstr ""
14535
14536 #. type: =head2
14537 #: ../fish/guestfish-actions.pod:4052
14538 msgid "pvresize"
14539 msgstr ""
14540
14541 #. type: verbatim
14542 #: ../fish/guestfish-actions.pod:4054
14543 #, no-wrap
14544 msgid ""
14545 " pvresize device\n"
14546 "\n"
14547 msgstr ""
14548
14549 #. type: textblock
14550 #: ../fish/guestfish-actions.pod:4056 ../src/guestfs-actions.pod:6313
14551 msgid ""
14552 "This resizes (expands or shrinks) an existing LVM physical volume to match "
14553 "the new size of the underlying device."
14554 msgstr ""
14555
14556 #. type: =head2
14557 #: ../fish/guestfish-actions.pod:4059
14558 msgid "pvresize-size"
14559 msgstr ""
14560
14561 #. type: verbatim
14562 #: ../fish/guestfish-actions.pod:4061
14563 #, no-wrap
14564 msgid ""
14565 " pvresize-size device size\n"
14566 "\n"
14567 msgstr ""
14568
14569 #. type: textblock
14570 #: ../fish/guestfish-actions.pod:4063
14571 msgid ""
14572 "This command is the same as L</pvresize> except that it allows you to "
14573 "specify the new size (in bytes) explicitly."
14574 msgstr ""
14575
14576 #. type: =head2
14577 #: ../fish/guestfish-actions.pod:4066
14578 msgid "pvs"
14579 msgstr ""
14580
14581 #. type: verbatim
14582 #: ../fish/guestfish-actions.pod:4068
14583 #, no-wrap
14584 msgid ""
14585 " pvs\n"
14586 "\n"
14587 msgstr ""
14588
14589 #. type: textblock
14590 #: ../fish/guestfish-actions.pod:4070 ../src/guestfs-actions.pod:6339
14591 msgid ""
14592 "List all the physical volumes detected.  This is the equivalent of the "
14593 "L<pvs(8)> command."
14594 msgstr ""
14595
14596 #. type: textblock
14597 #: ../fish/guestfish-actions.pod:4073 ../src/guestfs-actions.pod:6342
14598 msgid ""
14599 "This returns a list of just the device names that contain PVs "
14600 "(eg. C</dev/sda2>)."
14601 msgstr ""
14602
14603 #. type: textblock
14604 #: ../fish/guestfish-actions.pod:4076
14605 msgid "See also L</pvs-full>."
14606 msgstr ""
14607
14608 #. type: =head2
14609 #: ../fish/guestfish-actions.pod:4078
14610 msgid "pvs-full"
14611 msgstr ""
14612
14613 #. type: verbatim
14614 #: ../fish/guestfish-actions.pod:4080
14615 #, no-wrap
14616 msgid ""
14617 " pvs-full\n"
14618 "\n"
14619 msgstr ""
14620
14621 #. type: textblock
14622 #: ../fish/guestfish-actions.pod:4082 ../src/guestfs-actions.pod:6358
14623 msgid ""
14624 "List all the physical volumes detected.  This is the equivalent of the "
14625 "L<pvs(8)> command.  The \"full\" version includes all fields."
14626 msgstr ""
14627
14628 #. type: =head2
14629 #: ../fish/guestfish-actions.pod:4085
14630 msgid "pvuuid"
14631 msgstr ""
14632
14633 #. type: verbatim
14634 #: ../fish/guestfish-actions.pod:4087
14635 #, no-wrap
14636 msgid ""
14637 " pvuuid device\n"
14638 "\n"
14639 msgstr ""
14640
14641 #. type: textblock
14642 #: ../fish/guestfish-actions.pod:4089 ../src/guestfs-actions.pod:6373
14643 msgid "This command returns the UUID of the LVM PV C<device>."
14644 msgstr ""
14645
14646 #. type: =head2
14647 #: ../fish/guestfish-actions.pod:4091
14648 msgid "pwrite"
14649 msgstr ""
14650
14651 #. type: verbatim
14652 #: ../fish/guestfish-actions.pod:4093
14653 #, no-wrap
14654 msgid ""
14655 " pwrite path content offset\n"
14656 "\n"
14657 msgstr ""
14658
14659 #. type: textblock
14660 #: ../fish/guestfish-actions.pod:4095 ../src/guestfs-actions.pod:6389
14661 msgid ""
14662 "This command writes to part of a file.  It writes the data buffer C<content> "
14663 "to the file C<path> starting at offset C<offset>."
14664 msgstr ""
14665
14666 #. type: textblock
14667 #: ../fish/guestfish-actions.pod:4098 ../src/guestfs-actions.pod:6392
14668 msgid ""
14669 "This command implements the L<pwrite(2)> system call, and like that system "
14670 "call it may not write the full data requested.  The return value is the "
14671 "number of bytes that were actually written to the file.  This could even be "
14672 "0, although short writes are unlikely for regular files in ordinary "
14673 "circumstances."
14674 msgstr ""
14675
14676 #. type: textblock
14677 #: ../fish/guestfish-actions.pod:4104
14678 msgid "See also L</pread>, L</pwrite-device>."
14679 msgstr ""
14680
14681 #. type: =head2
14682 #: ../fish/guestfish-actions.pod:4109
14683 msgid "pwrite-device"
14684 msgstr ""
14685
14686 #. type: verbatim
14687 #: ../fish/guestfish-actions.pod:4111
14688 #, no-wrap
14689 msgid ""
14690 " pwrite-device device content offset\n"
14691 "\n"
14692 msgstr ""
14693
14694 #. type: textblock
14695 #: ../fish/guestfish-actions.pod:4113 ../src/guestfs-actions.pod:6416
14696 msgid ""
14697 "This command writes to part of a device.  It writes the data buffer "
14698 "C<content> to C<device> starting at offset C<offset>."
14699 msgstr ""
14700
14701 #. type: textblock
14702 #: ../fish/guestfish-actions.pod:4116 ../src/guestfs-actions.pod:6419
14703 msgid ""
14704 "This command implements the L<pwrite(2)> system call, and like that system "
14705 "call it may not write the full data requested (although short writes to disk "
14706 "devices and partitions are probably impossible with standard Linux kernels)."
14707 msgstr ""
14708
14709 #. type: textblock
14710 #: ../fish/guestfish-actions.pod:4121
14711 msgid "See also L</pwrite>."
14712 msgstr ""
14713
14714 #. type: =head2
14715 #: ../fish/guestfish-actions.pod:4126
14716 msgid "read-file"
14717 msgstr ""
14718
14719 #. type: verbatim
14720 #: ../fish/guestfish-actions.pod:4128
14721 #, no-wrap
14722 msgid ""
14723 " read-file path\n"
14724 "\n"
14725 msgstr ""
14726
14727 #. type: textblock
14728 #: ../fish/guestfish-actions.pod:4130 ../src/guestfs-actions.pod:6440
14729 msgid "This calls returns the contents of the file C<path> as a buffer."
14730 msgstr ""
14731
14732 #. type: textblock
14733 #: ../fish/guestfish-actions.pod:4133
14734 msgid ""
14735 "Unlike L</cat>, this function can correctly handle files that contain "
14736 "embedded ASCII NUL characters.  However unlike L</download>, this function "
14737 "is limited in the total size of file that can be handled."
14738 msgstr ""
14739
14740 #. type: =head2
14741 #: ../fish/guestfish-actions.pod:4141
14742 msgid "read-lines"
14743 msgstr ""
14744
14745 #. type: verbatim
14746 #: ../fish/guestfish-actions.pod:4143
14747 #, no-wrap
14748 msgid ""
14749 " read-lines path\n"
14750 "\n"
14751 msgstr ""
14752
14753 #. type: textblock
14754 #: ../fish/guestfish-actions.pod:4147 ../src/guestfs-actions.pod:6465
14755 msgid ""
14756 "The file contents are returned as a list of lines.  Trailing C<LF> and "
14757 "C<CRLF> character sequences are I<not> returned."
14758 msgstr ""
14759
14760 #. type: textblock
14761 #: ../fish/guestfish-actions.pod:4150
14762 msgid ""
14763 "Note that this function cannot correctly handle binary files (specifically, "
14764 "files containing C<\\0> character which is treated as end of line).  For "
14765 "those you need to use the L</read-file> function which has a more complex "
14766 "interface."
14767 msgstr ""
14768
14769 #. type: =head2
14770 #: ../fish/guestfish-actions.pod:4155
14771 msgid "readdir"
14772 msgstr ""
14773
14774 #. type: verbatim
14775 #: ../fish/guestfish-actions.pod:4157
14776 #, no-wrap
14777 msgid ""
14778 " readdir dir\n"
14779 "\n"
14780 msgstr ""
14781
14782 #. type: textblock
14783 #: ../fish/guestfish-actions.pod:4159 ../src/guestfs-actions.pod:6485
14784 msgid "This returns the list of directory entries in directory C<dir>."
14785 msgstr ""
14786
14787 #. type: textblock
14788 #: ../fish/guestfish-actions.pod:4161 ../src/guestfs-actions.pod:6487
14789 msgid ""
14790 "All entries in the directory are returned, including C<.> and C<..>.  The "
14791 "entries are I<not> sorted, but returned in the same order as the underlying "
14792 "filesystem."
14793 msgstr ""
14794
14795 #. type: textblock
14796 #: ../fish/guestfish-actions.pod:4165 ../src/guestfs-actions.pod:6491
14797 msgid ""
14798 "Also this call returns basic file type information about each file.  The "
14799 "C<ftyp> field will contain one of the following characters:"
14800 msgstr ""
14801
14802 #. type: =item
14803 #: ../fish/guestfish-actions.pod:4170 ../src/guestfs-actions.pod:6496
14804 msgid "'b'"
14805 msgstr ""
14806
14807 #. type: textblock
14808 #: ../fish/guestfish-actions.pod:4172 ../src/guestfs-actions.pod:6498
14809 msgid "Block special"
14810 msgstr ""
14811
14812 #. type: =item
14813 #: ../fish/guestfish-actions.pod:4174 ../src/guestfs-actions.pod:6500
14814 msgid "'c'"
14815 msgstr ""
14816
14817 #. type: textblock
14818 #: ../fish/guestfish-actions.pod:4176 ../src/guestfs-actions.pod:6502
14819 msgid "Char special"
14820 msgstr ""
14821
14822 #. type: =item
14823 #: ../fish/guestfish-actions.pod:4178 ../src/guestfs-actions.pod:6504
14824 msgid "'d'"
14825 msgstr ""
14826
14827 #. type: textblock
14828 #: ../fish/guestfish-actions.pod:4180 ../src/guestfs-actions.pod:6506
14829 msgid "Directory"
14830 msgstr ""
14831
14832 #. type: =item
14833 #: ../fish/guestfish-actions.pod:4182 ../src/guestfs-actions.pod:6508
14834 msgid "'f'"
14835 msgstr ""
14836
14837 #. type: textblock
14838 #: ../fish/guestfish-actions.pod:4184 ../src/guestfs-actions.pod:6510
14839 msgid "FIFO (named pipe)"
14840 msgstr ""
14841
14842 #. type: =item
14843 #: ../fish/guestfish-actions.pod:4186 ../src/guestfs-actions.pod:6512
14844 msgid "'l'"
14845 msgstr ""
14846
14847 #. type: textblock
14848 #: ../fish/guestfish-actions.pod:4188 ../src/guestfs-actions.pod:6514
14849 msgid "Symbolic link"
14850 msgstr ""
14851
14852 #. type: =item
14853 #: ../fish/guestfish-actions.pod:4190 ../src/guestfs-actions.pod:6516
14854 msgid "'r'"
14855 msgstr ""
14856
14857 #. type: textblock
14858 #: ../fish/guestfish-actions.pod:4192 ../src/guestfs-actions.pod:6518
14859 msgid "Regular file"
14860 msgstr ""
14861
14862 #. type: =item
14863 #: ../fish/guestfish-actions.pod:4194 ../src/guestfs-actions.pod:6520
14864 msgid "'s'"
14865 msgstr ""
14866
14867 #. type: textblock
14868 #: ../fish/guestfish-actions.pod:4196 ../src/guestfs-actions.pod:6522
14869 msgid "Socket"
14870 msgstr ""
14871
14872 #. type: =item
14873 #: ../fish/guestfish-actions.pod:4198 ../src/guestfs-actions.pod:6524
14874 msgid "'u'"
14875 msgstr ""
14876
14877 #. type: textblock
14878 #: ../fish/guestfish-actions.pod:4200 ../src/guestfs-actions.pod:6526
14879 msgid "Unknown file type"
14880 msgstr ""
14881
14882 #. type: =item
14883 #: ../fish/guestfish-actions.pod:4202 ../src/guestfs-actions.pod:6528
14884 msgid "'?'"
14885 msgstr ""
14886
14887 #. type: textblock
14888 #: ../fish/guestfish-actions.pod:4204 ../src/guestfs-actions.pod:6530
14889 msgid "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
14890 msgstr ""
14891
14892 #. type: textblock
14893 #: ../fish/guestfish-actions.pod:4209
14894 msgid ""
14895 "This function is primarily intended for use by programs.  To get a simple "
14896 "list of names, use L</ls>.  To get a printable directory for human "
14897 "consumption, use L</ll>."
14898 msgstr ""
14899
14900 #. type: =head2
14901 #: ../fish/guestfish-actions.pod:4213
14902 msgid "readlink"
14903 msgstr ""
14904
14905 #. type: verbatim
14906 #: ../fish/guestfish-actions.pod:4215
14907 #, no-wrap
14908 msgid ""
14909 " readlink path\n"
14910 "\n"
14911 msgstr ""
14912
14913 #. type: textblock
14914 #: ../fish/guestfish-actions.pod:4217 ../src/guestfs-actions.pod:6551
14915 msgid "This command reads the target of a symbolic link."
14916 msgstr ""
14917
14918 #. type: =head2
14919 #: ../fish/guestfish-actions.pod:4219
14920 msgid "readlinklist"
14921 msgstr ""
14922
14923 #. type: verbatim
14924 #: ../fish/guestfish-actions.pod:4221
14925 #, no-wrap
14926 msgid ""
14927 " readlinklist path 'names ...'\n"
14928 "\n"
14929 msgstr ""
14930
14931 #. type: textblock
14932 #: ../fish/guestfish-actions.pod:4223 ../src/guestfs-actions.pod:6565
14933 msgid ""
14934 "This call allows you to do a C<readlink> operation on multiple files, where "
14935 "all files are in the directory C<path>.  C<names> is the list of files from "
14936 "this directory."
14937 msgstr ""
14938
14939 #. type: textblock
14940 #: ../fish/guestfish-actions.pod:4227 ../src/guestfs-actions.pod:6569
14941 msgid ""
14942 "On return you get a list of strings, with a one-to-one correspondence to the "
14943 "C<names> list.  Each string is the value of the symbolic link."
14944 msgstr ""
14945
14946 #. type: textblock
14947 #: ../fish/guestfish-actions.pod:4231 ../src/guestfs-actions.pod:6573
14948 msgid ""
14949 "If the C<readlink(2)> operation fails on any name, then the corresponding "
14950 "result string is the empty string C<\"\">.  However the whole operation is "
14951 "completed even if there were C<readlink(2)> errors, and so you can call this "
14952 "function with names where you don't know if they are symbolic links already "
14953 "(albeit slightly less efficient)."
14954 msgstr ""
14955
14956 #. type: textblock
14957 #: ../fish/guestfish-actions.pod:4238 ../src/guestfs-actions.pod:6580
14958 msgid ""
14959 "This call is intended for programs that want to efficiently list a directory "
14960 "contents without making many round-trips.  Very long directory listings "
14961 "might cause the protocol message size to be exceeded, causing this call to "
14962 "fail.  The caller must split up such requests into smaller groups of names."
14963 msgstr ""
14964
14965 #. type: =head2
14966 #: ../fish/guestfish-actions.pod:4245
14967 msgid "realpath"
14968 msgstr ""
14969
14970 #. type: verbatim
14971 #: ../fish/guestfish-actions.pod:4247
14972 #, no-wrap
14973 msgid ""
14974 " realpath path\n"
14975 "\n"
14976 msgstr ""
14977
14978 #. type: textblock
14979 #: ../fish/guestfish-actions.pod:4249 ../src/guestfs-actions.pod:6599
14980 msgid ""
14981 "Return the canonicalized absolute pathname of C<path>.  The returned path "
14982 "has no C<.>, C<..> or symbolic link path elements."
14983 msgstr ""
14984
14985 #. type: =head2
14986 #: ../fish/guestfish-actions.pod:4252
14987 msgid "removexattr"
14988 msgstr ""
14989
14990 #. type: verbatim
14991 #: ../fish/guestfish-actions.pod:4254
14992 #, no-wrap
14993 msgid ""
14994 " removexattr xattr path\n"
14995 "\n"
14996 msgstr ""
14997
14998 #. type: textblock
14999 #: ../fish/guestfish-actions.pod:4256 ../src/guestfs-actions.pod:6614
15000 msgid "This call removes the extended attribute named C<xattr> of the file C<path>."
15001 msgstr ""
15002
15003 #. type: textblock
15004 #: ../fish/guestfish-actions.pod:4259
15005 msgid "See also: L</lremovexattr>, L<attr(5)>."
15006 msgstr ""
15007
15008 #. type: =head2
15009 #: ../fish/guestfish-actions.pod:4261
15010 msgid "resize2fs"
15011 msgstr ""
15012
15013 #. type: verbatim
15014 #: ../fish/guestfish-actions.pod:4263
15015 #, no-wrap
15016 msgid ""
15017 " resize2fs device\n"
15018 "\n"
15019 msgstr ""
15020
15021 #. type: textblock
15022 #: ../fish/guestfish-actions.pod:4265 ../src/guestfs-actions.pod:6629
15023 msgid ""
15024 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
15025 "underlying device."
15026 msgstr ""
15027
15028 #. type: textblock
15029 #: ../fish/guestfish-actions.pod:4268
15030 msgid ""
15031 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
15032 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
15033 "gives an error about this and sometimes not.  In any case, it is always safe "
15034 "to call L</e2fsck-f> before calling this function."
15035 msgstr ""
15036
15037 #. type: =head2
15038 #: ../fish/guestfish-actions.pod:4274
15039 msgid "resize2fs-M"
15040 msgstr ""
15041
15042 #. type: verbatim
15043 #: ../fish/guestfish-actions.pod:4276
15044 #, no-wrap
15045 msgid ""
15046 " resize2fs-M device\n"
15047 "\n"
15048 msgstr ""
15049
15050 #. type: textblock
15051 #: ../fish/guestfish-actions.pod:4278
15052 msgid ""
15053 "This command is the same as L</resize2fs>, but the filesystem is resized to "
15054 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
15055 "command."
15056 msgstr ""
15057
15058 #. type: textblock
15059 #: ../fish/guestfish-actions.pod:4282
15060 msgid ""
15061 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
15062 "and read the C<Block size> and C<Block count> values.  These two numbers, "
15063 "multiplied together, give the resulting size of the minimal filesystem in "
15064 "bytes."
15065 msgstr ""
15066
15067 #. type: =head2
15068 #: ../fish/guestfish-actions.pod:4287
15069 msgid "resize2fs-size"
15070 msgstr ""
15071
15072 #. type: verbatim
15073 #: ../fish/guestfish-actions.pod:4289
15074 #, no-wrap
15075 msgid ""
15076 " resize2fs-size device size\n"
15077 "\n"
15078 msgstr ""
15079
15080 #. type: textblock
15081 #: ../fish/guestfish-actions.pod:4291
15082 msgid ""
15083 "This command is the same as L</resize2fs> except that it allows you to "
15084 "specify the new size (in bytes) explicitly."
15085 msgstr ""
15086
15087 #. type: =head2
15088 #: ../fish/guestfish-actions.pod:4294
15089 msgid "rm"
15090 msgstr ""
15091
15092 #. type: verbatim
15093 #: ../fish/guestfish-actions.pod:4296
15094 #, no-wrap
15095 msgid ""
15096 " rm path\n"
15097 "\n"
15098 msgstr ""
15099
15100 #. type: textblock
15101 #: ../fish/guestfish-actions.pod:4298 ../src/guestfs-actions.pod:6681
15102 msgid "Remove the single file C<path>."
15103 msgstr ""
15104
15105 #. type: =head2
15106 #: ../fish/guestfish-actions.pod:4300
15107 msgid "rm-rf"
15108 msgstr ""
15109
15110 #. type: verbatim
15111 #: ../fish/guestfish-actions.pod:4302
15112 #, no-wrap
15113 msgid ""
15114 " rm-rf path\n"
15115 "\n"
15116 msgstr ""
15117
15118 #. type: textblock
15119 #: ../fish/guestfish-actions.pod:4304 ../src/guestfs-actions.pod:6693
15120 msgid ""
15121 "Remove the file or directory C<path>, recursively removing the contents if "
15122 "its a directory.  This is like the C<rm -rf> shell command."
15123 msgstr ""
15124
15125 #. type: =head2
15126 #: ../fish/guestfish-actions.pod:4308
15127 msgid "rmdir"
15128 msgstr ""
15129
15130 #. type: verbatim
15131 #: ../fish/guestfish-actions.pod:4310
15132 #, no-wrap
15133 msgid ""
15134 " rmdir path\n"
15135 "\n"
15136 msgstr ""
15137
15138 #. type: textblock
15139 #: ../fish/guestfish-actions.pod:4312 ../src/guestfs-actions.pod:6707
15140 msgid "Remove the single directory C<path>."
15141 msgstr ""
15142
15143 #. type: =head2
15144 #: ../fish/guestfish-actions.pod:4314
15145 msgid "rmmountpoint"
15146 msgstr ""
15147
15148 #. type: verbatim
15149 #: ../fish/guestfish-actions.pod:4316
15150 #, no-wrap
15151 msgid ""
15152 " rmmountpoint exemptpath\n"
15153 "\n"
15154 msgstr ""
15155
15156 #. type: textblock
15157 #: ../fish/guestfish-actions.pod:4318
15158 msgid ""
15159 "This calls removes a mountpoint that was previously created with "
15160 "L</mkmountpoint>.  See L</mkmountpoint> for full details."
15161 msgstr ""
15162
15163 #. type: =head2
15164 #: ../fish/guestfish-actions.pod:4322
15165 msgid "scrub-device"
15166 msgstr ""
15167
15168 #. type: verbatim
15169 #: ../fish/guestfish-actions.pod:4324
15170 #, no-wrap
15171 msgid ""
15172 " scrub-device device\n"
15173 "\n"
15174 msgstr ""
15175
15176 #. type: textblock
15177 #: ../fish/guestfish-actions.pod:4326 ../src/guestfs-actions.pod:6733
15178 msgid ""
15179 "This command writes patterns over C<device> to make data retrieval more "
15180 "difficult."
15181 msgstr ""
15182
15183 #. type: textblock
15184 #: ../fish/guestfish-actions.pod:4329 ../fish/guestfish-actions.pod:4341 ../fish/guestfish-actions.pod:4354 ../src/guestfs-actions.pod:6736 ../src/guestfs-actions.pod:6754 ../src/guestfs-actions.pod:6773
15185 msgid ""
15186 "It is an interface to the L<scrub(1)> program.  See that manual page for "
15187 "more details."
15188 msgstr ""
15189
15190 #. type: =head2
15191 #: ../fish/guestfish-actions.pod:4332
15192 msgid "scrub-file"
15193 msgstr ""
15194
15195 #. type: verbatim
15196 #: ../fish/guestfish-actions.pod:4334
15197 #, no-wrap
15198 msgid ""
15199 " scrub-file file\n"
15200 "\n"
15201 msgstr ""
15202
15203 #. type: textblock
15204 #: ../fish/guestfish-actions.pod:4336 ../src/guestfs-actions.pod:6749
15205 msgid ""
15206 "This command writes patterns over a file to make data retrieval more "
15207 "difficult."
15208 msgstr ""
15209
15210 #. type: textblock
15211 #: ../fish/guestfish-actions.pod:4339 ../src/guestfs-actions.pod:6752
15212 msgid "The file is I<removed> after scrubbing."
15213 msgstr ""
15214
15215 #. type: =head2
15216 #: ../fish/guestfish-actions.pod:4344
15217 msgid "scrub-freespace"
15218 msgstr ""
15219
15220 #. type: verbatim
15221 #: ../fish/guestfish-actions.pod:4346
15222 #, no-wrap
15223 msgid ""
15224 " scrub-freespace dir\n"
15225 "\n"
15226 msgstr ""
15227
15228 #. type: textblock
15229 #: ../fish/guestfish-actions.pod:4348
15230 msgid ""
15231 "This command creates the directory C<dir> and then fills it with files until "
15232 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
15233 "deletes them.  The intention is to scrub any free space on the partition "
15234 "containing C<dir>."
15235 msgstr ""
15236
15237 #. type: =head2
15238 #: ../fish/guestfish-actions.pod:4357
15239 msgid "set-append"
15240 msgstr ""
15241
15242 #. type: =head2
15243 #: ../fish/guestfish-actions.pod:4359
15244 msgid "append"
15245 msgstr ""
15246
15247 #. type: verbatim
15248 #: ../fish/guestfish-actions.pod:4361
15249 #, no-wrap
15250 msgid ""
15251 " set-append append\n"
15252 "\n"
15253 msgstr ""
15254
15255 #. type: textblock
15256 #: ../fish/guestfish-actions.pod:4363 ../src/guestfs-actions.pod:6786
15257 msgid ""
15258 "This function is used to add additional options to the guest kernel command "
15259 "line."
15260 msgstr ""
15261
15262 #. type: textblock
15263 #: ../fish/guestfish-actions.pod:4366 ../src/guestfs-actions.pod:6789
15264 msgid ""
15265 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
15266 "environment variable."
15267 msgstr ""
15268
15269 #. type: textblock
15270 #: ../fish/guestfish-actions.pod:4369 ../src/guestfs-actions.pod:6792
15271 msgid ""
15272 "Setting C<append> to C<NULL> means I<no> additional options are passed "
15273 "(libguestfs always adds a few of its own)."
15274 msgstr ""
15275
15276 #. type: =head2
15277 #: ../fish/guestfish-actions.pod:4372
15278 msgid "set-attach-method"
15279 msgstr ""
15280
15281 #. type: =head2
15282 #: ../fish/guestfish-actions.pod:4374
15283 msgid "attach-method"
15284 msgstr ""
15285
15286 #. type: verbatim
15287 #: ../fish/guestfish-actions.pod:4376
15288 #, no-wrap
15289 msgid ""
15290 " set-attach-method attachmethod\n"
15291 "\n"
15292 msgstr ""
15293
15294 #. type: textblock
15295 #: ../fish/guestfish-actions.pod:4378 ../src/guestfs-actions.pod:6805
15296 msgid ""
15297 "Set the method that libguestfs uses to connect to the back end guestfsd "
15298 "daemon.  Possible methods are:"
15299 msgstr ""
15300
15301 #. type: =item
15302 #: ../fish/guestfish-actions.pod:4383 ../src/guestfs-actions.pod:6810 ../src/guestfs.pod:2916
15303 msgid "C<appliance>"
15304 msgstr ""
15305
15306 #. type: textblock
15307 #: ../fish/guestfish-actions.pod:4385 ../src/guestfs-actions.pod:6812
15308 msgid ""
15309 "Launch an appliance and connect to it.  This is the ordinary method and the "
15310 "default."
15311 msgstr ""
15312
15313 #. type: =item
15314 #: ../fish/guestfish-actions.pod:4388 ../src/guestfs-actions.pod:6815
15315 msgid "C<unix:I<path>>"
15316 msgstr ""
15317
15318 #. type: textblock
15319 #: ../fish/guestfish-actions.pod:4390 ../src/guestfs-actions.pod:6817
15320 msgid "Connect to the Unix domain socket I<path>."
15321 msgstr ""
15322
15323 #. type: textblock
15324 #: ../fish/guestfish-actions.pod:4392 ../src/guestfs-actions.pod:6819
15325 msgid ""
15326 "This method lets you connect to an existing daemon or (using virtio-serial) "
15327 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
15328 "RUNNING DAEMONS>."
15329 msgstr ""
15330
15331 #. type: =head2
15332 #: ../fish/guestfish-actions.pod:4398
15333 msgid "set-autosync"
15334 msgstr ""
15335
15336 #. type: =head2
15337 #: ../fish/guestfish-actions.pod:4400
15338 msgid "autosync"
15339 msgstr ""
15340
15341 #. type: verbatim
15342 #: ../fish/guestfish-actions.pod:4402
15343 #, no-wrap
15344 msgid ""
15345 " set-autosync true|false\n"
15346 "\n"
15347 msgstr ""
15348
15349 #. type: textblock
15350 #: ../fish/guestfish-actions.pod:4404 ../src/guestfs-actions.pod:6835
15351 msgid ""
15352 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
15353 "effort attempt to make filesystems consistent and synchronized when the "
15354 "handle is closed (also if the program exits without closing handles)."
15355 msgstr ""
15356
15357 #. type: textblock
15358 #: ../fish/guestfish-actions.pod:4409 ../src/guestfs-actions.pod:6840
15359 msgid ""
15360 "This is enabled by default (since libguestfs 1.5.24, previously it was "
15361 "disabled by default)."
15362 msgstr ""
15363
15364 #. type: =head2
15365 #: ../fish/guestfish-actions.pod:4412
15366 msgid "set-direct"
15367 msgstr ""
15368
15369 #. type: =head2
15370 #: ../fish/guestfish-actions.pod:4414
15371 msgid "direct"
15372 msgstr ""
15373
15374 #. type: verbatim
15375 #: ../fish/guestfish-actions.pod:4416
15376 #, no-wrap
15377 msgid ""
15378 " set-direct true|false\n"
15379 "\n"
15380 msgstr ""
15381
15382 #. type: textblock
15383 #: ../fish/guestfish-actions.pod:4418 ../src/guestfs-actions.pod:6853
15384 msgid ""
15385 "If the direct appliance mode flag is enabled, then stdin and stdout are "
15386 "passed directly through to the appliance once it is launched."
15387 msgstr ""
15388
15389 #. type: textblock
15390 #: ../fish/guestfish-actions.pod:4422
15391 msgid ""
15392 "One consequence of this is that log messages aren't caught by the library "
15393 "and handled by L</set-log-message-callback>, but go straight to stdout."
15394 msgstr ""
15395
15396 #. type: textblock
15397 #: ../fish/guestfish-actions.pod:4426 ../src/guestfs-actions.pod:6861
15398 msgid "You probably don't want to use this unless you know what you are doing."
15399 msgstr ""
15400
15401 #. type: textblock
15402 #: ../fish/guestfish-actions.pod:4429 ../src/guestfs-actions.pod:6864
15403 msgid "The default is disabled."
15404 msgstr ""
15405
15406 #. type: =head2
15407 #: ../fish/guestfish-actions.pod:4431
15408 msgid "set-e2label"
15409 msgstr ""
15410
15411 #. type: verbatim
15412 #: ../fish/guestfish-actions.pod:4433
15413 #, no-wrap
15414 msgid ""
15415 " set-e2label device label\n"
15416 "\n"
15417 msgstr ""
15418
15419 #. type: textblock
15420 #: ../fish/guestfish-actions.pod:4435 ../src/guestfs-actions.pod:6877
15421 msgid ""
15422 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
15423 "C<label>.  Filesystem labels are limited to 16 characters."
15424 msgstr ""
15425
15426 #. type: textblock
15427 #: ../fish/guestfish-actions.pod:4439
15428 msgid ""
15429 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
15430 "label on a filesystem."
15431 msgstr ""
15432
15433 #. type: =head2
15434 #: ../fish/guestfish-actions.pod:4442
15435 msgid "set-e2uuid"
15436 msgstr ""
15437
15438 #. type: verbatim
15439 #: ../fish/guestfish-actions.pod:4444
15440 #, no-wrap
15441 msgid ""
15442 " set-e2uuid device uuid\n"
15443 "\n"
15444 msgstr ""
15445
15446 #. type: textblock
15447 #: ../fish/guestfish-actions.pod:4446 ../src/guestfs-actions.pod:6895
15448 msgid ""
15449 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
15450 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
15451 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
15452 msgstr ""
15453
15454 #. type: textblock
15455 #: ../fish/guestfish-actions.pod:4451
15456 msgid ""
15457 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
15458 "UUID of a filesystem."
15459 msgstr ""
15460
15461 #. type: =head2
15462 #: ../fish/guestfish-actions.pod:4454
15463 msgid "set-memsize"
15464 msgstr ""
15465
15466 #. type: =head2
15467 #: ../fish/guestfish-actions.pod:4456
15468 msgid "memsize"
15469 msgstr ""
15470
15471 #. type: verbatim
15472 #: ../fish/guestfish-actions.pod:4458
15473 #, no-wrap
15474 msgid ""
15475 " set-memsize memsize\n"
15476 "\n"
15477 msgstr ""
15478
15479 #. type: textblock
15480 #: ../fish/guestfish-actions.pod:4460
15481 msgid ""
15482 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
15483 "This only has any effect if called before L</launch>."
15484 msgstr ""
15485
15486 #. type: textblock
15487 #: ../fish/guestfish-actions.pod:4464 ../src/guestfs-actions.pod:6917
15488 msgid ""
15489 "You can also change this by setting the environment variable "
15490 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
15491 msgstr ""
15492
15493 #. type: =head2
15494 #: ../fish/guestfish-actions.pod:4471
15495 msgid "set-network"
15496 msgstr ""
15497
15498 #. type: =head2
15499 #: ../fish/guestfish-actions.pod:4473
15500 msgid "network"
15501 msgstr ""
15502
15503 #. type: verbatim
15504 #: ../fish/guestfish-actions.pod:4475
15505 #, no-wrap
15506 msgid ""
15507 " set-network true|false\n"
15508 "\n"
15509 msgstr ""
15510
15511 #. type: textblock
15512 #: ../fish/guestfish-actions.pod:4477 ../src/guestfs-actions.pod:6934
15513 msgid ""
15514 "If C<network> is true, then the network is enabled in the libguestfs "
15515 "appliance.  The default is false."
15516 msgstr ""
15517
15518 #. type: textblock
15519 #: ../fish/guestfish-actions.pod:4480 ../src/guestfs-actions.pod:6937
15520 msgid ""
15521 "This affects whether commands are able to access the network (see "
15522 "L<guestfs(3)/RUNNING COMMANDS>)."
15523 msgstr ""
15524
15525 #. type: textblock
15526 #: ../fish/guestfish-actions.pod:4483
15527 msgid "You must call this before calling L</launch>, otherwise it has no effect."
15528 msgstr ""
15529
15530 #. type: =head2
15531 #: ../fish/guestfish-actions.pod:4486
15532 msgid "set-path"
15533 msgstr ""
15534
15535 #. type: verbatim
15536 #: ../fish/guestfish-actions.pod:4490
15537 #, no-wrap
15538 msgid ""
15539 " set-path searchpath\n"
15540 "\n"
15541 msgstr ""
15542
15543 #. type: textblock
15544 #: ../fish/guestfish-actions.pod:4492 ../src/guestfs-actions.pod:6953
15545 msgid "Set the path that libguestfs searches for kernel and initrd.img."
15546 msgstr ""
15547
15548 #. type: textblock
15549 #: ../fish/guestfish-actions.pod:4494 ../src/guestfs-actions.pod:6955
15550 msgid ""
15551 "The default is C<$libdir/guestfs> unless overridden by setting "
15552 "C<LIBGUESTFS_PATH> environment variable."
15553 msgstr ""
15554
15555 #. type: textblock
15556 #: ../fish/guestfish-actions.pod:4497 ../src/guestfs-actions.pod:6958
15557 msgid "Setting C<path> to C<NULL> restores the default path."
15558 msgstr ""
15559
15560 #. type: =head2
15561 #: ../fish/guestfish-actions.pod:4499
15562 msgid "set-pgroup"
15563 msgstr ""
15564
15565 #. type: =head2
15566 #: ../fish/guestfish-actions.pod:4501
15567 msgid "pgroup"
15568 msgstr ""
15569
15570 #. type: verbatim
15571 #: ../fish/guestfish-actions.pod:4503
15572 #, no-wrap
15573 msgid ""
15574 " set-pgroup true|false\n"
15575 "\n"
15576 msgstr ""
15577
15578 #. type: textblock
15579 #: ../fish/guestfish-actions.pod:4505 ../src/guestfs-actions.pod:6970
15580 msgid ""
15581 "If C<pgroup> is true, child processes are placed into their own process "
15582 "group."
15583 msgstr ""
15584
15585 #. type: textblock
15586 #: ../fish/guestfish-actions.pod:4508 ../src/guestfs-actions.pod:6973
15587 msgid ""
15588 "The practical upshot of this is that signals like C<SIGINT> (from users "
15589 "pressing C<^C>) won't be received by the child process."
15590 msgstr ""
15591
15592 #. type: textblock
15593 #: ../fish/guestfish-actions.pod:4511 ../src/guestfs-actions.pod:6976
15594 msgid ""
15595 "The default for this flag is false, because usually you want C<^C> to kill "
15596 "the subprocess."
15597 msgstr ""
15598
15599 #. type: =head2
15600 #: ../fish/guestfish-actions.pod:4514
15601 msgid "set-qemu"
15602 msgstr ""
15603
15604 #. type: =head2
15605 #: ../fish/guestfish-actions.pod:4516
15606 msgid "qemu"
15607 msgstr ""
15608
15609 #. type: verbatim
15610 #: ../fish/guestfish-actions.pod:4518
15611 #, no-wrap
15612 msgid ""
15613 " set-qemu qemu\n"
15614 "\n"
15615 msgstr ""
15616
15617 #. type: textblock
15618 #: ../fish/guestfish-actions.pod:4520 ../src/guestfs-actions.pod:6989
15619 msgid "Set the qemu binary that we will use."
15620 msgstr ""
15621
15622 #. type: textblock
15623 #: ../fish/guestfish-actions.pod:4522 ../src/guestfs-actions.pod:6991
15624 msgid "The default is chosen when the library was compiled by the configure script."
15625 msgstr ""
15626
15627 #. type: textblock
15628 #: ../fish/guestfish-actions.pod:4525 ../src/guestfs-actions.pod:6994
15629 msgid ""
15630 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
15631 "variable."
15632 msgstr ""
15633
15634 #. type: textblock
15635 #: ../fish/guestfish-actions.pod:4528 ../src/guestfs-actions.pod:6997
15636 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
15637 msgstr ""
15638
15639 #. type: textblock
15640 #: ../fish/guestfish-actions.pod:4530 ../src/guestfs-actions.pod:6999
15641 msgid ""
15642 "Note that you should call this function as early as possible after creating "
15643 "the handle.  This is because some pre-launch operations depend on testing "
15644 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
15645 "don't retest features, and so you might see inconsistent results.  Using the "
15646 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
15647 "the qemu binary at the same time as the handle is created."
15648 msgstr ""
15649
15650 #. type: =head2
15651 #: ../fish/guestfish-actions.pod:4538
15652 msgid "set-recovery-proc"
15653 msgstr ""
15654
15655 #. type: =head2
15656 #: ../fish/guestfish-actions.pod:4540
15657 msgid "recovery-proc"
15658 msgstr ""
15659
15660 #. type: verbatim
15661 #: ../fish/guestfish-actions.pod:4542
15662 #, no-wrap
15663 msgid ""
15664 " set-recovery-proc true|false\n"
15665 "\n"
15666 msgstr ""
15667
15668 #. type: textblock
15669 #: ../fish/guestfish-actions.pod:4544
15670 msgid ""
15671 "If this is called with the parameter C<false> then L</launch> does not "
15672 "create a recovery process.  The purpose of the recovery process is to stop "
15673 "runaway qemu processes in the case where the main program aborts abruptly."
15674 msgstr ""
15675
15676 #. type: textblock
15677 #: ../fish/guestfish-actions.pod:4549
15678 msgid ""
15679 "This only has any effect if called before L</launch>, and the default is "
15680 "true."
15681 msgstr ""
15682
15683 #. type: textblock
15684 #: ../fish/guestfish-actions.pod:4552 ../src/guestfs-actions.pod:7025
15685 msgid ""
15686 "About the only time when you would want to disable this is if the main "
15687 "process will fork itself into the background (\"daemonize\" itself).  In "
15688 "this case the recovery process thinks that the main program has disappeared "
15689 "and so kills qemu, which is not very helpful."
15690 msgstr ""
15691
15692 #. type: =head2
15693 #: ../fish/guestfish-actions.pod:4558
15694 msgid "set-selinux"
15695 msgstr ""
15696
15697 #. type: =head2
15698 #: ../fish/guestfish-actions.pod:4560
15699 msgid "selinux"
15700 msgstr ""
15701
15702 #. type: verbatim
15703 #: ../fish/guestfish-actions.pod:4562
15704 #, no-wrap
15705 msgid ""
15706 " set-selinux true|false\n"
15707 "\n"
15708 msgstr ""
15709
15710 #. type: textblock
15711 #: ../fish/guestfish-actions.pod:4564 ../src/guestfs-actions.pod:7041
15712 msgid ""
15713 "This sets the selinux flag that is passed to the appliance at boot time.  "
15714 "The default is C<selinux=0> (disabled)."
15715 msgstr ""
15716
15717 #. type: textblock
15718 #: ../fish/guestfish-actions.pod:4567 ../src/guestfs-actions.pod:7044
15719 msgid ""
15720 "Note that if SELinux is enabled, it is always in Permissive mode "
15721 "(C<enforcing=0>)."
15722 msgstr ""
15723
15724 #. type: =head2
15725 #: ../fish/guestfish-actions.pod:4573
15726 msgid "set-smp"
15727 msgstr ""
15728
15729 #. type: =head2
15730 #: ../fish/guestfish-actions.pod:4575
15731 msgid "smp"
15732 msgstr ""
15733
15734 #. type: verbatim
15735 #: ../fish/guestfish-actions.pod:4577
15736 #, no-wrap
15737 msgid ""
15738 " set-smp smp\n"
15739 "\n"
15740 msgstr ""
15741
15742 #. type: textblock
15743 #: ../fish/guestfish-actions.pod:4579 ../src/guestfs-actions.pod:7060
15744 msgid ""
15745 "Change the number of virtual CPUs assigned to the appliance.  The default is "
15746 "C<1>.  Increasing this may improve performance, though often it has no "
15747 "effect."
15748 msgstr ""
15749
15750 #. type: textblock
15751 #: ../fish/guestfish-actions.pod:4583
15752 msgid "This function must be called before L</launch>."
15753 msgstr ""
15754
15755 #. type: =head2
15756 #: ../fish/guestfish-actions.pod:4585
15757 msgid "set-trace"
15758 msgstr ""
15759
15760 #. type: =head2
15761 #: ../fish/guestfish-actions.pod:4587
15762 msgid "trace"
15763 msgstr ""
15764
15765 #. type: verbatim
15766 #: ../fish/guestfish-actions.pod:4589
15767 #, no-wrap
15768 msgid ""
15769 " set-trace true|false\n"
15770 "\n"
15771 msgstr ""
15772
15773 #. type: textblock
15774 #: ../fish/guestfish-actions.pod:4591 ../src/guestfs-actions.pod:7076
15775 msgid ""
15776 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
15777 "return values are traced."
15778 msgstr ""
15779
15780 #. type: textblock
15781 #: ../fish/guestfish-actions.pod:4594 ../src/guestfs-actions.pod:7079
15782 msgid ""
15783 "If you want to trace C API calls into libguestfs (and other libraries) then "
15784 "possibly a better way is to use the external ltrace(1) command."
15785 msgstr ""
15786
15787 #. type: textblock
15788 #: ../fish/guestfish-actions.pod:4598 ../src/guestfs-actions.pod:7083
15789 msgid ""
15790 "Command traces are disabled unless the environment variable "
15791 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
15792 msgstr ""
15793
15794 #. type: textblock
15795 #: ../fish/guestfish-actions.pod:4601
15796 msgid ""
15797 "Trace messages are normally sent to C<stderr>, unless you register a "
15798 "callback to send them somewhere else (see L</set-event-callback>)."
15799 msgstr ""
15800
15801 #. type: =head2
15802 #: ../fish/guestfish-actions.pod:4605
15803 msgid "set-verbose"
15804 msgstr ""
15805
15806 #. type: =head2
15807 #: ../fish/guestfish-actions.pod:4607
15808 msgid "verbose"
15809 msgstr ""
15810
15811 #. type: verbatim
15812 #: ../fish/guestfish-actions.pod:4609
15813 #, no-wrap
15814 msgid ""
15815 " set-verbose true|false\n"
15816 "\n"
15817 msgstr ""
15818
15819 #. type: textblock
15820 #: ../fish/guestfish-actions.pod:4611 ../src/guestfs-actions.pod:7100
15821 msgid "If C<verbose> is true, this turns on verbose messages."
15822 msgstr ""
15823
15824 #. type: textblock
15825 #: ../fish/guestfish-actions.pod:4613 ../src/guestfs-actions.pod:7102
15826 msgid ""
15827 "Verbose messages are disabled unless the environment variable "
15828 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
15829 msgstr ""
15830
15831 #. type: textblock
15832 #: ../fish/guestfish-actions.pod:4616
15833 msgid ""
15834 "Verbose messages are normally sent to C<stderr>, unless you register a "
15835 "callback to send them somewhere else (see L</set-event-callback>)."
15836 msgstr ""
15837
15838 #. type: =head2
15839 #: ../fish/guestfish-actions.pod:4620
15840 msgid "setcon"
15841 msgstr ""
15842
15843 #. type: verbatim
15844 #: ../fish/guestfish-actions.pod:4622
15845 #, no-wrap
15846 msgid ""
15847 " setcon context\n"
15848 "\n"
15849 msgstr ""
15850
15851 #. type: textblock
15852 #: ../fish/guestfish-actions.pod:4624 ../src/guestfs-actions.pod:7119
15853 msgid ""
15854 "This sets the SELinux security context of the daemon to the string "
15855 "C<context>."
15856 msgstr ""
15857
15858 #. type: textblock
15859 #: ../fish/guestfish-actions.pod:4627 ../src/guestfs-actions.pod:7122
15860 msgid "See the documentation about SELINUX in L<guestfs(3)>."
15861 msgstr ""
15862
15863 #. type: =head2
15864 #: ../fish/guestfish-actions.pod:4629
15865 msgid "setxattr"
15866 msgstr ""
15867
15868 #. type: verbatim
15869 #: ../fish/guestfish-actions.pod:4631
15870 #, no-wrap
15871 msgid ""
15872 " setxattr xattr val vallen path\n"
15873 "\n"
15874 msgstr ""
15875
15876 #. type: textblock
15877 #: ../fish/guestfish-actions.pod:4633 ../src/guestfs-actions.pod:7137
15878 msgid ""
15879 "This call sets the extended attribute named C<xattr> of the file C<path> to "
15880 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
15881 msgstr ""
15882
15883 #. type: textblock
15884 #: ../fish/guestfish-actions.pod:4637
15885 msgid "See also: L</lsetxattr>, L<attr(5)>."
15886 msgstr ""
15887
15888 #. type: =head2
15889 #: ../fish/guestfish-actions.pod:4639
15890 msgid "sfdisk"
15891 msgstr ""
15892
15893 #. type: verbatim
15894 #: ../fish/guestfish-actions.pod:4641
15895 #, no-wrap
15896 msgid ""
15897 " sfdisk device cyls heads sectors 'lines ...'\n"
15898 "\n"
15899 msgstr ""
15900
15901 #. type: textblock
15902 #: ../fish/guestfish-actions.pod:4643 ../src/guestfs-actions.pod:7164
15903 msgid ""
15904 "This is a direct interface to the L<sfdisk(8)> program for creating "
15905 "partitions on block devices."
15906 msgstr ""
15907
15908 #. type: textblock
15909 #: ../fish/guestfish-actions.pod:4646 ../src/guestfs-actions.pod:7167
15910 msgid "C<device> should be a block device, for example C</dev/sda>."
15911 msgstr ""
15912
15913 #. type: textblock
15914 #: ../fish/guestfish-actions.pod:4648 ../src/guestfs-actions.pod:7169
15915 msgid ""
15916 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
15917 "sectors on the device, which are passed directly to sfdisk as the I<-C>, "
15918 "I<-H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
15919 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
15920 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
15921 "the kernel) cannot work out the right geometry and you will need to tell it."
15922 msgstr ""
15923
15924 #. type: textblock
15925 #: ../fish/guestfish-actions.pod:4656 ../src/guestfs-actions.pod:7177
15926 msgid ""
15927 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
15928 "refer to the L<sfdisk(8)> manpage."
15929 msgstr ""
15930
15931 #. type: textblock
15932 #: ../fish/guestfish-actions.pod:4659 ../src/guestfs-actions.pod:7180
15933 msgid ""
15934 "To create a single partition occupying the whole disk, you would pass "
15935 "C<lines> as a single element list, when the single element being the string "
15936 "C<,> (comma)."
15937 msgstr ""
15938
15939 #. type: textblock
15940 #: ../fish/guestfish-actions.pod:4663
15941 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
15942 msgstr ""
15943
15944 #. type: textblock
15945 #: ../fish/guestfish-actions.pod:4666 ../fish/guestfish-actions.pod:4686 ../fish/guestfish-actions.pod:4705
15946 msgid ""
15947 "I<This function is deprecated.> In new code, use the L</part_add> call "
15948 "instead."
15949 msgstr ""
15950
15951 #. type: =head2
15952 #: ../fish/guestfish-actions.pod:4673
15953 msgid "sfdiskM"
15954 msgstr ""
15955
15956 #. type: verbatim
15957 #: ../fish/guestfish-actions.pod:4675
15958 #, no-wrap
15959 msgid ""
15960 " sfdiskM device 'lines ...'\n"
15961 "\n"
15962 msgstr ""
15963
15964 #. type: textblock
15965 #: ../fish/guestfish-actions.pod:4677
15966 msgid ""
15967 "This is a simplified interface to the L</sfdisk> command, where partition "
15968 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
15969 "you don't need to specify the cyls, heads and sectors parameters which were "
15970 "rarely if ever used anyway."
15971 msgstr ""
15972
15973 #. type: textblock
15974 #: ../fish/guestfish-actions.pod:4683
15975 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
15976 msgstr ""
15977
15978 #. type: =head2
15979 #: ../fish/guestfish-actions.pod:4693
15980 msgid "sfdisk-N"
15981 msgstr ""
15982
15983 #. type: verbatim
15984 #: ../fish/guestfish-actions.pod:4695
15985 #, no-wrap
15986 msgid ""
15987 " sfdisk-N device partnum cyls heads sectors line\n"
15988 "\n"
15989 msgstr ""
15990
15991 #. type: textblock
15992 #: ../fish/guestfish-actions.pod:4697 ../src/guestfs-actions.pod:7236
15993 msgid ""
15994 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
15995 "(note: C<n> counts from 1)."
15996 msgstr ""
15997
15998 #. type: textblock
15999 #: ../fish/guestfish-actions.pod:4700
16000 msgid ""
16001 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
16002 "cyls/heads/sectors parameters."
16003 msgstr ""
16004
16005 #. type: textblock
16006 #: ../fish/guestfish-actions.pod:4703
16007 msgid "See also: L</part-add>"
16008 msgstr ""
16009
16010 #. type: =head2
16011 #: ../fish/guestfish-actions.pod:4712
16012 msgid "sfdisk-disk-geometry"
16013 msgstr ""
16014
16015 #. type: verbatim
16016 #: ../fish/guestfish-actions.pod:4714
16017 #, no-wrap
16018 msgid ""
16019 " sfdisk-disk-geometry device\n"
16020 "\n"
16021 msgstr ""
16022
16023 #. type: textblock
16024 #: ../fish/guestfish-actions.pod:4716
16025 msgid ""
16026 "This displays the disk geometry of C<device> read from the partition table.  "
16027 "Especially in the case where the underlying block device has been resized, "
16028 "this can be different from the kernel's idea of the geometry (see "
16029 "L</sfdisk-kernel-geometry>)."
16030 msgstr ""
16031
16032 #. type: textblock
16033 #: ../fish/guestfish-actions.pod:4721 ../fish/guestfish-actions.pod:4730 ../src/guestfs-actions.pod:7259 ../src/guestfs-actions.pod:7275
16034 msgid "The result is in human-readable format, and not designed to be parsed."
16035 msgstr ""
16036
16037 #. type: =head2
16038 #: ../fish/guestfish-actions.pod:4724
16039 msgid "sfdisk-kernel-geometry"
16040 msgstr ""
16041
16042 #. type: verbatim
16043 #: ../fish/guestfish-actions.pod:4726
16044 #, no-wrap
16045 msgid ""
16046 " sfdisk-kernel-geometry device\n"
16047 "\n"
16048 msgstr ""
16049
16050 #. type: textblock
16051 #: ../fish/guestfish-actions.pod:4728 ../src/guestfs-actions.pod:7273
16052 msgid "This displays the kernel's idea of the geometry of C<device>."
16053 msgstr ""
16054
16055 #. type: =head2
16056 #: ../fish/guestfish-actions.pod:4733
16057 msgid "sfdisk-l"
16058 msgstr ""
16059
16060 #. type: verbatim
16061 #: ../fish/guestfish-actions.pod:4735
16062 #, no-wrap
16063 msgid ""
16064 " sfdisk-l device\n"
16065 "\n"
16066 msgstr ""
16067
16068 #. type: textblock
16069 #: ../fish/guestfish-actions.pod:4737 ../src/guestfs-actions.pod:7296
16070 msgid ""
16071 "This displays the partition table on C<device>, in the human-readable output "
16072 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
16073 msgstr ""
16074
16075 #. type: textblock
16076 #: ../fish/guestfish-actions.pod:4741
16077 msgid "See also: L</part-list>"
16078 msgstr ""
16079
16080 #. type: textblock
16081 #: ../fish/guestfish-actions.pod:4743
16082 msgid ""
16083 "I<This function is deprecated.> In new code, use the L</part_list> call "
16084 "instead."
16085 msgstr ""
16086
16087 #. type: =head2
16088 #: ../fish/guestfish-actions.pod:4750
16089 msgid "sh"
16090 msgstr ""
16091
16092 #. type: verbatim
16093 #: ../fish/guestfish-actions.pod:4752
16094 #, no-wrap
16095 msgid ""
16096 " sh command\n"
16097 "\n"
16098 msgstr ""
16099
16100 #. type: textblock
16101 #: ../fish/guestfish-actions.pod:4754 ../src/guestfs-actions.pod:7313
16102 msgid ""
16103 "This call runs a command from the guest filesystem via the guest's "
16104 "C</bin/sh>."
16105 msgstr ""
16106
16107 #. type: textblock
16108 #: ../fish/guestfish-actions.pod:4757
16109 msgid "This is like L</command>, but passes the command to:"
16110 msgstr ""
16111
16112 #. type: verbatim
16113 #: ../fish/guestfish-actions.pod:4759 ../src/guestfs-actions.pod:7318
16114 #, no-wrap
16115 msgid ""
16116 " /bin/sh -c \"command\"\n"
16117 "\n"
16118 msgstr ""
16119
16120 #. type: textblock
16121 #: ../fish/guestfish-actions.pod:4761 ../src/guestfs-actions.pod:7320
16122 msgid ""
16123 "Depending on the guest's shell, this usually results in wildcards being "
16124 "expanded, shell expressions being interpolated and so on."
16125 msgstr ""
16126
16127 #. type: textblock
16128 #: ../fish/guestfish-actions.pod:4765
16129 msgid "All the provisos about L</command> apply to this call."
16130 msgstr ""
16131
16132 #. type: =head2
16133 #: ../fish/guestfish-actions.pod:4767
16134 msgid "sh-lines"
16135 msgstr ""
16136
16137 #. type: verbatim
16138 #: ../fish/guestfish-actions.pod:4769
16139 #, no-wrap
16140 msgid ""
16141 " sh-lines command\n"
16142 "\n"
16143 msgstr ""
16144
16145 #. type: textblock
16146 #: ../fish/guestfish-actions.pod:4771
16147 msgid "This is the same as L</sh>, but splits the result into a list of lines."
16148 msgstr ""
16149
16150 #. type: textblock
16151 #: ../fish/guestfish-actions.pod:4774
16152 msgid "See also: L</command-lines>"
16153 msgstr ""
16154
16155 #. type: =head2
16156 #: ../fish/guestfish-actions.pod:4776
16157 msgid "sleep"
16158 msgstr ""
16159
16160 #. type: verbatim
16161 #: ../fish/guestfish-actions.pod:4778
16162 #, no-wrap
16163 msgid ""
16164 " sleep secs\n"
16165 "\n"
16166 msgstr ""
16167
16168 #. type: textblock
16169 #: ../fish/guestfish-actions.pod:4780 ../src/guestfs-actions.pod:7354
16170 msgid "Sleep for C<secs> seconds."
16171 msgstr ""
16172
16173 #. type: =head2
16174 #: ../fish/guestfish-actions.pod:4782
16175 msgid "stat"
16176 msgstr ""
16177
16178 #. type: verbatim
16179 #: ../fish/guestfish-actions.pod:4784
16180 #, no-wrap
16181 msgid ""
16182 " stat path\n"
16183 "\n"
16184 msgstr ""
16185
16186 #. type: textblock
16187 #: ../fish/guestfish-actions.pod:4788 ../src/guestfs-actions.pod:7368
16188 msgid "This is the same as the C<stat(2)> system call."
16189 msgstr ""
16190
16191 #. type: =head2
16192 #: ../fish/guestfish-actions.pod:4790
16193 msgid "statvfs"
16194 msgstr ""
16195
16196 #. type: verbatim
16197 #: ../fish/guestfish-actions.pod:4792
16198 #, no-wrap
16199 msgid ""
16200 " statvfs path\n"
16201 "\n"
16202 msgstr ""
16203
16204 #. type: textblock
16205 #: ../fish/guestfish-actions.pod:4794 ../src/guestfs-actions.pod:7382
16206 msgid ""
16207 "Returns file system statistics for any mounted file system.  C<path> should "
16208 "be a file or directory in the mounted file system (typically it is the mount "
16209 "point itself, but it doesn't need to be)."
16210 msgstr ""
16211
16212 #. type: textblock
16213 #: ../fish/guestfish-actions.pod:4798 ../src/guestfs-actions.pod:7386
16214 msgid "This is the same as the C<statvfs(2)> system call."
16215 msgstr ""
16216
16217 #. type: =head2
16218 #: ../fish/guestfish-actions.pod:4800
16219 msgid "strings"
16220 msgstr ""
16221
16222 #. type: verbatim
16223 #: ../fish/guestfish-actions.pod:4802
16224 #, no-wrap
16225 msgid ""
16226 " strings path\n"
16227 "\n"
16228 msgstr ""
16229
16230 #. type: textblock
16231 #: ../fish/guestfish-actions.pod:4804 ../src/guestfs-actions.pod:7400
16232 msgid ""
16233 "This runs the L<strings(1)> command on a file and returns the list of "
16234 "printable strings found."
16235 msgstr ""
16236
16237 #. type: =head2
16238 #: ../fish/guestfish-actions.pod:4810
16239 msgid "strings-e"
16240 msgstr ""
16241
16242 #. type: verbatim
16243 #: ../fish/guestfish-actions.pod:4812
16244 #, no-wrap
16245 msgid ""
16246 " strings-e encoding path\n"
16247 "\n"
16248 msgstr ""
16249
16250 #. type: textblock
16251 #: ../fish/guestfish-actions.pod:4814
16252 msgid ""
16253 "This is like the L</strings> command, but allows you to specify the encoding "
16254 "of strings that are looked for in the source file C<path>."
16255 msgstr ""
16256
16257 #. type: textblock
16258 #: ../fish/guestfish-actions.pod:4818 ../src/guestfs-actions.pod:7423
16259 msgid "Allowed encodings are:"
16260 msgstr ""
16261
16262 #. type: =item
16263 #: ../fish/guestfish-actions.pod:4822 ../src/guestfs-actions.pod:7427
16264 msgid "s"
16265 msgstr ""
16266
16267 #. type: textblock
16268 #: ../fish/guestfish-actions.pod:4824
16269 msgid ""
16270 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
16271 "ISO-8859-X (this is what L</strings> uses)."
16272 msgstr ""
16273
16274 #. type: =item
16275 #: ../fish/guestfish-actions.pod:4827 ../src/guestfs-actions.pod:7432
16276 msgid "S"
16277 msgstr ""
16278
16279 #. type: textblock
16280 #: ../fish/guestfish-actions.pod:4829 ../src/guestfs-actions.pod:7434
16281 msgid "Single 8-bit-byte characters."
16282 msgstr ""
16283
16284 #. type: =item
16285 #: ../fish/guestfish-actions.pod:4831 ../src/guestfs-actions.pod:7436
16286 msgid "b"
16287 msgstr ""
16288
16289 #. type: textblock
16290 #: ../fish/guestfish-actions.pod:4833 ../src/guestfs-actions.pod:7438
16291 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
16292 msgstr ""
16293
16294 #. type: =item
16295 #: ../fish/guestfish-actions.pod:4836 ../src/guestfs-actions.pod:7441
16296 msgid "l (lower case letter L)"
16297 msgstr ""
16298
16299 #. type: textblock
16300 #: ../fish/guestfish-actions.pod:4838 ../src/guestfs-actions.pod:7443
16301 msgid ""
16302 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
16303 "examining binaries in Windows guests."
16304 msgstr ""
16305
16306 #. type: =item
16307 #: ../fish/guestfish-actions.pod:4841 ../src/guestfs-actions.pod:7446
16308 msgid "B"
16309 msgstr ""
16310
16311 #. type: textblock
16312 #: ../fish/guestfish-actions.pod:4843 ../src/guestfs-actions.pod:7448
16313 msgid "32-bit big endian such as UCS-4BE."
16314 msgstr ""
16315
16316 #. type: =item
16317 #: ../fish/guestfish-actions.pod:4845 ../src/guestfs-actions.pod:7450
16318 msgid "L"
16319 msgstr ""
16320
16321 #. type: textblock
16322 #: ../fish/guestfish-actions.pod:4847 ../src/guestfs-actions.pod:7452
16323 msgid "32-bit little endian such as UCS-4LE."
16324 msgstr ""
16325
16326 #. type: textblock
16327 #: ../fish/guestfish-actions.pod:4851 ../src/guestfs-actions.pod:7456
16328 msgid "The returned strings are transcoded to UTF-8."
16329 msgstr ""
16330
16331 #. type: =head2
16332 #: ../fish/guestfish-actions.pod:4856
16333 msgid "swapoff-device"
16334 msgstr ""
16335
16336 #. type: verbatim
16337 #: ../fish/guestfish-actions.pod:4858
16338 #, no-wrap
16339 msgid ""
16340 " swapoff-device device\n"
16341 "\n"
16342 msgstr ""
16343
16344 #. type: textblock
16345 #: ../fish/guestfish-actions.pod:4860
16346 msgid ""
16347 "This command disables the libguestfs appliance swap device or partition "
16348 "named C<device>.  See L</swapon-device>."
16349 msgstr ""
16350
16351 #. type: =head2
16352 #: ../fish/guestfish-actions.pod:4864
16353 msgid "swapoff-file"
16354 msgstr ""
16355
16356 #. type: verbatim
16357 #: ../fish/guestfish-actions.pod:4866
16358 #, no-wrap
16359 msgid ""
16360 " swapoff-file file\n"
16361 "\n"
16362 msgstr ""
16363
16364 #. type: textblock
16365 #: ../fish/guestfish-actions.pod:4868 ../src/guestfs-actions.pod:7487
16366 msgid "This command disables the libguestfs appliance swap on file."
16367 msgstr ""
16368
16369 #. type: =head2
16370 #: ../fish/guestfish-actions.pod:4870
16371 msgid "swapoff-label"
16372 msgstr ""
16373
16374 #. type: verbatim
16375 #: ../fish/guestfish-actions.pod:4872
16376 #, no-wrap
16377 msgid ""
16378 " swapoff-label label\n"
16379 "\n"
16380 msgstr ""
16381
16382 #. type: textblock
16383 #: ../fish/guestfish-actions.pod:4874 ../src/guestfs-actions.pod:7499
16384 msgid ""
16385 "This command disables the libguestfs appliance swap on labeled swap "
16386 "partition."
16387 msgstr ""
16388
16389 #. type: =head2
16390 #: ../fish/guestfish-actions.pod:4877
16391 msgid "swapoff-uuid"
16392 msgstr ""
16393
16394 #. type: verbatim
16395 #: ../fish/guestfish-actions.pod:4879
16396 #, no-wrap
16397 msgid ""
16398 " swapoff-uuid uuid\n"
16399 "\n"
16400 msgstr ""
16401
16402 #. type: textblock
16403 #: ../fish/guestfish-actions.pod:4881 ../src/guestfs-actions.pod:7512
16404 msgid ""
16405 "This command disables the libguestfs appliance swap partition with the given "
16406 "UUID."
16407 msgstr ""
16408
16409 #. type: =head2
16410 #: ../fish/guestfish-actions.pod:4884
16411 msgid "swapon-device"
16412 msgstr ""
16413
16414 #. type: verbatim
16415 #: ../fish/guestfish-actions.pod:4886
16416 #, no-wrap
16417 msgid ""
16418 " swapon-device device\n"
16419 "\n"
16420 msgstr ""
16421
16422 #. type: textblock
16423 #: ../fish/guestfish-actions.pod:4888
16424 msgid ""
16425 "This command enables the libguestfs appliance to use the swap device or "
16426 "partition named C<device>.  The increased memory is made available for all "
16427 "commands, for example those run using L</command> or L</sh>."
16428 msgstr ""
16429
16430 #. type: textblock
16431 #: ../fish/guestfish-actions.pod:4893 ../src/guestfs-actions.pod:7530
16432 msgid ""
16433 "Note that you should not swap to existing guest swap partitions unless you "
16434 "know what you are doing.  They may contain hibernation information, or other "
16435 "information that the guest doesn't want you to trash.  You also risk leaking "
16436 "information about the host to the guest this way.  Instead, attach a new "
16437 "host device to the guest and swap on that."
16438 msgstr ""
16439
16440 #. type: =head2
16441 #: ../fish/guestfish-actions.pod:4900
16442 msgid "swapon-file"
16443 msgstr ""
16444
16445 #. type: verbatim
16446 #: ../fish/guestfish-actions.pod:4902
16447 #, no-wrap
16448 msgid ""
16449 " swapon-file file\n"
16450 "\n"
16451 msgstr ""
16452
16453 #. type: textblock
16454 #: ../fish/guestfish-actions.pod:4904
16455 msgid "This command enables swap to a file.  See L</swapon-device> for other notes."
16456 msgstr ""
16457
16458 #. type: =head2
16459 #: ../fish/guestfish-actions.pod:4907
16460 msgid "swapon-label"
16461 msgstr ""
16462
16463 #. type: verbatim
16464 #: ../fish/guestfish-actions.pod:4909
16465 #, no-wrap
16466 msgid ""
16467 " swapon-label label\n"
16468 "\n"
16469 msgstr ""
16470
16471 #. type: textblock
16472 #: ../fish/guestfish-actions.pod:4911
16473 msgid ""
16474 "This command enables swap to a labeled swap partition.  See "
16475 "L</swapon-device> for other notes."
16476 msgstr ""
16477
16478 #. type: =head2
16479 #: ../fish/guestfish-actions.pod:4914
16480 msgid "swapon-uuid"
16481 msgstr ""
16482
16483 #. type: verbatim
16484 #: ../fish/guestfish-actions.pod:4916
16485 #, no-wrap
16486 msgid ""
16487 " swapon-uuid uuid\n"
16488 "\n"
16489 msgstr ""
16490
16491 #. type: textblock
16492 #: ../fish/guestfish-actions.pod:4918
16493 msgid ""
16494 "This command enables swap to a swap partition with the given UUID.  See "
16495 "L</swapon-device> for other notes."
16496 msgstr ""
16497
16498 #. type: =head2
16499 #: ../fish/guestfish-actions.pod:4921
16500 msgid "sync"
16501 msgstr ""
16502
16503 #. type: verbatim
16504 #: ../fish/guestfish-actions.pod:4923
16505 #, no-wrap
16506 msgid ""
16507 " sync\n"
16508 "\n"
16509 msgstr ""
16510
16511 #. type: textblock
16512 #: ../fish/guestfish-actions.pod:4925 ../src/guestfs-actions.pod:7585
16513 msgid ""
16514 "This syncs the disk, so that any writes are flushed through to the "
16515 "underlying disk image."
16516 msgstr ""
16517
16518 #. type: textblock
16519 #: ../fish/guestfish-actions.pod:4928 ../src/guestfs-actions.pod:7588
16520 msgid ""
16521 "You should always call this if you have modified a disk image, before "
16522 "closing the handle."
16523 msgstr ""
16524
16525 #. type: =head2
16526 #: ../fish/guestfish-actions.pod:4931
16527 msgid "tail"
16528 msgstr ""
16529
16530 #. type: verbatim
16531 #: ../fish/guestfish-actions.pod:4933
16532 #, no-wrap
16533 msgid ""
16534 " tail path\n"
16535 "\n"
16536 msgstr ""
16537
16538 #. type: textblock
16539 #: ../fish/guestfish-actions.pod:4935 ../src/guestfs-actions.pod:7601
16540 msgid "This command returns up to the last 10 lines of a file as a list of strings."
16541 msgstr ""
16542
16543 #. type: =head2
16544 #: ../fish/guestfish-actions.pod:4941
16545 msgid "tail-n"
16546 msgstr ""
16547
16548 #. type: verbatim
16549 #: ../fish/guestfish-actions.pod:4943
16550 #, no-wrap
16551 msgid ""
16552 " tail-n nrlines path\n"
16553 "\n"
16554 msgstr ""
16555
16556 #. type: textblock
16557 #: ../fish/guestfish-actions.pod:4945 ../src/guestfs-actions.pod:7620
16558 msgid ""
16559 "If the parameter C<nrlines> is a positive number, this returns the last "
16560 "C<nrlines> lines of the file C<path>."
16561 msgstr ""
16562
16563 #. type: textblock
16564 #: ../fish/guestfish-actions.pod:4948 ../src/guestfs-actions.pod:7623
16565 msgid ""
16566 "If the parameter C<nrlines> is a negative number, this returns lines from "
16567 "the file C<path>, starting with the C<-nrlines>th line."
16568 msgstr ""
16569
16570 #. type: =head2
16571 #: ../fish/guestfish-actions.pod:4956
16572 msgid "tar-in"
16573 msgstr ""
16574
16575 #. type: verbatim
16576 #: ../fish/guestfish-actions.pod:4958
16577 #, no-wrap
16578 msgid ""
16579 " tar-in (tarfile|-) directory\n"
16580 "\n"
16581 msgstr ""
16582
16583 #. type: textblock
16584 #: ../fish/guestfish-actions.pod:4960 ../src/guestfs-actions.pod:7644
16585 msgid ""
16586 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
16587 "tar file) into C<directory>."
16588 msgstr ""
16589
16590 #. type: textblock
16591 #: ../fish/guestfish-actions.pod:4963
16592 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
16593 msgstr ""
16594
16595 #. type: =head2
16596 #: ../fish/guestfish-actions.pod:4968
16597 msgid "tar-out"
16598 msgstr ""
16599
16600 #. type: verbatim
16601 #: ../fish/guestfish-actions.pod:4970
16602 #, no-wrap
16603 msgid ""
16604 " tar-out directory (tarfile|-)\n"
16605 "\n"
16606 msgstr ""
16607
16608 #. type: textblock
16609 #: ../fish/guestfish-actions.pod:4972 ../src/guestfs-actions.pod:7661
16610 msgid ""
16611 "This command packs the contents of C<directory> and downloads it to local "
16612 "file C<tarfile>."
16613 msgstr ""
16614
16615 #. type: textblock
16616 #: ../fish/guestfish-actions.pod:4975
16617 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
16618 msgstr ""
16619
16620 #. type: =head2
16621 #: ../fish/guestfish-actions.pod:4980
16622 msgid "tgz-in"
16623 msgstr ""
16624
16625 #. type: verbatim
16626 #: ../fish/guestfish-actions.pod:4982
16627 #, no-wrap
16628 msgid ""
16629 " tgz-in (tarball|-) directory\n"
16630 "\n"
16631 msgstr ""
16632
16633 #. type: textblock
16634 #: ../fish/guestfish-actions.pod:4984 ../src/guestfs-actions.pod:7678
16635 msgid ""
16636 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
16637 "tar file) into C<directory>."
16638 msgstr ""
16639
16640 #. type: textblock
16641 #: ../fish/guestfish-actions.pod:4987
16642 msgid "To upload an uncompressed tarball, use L</tar-in>."
16643 msgstr ""
16644
16645 #. type: =head2
16646 #: ../fish/guestfish-actions.pod:4991
16647 msgid "tgz-out"
16648 msgstr ""
16649
16650 #. type: verbatim
16651 #: ../fish/guestfish-actions.pod:4993
16652 #, no-wrap
16653 msgid ""
16654 " tgz-out directory (tarball|-)\n"
16655 "\n"
16656 msgstr ""
16657
16658 #. type: textblock
16659 #: ../fish/guestfish-actions.pod:4995 ../src/guestfs-actions.pod:7694
16660 msgid ""
16661 "This command packs the contents of C<directory> and downloads it to local "
16662 "file C<tarball>."
16663 msgstr ""
16664
16665 #. type: textblock
16666 #: ../fish/guestfish-actions.pod:4998
16667 msgid "To download an uncompressed tarball, use L</tar-out>."
16668 msgstr ""
16669
16670 #. type: =head2
16671 #: ../fish/guestfish-actions.pod:5002
16672 msgid "touch"
16673 msgstr ""
16674
16675 #. type: verbatim
16676 #: ../fish/guestfish-actions.pod:5004
16677 #, no-wrap
16678 msgid ""
16679 " touch path\n"
16680 "\n"
16681 msgstr ""
16682
16683 #. type: textblock
16684 #: ../fish/guestfish-actions.pod:5006 ../src/guestfs-actions.pod:7709
16685 msgid ""
16686 "Touch acts like the L<touch(1)> command.  It can be used to update the "
16687 "timestamps on a file, or, if the file does not exist, to create a new "
16688 "zero-length file."
16689 msgstr ""
16690
16691 #. type: textblock
16692 #: ../fish/guestfish-actions.pod:5010 ../src/guestfs-actions.pod:7713
16693 msgid ""
16694 "This command only works on regular files, and will fail on other file types "
16695 "such as directories, symbolic links, block special etc."
16696 msgstr ""
16697
16698 #. type: =head2
16699 #: ../fish/guestfish-actions.pod:5013
16700 msgid "truncate"
16701 msgstr ""
16702
16703 #. type: verbatim
16704 #: ../fish/guestfish-actions.pod:5015
16705 #, no-wrap
16706 msgid ""
16707 " truncate path\n"
16708 "\n"
16709 msgstr ""
16710
16711 #. type: textblock
16712 #: ../fish/guestfish-actions.pod:5017 ../src/guestfs-actions.pod:7726
16713 msgid ""
16714 "This command truncates C<path> to a zero-length file.  The file must exist "
16715 "already."
16716 msgstr ""
16717
16718 #. type: =head2
16719 #: ../fish/guestfish-actions.pod:5020
16720 msgid "truncate-size"
16721 msgstr ""
16722
16723 #. type: verbatim
16724 #: ../fish/guestfish-actions.pod:5022
16725 #, no-wrap
16726 msgid ""
16727 " truncate-size path size\n"
16728 "\n"
16729 msgstr ""
16730
16731 #. type: textblock
16732 #: ../fish/guestfish-actions.pod:5024 ../src/guestfs-actions.pod:7740
16733 msgid ""
16734 "This command truncates C<path> to size C<size> bytes.  The file must exist "
16735 "already."
16736 msgstr ""
16737
16738 #. type: textblock
16739 #: ../fish/guestfish-actions.pod:5027
16740 msgid ""
16741 "If the current file size is less than C<size> then the file is extended to "
16742 "the required size with zero bytes.  This creates a sparse file (ie. disk "
16743 "blocks are not allocated for the file until you write to it).  To create a "
16744 "non-sparse file of zeroes, use L</fallocate64> instead."
16745 msgstr ""
16746
16747 #. type: =head2
16748 #: ../fish/guestfish-actions.pod:5033
16749 msgid "tune2fs"
16750 msgstr ""
16751
16752 #. type: verbatim
16753 #: ../fish/guestfish-actions.pod:5035
16754 #, no-wrap
16755 msgid ""
16756 " tune2fs device [force:true|false] [maxmountcount:N] [mountcount:N] "
16757 "[errorbehavior:..] [group:N] [intervalbetweenchecks:N] "
16758 "[reservedblockspercentage:N] [lastmounteddirectory:..] "
16759 "[reservedblockscount:N] [user:N]\n"
16760 "\n"
16761 msgstr ""
16762
16763 #. type: textblock
16764 #: ../fish/guestfish-actions.pod:5037 ../src/guestfs-actions.pod:7776
16765 msgid ""
16766 "This call allows you to adjust various filesystem parameters of an "
16767 "ext2/ext3/ext4 filesystem called C<device>."
16768 msgstr ""
16769
16770 #. type: textblock
16771 #: ../fish/guestfish-actions.pod:5046 ../src/guestfs-actions.pod:7785
16772 msgid ""
16773 "Force tune2fs to complete the operation even in the face of errors.  This is "
16774 "the same as the tune2fs C<-f> option."
16775 msgstr ""
16776
16777 #. type: =item
16778 #: ../fish/guestfish-actions.pod:5049 ../src/guestfs-actions.pod:7788
16779 msgid "C<maxmountcount>"
16780 msgstr ""
16781
16782 #. type: textblock
16783 #: ../fish/guestfish-actions.pod:5051 ../src/guestfs-actions.pod:7790
16784 msgid ""
16785 "Set the number of mounts after which the filesystem is checked by "
16786 "L<e2fsck(8)>.  If this is C<0> then the number of mounts is disregarded.  "
16787 "This is the same as the tune2fs C<-c> option."
16788 msgstr ""
16789
16790 #. type: =item
16791 #: ../fish/guestfish-actions.pod:5055 ../src/guestfs-actions.pod:7794
16792 msgid "C<mountcount>"
16793 msgstr ""
16794
16795 #. type: textblock
16796 #: ../fish/guestfish-actions.pod:5057 ../src/guestfs-actions.pod:7796
16797 msgid ""
16798 "Set the number of times the filesystem has been mounted.  This is the same "
16799 "as the tune2fs C<-C> option."
16800 msgstr ""
16801
16802 #. type: =item
16803 #: ../fish/guestfish-actions.pod:5060 ../src/guestfs-actions.pod:7799
16804 msgid "C<errorbehavior>"
16805 msgstr ""
16806
16807 #. type: textblock
16808 #: ../fish/guestfish-actions.pod:5062 ../src/guestfs-actions.pod:7801
16809 msgid ""
16810 "Change the behavior of the kernel code when errors are detected.  Possible "
16811 "values currently are: C<continue>, C<remount-ro>, C<panic>.  In practice "
16812 "these options don't really make any difference, particularly for write "
16813 "errors."
16814 msgstr ""
16815
16816 #. type: textblock
16817 #: ../fish/guestfish-actions.pod:5067 ../src/guestfs-actions.pod:7806
16818 msgid "This is the same as the tune2fs C<-e> option."
16819 msgstr ""
16820
16821 #. type: =item
16822 #: ../fish/guestfish-actions.pod:5069 ../src/guestfs-actions.pod:7808
16823 msgid "C<group>"
16824 msgstr ""
16825
16826 #. type: textblock
16827 #: ../fish/guestfish-actions.pod:5071 ../src/guestfs-actions.pod:7810
16828 msgid ""
16829 "Set the group which can use reserved filesystem blocks.  This is the same as "
16830 "the tune2fs C<-g> option except that it can only be specified as a number."
16831 msgstr ""
16832
16833 #. type: =item
16834 #: ../fish/guestfish-actions.pod:5075 ../src/guestfs-actions.pod:7814
16835 msgid "C<intervalbetweenchecks>"
16836 msgstr ""
16837
16838 #. type: textblock
16839 #: ../fish/guestfish-actions.pod:5077 ../src/guestfs-actions.pod:7816
16840 msgid ""
16841 "Adjust the maximal time between two filesystem checks (in seconds).  If the "
16842 "option is passed as C<0> then time-dependent checking is disabled."
16843 msgstr ""
16844
16845 #. type: textblock
16846 #: ../fish/guestfish-actions.pod:5081 ../src/guestfs-actions.pod:7820
16847 msgid "This is the same as the tune2fs C<-i> option."
16848 msgstr ""
16849
16850 #. type: =item
16851 #: ../fish/guestfish-actions.pod:5083 ../src/guestfs-actions.pod:7822
16852 msgid "C<reservedblockspercentage>"
16853 msgstr ""
16854
16855 #. type: textblock
16856 #: ../fish/guestfish-actions.pod:5085 ../src/guestfs-actions.pod:7824
16857 msgid ""
16858 "Set the percentage of the filesystem which may only be allocated by "
16859 "privileged processes.  This is the same as the tune2fs C<-m> option."
16860 msgstr ""
16861
16862 #. type: =item
16863 #: ../fish/guestfish-actions.pod:5089 ../src/guestfs-actions.pod:7828
16864 msgid "C<lastmounteddirectory>"
16865 msgstr ""
16866
16867 #. type: textblock
16868 #: ../fish/guestfish-actions.pod:5091 ../src/guestfs-actions.pod:7830
16869 msgid ""
16870 "Set the last mounted directory.  This is the same as the tune2fs C<-M> "
16871 "option."
16872 msgstr ""
16873
16874 #. type: =item
16875 #: ../fish/guestfish-actions.pod:5094 ../src/guestfs-actions.pod:7833
16876 msgid ""
16877 "C<reservedblockscount> Set the number of reserved filesystem blocks.  This "
16878 "is the same as the tune2fs C<-r> option."
16879 msgstr ""
16880
16881 #. type: =item
16882 #: ../fish/guestfish-actions.pod:5098 ../src/guestfs-actions.pod:7837
16883 msgid "C<user>"
16884 msgstr ""
16885
16886 #. type: textblock
16887 #: ../fish/guestfish-actions.pod:5100 ../src/guestfs-actions.pod:7839
16888 msgid ""
16889 "Set the user who can use the reserved filesystem blocks.  This is the same "
16890 "as the tune2fs C<-u> option except that it can only be specified as a "
16891 "number."
16892 msgstr ""
16893
16894 #. type: textblock
16895 #: ../fish/guestfish-actions.pod:5106
16896 msgid ""
16897 "To get the current values of filesystem parameters, see L</tune2fs-l>.  For "
16898 "precise details of how tune2fs works, see the L<tune2fs(8)> man page."
16899 msgstr ""
16900
16901 #. type: =head2
16902 #: ../fish/guestfish-actions.pod:5112
16903 msgid "tune2fs-l"
16904 msgstr ""
16905
16906 #. type: verbatim
16907 #: ../fish/guestfish-actions.pod:5114
16908 #, no-wrap
16909 msgid ""
16910 " tune2fs-l device\n"
16911 "\n"
16912 msgstr ""
16913
16914 #. type: textblock
16915 #: ../fish/guestfish-actions.pod:5116 ../src/guestfs-actions.pod:7881
16916 msgid ""
16917 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
16918 "C<device>."
16919 msgstr ""
16920
16921 #. type: textblock
16922 #: ../fish/guestfish-actions.pod:5119 ../src/guestfs-actions.pod:7884
16923 msgid ""
16924 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
16925 "for more details.  The list of fields returned isn't clearly defined, and "
16926 "depends on both the version of C<tune2fs> that libguestfs was built against, "
16927 "and the filesystem itself."
16928 msgstr ""
16929
16930 #. type: =head2
16931 #: ../fish/guestfish-actions.pod:5124
16932 msgid "txz-in"
16933 msgstr ""
16934
16935 #. type: verbatim
16936 #: ../fish/guestfish-actions.pod:5126
16937 #, no-wrap
16938 msgid ""
16939 " txz-in (tarball|-) directory\n"
16940 "\n"
16941 msgstr ""
16942
16943 #. type: textblock
16944 #: ../fish/guestfish-actions.pod:5128 ../src/guestfs-actions.pod:7904
16945 msgid ""
16946 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
16947 "tar file) into C<directory>."
16948 msgstr ""
16949
16950 #. type: =head2
16951 #: ../fish/guestfish-actions.pod:5133
16952 msgid "txz-out"
16953 msgstr ""
16954
16955 #. type: verbatim
16956 #: ../fish/guestfish-actions.pod:5135
16957 #, no-wrap
16958 msgid ""
16959 " txz-out directory (tarball|-)\n"
16960 "\n"
16961 msgstr ""
16962
16963 #. type: textblock
16964 #: ../fish/guestfish-actions.pod:5137 ../src/guestfs-actions.pod:7918
16965 msgid ""
16966 "This command packs the contents of C<directory> and downloads it to local "
16967 "file C<tarball> (as an xz compressed tar archive)."
16968 msgstr ""
16969
16970 #. type: =head2
16971 #: ../fish/guestfish-actions.pod:5142
16972 msgid "umask"
16973 msgstr ""
16974
16975 #. type: verbatim
16976 #: ../fish/guestfish-actions.pod:5144
16977 #, no-wrap
16978 msgid ""
16979 " umask mask\n"
16980 "\n"
16981 msgstr ""
16982
16983 #. type: textblock
16984 #: ../fish/guestfish-actions.pod:5146 ../src/guestfs-actions.pod:7931
16985 msgid ""
16986 "This function sets the mask used for creating new files and device nodes to "
16987 "C<mask & 0777>."
16988 msgstr ""
16989
16990 #. type: textblock
16991 #: ../fish/guestfish-actions.pod:5149 ../src/guestfs-actions.pod:7934
16992 msgid ""
16993 "Typical umask values would be C<022> which creates new files with "
16994 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
16995 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
16996 msgstr ""
16997
16998 #. type: textblock
16999 #: ../fish/guestfish-actions.pod:5154 ../src/guestfs-actions.pod:7939
17000 msgid ""
17001 "The default umask is C<022>.  This is important because it means that "
17002 "directories and device nodes will be created with C<0644> or C<0755> mode "
17003 "even if you specify C<0777>."
17004 msgstr ""
17005
17006 #. type: textblock
17007 #: ../fish/guestfish-actions.pod:5158
17008 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
17009 msgstr ""
17010
17011 #. type: textblock
17012 #: ../fish/guestfish-actions.pod:5161 ../src/guestfs-actions.pod:7946
17013 msgid "This call returns the previous umask."
17014 msgstr ""
17015
17016 #. type: =head2
17017 #: ../fish/guestfish-actions.pod:5163
17018 msgid "umount"
17019 msgstr ""
17020
17021 #. type: =head2
17022 #: ../fish/guestfish-actions.pod:5165
17023 msgid "unmount"
17024 msgstr ""
17025
17026 #. type: verbatim
17027 #: ../fish/guestfish-actions.pod:5167
17028 #, no-wrap
17029 msgid ""
17030 " umount pathordevice\n"
17031 "\n"
17032 msgstr ""
17033
17034 #. type: textblock
17035 #: ../fish/guestfish-actions.pod:5169 ../src/guestfs-actions.pod:7958
17036 msgid ""
17037 "This unmounts the given filesystem.  The filesystem may be specified either "
17038 "by its mountpoint (path) or the device which contains the filesystem."
17039 msgstr ""
17040
17041 #. type: =head2
17042 #: ../fish/guestfish-actions.pod:5173
17043 msgid "umount-all"
17044 msgstr ""
17045
17046 #. type: =head2
17047 #: ../fish/guestfish-actions.pod:5175
17048 msgid "unmount-all"
17049 msgstr ""
17050
17051 #. type: verbatim
17052 #: ../fish/guestfish-actions.pod:5177
17053 #, no-wrap
17054 msgid ""
17055 " umount-all\n"
17056 "\n"
17057 msgstr ""
17058
17059 #. type: textblock
17060 #: ../fish/guestfish-actions.pod:5179 ../src/guestfs-actions.pod:7971
17061 msgid "This unmounts all mounted filesystems."
17062 msgstr ""
17063
17064 #. type: textblock
17065 #: ../fish/guestfish-actions.pod:5181 ../src/guestfs-actions.pod:7973
17066 msgid "Some internal mounts are not unmounted by this call."
17067 msgstr ""
17068
17069 #. type: =head2
17070 #: ../fish/guestfish-actions.pod:5183
17071 msgid "upload"
17072 msgstr ""
17073
17074 #. type: verbatim
17075 #: ../fish/guestfish-actions.pod:5185
17076 #, no-wrap
17077 msgid ""
17078 " upload (filename|-) remotefilename\n"
17079 "\n"
17080 msgstr ""
17081
17082 #. type: textblock
17083 #: ../fish/guestfish-actions.pod:5187 ../fish/guestfish-actions.pod:5200 ../src/guestfs-actions.pod:7986 ../src/guestfs-actions.pod:8010
17084 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
17085 msgstr ""
17086
17087 #. type: textblock
17088 #: ../fish/guestfish-actions.pod:5192
17089 msgid "See also L</download>."
17090 msgstr ""
17091
17092 #. type: =head2
17093 #: ../fish/guestfish-actions.pod:5196
17094 msgid "upload-offset"
17095 msgstr ""
17096
17097 #. type: verbatim
17098 #: ../fish/guestfish-actions.pod:5198
17099 #, no-wrap
17100 msgid ""
17101 " upload-offset (filename|-) remotefilename offset\n"
17102 "\n"
17103 msgstr ""
17104
17105 #. type: textblock
17106 #: ../fish/guestfish-actions.pod:5203 ../src/guestfs-actions.pod:8013
17107 msgid ""
17108 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
17109 "The intention is to overwrite parts of existing files or devices, although "
17110 "if a non-existant file is specified then it is created with a \"hole\" "
17111 "before C<offset>.  The size of the data written is implicit in the size of "
17112 "the source C<filename>."
17113 msgstr ""
17114
17115 #. type: textblock
17116 #: ../fish/guestfish-actions.pod:5210
17117 msgid ""
17118 "Note that there is no limit on the amount of data that can be uploaded with "
17119 "this call, unlike with L</pwrite>, and this call always writes the full "
17120 "amount unless an error occurs."
17121 msgstr ""
17122
17123 #. type: textblock
17124 #: ../fish/guestfish-actions.pod:5215
17125 msgid "See also L</upload>, L</pwrite>."
17126 msgstr ""
17127
17128 #. type: =head2
17129 #: ../fish/guestfish-actions.pod:5219
17130 msgid "utimens"
17131 msgstr ""
17132
17133 #. type: verbatim
17134 #: ../fish/guestfish-actions.pod:5221
17135 #, no-wrap
17136 msgid ""
17137 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
17138 "\n"
17139 msgstr ""
17140
17141 #. type: textblock
17142 #: ../fish/guestfish-actions.pod:5223 ../src/guestfs-actions.pod:8046
17143 msgid "This command sets the timestamps of a file with nanosecond precision."
17144 msgstr ""
17145
17146 #. type: textblock
17147 #: ../fish/guestfish-actions.pod:5226 ../src/guestfs-actions.pod:8049
17148 msgid ""
17149 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
17150 "from the epoch."
17151 msgstr ""
17152
17153 #. type: textblock
17154 #: ../fish/guestfish-actions.pod:5229 ../src/guestfs-actions.pod:8052
17155 msgid ""
17156 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
17157 "nanoseconds from the epoch."
17158 msgstr ""
17159
17160 #. type: textblock
17161 #: ../fish/guestfish-actions.pod:5232 ../src/guestfs-actions.pod:8055
17162 msgid ""
17163 "If the C<*nsecs> field contains the special value C<-1> then the "
17164 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
17165 "ignored in this case)."
17166 msgstr ""
17167
17168 #. type: textblock
17169 #: ../fish/guestfish-actions.pod:5236 ../src/guestfs-actions.pod:8059
17170 msgid ""
17171 "If the C<*nsecs> field contains the special value C<-2> then the "
17172 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
17173 "in this case)."
17174 msgstr ""
17175
17176 #. type: =head2
17177 #: ../fish/guestfish-actions.pod:5240
17178 msgid "version"
17179 msgstr ""
17180
17181 #. type: verbatim
17182 #: ../fish/guestfish-actions.pod:5242
17183 #, no-wrap
17184 msgid ""
17185 " version\n"
17186 "\n"
17187 msgstr ""
17188
17189 #. type: textblock
17190 #: ../fish/guestfish-actions.pod:5244 ../src/guestfs-actions.pod:8072
17191 msgid "Return the libguestfs version number that the program is linked against."
17192 msgstr ""
17193
17194 #. type: textblock
17195 #: ../fish/guestfish-actions.pod:5247 ../src/guestfs-actions.pod:8075
17196 msgid ""
17197 "Note that because of dynamic linking this is not necessarily the version of "
17198 "libguestfs that you compiled against.  You can compile the program, and then "
17199 "at runtime dynamically link against a completely different C<libguestfs.so> "
17200 "library."
17201 msgstr ""
17202
17203 #. type: textblock
17204 #: ../fish/guestfish-actions.pod:5252 ../src/guestfs-actions.pod:8080
17205 msgid ""
17206 "This call was added in version C<1.0.58>.  In previous versions of "
17207 "libguestfs there was no way to get the version number.  From C code you can "
17208 "use dynamic linker functions to find out if this symbol exists (if it "
17209 "doesn't, then it's an earlier version)."
17210 msgstr ""
17211
17212 #. type: textblock
17213 #: ../fish/guestfish-actions.pod:5258 ../src/guestfs-actions.pod:8086
17214 msgid ""
17215 "The call returns a structure with four elements.  The first three (C<major>, "
17216 "C<minor> and C<release>) are numbers and correspond to the usual version "
17217 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
17218 "but may be used for distro-specific information."
17219 msgstr ""
17220
17221 #. type: textblock
17222 #: ../fish/guestfish-actions.pod:5264 ../src/guestfs-actions.pod:8092
17223 msgid "To construct the original version string: C<$major.$minor.$release$extra>"
17224 msgstr ""
17225
17226 #. type: textblock
17227 #: ../fish/guestfish-actions.pod:5267 ../src/guestfs-actions.pod:8095
17228 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
17229 msgstr ""
17230
17231 #. type: textblock
17232 #: ../fish/guestfish-actions.pod:5269
17233 msgid ""
17234 "I<Note:> Don't use this call to test for availability of features.  In "
17235 "enterprise distributions we backport features from later versions into "
17236 "earlier versions, making this an unreliable way to test for features.  Use "
17237 "L</available> instead."
17238 msgstr ""
17239
17240 #. type: =head2
17241 #: ../fish/guestfish-actions.pod:5275
17242 msgid "vfs-label"
17243 msgstr ""
17244
17245 #. type: verbatim
17246 #: ../fish/guestfish-actions.pod:5277
17247 #, no-wrap
17248 msgid ""
17249 " vfs-label device\n"
17250 "\n"
17251 msgstr ""
17252
17253 #. type: textblock
17254 #: ../fish/guestfish-actions.pod:5279 ../src/guestfs-actions.pod:8115
17255 msgid "This returns the filesystem label of the filesystem on C<device>."
17256 msgstr ""
17257
17258 #. type: textblock
17259 #: ../fish/guestfish-actions.pod:5282 ../src/guestfs-actions.pod:8118
17260 msgid "If the filesystem is unlabeled, this returns the empty string."
17261 msgstr ""
17262
17263 #. type: textblock
17264 #: ../fish/guestfish-actions.pod:5284
17265 msgid "To find a filesystem from the label, use L</findfs-label>."
17266 msgstr ""
17267
17268 #. type: =head2
17269 #: ../fish/guestfish-actions.pod:5286
17270 msgid "vfs-type"
17271 msgstr ""
17272
17273 #. type: verbatim
17274 #: ../fish/guestfish-actions.pod:5288
17275 #, no-wrap
17276 msgid ""
17277 " vfs-type device\n"
17278 "\n"
17279 msgstr ""
17280
17281 #. type: textblock
17282 #: ../fish/guestfish-actions.pod:5290 ../src/guestfs-actions.pod:8133
17283 msgid ""
17284 "This command gets the filesystem type corresponding to the filesystem on "
17285 "C<device>."
17286 msgstr ""
17287
17288 #. type: textblock
17289 #: ../fish/guestfish-actions.pod:5293 ../src/guestfs-actions.pod:8136
17290 msgid ""
17291 "For most filesystems, the result is the name of the Linux VFS module which "
17292 "would be used to mount this filesystem if you mounted it without specifying "
17293 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
17294 msgstr ""
17295
17296 #. type: =head2
17297 #: ../fish/guestfish-actions.pod:5298
17298 msgid "vfs-uuid"
17299 msgstr ""
17300
17301 #. type: verbatim
17302 #: ../fish/guestfish-actions.pod:5300
17303 #, no-wrap
17304 msgid ""
17305 " vfs-uuid device\n"
17306 "\n"
17307 msgstr ""
17308
17309 #. type: textblock
17310 #: ../fish/guestfish-actions.pod:5302 ../src/guestfs-actions.pod:8152
17311 msgid "This returns the filesystem UUID of the filesystem on C<device>."
17312 msgstr ""
17313
17314 #. type: textblock
17315 #: ../fish/guestfish-actions.pod:5305 ../src/guestfs-actions.pod:8155
17316 msgid "If the filesystem does not have a UUID, this returns the empty string."
17317 msgstr ""
17318
17319 #. type: textblock
17320 #: ../fish/guestfish-actions.pod:5307
17321 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
17322 msgstr ""
17323
17324 #. type: =head2
17325 #: ../fish/guestfish-actions.pod:5309
17326 msgid "vg-activate"
17327 msgstr ""
17328
17329 #. type: verbatim
17330 #: ../fish/guestfish-actions.pod:5311
17331 #, no-wrap
17332 msgid ""
17333 " vg-activate true|false 'volgroups ...'\n"
17334 "\n"
17335 msgstr ""
17336
17337 #. type: textblock
17338 #: ../fish/guestfish-actions.pod:5313 ../src/guestfs-actions.pod:8171
17339 msgid ""
17340 "This command activates or (if C<activate> is false) deactivates all logical "
17341 "volumes in the listed volume groups C<volgroups>."
17342 msgstr ""
17343
17344 #. type: textblock
17345 #: ../fish/guestfish-actions.pod:5316 ../src/guestfs-actions.pod:8174
17346 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
17347 msgstr ""
17348
17349 #. type: textblock
17350 #: ../fish/guestfish-actions.pod:5318 ../src/guestfs-actions.pod:8176
17351 msgid ""
17352 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
17353 "activated or deactivated."
17354 msgstr ""
17355
17356 #. type: =head2
17357 #: ../fish/guestfish-actions.pod:5321
17358 msgid "vg-activate-all"
17359 msgstr ""
17360
17361 #. type: verbatim
17362 #: ../fish/guestfish-actions.pod:5323
17363 #, no-wrap
17364 msgid ""
17365 " vg-activate-all true|false\n"
17366 "\n"
17367 msgstr ""
17368
17369 #. type: textblock
17370 #: ../fish/guestfish-actions.pod:5325 ../src/guestfs-actions.pod:8189
17371 msgid ""
17372 "This command activates or (if C<activate> is false) deactivates all logical "
17373 "volumes in all volume groups."
17374 msgstr ""
17375
17376 #. type: textblock
17377 #: ../fish/guestfish-actions.pod:5328 ../src/guestfs-actions.pod:8192
17378 msgid "This command is the same as running C<vgchange -a y|n>"
17379 msgstr ""
17380
17381 #. type: =head2
17382 #: ../fish/guestfish-actions.pod:5330
17383 msgid "vgcreate"
17384 msgstr ""
17385
17386 #. type: verbatim
17387 #: ../fish/guestfish-actions.pod:5332
17388 #, no-wrap
17389 msgid ""
17390 " vgcreate volgroup 'physvols ...'\n"
17391 "\n"
17392 msgstr ""
17393
17394 #. type: textblock
17395 #: ../fish/guestfish-actions.pod:5334 ../src/guestfs-actions.pod:8205
17396 msgid ""
17397 "This creates an LVM volume group called C<volgroup> from the non-empty list "
17398 "of physical volumes C<physvols>."
17399 msgstr ""
17400
17401 #. type: =head2
17402 #: ../fish/guestfish-actions.pod:5337
17403 msgid "vglvuuids"
17404 msgstr ""
17405
17406 #. type: verbatim
17407 #: ../fish/guestfish-actions.pod:5339
17408 #, no-wrap
17409 msgid ""
17410 " vglvuuids vgname\n"
17411 "\n"
17412 msgstr ""
17413
17414 #. type: textblock
17415 #: ../fish/guestfish-actions.pod:5341 ../src/guestfs-actions.pod:8218
17416 msgid ""
17417 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
17418 "volumes created in this volume group."
17419 msgstr ""
17420
17421 #. type: textblock
17422 #: ../fish/guestfish-actions.pod:5344
17423 msgid ""
17424 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
17425 "logical volumes and volume groups."
17426 msgstr ""
17427
17428 #. type: textblock
17429 #: ../fish/guestfish-actions.pod:5347
17430 msgid "See also L</vgpvuuids>."
17431 msgstr ""
17432
17433 #. type: =head2
17434 #: ../fish/guestfish-actions.pod:5349
17435 msgid "vgpvuuids"
17436 msgstr ""
17437
17438 #. type: verbatim
17439 #: ../fish/guestfish-actions.pod:5351
17440 #, no-wrap
17441 msgid ""
17442 " vgpvuuids vgname\n"
17443 "\n"
17444 msgstr ""
17445
17446 #. type: textblock
17447 #: ../fish/guestfish-actions.pod:5353 ../src/guestfs-actions.pod:8238
17448 msgid ""
17449 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
17450 "volumes that this volume group resides on."
17451 msgstr ""
17452
17453 #. type: textblock
17454 #: ../fish/guestfish-actions.pod:5356
17455 msgid ""
17456 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
17457 "physical volumes and volume groups."
17458 msgstr ""
17459
17460 #. type: textblock
17461 #: ../fish/guestfish-actions.pod:5359
17462 msgid "See also L</vglvuuids>."
17463 msgstr ""
17464
17465 #. type: =head2
17466 #: ../fish/guestfish-actions.pod:5361
17467 msgid "vgremove"
17468 msgstr ""
17469
17470 #. type: verbatim
17471 #: ../fish/guestfish-actions.pod:5363
17472 #, no-wrap
17473 msgid ""
17474 " vgremove vgname\n"
17475 "\n"
17476 msgstr ""
17477
17478 #. type: textblock
17479 #: ../fish/guestfish-actions.pod:5365 ../src/guestfs-actions.pod:8258
17480 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
17481 msgstr ""
17482
17483 #. type: textblock
17484 #: ../fish/guestfish-actions.pod:5367 ../src/guestfs-actions.pod:8260
17485 msgid "This also forcibly removes all logical volumes in the volume group (if any)."
17486 msgstr ""
17487
17488 #. type: =head2
17489 #: ../fish/guestfish-actions.pod:5370
17490 msgid "vgrename"
17491 msgstr ""
17492
17493 #. type: verbatim
17494 #: ../fish/guestfish-actions.pod:5372
17495 #, no-wrap
17496 msgid ""
17497 " vgrename volgroup newvolgroup\n"
17498 "\n"
17499 msgstr ""
17500
17501 #. type: textblock
17502 #: ../fish/guestfish-actions.pod:5374 ../src/guestfs-actions.pod:8274
17503 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
17504 msgstr ""
17505
17506 #. type: =head2
17507 #: ../fish/guestfish-actions.pod:5376
17508 msgid "vgs"
17509 msgstr ""
17510
17511 #. type: verbatim
17512 #: ../fish/guestfish-actions.pod:5378
17513 #, no-wrap
17514 msgid ""
17515 " vgs\n"
17516 "\n"
17517 msgstr ""
17518
17519 #. type: textblock
17520 #: ../fish/guestfish-actions.pod:5380 ../src/guestfs-actions.pod:8285
17521 msgid ""
17522 "List all the volumes groups detected.  This is the equivalent of the "
17523 "L<vgs(8)> command."
17524 msgstr ""
17525
17526 #. type: textblock
17527 #: ../fish/guestfish-actions.pod:5383 ../src/guestfs-actions.pod:8288
17528 msgid ""
17529 "This returns a list of just the volume group names that were detected "
17530 "(eg. C<VolGroup00>)."
17531 msgstr ""
17532
17533 #. type: textblock
17534 #: ../fish/guestfish-actions.pod:5386
17535 msgid "See also L</vgs-full>."
17536 msgstr ""
17537
17538 #. type: =head2
17539 #: ../fish/guestfish-actions.pod:5388
17540 msgid "vgs-full"
17541 msgstr ""
17542
17543 #. type: verbatim
17544 #: ../fish/guestfish-actions.pod:5390
17545 #, no-wrap
17546 msgid ""
17547 " vgs-full\n"
17548 "\n"
17549 msgstr ""
17550
17551 #. type: textblock
17552 #: ../fish/guestfish-actions.pod:5392 ../src/guestfs-actions.pod:8304
17553 msgid ""
17554 "List all the volumes groups detected.  This is the equivalent of the "
17555 "L<vgs(8)> command.  The \"full\" version includes all fields."
17556 msgstr ""
17557
17558 #. type: =head2
17559 #: ../fish/guestfish-actions.pod:5395
17560 msgid "vgscan"
17561 msgstr ""
17562
17563 #. type: verbatim
17564 #: ../fish/guestfish-actions.pod:5397
17565 #, no-wrap
17566 msgid ""
17567 " vgscan\n"
17568 "\n"
17569 msgstr ""
17570
17571 #. type: textblock
17572 #: ../fish/guestfish-actions.pod:5399 ../src/guestfs-actions.pod:8318
17573 msgid ""
17574 "This rescans all block devices and rebuilds the list of LVM physical "
17575 "volumes, volume groups and logical volumes."
17576 msgstr ""
17577
17578 #. type: =head2
17579 #: ../fish/guestfish-actions.pod:5402
17580 msgid "vguuid"
17581 msgstr ""
17582
17583 #. type: verbatim
17584 #: ../fish/guestfish-actions.pod:5404
17585 #, no-wrap
17586 msgid ""
17587 " vguuid vgname\n"
17588 "\n"
17589 msgstr ""
17590
17591 #. type: textblock
17592 #: ../fish/guestfish-actions.pod:5406 ../src/guestfs-actions.pod:8331
17593 msgid "This command returns the UUID of the LVM VG named C<vgname>."
17594 msgstr ""
17595
17596 #. type: =head2
17597 #: ../fish/guestfish-actions.pod:5408
17598 msgid "wc-c"
17599 msgstr ""
17600
17601 #. type: verbatim
17602 #: ../fish/guestfish-actions.pod:5410
17603 #, no-wrap
17604 msgid ""
17605 " wc-c path\n"
17606 "\n"
17607 msgstr ""
17608
17609 #. type: textblock
17610 #: ../fish/guestfish-actions.pod:5412 ../src/guestfs-actions.pod:8371
17611 msgid ""
17612 "This command counts the characters in a file, using the C<wc -c> external "
17613 "command."
17614 msgstr ""
17615
17616 #. type: =head2
17617 #: ../fish/guestfish-actions.pod:5415
17618 msgid "wc-l"
17619 msgstr ""
17620
17621 #. type: verbatim
17622 #: ../fish/guestfish-actions.pod:5417
17623 #, no-wrap
17624 msgid ""
17625 " wc-l path\n"
17626 "\n"
17627 msgstr ""
17628
17629 #. type: textblock
17630 #: ../fish/guestfish-actions.pod:5419 ../src/guestfs-actions.pod:8384
17631 msgid ""
17632 "This command counts the lines in a file, using the C<wc -l> external "
17633 "command."
17634 msgstr ""
17635
17636 #. type: =head2
17637 #: ../fish/guestfish-actions.pod:5422
17638 msgid "wc-w"
17639 msgstr ""
17640
17641 #. type: verbatim
17642 #: ../fish/guestfish-actions.pod:5424
17643 #, no-wrap
17644 msgid ""
17645 " wc-w path\n"
17646 "\n"
17647 msgstr ""
17648
17649 #. type: textblock
17650 #: ../fish/guestfish-actions.pod:5426 ../src/guestfs-actions.pod:8397
17651 msgid ""
17652 "This command counts the words in a file, using the C<wc -w> external "
17653 "command."
17654 msgstr ""
17655
17656 #. type: =head2
17657 #: ../fish/guestfish-actions.pod:5429
17658 msgid "write"
17659 msgstr ""
17660
17661 #. type: verbatim
17662 #: ../fish/guestfish-actions.pod:5431
17663 #, no-wrap
17664 msgid ""
17665 " write path content\n"
17666 "\n"
17667 msgstr ""
17668
17669 #. type: textblock
17670 #: ../fish/guestfish-actions.pod:5433 ../src/guestfs-actions.pod:8412
17671 msgid ""
17672 "This call creates a file called C<path>.  The content of the file is the "
17673 "string C<content> (which can contain any 8 bit data)."
17674 msgstr ""
17675
17676 #. type: textblock
17677 #: ../fish/guestfish-actions.pod:5436
17678 msgid "See also L</write-append>."
17679 msgstr ""
17680
17681 #. type: =head2
17682 #: ../fish/guestfish-actions.pod:5441
17683 msgid "write-append"
17684 msgstr ""
17685
17686 #. type: verbatim
17687 #: ../fish/guestfish-actions.pod:5443
17688 #, no-wrap
17689 msgid ""
17690 " write-append path content\n"
17691 "\n"
17692 msgstr ""
17693
17694 #. type: textblock
17695 #: ../fish/guestfish-actions.pod:5445 ../src/guestfs-actions.pod:8432
17696 msgid ""
17697 "This call appends C<content> to the end of file C<path>.  If C<path> does "
17698 "not exist, then a new file is created."
17699 msgstr ""
17700
17701 #. type: textblock
17702 #: ../fish/guestfish-actions.pod:5448
17703 msgid "See also L</write>."
17704 msgstr ""
17705
17706 #. type: =head2
17707 #: ../fish/guestfish-actions.pod:5453
17708 msgid "write-file"
17709 msgstr ""
17710
17711 #. type: verbatim
17712 #: ../fish/guestfish-actions.pod:5455
17713 #, no-wrap
17714 msgid ""
17715 " write-file path content size\n"
17716 "\n"
17717 msgstr ""
17718
17719 #. type: textblock
17720 #: ../fish/guestfish-actions.pod:5457 ../src/guestfs-actions.pod:8459
17721 msgid ""
17722 "This call creates a file called C<path>.  The contents of the file is the "
17723 "string C<content> (which can contain any 8 bit data), with length C<size>."
17724 msgstr ""
17725
17726 #. type: textblock
17727 #: ../fish/guestfish-actions.pod:5461 ../src/guestfs-actions.pod:8463
17728 msgid ""
17729 "As a special case, if C<size> is C<0> then the length is calculated using "
17730 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
17731 msgstr ""
17732
17733 #. type: textblock
17734 #: ../fish/guestfish-actions.pod:5465 ../src/guestfs-actions.pod:8467
17735 msgid ""
17736 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
17737 "I<not> work, even if the length is specified."
17738 msgstr ""
17739
17740 #. type: textblock
17741 #: ../fish/guestfish-actions.pod:5471
17742 msgid "I<This function is deprecated.> In new code, use the L</write> call instead."
17743 msgstr ""
17744
17745 #. type: =head2
17746 #: ../fish/guestfish-actions.pod:5478
17747 msgid "zegrep"
17748 msgstr ""
17749
17750 #. type: verbatim
17751 #: ../fish/guestfish-actions.pod:5480
17752 #, no-wrap
17753 msgid ""
17754 " zegrep regex path\n"
17755 "\n"
17756 msgstr ""
17757
17758 #. type: textblock
17759 #: ../fish/guestfish-actions.pod:5482 ../src/guestfs-actions.pod:8484
17760 msgid "This calls the external C<zegrep> program and returns the matching lines."
17761 msgstr ""
17762
17763 #. type: =head2
17764 #: ../fish/guestfish-actions.pod:5488
17765 msgid "zegrepi"
17766 msgstr ""
17767
17768 #. type: verbatim
17769 #: ../fish/guestfish-actions.pod:5490
17770 #, no-wrap
17771 msgid ""
17772 " zegrepi regex path\n"
17773 "\n"
17774 msgstr ""
17775
17776 #. type: textblock
17777 #: ../fish/guestfish-actions.pod:5492 ../src/guestfs-actions.pod:8503
17778 msgid "This calls the external C<zegrep -i> program and returns the matching lines."
17779 msgstr ""
17780
17781 #. type: =head2
17782 #: ../fish/guestfish-actions.pod:5498
17783 msgid "zero"
17784 msgstr ""
17785
17786 #. type: verbatim
17787 #: ../fish/guestfish-actions.pod:5500
17788 #, no-wrap
17789 msgid ""
17790 " zero device\n"
17791 "\n"
17792 msgstr ""
17793
17794 #. type: textblock
17795 #: ../fish/guestfish-actions.pod:5502 ../src/guestfs-actions.pod:8521
17796 msgid "This command writes zeroes over the first few blocks of C<device>."
17797 msgstr ""
17798
17799 #. type: textblock
17800 #: ../fish/guestfish-actions.pod:5504 ../src/guestfs-actions.pod:8523
17801 msgid ""
17802 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
17803 "securely wipe the device).  It should be sufficient to remove any partition "
17804 "tables, filesystem superblocks and so on."
17805 msgstr ""
17806
17807 #. type: textblock
17808 #: ../fish/guestfish-actions.pod:5508 ../fish/guestfish-actions.pod:5523 ../src/guestfs-actions.pod:8527 ../src/guestfs-actions.pod:8553
17809 msgid ""
17810 "If blocks are already zero, then this command avoids writing zeroes.  This "
17811 "prevents the underlying device from becoming non-sparse or growing "
17812 "unnecessarily."
17813 msgstr ""
17814
17815 #. type: textblock
17816 #: ../fish/guestfish-actions.pod:5512
17817 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
17818 msgstr ""
17819
17820 #. type: =head2
17821 #: ../fish/guestfish-actions.pod:5515
17822 msgid "zero-device"
17823 msgstr ""
17824
17825 #. type: verbatim
17826 #: ../fish/guestfish-actions.pod:5517
17827 #, no-wrap
17828 msgid ""
17829 " zero-device device\n"
17830 "\n"
17831 msgstr ""
17832
17833 #. type: textblock
17834 #: ../fish/guestfish-actions.pod:5519
17835 msgid ""
17836 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
17837 "which just zeroes the first few blocks of a device."
17838 msgstr ""
17839
17840 #. type: =head2
17841 #: ../fish/guestfish-actions.pod:5527
17842 msgid "zerofree"
17843 msgstr ""
17844
17845 #. type: verbatim
17846 #: ../fish/guestfish-actions.pod:5529
17847 #, no-wrap
17848 msgid ""
17849 " zerofree device\n"
17850 "\n"
17851 msgstr ""
17852
17853 #. type: textblock
17854 #: ../fish/guestfish-actions.pod:5531 ../src/guestfs-actions.pod:8572
17855 msgid ""
17856 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
17857 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
17858 "possible to compress the filesystem more effectively."
17859 msgstr ""
17860
17861 #. type: textblock
17862 #: ../fish/guestfish-actions.pod:5536 ../src/guestfs-actions.pod:8577
17863 msgid "You should B<not> run this program if the filesystem is mounted."
17864 msgstr ""
17865
17866 #. type: textblock
17867 #: ../fish/guestfish-actions.pod:5539 ../src/guestfs-actions.pod:8580
17868 msgid ""
17869 "It is possible that using this program can damage the filesystem or data on "
17870 "the filesystem."
17871 msgstr ""
17872
17873 #. type: =head2
17874 #: ../fish/guestfish-actions.pod:5542
17875 msgid "zfgrep"
17876 msgstr ""
17877
17878 #. type: verbatim
17879 #: ../fish/guestfish-actions.pod:5544
17880 #, no-wrap
17881 msgid ""
17882 " zfgrep pattern path\n"
17883 "\n"
17884 msgstr ""
17885
17886 #. type: textblock
17887 #: ../fish/guestfish-actions.pod:5546 ../src/guestfs-actions.pod:8594
17888 msgid "This calls the external C<zfgrep> program and returns the matching lines."
17889 msgstr ""
17890
17891 #. type: =head2
17892 #: ../fish/guestfish-actions.pod:5552
17893 msgid "zfgrepi"
17894 msgstr ""
17895
17896 #. type: verbatim
17897 #: ../fish/guestfish-actions.pod:5554
17898 #, no-wrap
17899 msgid ""
17900 " zfgrepi pattern path\n"
17901 "\n"
17902 msgstr ""
17903
17904 #. type: textblock
17905 #: ../fish/guestfish-actions.pod:5556 ../src/guestfs-actions.pod:8613
17906 msgid "This calls the external C<zfgrep -i> program and returns the matching lines."
17907 msgstr ""
17908
17909 #. type: =head2
17910 #: ../fish/guestfish-actions.pod:5562
17911 msgid "zfile"
17912 msgstr ""
17913
17914 #. type: verbatim
17915 #: ../fish/guestfish-actions.pod:5564
17916 #, no-wrap
17917 msgid ""
17918 " zfile meth path\n"
17919 "\n"
17920 msgstr ""
17921
17922 #. type: textblock
17923 #: ../fish/guestfish-actions.pod:5566 ../src/guestfs-actions.pod:8639
17924 msgid "This command runs C<file> after first decompressing C<path> using C<method>."
17925 msgstr ""
17926
17927 #. type: textblock
17928 #: ../fish/guestfish-actions.pod:5569 ../src/guestfs-actions.pod:8642
17929 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
17930 msgstr ""
17931
17932 #. type: textblock
17933 #: ../fish/guestfish-actions.pod:5571
17934 msgid "Since 1.0.63, use L</file> instead which can now process compressed files."
17935 msgstr ""
17936
17937 #. type: textblock
17938 #: ../fish/guestfish-actions.pod:5574
17939 msgid "I<This function is deprecated.> In new code, use the L</file> call instead."
17940 msgstr ""
17941
17942 #. type: =head2
17943 #: ../fish/guestfish-actions.pod:5581
17944 msgid "zgrep"
17945 msgstr ""
17946
17947 #. type: verbatim
17948 #: ../fish/guestfish-actions.pod:5583
17949 #, no-wrap
17950 msgid ""
17951 " zgrep regex path\n"
17952 "\n"
17953 msgstr ""
17954
17955 #. type: textblock
17956 #: ../fish/guestfish-actions.pod:5585 ../src/guestfs-actions.pod:8659
17957 msgid "This calls the external C<zgrep> program and returns the matching lines."
17958 msgstr ""
17959
17960 #. type: =head2
17961 #: ../fish/guestfish-actions.pod:5591
17962 msgid "zgrepi"
17963 msgstr ""
17964
17965 #. type: verbatim
17966 #: ../fish/guestfish-actions.pod:5593
17967 #, no-wrap
17968 msgid ""
17969 " zgrepi regex path\n"
17970 "\n"
17971 msgstr ""
17972
17973 #. type: textblock
17974 #: ../fish/guestfish-actions.pod:5595 ../src/guestfs-actions.pod:8678
17975 msgid "This calls the external C<zgrep -i> program and returns the matching lines."
17976 msgstr ""
17977
17978 #. type: =head2
17979 #: ../fish/guestfish-commands.pod:1
17980 msgid "alloc"
17981 msgstr ""
17982
17983 #. type: =head2
17984 #: ../fish/guestfish-commands.pod:3
17985 msgid "allocate"
17986 msgstr ""
17987
17988 #. type: verbatim
17989 #: ../fish/guestfish-commands.pod:5
17990 #, no-wrap
17991 msgid ""
17992 " alloc filename size\n"
17993 "\n"
17994 msgstr ""
17995
17996 #. type: textblock
17997 #: ../fish/guestfish-commands.pod:7
17998 msgid ""
17999 "This creates an empty (zeroed) file of the given size, and then adds so it "
18000 "can be further examined."
18001 msgstr ""
18002
18003 #. type: textblock
18004 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
18005 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
18006 msgstr ""
18007
18008 #. type: textblock
18009 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
18010 msgid "Size can be specified using standard suffixes, eg. C<1M>."
18011 msgstr ""
18012
18013 #. type: textblock
18014 #: ../fish/guestfish-commands.pod:14
18015 msgid ""
18016 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
18017 "image, see L</PREPARED DISK IMAGES>."
18018 msgstr ""
18019
18020 #. type: =head2
18021 #: ../fish/guestfish-commands.pod:17
18022 msgid "copy-in"
18023 msgstr ""
18024
18025 #. type: verbatim
18026 #: ../fish/guestfish-commands.pod:19
18027 #, no-wrap
18028 msgid ""
18029 " copy-in local [local ...] /remotedir\n"
18030 "\n"
18031 msgstr ""
18032
18033 #. type: textblock
18034 #: ../fish/guestfish-commands.pod:21
18035 msgid ""
18036 "C<copy-in> copies local files or directories recursively into the disk "
18037 "image, placing them in the directory called C</remotedir> (which must "
18038 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
18039 "other commands as necessary."
18040 msgstr ""
18041
18042 #. type: textblock
18043 #: ../fish/guestfish-commands.pod:26
18044 msgid ""
18045 "Multiple local files and directories can be specified, but the last "
18046 "parameter must always be a remote directory.  Wildcards cannot be used."
18047 msgstr ""
18048
18049 #. type: =head2
18050 #: ../fish/guestfish-commands.pod:30
18051 msgid "copy-out"
18052 msgstr ""
18053
18054 #. type: verbatim
18055 #: ../fish/guestfish-commands.pod:32
18056 #, no-wrap
18057 msgid ""
18058 " copy-out remote [remote ...] localdir\n"
18059 "\n"
18060 msgstr ""
18061
18062 #. type: textblock
18063 #: ../fish/guestfish-commands.pod:34
18064 msgid ""
18065 "C<copy-out> copies remote files or directories recursively out of the disk "
18066 "image, placing them on the host disk in a local directory called C<localdir> "
18067 "(which must exist).  This guestfish meta-command turns into a sequence of "
18068 "L</download>, L</tar-out> and other commands as necessary."
18069 msgstr ""
18070
18071 #. type: textblock
18072 #: ../fish/guestfish-commands.pod:40
18073 msgid ""
18074 "Multiple remote files and directories can be specified, but the last "
18075 "parameter must always be a local directory.  To download to the current "
18076 "directory, use C<.> as in:"
18077 msgstr ""
18078
18079 #. type: verbatim
18080 #: ../fish/guestfish-commands.pod:44
18081 #, no-wrap
18082 msgid ""
18083 " copy-out /home .\n"
18084 "\n"
18085 msgstr ""
18086
18087 #. type: textblock
18088 #: ../fish/guestfish-commands.pod:46
18089 msgid ""
18090 "Wildcards cannot be used in the ordinary command, but you can use them with "
18091 "the help of L</glob> like this:"
18092 msgstr ""
18093
18094 #. type: verbatim
18095 #: ../fish/guestfish-commands.pod:49
18096 #, no-wrap
18097 msgid ""
18098 " glob copy-out /home/* .\n"
18099 "\n"
18100 msgstr ""
18101
18102 #. type: =head2
18103 #: ../fish/guestfish-commands.pod:51
18104 msgid "display"
18105 msgstr ""
18106
18107 #. type: verbatim
18108 #: ../fish/guestfish-commands.pod:53
18109 #, no-wrap
18110 msgid ""
18111 " display filename\n"
18112 "\n"
18113 msgstr ""
18114
18115 #. type: textblock
18116 #: ../fish/guestfish-commands.pod:55
18117 msgid ""
18118 "Use C<display> (a graphical display program) to display an image file.  It "
18119 "downloads the file, and runs C<display> on it."
18120 msgstr ""
18121
18122 #. type: textblock
18123 #: ../fish/guestfish-commands.pod:58
18124 msgid ""
18125 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
18126 "environment variable.  For example to use the GNOME display program:"
18127 msgstr ""
18128
18129 #. type: verbatim
18130 #: ../fish/guestfish-commands.pod:61
18131 #, no-wrap
18132 msgid ""
18133 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
18134 "\n"
18135 msgstr ""
18136
18137 #. type: textblock
18138 #: ../fish/guestfish-commands.pod:63
18139 msgid "See also L<display(1)>."
18140 msgstr ""
18141
18142 #. type: =head2
18143 #: ../fish/guestfish-commands.pod:65
18144 msgid "echo"
18145 msgstr ""
18146
18147 #. type: verbatim
18148 #: ../fish/guestfish-commands.pod:67
18149 #, no-wrap
18150 msgid ""
18151 " echo [params ...]\n"
18152 "\n"
18153 msgstr ""
18154
18155 #. type: textblock
18156 #: ../fish/guestfish-commands.pod:69
18157 msgid "This echos the parameters to the terminal."
18158 msgstr ""
18159
18160 #. type: =head2
18161 #: ../fish/guestfish-commands.pod:71
18162 msgid "edit"
18163 msgstr ""
18164
18165 #. type: =head2
18166 #: ../fish/guestfish-commands.pod:73
18167 msgid "vi"
18168 msgstr ""
18169
18170 #. type: =head2
18171 #: ../fish/guestfish-commands.pod:75
18172 msgid "emacs"
18173 msgstr ""
18174
18175 #. type: verbatim
18176 #: ../fish/guestfish-commands.pod:77
18177 #, no-wrap
18178 msgid ""
18179 " edit filename\n"
18180 "\n"
18181 msgstr ""
18182
18183 #. type: textblock
18184 #: ../fish/guestfish-commands.pod:79
18185 msgid ""
18186 "This is used to edit a file.  It downloads the file, edits it locally using "
18187 "your editor, then uploads the result."
18188 msgstr ""
18189
18190 #. type: textblock
18191 #: ../fish/guestfish-commands.pod:82
18192 msgid ""
18193 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
18194 "or C<emacs> you will get those corresponding editors."
18195 msgstr ""
18196
18197 #. type: =head2
18198 #: ../fish/guestfish-commands.pod:86
18199 msgid "glob"
18200 msgstr ""
18201
18202 #. type: verbatim
18203 #: ../fish/guestfish-commands.pod:88
18204 #, no-wrap
18205 msgid ""
18206 " glob command args...\n"
18207 "\n"
18208 msgstr ""
18209
18210 #. type: textblock
18211 #: ../fish/guestfish-commands.pod:90
18212 msgid ""
18213 "Expand wildcards in any paths in the args list, and run C<command> "
18214 "repeatedly on each matching path."
18215 msgstr ""
18216
18217 #. type: textblock
18218 #: ../fish/guestfish-commands.pod:93
18219 msgid "See L</WILDCARDS AND GLOBBING>."
18220 msgstr ""
18221
18222 #. type: =head2
18223 #: ../fish/guestfish-commands.pod:95
18224 msgid "hexedit"
18225 msgstr ""
18226
18227 #. type: verbatim
18228 #: ../fish/guestfish-commands.pod:97
18229 #, no-wrap
18230 msgid ""
18231 " hexedit <filename|device>\n"
18232 " hexedit <filename|device> <max>\n"
18233 " hexedit <filename|device> <start> <max>\n"
18234 "\n"
18235 msgstr ""
18236
18237 #. type: textblock
18238 #: ../fish/guestfish-commands.pod:101
18239 msgid ""
18240 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
18241 "device."
18242 msgstr ""
18243
18244 #. type: textblock
18245 #: ../fish/guestfish-commands.pod:104
18246 msgid ""
18247 "This command works by downloading potentially the whole file or device, "
18248 "editing it locally, then uploading it.  If the file or device is large, you "
18249 "have to specify which part you wish to edit by using C<max> and/or C<start> "
18250 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
18251 "usual modifiers allowed such as C<1M> (1 megabyte)."
18252 msgstr ""
18253
18254 #. type: textblock
18255 #: ../fish/guestfish-commands.pod:111
18256 msgid "For example to edit the first few sectors of a disk you might do:"
18257 msgstr ""
18258
18259 #. type: verbatim
18260 #: ../fish/guestfish-commands.pod:114
18261 #, no-wrap
18262 msgid ""
18263 " hexedit /dev/sda 1M\n"
18264 "\n"
18265 msgstr ""
18266
18267 #. type: textblock
18268 #: ../fish/guestfish-commands.pod:116
18269 msgid ""
18270 "which would allow you to edit anywhere within the first megabyte of the "
18271 "disk."
18272 msgstr ""
18273
18274 #. type: textblock
18275 #: ../fish/guestfish-commands.pod:119
18276 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
18277 msgstr ""
18278
18279 #. type: verbatim
18280 #: ../fish/guestfish-commands.pod:121
18281 #, no-wrap
18282 msgid ""
18283 " hexedit /dev/sda1 0x400 0x400\n"
18284 "\n"
18285 msgstr ""
18286
18287 #. type: textblock
18288 #: ../fish/guestfish-commands.pod:123
18289 msgid "(assuming the superblock is in the standard location)."
18290 msgstr ""
18291
18292 #. type: textblock
18293 #: ../fish/guestfish-commands.pod:125
18294 msgid ""
18295 "This command requires the external L<hexedit(1)> program.  You can specify "
18296 "another program to use by setting the C<HEXEDITOR> environment variable."
18297 msgstr ""
18298
18299 #. type: textblock
18300 #: ../fish/guestfish-commands.pod:129
18301 msgid "See also L</hexdump>."
18302 msgstr ""
18303
18304 #. type: =head2
18305 #: ../fish/guestfish-commands.pod:131
18306 msgid "lcd"
18307 msgstr ""
18308
18309 #. type: verbatim
18310 #: ../fish/guestfish-commands.pod:133
18311 #, no-wrap
18312 msgid ""
18313 " lcd directory\n"
18314 "\n"
18315 msgstr ""
18316
18317 #. type: textblock
18318 #: ../fish/guestfish-commands.pod:135
18319 msgid "Change the local directory, ie. the current directory of guestfish itself."
18320 msgstr ""
18321
18322 #. type: textblock
18323 #: ../fish/guestfish-commands.pod:138
18324 msgid "Note that C<!cd> won't do what you might expect."
18325 msgstr ""
18326
18327 #. type: =head2
18328 #: ../fish/guestfish-commands.pod:140
18329 msgid "man"
18330 msgstr ""
18331
18332 #. type: =head2
18333 #: ../fish/guestfish-commands.pod:142
18334 msgid "manual"
18335 msgstr ""
18336
18337 #. type: verbatim
18338 #: ../fish/guestfish-commands.pod:144
18339 #, no-wrap
18340 msgid ""
18341 "  man\n"
18342 "\n"
18343 msgstr ""
18344
18345 #. type: textblock
18346 #: ../fish/guestfish-commands.pod:146
18347 msgid "Opens the manual page for guestfish."
18348 msgstr ""
18349
18350 #. type: =head2
18351 #: ../fish/guestfish-commands.pod:148
18352 msgid "more"
18353 msgstr ""
18354
18355 #. type: =head2
18356 #: ../fish/guestfish-commands.pod:150
18357 msgid "less"
18358 msgstr ""
18359
18360 #. type: verbatim
18361 #: ../fish/guestfish-commands.pod:152
18362 #, no-wrap
18363 msgid ""
18364 " more filename\n"
18365 "\n"
18366 msgstr ""
18367
18368 #. type: verbatim
18369 #: ../fish/guestfish-commands.pod:154
18370 #, no-wrap
18371 msgid ""
18372 " less filename\n"
18373 "\n"
18374 msgstr ""
18375
18376 #. type: textblock
18377 #: ../fish/guestfish-commands.pod:156
18378 msgid "This is used to view a file."
18379 msgstr ""
18380
18381 #. type: textblock
18382 #: ../fish/guestfish-commands.pod:158
18383 msgid ""
18384 "The default viewer is C<$PAGER>.  However if you use the alternate command "
18385 "C<less> you will get the C<less> command specifically."
18386 msgstr ""
18387
18388 #. type: =head2
18389 #: ../fish/guestfish-commands.pod:161
18390 msgid "reopen"
18391 msgstr ""
18392
18393 #. type: verbatim
18394 #: ../fish/guestfish-commands.pod:163
18395 #, no-wrap
18396 msgid ""
18397 "  reopen\n"
18398 "\n"
18399 msgstr ""
18400
18401 #. type: textblock
18402 #: ../fish/guestfish-commands.pod:165
18403 msgid ""
18404 "Close and reopen the libguestfs handle.  It is not necessary to use this "
18405 "normally, because the handle is closed properly when guestfish exits.  "
18406 "However this is occasionally useful for testing."
18407 msgstr ""
18408
18409 #. type: =head2
18410 #: ../fish/guestfish-commands.pod:169
18411 msgid "setenv"
18412 msgstr ""
18413
18414 #. type: verbatim
18415 #: ../fish/guestfish-commands.pod:171
18416 #, no-wrap
18417 msgid ""
18418 "  setenv VAR value\n"
18419 "\n"
18420 msgstr ""
18421
18422 #. type: textblock
18423 #: ../fish/guestfish-commands.pod:173
18424 msgid "Set the environment variable C<VAR> to the string C<value>."
18425 msgstr ""
18426
18427 #. type: textblock
18428 #: ../fish/guestfish-commands.pod:175
18429 msgid "To print the value of an environment variable use a shell command such as:"
18430 msgstr ""
18431
18432 #. type: verbatim
18433 #: ../fish/guestfish-commands.pod:178
18434 #, no-wrap
18435 msgid ""
18436 " !echo $VAR\n"
18437 "\n"
18438 msgstr ""
18439
18440 #. type: =head2
18441 #: ../fish/guestfish-commands.pod:180
18442 msgid "sparse"
18443 msgstr ""
18444
18445 #. type: verbatim
18446 #: ../fish/guestfish-commands.pod:182
18447 #, no-wrap
18448 msgid ""
18449 " sparse filename size\n"
18450 "\n"
18451 msgstr ""
18452
18453 #. type: textblock
18454 #: ../fish/guestfish-commands.pod:184
18455 msgid ""
18456 "This creates an empty sparse file of the given size, and then adds so it can "
18457 "be further examined."
18458 msgstr ""
18459
18460 #. type: textblock
18461 #: ../fish/guestfish-commands.pod:187
18462 msgid ""
18463 "In all respects it works the same as the L</alloc> command, except that the "
18464 "image file is allocated sparsely, which means that disk blocks are not "
18465 "assigned to the file until they are needed.  Sparse disk files only use "
18466 "space when written to, but they are slower and there is a danger you could "
18467 "run out of real disk space during a write operation."
18468 msgstr ""
18469
18470 #. type: =head2
18471 #: ../fish/guestfish-commands.pod:197
18472 msgid "supported"
18473 msgstr ""
18474
18475 #. type: verbatim
18476 #: ../fish/guestfish-commands.pod:199
18477 #, no-wrap
18478 msgid ""
18479 " supported\n"
18480 "\n"
18481 msgstr ""
18482
18483 #. type: textblock
18484 #: ../fish/guestfish-commands.pod:201
18485 msgid ""
18486 "This command returns a list of the optional groups known to the daemon, and "
18487 "indicates which ones are supported by this build of the libguestfs "
18488 "appliance."
18489 msgstr ""
18490
18491 #. type: textblock
18492 #: ../fish/guestfish-commands.pod:205
18493 msgid "See also L<guestfs(3)/AVAILABILITY>."
18494 msgstr ""
18495
18496 #. type: =head2
18497 #: ../fish/guestfish-commands.pod:207
18498 msgid "time"
18499 msgstr ""
18500
18501 #. type: verbatim
18502 #: ../fish/guestfish-commands.pod:209
18503 #, no-wrap
18504 msgid ""
18505 " time command args...\n"
18506 "\n"
18507 msgstr ""
18508
18509 #. type: textblock
18510 #: ../fish/guestfish-commands.pod:211
18511 msgid ""
18512 "Run the command as usual, but print the elapsed time afterwards.  This can "
18513 "be useful for benchmarking operations."
18514 msgstr ""
18515
18516 #. type: =head2
18517 #: ../fish/guestfish-commands.pod:214
18518 msgid "unsetenv"
18519 msgstr ""
18520
18521 #. type: verbatim
18522 #: ../fish/guestfish-commands.pod:216
18523 #, no-wrap
18524 msgid ""
18525 "  unsetenv VAR\n"
18526 "\n"
18527 msgstr ""
18528
18529 #. type: textblock
18530 #: ../fish/guestfish-commands.pod:218
18531 msgid "Remove C<VAR> from the environment."
18532 msgstr ""
18533
18534 #. type: textblock
18535 #: ../fish/guestfish.pod:5
18536 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
18537 msgstr ""
18538
18539 #. type: verbatim
18540 #: ../fish/guestfish.pod:9
18541 #, no-wrap
18542 msgid ""
18543 " guestfish [--options] [commands]\n"
18544 "\n"
18545 msgstr ""
18546
18547 #. type: verbatim
18548 #: ../fish/guestfish.pod:11
18549 #, no-wrap
18550 msgid ""
18551 " guestfish\n"
18552 "\n"
18553 msgstr ""
18554
18555 #. type: verbatim
18556 #: ../fish/guestfish.pod:13
18557 #, no-wrap
18558 msgid ""
18559 " guestfish [--ro|--rw] -a disk.img\n"
18560 "\n"
18561 msgstr ""
18562
18563 #. type: verbatim
18564 #: ../fish/guestfish.pod:15
18565 #, no-wrap
18566 msgid ""
18567 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
18568 "\n"
18569 msgstr ""
18570
18571 #. type: verbatim
18572 #: ../fish/guestfish.pod:17
18573 #, no-wrap
18574 msgid ""
18575 " guestfish -d libvirt-domain\n"
18576 "\n"
18577 msgstr ""
18578
18579 #. type: verbatim
18580 #: ../fish/guestfish.pod:19
18581 #, no-wrap
18582 msgid ""
18583 " guestfish [--ro|--rw] -a disk.img -i\n"
18584 "\n"
18585 msgstr ""
18586
18587 #. type: verbatim
18588 #: ../fish/guestfish.pod:21
18589 #, no-wrap
18590 msgid ""
18591 " guestfish -d libvirt-domain -i\n"
18592 "\n"
18593 msgstr ""
18594
18595 #. type: textblock
18596 #: ../fish/guestfish.pod:25
18597 msgid ""
18598 "Using guestfish in read/write mode on live virtual machines can be "
18599 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
18600 "option to use guestfish safely if the disk image or virtual machine might be "
18601 "live."
18602 msgstr ""
18603
18604 #. type: textblock
18605 #: ../fish/guestfish.pod:32
18606 msgid ""
18607 "Guestfish is a shell and command-line tool for examining and modifying "
18608 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
18609 "functionality of the guestfs API, see L<guestfs(3)>."
18610 msgstr ""
18611
18612 #. type: textblock
18613 #: ../fish/guestfish.pod:36
18614 msgid ""
18615 "Guestfish gives you structured access to the libguestfs API, from shell "
18616 "scripts or the command line or interactively.  If you want to rescue a "
18617 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
18618 "command."
18619 msgstr ""
18620
18621 #. type: =head2
18622 #: ../fish/guestfish.pod:43
18623 msgid "As an interactive shell"
18624 msgstr ""
18625
18626 #. type: verbatim
18627 #: ../fish/guestfish.pod:45
18628 #, no-wrap
18629 msgid ""
18630 " $ guestfish\n"
18631 " \n"
18632 msgstr ""
18633
18634 #. type: verbatim
18635 #: ../fish/guestfish.pod:47
18636 #, no-wrap
18637 msgid ""
18638 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
18639 " editing virtual machine filesystems.\n"
18640 " \n"
18641 msgstr ""
18642
18643 #. type: verbatim
18644 #: ../fish/guestfish.pod:50
18645 #, no-wrap
18646 msgid ""
18647 " Type: 'help' for a list of commands\n"
18648 "       'man' to read the manual\n"
18649 "       'quit' to quit the shell\n"
18650 " \n"
18651 msgstr ""
18652
18653 #. type: verbatim
18654 #: ../fish/guestfish.pod:54
18655 #, no-wrap
18656 msgid ""
18657 " ><fs> add-ro disk.img\n"
18658 " ><fs> run\n"
18659 " ><fs> list-filesystems\n"
18660 " /dev/sda1: ext4\n"
18661 " /dev/vg_guest/lv_root: ext4\n"
18662 " /dev/vg_guest/lv_swap: swap\n"
18663 " ><fs> mount /dev/vg_guest/lv_root /\n"
18664 " ><fs> cat /etc/fstab\n"
18665 " # /etc/fstab\n"
18666 " # Created by anaconda\n"
18667 " [...]\n"
18668 " ><fs> exit\n"
18669 "\n"
18670 msgstr ""
18671
18672 #. type: =head2
18673 #: ../fish/guestfish.pod:67
18674 msgid "From shell scripts"
18675 msgstr ""
18676
18677 #. type: textblock
18678 #: ../fish/guestfish.pod:69
18679 msgid "Create a new C</etc/motd> file in a guest or disk image:"
18680 msgstr ""
18681
18682 #. type: verbatim
18683 #: ../fish/guestfish.pod:71
18684 #, no-wrap
18685 msgid ""
18686 " guestfish <<_EOF_\n"
18687 " add disk.img\n"
18688 " run\n"
18689 " mount /dev/vg_guest/lv_root /\n"
18690 " write /etc/motd \"Welcome, new users\"\n"
18691 " _EOF_\n"
18692 "\n"
18693 msgstr ""
18694
18695 #. type: textblock
18696 #: ../fish/guestfish.pod:78
18697 msgid "List the LVM logical volumes in a disk image:"
18698 msgstr ""
18699
18700 #. type: verbatim
18701 #: ../fish/guestfish.pod:80
18702 #, no-wrap
18703 msgid ""
18704 " guestfish -a disk.img --ro <<_EOF_\n"
18705 " run\n"
18706 " lvs\n"
18707 " _EOF_\n"
18708 "\n"
18709 msgstr ""
18710
18711 #. type: textblock
18712 #: ../fish/guestfish.pod:85
18713 msgid "List all the filesystems in a disk image:"
18714 msgstr ""
18715
18716 #. type: verbatim
18717 #: ../fish/guestfish.pod:87
18718 #, no-wrap
18719 msgid ""
18720 " guestfish -a disk.img --ro <<_EOF_\n"
18721 " run\n"
18722 " list-filesystems\n"
18723 " _EOF_\n"
18724 "\n"
18725 msgstr ""
18726
18727 #. type: =head2
18728 #: ../fish/guestfish.pod:92
18729 msgid "On one command line"
18730 msgstr ""
18731
18732 #. type: textblock
18733 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
18734 msgid "Update C</etc/resolv.conf> in a guest:"
18735 msgstr ""
18736
18737 #. type: verbatim
18738 #: ../fish/guestfish.pod:96
18739 #, no-wrap
18740 msgid ""
18741 " guestfish \\\n"
18742 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
18743 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
18744 "\n"
18745 msgstr ""
18746
18747 #. type: textblock
18748 #: ../fish/guestfish.pod:100
18749 msgid "Edit C</boot/grub/grub.conf> interactively:"
18750 msgstr ""
18751
18752 #. type: verbatim
18753 #: ../fish/guestfish.pod:102
18754 #, no-wrap
18755 msgid ""
18756 " guestfish --rw --add disk.img \\\n"
18757 "   --mount /dev/vg_guest/lv_root \\\n"
18758 "   --mount /dev/sda1:/boot \\\n"
18759 "   edit /boot/grub/grub.conf\n"
18760 "\n"
18761 msgstr ""
18762
18763 #. type: =head2
18764 #: ../fish/guestfish.pod:107
18765 msgid "Mount disks automatically"
18766 msgstr ""
18767
18768 #. type: textblock
18769 #: ../fish/guestfish.pod:109
18770 msgid ""
18771 "Use the I<-i> option to automatically mount the disks from a virtual "
18772 "machine:"
18773 msgstr ""
18774
18775 #. type: verbatim
18776 #: ../fish/guestfish.pod:112
18777 #, no-wrap
18778 msgid ""
18779 " guestfish --ro -a disk.img -i cat /etc/group\n"
18780 "\n"
18781 msgstr ""
18782
18783 #. type: verbatim
18784 #: ../fish/guestfish.pod:114
18785 #, no-wrap
18786 msgid ""
18787 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
18788 "\n"
18789 msgstr ""
18790
18791 #. type: textblock
18792 #: ../fish/guestfish.pod:116
18793 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
18794 msgstr ""
18795
18796 #. type: verbatim
18797 #: ../fish/guestfish.pod:118
18798 #, no-wrap
18799 msgid ""
18800 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
18801 "\n"
18802 msgstr ""
18803
18804 #. type: =head2
18805 #: ../fish/guestfish.pod:120
18806 msgid "As a script interpreter"
18807 msgstr ""
18808
18809 #. type: textblock
18810 #: ../fish/guestfish.pod:122
18811 msgid "Create a 100MB disk containing an ext2-formatted partition:"
18812 msgstr ""
18813
18814 #. type: verbatim
18815 #: ../fish/guestfish.pod:124
18816 #, no-wrap
18817 msgid ""
18818 " #!/usr/bin/guestfish -f\n"
18819 " sparse test1.img 100M\n"
18820 " run\n"
18821 " part-disk /dev/sda mbr\n"
18822 " mkfs ext2 /dev/sda1\n"
18823 "\n"
18824 msgstr ""
18825
18826 #. type: =head2
18827 #: ../fish/guestfish.pod:130
18828 msgid "Start with a prepared disk"
18829 msgstr ""
18830
18831 #. type: textblock
18832 #: ../fish/guestfish.pod:132
18833 msgid ""
18834 "An alternate way to create a 100MB disk called C<test1.img> containing a "
18835 "single ext2-formatted partition:"
18836 msgstr ""
18837
18838 #. type: verbatim
18839 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2243
18840 #, no-wrap
18841 msgid ""
18842 " guestfish -N fs\n"
18843 "\n"
18844 msgstr ""
18845
18846 #. type: textblock
18847 #: ../fish/guestfish.pod:137
18848 msgid "To list what is available do:"
18849 msgstr ""
18850
18851 #. type: verbatim
18852 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
18853 #, no-wrap
18854 msgid ""
18855 " guestfish -N help | less\n"
18856 "\n"
18857 msgstr ""
18858
18859 #. type: =head2
18860 #: ../fish/guestfish.pod:141
18861 msgid "Remote control"
18862 msgstr ""
18863
18864 #. type: verbatim
18865 #: ../fish/guestfish.pod:143
18866 #, no-wrap
18867 msgid ""
18868 " eval \"`guestfish --listen`\"\n"
18869 " guestfish --remote add-ro disk.img\n"
18870 " guestfish --remote run\n"
18871 " guestfish --remote lvs\n"
18872 "\n"
18873 msgstr ""
18874
18875 #. type: textblock
18876 #: ../fish/guestfish.pod:154
18877 msgid "Displays general help on options."
18878 msgstr ""
18879
18880 #. type: =item
18881 #: ../fish/guestfish.pod:158
18882 msgid "B<--cmd-help>"
18883 msgstr ""
18884
18885 #. type: textblock
18886 #: ../fish/guestfish.pod:160
18887 msgid "Lists all available guestfish commands."
18888 msgstr ""
18889
18890 #. type: =item
18891 #: ../fish/guestfish.pod:162
18892 msgid "B<-h cmd>"
18893 msgstr ""
18894
18895 #. type: =item
18896 #: ../fish/guestfish.pod:164
18897 msgid "B<--cmd-help cmd>"
18898 msgstr ""
18899
18900 #. type: textblock
18901 #: ../fish/guestfish.pod:166
18902 msgid "Displays detailed help on a single command C<cmd>."
18903 msgstr ""
18904
18905 #. type: =item
18906 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
18907 msgid "B<-a image>"
18908 msgstr ""
18909
18910 #. type: =item
18911 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
18912 msgid "B<--add image>"
18913 msgstr ""
18914
18915 #. type: textblock
18916 #: ../fish/guestfish.pod:172
18917 msgid "Add a block device or virtual machine image to the shell."
18918 msgstr ""
18919
18920 #. type: textblock
18921 #: ../fish/guestfish.pod:177
18922 msgid ""
18923 "Using this flag is mostly equivalent to using the C<add> command, with "
18924 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
18925 "the I<--format=...> flag was given."
18926 msgstr ""
18927
18928 #. type: textblock
18929 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
18930 msgid ""
18931 "When used in conjunction with the I<-d> option, this specifies the libvirt "
18932 "URI to use.  The default is to use the default libvirt connection."
18933 msgstr ""
18934
18935 #. type: =item
18936 #: ../fish/guestfish.pod:189
18937 msgid "B<--csh>"
18938 msgstr ""
18939
18940 #. type: textblock
18941 #: ../fish/guestfish.pod:191
18942 msgid ""
18943 "If using the I<--listen> option and a csh-like shell, use this option.  See "
18944 "section L</REMOTE CONTROL AND CSH> below."
18945 msgstr ""
18946
18947 #. type: =item
18948 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
18949 msgid "B<-d libvirt-domain>"
18950 msgstr ""
18951
18952 #. type: =item
18953 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
18954 msgid "B<--domain libvirt-domain>"
18955 msgstr ""
18956
18957 #. type: textblock
18958 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
18959 msgid ""
18960 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
18961 "used, then any libvirt domain can be used.  However in write mode, only "
18962 "libvirt domains which are shut down can be named here."
18963 msgstr ""
18964
18965 #. type: textblock
18966 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
18967 msgid "Domain UUIDs can be used instead of names."
18968 msgstr ""
18969
18970 #. type: textblock
18971 #: ../fish/guestfish.pod:204
18972 msgid ""
18973 "Using this flag is mostly equivalent to using the C<add-domain> command, "
18974 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
18975 "if the I<--format:...> flag was given."
18976 msgstr ""
18977
18978 #. type: =item
18979 #: ../fish/guestfish.pod:208
18980 msgid "B<-D>"
18981 msgstr ""
18982
18983 #. type: =item
18984 #: ../fish/guestfish.pod:210
18985 msgid "B<--no-dest-paths>"
18986 msgstr ""
18987
18988 #. type: textblock
18989 #: ../fish/guestfish.pod:212
18990 msgid ""
18991 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
18992 "to hit the tab key to complete paths on the guest filesystem, but this "
18993 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
18994 "allow this feature to be disabled."
18995 msgstr ""
18996
18997 #. type: textblock
18998 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
18999 msgid ""
19000 "When prompting for keys and passphrases, guestfish normally turns echoing "
19001 "off so you cannot see what you are typing.  If you are not worried about "
19002 "Tempest attacks and there is no one else in the room you can specify this "
19003 "flag to see what you are typing."
19004 msgstr ""
19005
19006 #. type: =item
19007 #: ../fish/guestfish.pod:224
19008 msgid "B<-f file>"
19009 msgstr ""
19010
19011 #. type: =item
19012 #: ../fish/guestfish.pod:226
19013 msgid "B<--file file>"
19014 msgstr ""
19015
19016 #. type: textblock
19017 #: ../fish/guestfish.pod:228
19018 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
19019 msgstr ""
19020
19021 #. type: verbatim
19022 #: ../fish/guestfish.pod:231
19023 #, no-wrap
19024 msgid ""
19025 " #!/usr/bin/guestfish -f\n"
19026 "\n"
19027 msgstr ""
19028
19029 #. type: verbatim
19030 #: ../fish/guestfish.pod:244
19031 #, no-wrap
19032 msgid ""
19033 " guestfish --format=raw -a disk.img\n"
19034 "\n"
19035 msgstr ""
19036
19037 #. type: verbatim
19038 #: ../fish/guestfish.pod:248
19039 #, no-wrap
19040 msgid ""
19041 " guestfish --format=raw -a disk.img --format -a another.img\n"
19042 "\n"
19043 msgstr ""
19044
19045 #. type: textblock
19046 #: ../fish/guestfish.pod:253
19047 msgid ""
19048 "If you have untrusted raw-format guest disk images, you should use this "
19049 "option to specify the disk format.  This avoids a possible security problem "
19050 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
19051 msgstr ""
19052
19053 #. type: =item
19054 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
19055 msgid "B<--inspector>"
19056 msgstr ""
19057
19058 #. type: textblock
19059 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
19060 msgid ""
19061 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
19062 "system and mount filesystems as they would be mounted on the real virtual "
19063 "machine."
19064 msgstr ""
19065
19066 #. type: textblock
19067 #: ../fish/guestfish.pod:266
19068 msgid "Typical usage is either:"
19069 msgstr ""
19070
19071 #. type: verbatim
19072 #: ../fish/guestfish.pod:268
19073 #, no-wrap
19074 msgid ""
19075 " guestfish -d myguest -i\n"
19076 "\n"
19077 msgstr ""
19078
19079 #. type: textblock
19080 #: ../fish/guestfish.pod:270
19081 msgid "(for an inactive libvirt domain called I<myguest>), or:"
19082 msgstr ""
19083
19084 #. type: verbatim
19085 #: ../fish/guestfish.pod:272
19086 #, no-wrap
19087 msgid ""
19088 " guestfish --ro -d myguest -i\n"
19089 "\n"
19090 msgstr ""
19091
19092 #. type: textblock
19093 #: ../fish/guestfish.pod:274
19094 msgid "(for active domains, readonly), or specify the block device directly:"
19095 msgstr ""
19096
19097 #. type: verbatim
19098 #: ../fish/guestfish.pod:276
19099 #, no-wrap
19100 msgid ""
19101 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
19102 "\n"
19103 msgstr ""
19104
19105 #. type: textblock
19106 #: ../fish/guestfish.pod:278
19107 msgid ""
19108 "Note that the command line syntax changed slightly over older versions of "
19109 "guestfish.  You can still use the old syntax:"
19110 msgstr ""
19111
19112 #. type: verbatim
19113 #: ../fish/guestfish.pod:281
19114 #, no-wrap
19115 msgid ""
19116 " guestfish [--ro] -i disk.img\n"
19117 "\n"
19118 msgstr ""
19119
19120 #. type: verbatim
19121 #: ../fish/guestfish.pod:283
19122 #, no-wrap
19123 msgid ""
19124 " guestfish [--ro] -i libvirt-domain\n"
19125 "\n"
19126 msgstr ""
19127
19128 #. type: textblock
19129 #: ../fish/guestfish.pod:285
19130 msgid ""
19131 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
19132 "then using other commands to mount the filesystems that were found."
19133 msgstr ""
19134
19135 #. type: =item
19136 #: ../fish/guestfish.pod:294
19137 msgid "B<--listen>"
19138 msgstr ""
19139
19140 #. type: textblock
19141 #: ../fish/guestfish.pod:296
19142 msgid ""
19143 "Fork into the background and listen for remote commands.  See section "
19144 "L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
19145 msgstr ""
19146
19147 #. type: =item
19148 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
19149 msgid "B<--live>"
19150 msgstr ""
19151
19152 #. type: textblock
19153 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
19154 msgid ""
19155 "Connect to a live virtual machine.  (Experimental, see "
19156 "L<guestfs(3)/ATTACHING TO RUNNING DAEMONS>)."
19157 msgstr ""
19158
19159 #. type: =item
19160 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
19161 msgid "B<-m dev[:mountpoint[:options]]>"
19162 msgstr ""
19163
19164 #. type: =item
19165 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
19166 msgid "B<--mount dev[:mountpoint[:options]]>"
19167 msgstr ""
19168
19169 #. type: textblock
19170 #: ../fish/guestfish.pod:308
19171 msgid "Mount the named partition or logical volume on the given mountpoint."
19172 msgstr ""
19173
19174 #. type: textblock
19175 #: ../fish/guestfish.pod:310
19176 msgid "If the mountpoint is omitted, it defaults to C</>."
19177 msgstr ""
19178
19179 #. type: textblock
19180 #: ../fish/guestfish.pod:312
19181 msgid "You have to mount something on C</> before most commands will work."
19182 msgstr ""
19183
19184 #. type: textblock
19185 #: ../fish/guestfish.pod:314
19186 msgid ""
19187 "If any I<-m> or I<--mount> options are given, the guest is automatically "
19188 "launched."
19189 msgstr ""
19190
19191 #. type: textblock
19192 #: ../fish/guestfish.pod:317
19193 msgid ""
19194 "If you don't know what filesystems a disk image contains, you can either run "
19195 "guestfish without this option, then list the partitions, filesystems and LVs "
19196 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
19197 "commands), or you can use the L<virt-filesystems(1)> program."
19198 msgstr ""
19199
19200 #. type: textblock
19201 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
19202 msgid ""
19203 "The third (and rarely used) part of the mount parameter is the list of mount "
19204 "options used to mount the underlying filesystem.  If this is not given, then "
19205 "the mount options are either the empty string or C<ro> (the latter if the "
19206 "I<--ro> flag is used).  By specifying the mount options, you override this "
19207 "default choice.  Probably the only time you would use this is to enable ACLs "
19208 "and/or extended attributes if the filesystem can support them:"
19209 msgstr ""
19210
19211 #. type: verbatim
19212 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
19213 #, no-wrap
19214 msgid ""
19215 " -m /dev/sda1:/:acl,user_xattr\n"
19216 "\n"
19217 msgstr ""
19218
19219 #. type: textblock
19220 #: ../fish/guestfish.pod:333
19221 msgid "Using this flag is equivalent to using the C<mount-options> command."
19222 msgstr ""
19223
19224 #. type: =item
19225 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202 ../resize/virt-resize.pod:441
19226 msgid "B<-n>"
19227 msgstr ""
19228
19229 #. type: =item
19230 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
19231 msgid "B<--no-sync>"
19232 msgstr ""
19233
19234 #. type: textblock
19235 #: ../fish/guestfish.pod:339
19236 msgid ""
19237 "Disable autosync.  This is enabled by default.  See the discussion of "
19238 "autosync in the L<guestfs(3)> manpage."
19239 msgstr ""
19240
19241 #. type: =item
19242 #: ../fish/guestfish.pod:342
19243 msgid "B<-N type>"
19244 msgstr ""
19245
19246 #. type: =item
19247 #: ../fish/guestfish.pod:344
19248 msgid "B<--new type>"
19249 msgstr ""
19250
19251 #. type: =item
19252 #: ../fish/guestfish.pod:346
19253 msgid "B<-N help>"
19254 msgstr ""
19255
19256 #. type: textblock
19257 #: ../fish/guestfish.pod:348
19258 msgid ""
19259 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
19260 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
19261 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
19262 "IMAGES> below."
19263 msgstr ""
19264
19265 #. type: =item
19266 #: ../fish/guestfish.pod:353
19267 msgid "B<--progress-bars>"
19268 msgstr ""
19269
19270 #. type: textblock
19271 #: ../fish/guestfish.pod:355
19272 msgid "Enable progress bars, even when guestfish is used non-interactively."
19273 msgstr ""
19274
19275 #. type: textblock
19276 #: ../fish/guestfish.pod:357
19277 msgid ""
19278 "Progress bars are enabled by default when guestfish is used as an "
19279 "interactive shell."
19280 msgstr ""
19281
19282 #. type: =item
19283 #: ../fish/guestfish.pod:360
19284 msgid "B<--no-progress-bars>"
19285 msgstr ""
19286
19287 #. type: textblock
19288 #: ../fish/guestfish.pod:362
19289 msgid "Disable progress bars."
19290 msgstr ""
19291
19292 #. type: =item
19293 #: ../fish/guestfish.pod:364
19294 msgid "B<--remote[=pid]>"
19295 msgstr ""
19296
19297 #. type: textblock
19298 #: ../fish/guestfish.pod:366
19299 msgid ""
19300 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
19301 "CONTROL GUESTFISH OVER A SOCKET> below."
19302 msgstr ""
19303
19304 #. type: =item
19305 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248 ../rescue/virt-rescue.pod:189
19306 msgid "B<-r>"
19307 msgstr ""
19308
19309 #. type: =item
19310 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250 ../rescue/virt-rescue.pod:191
19311 msgid "B<--ro>"
19312 msgstr ""
19313
19314 #. type: textblock
19315 #: ../fish/guestfish.pod:373
19316 msgid ""
19317 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19318 "mounts are done read-only."
19319 msgstr ""
19320
19321 #. type: textblock
19322 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:195
19323 msgid ""
19324 "The option must always be used if the disk image or virtual machine might be "
19325 "running, and is generally recommended in cases where you don't need write "
19326 "access to the disk."
19327 msgstr ""
19328
19329 #. type: textblock
19330 #: ../fish/guestfish.pod:380
19331 msgid ""
19332 "Note that prepared disk images created with I<-N> are not affected by this "
19333 "option.  Also commands like C<add> are not affected - you have to specify "
19334 "the C<readonly:true> option explicitly if you need it."
19335 msgstr ""
19336
19337 #. type: textblock
19338 #: ../fish/guestfish.pod:384
19339 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
19340 msgstr ""
19341
19342 #. type: =item
19343 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262 ../rescue/virt-rescue.pod:201
19344 msgid "B<--selinux>"
19345 msgstr ""
19346
19347 #. type: textblock
19348 #: ../fish/guestfish.pod:388
19349 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
19350 msgstr ""
19351
19352 #. type: textblock
19353 #: ../fish/guestfish.pod:394
19354 msgid ""
19355 "Enable very verbose messages.  This is particularly useful if you find a "
19356 "bug."
19357 msgstr ""
19358
19359 #. type: textblock
19360 #: ../fish/guestfish.pod:401
19361 msgid "Display the guestfish / libguestfs version number and exit."
19362 msgstr ""
19363
19364 #. type: =item
19365 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278 ../rescue/virt-rescue.pod:231
19366 msgid "B<-w>"
19367 msgstr ""
19368
19369 #. type: =item
19370 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280 ../rescue/virt-rescue.pod:233
19371 msgid "B<--rw>"
19372 msgstr ""
19373
19374 #. type: textblock
19375 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
19376 msgid ""
19377 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19378 "mounts are done read-write."
19379 msgstr ""
19380
19381 #. type: textblock
19382 #: ../fish/guestfish.pod:410
19383 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
19384 msgstr ""
19385
19386 #. type: textblock
19387 #: ../fish/guestfish.pod:414
19388 msgid "Echo each command before executing it."
19389 msgstr ""
19390
19391 #. type: =head1
19392 #: ../fish/guestfish.pod:418
19393 msgid "COMMANDS ON COMMAND LINE"
19394 msgstr ""
19395
19396 #. type: textblock
19397 #: ../fish/guestfish.pod:420
19398 msgid "Any additional (non-option) arguments are treated as commands to execute."
19399 msgstr ""
19400
19401 #. type: textblock
19402 #: ../fish/guestfish.pod:423
19403 msgid ""
19404 "Commands to execute should be separated by a colon (C<:>), where the colon "
19405 "is a separate parameter.  Thus:"
19406 msgstr ""
19407
19408 #. type: verbatim
19409 #: ../fish/guestfish.pod:426
19410 #, no-wrap
19411 msgid ""
19412 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
19413 "\n"
19414 msgstr ""
19415
19416 #. type: textblock
19417 #: ../fish/guestfish.pod:428
19418 msgid ""
19419 "If there are no additional arguments, then we enter a shell, either an "
19420 "interactive shell with a prompt (if the input is a terminal) or a "
19421 "non-interactive shell."
19422 msgstr ""
19423
19424 #. type: textblock
19425 #: ../fish/guestfish.pod:432
19426 msgid ""
19427 "In either command line mode or non-interactive shell, the first command that "
19428 "gives an error causes the whole shell to exit.  In interactive mode (with a "
19429 "prompt) if a command fails, you can continue to enter commands."
19430 msgstr ""
19431
19432 #. type: =head1
19433 #: ../fish/guestfish.pod:437
19434 msgid "USING launch (OR run)"
19435 msgstr ""
19436
19437 #. type: textblock
19438 #: ../fish/guestfish.pod:439
19439 msgid ""
19440 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
19441 "then launch it, then mount any disks you need, and finally issue "
19442 "actions/commands.  So the general order of the day is:"
19443 msgstr ""
19444
19445 #. type: textblock
19446 #: ../fish/guestfish.pod:447
19447 msgid "add or -a/--add"
19448 msgstr ""
19449
19450 #. type: textblock
19451 #: ../fish/guestfish.pod:451
19452 msgid "launch (aka run)"
19453 msgstr ""
19454
19455 #. type: textblock
19456 #: ../fish/guestfish.pod:455
19457 msgid "mount or -m/--mount"
19458 msgstr ""
19459
19460 #. type: textblock
19461 #: ../fish/guestfish.pod:459
19462 msgid "any other commands"
19463 msgstr ""
19464
19465 #. type: textblock
19466 #: ../fish/guestfish.pod:463
19467 msgid ""
19468 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
19469 "guest before mounting or performing any other commands."
19470 msgstr ""
19471
19472 #. type: textblock
19473 #: ../fish/guestfish.pod:466
19474 msgid ""
19475 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
19476 "I<--new> options were given then C<run> is done automatically, simply "
19477 "because guestfish can't perform the action you asked for without doing this."
19478 msgstr ""
19479
19480 #. type: =head1
19481 #: ../fish/guestfish.pod:471
19482 msgid "OPENING DISKS FOR READ AND WRITE"
19483 msgstr ""
19484
19485 #. type: textblock
19486 #: ../fish/guestfish.pod:473
19487 msgid ""
19488 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
19489 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
19490 "I<-i> and I<-m> open disk images read-only or for writing."
19491 msgstr ""
19492
19493 #. type: textblock
19494 #: ../fish/guestfish.pod:478
19495 msgid ""
19496 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
19497 "opening disk images supplied on the command line for write.  To open a disk "
19498 "image read-only you have to do I<-a image --ro>."
19499 msgstr ""
19500
19501 #. type: textblock
19502 #: ../fish/guestfish.pod:482
19503 msgid ""
19504 "This matters: If you accidentally open a live VM disk image writable then "
19505 "you will cause irreversible disk corruption."
19506 msgstr ""
19507
19508 #. type: textblock
19509 #: ../fish/guestfish.pod:485
19510 msgid ""
19511 "In a future libguestfs we intend to change the default the other way.  Disk "
19512 "images will be opened read-only.  You will have to either specify "
19513 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
19514 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
19515 "access for disk images specified by those other command line options."
19516 msgstr ""
19517
19518 #. type: textblock
19519 #: ../fish/guestfish.pod:492
19520 msgid ""
19521 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
19522 "which does nothing (it is already the default).  However it is highly "
19523 "recommended that you use this option to indicate that you need write access, "
19524 "and prepare your scripts for the day when this option will be required for "
19525 "write access."
19526 msgstr ""
19527
19528 #. type: textblock
19529 #: ../fish/guestfish.pod:498
19530 msgid ""
19531 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
19532 "other libguestfs program apart from guestfish and guestmount."
19533 msgstr ""
19534
19535 #. type: =head1
19536 #: ../fish/guestfish.pod:501
19537 msgid "QUOTING"
19538 msgstr ""
19539
19540 #. type: textblock
19541 #: ../fish/guestfish.pod:503
19542 msgid ""
19543 "You can quote ordinary parameters using either single or double quotes.  For "
19544 "example:"
19545 msgstr ""
19546
19547 #. type: verbatim
19548 #: ../fish/guestfish.pod:506
19549 #, no-wrap
19550 msgid ""
19551 " add \"file with a space.img\"\n"
19552 "\n"
19553 msgstr ""
19554
19555 #. type: verbatim
19556 #: ../fish/guestfish.pod:508
19557 #, no-wrap
19558 msgid ""
19559 " rm '/file name'\n"
19560 "\n"
19561 msgstr ""
19562
19563 #. type: verbatim
19564 #: ../fish/guestfish.pod:510
19565 #, no-wrap
19566 msgid ""
19567 " rm '/\"'\n"
19568 "\n"
19569 msgstr ""
19570
19571 #. type: textblock
19572 #: ../fish/guestfish.pod:512
19573 msgid ""
19574 "A few commands require a list of strings to be passed.  For these, use a "
19575 "whitespace-separated list, enclosed in quotes.  Strings containing "
19576 "whitespace to be passed through must be enclosed in single quotes.  A "
19577 "literal single quote must be escaped with a backslash."
19578 msgstr ""
19579
19580 #. type: verbatim
19581 #: ../fish/guestfish.pod:517
19582 #, no-wrap
19583 msgid ""
19584 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
19585 " command \"/bin/echo 'foo      bar'\"\n"
19586 " command \"/bin/echo \\'foo\\'\"\n"
19587 "\n"
19588 msgstr ""
19589
19590 #. type: =head2
19591 #: ../fish/guestfish.pod:521
19592 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
19593 msgstr ""
19594
19595 #. type: textblock
19596 #: ../fish/guestfish.pod:523
19597 msgid ""
19598 "In double-quoted arguments (only) use backslash to insert special "
19599 "characters:"
19600 msgstr ""
19601
19602 #. type: =item
19603 #: ../fish/guestfish.pod:528
19604 msgid "C<\\a>"
19605 msgstr ""
19606
19607 #. type: textblock
19608 #: ../fish/guestfish.pod:530
19609 msgid "Alert (bell) character."
19610 msgstr ""
19611
19612 #. type: =item
19613 #: ../fish/guestfish.pod:532
19614 msgid "C<\\b>"
19615 msgstr ""
19616
19617 #. type: textblock
19618 #: ../fish/guestfish.pod:534
19619 msgid "Backspace character."
19620 msgstr ""
19621
19622 #. type: =item
19623 #: ../fish/guestfish.pod:536
19624 msgid "C<\\f>"
19625 msgstr ""
19626
19627 #. type: textblock
19628 #: ../fish/guestfish.pod:538
19629 msgid "Form feed character."
19630 msgstr ""
19631
19632 #. type: =item
19633 #: ../fish/guestfish.pod:540
19634 msgid "C<\\n>"
19635 msgstr ""
19636
19637 #. type: textblock
19638 #: ../fish/guestfish.pod:542
19639 msgid "Newline character."
19640 msgstr ""
19641
19642 #. type: =item
19643 #: ../fish/guestfish.pod:544
19644 msgid "C<\\r>"
19645 msgstr ""
19646
19647 #. type: textblock
19648 #: ../fish/guestfish.pod:546
19649 msgid "Carriage return character."
19650 msgstr ""
19651
19652 #. type: =item
19653 #: ../fish/guestfish.pod:548
19654 msgid "C<\\t>"
19655 msgstr ""
19656
19657 #. type: textblock
19658 #: ../fish/guestfish.pod:550
19659 msgid "Horizontal tab character."
19660 msgstr ""
19661
19662 #. type: =item
19663 #: ../fish/guestfish.pod:552
19664 msgid "C<\\v>"
19665 msgstr ""
19666
19667 #. type: textblock
19668 #: ../fish/guestfish.pod:554
19669 msgid "Vertical tab character."
19670 msgstr ""
19671
19672 #. type: =item
19673 #: ../fish/guestfish.pod:556
19674 msgid "C<\\\">"
19675 msgstr ""
19676
19677 #. type: textblock
19678 #: ../fish/guestfish.pod:558
19679 msgid "A literal double quote character."
19680 msgstr ""
19681
19682 #. type: =item
19683 #: ../fish/guestfish.pod:560
19684 msgid "C<\\ooo>"
19685 msgstr ""
19686
19687 #. type: textblock
19688 #: ../fish/guestfish.pod:562
19689 msgid ""
19690 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
19691 "(unlike C)."
19692 msgstr ""
19693
19694 #. type: =item
19695 #: ../fish/guestfish.pod:565
19696 msgid "C<\\xhh>"
19697 msgstr ""
19698
19699 #. type: textblock
19700 #: ../fish/guestfish.pod:567
19701 msgid "A character with hex value I<hh>.  There must be precisely 2 hex digits."
19702 msgstr ""
19703
19704 #. type: textblock
19705 #: ../fish/guestfish.pod:570
19706 msgid ""
19707 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
19708 "strings."
19709 msgstr ""
19710
19711 #. type: =item
19712 #: ../fish/guestfish.pod:573
19713 msgid "C<\\\\>"
19714 msgstr ""
19715
19716 #. type: textblock
19717 #: ../fish/guestfish.pod:575
19718 msgid "A literal backslash character."
19719 msgstr ""
19720
19721 #. type: =head1
19722 #: ../fish/guestfish.pod:579
19723 msgid "OPTIONAL ARGUMENTS"
19724 msgstr ""
19725
19726 #. type: textblock
19727 #: ../fish/guestfish.pod:581
19728 msgid ""
19729 "Some commands take optional arguments.  These arguments appear in this "
19730 "documentation as C<[argname:..]>.  You can use them as in these examples:"
19731 msgstr ""
19732
19733 #. type: verbatim
19734 #: ../fish/guestfish.pod:585
19735 #, no-wrap
19736 msgid ""
19737 " add-drive-opts filename\n"
19738 "\n"
19739 msgstr ""
19740
19741 #. type: verbatim
19742 #: ../fish/guestfish.pod:587
19743 #, no-wrap
19744 msgid ""
19745 " add-drive-opts filename readonly:true\n"
19746 "\n"
19747 msgstr ""
19748
19749 #. type: verbatim
19750 #: ../fish/guestfish.pod:589
19751 #, no-wrap
19752 msgid ""
19753 " add-drive-opts filename format:qcow2 readonly:false\n"
19754 "\n"
19755 msgstr ""
19756
19757 #. type: textblock
19758 #: ../fish/guestfish.pod:591
19759 msgid ""
19760 "Each optional argument can appear at most once.  All optional arguments must "
19761 "appear after the required ones."
19762 msgstr ""
19763
19764 #. type: =head1
19765 #: ../fish/guestfish.pod:594
19766 msgid "NUMBERS"
19767 msgstr ""
19768
19769 #. type: textblock
19770 #: ../fish/guestfish.pod:596
19771 msgid "This section applies to all commands which can take integers as parameters."
19772 msgstr ""
19773
19774 #. type: =head2
19775 #: ../fish/guestfish.pod:599
19776 msgid "SIZE SUFFIX"
19777 msgstr ""
19778
19779 #. type: textblock
19780 #: ../fish/guestfish.pod:601
19781 msgid ""
19782 "When the command takes a parameter measured in bytes, you can use one of the "
19783 "following suffixes to specify kilobytes, megabytes and larger sizes:"
19784 msgstr ""
19785
19786 #. type: =item
19787 #: ../fish/guestfish.pod:607
19788 msgid "B<k> or B<K> or B<KiB>"
19789 msgstr ""
19790
19791 #. type: textblock
19792 #: ../fish/guestfish.pod:609
19793 msgid "The size in kilobytes (multiplied by 1024)."
19794 msgstr ""
19795
19796 #. type: =item
19797 #: ../fish/guestfish.pod:611
19798 msgid "B<KB>"
19799 msgstr ""
19800
19801 #. type: textblock
19802 #: ../fish/guestfish.pod:613
19803 msgid "The size in SI 1000 byte units."
19804 msgstr ""
19805
19806 #. type: =item
19807 #: ../fish/guestfish.pod:615
19808 msgid "B<M> or B<MiB>"
19809 msgstr ""
19810
19811 #. type: textblock
19812 #: ../fish/guestfish.pod:617
19813 msgid "The size in megabytes (multiplied by 1048576)."
19814 msgstr ""
19815
19816 #. type: =item
19817 #: ../fish/guestfish.pod:619
19818 msgid "B<MB>"
19819 msgstr ""
19820
19821 #. type: textblock
19822 #: ../fish/guestfish.pod:621
19823 msgid "The size in SI 1000000 byte units."
19824 msgstr ""
19825
19826 #. type: =item
19827 #: ../fish/guestfish.pod:623
19828 msgid "B<G> or B<GiB>"
19829 msgstr ""
19830
19831 #. type: textblock
19832 #: ../fish/guestfish.pod:625
19833 msgid "The size in gigabytes (multiplied by 2**30)."
19834 msgstr ""
19835
19836 #. type: =item
19837 #: ../fish/guestfish.pod:627
19838 msgid "B<GB>"
19839 msgstr ""
19840
19841 #. type: textblock
19842 #: ../fish/guestfish.pod:629
19843 msgid "The size in SI 10**9 byte units."
19844 msgstr ""
19845
19846 #. type: =item
19847 #: ../fish/guestfish.pod:631
19848 msgid "B<T> or B<TiB>"
19849 msgstr ""
19850
19851 #. type: textblock
19852 #: ../fish/guestfish.pod:633
19853 msgid "The size in terabytes (multiplied by 2**40)."
19854 msgstr ""
19855
19856 #. type: =item
19857 #: ../fish/guestfish.pod:635
19858 msgid "B<TB>"
19859 msgstr ""
19860
19861 #. type: textblock
19862 #: ../fish/guestfish.pod:637
19863 msgid "The size in SI 10**12 byte units."
19864 msgstr ""
19865
19866 #. type: =item
19867 #: ../fish/guestfish.pod:639
19868 msgid "B<P> or B<PiB>"
19869 msgstr ""
19870
19871 #. type: textblock
19872 #: ../fish/guestfish.pod:641
19873 msgid "The size in petabytes (multiplied by 2**50)."
19874 msgstr ""
19875
19876 #. type: =item
19877 #: ../fish/guestfish.pod:643
19878 msgid "B<PB>"
19879 msgstr ""
19880
19881 #. type: textblock
19882 #: ../fish/guestfish.pod:645
19883 msgid "The size in SI 10**15 byte units."
19884 msgstr ""
19885
19886 #. type: =item
19887 #: ../fish/guestfish.pod:647
19888 msgid "B<E> or B<EiB>"
19889 msgstr ""
19890
19891 #. type: textblock
19892 #: ../fish/guestfish.pod:649
19893 msgid "The size in exabytes (multiplied by 2**60)."
19894 msgstr ""
19895
19896 #. type: =item
19897 #: ../fish/guestfish.pod:651
19898 msgid "B<EB>"
19899 msgstr ""
19900
19901 #. type: textblock
19902 #: ../fish/guestfish.pod:653
19903 msgid "The size in SI 10**18 byte units."
19904 msgstr ""
19905
19906 #. type: =item
19907 #: ../fish/guestfish.pod:655
19908 msgid "B<Z> or B<ZiB>"
19909 msgstr ""
19910
19911 #. type: textblock
19912 #: ../fish/guestfish.pod:657
19913 msgid "The size in zettabytes (multiplied by 2**70)."
19914 msgstr ""
19915
19916 #. type: =item
19917 #: ../fish/guestfish.pod:659
19918 msgid "B<ZB>"
19919 msgstr ""
19920
19921 #. type: textblock
19922 #: ../fish/guestfish.pod:661
19923 msgid "The size in SI 10**21 byte units."
19924 msgstr ""
19925
19926 #. type: =item
19927 #: ../fish/guestfish.pod:663
19928 msgid "B<Y> or B<YiB>"
19929 msgstr ""
19930
19931 #. type: textblock
19932 #: ../fish/guestfish.pod:665
19933 msgid "The size in yottabytes (multiplied by 2**80)."
19934 msgstr ""
19935
19936 #. type: =item
19937 #: ../fish/guestfish.pod:667
19938 msgid "B<YB>"
19939 msgstr ""
19940
19941 #. type: textblock
19942 #: ../fish/guestfish.pod:669
19943 msgid "The size in SI 10**24 byte units."
19944 msgstr ""
19945
19946 #. type: verbatim
19947 #: ../fish/guestfish.pod:675
19948 #, no-wrap
19949 msgid ""
19950 " truncate-size /file 1G\n"
19951 "\n"
19952 msgstr ""
19953
19954 #. type: textblock
19955 #: ../fish/guestfish.pod:677
19956 msgid "would truncate the file to 1 gigabyte."
19957 msgstr ""
19958
19959 #. type: textblock
19960 #: ../fish/guestfish.pod:679
19961 msgid ""
19962 "Be careful because a few commands take sizes in kilobytes or megabytes "
19963 "(eg. the parameter to L</memsize> is specified in megabytes already).  "
19964 "Adding a suffix will probably not do what you expect."
19965 msgstr ""
19966
19967 #. type: =head2
19968 #: ../fish/guestfish.pod:683
19969 msgid "OCTAL AND HEXADECIMAL NUMBERS"
19970 msgstr ""
19971
19972 #. type: textblock
19973 #: ../fish/guestfish.pod:685
19974 msgid ""
19975 "For specifying the radix (base) use the C convention: C<0> to prefix an "
19976 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
19977 msgstr ""
19978
19979 #. type: verbatim
19980 #: ../fish/guestfish.pod:688
19981 #, no-wrap
19982 msgid ""
19983 " 1234      decimal number 1234\n"
19984 " 02322     octal number, equivalent to decimal 1234\n"
19985 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
19986 "\n"
19987 msgstr ""
19988
19989 #. type: textblock
19990 #: ../fish/guestfish.pod:692
19991 msgid ""
19992 "When using the C<chmod> command, you almost always want to specify an octal "
19993 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
19994 "L<chmod(1)> program):"
19995 msgstr ""
19996
19997 #. type: verbatim
19998 #: ../fish/guestfish.pod:696
19999 #, no-wrap
20000 msgid ""
20001 " chmod 0777 /public  # OK\n"
20002 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
20003 "\n"
20004 msgstr ""
20005
20006 #. type: textblock
20007 #: ../fish/guestfish.pod:699
20008 msgid ""
20009 "Commands that return numbers usually print them in decimal, but some "
20010 "commands print numbers in other radices (eg. C<umask> prints the mode in "
20011 "octal, preceeded by C<0>)."
20012 msgstr ""
20013
20014 #. type: =head1
20015 #: ../fish/guestfish.pod:703
20016 msgid "WILDCARDS AND GLOBBING"
20017 msgstr ""
20018
20019 #. type: textblock
20020 #: ../fish/guestfish.pod:705
20021 msgid ""
20022 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
20023 "(globbing) by default.  So for example the following will not do what you "
20024 "expect:"
20025 msgstr ""
20026
20027 #. type: verbatim
20028 #: ../fish/guestfish.pod:709
20029 #, no-wrap
20030 msgid ""
20031 " rm-rf /home/*\n"
20032 "\n"
20033 msgstr ""
20034
20035 #. type: textblock
20036 #: ../fish/guestfish.pod:711
20037 msgid ""
20038 "Assuming you don't have a directory called literally C</home/*> then the "
20039 "above command will return an error."
20040 msgstr ""
20041
20042 #. type: textblock
20043 #: ../fish/guestfish.pod:714
20044 msgid "To perform wildcard expansion, use the C<glob> command."
20045 msgstr ""
20046
20047 #. type: verbatim
20048 #: ../fish/guestfish.pod:716
20049 #, no-wrap
20050 msgid ""
20051 " glob rm-rf /home/*\n"
20052 "\n"
20053 msgstr ""
20054
20055 #. type: textblock
20056 #: ../fish/guestfish.pod:718
20057 msgid ""
20058 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
20059 "many times), equivalent to:"
20060 msgstr ""
20061
20062 #. type: verbatim
20063 #: ../fish/guestfish.pod:721
20064 #, no-wrap
20065 msgid ""
20066 " rm-rf /home/jim\n"
20067 " rm-rf /home/joe\n"
20068 " rm-rf /home/mary\n"
20069 "\n"
20070 msgstr ""
20071
20072 #. type: textblock
20073 #: ../fish/guestfish.pod:725
20074 msgid "C<glob> only works on simple guest paths and not on device names."
20075 msgstr ""
20076
20077 #. type: textblock
20078 #: ../fish/guestfish.pod:727
20079 msgid ""
20080 "If you have several parameters, each containing a wildcard, then glob will "
20081 "perform a Cartesian product."
20082 msgstr ""
20083
20084 #. type: =head1
20085 #: ../fish/guestfish.pod:730
20086 msgid "COMMENTS"
20087 msgstr ""
20088
20089 #. type: textblock
20090 #: ../fish/guestfish.pod:732
20091 msgid ""
20092 "Any line which starts with a I<#> character is treated as a comment and "
20093 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
20094 "a command.  For example:"
20095 msgstr ""
20096
20097 #. type: verbatim
20098 #: ../fish/guestfish.pod:736
20099 #, no-wrap
20100 msgid ""
20101 " # this is a comment\n"
20102 "         # this is a comment\n"
20103 " foo # NOT a comment\n"
20104 "\n"
20105 msgstr ""
20106
20107 #. type: textblock
20108 #: ../fish/guestfish.pod:740
20109 msgid "Blank lines are also ignored."
20110 msgstr ""
20111
20112 #. type: =head1
20113 #: ../fish/guestfish.pod:742
20114 msgid "RUNNING COMMANDS LOCALLY"
20115 msgstr ""
20116
20117 #. type: textblock
20118 #: ../fish/guestfish.pod:744
20119 msgid ""
20120 "Any line which starts with a I<!> character is treated as a command sent to "
20121 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
20122 msgstr ""
20123
20124 #. type: verbatim
20125 #: ../fish/guestfish.pod:748
20126 #, no-wrap
20127 msgid ""
20128 " !mkdir local\n"
20129 " tgz-out /remote local/remote-data.tar.gz\n"
20130 "\n"
20131 msgstr ""
20132
20133 #. type: textblock
20134 #: ../fish/guestfish.pod:751
20135 msgid ""
20136 "will create a directory C<local> on the host, and then export the contents "
20137 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
20138 "(See C<tgz-out>)."
20139 msgstr ""
20140
20141 #. type: textblock
20142 #: ../fish/guestfish.pod:755
20143 msgid ""
20144 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
20145 "effect, due to the way that subprocesses work in Unix."
20146 msgstr ""
20147
20148 #. type: =head2
20149 #: ../fish/guestfish.pod:758
20150 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
20151 msgstr ""
20152
20153 #. type: textblock
20154 #: ../fish/guestfish.pod:760
20155 msgid ""
20156 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
20157 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
20158 "and executed as guestfish commands."
20159 msgstr ""
20160
20161 #. type: textblock
20162 #: ../fish/guestfish.pod:764
20163 msgid ""
20164 "Thus you can use shell script to construct arbitrary guestfish commands "
20165 "which are then parsed by guestfish."
20166 msgstr ""
20167
20168 #. type: textblock
20169 #: ../fish/guestfish.pod:767
20170 msgid ""
20171 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
20172 "through C</foo.100>) using guestfish commands alone.  However this is simple "
20173 "if we use a shell script to create the guestfish commands for us:"
20174 msgstr ""
20175
20176 #. type: verbatim
20177 #: ../fish/guestfish.pod:772
20178 #, no-wrap
20179 msgid ""
20180 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
20181 "\n"
20182 msgstr ""
20183
20184 #. type: textblock
20185 #: ../fish/guestfish.pod:774
20186 msgid "or with names like C</foo.001>:"
20187 msgstr ""
20188
20189 #. type: verbatim
20190 #: ../fish/guestfish.pod:776
20191 #, no-wrap
20192 msgid ""
20193 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
20194 "\n"
20195 msgstr ""
20196
20197 #. type: textblock
20198 #: ../fish/guestfish.pod:778
20199 msgid ""
20200 "When using guestfish interactively it can be helpful to just run the shell "
20201 "script first (ie. remove the initial C<E<lt>> character so it is just an "
20202 "ordinary I<!> local command), see what guestfish commands it would run, and "
20203 "when you are happy with those prepend the C<E<lt>> character to run the "
20204 "guestfish commands for real."
20205 msgstr ""
20206
20207 #. type: =head1
20208 #: ../fish/guestfish.pod:784
20209 msgid "PIPES"
20210 msgstr ""
20211
20212 #. type: textblock
20213 #: ../fish/guestfish.pod:786
20214 msgid ""
20215 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
20216 "command (a guestfish command) to the second command (any host command).  For "
20217 "example:"
20218 msgstr ""
20219
20220 #. type: verbatim
20221 #: ../fish/guestfish.pod:790
20222 #, no-wrap
20223 msgid ""
20224 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
20225 "\n"
20226 msgstr ""
20227
20228 #. type: textblock
20229 #: ../fish/guestfish.pod:792
20230 msgid ""
20231 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
20232 "program).  The above command would list all accounts in the guest filesystem "
20233 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
20234 msgstr ""
20235
20236 #. type: verbatim
20237 #: ../fish/guestfish.pod:797
20238 #, no-wrap
20239 msgid ""
20240 " hexdump /bin/ls | head\n"
20241 " list-devices | tail -1\n"
20242 " tgz-out / - | tar ztf -\n"
20243 "\n"
20244 msgstr ""
20245
20246 #. type: textblock
20247 #: ../fish/guestfish.pod:801
20248 msgid ""
20249 "The space before the pipe symbol is required, any space after the pipe "
20250 "symbol is optional.  Everything after the pipe symbol is just passed "
20251 "straight to the host shell, so it can contain redirections, globs and "
20252 "anything else that makes sense on the host side."
20253 msgstr ""
20254
20255 #. type: textblock
20256 #: ../fish/guestfish.pod:806
20257 msgid ""
20258 "To use a literal argument which begins with a pipe symbol, you have to quote "
20259 "it, eg:"
20260 msgstr ""
20261
20262 #. type: verbatim
20263 #: ../fish/guestfish.pod:809
20264 #, no-wrap
20265 msgid ""
20266 " echo \"|\"\n"
20267 "\n"
20268 msgstr ""
20269
20270 #. type: =head1
20271 #: ../fish/guestfish.pod:811
20272 msgid "HOME DIRECTORIES"
20273 msgstr ""
20274
20275 #. type: textblock
20276 #: ../fish/guestfish.pod:813
20277 msgid ""
20278 "If a parameter starts with the character C<~> then the tilde may be expanded "
20279 "as a home directory path (either C<~> for the current user's home directory, "
20280 "or C<~user> for another user)."
20281 msgstr ""
20282
20283 #. type: textblock
20284 #: ../fish/guestfish.pod:817
20285 msgid ""
20286 "Note that home directory expansion happens for users known I<on the host>, "
20287 "not in the guest filesystem."
20288 msgstr ""
20289
20290 #. type: textblock
20291 #: ../fish/guestfish.pod:820
20292 msgid ""
20293 "To use a literal argument which begins with a tilde, you have to quote it, "
20294 "eg:"
20295 msgstr ""
20296
20297 #. type: verbatim
20298 #: ../fish/guestfish.pod:823
20299 #, no-wrap
20300 msgid ""
20301 " echo \"~\"\n"
20302 "\n"
20303 msgstr ""
20304
20305 #. type: =head2
20306 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:534
20307 msgid "ENCRYPTED DISKS"
20308 msgstr ""
20309
20310 #. type: textblock
20311 #: ../fish/guestfish.pod:827
20312 msgid ""
20313 "Libguestfs has some support for Linux guests encrypted according to the "
20314 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
20315 "disk encryption systems used by modern Linux guests.  Currently only "
20316 "LVM-on-LUKS is supported."
20317 msgstr ""
20318
20319 #. type: textblock
20320 #: ../fish/guestfish.pod:832
20321 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
20322 msgstr ""
20323
20324 #. type: verbatim
20325 #: ../fish/guestfish.pod:834
20326 #, no-wrap
20327 msgid ""
20328 " ><fs> vfs-type /dev/sda2\n"
20329 " crypto_LUKS\n"
20330 "\n"
20331 msgstr ""
20332
20333 #. type: textblock
20334 #: ../fish/guestfish.pod:837
20335 msgid ""
20336 "Then open those devices using L</luks-open>.  This creates a device-mapper "
20337 "device called C</dev/mapper/luksdev>."
20338 msgstr ""
20339
20340 #. type: verbatim
20341 #: ../fish/guestfish.pod:840
20342 #, no-wrap
20343 msgid ""
20344 " ><fs> luks-open /dev/sda2 luksdev\n"
20345 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
20346 "\n"
20347 msgstr ""
20348
20349 #. type: textblock
20350 #: ../fish/guestfish.pod:843
20351 msgid ""
20352 "Finally you have to tell LVM to scan for volume groups on the newly created "
20353 "mapper device:"
20354 msgstr ""
20355
20356 #. type: verbatim
20357 #: ../fish/guestfish.pod:846
20358 #, no-wrap
20359 msgid ""
20360 " vgscan\n"
20361 " vg-activate-all true\n"
20362 "\n"
20363 msgstr ""
20364
20365 #. type: textblock
20366 #: ../fish/guestfish.pod:849
20367 msgid "The logical volume(s) can now be mounted in the usual way."
20368 msgstr ""
20369
20370 #. type: textblock
20371 #: ../fish/guestfish.pod:851
20372 msgid ""
20373 "Before closing a LUKS device you must unmount any logical volumes on it and "
20374 "deactivate the volume groups by calling C<vg-activate false VG> on each "
20375 "one.  Then you can close the mapper device:"
20376 msgstr ""
20377
20378 #. type: verbatim
20379 #: ../fish/guestfish.pod:855
20380 #, no-wrap
20381 msgid ""
20382 " vg-activate false /dev/VG\n"
20383 " luks-close /dev/mapper/luksdev\n"
20384 "\n"
20385 msgstr ""
20386
20387 #. type: textblock
20388 #: ../fish/guestfish.pod:860
20389 msgid ""
20390 "If a path is prefixed with C<win:> then you can use Windows-style drive "
20391 "letters and paths (with some limitations).  The following commands are "
20392 "equivalent:"
20393 msgstr ""
20394
20395 #. type: verbatim
20396 #: ../fish/guestfish.pod:864
20397 #, no-wrap
20398 msgid ""
20399 " file /WINDOWS/system32/config/system.LOG\n"
20400 "\n"
20401 msgstr ""
20402
20403 #. type: verbatim
20404 #: ../fish/guestfish.pod:866
20405 #, no-wrap
20406 msgid ""
20407 " file win:\\windows\\system32\\config\\system.log\n"
20408 "\n"
20409 msgstr ""
20410
20411 #. type: verbatim
20412 #: ../fish/guestfish.pod:868
20413 #, no-wrap
20414 msgid ""
20415 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
20416 "\n"
20417 msgstr ""
20418
20419 #. type: textblock
20420 #: ../fish/guestfish.pod:870
20421 msgid ""
20422 "The parameter is rewritten \"behind the scenes\" by looking up the position "
20423 "where the drive is mounted, prepending that to the path, changing all "
20424 "backslash characters to forward slash, then resolving the result using "
20425 "L</case-sensitive-path>.  For example if the E: drive was mounted on C</e> "
20426 "then the parameter might be rewritten like this:"
20427 msgstr ""
20428
20429 #. type: verbatim
20430 #: ../fish/guestfish.pod:876
20431 #, no-wrap
20432 msgid ""
20433 " win:e:\\foo\\bar => /e/FOO/bar\n"
20434 "\n"
20435 msgstr ""
20436
20437 #. type: textblock
20438 #: ../fish/guestfish.pod:878
20439 msgid "This only works in argument positions that expect a path."
20440 msgstr ""
20441
20442 #. type: =head1
20443 #: ../fish/guestfish.pod:880
20444 msgid "UPLOADING AND DOWNLOADING FILES"
20445 msgstr ""
20446
20447 #. type: textblock
20448 #: ../fish/guestfish.pod:882
20449 msgid ""
20450 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
20451 "others which upload from or download to a local file, you can use the "
20452 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
20453 msgstr ""
20454
20455 #. type: verbatim
20456 #: ../fish/guestfish.pod:886
20457 #, no-wrap
20458 msgid ""
20459 " upload - /foo\n"
20460 "\n"
20461 msgstr ""
20462
20463 #. type: textblock
20464 #: ../fish/guestfish.pod:888
20465 msgid "reads stdin and creates from that a file C</foo> in the disk image, and:"
20466 msgstr ""
20467
20468 #. type: verbatim
20469 #: ../fish/guestfish.pod:891
20470 #, no-wrap
20471 msgid ""
20472 " tar-out /etc - | tar tf -\n"
20473 "\n"
20474 msgstr ""
20475
20476 #. type: textblock
20477 #: ../fish/guestfish.pod:893
20478 msgid ""
20479 "writes the tarball to stdout and then pipes that into the external \"tar\" "
20480 "command (see L</PIPES>)."
20481 msgstr ""
20482
20483 #. type: textblock
20484 #: ../fish/guestfish.pod:896
20485 msgid ""
20486 "When using C<-> to read from stdin, the input is read up to the end of "
20487 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
20488 "some arbitrary end marker:"
20489 msgstr ""
20490
20491 #. type: verbatim
20492 #: ../fish/guestfish.pod:900
20493 #, no-wrap
20494 msgid ""
20495 " upload -<<END /foo\n"
20496 " input line 1\n"
20497 " input line 2\n"
20498 " input line 3\n"
20499 " END\n"
20500 "\n"
20501 msgstr ""
20502
20503 #. type: textblock
20504 #: ../fish/guestfish.pod:906
20505 msgid ""
20506 "Any string of characters can be used instead of C<END>.  The end marker must "
20507 "appear on a line of its own, without any preceeding or following characters "
20508 "(not even spaces)."
20509 msgstr ""
20510
20511 #. type: textblock
20512 #: ../fish/guestfish.pod:910
20513 msgid ""
20514 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
20515 "upload local files (so-called \"FileIn\" parameters in the generator)."
20516 msgstr ""
20517
20518 #. type: =head1
20519 #: ../fish/guestfish.pod:913
20520 msgid "EXIT ON ERROR BEHAVIOUR"
20521 msgstr ""
20522
20523 #. type: textblock
20524 #: ../fish/guestfish.pod:915
20525 msgid ""
20526 "By default, guestfish will ignore any errors when in interactive mode "
20527 "(ie. taking commands from a human over a tty), and will exit on the first "
20528 "error in non-interactive mode (scripts, commands given on the command line)."
20529 msgstr ""
20530
20531 #. type: textblock
20532 #: ../fish/guestfish.pod:920
20533 msgid ""
20534 "If you prefix a command with a I<-> character, then that command will not "
20535 "cause guestfish to exit, even if that (one) command returns an error."
20536 msgstr ""
20537
20538 #. type: =head1
20539 #: ../fish/guestfish.pod:924
20540 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
20541 msgstr ""
20542
20543 #. type: textblock
20544 #: ../fish/guestfish.pod:926
20545 msgid ""
20546 "Guestfish can be remote-controlled over a socket.  This is useful "
20547 "particularly in shell scripts where you want to make several different "
20548 "changes to a filesystem, but you don't want the overhead of starting up a "
20549 "guestfish process each time."
20550 msgstr ""
20551
20552 #. type: textblock
20553 #: ../fish/guestfish.pod:931
20554 msgid "Start a guestfish server process using:"
20555 msgstr ""
20556
20557 #. type: verbatim
20558 #: ../fish/guestfish.pod:933
20559 #, no-wrap
20560 msgid ""
20561 " eval \"`guestfish --listen`\"\n"
20562 "\n"
20563 msgstr ""
20564
20565 #. type: textblock
20566 #: ../fish/guestfish.pod:935
20567 msgid "and then send it commands by doing:"
20568 msgstr ""
20569
20570 #. type: verbatim
20571 #: ../fish/guestfish.pod:937
20572 #, no-wrap
20573 msgid ""
20574 " guestfish --remote cmd [...]\n"
20575 "\n"
20576 msgstr ""
20577
20578 #. type: textblock
20579 #: ../fish/guestfish.pod:939
20580 msgid "To cause the server to exit, send it the exit command:"
20581 msgstr ""
20582
20583 #. type: textblock
20584 #: ../fish/guestfish.pod:943
20585 msgid ""
20586 "Note that the server will normally exit if there is an error in a command.  "
20587 "You can change this in the usual way.  See section L</EXIT ON ERROR "
20588 "BEHAVIOUR>."
20589 msgstr ""
20590
20591 #. type: =head2
20592 #: ../fish/guestfish.pod:947
20593 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
20594 msgstr ""
20595
20596 #. type: textblock
20597 #: ../fish/guestfish.pod:949
20598 msgid ""
20599 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
20600 "is how the I<--remote> option knows where to send the commands.  You can "
20601 "have several guestfish listener processes running using:"
20602 msgstr ""
20603
20604 #. type: verbatim
20605 #: ../fish/guestfish.pod:953
20606 #, no-wrap
20607 msgid ""
20608 " eval \"`guestfish --listen`\"\n"
20609 " pid1=$GUESTFISH_PID\n"
20610 " eval \"`guestfish --listen`\"\n"
20611 " pid2=$GUESTFISH_PID\n"
20612 " ...\n"
20613 " guestfish --remote=$pid1 cmd\n"
20614 " guestfish --remote=$pid2 cmd\n"
20615 "\n"
20616 msgstr ""
20617
20618 #. type: =head2
20619 #: ../fish/guestfish.pod:961
20620 msgid "REMOTE CONTROL AND CSH"
20621 msgstr ""
20622
20623 #. type: textblock
20624 #: ../fish/guestfish.pod:963
20625 msgid ""
20626 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
20627 "option:"
20628 msgstr ""
20629
20630 #. type: verbatim
20631 #: ../fish/guestfish.pod:966
20632 #, no-wrap
20633 msgid ""
20634 " eval \"`guestfish --listen --csh`\"\n"
20635 "\n"
20636 msgstr ""
20637
20638 #. type: =head2
20639 #: ../fish/guestfish.pod:968
20640 msgid "REMOTE CONTROL DETAILS"
20641 msgstr ""
20642
20643 #. type: textblock
20644 #: ../fish/guestfish.pod:970
20645 msgid ""
20646 "Remote control happens over a Unix domain socket called "
20647 "C</tmp/.guestfish-$UID/socket-$PID>, where C<$UID> is the effective user ID "
20648 "of the process, and C<$PID> is the process ID of the server."
20649 msgstr ""
20650
20651 #. type: textblock
20652 #: ../fish/guestfish.pod:974
20653 msgid "Guestfish client and server versions must match exactly."
20654 msgstr ""
20655
20656 #. type: =head2
20657 #: ../fish/guestfish.pod:976
20658 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
20659 msgstr ""
20660
20661 #. type: textblock
20662 #: ../fish/guestfish.pod:978
20663 msgid ""
20664 "From Bash, you can use the following code which creates a guestfish "
20665 "instance, correctly quotes the command line, handles failure to start, and "
20666 "cleans up guestfish when the script exits:"
20667 msgstr ""
20668
20669 #. type: verbatim
20670 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:980
20671 #, no-wrap
20672 msgid ""
20673 " #!/bin/bash -\n"
20674 " \n"
20675 msgstr ""
20676
20677 #. type: verbatim
20678 #: ../fish/guestfish.pod:986
20679 #, no-wrap
20680 msgid ""
20681 " guestfish[0]=\"guestfish\"\n"
20682 " guestfish[1]=\"--listen\"\n"
20683 " guestfish[2]=\"--ro\"\n"
20684 " guestfish[3]=\"-a\"\n"
20685 " guestfish[4]=\"disk.img\"\n"
20686 " \n"
20687 msgstr ""
20688
20689 #. type: verbatim
20690 #: ../fish/guestfish.pod:992
20691 #, no-wrap
20692 msgid ""
20693 " GUESTFISH_PID=\n"
20694 " eval $(\"${guestfish[@]}\")\n"
20695 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
20696 "     echo \"error: guestfish didn't start up, see error messages above\"\n"
20697 "     exit 1\n"
20698 " fi\n"
20699 " \n"
20700 msgstr ""
20701
20702 #. type: verbatim
20703 #: ../fish/guestfish.pod:999
20704 #, no-wrap
20705 msgid ""
20706 " cleanup_guestfish ()\n"
20707 " {\n"
20708 "     guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
20709 " }\n"
20710 " trap cleanup_guestfish EXIT ERR\n"
20711 " \n"
20712 msgstr ""
20713
20714 #. type: verbatim
20715 #: ../fish/guestfish.pod:1005
20716 #, no-wrap
20717 msgid ""
20718 " guestfish --remote -- run\n"
20719 " \n"
20720 msgstr ""
20721
20722 #. type: verbatim
20723 #: ../fish/guestfish.pod:1007
20724 #, no-wrap
20725 msgid ""
20726 " # ...\n"
20727 "\n"
20728 msgstr ""
20729
20730 #. type: =head2
20731 #: ../fish/guestfish.pod:1009
20732 msgid "REMOTE CONTROL RUN COMMAND HANGING"
20733 msgstr ""
20734
20735 #. type: textblock
20736 #: ../fish/guestfish.pod:1011
20737 msgid ""
20738 "Using the C<run> (or C<launch>) command remotely in a command substitution "
20739 "context hangs, ie. don't do (note the backquotes):"
20740 msgstr ""
20741
20742 #. type: verbatim
20743 #: ../fish/guestfish.pod:1014
20744 #, no-wrap
20745 msgid ""
20746 " a=`guestfish --remote run`\n"
20747 "\n"
20748 msgstr ""
20749
20750 #. type: textblock
20751 #: ../fish/guestfish.pod:1016
20752 msgid ""
20753 "Since the C<run> command produces no output on stdout, this is not useful "
20754 "anyway.  For further information see "
20755 "L<https://bugzilla.redhat.com/show_bug.cgi?id=592910>."
20756 msgstr ""
20757
20758 #. type: =head1
20759 #: ../fish/guestfish.pod:1020
20760 msgid "PREPARED DISK IMAGES"
20761 msgstr ""
20762
20763 #. type: textblock
20764 #: ../fish/guestfish.pod:1022
20765 msgid ""
20766 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
20767 "preformatted disk images that guestfish can make for you to save typing.  "
20768 "This is particularly useful for testing purposes.  This option is used "
20769 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
20770 "can be mixed with I<-a>)."
20771 msgstr ""
20772
20773 #. type: textblock
20774 #: ../fish/guestfish.pod:1028
20775 msgid ""
20776 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
20777 "the second and so on.  Existing files in the current directory are "
20778 "I<overwritten>."
20779 msgstr ""
20780
20781 #. type: textblock
20782 #: ../fish/guestfish.pod:1032
20783 msgid ""
20784 "The type briefly describes how the disk should be sized, partitioned, how "
20785 "filesystem(s) should be created, and how content should be added.  "
20786 "Optionally the type can be followed by extra parameters, separated by C<:> "
20787 "(colon) characters.  For example, I<-N fs> creates a default 100MB, "
20788 "sparsely-allocated disk, containing a single partition, with the partition "
20789 "formatted as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem "
20790 "on a 1GB disk instead."
20791 msgstr ""
20792
20793 #. type: textblock
20794 #: ../fish/guestfish.pod:1040
20795 msgid "To list the available types and any extra parameters they take, run:"
20796 msgstr ""
20797
20798 #. type: textblock
20799 #: ../fish/guestfish.pod:1044
20800 msgid ""
20801 "Note that the prepared filesystem is not mounted.  You would usually have to "
20802 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
20803 msgstr ""
20804
20805 #. type: textblock
20806 #: ../fish/guestfish.pod:1048
20807 msgid ""
20808 "If any I<-N> or I<--new> options are given, the guest is automatically "
20809 "launched."
20810 msgstr ""
20811
20812 #. type: textblock
20813 #: ../fish/guestfish.pod:1053
20814 msgid "Create a 100MB disk with an ext4-formatted partition:"
20815 msgstr ""
20816
20817 #. type: verbatim
20818 #: ../fish/guestfish.pod:1055
20819 #, no-wrap
20820 msgid ""
20821 " guestfish -N fs:ext4\n"
20822 "\n"
20823 msgstr ""
20824
20825 #. type: textblock
20826 #: ../fish/guestfish.pod:1057
20827 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
20828 msgstr ""
20829
20830 #. type: verbatim
20831 #: ../fish/guestfish.pod:1059
20832 #, no-wrap
20833 msgid ""
20834 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
20835 "\n"
20836 msgstr ""
20837
20838 #. type: textblock
20839 #: ../fish/guestfish.pod:1061
20840 msgid "Create a blank 200MB disk:"
20841 msgstr ""
20842
20843 #. type: verbatim
20844 #: ../fish/guestfish.pod:1063
20845 #, no-wrap
20846 msgid ""
20847 " guestfish -N disk:200M\n"
20848 "\n"
20849 msgstr ""
20850
20851 #. type: =head1
20852 #: ../fish/guestfish.pod:1065
20853 msgid "PROGRESS BARS"
20854 msgstr ""
20855
20856 #. type: textblock
20857 #: ../fish/guestfish.pod:1067
20858 msgid ""
20859 "Some (not all) long-running commands send progress notification messages as "
20860 "they are running.  Guestfish turns these messages into progress bars."
20861 msgstr ""
20862
20863 #. type: textblock
20864 #: ../fish/guestfish.pod:1071
20865 msgid ""
20866 "When a command that supports progress bars takes longer than two seconds to "
20867 "run, and if progress bars are enabled, then you will see one appearing below "
20868 "the command:"
20869 msgstr ""
20870
20871 #. type: verbatim
20872 #: ../fish/guestfish.pod:1075
20873 #, no-wrap
20874 msgid ""
20875 " ><fs> copy-size /large-file /another-file 2048M\n"
20876 " / 10% [#####-----------------------------------------] 00:30\n"
20877 "\n"
20878 msgstr ""
20879
20880 #. type: textblock
20881 #: ../fish/guestfish.pod:1078
20882 msgid ""
20883 "The spinner on the left hand side moves round once for every progress "
20884 "notification received from the backend.  This is a (reasonably) golden "
20885 "assurance that the command is \"doing something\" even if the progress bar "
20886 "is not moving, because the command is able to send the progress "
20887 "notifications.  When the bar reaches 100% and the command finishes, the "
20888 "spinner disappears."
20889 msgstr ""
20890
20891 #. type: textblock
20892 #: ../fish/guestfish.pod:1085
20893 msgid ""
20894 "Progress bars are enabled by default when guestfish is used interactively.  "
20895 "You can enable them even for non-interactive modes using I<--progress-bars>, "
20896 "and you can disable them completely using I<--no-progress-bars>."
20897 msgstr ""
20898
20899 #. type: =head1
20900 #: ../fish/guestfish.pod:1090
20901 msgid "GUESTFISH COMMANDS"
20902 msgstr ""
20903
20904 #. type: textblock
20905 #: ../fish/guestfish.pod:1092
20906 msgid ""
20907 "The commands in this section are guestfish convenience commands, in other "
20908 "words, they are not part of the L<guestfs(3)> API."
20909 msgstr ""
20910
20911 #. type: =head2
20912 #: ../fish/guestfish.pod:1095
20913 msgid "help"
20914 msgstr ""
20915
20916 #. type: verbatim
20917 #: ../fish/guestfish.pod:1097
20918 #, no-wrap
20919 msgid ""
20920 " help\n"
20921 " help cmd\n"
20922 "\n"
20923 msgstr ""
20924
20925 #. type: textblock
20926 #: ../fish/guestfish.pod:1100
20927 msgid "Without any parameter, this provides general help."
20928 msgstr ""
20929
20930 #. type: textblock
20931 #: ../fish/guestfish.pod:1102
20932 msgid "With a C<cmd> parameter, this displays detailed help for that command."
20933 msgstr ""
20934
20935 #. type: =head2
20936 #: ../fish/guestfish.pod:1104
20937 msgid "quit | exit"
20938 msgstr ""
20939
20940 #. type: textblock
20941 #: ../fish/guestfish.pod:1106
20942 msgid "This exits guestfish.  You can also use C<^D> key."
20943 msgstr ""
20944
20945 #. type: textblock
20946 #: ../fish/guestfish.pod:1108
20947 msgid "@FISH_COMMANDS@"
20948 msgstr ""
20949
20950 #. type: =head1
20951 #: ../fish/guestfish.pod:1110
20952 msgid "COMMANDS"
20953 msgstr ""
20954
20955 #. type: textblock
20956 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1520
20957 msgid "@ACTIONS@"
20958 msgstr ""
20959
20960 #. type: textblock
20961 #: ../fish/guestfish.pod:1116
20962 msgid ""
20963 "guestfish returns 0 if the commands completed without error, or 1 if there "
20964 "was an error."
20965 msgstr ""
20966
20967 #. type: =item
20968 #: ../fish/guestfish.pod:1123
20969 msgid "EDITOR"
20970 msgstr ""
20971
20972 #. type: textblock
20973 #: ../fish/guestfish.pod:1125
20974 msgid ""
20975 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
20976 "C<vi>."
20977 msgstr ""
20978
20979 #. type: =item
20980 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3218
20981 msgid "FEBOOTSTRAP_KERNEL"
20982 msgstr ""
20983
20984 #. type: =item
20985 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3220
20986 msgid "FEBOOTSTRAP_MODULES"
20987 msgstr ""
20988
20989 #. type: textblock
20990 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3222
20991 msgid ""
20992 "These two environment variables allow the kernel that libguestfs uses in the "
20993 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
20994 "most recent host kernel is chosen.  For more information about kernel "
20995 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
20996 "available in febootstrap E<ge> 3.8."
20997 msgstr ""
20998
20999 #. type: =item
21000 #: ../fish/guestfish.pod:1138
21001 msgid "GUESTFISH_DISPLAY_IMAGE"
21002 msgstr ""
21003
21004 #. type: textblock
21005 #: ../fish/guestfish.pod:1140
21006 msgid ""
21007 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
21008 "If not set, it uses L<display(1)>."
21009 msgstr ""
21010
21011 #. type: =item
21012 #: ../fish/guestfish.pod:1143
21013 msgid "GUESTFISH_PID"
21014 msgstr ""
21015
21016 #. type: textblock
21017 #: ../fish/guestfish.pod:1145
21018 msgid ""
21019 "Used with the I<--remote> option to specify the remote guestfish process to "
21020 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
21021 msgstr ""
21022
21023 #. type: =item
21024 #: ../fish/guestfish.pod:1149
21025 msgid "HEXEDITOR"
21026 msgstr ""
21027
21028 #. type: textblock
21029 #: ../fish/guestfish.pod:1151
21030 msgid ""
21031 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
21032 "not specified, the external L<hexedit(1)> program is used."
21033 msgstr ""
21034
21035 #. type: =item
21036 #: ../fish/guestfish.pod:1155
21037 msgid "HOME"
21038 msgstr ""
21039
21040 #. type: textblock
21041 #: ../fish/guestfish.pod:1157
21042 msgid ""
21043 "If compiled with GNU readline support, various files in the home directory "
21044 "can be used.  See L</FILES>."
21045 msgstr ""
21046
21047 #. type: =item
21048 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3228
21049 msgid "LIBGUESTFS_APPEND"
21050 msgstr ""
21051
21052 #. type: textblock
21053 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3230
21054 msgid "Pass additional options to the guest kernel."
21055 msgstr ""
21056
21057 #. type: =item
21058 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3232
21059 msgid "LIBGUESTFS_DEBUG"
21060 msgstr ""
21061
21062 #. type: textblock
21063 #: ../fish/guestfish.pod:1166
21064 msgid ""
21065 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
21066 "effect as using the B<-v> option."
21067 msgstr ""
21068
21069 #. type: =item
21070 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3237
21071 msgid "LIBGUESTFS_MEMSIZE"
21072 msgstr ""
21073
21074 #. type: textblock
21075 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3239
21076 msgid "Set the memory allocated to the qemu process, in megabytes.  For example:"
21077 msgstr ""
21078
21079 #. type: verbatim
21080 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3242
21081 #, no-wrap
21082 msgid ""
21083 " LIBGUESTFS_MEMSIZE=700\n"
21084 "\n"
21085 msgstr ""
21086
21087 #. type: =item
21088 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3244
21089 msgid "LIBGUESTFS_PATH"
21090 msgstr ""
21091
21092 #. type: textblock
21093 #: ../fish/guestfish.pod:1178
21094 msgid ""
21095 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
21096 "the discussion of paths in L<guestfs(3)>."
21097 msgstr ""
21098
21099 #. type: =item
21100 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3249
21101 msgid "LIBGUESTFS_QEMU"
21102 msgstr ""
21103
21104 #. type: textblock
21105 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3251
21106 msgid ""
21107 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
21108 "which was found at compile time by the configure script is used."
21109 msgstr ""
21110
21111 #. type: =item
21112 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3257
21113 msgid "LIBGUESTFS_TRACE"
21114 msgstr ""
21115
21116 #. type: textblock
21117 #: ../fish/guestfish.pod:1189
21118 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
21119 msgstr ""
21120
21121 #. type: =item
21122 #: ../fish/guestfish.pod:1191
21123 msgid "PAGER"
21124 msgstr ""
21125
21126 #. type: textblock
21127 #: ../fish/guestfish.pod:1193
21128 msgid ""
21129 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
21130 "C<more>."
21131 msgstr ""
21132
21133 #. type: =item
21134 #: ../fish/guestfish.pod:1196 ../sparsify/virt-sparsify.pod:260 ../src/guestfs.pod:3262
21135 msgid "TMPDIR"
21136 msgstr ""
21137
21138 #. type: textblock
21139 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3264
21140 msgid ""
21141 "Location of temporary directory, defaults to C</tmp> except for the cached "
21142 "supermin appliance which defaults to C</var/tmp>."
21143 msgstr ""
21144
21145 #. type: textblock
21146 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3267
21147 msgid ""
21148 "If libguestfs was compiled to use the supermin appliance then the real "
21149 "appliance is cached in this directory, shared between all handles belonging "
21150 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
21151 "use in case C</var/tmp> is not large enough."
21152 msgstr ""
21153
21154 #. type: =head1
21155 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297 ../rescue/virt-rescue.pod:310
21156 msgid "FILES"
21157 msgstr ""
21158
21159 #. type: =item
21160 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301 ../rescue/virt-rescue.pod:314
21161 msgid "$HOME/.libguestfs-tools.rc"
21162 msgstr ""
21163
21164 #. type: =item
21165 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303 ../rescue/virt-rescue.pod:316
21166 msgid "/etc/libguestfs-tools.conf"
21167 msgstr ""
21168
21169 #. type: textblock
21170 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305 ../rescue/virt-rescue.pod:318
21171 msgid ""
21172 "This configuration file controls the default read-only or read-write mode "
21173 "(I<--ro> or I<--rw>)."
21174 msgstr ""
21175
21176 #. type: textblock
21177 #: ../fish/guestfish.pod:1220
21178 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
21179 msgstr ""
21180
21181 #. type: =item
21182 #: ../fish/guestfish.pod:1222
21183 msgid "$HOME/.guestfish"
21184 msgstr ""
21185
21186 #. type: textblock
21187 #: ../fish/guestfish.pod:1224
21188 msgid ""
21189 "If compiled with GNU readline support, then the command history is saved in "
21190 "this file."
21191 msgstr ""
21192
21193 #. type: =item
21194 #: ../fish/guestfish.pod:1227
21195 msgid "$HOME/.inputrc"
21196 msgstr ""
21197
21198 #. type: =item
21199 #: ../fish/guestfish.pod:1229
21200 msgid "/etc/inputrc"
21201 msgstr ""
21202
21203 #. type: textblock
21204 #: ../fish/guestfish.pod:1231
21205 msgid ""
21206 "If compiled with GNU readline support, then these files can be used to "
21207 "configure readline.  For further information, please see "
21208 "L<readline(3)/INITIALIZATION FILE>."
21209 msgstr ""
21210
21211 #. type: textblock
21212 #: ../fish/guestfish.pod:1235
21213 msgid "To write rules which only apply to guestfish, use:"
21214 msgstr ""
21215
21216 #. type: verbatim
21217 #: ../fish/guestfish.pod:1237
21218 #, no-wrap
21219 msgid ""
21220 " $if guestfish\n"
21221 " ...\n"
21222 " $endif\n"
21223 "\n"
21224 msgstr ""
21225
21226 #. type: textblock
21227 #: ../fish/guestfish.pod:1241
21228 msgid ""
21229 "Variables that you can set in inputrc that change the behaviour of guestfish "
21230 "in useful ways include:"
21231 msgstr ""
21232
21233 #. type: =item
21234 #: ../fish/guestfish.pod:1246
21235 msgid "completion-ignore-case (default: on)"
21236 msgstr ""
21237
21238 #. type: textblock
21239 #: ../fish/guestfish.pod:1248
21240 msgid ""
21241 "By default, guestfish will ignore case when tab-completing paths on the "
21242 "disk.  Use:"
21243 msgstr ""
21244
21245 #. type: verbatim
21246 #: ../fish/guestfish.pod:1251
21247 #, no-wrap
21248 msgid ""
21249 " set completion-ignore-case off\n"
21250 "\n"
21251 msgstr ""
21252
21253 #. type: textblock
21254 #: ../fish/guestfish.pod:1253
21255 msgid "to make guestfish case sensitive."
21256 msgstr ""
21257
21258 #. type: =item
21259 #: ../fish/guestfish.pod:1257
21260 msgid "test1.img"
21261 msgstr ""
21262
21263 #. type: =item
21264 #: ../fish/guestfish.pod:1259
21265 msgid "test2.img (etc)"
21266 msgstr ""
21267
21268 #. type: textblock
21269 #: ../fish/guestfish.pod:1261
21270 msgid ""
21271 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
21272 "will be created in the file C<test1.img> in the current directory.  The "
21273 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
21274 "the same name will be overwritten."
21275 msgstr ""
21276
21277 #. type: textblock
21278 #: ../fish/guestfish.pod:1270
21279 msgid ""
21280 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, "
21281 "L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, "
21282 "L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, "
21283 "L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, "
21284 "L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, "
21285 "L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, "
21286 "L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<display(1)>, L<hexedit(1)>, "
21287 "L<febootstrap-supermin-helper(8)>."
21288 msgstr ""
21289
21290 #. type: textblock
21291 #: ../fish/guestfish.pod:1302 ../src/guestfs.pod:3360 ../test-tool/libguestfs-test-tool.pod:112
21292 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
21293 msgstr ""
21294
21295 #. type: textblock
21296 #: ../fish/virt-copy-in.pod:5
21297 msgid "virt-copy-in - Copy files and directories into a virtual machine disk image."
21298 msgstr ""
21299
21300 #. type: verbatim
21301 #: ../fish/virt-copy-in.pod:9
21302 #, no-wrap
21303 msgid ""
21304 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
21305 "\n"
21306 msgstr ""
21307
21308 #. type: verbatim
21309 #: ../fish/virt-copy-in.pod:11
21310 #, no-wrap
21311 msgid ""
21312 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
21313 "\n"
21314 msgstr ""
21315
21316 #. type: textblock
21317 #: ../fish/virt-copy-in.pod:15
21318 msgid ""
21319 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
21320 "causing disk corruption.  The virtual machine must be shut down before you "
21321 "use this command."
21322 msgstr ""
21323
21324 #. type: textblock
21325 #: ../fish/virt-copy-in.pod:21
21326 msgid ""
21327 "C<virt-copy-in> copies files and directories from the local disk into a "
21328 "virtual machine disk image or named libvirt domain."
21329 msgstr ""
21330
21331 #. type: textblock
21332 #: ../fish/virt-copy-in.pod:24
21333 msgid ""
21334 "You can give one of more filenames and directories on the command line.  "
21335 "Directories are copied in recursively.  The final parameter must be the "
21336 "destination directory in the disk image which must be an absolute path "
21337 "starting with a C</> character."
21338 msgstr ""
21339
21340 #. type: verbatim
21341 #: ../fish/virt-copy-in.pod:33
21342 #, no-wrap
21343 msgid ""
21344 " virt-copy-in -d MyGuest resolv.conf /etc\n"
21345 "\n"
21346 msgstr ""
21347
21348 #. type: textblock
21349 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
21350 msgid "Upload a home directory to a guest:"
21351 msgstr ""
21352
21353 #. type: verbatim
21354 #: ../fish/virt-copy-in.pod:37
21355 #, no-wrap
21356 msgid ""
21357 " virt-copy-in -d MyGuest skel /home\n"
21358 "\n"
21359 msgstr ""
21360
21361 #. type: =head1
21362 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28 ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
21363 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
21364 msgstr ""
21365
21366 #. type: textblock
21367 #: ../fish/virt-copy-in.pod:41
21368 msgid ""
21369 "This command is just a simple shell script wrapper around the "
21370 "L<guestfish(1)> C<copy-in> command.  For anything more complex than a "
21371 "trivial copy, you are probably better off using guestfish directly."
21372 msgstr ""
21373
21374 #. type: textblock
21375 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36 ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
21376 msgid ""
21377 "Since the shell script just passes options straight to guestfish, read "
21378 "L<guestfish(1)> to see the full list of options."
21379 msgstr ""
21380
21381 #. type: textblock
21382 #: ../fish/virt-copy-in.pod:52
21383 msgid ""
21384 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
21385 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21386 msgstr ""
21387
21388 #. type: textblock
21389 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55 ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
21390 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
21391 msgstr ""
21392
21393 #. type: textblock
21394 #: ../fish/virt-copy-out.pod:5
21395 msgid ""
21396 "virt-copy-out - Copy files and directories out of a virtual machine disk "
21397 "image."
21398 msgstr ""
21399
21400 #. type: verbatim
21401 #: ../fish/virt-copy-out.pod:9
21402 #, no-wrap
21403 msgid ""
21404 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
21405 "\n"
21406 msgstr ""
21407
21408 #. type: verbatim
21409 #: ../fish/virt-copy-out.pod:11
21410 #, no-wrap
21411 msgid ""
21412 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
21413 "\n"
21414 msgstr ""
21415
21416 #. type: textblock
21417 #: ../fish/virt-copy-out.pod:15
21418 msgid ""
21419 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
21420 "image or named libvirt domain."
21421 msgstr ""
21422
21423 #. type: textblock
21424 #: ../fish/virt-copy-out.pod:18
21425 msgid ""
21426 "You can give one of more filenames and directories on the command line.  "
21427 "Directories are copied out recursively."
21428 msgstr ""
21429
21430 #. type: textblock
21431 #: ../fish/virt-copy-out.pod:23
21432 msgid "Download the home directories from a virtual machine:"
21433 msgstr ""
21434
21435 #. type: verbatim
21436 #: ../fish/virt-copy-out.pod:25
21437 #, no-wrap
21438 msgid ""
21439 " mkdir homes\n"
21440 " virt-copy-out -d MyGuest /home homes\n"
21441 "\n"
21442 msgstr ""
21443
21444 #. type: textblock
21445 #: ../fish/virt-copy-out.pod:30
21446 msgid ""
21447 "This command is just a simple shell script wrapper around the "
21448 "L<guestfish(1)> C<copy-out> command.  For anything more complex than a "
21449 "trivial copy, you are probably better off using guestfish directly."
21450 msgstr ""
21451
21452 #. type: textblock
21453 #: ../fish/virt-copy-out.pod:41
21454 msgid ""
21455 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, "
21456 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21457 msgstr ""
21458
21459 #. type: textblock
21460 #: ../fish/virt-tar-in.pod:5
21461 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
21462 msgstr ""
21463
21464 #. type: verbatim
21465 #: ../fish/virt-tar-in.pod:9
21466 #, no-wrap
21467 msgid ""
21468 " virt-tar-in -a disk.img data.tar /destination\n"
21469 "\n"
21470 msgstr ""
21471
21472 #. type: verbatim
21473 #: ../fish/virt-tar-in.pod:11
21474 #, no-wrap
21475 msgid ""
21476 " virt-tar-in -d domain data.tar /destination\n"
21477 "\n"
21478 msgstr ""
21479
21480 #. type: verbatim
21481 #: ../fish/virt-tar-in.pod:13
21482 #, no-wrap
21483 msgid ""
21484 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
21485 "\n"
21486 msgstr ""
21487
21488 #. type: textblock
21489 #: ../fish/virt-tar-in.pod:17
21490 msgid ""
21491 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
21492 "causing disk corruption.  The virtual machine must be shut down before you "
21493 "use this command."
21494 msgstr ""
21495
21496 #. type: textblock
21497 #: ../fish/virt-tar-in.pod:23
21498 msgid ""
21499 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
21500 "image or named libvirt domain."
21501 msgstr ""
21502
21503 #. type: textblock
21504 #: ../fish/virt-tar-in.pod:26
21505 msgid ""
21506 "The first parameter is the tar file.  Use C<-> to read the tar file from "
21507 "standard input.  The second parameter is the absolute target directory to "
21508 "unpack into."
21509 msgstr ""
21510
21511 #. type: verbatim
21512 #: ../fish/virt-tar-in.pod:34
21513 #, no-wrap
21514 msgid ""
21515 " virt-tar-in -d MyGuest homes.tar /home\n"
21516 "\n"
21517 msgstr ""
21518
21519 #. type: textblock
21520 #: ../fish/virt-tar-in.pod:38
21521 msgid ""
21522 "This command is just a simple shell script wrapper around the "
21523 "L<guestfish(1)> C<tar-in> command.  For anything more complex than a trivial "
21524 "copy, you are probably better off using guestfish directly."
21525 msgstr ""
21526
21527 #. type: textblock
21528 #: ../fish/virt-tar-in.pod:49
21529 msgid ""
21530 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21531 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, "
21532 "L<http://libguestfs.org/>."
21533 msgstr ""
21534
21535 #. type: textblock
21536 #: ../fish/virt-tar-out.pod:5
21537 msgid "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
21538 msgstr ""
21539
21540 #. type: verbatim
21541 #: ../fish/virt-tar-out.pod:9
21542 #, no-wrap
21543 msgid ""
21544 " virt-tar-out -a disk.img /dir files.tar\n"
21545 "\n"
21546 msgstr ""
21547
21548 #. type: verbatim
21549 #: ../fish/virt-tar-out.pod:11
21550 #, no-wrap
21551 msgid ""
21552 " virt-tar-out -d domain /dir files.tar\n"
21553 "\n"
21554 msgstr ""
21555
21556 #. type: verbatim
21557 #: ../fish/virt-tar-out.pod:13
21558 #, no-wrap
21559 msgid ""
21560 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
21561 "\n"
21562 msgstr ""
21563
21564 #. type: textblock
21565 #: ../fish/virt-tar-out.pod:17
21566 msgid "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
21567 msgstr ""
21568
21569 #. type: textblock
21570 #: ../fish/virt-tar-out.pod:20
21571 msgid ""
21572 "The first parameter is the absolute path of the virtual machine directory.  "
21573 "The second parameter is the tar file to write.  Use C<-> to write to "
21574 "standard output."
21575 msgstr ""
21576
21577 #. type: textblock
21578 #: ../fish/virt-tar-out.pod:26
21579 msgid "Download the home directories from a guest:"
21580 msgstr ""
21581
21582 #. type: verbatim
21583 #: ../fish/virt-tar-out.pod:28
21584 #, no-wrap
21585 msgid ""
21586 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
21587 "\n"
21588 msgstr ""
21589
21590 #. type: textblock
21591 #: ../fish/virt-tar-out.pod:32
21592 msgid ""
21593 "This command is just a simple shell script wrapper around the "
21594 "L<guestfish(1)> C<tar-out> command.  For anything more complex than a "
21595 "trivial copy, you are probably better off using guestfish directly."
21596 msgstr ""
21597
21598 #. type: textblock
21599 #: ../fish/virt-tar-out.pod:43
21600 msgid ""
21601 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21602 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
21603 msgstr ""
21604
21605 #. type: textblock
21606 #: ../fuse/guestmount.pod:5
21607 msgid "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
21608 msgstr ""
21609
21610 #. type: verbatim
21611 #: ../fuse/guestmount.pod:9
21612 #, no-wrap
21613 msgid ""
21614 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
21615 "\n"
21616 msgstr ""
21617
21618 #. type: verbatim
21619 #: ../fuse/guestmount.pod:11
21620 #, no-wrap
21621 msgid ""
21622 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
21623 "\n"
21624 msgstr ""
21625
21626 #. type: verbatim
21627 #: ../fuse/guestmount.pod:13
21628 #, no-wrap
21629 msgid ""
21630 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
21631 "\n"
21632 msgstr ""
21633
21634 #. type: textblock
21635 #: ../fuse/guestmount.pod:17
21636 msgid ""
21637 "You must I<not> use C<guestmount> in read-write mode on live virtual "
21638 "machines.  If you do this, you risk disk corruption in the VM."
21639 msgstr ""
21640
21641 #. type: textblock
21642 #: ../fuse/guestmount.pod:22
21643 msgid ""
21644 "The guestmount program can be used to mount virtual machine filesystems and "
21645 "other disk images on the host.  It uses libguestfs for access to the guest "
21646 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
21647 "a mountable device."
21648 msgstr ""
21649
21650 #. type: textblock
21651 #: ../fuse/guestmount.pod:27
21652 msgid ""
21653 "Along with other options, you have to give at least one device (I<-a> "
21654 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
21655 "option) or use the I<-i> inspection option or the I<--live> option.  How "
21656 "this works is better explained in the L<guestfish(1)> manual page, or by "
21657 "looking at the examples below."
21658 msgstr ""
21659
21660 #. type: textblock
21661 #: ../fuse/guestmount.pod:33
21662 msgid ""
21663 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
21664 "by you, and the filesystem will not be visible to any other users unless you "
21665 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
21666 "the filesystem, use the C<fusermount -u> command."
21667 msgstr ""
21668
21669 #. type: textblock
21670 #: ../fuse/guestmount.pod:41
21671 msgid ""
21672 "For a typical Windows guest which has its main filesystem on the first "
21673 "partition:"
21674 msgstr ""
21675
21676 #. type: verbatim
21677 #: ../fuse/guestmount.pod:44
21678 #, no-wrap
21679 msgid ""
21680 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
21681 "\n"
21682 msgstr ""
21683
21684 #. type: textblock
21685 #: ../fuse/guestmount.pod:46
21686 msgid ""
21687 "For a typical Linux guest which has a /boot filesystem on the first "
21688 "partition, and the root filesystem on a logical volume:"
21689 msgstr ""
21690
21691 #. type: verbatim
21692 #: ../fuse/guestmount.pod:49
21693 #, no-wrap
21694 msgid ""
21695 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
21696 "\n"
21697 msgstr ""
21698
21699 #. type: textblock
21700 #: ../fuse/guestmount.pod:51
21701 msgid "To get libguestfs to detect guest mountpoints for you:"
21702 msgstr ""
21703
21704 #. type: verbatim
21705 #: ../fuse/guestmount.pod:53
21706 #, no-wrap
21707 msgid ""
21708 " guestmount -a guest.img -i --ro /mnt\n"
21709 "\n"
21710 msgstr ""
21711
21712 #. type: textblock
21713 #: ../fuse/guestmount.pod:55
21714 msgid "For a libvirt guest called \"Guest\" you could do:"
21715 msgstr ""
21716
21717 #. type: verbatim
21718 #: ../fuse/guestmount.pod:57
21719 #, no-wrap
21720 msgid ""
21721 " guestmount -d Guest -i --ro /mnt\n"
21722 "\n"
21723 msgstr ""
21724
21725 #. type: textblock
21726 #: ../fuse/guestmount.pod:59
21727 msgid ""
21728 "If you don't know what filesystems are contained in a guest or disk image, "
21729 "use L<virt-filesystems(1)> first:"
21730 msgstr ""
21731
21732 #. type: verbatim
21733 #: ../fuse/guestmount.pod:62
21734 #, no-wrap
21735 msgid ""
21736 " virt-filesystems MyGuest\n"
21737 "\n"
21738 msgstr ""
21739
21740 #. type: textblock
21741 #: ../fuse/guestmount.pod:64
21742 msgid ""
21743 "If you want to trace the libguestfs calls but without excessive debugging "
21744 "information, we recommend:"
21745 msgstr ""
21746
21747 #. type: verbatim
21748 #: ../fuse/guestmount.pod:67
21749 #, no-wrap
21750 msgid ""
21751 " guestmount [...] --trace /mnt\n"
21752 "\n"
21753 msgstr ""
21754
21755 #. type: textblock
21756 #: ../fuse/guestmount.pod:69
21757 msgid "If you want to debug the program, we recommend:"
21758 msgstr ""
21759
21760 #. type: verbatim
21761 #: ../fuse/guestmount.pod:71
21762 #, no-wrap
21763 msgid ""
21764 " guestmount [...] --trace --verbose /mnt\n"
21765 "\n"
21766 msgstr ""
21767
21768 #. type: =head1
21769 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:96 ../resize/virt-resize.pod:627
21770 msgid "NOTES"
21771 msgstr ""
21772
21773 #. type: =head2
21774 #: ../fuse/guestmount.pod:75
21775 msgid "Other users cannot see the filesystem by default"
21776 msgstr ""
21777
21778 #. type: textblock
21779 #: ../fuse/guestmount.pod:77
21780 msgid ""
21781 "If you mount a filesystem as one user (eg. root), then other users will not "
21782 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
21783 "option when mounting:"
21784 msgstr ""
21785
21786 #. type: verbatim
21787 #: ../fuse/guestmount.pod:81
21788 #, no-wrap
21789 msgid ""
21790 " sudo guestmount [...] -o allow_other /mnt\n"
21791 "\n"
21792 msgstr ""
21793
21794 #. type: =head2
21795 #: ../fuse/guestmount.pod:83
21796 msgid "Enabling FUSE"
21797 msgstr ""
21798
21799 #. type: textblock
21800 #: ../fuse/guestmount.pod:85
21801 msgid ""
21802 "On some distros, you may need to add yourself to a special group "
21803 "(eg. C<fuse>) before you can use any FUSE filesystem.  This is necessary on "
21804 "Debian and derivatives."
21805 msgstr ""
21806
21807 #. type: textblock
21808 #: ../fuse/guestmount.pod:89
21809 msgid ""
21810 "On other distros, no special group is required.  It is not necessary on "
21811 "Fedora or Red Hat Enterprise Linux."
21812 msgstr ""
21813
21814 #. type: textblock
21815 #: ../fuse/guestmount.pod:100
21816 msgid "Add a block device or virtual machine image."
21817 msgstr ""
21818
21819 #. type: =item
21820 #: ../fuse/guestmount.pod:123
21821 msgid "B<--dir-cache-timeout N>"
21822 msgstr ""
21823
21824 #. type: textblock
21825 #: ../fuse/guestmount.pod:125
21826 msgid ""
21827 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
21828 "seconds.  The readdir cache [actually, there are several semi-independent "
21829 "caches] is populated after a readdir(2) call with the stat and extended "
21830 "attributes of the files in the directory, in anticipation that they will be "
21831 "requested soon after."
21832 msgstr ""
21833
21834 #. type: textblock
21835 #: ../fuse/guestmount.pod:131
21836 msgid ""
21837 "There is also a different attribute cache implemented by FUSE (see the FUSE "
21838 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
21839 "requests, only cache existing ones."
21840 msgstr ""
21841
21842 #. type: textblock
21843 #: ../fuse/guestmount.pod:151
21844 msgid ""
21845 "If you have untrusted raw-format guest disk images, you should use this "
21846 "option to specify the disk format.  This avoids a possible security problem "
21847 "with malicious guests (CVE-2010-3851).  See also "
21848 "L<guestfs(3)/guestfs_add_drive_opts>."
21849 msgstr ""
21850
21851 #. type: =item
21852 #: ../fuse/guestmount.pod:156
21853 msgid "B<--fuse-help>"
21854 msgstr ""
21855
21856 #. type: textblock
21857 #: ../fuse/guestmount.pod:158
21858 msgid "Display help on special FUSE options (see I<-o> below)."
21859 msgstr ""
21860
21861 #. type: textblock
21862 #: ../fuse/guestmount.pod:162
21863 msgid "Display brief help and exit."
21864 msgstr ""
21865
21866 #. type: textblock
21867 #: ../fuse/guestmount.pod:186
21868 msgid ""
21869 "Mount the named partition or logical volume on the given mountpoint B<in the "
21870 "guest> (this has nothing to do with mountpoints in the host)."
21871 msgstr ""
21872
21873 #. type: textblock
21874 #: ../fuse/guestmount.pod:189
21875 msgid ""
21876 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
21877 "something on C</>."
21878 msgstr ""
21879
21880 #. type: textblock
21881 #: ../fuse/guestmount.pod:206
21882 msgid ""
21883 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
21884 "unmounted.  If you specify this option, then we don't attempt to sync the "
21885 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
21886 msgstr ""
21887
21888 #. type: =item
21889 #: ../fuse/guestmount.pod:211
21890 msgid "B<-o option>"
21891 msgstr ""
21892
21893 #. type: =item
21894 #: ../fuse/guestmount.pod:213
21895 msgid "B<--option option>"
21896 msgstr ""
21897
21898 #. type: textblock
21899 #: ../fuse/guestmount.pod:215
21900 msgid "Pass extra options to FUSE."
21901 msgstr ""
21902
21903 #. type: textblock
21904 #: ../fuse/guestmount.pod:217
21905 msgid ""
21906 "To get a list of all the extra options supported by FUSE, use the command "
21907 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
21908 "of them are a good idea."
21909 msgstr ""
21910
21911 #. type: verbatim
21912 #: ../fuse/guestmount.pod:221
21913 #, no-wrap
21914 msgid ""
21915 " guestmount --fuse-help\n"
21916 "\n"
21917 msgstr ""
21918
21919 #. type: textblock
21920 #: ../fuse/guestmount.pod:223
21921 msgid "Some potentially useful FUSE options:"
21922 msgstr ""
21923
21924 #. type: =item
21925 #: ../fuse/guestmount.pod:227
21926 msgid "B<-o allow_other>"
21927 msgstr ""
21928
21929 #. type: textblock
21930 #: ../fuse/guestmount.pod:229
21931 msgid "Allow other users to see the filesystem."
21932 msgstr ""
21933
21934 #. type: =item
21935 #: ../fuse/guestmount.pod:231
21936 msgid "B<-o attr_timeout=N>"
21937 msgstr ""
21938
21939 #. type: textblock
21940 #: ../fuse/guestmount.pod:233
21941 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
21942 msgstr ""
21943
21944 #. type: =item
21945 #: ../fuse/guestmount.pod:235
21946 msgid "B<-o kernel_cache>"
21947 msgstr ""
21948
21949 #. type: textblock
21950 #: ../fuse/guestmount.pod:237
21951 msgid ""
21952 "Allow the kernel to cache files (reduces the number of reads that have to go "
21953 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
21954 "afford the extra memory usage."
21955 msgstr ""
21956
21957 #. type: =item
21958 #: ../fuse/guestmount.pod:241
21959 msgid "B<-o uid=N> B<-o gid=N>"
21960 msgstr ""
21961
21962 #. type: textblock
21963 #: ../fuse/guestmount.pod:243
21964 msgid ""
21965 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
21966 "the chosen values."
21967 msgstr ""
21968
21969 #. type: textblock
21970 #: ../fuse/guestmount.pod:252
21971 msgid ""
21972 "Add devices and mount everything read-only.  Also disallow writes and make "
21973 "the disk appear read-only to FUSE."
21974 msgstr ""
21975
21976 #. type: textblock
21977 #: ../fuse/guestmount.pod:255
21978 msgid ""
21979 "This is highly recommended if you are not going to edit the guest disk.  If "
21980 "the guest is running and this option is I<not> supplied, then there is a "
21981 "strong risk of disk corruption in the guest.  We try to prevent this from "
21982 "happening, but it is not always possible."
21983 msgstr ""
21984
21985 #. type: textblock
21986 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:199
21987 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21988 msgstr ""
21989
21990 #. type: textblock
21991 #: ../fuse/guestmount.pod:264
21992 msgid "Enable SELinux support for the guest."
21993 msgstr ""
21994
21995 #. type: textblock
21996 #: ../fuse/guestmount.pod:270
21997 msgid "Enable verbose messages from underlying libguestfs."
21998 msgstr ""
21999
22000 #. type: textblock
22001 #: ../fuse/guestmount.pod:276
22002 msgid "Display the program version and exit."
22003 msgstr ""
22004
22005 #. type: textblock
22006 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308 ../rescue/virt-rescue.pod:238 ../rescue/virt-rescue.pod:321
22007 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22008 msgstr ""
22009
22010 #. type: =item
22011 #: ../fuse/guestmount.pod:289
22012 msgid "B<--trace>"
22013 msgstr ""
22014
22015 #. type: textblock
22016 #: ../fuse/guestmount.pod:291
22017 msgid "Trace libguestfs calls and entry into each FUSE function."
22018 msgstr ""
22019
22020 #. type: textblock
22021 #: ../fuse/guestmount.pod:293
22022 msgid "This also stops the daemon from forking into the background."
22023 msgstr ""
22024
22025 #. type: textblock
22026 #: ../fuse/guestmount.pod:319
22027 msgid ""
22028 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
22029 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, "
22030 "L<http://fuse.sf.net/>."
22031 msgstr ""
22032
22033 #. type: textblock
22034 #: ../fuse/guestmount.pod:334
22035 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
22036 msgstr ""
22037
22038 #. type: textblock
22039 #: ../inspector/virt-inspector.pod:5
22040 msgid ""
22041 "virt-inspector - Display operating system version and other information "
22042 "about a virtual machine"
22043 msgstr ""
22044
22045 #. type: verbatim
22046 #: ../inspector/virt-inspector.pod:9
22047 #, no-wrap
22048 msgid ""
22049 " virt-inspector [--options] -d domname\n"
22050 "\n"
22051 msgstr ""
22052
22053 #. type: verbatim
22054 #: ../inspector/virt-inspector.pod:11
22055 #, no-wrap
22056 msgid ""
22057 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
22058 "\n"
22059 msgstr ""
22060
22061 #. type: verbatim
22062 #: ../inspector/virt-inspector.pod:15
22063 #, no-wrap
22064 msgid ""
22065 " virt-inspector domname\n"
22066 "\n"
22067 msgstr ""
22068
22069 #. type: verbatim
22070 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:148
22071 #, no-wrap
22072 msgid ""
22073 " virt-inspector disk.img [disk.img ...]\n"
22074 "\n"
22075 msgstr ""
22076
22077 #. type: textblock
22078 #: ../inspector/virt-inspector.pod:21
22079 msgid ""
22080 "B<virt-inspector> examines a virtual machine or disk image and tries to "
22081 "determine the version of the operating system and other information about "
22082 "the virtual machine."
22083 msgstr ""
22084
22085 #. type: textblock
22086 #: ../inspector/virt-inspector.pod:25
22087 msgid "Virt-inspector produces XML output for feeding into other programs."
22088 msgstr ""
22089
22090 #. type: textblock
22091 #: ../inspector/virt-inspector.pod:27
22092 msgid ""
22093 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
22094 "the libvirt domain (see: C<virsh list --all>)."
22095 msgstr ""
22096
22097 #. type: textblock
22098 #: ../inspector/virt-inspector.pod:30
22099 msgid ""
22100 "You can also run virt-inspector directly on disk images from a single "
22101 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
22102 "has several block devices, in which case you should list several I<-a> "
22103 "options one after another, with the first corresponding to the guest's "
22104 "C</dev/sda>, the second to the guest's C</dev/sdb> and so on."
22105 msgstr ""
22106
22107 #. type: textblock
22108 #: ../inspector/virt-inspector.pod:37
22109 msgid ""
22110 "You can also run virt-inspector on install disks, live CDs, bootable USB "
22111 "keys and similar."
22112 msgstr ""
22113
22114 #. type: textblock
22115 #: ../inspector/virt-inspector.pod:40
22116 msgid ""
22117 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
22118 "inspect several virtual machines, you have to run virt-inspector several "
22119 "times (for example, from a shell script for-loop)."
22120 msgstr ""
22121
22122 #. type: textblock
22123 #: ../inspector/virt-inspector.pod:45
22124 msgid ""
22125 "Because virt-inspector needs direct access to guest images, it won't "
22126 "normally work over remote libvirt connections."
22127 msgstr ""
22128
22129 #. type: textblock
22130 #: ../inspector/virt-inspector.pod:48
22131 msgid ""
22132 "All of the information available from virt-inspector is also available "
22133 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
22134 "The same information can also be fetched using guestfish or via libguestfs "
22135 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
22136 "WITH OTHER PROGRAMMING LANGUAGES>)."
22137 msgstr ""
22138
22139 #. type: textblock
22140 #: ../inspector/virt-inspector.pod:81
22141 msgid ""
22142 "Libvirt is only used if you specify a C<domname> on the command line.  If "
22143 "you specify guest block devices directly (I<-a>), then libvirt is not used "
22144 "at all."
22145 msgstr ""
22146
22147 #. type: textblock
22148 #: ../inspector/virt-inspector.pod:94
22149 msgid ""
22150 "When prompting for keys and passphrases, virt-inspector normally turns "
22151 "echoing off so you cannot see what you are typing.  If you are not worried "
22152 "about Tempest attacks and there is no one else in the room you can specify "
22153 "this flag to see what you are typing."
22154 msgstr ""
22155
22156 #. type: textblock
22157 #: ../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
22158 msgid ""
22159 "Specify the format of disk images given on the command line.  If this is "
22160 "omitted then the format is autodetected from the content of the disk image."
22161 msgstr ""
22162
22163 #. type: textblock
22164 #: ../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
22165 msgid ""
22166 "If disk images are requested from libvirt, then this program asks libvirt "
22167 "for this information.  In this case, the value of the format parameter is "
22168 "ignored."
22169 msgstr ""
22170
22171 #. type: textblock
22172 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:397 ../resize/virt-resize.pod:489 ../sparsify/virt-sparsify.pod:144 ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102 ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
22173 msgid ""
22174 "If working with untrusted raw-format guest disk images, you should ensure "
22175 "the format is always specified."
22176 msgstr ""
22177
22178 #. type: =item
22179 #: ../inspector/virt-inspector.pod:135
22180 msgid "B<--xpath> query"
22181 msgstr ""
22182
22183 #. type: textblock
22184 #: ../inspector/virt-inspector.pod:137
22185 msgid ""
22186 "Perform an XPath query on the XML on stdin, and print the result on stdout.  "
22187 "In this mode virt-inspector simply runs an XPath query; all other inspection "
22188 "functions are disabled.  See L</XPATH QUERIES> below for some examples."
22189 msgstr ""
22190
22191 #. type: textblock
22192 #: ../inspector/virt-inspector.pod:146
22193 msgid "Previous versions of virt-inspector allowed you to write either:"
22194 msgstr ""
22195
22196 #. type: verbatim
22197 #: ../inspector/virt-inspector.pod:152
22198 #, no-wrap
22199 msgid ""
22200 " virt-inspector guestname\n"
22201 "\n"
22202 msgstr ""
22203
22204 #. type: =head1
22205 #: ../inspector/virt-inspector.pod:160
22206 msgid "XML FORMAT"
22207 msgstr ""
22208
22209 #. type: textblock
22210 #: ../inspector/virt-inspector.pod:162
22211 msgid ""
22212 "The virt-inspector XML is described precisely in a RELAX NG schema file "
22213 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
22214 "just an overview."
22215 msgstr ""
22216
22217 #. type: textblock
22218 #: ../inspector/virt-inspector.pod:166
22219 msgid ""
22220 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
22221 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
22222 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
22223 "which is vanishingly rare in real world VMs."
22224 msgstr ""
22225
22226 #. type: =head2
22227 #: ../inspector/virt-inspector.pod:171
22228 msgid "E<lt>operatingsystemE<gt>"
22229 msgstr ""
22230
22231 #. type: textblock
22232 #: ../inspector/virt-inspector.pod:173
22233 msgid ""
22234 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
22235 "describe the operating system, its architecture, the descriptive \"product "
22236 "name\" string, the type of OS and so on, as in this example:"
22237 msgstr ""
22238
22239 #. type: verbatim
22240 #: ../inspector/virt-inspector.pod:177
22241 #, no-wrap
22242 msgid ""
22243 " <operatingsystems>\n"
22244 "   <operatingsystem>\n"
22245 "     <root>/dev/sda2</root>\n"
22246 "     <name>windows</name>\n"
22247 "     <arch>i386</arch>\n"
22248 "     <distro>windows</distro>\n"
22249 "     <product_name>Windows 7 Enterprise</product_name>\n"
22250 "     <product_variant>Client</product_variant>\n"
22251 "     <major_version>6</major_version>\n"
22252 "     <minor_version>1</minor_version>\n"
22253 "     <windows_systemroot>/Windows</windows_systemroot>\n"
22254 "     <format>installed</format>\n"
22255 "\n"
22256 msgstr ""
22257
22258 #. type: textblock
22259 #: ../inspector/virt-inspector.pod:190
22260 msgid ""
22261 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
22262 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
22263 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
22264 "architecture.  The other fields are fairly self-explanatory, but because "
22265 "these fields are taken directly from the libguestfs inspection API you can "
22266 "find precise information from L<guestfs(3)/INSPECTION>."
22267 msgstr ""
22268
22269 #. type: textblock
22270 #: ../inspector/virt-inspector.pod:198
22271 msgid ""
22272 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
22273 "of view of libguestfs (block devices may have completely different names "
22274 "inside the VM itself)."
22275 msgstr ""
22276
22277 #. type: =head2
22278 #: ../inspector/virt-inspector.pod:202
22279 msgid "E<lt>mountpointsE<gt>"
22280 msgstr ""
22281
22282 #. type: textblock
22283 #: ../inspector/virt-inspector.pod:204
22284 msgid ""
22285 "Un*x-like guests typically have multiple filesystems which are mounted at "
22286 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
22287 "element which looks like this:"
22288 msgstr ""
22289
22290 #. type: verbatim
22291 #: ../inspector/virt-inspector.pod:208
22292 #, no-wrap
22293 msgid ""
22294 " <operatingsystems>\n"
22295 "   <operatingsystem>\n"
22296 "     ...\n"
22297 "     <mountpoints>\n"
22298 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
22299 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
22300 "     </mountpoints>\n"
22301 "\n"
22302 msgstr ""
22303
22304 #. type: textblock
22305 #: ../inspector/virt-inspector.pod:216
22306 msgid ""
22307 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
22308 "and may have completely different names inside the guest.  Only mountable "
22309 "filesystems appear in this list, not things like swap devices."
22310 msgstr ""
22311
22312 #. type: =head2
22313 #: ../inspector/virt-inspector.pod:221
22314 msgid "E<lt>filesystemsE<gt>"
22315 msgstr ""
22316
22317 #. type: textblock
22318 #: ../inspector/virt-inspector.pod:223
22319 msgid ""
22320 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
22321 "filesystems belonging to the guest, including swap and empty partitions.  "
22322 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
22323 "this OS or shared with this OS and other OSes)."
22324 msgstr ""
22325
22326 #. type: textblock
22327 #: ../inspector/virt-inspector.pod:229
22328 msgid "You might see something like this:"
22329 msgstr ""
22330
22331 #. type: verbatim
22332 #: ../inspector/virt-inspector.pod:231
22333 #, no-wrap
22334 msgid ""
22335 " <operatingsystems>\n"
22336 "   <operatingsystem>\n"
22337 "     ...\n"
22338 "     <filesystems>\n"
22339 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22340 "         <type>ext4</type>\n"
22341 "         <label>Fedora-13-x86_64</label>\n"
22342 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
22343 "       </filesystem>\n"
22344 "\n"
22345 msgstr ""
22346
22347 #. type: textblock
22348 #: ../inspector/virt-inspector.pod:241
22349 msgid ""
22350 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
22351 "the label, and the UUID."
22352 msgstr ""
22353
22354 #. type: =head2
22355 #: ../inspector/virt-inspector.pod:244
22356 msgid "E<lt>applicationsE<gt>"
22357 msgstr ""
22358
22359 #. type: textblock
22360 #: ../inspector/virt-inspector.pod:246
22361 msgid ""
22362 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
22363 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
22364 "machine."
22365 msgstr ""
22366
22367 #. type: textblock
22368 #: ../inspector/virt-inspector.pod:250
22369 msgid ""
22370 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
22371 "Typical values would be C<rpm> and C<deb>."
22372 msgstr ""
22373
22374 #. type: textblock
22375 #: ../inspector/virt-inspector.pod:253
22376 msgid ""
22377 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
22378 "Typical values include C<yum>, C<up2date> and C<apt>"
22379 msgstr ""
22380
22381 #. type: textblock
22382 #: ../inspector/virt-inspector.pod:256
22383 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
22384 msgstr ""
22385
22386 #. type: verbatim
22387 #: ../inspector/virt-inspector.pod:259
22388 #, no-wrap
22389 msgid ""
22390 " <operatingsystems>\n"
22391 "   <operatingsystem>\n"
22392 "     ...\n"
22393 "     <applications>\n"
22394 "       <application>\n"
22395 "         <name>coreutils</name>\n"
22396 "         <version>8.5</version>\n"
22397 "         <release>1</release>\n"
22398 "       </application>\n"
22399 "\n"
22400 msgstr ""
22401
22402 #. type: textblock
22403 #: ../inspector/virt-inspector.pod:269
22404 msgid ""
22405 "The version and release fields may not be available for some types guests.  "
22406 "Other fields are possible, see "
22407 "L<guestfs(3)/guestfs_inspect_list_applications>."
22408 msgstr ""
22409
22410 #. type: =head2
22411 #: ../inspector/virt-inspector.pod:273
22412 msgid "E<lt>drive_mappingsE<gt>"
22413 msgstr ""
22414
22415 #. type: textblock
22416 #: ../inspector/virt-inspector.pod:275
22417 msgid ""
22418 "For operating systems like Windows which use drive letters, virt-inspector "
22419 "is able to find out how drive letters map to filesystems."
22420 msgstr ""
22421
22422 #. type: verbatim
22423 #: ../inspector/virt-inspector.pod:279
22424 #, no-wrap
22425 msgid ""
22426 " <operatingsystems>\n"
22427 "   <operatingsystem>\n"
22428 "     ...\n"
22429 "     <drive_mappings>\n"
22430 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
22431 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
22432 "     </drive_mappings>\n"
22433 "\n"
22434 msgstr ""
22435
22436 #. type: textblock
22437 #: ../inspector/virt-inspector.pod:287
22438 msgid ""
22439 "In the example above, drive C maps to the filesystem on the second partition "
22440 "on the first disk, and drive E maps to the filesystem on the first partition "
22441 "on the second disk."
22442 msgstr ""
22443
22444 #. type: textblock
22445 #: ../inspector/virt-inspector.pod:291
22446 msgid ""
22447 "Note that this only covers permanent local filesystem mappings, not things "
22448 "like network shares.  Furthermore NTFS volume mount points may not be listed "
22449 "here."
22450 msgstr ""
22451
22452 #. type: =head2
22453 #: ../inspector/virt-inspector.pod:295
22454 msgid "E<lt>iconE<gt>"
22455 msgstr ""
22456
22457 #. type: textblock
22458 #: ../inspector/virt-inspector.pod:297
22459 msgid ""
22460 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
22461 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
22462 "very large and high quality."
22463 msgstr ""
22464
22465 #. type: verbatim
22466 #: ../inspector/virt-inspector.pod:301
22467 #, no-wrap
22468 msgid ""
22469 " <operatingsystems>\n"
22470 "   <operatingsystem>\n"
22471 "     ...\n"
22472 "     <icon>\n"
22473 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
22474 "       [... many lines of base64 data ...]\n"
22475 "     </icon>\n"
22476 "\n"
22477 msgstr ""
22478
22479 #. type: textblock
22480 #: ../inspector/virt-inspector.pod:309
22481 msgid ""
22482 "To display the icon, you have to extract it and convert the base64 data back "
22483 "to a binary file.  Use an XPath query or simply an editor to extract the "
22484 "data, then use the coreutils L<base64(1)> program to do the conversion back "
22485 "to a PNG file:"
22486 msgstr ""
22487
22488 #. type: verbatim
22489 #: ../inspector/virt-inspector.pod:314
22490 #, no-wrap
22491 msgid ""
22492 " base64 -i -d < icon.data > icon.png\n"
22493 "\n"
22494 msgstr ""
22495
22496 #. type: =head2
22497 #: ../inspector/virt-inspector.pod:316
22498 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
22499 msgstr ""
22500
22501 #. type: textblock
22502 #: ../inspector/virt-inspector.pod:318
22503 msgid ""
22504 "Virt-inspector can detect some operating system installers on install disks, "
22505 "live CDs, bootable USB keys and more."
22506 msgstr ""
22507
22508 #. type: textblock
22509 #: ../inspector/virt-inspector.pod:321
22510 msgid ""
22511 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
22512 "fields may be present to indicate a live CD, network installer, or one part "
22513 "of a multipart CD.  For example:"
22514 msgstr ""
22515
22516 #. type: verbatim
22517 #: ../inspector/virt-inspector.pod:325
22518 #, no-wrap
22519 msgid ""
22520 " <operatingsystems>\n"
22521 "   <operatingsystem>\n"
22522 "     <root>/dev/sda</root>\n"
22523 "     <name>linux</name>\n"
22524 "     <arch>i386</arch>\n"
22525 "     <distro>ubuntu</distro>\n"
22526 "     <product_name>Ubuntu 10.10 &quot;Maverick "
22527 "Meerkat&quot;</product_name>\n"
22528 "     <major_version>10</major_version>\n"
22529 "     <minor_version>10</minor_version>\n"
22530 "     <format>installer</format>\n"
22531 "     <live/>\n"
22532 "\n"
22533 msgstr ""
22534
22535 #. type: =head1
22536 #: ../inspector/virt-inspector.pod:337
22537 msgid "XPATH QUERIES"
22538 msgstr ""
22539
22540 #. type: textblock
22541 #: ../inspector/virt-inspector.pod:339
22542 msgid ""
22543 "Virt-inspector includes built in support for running XPath queries.  The "
22544 "reason for including XPath support directly in virt-inspector is simply that "
22545 "there are no good and widely available command line programs that can do "
22546 "XPath queries.  The only good one is L<xmlstarlet(1)> and that is not "
22547 "available on Red Hat Enterprise Linux."
22548 msgstr ""
22549
22550 #. type: textblock
22551 #: ../inspector/virt-inspector.pod:346
22552 msgid ""
22553 "To perform an XPath query, use the I<--xpath> option.  Note that in this "
22554 "mode, virt-inspector simply reads XML from stdin and outputs the query "
22555 "result on stdout.  All other inspection features are disabled in this mode."
22556 msgstr ""
22557
22558 #. type: verbatim
22559 #: ../inspector/virt-inspector.pod:353
22560 #, no-wrap
22561 msgid ""
22562 " $ virt-inspector -d Guest | virt-inspector --xpath '//filesystems'\n"
22563 " <filesystems>\n"
22564 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22565 "        <type>ext4</type>\n"
22566 " [...]\n"
22567 "\n"
22568 msgstr ""
22569
22570 #. type: verbatim
22571 #: ../inspector/virt-inspector.pod:359
22572 #, no-wrap
22573 msgid ""
22574 " $ virt-inspector -d Guest | \\\n"
22575 "     virt-inspector --xpath "
22576 "\"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
22577 " ext4\n"
22578 "\n"
22579 msgstr ""
22580
22581 #. type: verbatim
22582 #: ../inspector/virt-inspector.pod:363
22583 #, no-wrap
22584 msgid ""
22585 " $ virt-inspector -d Guest | \\\n"
22586 "     virt-inspector --xpath 'string(//icon)' | base64 -i -d | display -\n"
22587 " [displays the guest icon, if there is one]\n"
22588 "\n"
22589 msgstr ""
22590
22591 #. type: =head1
22592 #: ../inspector/virt-inspector.pod:374
22593 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
22594 msgstr ""
22595
22596 #. type: textblock
22597 #: ../inspector/virt-inspector.pod:376
22598 msgid ""
22599 "Early versions of libguestfs shipped with a different virt-inspector program "
22600 "written in Perl (the current version is written in C).  The XML output of "
22601 "the Perl virt-inspector was different and it could also output in other "
22602 "formats like text."
22603 msgstr ""
22604
22605 #. type: textblock
22606 #: ../inspector/virt-inspector.pod:381
22607 msgid "The old virt-inspector is no longer supported or shipped with libguestfs."
22608 msgstr ""
22609
22610 #. type: textblock
22611 #: ../inspector/virt-inspector.pod:384
22612 msgid ""
22613 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
22614 "versions of virt-inspector with different names:"
22615 msgstr ""
22616
22617 #. type: verbatim
22618 #: ../inspector/virt-inspector.pod:387
22619 #, no-wrap
22620 msgid ""
22621 " virt-inspector     Old Perl version.\n"
22622 " virt-inspector2    New C version.\n"
22623 "\n"
22624 msgstr ""
22625
22626 #. type: textblock
22627 #: ../inspector/virt-inspector.pod:397
22628 msgid ""
22629 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, "
22630 "L<base64(1)>, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
22631 msgstr ""
22632
22633 #. type: textblock
22634 #: ../inspector/virt-inspector.pod:414
22635 msgid "Matthew Booth L<mbooth@redhat.com>"
22636 msgstr ""
22637
22638 #. type: textblock
22639 #: ../java/examples/guestfs-java.pod:5
22640 msgid "guestfs-java - How to use libguestfs from Java"
22641 msgstr ""
22642
22643 #. type: verbatim
22644 #: ../java/examples/guestfs-java.pod:9
22645 #, no-wrap
22646 msgid ""
22647 " import com.redhat.et.libguestfs.*;\n"
22648 " \n"
22649 msgstr ""
22650
22651 #. type: verbatim
22652 #: ../java/examples/guestfs-java.pod:11
22653 #, no-wrap
22654 msgid ""
22655 " GuestFS g = new GuestFS ();\n"
22656 " g.add_drive_opts (\"disk.img\", null);\n"
22657 " g.launch ();\n"
22658 "\n"
22659 msgstr ""
22660
22661 #. type: textblock
22662 #: ../java/examples/guestfs-java.pod:17
22663 msgid ""
22664 "This manual page documents how to call libguestfs from the Java programming "
22665 "language.  This page just documents the differences from the C API and gives "
22666 "some examples.  If you are not familiar with using libguestfs, you also need "
22667 "to read L<guestfs(3)>."
22668 msgstr ""
22669
22670 #. type: =head2
22671 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
22672 msgid "CLOSING THE HANDLE"
22673 msgstr ""
22674
22675 #. type: textblock
22676 #: ../java/examples/guestfs-java.pod:24
22677 msgid ""
22678 "The handle is closed when it is reaped by the garbage collector.  Because "
22679 "libguestfs handles include a lot of state, it is also possible to close (and "
22680 "hence free) them explicitly by calling the C<close> method."
22681 msgstr ""
22682
22683 #. type: =head2
22684 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60 ../python/examples/guestfs-python.pod:21 ../ruby/examples/guestfs-ruby.pod:22
22685 msgid "EXCEPTIONS"
22686 msgstr ""
22687
22688 #. type: textblock
22689 #: ../java/examples/guestfs-java.pod:31
22690 msgid ""
22691 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
22692 "exception.  This has a single parameter which is the error message (a "
22693 "C<String>)."
22694 msgstr ""
22695
22696 #. type: textblock
22697 #: ../java/examples/guestfs-java.pod:35
22698 msgid "Calling any method on a closed handle raises the same exception."
22699 msgstr ""
22700
22701 #. type: textblock
22702 #: ../java/examples/guestfs-java.pod:47
22703 msgid ""
22704 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
22705 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
22706 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>, "
22707 "L<http://caml.inria.fr/>."
22708 msgstr ""
22709
22710 #. type: textblock
22711 #: ../ocaml/examples/guestfs-ocaml.pod:5
22712 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
22713 msgstr ""
22714
22715 #. type: textblock
22716 #: ../ocaml/examples/guestfs-ocaml.pod:9
22717 msgid "Module style:"
22718 msgstr ""
22719
22720 #. type: verbatim
22721 #: ../ocaml/examples/guestfs-ocaml.pod:11
22722 #, no-wrap
22723 msgid ""
22724 " let g = Guestfs.create () in\n"
22725 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22726 " Guestfs.launch g;\n"
22727 "\n"
22728 msgstr ""
22729
22730 #. type: textblock
22731 #: ../ocaml/examples/guestfs-ocaml.pod:15
22732 msgid "Object-oriented style:"
22733 msgstr ""
22734
22735 #. type: verbatim
22736 #: ../ocaml/examples/guestfs-ocaml.pod:17
22737 #, no-wrap
22738 msgid ""
22739 " let g = new Guestfs.guestfs () in\n"
22740 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22741 " g#launch ();\n"
22742 "\n"
22743 msgstr ""
22744
22745 #. type: verbatim
22746 #: ../ocaml/examples/guestfs-ocaml.pod:21
22747 #, no-wrap
22748 msgid ""
22749 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
22750 "or:\n"
22751 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
22752 "\n"
22753 msgstr ""
22754
22755 #. type: textblock
22756 #: ../ocaml/examples/guestfs-ocaml.pod:27
22757 msgid ""
22758 "This manual page documents how to call libguestfs from the OCaml programming "
22759 "language.  This page just documents the differences from the C API and gives "
22760 "some examples.  If you are not familiar with using libguestfs, you also need "
22761 "to read L<guestfs(3)>."
22762 msgstr ""
22763
22764 #. type: =head2
22765 #: ../ocaml/examples/guestfs-ocaml.pod:32
22766 msgid "PROGRAMMING STYLES"
22767 msgstr ""
22768
22769 #. type: textblock
22770 #: ../ocaml/examples/guestfs-ocaml.pod:34
22771 msgid ""
22772 "There are two different programming styles supported by the OCaml bindings.  "
22773 "You can use a module style, with each C function mapped to an OCaml "
22774 "function:"
22775 msgstr ""
22776
22777 #. type: verbatim
22778 #: ../ocaml/examples/guestfs-ocaml.pod:38
22779 #, no-wrap
22780 msgid ""
22781 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
22782 "\n"
22783 msgstr ""
22784
22785 #. type: textblock
22786 #: ../ocaml/examples/guestfs-ocaml.pod:40
22787 msgid "becomes:"
22788 msgstr ""
22789
22790 #. type: verbatim
22791 #: ../ocaml/examples/guestfs-ocaml.pod:42
22792 #, no-wrap
22793 msgid ""
22794 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
22795 "\n"
22796 msgstr ""
22797
22798 #. type: textblock
22799 #: ../ocaml/examples/guestfs-ocaml.pod:44
22800 msgid ""
22801 "Alternately you can use an object-oriented style, calling methods on the "
22802 "class C<Guestfs.guestfs>:"
22803 msgstr ""
22804
22805 #. type: verbatim
22806 #: ../ocaml/examples/guestfs-ocaml.pod:47
22807 #, no-wrap
22808 msgid ""
22809 " method set_verbose : bool -> unit\n"
22810 "\n"
22811 msgstr ""
22812
22813 #. type: textblock
22814 #: ../ocaml/examples/guestfs-ocaml.pod:49
22815 msgid ""
22816 "The object-oriented style is usually briefer, and the minor performance "
22817 "penalty isn't noticable in the general overhead of performing libguestfs "
22818 "functions."
22819 msgstr ""
22820
22821 #. type: textblock
22822 #: ../ocaml/examples/guestfs-ocaml.pod:55
22823 msgid ""
22824 "The handle is closed when it is reaped by the garbage collector.  Because "
22825 "libguestfs handles include a lot of state, it is also possible to close (and "
22826 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
22827 "method."
22828 msgstr ""
22829
22830 #. type: textblock
22831 #: ../ocaml/examples/guestfs-ocaml.pod:62
22832 msgid ""
22833 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
22834 "exception.  This has a single parameter which is the error message (a "
22835 "string)."
22836 msgstr ""
22837
22838 #. type: textblock
22839 #: ../ocaml/examples/guestfs-ocaml.pod:66
22840 msgid ""
22841 "Calling any function/method on a closed handle raises "
22842 "C<Guestfs.Handle_closed>.  The single parameter is the name of the function "
22843 "that you called."
22844 msgstr ""
22845
22846 #. type: textblock
22847 #: ../ocaml/examples/guestfs-ocaml.pod:80
22848 msgid ""
22849 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
22850 "L<guestfs-java(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
22851 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>, "
22852 "L<http://caml.inria.fr/>."
22853 msgstr ""
22854
22855 #. type: textblock
22856 #: ../perl/examples/guestfs-perl.pod:5
22857 msgid "guestfs-perl - How to use libguestfs from Perl"
22858 msgstr ""
22859
22860 #. type: verbatim
22861 #: ../perl/examples/guestfs-perl.pod:9
22862 #, no-wrap
22863 msgid ""
22864 " use Sys::Guestfs;\n"
22865 " \n"
22866 msgstr ""
22867
22868 #. type: verbatim
22869 #: ../perl/examples/guestfs-perl.pod:11
22870 #, no-wrap
22871 msgid ""
22872 " my $h = Sys::Guestfs->new ();\n"
22873 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
22874 " $h->launch ();\n"
22875 " $h->mount_options ('', '/dev/sda1', '/');\n"
22876 " $h->touch ('/hello');\n"
22877 " $h->sync ();\n"
22878 "\n"
22879 msgstr ""
22880
22881 #. type: textblock
22882 #: ../perl/examples/guestfs-perl.pod:20
22883 msgid ""
22884 "This manual page documents how to call libguestfs from the Perl programming "
22885 "language.  This page just documents the differences from the C API and gives "
22886 "some examples.  If you are not familiar with using libguestfs, you also need "
22887 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
22888 msgstr ""
22889
22890 #. type: =head2
22891 #: ../perl/examples/guestfs-perl.pod:26
22892 msgid "ERRORS"
22893 msgstr ""
22894
22895 #. type: textblock
22896 #: ../perl/examples/guestfs-perl.pod:28
22897 msgid ""
22898 "Errors from libguestfs functions turn into calls to C<croak> (see "
22899 "L<Carp(3)>)."
22900 msgstr ""
22901
22902 #. type: textblock
22903 #: ../perl/examples/guestfs-perl.pod:41
22904 msgid ""
22905 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, "
22906 "L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, "
22907 "L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, "
22908 "L<http://libguestfs.org/>."
22909 msgstr ""
22910
22911 #. type: textblock
22912 #: ../python/examples/guestfs-python.pod:5
22913 msgid "guestfs-python - How to use libguestfs from Python"
22914 msgstr ""
22915
22916 #. type: verbatim
22917 #: ../python/examples/guestfs-python.pod:9
22918 #, no-wrap
22919 msgid ""
22920 " import guestfs\n"
22921 " g = guestfs.GuestFS ()\n"
22922 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
22923 " g.launch\n"
22924 "\n"
22925 msgstr ""
22926
22927 #. type: textblock
22928 #: ../python/examples/guestfs-python.pod:16
22929 msgid ""
22930 "This manual page documents how to call libguestfs from the Python "
22931 "programming language.  This page just documents the differences from the C "
22932 "API and gives some examples.  If you are not familiar with using libguestfs, "
22933 "you also need to read L<guestfs(3)>."
22934 msgstr ""
22935
22936 #. type: textblock
22937 #: ../python/examples/guestfs-python.pod:23
22938 msgid ""
22939 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
22940 "single string argument which is the error message."
22941 msgstr ""
22942
22943 #. type: =head2
22944 #: ../python/examples/guestfs-python.pod:26
22945 msgid "MORE DOCUMENTATION"
22946 msgstr ""
22947
22948 #. type: textblock
22949 #: ../python/examples/guestfs-python.pod:28
22950 msgid "Type:"
22951 msgstr ""
22952
22953 #. type: verbatim
22954 #: ../python/examples/guestfs-python.pod:30
22955 #, no-wrap
22956 msgid ""
22957 " $ python\n"
22958 " >>> import guestfs\n"
22959 " >>> help (guestfs)\n"
22960 "\n"
22961 msgstr ""
22962
22963 #. type: textblock
22964 #: ../python/examples/guestfs-python.pod:44
22965 msgid ""
22966 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
22967 "L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
22968 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
22969 msgstr ""
22970
22971 #. type: textblock
22972 #: ../rescue/virt-rescue.pod:5
22973 msgid "virt-rescue - Run a rescue shell on a virtual machine"
22974 msgstr ""
22975
22976 #. type: verbatim
22977 #: ../rescue/virt-rescue.pod:9
22978 #, no-wrap
22979 msgid ""
22980 " virt-rescue [--options] -d domname\n"
22981 "\n"
22982 msgstr ""
22983
22984 #. type: verbatim
22985 #: ../rescue/virt-rescue.pod:11
22986 #, no-wrap
22987 msgid ""
22988 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
22989 "\n"
22990 msgstr ""
22991
22992 #. type: verbatim
22993 #: ../rescue/virt-rescue.pod:13
22994 #, no-wrap
22995 msgid ""
22996 " virt-rescue --suggest (-d domname | -a disk.img ...)\n"
22997 "\n"
22998 msgstr ""
22999
23000 #. type: verbatim
23001 #: ../rescue/virt-rescue.pod:17
23002 #, no-wrap
23003 msgid ""
23004 " virt-rescue [--options] domname\n"
23005 "\n"
23006 msgstr ""
23007
23008 #. type: verbatim
23009 #: ../rescue/virt-rescue.pod:19
23010 #, no-wrap
23011 msgid ""
23012 " virt-rescue [--options] disk.img [disk.img ...]\n"
23013 "\n"
23014 msgstr ""
23015
23016 #. type: textblock
23017 #: ../rescue/virt-rescue.pod:23
23018 msgid ""
23019 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
23020 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
23021 "you from doing this, but doesn't catch all cases."
23022 msgstr ""
23023
23024 #. type: textblock
23025 #: ../rescue/virt-rescue.pod:27
23026 msgid ""
23027 "However if you use the I<--ro> (read only) option, then you can attach a "
23028 "shell to a live virtual machine.  The results might be strange or "
23029 "inconsistent at times but you won't get disk corruption."
23030 msgstr ""
23031
23032 #. type: textblock
23033 #: ../rescue/virt-rescue.pod:33
23034 msgid ""
23035 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
23036 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
23037 "recovery tools which you can use to examine or rescue a virtual machine or "
23038 "disk image."
23039 msgstr ""
23040
23041 #. type: textblock
23042 #: ../rescue/virt-rescue.pod:38
23043 msgid ""
23044 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
23045 "on disk image(s):"
23046 msgstr ""
23047
23048 #. type: verbatim
23049 #: ../rescue/virt-rescue.pod:41
23050 #, no-wrap
23051 msgid ""
23052 " virt-rescue -d GuestName\n"
23053 "\n"
23054 msgstr ""
23055
23056 #. type: verbatim
23057 #: ../rescue/virt-rescue.pod:43
23058 #, no-wrap
23059 msgid ""
23060 " virt-rescue --ro -a /path/to/disk.img\n"
23061 "\n"
23062 msgstr ""
23063
23064 #. type: verbatim
23065 #: ../rescue/virt-rescue.pod:45
23066 #, no-wrap
23067 msgid ""
23068 " virt-rescue -a /dev/sdc\n"
23069 "\n"
23070 msgstr ""
23071
23072 #. type: textblock
23073 #: ../rescue/virt-rescue.pod:47
23074 msgid "For live VMs you I<must> use the --ro option."
23075 msgstr ""
23076
23077 #. type: textblock
23078 #: ../rescue/virt-rescue.pod:49
23079 msgid ""
23080 "When you run virt-rescue on a virtual machine or disk image, you are placed "
23081 "in an interactive bash shell where you can use many ordinary Linux "
23082 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
23083 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
23084 "is an empty directory called C</sysroot> where you can mount filesystems."
23085 msgstr ""
23086
23087 #. type: textblock
23088 #: ../rescue/virt-rescue.pod:56
23089 msgid ""
23090 "You can get virt-rescue to suggest mount commands for you by using the "
23091 "I<--suggest> option (in another terminal):"
23092 msgstr ""
23093
23094 #. type: verbatim
23095 #: ../rescue/virt-rescue.pod:59
23096 #, no-wrap
23097 msgid ""
23098 " $ virt-rescue --suggest -d Fedora15\n"
23099 " Inspecting the virtual machine or disk image ...\n"
23100 " \n"
23101 msgstr ""
23102
23103 #. type: verbatim
23104 #: ../rescue/virt-rescue.pod:62
23105 #, no-wrap
23106 msgid ""
23107 " This disk contains one or more operating systems.  You can use these\n"
23108 " mount commands in virt-rescue (at the ><rescue> prompt) to mount the\n"
23109 " filesystems.\n"
23110 " \n"
23111 msgstr ""
23112
23113 #. type: verbatim
23114 #: ../rescue/virt-rescue.pod:66
23115 #, no-wrap
23116 msgid ""
23117 " # /dev/vg_f15x32/lv_root is the root of a linux operating system\n"
23118 " # type: linux, distro: fedora, version: 15.0\n"
23119 " # Fedora release 15 (Lovelock)\n"
23120 " \n"
23121 msgstr ""
23122
23123 #. type: verbatim
23124 #: ../rescue/virt-rescue.pod:70
23125 #, no-wrap
23126 msgid ""
23127 " mount /dev/vg_f15x32/lv_root /sysroot/\n"
23128 " mount /dev/vda1 /sysroot/boot\n"
23129 " mount --bind /dev /sysroot/dev\n"
23130 " mount --bind /dev/pts /sysroot/dev/pts\n"
23131 " mount --bind /proc /sysroot/proc\n"
23132 " mount --bind /sys /sysroot/sys\n"
23133 "\n"
23134 msgstr ""
23135
23136 #. type: textblock
23137 #: ../rescue/virt-rescue.pod:77
23138 msgid ""
23139 "Another way is to list the logical volumes (with L<lvs(8)>) and partitions "
23140 "(with L<parted(8)>) and mount them by hand:"
23141 msgstr ""
23142
23143 #. type: verbatim
23144 #: ../rescue/virt-rescue.pod:80
23145 #, no-wrap
23146 msgid ""
23147 " ><rescue> lvs\n"
23148 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
23149 " lv_root vg_f15x32 -wi-a-   8.83G\n"
23150 " lv_swap vg_f15x32 -wi-a- 992.00M\n"
23151 " ><rescue> mount /dev/vg_f15x32/lv_root /sysroot\n"
23152 " ><rescue> mount /dev/vda1 /sysroot/boot\n"
23153 " ><rescue> ls /sysroot\n"
23154 "\n"
23155 msgstr ""
23156
23157 #. type: textblock
23158 #: ../rescue/virt-rescue.pod:88
23159 msgid "Another command to list available filesystems is L<virt-filesystems(1)>."
23160 msgstr ""
23161
23162 #. type: textblock
23163 #: ../rescue/virt-rescue.pod:91
23164 msgid ""
23165 "To run commands in a Linux guest (for example, grub), you should chroot into "
23166 "the /sysroot directory first:"
23167 msgstr ""
23168
23169 #. type: verbatim
23170 #: ../rescue/virt-rescue.pod:94
23171 #, no-wrap
23172 msgid ""
23173 " ><rescue> chroot /sysroot\n"
23174 "\n"
23175 msgstr ""
23176
23177 #. type: textblock
23178 #: ../rescue/virt-rescue.pod:98
23179 msgid ""
23180 "Virt-rescue can be used on I<any> disk image file or device, not just a "
23181 "virtual machine.  For example you can use it on a blank file if you want to "
23182 "partition that file (although we would recommend using L<guestfish(1)> "
23183 "instead as it is more suitable for this purpose).  You can even use "
23184 "virt-rescue on things like SD cards."
23185 msgstr ""
23186
23187 #. type: textblock
23188 #: ../rescue/virt-rescue.pod:104
23189 msgid ""
23190 "Virt-rescue does not require root.  You only need to run it as root if you "
23191 "need root to open the disk image."
23192 msgstr ""
23193
23194 #. type: textblock
23195 #: ../rescue/virt-rescue.pod:107
23196 msgid ""
23197 "This tool is just designed for quick interactive hacking on a virtual "
23198 "machine.  For more structured access to a virtual machine disk image, you "
23199 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
23200 "make scripted changes to guests, use L<guestfish(1)>."
23201 msgstr ""
23202
23203 #. type: =item
23204 #: ../rescue/virt-rescue.pod:131
23205 msgid "B<--append kernelopts>"
23206 msgstr ""
23207
23208 #. type: textblock
23209 #: ../rescue/virt-rescue.pod:133
23210 msgid "Pass additional options to the rescue kernel."
23211 msgstr ""
23212
23213 #. type: verbatim
23214 #: ../rescue/virt-rescue.pod:163
23215 #, no-wrap
23216 msgid ""
23217 " virt-rescue --format=raw -a disk.img\n"
23218 "\n"
23219 msgstr ""
23220
23221 #. type: verbatim
23222 #: ../rescue/virt-rescue.pod:167
23223 #, no-wrap
23224 msgid ""
23225 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
23226 "\n"
23227 msgstr ""
23228
23229 #. type: =item
23230 #: ../rescue/virt-rescue.pod:176
23231 msgid "B<-m MB>"
23232 msgstr ""
23233
23234 #. type: =item
23235 #: ../rescue/virt-rescue.pod:178
23236 msgid "B<--memsize MB>"
23237 msgstr ""
23238
23239 #. type: textblock
23240 #: ../rescue/virt-rescue.pod:180
23241 msgid ""
23242 "Change the amount of memory allocated to the rescue system.  The default is "
23243 "set by libguestfs and is small but adequate for running system tools.  The "
23244 "occasional program might need more memory.  The parameter is specified in "
23245 "megabytes."
23246 msgstr ""
23247
23248 #. type: =item
23249 #: ../rescue/virt-rescue.pod:185
23250 msgid "B<--network>"
23251 msgstr ""
23252
23253 #. type: textblock
23254 #: ../rescue/virt-rescue.pod:187
23255 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
23256 msgstr ""
23257
23258 #. type: textblock
23259 #: ../rescue/virt-rescue.pod:193
23260 msgid "Open the image read-only."
23261 msgstr ""
23262
23263 #. type: textblock
23264 #: ../rescue/virt-rescue.pod:203
23265 msgid ""
23266 "Enable SELinux in the rescue appliance.  You should read "
23267 "L<guestfs(3)/SELINUX> before using this option."
23268 msgstr ""
23269
23270 #. type: =item
23271 #: ../rescue/virt-rescue.pod:206
23272 msgid "B<--smp> N"
23273 msgstr ""
23274
23275 #. type: textblock
23276 #: ../rescue/virt-rescue.pod:208
23277 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
23278 msgstr ""
23279
23280 #. type: =item
23281 #: ../rescue/virt-rescue.pod:210
23282 msgid "B<--suggest>"
23283 msgstr ""
23284
23285 #. type: textblock
23286 #: ../rescue/virt-rescue.pod:212
23287 msgid ""
23288 "Inspect the disk image and suggest what mount commands should be used to "
23289 "mount the disks.  You should use the I<--suggest> option in a second "
23290 "terminal, then paste the commands into another virt-rescue."
23291 msgstr ""
23292
23293 #. type: textblock
23294 #: ../rescue/virt-rescue.pod:216
23295 msgid ""
23296 "This option implies I<--ro> and is safe to use even if the guest is up or if "
23297 "another virt-rescue is running."
23298 msgstr ""
23299
23300 #. type: textblock
23301 #: ../rescue/virt-rescue.pod:235
23302 msgid ""
23303 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
23304 "are done read-write."
23305 msgstr ""
23306
23307 #. type: textblock
23308 #: ../rescue/virt-rescue.pod:248
23309 msgid "Previous versions of virt-rescue allowed you to write either:"
23310 msgstr ""
23311
23312 #. type: verbatim
23313 #: ../rescue/virt-rescue.pod:250
23314 #, no-wrap
23315 msgid ""
23316 " virt-rescue disk.img [disk.img ...]\n"
23317 "\n"
23318 msgstr ""
23319
23320 #. type: verbatim
23321 #: ../rescue/virt-rescue.pod:254
23322 #, no-wrap
23323 msgid ""
23324 " virt-rescue guestname\n"
23325 "\n"
23326 msgstr ""
23327
23328 #. type: =head1
23329 #: ../rescue/virt-rescue.pod:262
23330 msgid "NETWORK"
23331 msgstr ""
23332
23333 #. type: textblock
23334 #: ../rescue/virt-rescue.pod:264
23335 msgid ""
23336 "Adding the I<--network> option enables QEMU user networking in the rescue "
23337 "appliance.  There are some differences between user networking and ordinary "
23338 "networking:"
23339 msgstr ""
23340
23341 #. type: =item
23342 #: ../rescue/virt-rescue.pod:270
23343 msgid "ping does not work"
23344 msgstr ""
23345
23346 #. type: textblock
23347 #: ../rescue/virt-rescue.pod:272
23348 msgid ""
23349 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
23350 "send the ping packets, and because virt-rescue must be able to run as "
23351 "non-root, QEMU user networking is not able to emulate the L<ping(8)> "
23352 "command.  The ping command will appear to resolve addresses but will not be "
23353 "able to send or receive any packets.  This does not mean that the network is "
23354 "not working."
23355 msgstr ""
23356
23357 #. type: =item
23358 #: ../rescue/virt-rescue.pod:279
23359 msgid "cannot receive connections"
23360 msgstr ""
23361
23362 #. type: textblock
23363 #: ../rescue/virt-rescue.pod:281
23364 msgid "QEMU user networking cannot receive incoming connections."
23365 msgstr ""
23366
23367 #. type: =item
23368 #: ../rescue/virt-rescue.pod:283
23369 msgid "making TCP connections"
23370 msgstr ""
23371
23372 #. type: textblock
23373 #: ../rescue/virt-rescue.pod:285
23374 msgid ""
23375 "The virt-rescue appliance needs to be small and so does not include many "
23376 "network tools.  In particular there is no L<telnet(1)> command.  You can "
23377 "make TCP connections from the shell using the magical "
23378 "C</dev/tcp/E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
23379 msgstr ""
23380
23381 #. type: verbatim
23382 #: ../rescue/virt-rescue.pod:290
23383 #, no-wrap
23384 msgid ""
23385 " exec 3<>/dev/tcp/redhat.com/80\n"
23386 " echo \"GET /\" >&3\n"
23387 " cat <&3\n"
23388 "\n"
23389 msgstr ""
23390
23391 #. type: textblock
23392 #: ../rescue/virt-rescue.pod:294
23393 msgid "See L<bash(1)> for more details."
23394 msgstr ""
23395
23396 #. type: textblock
23397 #: ../rescue/virt-rescue.pod:300
23398 msgid ""
23399 "Several environment variables affect virt-rescue.  See "
23400 "L<guestfs(3)/ENVIRONMENT VARIABLES> for the complete list."
23401 msgstr ""
23402
23403 #. type: textblock
23404 #: ../rescue/virt-rescue.pod:327
23405 msgid ""
23406 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
23407 "L<virt-filesystems(1)>, L<http://libguestfs.org/>."
23408 msgstr ""
23409
23410 #. type: textblock
23411 #: ../resize/virt-resize.pod:5
23412 msgid "virt-resize - Resize a virtual machine disk"
23413 msgstr ""
23414
23415 #. type: verbatim
23416 #: ../resize/virt-resize.pod:9
23417 #, no-wrap
23418 msgid ""
23419 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
23420 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
23421 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
23422 "\n"
23423 msgstr ""
23424
23425 #. type: textblock
23426 #: ../resize/virt-resize.pod:15
23427 msgid ""
23428 "Virt-resize is a tool which can resize a virtual machine disk, making it "
23429 "larger or smaller overall, and resizing or deleting any partitions contained "
23430 "within."
23431 msgstr ""
23432
23433 #. type: textblock
23434 #: ../resize/virt-resize.pod:19
23435 msgid ""
23436 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
23437 "not> be used on live virtual machines - for consistent results, shut the "
23438 "virtual machine down before resizing it."
23439 msgstr ""
23440
23441 #. type: textblock
23442 #: ../resize/virt-resize.pod:23
23443 msgid ""
23444 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
23445 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
23446 msgstr ""
23447
23448 #. type: =item
23449 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:603 ../sparsify/virt-sparsify.pod:227 ../src/guestfs.pod:484 ../src/guestfs.pod:1302 ../src/guestfs.pod:1441 ../src/guestfs.pod:2690
23450 msgid "1."
23451 msgstr ""
23452
23453 #. type: textblock
23454 #: ../resize/virt-resize.pod:33
23455 msgid ""
23456 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
23457 "fill the extra 5GB of space."
23458 msgstr ""
23459
23460 #. type: verbatim
23461 #: ../resize/virt-resize.pod:36
23462 #, no-wrap
23463 msgid ""
23464 " virt-filesystems --long -h --all -a olddisk\n"
23465 " \n"
23466 msgstr ""
23467
23468 #. type: verbatim
23469 #: ../resize/virt-resize.pod:38
23470 #, no-wrap
23471 msgid ""
23472 " truncate -r olddisk newdisk\n"
23473 " truncate -s +5G newdisk\n"
23474 " \n"
23475 msgstr ""
23476
23477 #. type: verbatim
23478 #: ../resize/virt-resize.pod:41
23479 #, no-wrap
23480 msgid ""
23481 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
23482 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
23483 "\n"
23484 msgstr ""
23485
23486 #. type: =item
23487 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:610 ../sparsify/virt-sparsify.pod:234 ../src/guestfs.pod:490 ../src/guestfs.pod:1306 ../src/guestfs.pod:1445 ../src/guestfs.pod:2715
23488 msgid "2."
23489 msgstr ""
23490
23491 #. type: textblock
23492 #: ../resize/virt-resize.pod:46
23493 msgid ""
23494 "As above, but make the /boot partition 200MB bigger, while giving the "
23495 "remaining space to /dev/sda2:"
23496 msgstr ""
23497
23498 #. type: verbatim
23499 #: ../resize/virt-resize.pod:49
23500 #, no-wrap
23501 msgid ""
23502 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23503 "   olddisk newdisk\n"
23504 "\n"
23505 msgstr ""
23506
23507 #. type: =item
23508 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:616 ../sparsify/virt-sparsify.pod:240 ../src/guestfs.pod:501 ../src/guestfs.pod:1451
23509 msgid "3."
23510 msgstr ""
23511
23512 #. type: textblock
23513 #: ../resize/virt-resize.pod:54
23514 msgid ""
23515 "As in the first example, but expand a logical volume as the final step.  "
23516 "This is what you would typically use for Linux guests that use LVM:"
23517 msgstr ""
23518
23519 #. type: verbatim
23520 #: ../resize/virt-resize.pod:58
23521 #, no-wrap
23522 msgid ""
23523 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
23524 "   olddisk newdisk\n"
23525 "\n"
23526 msgstr ""
23527
23528 #. type: =item
23529 #: ../resize/virt-resize.pod:61
23530 msgid "4."
23531 msgstr ""
23532
23533 #. type: textblock
23534 #: ../resize/virt-resize.pod:63
23535 msgid ""
23536 "As in the first example, but the output format will be qcow2 instead of a "
23537 "raw disk:"
23538 msgstr ""
23539
23540 #. type: verbatim
23541 #: ../resize/virt-resize.pod:66
23542 #, no-wrap
23543 msgid ""
23544 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
23545 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
23546 "\n"
23547 msgstr ""
23548
23549 #. type: =head1
23550 #: ../resize/virt-resize.pod:71
23551 msgid "DETAILED USAGE"
23552 msgstr ""
23553
23554 #. type: =head2
23555 #: ../resize/virt-resize.pod:73
23556 msgid "EXPANDING A VIRTUAL MACHINE DISK"
23557 msgstr ""
23558
23559 #. type: =item
23560 #: ../resize/virt-resize.pod:77
23561 msgid "1. Shut down the virtual machine"
23562 msgstr ""
23563
23564 #. type: =item
23565 #: ../resize/virt-resize.pod:79
23566 msgid "2. Locate input disk image"
23567 msgstr ""
23568
23569 #. type: textblock
23570 #: ../resize/virt-resize.pod:81
23571 msgid ""
23572 "Locate the input disk image (ie. the file or device on the host containing "
23573 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
23574 "dumpxml> like this to find the disk image name:"
23575 msgstr ""
23576
23577 #. type: verbatim
23578 #: ../resize/virt-resize.pod:85
23579 #, no-wrap
23580 msgid ""
23581 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
23582 " Found 1 nodes:\n"
23583 " -- NODE --\n"
23584 " <source dev=\"/dev/vg/lv_guest\" />\n"
23585 "\n"
23586 msgstr ""
23587
23588 #. type: =item
23589 #: ../resize/virt-resize.pod:90
23590 msgid "3. Look at current sizing"
23591 msgstr ""
23592
23593 #. type: textblock
23594 #: ../resize/virt-resize.pod:92
23595 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
23596 msgstr ""
23597
23598 #. type: verbatim
23599 #: ../resize/virt-resize.pod:95
23600 #, no-wrap
23601 msgid ""
23602 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
23603 " Name       Type       Size  Parent\n"
23604 " /dev/sda1  partition  101M  /dev/sda\n"
23605 " /dev/sda2  partition  7.9G  /dev/sda\n"
23606 " /dev/sda   device     8.0G  -\n"
23607 "\n"
23608 msgstr ""
23609
23610 #. type: textblock
23611 #: ../resize/virt-resize.pod:101
23612 msgid ""
23613 "(This example is a virtual machine with an 8 GB disk which we would like to "
23614 "expand up to 10 GB)."
23615 msgstr ""
23616
23617 #. type: =item
23618 #: ../resize/virt-resize.pod:104
23619 msgid "4. Create output disk"
23620 msgstr ""
23621
23622 #. type: textblock
23623 #: ../resize/virt-resize.pod:106
23624 msgid ""
23625 "Virt-resize cannot do in-place disk modifications.  You have to have space "
23626 "to store the resized output disk."
23627 msgstr ""
23628
23629 #. type: textblock
23630 #: ../resize/virt-resize.pod:109
23631 msgid "To store the resized disk image in a file, create a file of a suitable size:"
23632 msgstr ""
23633
23634 #. type: verbatim
23635 #: ../resize/virt-resize.pod:112
23636 #, no-wrap
23637 msgid ""
23638 " # rm -f outdisk\n"
23639 " # truncate -s 10G outdisk\n"
23640 "\n"
23641 msgstr ""
23642
23643 #. type: textblock
23644 #: ../resize/virt-resize.pod:115
23645 msgid "Or use L<lvcreate(1)> to create a logical volume:"
23646 msgstr ""
23647
23648 #. type: verbatim
23649 #: ../resize/virt-resize.pod:117
23650 #, no-wrap
23651 msgid ""
23652 " # lvcreate -L 10G -n lv_name vg_name\n"
23653 "\n"
23654 msgstr ""
23655
23656 #. type: textblock
23657 #: ../resize/virt-resize.pod:119
23658 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
23659 msgstr ""
23660
23661 #. type: verbatim
23662 #: ../resize/virt-resize.pod:121
23663 #, no-wrap
23664 msgid ""
23665 " # virsh pool-list\n"
23666 " # virsh vol-create-as poolname newvol 10G\n"
23667 "\n"
23668 msgstr ""
23669
23670 #. type: =item
23671 #: ../resize/virt-resize.pod:124
23672 msgid "5. Resize"
23673 msgstr ""
23674
23675 #. type: textblock
23676 #: ../resize/virt-resize.pod:126
23677 msgid ""
23678 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
23679 "file) and the output disk.  The output disk is the one created in the "
23680 "previous step."
23681 msgstr ""
23682
23683 #. type: verbatim
23684 #: ../resize/virt-resize.pod:130
23685 #, no-wrap
23686 msgid ""
23687 " # virt-resize indisk outdisk\n"
23688 "\n"
23689 msgstr ""
23690
23691 #. type: textblock
23692 #: ../resize/virt-resize.pod:132
23693 msgid ""
23694 "This command just copies disk image C<indisk> to disk image C<outdisk> "
23695 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
23696 "larger, then an extra, empty partition is created at the end of the disk "
23697 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
23698 "error."
23699 msgstr ""
23700
23701 #. type: textblock
23702 #: ../resize/virt-resize.pod:138
23703 msgid ""
23704 "More realistically you'd want to expand existing partitions in the disk "
23705 "image by passing extra options (for the full list see the L</OPTIONS> "
23706 "section below)."
23707 msgstr ""
23708
23709 #. type: textblock
23710 #: ../resize/virt-resize.pod:142
23711 msgid ""
23712 "L</--expand> is the most useful option.  It expands the named partition "
23713 "within the disk to fill any extra space:"
23714 msgstr ""
23715
23716 #. type: verbatim
23717 #: ../resize/virt-resize.pod:145
23718 #, no-wrap
23719 msgid ""
23720 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
23721 "\n"
23722 msgstr ""
23723
23724 #. type: textblock
23725 #: ../resize/virt-resize.pod:147
23726 msgid ""
23727 "(In this case, an extra partition is I<not> created at the end of the disk, "
23728 "because there will be no unused space)."
23729 msgstr ""
23730
23731 #. type: textblock
23732 #: ../resize/virt-resize.pod:150
23733 msgid ""
23734 "L</--resize> is the other commonly used option.  The following would "
23735 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
23736 "rest of the available space:"
23737 msgstr ""
23738
23739 #. type: verbatim
23740 #: ../resize/virt-resize.pod:154
23741 #, no-wrap
23742 msgid ""
23743 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23744 "     indisk outdisk\n"
23745 "\n"
23746 msgstr ""
23747
23748 #. type: textblock
23749 #: ../resize/virt-resize.pod:157
23750 msgid ""
23751 "If the expanded partition in the image contains a filesystem or LVM PV, then "
23752 "if virt-resize knows how, it will resize the contents, the equivalent of "
23753 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
23754 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
23755 "filesystems, so you would have to online resize them after booting the "
23756 "guest."
23757 msgstr ""
23758
23759 #. type: textblock
23760 #: ../resize/virt-resize.pod:164
23761 msgid "Other options are covered below."
23762 msgstr ""
23763
23764 #. type: =item
23765 #: ../resize/virt-resize.pod:166
23766 msgid "6. Test"
23767 msgstr ""
23768
23769 #. type: textblock
23770 #: ../resize/virt-resize.pod:168
23771 msgid "Thoroughly test the new disk image I<before> discarding the old one."
23772 msgstr ""
23773
23774 #. type: textblock
23775 #: ../resize/virt-resize.pod:170
23776 msgid "If you are using libvirt, edit the XML to point at the new disk:"
23777 msgstr ""
23778
23779 #. type: verbatim
23780 #: ../resize/virt-resize.pod:172
23781 #, no-wrap
23782 msgid ""
23783 " # virsh edit guestname\n"
23784 "\n"
23785 msgstr ""
23786
23787 #. type: textblock
23788 #: ../resize/virt-resize.pod:174
23789 msgid ""
23790 "Change E<lt>source ...E<gt>, see "
23791 "L<http://libvirt.org/formatdomain.html#elementsDisks>"
23792 msgstr ""
23793
23794 #. type: textblock
23795 #: ../resize/virt-resize.pod:177
23796 msgid "Then start up the domain with the new, resized disk:"
23797 msgstr ""
23798
23799 #. type: verbatim
23800 #: ../resize/virt-resize.pod:179
23801 #, no-wrap
23802 msgid ""
23803 " # virsh start guestname\n"
23804 "\n"
23805 msgstr ""
23806
23807 #. type: textblock
23808 #: ../resize/virt-resize.pod:181
23809 msgid ""
23810 "and check that it still works.  See also the L</NOTES> section below for "
23811 "additional information."
23812 msgstr ""
23813
23814 #. type: =item
23815 #: ../resize/virt-resize.pod:184
23816 msgid "7. Resize LVs etc inside the guest"
23817 msgstr ""
23818
23819 #. type: textblock
23820 #: ../resize/virt-resize.pod:186
23821 msgid "(This can also be done offline using L<guestfish(1)>)"
23822 msgstr ""
23823
23824 #. type: textblock
23825 #: ../resize/virt-resize.pod:188
23826 msgid ""
23827 "Once the guest has booted you should see the new space available, at least "
23828 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
23829 "may need to resize LVs inside PVs, and also resize filesystem types that "
23830 "virt-resize does not know how to expand."
23831 msgstr ""
23832
23833 #. type: =head2
23834 #: ../resize/virt-resize.pod:195
23835 msgid "SHRINKING A VIRTUAL MACHINE DISK"
23836 msgstr ""
23837
23838 #. type: textblock
23839 #: ../resize/virt-resize.pod:197
23840 msgid ""
23841 "Shrinking is somewhat more complex than expanding, and only an overview is "
23842 "given here."
23843 msgstr ""
23844
23845 #. type: textblock
23846 #: ../resize/virt-resize.pod:200
23847 msgid ""
23848 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
23849 "filesystems).  The user has to shrink content before passing the disk image "
23850 "to virt-resize, and virt-resize will check that the content has been shrunk "
23851 "properly."
23852 msgstr ""
23853
23854 #. type: textblock
23855 #: ../resize/virt-resize.pod:205
23856 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
23857 msgstr ""
23858
23859 #. type: textblock
23860 #: ../resize/virt-resize.pod:207
23861 msgid ""
23862 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
23863 "steps 3 and 4 above to allocate a new disk image."
23864 msgstr ""
23865
23866 #. type: textblock
23867 #: ../resize/virt-resize.pod:210
23868 msgid "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
23869 msgstr ""
23870
23871 #. type: =head2
23872 #: ../resize/virt-resize.pod:213
23873 msgid "IGNORING OR DELETING PARTITIONS"
23874 msgstr ""
23875
23876 #. type: textblock
23877 #: ../resize/virt-resize.pod:215
23878 msgid ""
23879 "virt-resize also gives a convenient way to ignore or delete partitions when "
23880 "copying from the input disk to the output disk.  Ignoring a partition speeds "
23881 "up the copy where you don't care about the existing contents of a "
23882 "partition.  Deleting a partition removes it completely, but note that it "
23883 "also renumbers any partitions after the one which is deleted, which can "
23884 "leave some guests unbootable."
23885 msgstr ""
23886
23887 #. type: =head2
23888 #: ../resize/virt-resize.pod:222
23889 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
23890 msgstr ""
23891
23892 #. type: textblock
23893 #: ../resize/virt-resize.pod:224
23894 msgid ""
23895 "If the input disk is in qcow2 format, then you may prefer that the output is "
23896 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
23897 "the fly.  The output format is simply determined by the format of the empty "
23898 "output container that you provide.  Thus to create qcow2 output, use:"
23899 msgstr ""
23900
23901 #. type: verbatim
23902 #: ../resize/virt-resize.pod:230
23903 #, no-wrap
23904 msgid ""
23905 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
23906 "\n"
23907 msgstr ""
23908
23909 #. type: textblock
23910 #: ../resize/virt-resize.pod:232
23911 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
23912 msgstr ""
23913
23914 #. type: textblock
23915 #: ../resize/virt-resize.pod:234
23916 msgid "Similarly, to get non-sparse raw output use:"
23917 msgstr ""
23918
23919 #. type: verbatim
23920 #: ../resize/virt-resize.pod:236
23921 #, no-wrap
23922 msgid ""
23923 " fallocate -l size outdisk\n"
23924 "\n"
23925 msgstr ""
23926
23927 #. type: textblock
23928 #: ../resize/virt-resize.pod:238
23929 msgid ""
23930 "(on older systems that don't have the L<fallocate(1)> command use C<dd "
23931 "if=/dev/zero of=outdisk bs=1M count=..>)"
23932 msgstr ""
23933
23934 #. type: =head2
23935 #: ../resize/virt-resize.pod:241
23936 msgid "LOGICAL PARTITIONS"
23937 msgstr ""
23938
23939 #. type: textblock
23940 #: ../resize/virt-resize.pod:243
23941 msgid ""
23942 "Logical partitions (a.k.a. C</dev/sda5+> on disks using DOS partition "
23943 "tables) cannot be resized."
23944 msgstr ""
23945
23946 #. type: textblock
23947 #: ../resize/virt-resize.pod:246
23948 msgid ""
23949 "To understand what is going on, firstly one of the four partitions "
23950 "C</dev/sda1-4> will have MBR partition type C<05> or C<0f>.  This is called "
23951 "the B<extended partition>.  Use L<virt-filesystems(1)> to see the MBR "
23952 "partition type."
23953 msgstr ""
23954
23955 #. type: textblock
23956 #: ../resize/virt-resize.pod:251
23957 msgid "Logical partitions live inside the extended partition."
23958 msgstr ""
23959
23960 #. type: textblock
23961 #: ../resize/virt-resize.pod:253
23962 msgid ""
23963 "The extended partition can be expanded, but not shrunk (unless you force it, "
23964 "which is not advisable).  When the extended partition is copied across, all "
23965 "the logical partitions contained inside are copied over implicitly.  "
23966 "Virt-resize does not look inside the extended partition, so it copies the "
23967 "logical partitions blindly."
23968 msgstr ""
23969
23970 #. type: textblock
23971 #: ../resize/virt-resize.pod:259
23972 msgid ""
23973 "You cannot specify a logical partition (C</dev/sda5+>) at all on the command "
23974 "line.  Doing so will give an error."
23975 msgstr ""
23976
23977 #. type: textblock
23978 #: ../resize/virt-resize.pod:268 ../sparsify/virt-sparsify.pod:105
23979 msgid "Display help."
23980 msgstr ""
23981
23982 #. type: =item
23983 #: ../resize/virt-resize.pod:270
23984 msgid "B<--align-first auto>"
23985 msgstr ""
23986
23987 #. type: =item
23988 #: ../resize/virt-resize.pod:272
23989 msgid "B<--align-first never>"
23990 msgstr ""
23991
23992 #. type: =item
23993 #: ../resize/virt-resize.pod:274
23994 msgid "B<--align-first always>"
23995 msgstr ""
23996
23997 #. type: textblock
23998 #: ../resize/virt-resize.pod:276
23999 msgid ""
24000 "Align the first partition for improved performance (see also the "
24001 "I<--alignment> option)."
24002 msgstr ""
24003
24004 #. type: textblock
24005 #: ../resize/virt-resize.pod:279
24006 msgid ""
24007 "The default is I<--align-first auto> which only aligns the first partition "
24008 "if it is safe to do so.  That is, only when we know how to fix the "
24009 "bootloader automatically, and at the moment that can only be done for "
24010 "Windows guests."
24011 msgstr ""
24012
24013 #. type: textblock
24014 #: ../resize/virt-resize.pod:284
24015 msgid ""
24016 "I<--align-first never> means we never move the first partition.  This is the "
24017 "safest option.  Try this if the guest does not boot after resizing."
24018 msgstr ""
24019
24020 #. type: textblock
24021 #: ../resize/virt-resize.pod:288
24022 msgid ""
24023 "I<--align-first always> means we always align the first partition (if it "
24024 "needs to be aligned).  For some guests this will break the bootloader, "
24025 "making the guest unbootable."
24026 msgstr ""
24027
24028 #. type: =item
24029 #: ../resize/virt-resize.pod:292
24030 msgid "B<--alignment N>"
24031 msgstr ""
24032
24033 #. type: textblock
24034 #: ../resize/virt-resize.pod:294
24035 msgid ""
24036 "Set the alignment of partitions to C<N> sectors.  The default in virt-resize "
24037 "E<lt> 1.13.19 was 64 sectors, and after that is 128 sectors."
24038 msgstr ""
24039
24040 #. type: textblock
24041 #: ../resize/virt-resize.pod:298
24042 msgid ""
24043 "Assuming 512 byte sector size inside the guest, here are some suitable "
24044 "values for this:"
24045 msgstr ""
24046
24047 #. type: =item
24048 #: ../resize/virt-resize.pod:303
24049 msgid "I<--alignment 1> (512 bytes)"
24050 msgstr ""
24051
24052 #. type: textblock
24053 #: ../resize/virt-resize.pod:305
24054 msgid ""
24055 "The partitions would be packed together as closely as possible, but would be "
24056 "completely unaligned.  In some cases this can cause very poor performance.  "
24057 "See L<virt-alignment-scan(1)> for further details."
24058 msgstr ""
24059
24060 #. type: =item
24061 #: ../resize/virt-resize.pod:309
24062 msgid "I<--alignment 8> (4K)"
24063 msgstr ""
24064
24065 #. type: textblock
24066 #: ../resize/virt-resize.pod:311
24067 msgid ""
24068 "This would be the minimum acceptable alignment for reasonable performance on "
24069 "modern hosts."
24070 msgstr ""
24071
24072 #. type: =item
24073 #: ../resize/virt-resize.pod:314
24074 msgid "I<--alignment 128> (64K)"
24075 msgstr ""
24076
24077 #. type: textblock
24078 #: ../resize/virt-resize.pod:316
24079 msgid ""
24080 "This alignment provides good performance when the host is using high end "
24081 "network storage."
24082 msgstr ""
24083
24084 #. type: =item
24085 #: ../resize/virt-resize.pod:319
24086 msgid "I<--alignment 2048> (1M)"
24087 msgstr ""
24088
24089 #. type: textblock
24090 #: ../resize/virt-resize.pod:321
24091 msgid ""
24092 "This is the standard alignment used by all newly installed guests since "
24093 "around 2008."
24094 msgstr ""
24095
24096 #. type: =item
24097 #: ../resize/virt-resize.pod:326
24098 msgid "B<-d>"
24099 msgstr ""
24100
24101 #. type: =item
24102 #: ../resize/virt-resize.pod:328 ../tools/virt-make-fs.pl:177 ../tools/virt-win-reg.pl:120
24103 msgid "B<--debug>"
24104 msgstr ""
24105
24106 #. type: textblock
24107 #: ../resize/virt-resize.pod:330 ../tools/virt-win-reg.pl:122
24108 msgid "Enable debugging messages."
24109 msgstr ""
24110
24111 #. type: =item
24112 #: ../resize/virt-resize.pod:332 ../sparsify/virt-sparsify.pod:131
24113 msgid "B<--debug-gc>"
24114 msgstr ""
24115
24116 #. type: textblock
24117 #: ../resize/virt-resize.pod:334
24118 msgid ""
24119 "Debug garbage collection and memory allocation.  This is only useful when "
24120 "debugging memory problems in virt-resize or the OCaml libguestfs bindings."
24121 msgstr ""
24122
24123 #. type: =item
24124 #: ../resize/virt-resize.pod:338
24125 msgid "B<--delete part>"
24126 msgstr ""
24127
24128 #. type: textblock
24129 #: ../resize/virt-resize.pod:340
24130 msgid ""
24131 "Delete the named partition.  It would be more accurate to describe this as "
24132 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
24133 "the original disk image is left intact."
24134 msgstr ""
24135
24136 #. type: textblock
24137 #: ../resize/virt-resize.pod:344
24138 msgid ""
24139 "Note that when you delete a partition, then anything contained in the "
24140 "partition is also deleted.  Furthermore, this causes any partitions that "
24141 "come after to be I<renumbered>, which can easily make your guest unbootable."
24142 msgstr ""
24143
24144 #. type: textblock
24145 #: ../resize/virt-resize.pod:349 ../resize/virt-resize.pod:410 ../resize/virt-resize.pod:537 ../sparsify/virt-sparsify.pod:157
24146 msgid "You can give this option multiple times."
24147 msgstr ""
24148
24149 #. type: =item
24150 #: ../resize/virt-resize.pod:351
24151 msgid "B<--expand part>"
24152 msgstr ""
24153
24154 #. type: textblock
24155 #: ../resize/virt-resize.pod:353
24156 msgid ""
24157 "Expand the named partition so it uses up all extra space (space left over "
24158 "after any other resize changes that you request have been done)."
24159 msgstr ""
24160
24161 #. type: textblock
24162 #: ../resize/virt-resize.pod:356
24163 msgid ""
24164 "If virt-resize knows how, it will expand the direct content of the "
24165 "partition.  For example, if the partition is an LVM PV, it will expand the "
24166 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
24167 "content it doesn't know about alone."
24168 msgstr ""
24169
24170 #. type: textblock
24171 #: ../resize/virt-resize.pod:361
24172 msgid "Currently virt-resize can resize:"
24173 msgstr ""
24174
24175 #. type: textblock
24176 #: ../resize/virt-resize.pod:367
24177 msgid "ext2, ext3 and ext4 filesystems."
24178 msgstr ""
24179
24180 #. type: textblock
24181 #: ../resize/virt-resize.pod:371
24182 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
24183 msgstr ""
24184
24185 #. type: textblock
24186 #: ../resize/virt-resize.pod:373
24187 msgid ""
24188 "The filesystem must have been shut down consistently last time it was used.  "
24189 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
24190 "consistency check, so at the first boot after resizing Windows will check "
24191 "the disk."
24192 msgstr ""
24193
24194 #. type: textblock
24195 #: ../resize/virt-resize.pod:380
24196 msgid ""
24197 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
24198 "inside the PV, but see the I<--LV-expand> option.  The user could also "
24199 "resize LVs as desired after boot."
24200 msgstr ""
24201
24202 #. type: textblock
24203 #: ../resize/virt-resize.pod:386
24204 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
24205 msgstr ""
24206
24207 #. type: textblock
24208 #: ../resize/virt-resize.pod:390 ../resize/virt-resize.pod:565
24209 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
24210 msgstr ""
24211
24212 #. type: =item
24213 #: ../resize/virt-resize.pod:392 ../sparsify/virt-sparsify.pod:137 ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92 ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
24214 msgid "B<--format> raw"
24215 msgstr ""
24216
24217 #. type: textblock
24218 #: ../resize/virt-resize.pod:394 ../sparsify/virt-sparsify.pod:141
24219 msgid ""
24220 "Specify the format of the input disk image.  If this flag is not given then "
24221 "it is auto-detected from the image itself."
24222 msgstr ""
24223
24224 #. type: textblock
24225 #: ../resize/virt-resize.pod:400
24226 msgid ""
24227 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
24228 "AND NON-SPARSE RAW FORMATS>."
24229 msgstr ""
24230
24231 #. type: =item
24232 #: ../resize/virt-resize.pod:403
24233 msgid "B<--ignore part>"
24234 msgstr ""
24235
24236 #. type: textblock
24237 #: ../resize/virt-resize.pod:405
24238 msgid ""
24239 "Ignore the named partition.  Effectively this means the partition is "
24240 "allocated on the destination disk, but the content is not copied across from "
24241 "the source disk.  The content of the partition will be blank (all zero "
24242 "bytes)."
24243 msgstr ""
24244
24245 #. type: =item
24246 #: ../resize/virt-resize.pod:412
24247 msgid "B<--LV-expand logvol>"
24248 msgstr ""
24249
24250 #. type: textblock
24251 #: ../resize/virt-resize.pod:414
24252 msgid ""
24253 "This takes the logical volume and, as a final step, expands it to fill all "
24254 "the space available in its volume group.  A typical usage, assuming a Linux "
24255 "guest with a single PV C</dev/sda2> and a root device called "
24256 "C</dev/vg_guest/lv_root> would be:"
24257 msgstr ""
24258
24259 #. type: verbatim
24260 #: ../resize/virt-resize.pod:419
24261 #, no-wrap
24262 msgid ""
24263 " virt-resize indisk outdisk \\\n"
24264 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
24265 "\n"
24266 msgstr ""
24267
24268 #. type: textblock
24269 #: ../resize/virt-resize.pod:422
24270 msgid ""
24271 "This would first expand the partition (and PV), and then expand the root "
24272 "device to fill the extra space in the PV."
24273 msgstr ""
24274
24275 #. type: textblock
24276 #: ../resize/virt-resize.pod:425
24277 msgid ""
24278 "The contents of the LV are also resized if virt-resize knows how to do "
24279 "that.  You can stop virt-resize from trying to expand the content by using "
24280 "the option I<--no-expand-content>."
24281 msgstr ""
24282
24283 #. type: textblock
24284 #: ../resize/virt-resize.pod:429
24285 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
24286 msgstr ""
24287
24288 #. type: textblock
24289 #: ../resize/virt-resize.pod:431
24290 msgid ""
24291 "You can give this option multiple times, I<but> it doesn't make sense to do "
24292 "this unless the logical volumes you specify are all in different volume "
24293 "groups."
24294 msgstr ""
24295
24296 #. type: =item
24297 #: ../resize/virt-resize.pod:435 ../sparsify/virt-sparsify.pod:159
24298 msgid "B<--machine-readable>"
24299 msgstr ""
24300
24301 #. type: textblock
24302 #: ../resize/virt-resize.pod:437 ../sparsify/virt-sparsify.pod:161
24303 msgid ""
24304 "This option is used to make the output more machine friendly when being "
24305 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
24306 msgstr ""
24307
24308 #. type: =item
24309 #: ../resize/virt-resize.pod:443
24310 msgid "B<--dryrun>"
24311 msgstr ""
24312
24313 #. type: textblock
24314 #: ../resize/virt-resize.pod:445
24315 msgid "Print a summary of what would be done, but don't do anything."
24316 msgstr ""
24317
24318 #. type: =item
24319 #: ../resize/virt-resize.pod:447
24320 msgid "B<--no-copy-boot-loader>"
24321 msgstr ""
24322
24323 #. type: textblock
24324 #: ../resize/virt-resize.pod:449
24325 msgid ""
24326 "By default, virt-resize copies over some sectors at the start of the disk "
24327 "(up to the beginning of the first partition).  Commonly these sectors "
24328 "contain the Master Boot Record (MBR) and the boot loader, and are required "
24329 "in order for the guest to boot correctly."
24330 msgstr ""
24331
24332 #. type: textblock
24333 #: ../resize/virt-resize.pod:454
24334 msgid ""
24335 "If you specify this flag, then this initial copy is not done.  You may need "
24336 "to reinstall the boot loader in this case."
24337 msgstr ""
24338
24339 #. type: =item
24340 #: ../resize/virt-resize.pod:457
24341 msgid "B<--no-extra-partition>"
24342 msgstr ""
24343
24344 #. type: textblock
24345 #: ../resize/virt-resize.pod:459
24346 msgid ""
24347 "By default, virt-resize creates an extra partition if there is any extra, "
24348 "unused space after all resizing has happened.  Use this option to prevent "
24349 "the extra partition from being created.  If you do this then the extra space "
24350 "will be inaccessible until you run fdisk, parted, or some other partitioning "
24351 "tool in the guest."
24352 msgstr ""
24353
24354 #. type: textblock
24355 #: ../resize/virt-resize.pod:465
24356 msgid ""
24357 "Note that if the surplus space is smaller than 10 MB, no extra partition "
24358 "will be created."
24359 msgstr ""
24360
24361 #. type: =item
24362 #: ../resize/virt-resize.pod:468
24363 msgid "B<--no-expand-content>"
24364 msgstr ""
24365
24366 #. type: textblock
24367 #: ../resize/virt-resize.pod:470
24368 msgid ""
24369 "By default, virt-resize will try to expand the direct contents of "
24370 "partitions, if it knows how (see I<--expand> option above)."
24371 msgstr ""
24372
24373 #. type: textblock
24374 #: ../resize/virt-resize.pod:473
24375 msgid ""
24376 "If you give the I<--no-expand-content> option then virt-resize will not "
24377 "attempt this."
24378 msgstr ""
24379
24380 #. type: =item
24381 #: ../resize/virt-resize.pod:476
24382 msgid "B<--ntfsresize-force>"
24383 msgstr ""
24384
24385 #. type: textblock
24386 #: ../resize/virt-resize.pod:478
24387 msgid ""
24388 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
24389 "the NTFS disk is marked as needing a consistency check.  You have to use "
24390 "this option if you want to resize a Windows guest multiple times without "
24391 "booting into Windows between each resize."
24392 msgstr ""
24393
24394 #. type: =item
24395 #: ../resize/virt-resize.pod:484
24396 msgid "B<--output-format> raw"
24397 msgstr ""
24398
24399 #. type: textblock
24400 #: ../resize/virt-resize.pod:486
24401 msgid ""
24402 "Specify the format of the output disk image.  If this flag is not given then "
24403 "it is auto-detected from the image itself."
24404 msgstr ""
24405
24406 #. type: textblock
24407 #: ../resize/virt-resize.pod:492
24408 msgid ""
24409 "Note that this option I<does not create> the output format.  This option "
24410 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
24411 "need to create the output disk with the right format.  See L</QCOW2 AND "
24412 "NON-SPARSE RAW FORMATS>."
24413 msgstr ""
24414
24415 #. type: textblock
24416 #: ../resize/virt-resize.pod:501
24417 msgid "Don't print the summary."
24418 msgstr ""
24419
24420 #. type: =item
24421 #: ../resize/virt-resize.pod:503
24422 msgid "B<--resize part=size>"
24423 msgstr ""
24424
24425 #. type: textblock
24426 #: ../resize/virt-resize.pod:505
24427 msgid ""
24428 "Resize the named partition (expanding or shrinking it) so that it has the "
24429 "given size."
24430 msgstr ""
24431
24432 #. type: textblock
24433 #: ../resize/virt-resize.pod:508
24434 msgid ""
24435 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
24436 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
24437 "size; or as a relative number or percentage.  For example:"
24438 msgstr ""
24439
24440 #. type: verbatim
24441 #: ../resize/virt-resize.pod:514
24442 #, no-wrap
24443 msgid ""
24444 " --resize /dev/sda2=10G\n"
24445 "\n"
24446 msgstr ""
24447
24448 #. type: verbatim
24449 #: ../resize/virt-resize.pod:516
24450 #, no-wrap
24451 msgid ""
24452 " --resize /dev/sda4=90%\n"
24453 "\n"
24454 msgstr ""
24455
24456 #. type: verbatim
24457 #: ../resize/virt-resize.pod:518
24458 #, no-wrap
24459 msgid ""
24460 " --resize /dev/sda2=+1G\n"
24461 "\n"
24462 msgstr ""
24463
24464 #. type: verbatim
24465 #: ../resize/virt-resize.pod:520
24466 #, no-wrap
24467 msgid ""
24468 " --resize /dev/sda2=-200M\n"
24469 "\n"
24470 msgstr ""
24471
24472 #. type: verbatim
24473 #: ../resize/virt-resize.pod:522
24474 #, no-wrap
24475 msgid ""
24476 " --resize /dev/sda1=+128K\n"
24477 "\n"
24478 msgstr ""
24479
24480 #. type: verbatim
24481 #: ../resize/virt-resize.pod:524
24482 #, no-wrap
24483 msgid ""
24484 " --resize /dev/sda1=+10%\n"
24485 "\n"
24486 msgstr ""
24487
24488 #. type: verbatim
24489 #: ../resize/virt-resize.pod:526
24490 #, no-wrap
24491 msgid ""
24492 " --resize /dev/sda1=-10%\n"
24493 "\n"
24494 msgstr ""
24495
24496 #. type: textblock
24497 #: ../resize/virt-resize.pod:528
24498 msgid ""
24499 "You can increase the size of any partition.  Virt-resize will expand the "
24500 "direct content of the partition if it knows how (see I<--expand> below)."
24501 msgstr ""
24502
24503 #. type: textblock
24504 #: ../resize/virt-resize.pod:532
24505 msgid ""
24506 "You can only I<decrease> the size of partitions that contain filesystems or "
24507 "PVs which have already been shrunk.  Virt-resize will check this has been "
24508 "done before proceeding, or else will print an error (see also "
24509 "I<--resize-force>)."
24510 msgstr ""
24511
24512 #. type: =item
24513 #: ../resize/virt-resize.pod:539
24514 msgid "B<--resize-force part=size>"
24515 msgstr ""
24516
24517 #. type: textblock
24518 #: ../resize/virt-resize.pod:541
24519 msgid ""
24520 "This is the same as I<--resize> except that it will let you decrease the "
24521 "size of any partition.  Generally this means you will lose any data which "
24522 "was at the end of the partition you shrink, but you may not care about that "
24523 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
24524 "as a swap partition)."
24525 msgstr ""
24526
24527 #. type: textblock
24528 #: ../resize/virt-resize.pod:547
24529 msgid "See also the I<--ignore> option."
24530 msgstr ""
24531
24532 #. type: =item
24533 #: ../resize/virt-resize.pod:549
24534 msgid "B<--shrink part>"
24535 msgstr ""
24536
24537 #. type: textblock
24538 #: ../resize/virt-resize.pod:551
24539 msgid ""
24540 "Shrink the named partition until the overall disk image fits in the "
24541 "destination.  The named partition B<must> contain a filesystem or PV which "
24542 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
24543 "online tools).  Virt-resize will check this and give an error if it has not "
24544 "been done."
24545 msgstr ""
24546
24547 #. type: textblock
24548 #: ../resize/virt-resize.pod:557
24549 msgid ""
24550 "The amount by which the overall disk must be shrunk (after carrying out all "
24551 "other operations requested by the user) is called the \"deficit\".  For "
24552 "example, a straight copy (assume no other operations)  from a 5GB disk image "
24553 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
24554 "would give an error unless the user specified a partition to shrink and that "
24555 "partition had more than a gigabyte of free space."
24556 msgstr ""
24557
24558 #. type: =head1
24559 #: ../resize/virt-resize.pod:575 ../sparsify/virt-sparsify.pod:201
24560 msgid "MACHINE READABLE OUTPUT"
24561 msgstr ""
24562
24563 #. type: textblock
24564 #: ../resize/virt-resize.pod:577
24565 msgid ""
24566 "The I<--machine-readable> option can be used to make the output more machine "
24567 "friendly, which is useful when calling virt-resize from other programs, GUIs "
24568 "etc."
24569 msgstr ""
24570
24571 #. type: textblock
24572 #: ../resize/virt-resize.pod:581 ../sparsify/virt-sparsify.pod:207
24573 msgid "There are two ways to use this option."
24574 msgstr ""
24575
24576 #. type: textblock
24577 #: ../resize/virt-resize.pod:583
24578 msgid ""
24579 "Firstly use the option on its own to query the capabilities of the "
24580 "virt-resize binary.  Typical output looks like this:"
24581 msgstr ""
24582
24583 #. type: verbatim
24584 #: ../resize/virt-resize.pod:586
24585 #, no-wrap
24586 msgid ""
24587 " $ virt-resize --machine-readable\n"
24588 " virt-resize\n"
24589 " ntfsresize-force\n"
24590 " 32bitok\n"
24591 " ntfs\n"
24592 " btrfs\n"
24593 "\n"
24594 msgstr ""
24595
24596 #. type: textblock
24597 #: ../resize/virt-resize.pod:593 ../sparsify/virt-sparsify.pod:217
24598 msgid ""
24599 "A list of features is printed, one per line, and the program exits with "
24600 "status 0."
24601 msgstr ""
24602
24603 #. type: textblock
24604 #: ../resize/virt-resize.pod:596 ../sparsify/virt-sparsify.pod:220
24605 msgid ""
24606 "Secondly use the option in conjunction with other options to make the "
24607 "regular program output more machine friendly."
24608 msgstr ""
24609
24610 #. type: textblock
24611 #: ../resize/virt-resize.pod:599 ../sparsify/virt-sparsify.pod:223
24612 msgid "At the moment this means:"
24613 msgstr ""
24614
24615 #. type: textblock
24616 #: ../resize/virt-resize.pod:605 ../sparsify/virt-sparsify.pod:229
24617 msgid ""
24618 "Progress bar messages can be parsed from stdout by looking for this regular "
24619 "expression:"
24620 msgstr ""
24621
24622 #. type: verbatim
24623 #: ../resize/virt-resize.pod:608 ../sparsify/virt-sparsify.pod:232
24624 #, no-wrap
24625 msgid ""
24626 " ^[0-9]+/[0-9]+$\n"
24627 "\n"
24628 msgstr ""
24629
24630 #. type: textblock
24631 #: ../resize/virt-resize.pod:612 ../sparsify/virt-sparsify.pod:236
24632 msgid ""
24633 "The calling program should treat messages sent to stdout (except for "
24634 "progress bar messages) as status messages.  They can be logged and/or "
24635 "displayed to the user."
24636 msgstr ""
24637
24638 #. type: textblock
24639 #: ../resize/virt-resize.pod:618
24640 msgid ""
24641 "The calling program should treat messages sent to stderr as error messages.  "
24642 "In addition, virt-resize exits with a non-zero status code if there was a "
24643 "fatal error."
24644 msgstr ""
24645
24646 #. type: textblock
24647 #: ../resize/virt-resize.pod:624
24648 msgid ""
24649 "Versions of the program prior to 1.13.9 did not support the "
24650 "I<--machine-readable> option and will return an error."
24651 msgstr ""
24652
24653 #. type: =head2
24654 #: ../resize/virt-resize.pod:629
24655 msgid "\"Partition 1 does not end on cylinder boundary.\""
24656 msgstr ""
24657
24658 #. type: textblock
24659 #: ../resize/virt-resize.pod:631
24660 msgid ""
24661 "Virt-resize aligns partitions to multiples of 128 sectors (see the "
24662 "I<--alignment> parameter).  Usually this means the partitions will not be "
24663 "aligned to the ancient CHS geometry.  However CHS geometry is meaningless "
24664 "for disks manufactured since the early 1990s, and doubly so for virtual hard "
24665 "drives.  Alignment of partitions to cylinders is not required by any modern "
24666 "operating system."
24667 msgstr ""
24668
24669 #. type: =head2
24670 #: ../resize/virt-resize.pod:638
24671 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
24672 msgstr ""
24673
24674 #. type: textblock
24675 #: ../resize/virt-resize.pod:640
24676 msgid ""
24677 "In Windows Vista and later versions, Microsoft switched to using a separate "
24678 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
24679 "and C</dev/sda2> is the main (C:) drive.  Resizing the first (boot) "
24680 "partition causes the bootloader to fail with C<0xC0000225> error.  Resizing "
24681 "the second partition (ie. C: drive)  should work."
24682 msgstr ""
24683
24684 #. type: textblock
24685 #: ../resize/virt-resize.pod:647
24686 msgid ""
24687 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
24688 "NTFS partitions have been expanded.  This is just a safety check and (unless "
24689 "it find errors) is nothing to worry about."
24690 msgstr ""
24691
24692 #. type: =head2
24693 #: ../resize/virt-resize.pod:651
24694 msgid "GUEST BOOT STUCK AT \"GRUB\""
24695 msgstr ""
24696
24697 #. type: textblock
24698 #: ../resize/virt-resize.pod:653
24699 msgid ""
24700 "If a Linux guest does not boot after resizing, and the boot is stuck after "
24701 "printing C<GRUB> on the console, try reinstalling grub."
24702 msgstr ""
24703
24704 #. type: verbatim
24705 #: ../resize/virt-resize.pod:656
24706 #, no-wrap
24707 msgid ""
24708 " guestfish -i -a newdisk\n"
24709 " ><fs> cat /boot/grub/device.map\n"
24710 " # check the contents of this file are sensible or\n"
24711 " # edit the file if necessary\n"
24712 " ><fs> grub-install / /dev/vda\n"
24713 " ><fs> exit\n"
24714 "\n"
24715 msgstr ""
24716
24717 #. type: textblock
24718 #: ../resize/virt-resize.pod:663
24719 msgid ""
24720 "For more flexible guest reconfiguration, including if you need to specify "
24721 "other parameters to grub-install, use L<virt-rescue(1)>."
24722 msgstr ""
24723
24724 #. type: =head1
24725 #: ../resize/virt-resize.pod:666
24726 msgid "ALTERNATIVE TOOLS"
24727 msgstr ""
24728
24729 #. type: textblock
24730 #: ../resize/virt-resize.pod:668
24731 msgid ""
24732 "There are several proprietary tools for resizing partitions.  We won't "
24733 "mention any here."
24734 msgstr ""
24735
24736 #. type: textblock
24737 #: ../resize/virt-resize.pod:671
24738 msgid ""
24739 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
24740 "operations on disk images.  They can resize and move partitions, but I don't "
24741 "think they can do anything with the contents, and they certainly don't "
24742 "understand LVM."
24743 msgstr ""
24744
24745 #. type: textblock
24746 #: ../resize/virt-resize.pod:676
24747 msgid ""
24748 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
24749 "but at a much lower level.  You will probably end up hand-calculating sector "
24750 "offsets, which is something that virt-resize was designed to avoid.  If you "
24751 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
24752 "I<--debug> flag."
24753 msgstr ""
24754
24755 #. type: textblock
24756 #: ../resize/virt-resize.pod:696
24757 msgid ""
24758 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, "
24759 "L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, "
24760 "L<ntfsresize(8)>, L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, "
24761 "L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, "
24762 "L<virt-sparsify(1)>, L<virt-alignment-scan(1)>, L<http://libguestfs.org/>."
24763 msgstr ""
24764
24765 #. type: textblock
24766 #: ../ruby/examples/guestfs-ruby.pod:5
24767 msgid "guestfs-ruby - How to use libguestfs from Ruby"
24768 msgstr ""
24769
24770 #. type: verbatim
24771 #: ../ruby/examples/guestfs-ruby.pod:9
24772 #, no-wrap
24773 msgid ""
24774 " require 'guestfs'\n"
24775 " g = Guestfs::Guestfs.new()\n"
24776 " g.add_drive_opts(\"disk.img\",\n"
24777 "                  :readonly => 1, :format => \"raw\")\n"
24778 " g.launch()\n"
24779 "\n"
24780 msgstr ""
24781
24782 #. type: textblock
24783 #: ../ruby/examples/guestfs-ruby.pod:17
24784 msgid ""
24785 "This manual page documents how to call libguestfs from the Ruby programming "
24786 "language.  This page just documents the differences from the C API and gives "
24787 "some examples.  If you are not familiar with using libguestfs, you also need "
24788 "to read L<guestfs(3)>."
24789 msgstr ""
24790
24791 #. type: textblock
24792 #: ../ruby/examples/guestfs-ruby.pod:24
24793 msgid ""
24794 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
24795 "This has a single parameter which is the error message (a string)."
24796 msgstr ""
24797
24798 #. type: textblock
24799 #: ../ruby/examples/guestfs-ruby.pod:38
24800 msgid ""
24801 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
24802 "L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
24803 "L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
24804 msgstr ""
24805
24806 #. type: textblock
24807 #: ../sparsify/virt-sparsify.pod:5
24808 msgid "virt-sparsify - Make a virtual machine disk sparse"
24809 msgstr ""
24810
24811 #. type: verbatim
24812 #: ../sparsify/virt-sparsify.pod:9
24813 #, no-wrap
24814 msgid ""
24815 " virt-sparsify [--options] indisk outdisk\n"
24816 "\n"
24817 msgstr ""
24818
24819 #. type: textblock
24820 #: ../sparsify/virt-sparsify.pod:13
24821 msgid ""
24822 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
24823 "image) sparse a.k.a. thin-provisioned.  This means that free space within "
24824 "the disk image can be converted back to free space on the host."
24825 msgstr ""
24826
24827 #. type: textblock
24828 #: ../sparsify/virt-sparsify.pod:18
24829 msgid ""
24830 "Virt-sparsify can locate and sparsify free space in most filesystems "
24831 "(eg. ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
24832 msgstr ""
24833
24834 #. type: textblock
24835 #: ../sparsify/virt-sparsify.pod:21
24836 msgid ""
24837 "Virt-sparsify can also convert between some disk formats, for example "
24838 "converting a raw disk image to a thin-provisioned qcow2 image."
24839 msgstr ""
24840
24841 #. type: textblock
24842 #: ../sparsify/virt-sparsify.pod:24
24843 msgid ""
24844 "Virt-sparsify can operate on any disk image, not just ones from virtual "
24845 "machines.  If a virtual machine has more than one attached disk, you must "
24846 "sparsify each one separately."
24847 msgstr ""
24848
24849 #. type: =head2
24850 #: ../sparsify/virt-sparsify.pod:28
24851 msgid "IMPORTANT LIMITATIONS"
24852 msgstr ""
24853
24854 #. type: textblock
24855 #: ../sparsify/virt-sparsify.pod:34
24856 msgid ""
24857 "Virt-sparsify does not do in-place modifications.  It copies from a source "
24858 "image to a destination image, leaving the source unchanged.  I<Check that "
24859 "the sparsification was successful before deleting the source image>."
24860 msgstr ""
24861
24862 #. type: textblock
24863 #: ../sparsify/virt-sparsify.pod:41
24864 msgid "The virtual machine I<must be shut down> before using this tool."
24865 msgstr ""
24866
24867 #. type: textblock
24868 #: ../sparsify/virt-sparsify.pod:45
24869 msgid ""
24870 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
24871 "(1 temporary copy + 1 destination image).  This is in the worst case and "
24872 "usually much less space is required."
24873 msgstr ""
24874
24875 #. type: textblock
24876 #: ../sparsify/virt-sparsify.pod:51
24877 msgid "Virt-sparsify cannot resize disk images.  To do that, use L<virt-resize(1)>."
24878 msgstr ""
24879
24880 #. type: textblock
24881 #: ../sparsify/virt-sparsify.pod:56
24882 msgid "Virt-sparsify cannot handle encrypted disks."
24883 msgstr ""
24884
24885 #. type: textblock
24886 #: ../sparsify/virt-sparsify.pod:60
24887 msgid ""
24888 "Virt-sparsify cannot yet sparsify the space between partitions.  Note that "
24889 "this space is often used for critical items like bootloaders so it's not "
24890 "really unused."
24891 msgstr ""
24892
24893 #. type: textblock
24894 #: ../sparsify/virt-sparsify.pod:66
24895 msgid ""
24896 "Virt-sparsify does not yet know how to sparsify swapspace.  It is not safe "
24897 "to do this unless we can be sure there is no hibernation data, so at the "
24898 "moment swap partitions are ignored."
24899 msgstr ""
24900
24901 #. type: textblock
24902 #: ../sparsify/virt-sparsify.pod:72
24903 msgid ""
24904 "You may also want to read the manual pages for the associated tools "
24905 "L<virt-filesystems(1)> and L<virt-df(1)> before starting."
24906 msgstr ""
24907
24908 #. type: textblock
24909 #: ../sparsify/virt-sparsify.pod:77
24910 msgid "Typical usage is:"
24911 msgstr ""
24912
24913 #. type: verbatim
24914 #: ../sparsify/virt-sparsify.pod:79
24915 #, no-wrap
24916 msgid ""
24917 " virt-sparsify indisk outdisk\n"
24918 "\n"
24919 msgstr ""
24920
24921 #. type: textblock
24922 #: ../sparsify/virt-sparsify.pod:81
24923 msgid ""
24924 "which copies C<indisk> to C<outdisk>, making the output sparse.  C<outdisk> "
24925 "is created, or overwritten if it already exists.  The format of the input "
24926 "disk is detected (eg. qcow2) and the same format is used for the output "
24927 "disk."
24928 msgstr ""
24929
24930 #. type: textblock
24931 #: ../sparsify/virt-sparsify.pod:86
24932 msgid "To convert between formats, use the I<--convert> option:"
24933 msgstr ""
24934
24935 #. type: verbatim
24936 #: ../sparsify/virt-sparsify.pod:88
24937 #, no-wrap
24938 msgid ""
24939 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
24940 "\n"
24941 msgstr ""
24942
24943 #. type: textblock
24944 #: ../sparsify/virt-sparsify.pod:90
24945 msgid ""
24946 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
24947 "can find within the source disk image.  You can get it to ignore (don't zero "
24948 "free space on) certain filesystems by doing:"
24949 msgstr ""
24950
24951 #. type: verbatim
24952 #: ../sparsify/virt-sparsify.pod:94
24953 #, no-wrap
24954 msgid ""
24955 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
24956 "\n"
24957 msgstr ""
24958
24959 #. type: textblock
24960 #: ../sparsify/virt-sparsify.pod:96
24961 msgid "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
24962 msgstr ""
24963
24964 #. type: =item
24965 #: ../sparsify/virt-sparsify.pod:107
24966 msgid "B<--compress>"
24967 msgstr ""
24968
24969 #. type: textblock
24970 #: ../sparsify/virt-sparsify.pod:109
24971 msgid ""
24972 "Compress the output file.  This I<only> works if the output format is "
24973 "C<qcow2>."
24974 msgstr ""
24975
24976 #. type: =item
24977 #: ../sparsify/virt-sparsify.pod:112
24978 msgid "B<--convert> raw"
24979 msgstr ""
24980
24981 #. type: =item
24982 #: ../sparsify/virt-sparsify.pod:114
24983 msgid "B<--convert> qcow2"
24984 msgstr ""
24985
24986 #. type: =item
24987 #: ../sparsify/virt-sparsify.pod:116
24988 msgid "B<--convert> [other formats]"
24989 msgstr ""
24990
24991 #. type: textblock
24992 #: ../sparsify/virt-sparsify.pod:118
24993 msgid ""
24994 "Use C<output-format> as the format for the destination image.  If this is "
24995 "not specified, then the input format is used."
24996 msgstr ""
24997
24998 #. type: textblock
24999 #: ../sparsify/virt-sparsify.pod:121
25000 msgid "Supported and known-working output formats are: C<raw>, C<qcow2>, C<vdi>."
25001 msgstr ""
25002
25003 #. type: textblock
25004 #: ../sparsify/virt-sparsify.pod:123
25005 msgid ""
25006 "You can also use any format supported by the L<qemu-img(1)> program, "
25007 "eg. C<vmdk>, but support for other formats is reliant on qemu."
25008 msgstr ""
25009
25010 #. type: textblock
25011 #: ../sparsify/virt-sparsify.pod:126
25012 msgid ""
25013 "Specifying the I<--convert> option is usually a good idea, because then "
25014 "virt-sparsify doesn't need to try to guess the input format."
25015 msgstr ""
25016
25017 #. type: textblock
25018 #: ../sparsify/virt-sparsify.pod:129
25019 msgid "For fine-tuning the output format, see: I<--compress>, I<-o>."
25020 msgstr ""
25021
25022 #. type: textblock
25023 #: ../sparsify/virt-sparsify.pod:133
25024 msgid ""
25025 "Debug garbage collection and memory allocation.  This is only useful when "
25026 "debugging memory problems in virt-sparsify or the OCaml libguestfs bindings."
25027 msgstr ""
25028
25029 #. type: =item
25030 #: ../sparsify/virt-sparsify.pod:139
25031 msgid "B<--format> qcow2"
25032 msgstr ""
25033
25034 #. type: =item
25035 #: ../sparsify/virt-sparsify.pod:147
25036 msgid "B<--ignore> filesystem"
25037 msgstr ""
25038
25039 #. type: =item
25040 #: ../sparsify/virt-sparsify.pod:149
25041 msgid "B<--ignore> volgroup"
25042 msgstr ""
25043
25044 #. type: textblock
25045 #: ../sparsify/virt-sparsify.pod:151
25046 msgid ""
25047 "Ignore the named filesystem.  Free space on the filesystem will not be "
25048 "zeroed, but existing blocks of zeroes will still be sparsified."
25049 msgstr ""
25050
25051 #. type: textblock
25052 #: ../sparsify/virt-sparsify.pod:154
25053 msgid ""
25054 "In the second form, this ignores the named volume group.  Use the volume "
25055 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
25056 msgstr ""
25057
25058 #. type: =item
25059 #: ../sparsify/virt-sparsify.pod:165
25060 msgid "B<-o> option[,option,...]"
25061 msgstr ""
25062
25063 #. type: textblock
25064 #: ../sparsify/virt-sparsify.pod:167
25065 msgid ""
25066 "Pass I<-o> option(s) to the L<qemu-img(1)> command to fine-tune the output "
25067 "format.  Options available depend on the output format (see I<--convert>) "
25068 "and the installed version of the qemu-img program."
25069 msgstr ""
25070
25071 #. type: textblock
25072 #: ../sparsify/virt-sparsify.pod:171
25073 msgid ""
25074 "You should use I<-o> at most once.  To pass multiple options, separate them "
25075 "with commas, eg:"
25076 msgstr ""
25077
25078 #. type: verbatim
25079 #: ../sparsify/virt-sparsify.pod:174
25080 #, no-wrap
25081 msgid ""
25082 " virt-sparsify --convert qcow2 \\\n"
25083 "   -o cluster_size=512,preallocation=metadata ...\n"
25084 "\n"
25085 msgstr ""
25086
25087 #. type: textblock
25088 #: ../sparsify/virt-sparsify.pod:181
25089 msgid "This disables progress bars and other unnecessary output."
25090 msgstr ""
25091
25092 #. type: textblock
25093 #: ../sparsify/virt-sparsify.pod:203
25094 msgid ""
25095 "The I<--machine-readable> option can be used to make the output more machine "
25096 "friendly, which is useful when calling virt-sparsify from other programs, "
25097 "GUIs etc."
25098 msgstr ""
25099
25100 #. type: textblock
25101 #: ../sparsify/virt-sparsify.pod:209
25102 msgid ""
25103 "Firstly use the option on its own to query the capabilities of the "
25104 "virt-sparsify binary.  Typical output looks like this:"
25105 msgstr ""
25106
25107 #. type: verbatim
25108 #: ../sparsify/virt-sparsify.pod:212
25109 #, no-wrap
25110 msgid ""
25111 " $ virt-sparsify --machine-readable\n"
25112 " virt-sparsify\n"
25113 " ntfs\n"
25114 " btrfs\n"
25115 "\n"
25116 msgstr ""
25117
25118 #. type: textblock
25119 #: ../sparsify/virt-sparsify.pod:242
25120 msgid ""
25121 "The calling program should treat messages sent to stderr as error messages.  "
25122 "In addition, virt-sparsify exits with a non-zero status code if there was a "
25123 "fatal error."
25124 msgstr ""
25125
25126 #. type: textblock
25127 #: ../sparsify/virt-sparsify.pod:248
25128 msgid ""
25129 "All versions of virt-sparsify have supported the I<--machine-readable> "
25130 "option."
25131 msgstr ""
25132
25133 #. type: textblock
25134 #: ../sparsify/virt-sparsify.pod:262
25135 msgid ""
25136 "Location of the temporary directory used for the potentially large temporary "
25137 "overlay file."
25138 msgstr ""
25139
25140 #. type: textblock
25141 #: ../sparsify/virt-sparsify.pod:265
25142 msgid ""
25143 "You should ensure there is enough free space in the worst case for a full "
25144 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
25145 "to another directory that has enough space."
25146 msgstr ""
25147
25148 #. type: textblock
25149 #: ../sparsify/virt-sparsify.pod:269
25150 msgid "This defaults to C</tmp>."
25151 msgstr ""
25152
25153 #. type: textblock
25154 #: ../sparsify/virt-sparsify.pod:273
25155 msgid "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
25156 msgstr ""
25157
25158 #. type: textblock
25159 #: ../sparsify/virt-sparsify.pod:277
25160 msgid ""
25161 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
25162 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, "
25163 "L<qemu-img(1)>, L<http://libguestfs.org/>."
25164 msgstr ""
25165
25166 #. type: =head2
25167 #: ../src/guestfs-actions.pod:1
25168 msgid "guestfs_add_cdrom"
25169 msgstr ""
25170
25171 #. type: verbatim
25172 #: ../src/guestfs-actions.pod:3
25173 #, no-wrap
25174 msgid ""
25175 " int\n"
25176 " guestfs_add_cdrom (guestfs_h *g,\n"
25177 "                    const char *filename);\n"
25178 "\n"
25179 msgstr ""
25180
25181 #. type: textblock
25182 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:302 ../src/guestfs-actions.pod:323
25183 msgid ""
25184 "I<This function is deprecated.> In new code, use the "
25185 "L</guestfs_add_drive_opts> call instead."
25186 msgstr ""
25187
25188 #. type: textblock
25189 #: ../src/guestfs-actions.pod:24
25190 msgid ""
25191 "This call checks for the existence of C<filename>.  This stops you from "
25192 "specifying other types of drive which are supported by qemu such as C<nbd:> "
25193 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
25194 "instead."
25195 msgstr ""
25196
25197 #. type: textblock
25198 #: ../src/guestfs-actions.pod:31
25199 msgid ""
25200 "If you just want to add an ISO file (often you use this as an efficient way "
25201 "to transfer large files into the guest), then you should probably use "
25202 "C<guestfs_add_drive_ro> instead."
25203 msgstr ""
25204
25205 #. type: textblock
25206 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:187 ../src/guestfs-actions.pod:254 ../src/guestfs-actions.pod:291 ../src/guestfs-actions.pod:312 ../src/guestfs-actions.pod:333 ../src/guestfs-actions.pod:346 ../src/guestfs-actions.pod:360 ../src/guestfs-actions.pod:480 ../src/guestfs-actions.pod:500 ../src/guestfs-actions.pod:514 ../src/guestfs-actions.pod:559 ../src/guestfs-actions.pod:587 ../src/guestfs-actions.pod:605 ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:705 ../src/guestfs-actions.pod:719 ../src/guestfs-actions.pod:734 ../src/guestfs-actions.pod:833 ../src/guestfs-actions.pod:851 ../src/guestfs-actions.pod:865 ../src/guestfs-actions.pod:879 ../src/guestfs-actions.pod:916 ../src/guestfs-actions.pod:1099 ../src/guestfs-actions.pod:1119 ../src/guestfs-actions.pod:1137 ../src/guestfs-actions.pod:1227 ../src/guestfs-actions.pod:1286 ../src/guestfs-actions.pod:1332 ../src/guestfs-actions.pod:1372 ../src/guestfs-actions.pod:1425 ../src/guestfs-actions.pod:1478 ../src/guestfs-actions.pod:1536 ../src/guestfs-actions.pod:1590 ../src/guestfs-actions.pod:1609 ../src/guestfs-actions.pod:1623 ../src/guestfs-actions.pod:1651 ../src/guestfs-actions.pod:1721 ../src/guestfs-actions.pod:1752 ../src/guestfs-actions.pod:1777 ../src/guestfs-actions.pod:1819 ../src/guestfs-actions.pod:1932 ../src/guestfs-actions.pod:1959 ../src/guestfs-actions.pod:2174 ../src/guestfs-actions.pod:2196 ../src/guestfs-actions.pod:2283 ../src/guestfs-actions.pod:2791 ../src/guestfs-actions.pod:2935 ../src/guestfs-actions.pod:2996 ../src/guestfs-actions.pod:3031 ../src/guestfs-actions.pod:4092 ../src/guestfs-actions.pod:4107 ../src/guestfs-actions.pod:4132 ../src/guestfs-actions.pod:4334 ../src/guestfs-actions.pod:4348 ../src/guestfs-actions.pod:4361 ../src/guestfs-actions.pod:4375 ../src/guestfs-actions.pod:4390 ../src/guestfs-actions.pod:4426 ../src/guestfs-actions.pod:4498 ../src/guestfs-actions.pod:4518 ../src/guestfs-actions.pod:4535 ../src/guestfs-actions.pod:4555 ../src/guestfs-actions.pod:4575 ../src/guestfs-actions.pod:4610 ../src/guestfs-actions.pod:4629 ../src/guestfs-actions.pod:4648 ../src/guestfs-actions.pod:4683 ../src/guestfs-actions.pod:4695 ../src/guestfs-actions.pod:4728 ../src/guestfs-actions.pod:4744 ../src/guestfs-actions.pod:4757 ../src/guestfs-actions.pod:4772 ../src/guestfs-actions.pod:4789 ../src/guestfs-actions.pod:4947 ../src/guestfs-actions.pod:5021 ../src/guestfs-actions.pod:5031 ../src/guestfs-actions.pod:5051 ../src/guestfs-actions.pod:5064 ../src/guestfs-actions.pod:5115 ../src/guestfs-actions.pod:5133 ../src/guestfs-actions.pod:5151 ../src/guestfs-actions.pod:5167 ../src/guestfs-actions.pod:5181 ../src/guestfs-actions.pod:5195 ../src/guestfs-actions.pod:5212 ../src/guestfs-actions.pod:5227 ../src/guestfs-actions.pod:5254 ../src/guestfs-actions.pod:5317 ../src/guestfs-actions.pod:5390 ../src/guestfs-actions.pod:5421 ../src/guestfs-actions.pod:5440 ../src/guestfs-actions.pod:5459 ../src/guestfs-actions.pod:5471 ../src/guestfs-actions.pod:5488 ../src/guestfs-actions.pod:5501 ../src/guestfs-actions.pod:5516 ../src/guestfs-actions.pod:5531 ../src/guestfs-actions.pod:5563 ../src/guestfs-actions.pod:5589 ../src/guestfs-actions.pod:5628 ../src/guestfs-actions.pod:5648 ../src/guestfs-actions.pod:5662 ../src/guestfs-actions.pod:5679 ../src/guestfs-actions.pod:5728 ../src/guestfs-actions.pod:5781 ../src/guestfs-actions.pod:5828 ../src/guestfs-actions.pod:5871 ../src/guestfs-actions.pod:5899 ../src/guestfs-actions.pod:5916 ../src/guestfs-actions.pod:5934 ../src/guestfs-actions.pod:6071 ../src/guestfs-actions.pod:6128 ../src/guestfs-actions.pod:6150 ../src/guestfs-actions.pod:6168 ../src/guestfs-actions.pod:6220 ../src/guestfs-actions.pod:6286 ../src/guestfs-actions.pod:6303 ../src/guestfs-actions.pod:6316 ../src/guestfs-actions.pod:6330 ../src/guestfs-actions.pod:6619 ../src/guestfs-actions.pod:6638 ../src/guestfs-actions.pod:6657 ../src/guestfs-actions.pod:6671 ../src/guestfs-actions.pod:6683 ../src/guestfs-actions.pod:6697 ../src/guestfs-actions.pod:6709 ../src/guestfs-actions.pod:6723 ../src/guestfs-actions.pod:6739 ../src/guestfs-actions.pod:6757 ../src/guestfs-actions.pod:6776 ../src/guestfs-actions.pod:6795 ../src/guestfs-actions.pod:6825 ../src/guestfs-actions.pod:6843 ../src/guestfs-actions.pod:6866 ../src/guestfs-actions.pod:6884 ../src/guestfs-actions.pod:6903 ../src/guestfs-actions.pod:6924 ../src/guestfs-actions.pod:6943 ../src/guestfs-actions.pod:6960 ../src/guestfs-actions.pod:6979 ../src/guestfs-actions.pod:7007 ../src/guestfs-actions.pod:7031 ../src/guestfs-actions.pod:7050 ../src/guestfs-actions.pod:7066 ../src/guestfs-actions.pod:7090 ../src/guestfs-actions.pod:7109 ../src/guestfs-actions.pod:7124 ../src/guestfs-actions.pod:7143 ../src/guestfs-actions.pod:7187 ../src/guestfs-actions.pod:7214 ../src/guestfs-actions.pod:7244 ../src/guestfs-actions.pod:7356 ../src/guestfs-actions.pod:7477 ../src/guestfs-actions.pod:7489 ../src/guestfs-actions.pod:7502 ../src/guestfs-actions.pod:7515 ../src/guestfs-actions.pod:7537 ../src/guestfs-actions.pod:7550 ../src/guestfs-actions.pod:7563 ../src/guestfs-actions.pod:7576 ../src/guestfs-actions.pod:7591 ../src/guestfs-actions.pod:7650 ../src/guestfs-actions.pod:7667 ../src/guestfs-actions.pod:7683 ../src/guestfs-actions.pod:7699 ../src/guestfs-actions.pod:7716 ../src/guestfs-actions.pod:7729 ../src/guestfs-actions.pod:7749 ../src/guestfs-actions.pod:7849 ../src/guestfs-actions.pod:7907 ../src/guestfs-actions.pod:7921 ../src/guestfs-actions.pod:7962 ../src/guestfs-actions.pod:7975 ../src/guestfs-actions.pod:7993 ../src/guestfs-actions.pod:8027 ../src/guestfs-actions.pod:8063 ../src/guestfs-actions.pod:8179 ../src/guestfs-actions.pod:8194 ../src/guestfs-actions.pod:8208 ../src/guestfs-actions.pod:8263 ../src/guestfs-actions.pod:8276 ../src/guestfs-actions.pod:8321 ../src/guestfs-actions.pod:8361 ../src/guestfs-actions.pod:8417 ../src/guestfs-actions.pod:8437 ../src/guestfs-actions.pod:8470 ../src/guestfs-actions.pod:8534 ../src/guestfs-actions.pod:8557 ../src/guestfs-actions.pod:8583
25207 msgid "This function returns 0 on success or -1 on error."
25208 msgstr ""
25209
25210 #. type: textblock
25211 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:189 ../src/guestfs-actions.pod:1334 ../src/guestfs-actions.pod:2397 ../src/guestfs-actions.pod:2495 ../src/guestfs-actions.pod:2620 ../src/guestfs-actions.pod:4094 ../src/guestfs-actions.pod:4114 ../src/guestfs-actions.pod:5565 ../src/guestfs-actions.pod:6845 ../src/guestfs-actions.pod:6962 ../src/guestfs-actions.pod:7111 ../src/guestfs-actions.pod:7593 ../src/guestfs-actions.pod:7718 ../src/guestfs-actions.pod:8363
25212 msgid "(Added in 0.3)"
25213 msgstr ""
25214
25215 #. type: =head2
25216 #: ../src/guestfs-actions.pod:41
25217 msgid "guestfs_add_domain"
25218 msgstr ""
25219
25220 #. type: verbatim
25221 #: ../src/guestfs-actions.pod:43
25222 #, no-wrap
25223 msgid ""
25224 " int\n"
25225 " guestfs_add_domain (guestfs_h *g,\n"
25226 "                     const char *dom,\n"
25227 "                     ...);\n"
25228 "\n"
25229 msgstr ""
25230
25231 #. type: textblock
25232 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:198 ../src/guestfs-actions.pod:890 ../src/guestfs-actions.pod:1214 ../src/guestfs-actions.pod:1266 ../src/guestfs-actions.pod:1344 ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:1466 ../src/guestfs-actions.pod:1519 ../src/guestfs-actions.pod:3288 ../src/guestfs-actions.pod:4882 ../src/guestfs-actions.pod:5266 ../src/guestfs-actions.pod:5575 ../src/guestfs-actions.pod:5792 ../src/guestfs-actions.pod:7760
25233 msgid ""
25234 "You may supply a list of optional arguments to this call.  Use zero or more "
25235 "of the following pairs of parameters, and terminate the list with C<-1> on "
25236 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
25237 msgstr ""
25238
25239 #. type: verbatim
25240 #: ../src/guestfs-actions.pod:53
25241 #, no-wrap
25242 msgid ""
25243 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
25244 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
25245 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
25246 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
25247 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
25248 " GUESTFS_ADD_DOMAIN_READONLYDISK, const char *readonlydisk,\n"
25249 "\n"
25250 msgstr ""
25251
25252 #. type: textblock
25253 #: ../src/guestfs-actions.pod:60
25254 msgid ""
25255 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
25256 "It works by connecting to libvirt, requesting the domain and domain XML from "
25257 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
25258 "one."
25259 msgstr ""
25260
25261 #. type: textblock
25262 #: ../src/guestfs-actions.pod:141
25263 msgid ""
25264 "The other optional parameters are passed directly through to "
25265 "C<guestfs_add_drive_opts>."
25266 msgstr ""
25267
25268 #. type: textblock
25269 #: ../src/guestfs-actions.pod:144 ../src/guestfs-actions.pod:403 ../src/guestfs-actions.pod:573 ../src/guestfs-actions.pod:751 ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800 ../src/guestfs-actions.pod:819 ../src/guestfs-actions.pod:1797 ../src/guestfs-actions.pod:2153 ../src/guestfs-actions.pod:2356 ../src/guestfs-actions.pod:2467 ../src/guestfs-actions.pod:2518 ../src/guestfs-actions.pod:2570 ../src/guestfs-actions.pod:2584 ../src/guestfs-actions.pod:2607 ../src/guestfs-actions.pod:2922 ../src/guestfs-actions.pod:3406 ../src/guestfs-actions.pod:3424 ../src/guestfs-actions.pod:5751 ../src/guestfs-actions.pod:5968 ../src/guestfs-actions.pod:6206 ../src/guestfs-actions.pod:6400 ../src/guestfs-actions.pod:6426 ../src/guestfs-actions.pod:7948 ../src/guestfs-actions.pod:8374 ../src/guestfs-actions.pod:8387 ../src/guestfs-actions.pod:8400
25270 msgid "On error this function returns -1."
25271 msgstr ""
25272
25273 #. type: textblock
25274 #: ../src/guestfs-actions.pod:146
25275 msgid "(Added in 1.7.4)"
25276 msgstr ""
25277
25278 #. type: =head2
25279 #: ../src/guestfs-actions.pod:148
25280 msgid "guestfs_add_domain_va"
25281 msgstr ""
25282
25283 #. type: verbatim
25284 #: ../src/guestfs-actions.pod:150
25285 #, no-wrap
25286 msgid ""
25287 " int\n"
25288 " guestfs_add_domain_va (guestfs_h *g,\n"
25289 "                        const char *dom,\n"
25290 "                        va_list args);\n"
25291 "\n"
25292 msgstr ""
25293
25294 #. type: textblock
25295 #: ../src/guestfs-actions.pod:155
25296 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
25297 msgstr ""
25298
25299 #. type: textblock
25300 #: ../src/guestfs-actions.pod:157 ../src/guestfs-actions.pod:168 ../src/guestfs-actions.pod:267 ../src/guestfs-actions.pod:278 ../src/guestfs-actions.pod:929 ../src/guestfs-actions.pod:940 ../src/guestfs-actions.pod:1242 ../src/guestfs-actions.pod:1255 ../src/guestfs-actions.pod:1301 ../src/guestfs-actions.pod:1314 ../src/guestfs-actions.pod:1391 ../src/guestfs-actions.pod:1403 ../src/guestfs-actions.pod:1444 ../src/guestfs-actions.pod:1456 ../src/guestfs-actions.pod:1497 ../src/guestfs-actions.pod:1509 ../src/guestfs-actions.pod:1555 ../src/guestfs-actions.pod:1567 ../src/guestfs-actions.pod:3372 ../src/guestfs-actions.pod:3384 ../src/guestfs-actions.pod:4959 ../src/guestfs-actions.pod:4971 ../src/guestfs-actions.pod:5331 ../src/guestfs-actions.pod:5343 ../src/guestfs-actions.pod:5603 ../src/guestfs-actions.pod:5615 ../src/guestfs-actions.pod:5841 ../src/guestfs-actions.pod:5852 ../src/guestfs-actions.pod:7862 ../src/guestfs-actions.pod:7873
25301 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
25302 msgstr ""
25303
25304 #. type: =head2
25305 #: ../src/guestfs-actions.pod:159
25306 msgid "guestfs_add_domain_argv"
25307 msgstr ""
25308
25309 #. type: verbatim
25310 #: ../src/guestfs-actions.pod:161
25311 #, no-wrap
25312 msgid ""
25313 " int\n"
25314 " guestfs_add_domain_argv (guestfs_h *g,\n"
25315 "                          const char *dom,\n"
25316 "                          const struct guestfs_add_domain_argv *optargs);\n"
25317 "\n"
25318 msgstr ""
25319
25320 #. type: textblock
25321 #: ../src/guestfs-actions.pod:166
25322 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
25323 msgstr ""
25324
25325 #. type: =head2
25326 #: ../src/guestfs-actions.pod:170
25327 msgid "guestfs_add_drive"
25328 msgstr ""
25329
25330 #. type: verbatim
25331 #: ../src/guestfs-actions.pod:172
25332 #, no-wrap
25333 msgid ""
25334 " int\n"
25335 " guestfs_add_drive (guestfs_h *g,\n"
25336 "                    const char *filename);\n"
25337 "\n"
25338 msgstr ""
25339
25340 #. type: textblock
25341 #: ../src/guestfs-actions.pod:176
25342 msgid ""
25343 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
25344 "optional parameters, so the disk is added writable, with the format being "
25345 "detected automatically."
25346 msgstr ""
25347
25348 #. type: textblock
25349 #: ../src/guestfs-actions.pod:180
25350 msgid ""
25351 "Automatic detection of the format opens you up to a potential security hole "
25352 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
25353 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
25354 "you should think about replacing calls to this function with calls to "
25355 "C<guestfs_add_drive_opts>, and specifying the format."
25356 msgstr ""
25357
25358 #. type: =head2
25359 #: ../src/guestfs-actions.pod:191
25360 msgid "guestfs_add_drive_opts"
25361 msgstr ""
25362
25363 #. type: verbatim
25364 #: ../src/guestfs-actions.pod:193
25365 #, no-wrap
25366 msgid ""
25367 " int\n"
25368 " guestfs_add_drive_opts (guestfs_h *g,\n"
25369 "                         const char *filename,\n"
25370 "                         ...);\n"
25371 "\n"
25372 msgstr ""
25373
25374 #. type: verbatim
25375 #: ../src/guestfs-actions.pod:203
25376 #, no-wrap
25377 msgid ""
25378 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
25379 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
25380 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
25381 " GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
25382 "\n"
25383 msgstr ""
25384
25385 #. type: textblock
25386 #: ../src/guestfs-actions.pod:233
25387 msgid ""
25388 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
25389 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
25390 "Possible formats include C<raw> and C<qcow2>."
25391 msgstr ""
25392
25393 #. type: textblock
25394 #: ../src/guestfs-actions.pod:244
25395 msgid ""
25396 "This rarely-used option lets you emulate the behaviour of the deprecated "
25397 "C<guestfs_add_drive_with_if> call (q.v.)"
25398 msgstr ""
25399
25400 #. type: textblock
25401 #: ../src/guestfs-actions.pod:256
25402 msgid "(Added in 1.5.23)"
25403 msgstr ""
25404
25405 #. type: =head2
25406 #: ../src/guestfs-actions.pod:258
25407 msgid "guestfs_add_drive_opts_va"
25408 msgstr ""
25409
25410 #. type: verbatim
25411 #: ../src/guestfs-actions.pod:260
25412 #, no-wrap
25413 msgid ""
25414 " int\n"
25415 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
25416 "                            const char *filename,\n"
25417 "                            va_list args);\n"
25418 "\n"
25419 msgstr ""
25420
25421 #. type: textblock
25422 #: ../src/guestfs-actions.pod:265
25423 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
25424 msgstr ""
25425
25426 #. type: =head2
25427 #: ../src/guestfs-actions.pod:269
25428 msgid "guestfs_add_drive_opts_argv"
25429 msgstr ""
25430
25431 #. type: verbatim
25432 #: ../src/guestfs-actions.pod:271
25433 #, no-wrap
25434 msgid ""
25435 " int\n"
25436 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
25437 "                              const char *filename,\n"
25438 "                              const struct guestfs_add_drive_opts_argv "
25439 "*optargs);\n"
25440 "\n"
25441 msgstr ""
25442
25443 #. type: textblock
25444 #: ../src/guestfs-actions.pod:276
25445 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
25446 msgstr ""
25447
25448 #. type: =head2
25449 #: ../src/guestfs-actions.pod:280
25450 msgid "guestfs_add_drive_ro"
25451 msgstr ""
25452
25453 #. type: verbatim
25454 #: ../src/guestfs-actions.pod:282
25455 #, no-wrap
25456 msgid ""
25457 " int\n"
25458 " guestfs_add_drive_ro (guestfs_h *g,\n"
25459 "                       const char *filename);\n"
25460 "\n"
25461 msgstr ""
25462
25463 #. type: textblock
25464 #: ../src/guestfs-actions.pod:286
25465 msgid ""
25466 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
25467 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
25468 "disk is added read-only, with the format being detected automatically."
25469 msgstr ""
25470
25471 #. type: textblock
25472 #: ../src/guestfs-actions.pod:293
25473 msgid "(Added in 1.0.38)"
25474 msgstr ""
25475
25476 #. type: =head2
25477 #: ../src/guestfs-actions.pod:295
25478 msgid "guestfs_add_drive_ro_with_if"
25479 msgstr ""
25480
25481 #. type: verbatim
25482 #: ../src/guestfs-actions.pod:297
25483 #, no-wrap
25484 msgid ""
25485 " int\n"
25486 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
25487 "                               const char *filename,\n"
25488 "                               const char *iface);\n"
25489 "\n"
25490 msgstr ""
25491
25492 #. type: textblock
25493 #: ../src/guestfs-actions.pod:309
25494 msgid ""
25495 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
25496 "QEMU interface emulation to use at run time."
25497 msgstr ""
25498
25499 #. type: textblock
25500 #: ../src/guestfs-actions.pod:314 ../src/guestfs-actions.pod:335 ../src/guestfs-actions.pod:2881
25501 msgid "(Added in 1.0.84)"
25502 msgstr ""
25503
25504 #. type: =head2
25505 #: ../src/guestfs-actions.pod:316
25506 msgid "guestfs_add_drive_with_if"
25507 msgstr ""
25508
25509 #. type: verbatim
25510 #: ../src/guestfs-actions.pod:318
25511 #, no-wrap
25512 msgid ""
25513 " int\n"
25514 " guestfs_add_drive_with_if (guestfs_h *g,\n"
25515 "                            const char *filename,\n"
25516 "                            const char *iface);\n"
25517 "\n"
25518 msgstr ""
25519
25520 #. type: textblock
25521 #: ../src/guestfs-actions.pod:330
25522 msgid ""
25523 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
25524 "QEMU interface emulation to use at run time."
25525 msgstr ""
25526
25527 #. type: =head2
25528 #: ../src/guestfs-actions.pod:337
25529 msgid "guestfs_aug_clear"
25530 msgstr ""
25531
25532 #. type: verbatim
25533 #: ../src/guestfs-actions.pod:339
25534 #, no-wrap
25535 msgid ""
25536 " int\n"
25537 " guestfs_aug_clear (guestfs_h *g,\n"
25538 "                    const char *augpath);\n"
25539 "\n"
25540 msgstr ""
25541
25542 #. type: textblock
25543 #: ../src/guestfs-actions.pod:348 ../src/guestfs-actions.pod:2609
25544 msgid "(Added in 1.3.4)"
25545 msgstr ""
25546
25547 #. type: =head2
25548 #: ../src/guestfs-actions.pod:350
25549 msgid "guestfs_aug_close"
25550 msgstr ""
25551
25552 #. type: verbatim
25553 #: ../src/guestfs-actions.pod:352
25554 #, no-wrap
25555 msgid ""
25556 " int\n"
25557 " guestfs_aug_close (guestfs_h *g);\n"
25558 "\n"
25559 msgstr ""
25560
25561 #. type: textblock
25562 #: ../src/guestfs-actions.pod:355
25563 msgid ""
25564 "Close the current Augeas handle and free up any resources used by it.  After "
25565 "calling this, you have to call C<guestfs_aug_init> again before you can use "
25566 "any other Augeas functions."
25567 msgstr ""
25568
25569 #. type: textblock
25570 #: ../src/guestfs-actions.pod:362 ../src/guestfs-actions.pod:387 ../src/guestfs-actions.pod:405 ../src/guestfs-actions.pod:419 ../src/guestfs-actions.pod:482 ../src/guestfs-actions.pod:502 ../src/guestfs-actions.pod:516 ../src/guestfs-actions.pod:547 ../src/guestfs-actions.pod:561 ../src/guestfs-actions.pod:575 ../src/guestfs-actions.pod:589 ../src/guestfs-actions.pod:607 ../src/guestfs-actions.pod:6477
25571 msgid "(Added in 0.7)"
25572 msgstr ""
25573
25574 #. type: =head2
25575 #: ../src/guestfs-actions.pod:364
25576 msgid "guestfs_aug_defnode"
25577 msgstr ""
25578
25579 #. type: verbatim
25580 #: ../src/guestfs-actions.pod:366
25581 #, no-wrap
25582 msgid ""
25583 " struct guestfs_int_bool *\n"
25584 " guestfs_aug_defnode (guestfs_h *g,\n"
25585 "                      const char *name,\n"
25586 "                      const char *expr,\n"
25587 "                      const char *val);\n"
25588 "\n"
25589 msgstr ""
25590
25591 #. type: textblock
25592 #: ../src/guestfs-actions.pod:375
25593 msgid ""
25594 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
25595 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
25596 "containing that single node."
25597 msgstr ""
25598
25599 #. type: textblock
25600 #: ../src/guestfs-actions.pod:383
25601 msgid ""
25602 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
25603 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
25604 msgstr ""
25605
25606 #. type: =head2
25607 #: ../src/guestfs-actions.pod:389
25608 msgid "guestfs_aug_defvar"
25609 msgstr ""
25610
25611 #. type: verbatim
25612 #: ../src/guestfs-actions.pod:391
25613 #, no-wrap
25614 msgid ""
25615 " int\n"
25616 " guestfs_aug_defvar (guestfs_h *g,\n"
25617 "                     const char *name,\n"
25618 "                     const char *expr);\n"
25619 "\n"
25620 msgstr ""
25621
25622 #. type: =head2
25623 #: ../src/guestfs-actions.pod:407
25624 msgid "guestfs_aug_get"
25625 msgstr ""
25626
25627 #. type: verbatim
25628 #: ../src/guestfs-actions.pod:409
25629 #, no-wrap
25630 msgid ""
25631 " char *\n"
25632 " guestfs_aug_get (guestfs_h *g,\n"
25633 "                  const char *augpath);\n"
25634 "\n"
25635 msgstr ""
25636
25637 #. type: textblock
25638 #: ../src/guestfs-actions.pod:416 ../src/guestfs-actions.pod:980 ../src/guestfs-actions.pod:998 ../src/guestfs-actions.pod:1058 ../src/guestfs-actions.pod:1074 ../src/guestfs-actions.pod:1177 ../src/guestfs-actions.pod:1666 ../src/guestfs-actions.pod:1683 ../src/guestfs-actions.pod:1702 ../src/guestfs-actions.pod:1836 ../src/guestfs-actions.pod:2024 ../src/guestfs-actions.pod:2136 ../src/guestfs-actions.pod:2299 ../src/guestfs-actions.pod:2316 ../src/guestfs-actions.pod:2383 ../src/guestfs-actions.pod:2426 ../src/guestfs-actions.pod:2447 ../src/guestfs-actions.pod:2632 ../src/guestfs-actions.pod:2846 ../src/guestfs-actions.pod:3050 ../src/guestfs-actions.pod:3152 ../src/guestfs-actions.pod:3256 ../src/guestfs-actions.pod:3275 ../src/guestfs-actions.pod:3490 ../src/guestfs-actions.pod:3518 ../src/guestfs-actions.pod:3539 ../src/guestfs-actions.pod:3573 ../src/guestfs-actions.pod:3640 ../src/guestfs-actions.pod:3660 ../src/guestfs-actions.pod:3680 ../src/guestfs-actions.pod:4320 ../src/guestfs-actions.pod:4667 ../src/guestfs-actions.pod:4834 ../src/guestfs-actions.pod:5093 ../src/guestfs-actions.pod:5986 ../src/guestfs-actions.pod:6187 ../src/guestfs-actions.pod:6375 ../src/guestfs-actions.pod:6553 ../src/guestfs-actions.pod:6602 ../src/guestfs-actions.pod:7262 ../src/guestfs-actions.pod:7278 ../src/guestfs-actions.pod:7302 ../src/guestfs-actions.pod:7326 ../src/guestfs-actions.pod:8122 ../src/guestfs-actions.pod:8141 ../src/guestfs-actions.pod:8159 ../src/guestfs-actions.pod:8333 ../src/guestfs-actions.pod:8647
25639 msgid ""
25640 "This function returns a string, or NULL on error.  I<The caller must free "
25641 "the returned string after use>."
25642 msgstr ""
25643
25644 #. type: =head2
25645 #: ../src/guestfs-actions.pod:421
25646 msgid "guestfs_aug_init"
25647 msgstr ""
25648
25649 #. type: verbatim
25650 #: ../src/guestfs-actions.pod:423
25651 #, no-wrap
25652 msgid ""
25653 " int\n"
25654 " guestfs_aug_init (guestfs_h *g,\n"
25655 "                   const char *root,\n"
25656 "                   int flags);\n"
25657 "\n"
25658 msgstr ""
25659
25660 #. type: textblock
25661 #: ../src/guestfs-actions.pod:432
25662 msgid "You must call this before using any other C<guestfs_aug_*> commands."
25663 msgstr ""
25664
25665 #. type: textblock
25666 #: ../src/guestfs-actions.pod:457
25667 msgid ""
25668 "This option is only useful when debugging Augeas lenses.  Use of this option "
25669 "may require additional memory for the libguestfs appliance.  You may need to "
25670 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
25671 "C<guestfs_set_memsize>."
25672 msgstr ""
25673
25674 #. type: textblock
25675 #: ../src/guestfs-actions.pod:472
25676 msgid "Do not load the tree in C<guestfs_aug_init>."
25677 msgstr ""
25678
25679 #. type: textblock
25680 #: ../src/guestfs-actions.pod:476
25681 msgid "To close the handle, you can call C<guestfs_aug_close>."
25682 msgstr ""
25683
25684 #. type: =head2
25685 #: ../src/guestfs-actions.pod:484
25686 msgid "guestfs_aug_insert"
25687 msgstr ""
25688
25689 #. type: verbatim
25690 #: ../src/guestfs-actions.pod:486
25691 #, no-wrap
25692 msgid ""
25693 " int\n"
25694 " guestfs_aug_insert (guestfs_h *g,\n"
25695 "                     const char *augpath,\n"
25696 "                     const char *label,\n"
25697 "                     int before);\n"
25698 "\n"
25699 msgstr ""
25700
25701 #. type: =head2
25702 #: ../src/guestfs-actions.pod:504
25703 msgid "guestfs_aug_load"
25704 msgstr ""
25705
25706 #. type: verbatim
25707 #: ../src/guestfs-actions.pod:506
25708 #, no-wrap
25709 msgid ""
25710 " int\n"
25711 " guestfs_aug_load (guestfs_h *g);\n"
25712 "\n"
25713 msgstr ""
25714
25715 #. type: =head2
25716 #: ../src/guestfs-actions.pod:518
25717 msgid "guestfs_aug_ls"
25718 msgstr ""
25719
25720 #. type: verbatim
25721 #: ../src/guestfs-actions.pod:520
25722 #, no-wrap
25723 msgid ""
25724 " char **\n"
25725 " guestfs_aug_ls (guestfs_h *g,\n"
25726 "                 const char *augpath);\n"
25727 "\n"
25728 msgstr ""
25729
25730 #. type: textblock
25731 #: ../src/guestfs-actions.pod:524
25732 msgid ""
25733 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
25734 "sorting the resulting nodes into alphabetical order."
25735 msgstr ""
25736
25737 #. type: textblock
25738 #: ../src/guestfs-actions.pod:527 ../src/guestfs-actions.pod:543 ../src/guestfs-actions.pod:689 ../src/guestfs-actions.pod:1196 ../src/guestfs-actions.pod:1851 ../src/guestfs-actions.pod:1870 ../src/guestfs-actions.pod:1973 ../src/guestfs-actions.pod:1992 ../src/guestfs-actions.pod:2238 ../src/guestfs-actions.pod:2704 ../src/guestfs-actions.pod:2720 ../src/guestfs-actions.pod:2739 ../src/guestfs-actions.pod:2804 ../src/guestfs-actions.pod:2828 ../src/guestfs-actions.pod:2899 ../src/guestfs-actions.pod:2948 ../src/guestfs-actions.pod:3217 ../src/guestfs-actions.pod:3592 ../src/guestfs-actions.pod:3876 ../src/guestfs-actions.pod:4190 ../src/guestfs-actions.pod:4207 ../src/guestfs-actions.pod:4227 ../src/guestfs-actions.pod:4282 ../src/guestfs-actions.pod:4302 ../src/guestfs-actions.pod:4407 ../src/guestfs-actions.pod:4806 ../src/guestfs-actions.pod:5712 ../src/guestfs-actions.pod:6347 ../src/guestfs-actions.pod:6473 ../src/guestfs-actions.pod:6587 ../src/guestfs-actions.pod:7342 ../src/guestfs-actions.pod:7403 ../src/guestfs-actions.pod:7458 ../src/guestfs-actions.pod:7604 ../src/guestfs-actions.pod:7628 ../src/guestfs-actions.pod:8226 ../src/guestfs-actions.pod:8246 ../src/guestfs-actions.pod:8293 ../src/guestfs-actions.pod:8487 ../src/guestfs-actions.pod:8506 ../src/guestfs-actions.pod:8597 ../src/guestfs-actions.pod:8616 ../src/guestfs-actions.pod:8662 ../src/guestfs-actions.pod:8681
25739 msgid ""
25740 "This function returns a NULL-terminated array of strings (like "
25741 "L<environ(3)>), or NULL if there was an error.  I<The caller must free the "
25742 "strings and the array after use>."
25743 msgstr ""
25744
25745 #. type: textblock
25746 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:1121 ../src/guestfs-actions.pod:1139 ../src/guestfs-actions.pod:1908 ../src/guestfs-actions.pod:3954 ../src/guestfs-actions.pod:3985 ../src/guestfs-actions.pod:4650 ../src/guestfs-actions.pod:4697 ../src/guestfs-actions.pod:5033 ../src/guestfs-actions.pod:5066 ../src/guestfs-actions.pod:5229 ../src/guestfs-actions.pod:5716 ../src/guestfs-actions.pod:6288 ../src/guestfs-actions.pod:6685 ../src/guestfs-actions.pod:6699 ../src/guestfs-actions.pod:6711 ../src/guestfs-actions.pod:7189 ../src/guestfs-actions.pod:7964 ../src/guestfs-actions.pod:7977 ../src/guestfs-actions.pod:8210 ../src/guestfs-actions.pod:8475
25747 msgid "(Added in 0.8)"
25748 msgstr ""
25749
25750 #. type: =head2
25751 #: ../src/guestfs-actions.pod:533
25752 msgid "guestfs_aug_match"
25753 msgstr ""
25754
25755 #. type: verbatim
25756 #: ../src/guestfs-actions.pod:535
25757 #, no-wrap
25758 msgid ""
25759 " char **\n"
25760 " guestfs_aug_match (guestfs_h *g,\n"
25761 "                    const char *augpath);\n"
25762 "\n"
25763 msgstr ""
25764
25765 #. type: =head2
25766 #: ../src/guestfs-actions.pod:549
25767 msgid "guestfs_aug_mv"
25768 msgstr ""
25769
25770 #. type: verbatim
25771 #: ../src/guestfs-actions.pod:551
25772 #, no-wrap
25773 msgid ""
25774 " int\n"
25775 " guestfs_aug_mv (guestfs_h *g,\n"
25776 "                 const char *src,\n"
25777 "                 const char *dest);\n"
25778 "\n"
25779 msgstr ""
25780
25781 #. type: =head2
25782 #: ../src/guestfs-actions.pod:563
25783 msgid "guestfs_aug_rm"
25784 msgstr ""
25785
25786 #. type: verbatim
25787 #: ../src/guestfs-actions.pod:565
25788 #, no-wrap
25789 msgid ""
25790 " int\n"
25791 " guestfs_aug_rm (guestfs_h *g,\n"
25792 "                 const char *augpath);\n"
25793 "\n"
25794 msgstr ""
25795
25796 #. type: =head2
25797 #: ../src/guestfs-actions.pod:577
25798 msgid "guestfs_aug_save"
25799 msgstr ""
25800
25801 #. type: verbatim
25802 #: ../src/guestfs-actions.pod:579
25803 #, no-wrap
25804 msgid ""
25805 " int\n"
25806 " guestfs_aug_save (guestfs_h *g);\n"
25807 "\n"
25808 msgstr ""
25809
25810 #. type: textblock
25811 #: ../src/guestfs-actions.pod:584
25812 msgid ""
25813 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
25814 "are saved."
25815 msgstr ""
25816
25817 #. type: =head2
25818 #: ../src/guestfs-actions.pod:591
25819 msgid "guestfs_aug_set"
25820 msgstr ""
25821
25822 #. type: verbatim
25823 #: ../src/guestfs-actions.pod:593
25824 #, no-wrap
25825 msgid ""
25826 " int\n"
25827 " guestfs_aug_set (guestfs_h *g,\n"
25828 "                  const char *augpath,\n"
25829 "                  const char *val);\n"
25830 "\n"
25831 msgstr ""
25832
25833 #. type: textblock
25834 #: ../src/guestfs-actions.pod:600
25835 msgid ""
25836 "In the Augeas API, it is possible to clear a node by setting the value to "
25837 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
25838 "this call.  Instead you must use the C<guestfs_aug_clear> call."
25839 msgstr ""
25840
25841 #. type: =head2
25842 #: ../src/guestfs-actions.pod:609
25843 msgid "guestfs_available"
25844 msgstr ""
25845
25846 #. type: verbatim
25847 #: ../src/guestfs-actions.pod:611
25848 #, no-wrap
25849 msgid ""
25850 " int\n"
25851 " guestfs_available (guestfs_h *g,\n"
25852 "                    char *const *groups);\n"
25853 "\n"
25854 msgstr ""
25855
25856 #. type: textblock
25857 #: ../src/guestfs-actions.pod:619
25858 msgid ""
25859 "The libguestfs groups, and the functions that those groups correspond to, "
25860 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
25861 "runtime by calling C<guestfs_available_all_groups>."
25862 msgstr ""
25863
25864 #. type: textblock
25865 #: ../src/guestfs-actions.pod:643
25866 msgid "You must call C<guestfs_launch> before calling this function."
25867 msgstr ""
25868
25869 #. type: textblock
25870 #: ../src/guestfs-actions.pod:665
25871 msgid ""
25872 "This call was added in version C<1.0.80>.  In previous versions of "
25873 "libguestfs all you could do would be to speculatively execute a command to "
25874 "find out if the daemon implemented it.  See also C<guestfs_version>."
25875 msgstr ""
25876
25877 #. type: textblock
25878 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:1653
25879 msgid "(Added in 1.0.80)"
25880 msgstr ""
25881
25882 #. type: =head2
25883 #: ../src/guestfs-actions.pod:676
25884 msgid "guestfs_available_all_groups"
25885 msgstr ""
25886
25887 #. type: verbatim
25888 #: ../src/guestfs-actions.pod:678
25889 #, no-wrap
25890 msgid ""
25891 " char **\n"
25892 " guestfs_available_all_groups (guestfs_h *g);\n"
25893 "\n"
25894 msgstr ""
25895
25896 #. type: textblock
25897 #: ../src/guestfs-actions.pod:681
25898 msgid ""
25899 "This command returns a list of all optional groups that this daemon knows "
25900 "about.  Note this returns both supported and unsupported groups.  To find "
25901 "out which ones the daemon can actually support you have to call "
25902 "C<guestfs_available> on each member of the returned list."
25903 msgstr ""
25904
25905 #. type: textblock
25906 #: ../src/guestfs-actions.pod:687
25907 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
25908 msgstr ""
25909
25910 #. type: textblock
25911 #: ../src/guestfs-actions.pod:693
25912 msgid "(Added in 1.3.15)"
25913 msgstr ""
25914
25915 #. type: =head2
25916 #: ../src/guestfs-actions.pod:695
25917 msgid "guestfs_base64_in"
25918 msgstr ""
25919
25920 #. type: verbatim
25921 #: ../src/guestfs-actions.pod:697
25922 #, no-wrap
25923 msgid ""
25924 " int\n"
25925 " guestfs_base64_in (guestfs_h *g,\n"
25926 "                    const char *base64file,\n"
25927 "                    const char *filename);\n"
25928 "\n"
25929 msgstr ""
25930
25931 #. type: textblock
25932 #: ../src/guestfs-actions.pod:707 ../src/guestfs-actions.pod:721
25933 msgid "(Added in 1.3.5)"
25934 msgstr ""
25935
25936 #. type: =head2
25937 #: ../src/guestfs-actions.pod:709
25938 msgid "guestfs_base64_out"
25939 msgstr ""
25940
25941 #. type: verbatim
25942 #: ../src/guestfs-actions.pod:711
25943 #, no-wrap
25944 msgid ""
25945 " int\n"
25946 " guestfs_base64_out (guestfs_h *g,\n"
25947 "                     const char *filename,\n"
25948 "                     const char *base64file);\n"
25949 "\n"
25950 msgstr ""
25951
25952 #. type: =head2
25953 #: ../src/guestfs-actions.pod:723
25954 msgid "guestfs_blockdev_flushbufs"
25955 msgstr ""
25956
25957 #. type: verbatim
25958 #: ../src/guestfs-actions.pod:725
25959 #, no-wrap
25960 msgid ""
25961 " int\n"
25962 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
25963 "                             const char *device);\n"
25964 "\n"
25965 msgstr ""
25966
25967 #. type: textblock
25968 #: ../src/guestfs-actions.pod:736 ../src/guestfs-actions.pod:753 ../src/guestfs-actions.pod:768 ../src/guestfs-actions.pod:784 ../src/guestfs-actions.pod:802 ../src/guestfs-actions.pod:821 ../src/guestfs-actions.pod:835 ../src/guestfs-actions.pod:853 ../src/guestfs-actions.pod:867 ../src/guestfs-actions.pod:881
25969 msgid "(Added in 0.9.3)"
25970 msgstr ""
25971
25972 #. type: =head2
25973 #: ../src/guestfs-actions.pod:738
25974 msgid "guestfs_blockdev_getbsz"
25975 msgstr ""
25976
25977 #. type: verbatim
25978 #: ../src/guestfs-actions.pod:740
25979 #, no-wrap
25980 msgid ""
25981 " int\n"
25982 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
25983 "                          const char *device);\n"
25984 "\n"
25985 msgstr ""
25986
25987 #. type: =head2
25988 #: ../src/guestfs-actions.pod:755
25989 msgid "guestfs_blockdev_getro"
25990 msgstr ""
25991
25992 #. type: verbatim
25993 #: ../src/guestfs-actions.pod:757
25994 #, no-wrap
25995 msgid ""
25996 " int\n"
25997 " guestfs_blockdev_getro (guestfs_h *g,\n"
25998 "                         const char *device);\n"
25999 "\n"
26000 msgstr ""
26001
26002 #. type: textblock
26003 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1891 ../src/guestfs-actions.pod:1906 ../src/guestfs-actions.pod:2395 ../src/guestfs-actions.pod:2406 ../src/guestfs-actions.pod:2478 ../src/guestfs-actions.pod:2504 ../src/guestfs-actions.pod:2544 ../src/guestfs-actions.pod:2559 ../src/guestfs-actions.pod:2595 ../src/guestfs-actions.pod:2618 ../src/guestfs-actions.pod:3697 ../src/guestfs-actions.pod:3713 ../src/guestfs-actions.pod:3731 ../src/guestfs-actions.pod:3893 ../src/guestfs-actions.pod:3907 ../src/guestfs-actions.pod:3922 ../src/guestfs-actions.pod:3936 ../src/guestfs-actions.pod:3952 ../src/guestfs-actions.pod:3967 ../src/guestfs-actions.pod:3983 ../src/guestfs-actions.pod:3997 ../src/guestfs-actions.pod:4010 ../src/guestfs-actions.pod:4024 ../src/guestfs-actions.pod:4039 ../src/guestfs-actions.pod:4054 ../src/guestfs-actions.pod:4067 ../src/guestfs-actions.pod:4081 ../src/guestfs-actions.pod:5950
26004 msgid "This function returns a C truth value on success or -1 on error."
26005 msgstr ""
26006
26007 #. type: =head2
26008 #: ../src/guestfs-actions.pod:770
26009 msgid "guestfs_blockdev_getsize64"
26010 msgstr ""
26011
26012 #. type: verbatim
26013 #: ../src/guestfs-actions.pod:772
26014 #, no-wrap
26015 msgid ""
26016 " int64_t\n"
26017 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
26018 "                             const char *device);\n"
26019 "\n"
26020 msgstr ""
26021
26022 #. type: textblock
26023 #: ../src/guestfs-actions.pod:778
26024 msgid "See also C<guestfs_blockdev_getsz>."
26025 msgstr ""
26026
26027 #. type: =head2
26028 #: ../src/guestfs-actions.pod:786
26029 msgid "guestfs_blockdev_getss"
26030 msgstr ""
26031
26032 #. type: verbatim
26033 #: ../src/guestfs-actions.pod:788
26034 #, no-wrap
26035 msgid ""
26036 " int\n"
26037 " guestfs_blockdev_getss (guestfs_h *g,\n"
26038 "                         const char *device);\n"
26039 "\n"
26040 msgstr ""
26041
26042 #. type: textblock
26043 #: ../src/guestfs-actions.pod:795
26044 msgid ""
26045 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
26046 "that)."
26047 msgstr ""
26048
26049 #. type: =head2
26050 #: ../src/guestfs-actions.pod:804
26051 msgid "guestfs_blockdev_getsz"
26052 msgstr ""
26053
26054 #. type: verbatim
26055 #: ../src/guestfs-actions.pod:806
26056 #, no-wrap
26057 msgid ""
26058 " int64_t\n"
26059 " guestfs_blockdev_getsz (guestfs_h *g,\n"
26060 "                         const char *device);\n"
26061 "\n"
26062 msgstr ""
26063
26064 #. type: textblock
26065 #: ../src/guestfs-actions.pod:813
26066 msgid ""
26067 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
26068 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
26069 msgstr ""
26070
26071 #. type: =head2
26072 #: ../src/guestfs-actions.pod:823
26073 msgid "guestfs_blockdev_rereadpt"
26074 msgstr ""
26075
26076 #. type: verbatim
26077 #: ../src/guestfs-actions.pod:825
26078 #, no-wrap
26079 msgid ""
26080 " int\n"
26081 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
26082 "                            const char *device);\n"
26083 "\n"
26084 msgstr ""
26085
26086 #. type: =head2
26087 #: ../src/guestfs-actions.pod:837
26088 msgid "guestfs_blockdev_setbsz"
26089 msgstr ""
26090
26091 #. type: verbatim
26092 #: ../src/guestfs-actions.pod:839
26093 #, no-wrap
26094 msgid ""
26095 " int\n"
26096 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
26097 "                          const char *device,\n"
26098 "                          int blocksize);\n"
26099 "\n"
26100 msgstr ""
26101
26102 #. type: =head2
26103 #: ../src/guestfs-actions.pod:855
26104 msgid "guestfs_blockdev_setro"
26105 msgstr ""
26106
26107 #. type: verbatim
26108 #: ../src/guestfs-actions.pod:857
26109 #, no-wrap
26110 msgid ""
26111 " int\n"
26112 " guestfs_blockdev_setro (guestfs_h *g,\n"
26113 "                         const char *device);\n"
26114 "\n"
26115 msgstr ""
26116
26117 #. type: =head2
26118 #: ../src/guestfs-actions.pod:869
26119 msgid "guestfs_blockdev_setrw"
26120 msgstr ""
26121
26122 #. type: verbatim
26123 #: ../src/guestfs-actions.pod:871
26124 #, no-wrap
26125 msgid ""
26126 " int\n"
26127 " guestfs_blockdev_setrw (guestfs_h *g,\n"
26128 "                         const char *device);\n"
26129 "\n"
26130 msgstr ""
26131
26132 #. type: =head2
26133 #: ../src/guestfs-actions.pod:883
26134 msgid "guestfs_btrfs_filesystem_resize"
26135 msgstr ""
26136
26137 #. type: verbatim
26138 #: ../src/guestfs-actions.pod:885
26139 #, no-wrap
26140 msgid ""
26141 " int\n"
26142 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
26143 "                                  const char *mountpoint,\n"
26144 "                                  ...);\n"
26145 "\n"
26146 msgstr ""
26147
26148 #. type: verbatim
26149 #: ../src/guestfs-actions.pod:895
26150 #, no-wrap
26151 msgid ""
26152 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
26153 "\n"
26154 msgstr ""
26155
26156 #. type: textblock
26157 #: ../src/guestfs-actions.pod:918
26158 msgid "(Added in 1.11.17)"
26159 msgstr ""
26160
26161 #. type: =head2
26162 #: ../src/guestfs-actions.pod:920
26163 msgid "guestfs_btrfs_filesystem_resize_va"
26164 msgstr ""
26165
26166 #. type: verbatim
26167 #: ../src/guestfs-actions.pod:922
26168 #, no-wrap
26169 msgid ""
26170 " int\n"
26171 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
26172 "                                     const char *mountpoint,\n"
26173 "                                     va_list args);\n"
26174 "\n"
26175 msgstr ""
26176
26177 #. type: textblock
26178 #: ../src/guestfs-actions.pod:927
26179 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
26180 msgstr ""
26181
26182 #. type: =head2
26183 #: ../src/guestfs-actions.pod:931
26184 msgid "guestfs_btrfs_filesystem_resize_argv"
26185 msgstr ""
26186
26187 #. type: verbatim
26188 #: ../src/guestfs-actions.pod:933
26189 #, no-wrap
26190 msgid ""
26191 " int\n"
26192 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
26193 "                                       const char *mountpoint,\n"
26194 "                                       const struct "
26195 "guestfs_btrfs_filesystem_resize_argv *optargs);\n"
26196 "\n"
26197 msgstr ""
26198
26199 #. type: textblock
26200 #: ../src/guestfs-actions.pod:938
26201 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
26202 msgstr ""
26203
26204 #. type: =head2
26205 #: ../src/guestfs-actions.pod:942
26206 msgid "guestfs_case_sensitive_path"
26207 msgstr ""
26208
26209 #. type: verbatim
26210 #: ../src/guestfs-actions.pod:944
26211 #, no-wrap
26212 msgid ""
26213 " char *\n"
26214 " guestfs_case_sensitive_path (guestfs_h *g,\n"
26215 "                              const char *path);\n"
26216 "\n"
26217 msgstr ""
26218
26219 #. type: textblock
26220 #: ../src/guestfs-actions.pod:970
26221 msgid ""
26222 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return "
26223 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
26224 "how the directories were originally created under Windows)."
26225 msgstr ""
26226
26227 #. type: textblock
26228 #: ../src/guestfs-actions.pod:978
26229 msgid "See also C<guestfs_realpath>."
26230 msgstr ""
26231
26232 #. type: textblock
26233 #: ../src/guestfs-actions.pod:983 ../src/guestfs-actions.pod:8144
26234 msgid "(Added in 1.0.75)"
26235 msgstr ""
26236
26237 #. type: =head2
26238 #: ../src/guestfs-actions.pod:985
26239 msgid "guestfs_cat"
26240 msgstr ""
26241
26242 #. type: verbatim
26243 #: ../src/guestfs-actions.pod:987
26244 #, no-wrap
26245 msgid ""
26246 " char *\n"
26247 " guestfs_cat (guestfs_h *g,\n"
26248 "              const char *path);\n"
26249 "\n"
26250 msgstr ""
26251
26252 #. type: textblock
26253 #: ../src/guestfs-actions.pod:993
26254 msgid ""
26255 "Note that this function cannot correctly handle binary files (specifically, "
26256 "files containing C<\\0> character which is treated as end of string).  For "
26257 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
26258 "functions which have a more complex interface."
26259 msgstr ""
26260
26261 #. type: textblock
26262 #: ../src/guestfs-actions.pod:1004 ../src/guestfs-actions.pod:4211 ../src/guestfs-actions.pod:4306 ../src/guestfs-actions.pod:4323 ../src/guestfs-actions.pod:4411 ../src/guestfs-actions.pod:4810 ../src/guestfs-actions.pod:4824 ../src/guestfs-actions.pod:6351 ../src/guestfs-actions.pod:6365 ../src/guestfs-actions.pod:8297 ../src/guestfs-actions.pod:8311
26263 msgid "(Added in 0.4)"
26264 msgstr ""
26265
26266 #. type: =head2
26267 #: ../src/guestfs-actions.pod:1006
26268 msgid "guestfs_checksum"
26269 msgstr ""
26270
26271 #. type: verbatim
26272 #: ../src/guestfs-actions.pod:1008
26273 #, no-wrap
26274 msgid ""
26275 " char *\n"
26276 " guestfs_checksum (guestfs_h *g,\n"
26277 "                   const char *csumtype,\n"
26278 "                   const char *path);\n"
26279 "\n"
26280 msgstr ""
26281
26282 #. type: textblock
26283 #: ../src/guestfs-actions.pod:1054
26284 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
26285 msgstr ""
26286
26287 #. type: textblock
26288 #: ../src/guestfs-actions.pod:1056
26289 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
26290 msgstr ""
26291
26292 #. type: textblock
26293 #: ../src/guestfs-actions.pod:1061 ../src/guestfs-actions.pod:1728 ../src/guestfs-actions.pod:2586 ../src/guestfs-actions.pod:3909 ../src/guestfs-actions.pod:3938 ../src/guestfs-actions.pod:3999 ../src/guestfs-actions.pod:4026 ../src/guestfs-actions.pod:8000
26294 msgid "(Added in 1.0.2)"
26295 msgstr ""
26296
26297 #. type: =head2
26298 #: ../src/guestfs-actions.pod:1063
26299 msgid "guestfs_checksum_device"
26300 msgstr ""
26301
26302 #. type: verbatim
26303 #: ../src/guestfs-actions.pod:1065
26304 #, no-wrap
26305 msgid ""
26306 " char *\n"
26307 " guestfs_checksum_device (guestfs_h *g,\n"
26308 "                          const char *csumtype,\n"
26309 "                          const char *device);\n"
26310 "\n"
26311 msgstr ""
26312
26313 #. type: textblock
26314 #: ../src/guestfs-actions.pod:1070
26315 msgid ""
26316 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
26317 "device named C<device>.  For the types of checksums supported see the "
26318 "C<guestfs_checksum> command."
26319 msgstr ""
26320
26321 #. type: textblock
26322 #: ../src/guestfs-actions.pod:1077 ../src/guestfs-actions.pod:5783 ../src/guestfs-actions.pod:5918 ../src/guestfs-actions.pod:5952 ../src/guestfs-actions.pod:5970 ../src/guestfs-actions.pod:6152 ../src/guestfs-actions.pod:7909 ../src/guestfs-actions.pod:7923 ../src/guestfs-actions.pod:8323
26323 msgid "(Added in 1.3.2)"
26324 msgstr ""
26325
26326 #. type: =head2
26327 #: ../src/guestfs-actions.pod:1079
26328 msgid "guestfs_checksums_out"
26329 msgstr ""
26330
26331 #. type: verbatim
26332 #: ../src/guestfs-actions.pod:1081
26333 #, no-wrap
26334 msgid ""
26335 " int\n"
26336 " guestfs_checksums_out (guestfs_h *g,\n"
26337 "                        const char *csumtype,\n"
26338 "                        const char *directory,\n"
26339 "                        const char *sumsfile);\n"
26340 "\n"
26341 msgstr ""
26342
26343 #. type: textblock
26344 #: ../src/guestfs-actions.pod:1101
26345 msgid "(Added in 1.3.7)"
26346 msgstr ""
26347
26348 #. type: =head2
26349 #: ../src/guestfs-actions.pod:1103
26350 msgid "guestfs_chmod"
26351 msgstr ""
26352
26353 #. type: verbatim
26354 #: ../src/guestfs-actions.pod:1105
26355 #, no-wrap
26356 msgid ""
26357 " int\n"
26358 " guestfs_chmod (guestfs_h *g,\n"
26359 "                int mode,\n"
26360 "                const char *path);\n"
26361 "\n"
26362 msgstr ""
26363
26364 #. type: =head2
26365 #: ../src/guestfs-actions.pod:1123
26366 msgid "guestfs_chown"
26367 msgstr ""
26368
26369 #. type: verbatim
26370 #: ../src/guestfs-actions.pod:1125
26371 #, no-wrap
26372 msgid ""
26373 " int\n"
26374 " guestfs_chown (guestfs_h *g,\n"
26375 "                int owner,\n"
26376 "                int group,\n"
26377 "                const char *path);\n"
26378 "\n"
26379 msgstr ""
26380
26381 #. type: =head2
26382 #: ../src/guestfs-actions.pod:1141
26383 msgid "guestfs_command"
26384 msgstr ""
26385
26386 #. type: verbatim
26387 #: ../src/guestfs-actions.pod:1143
26388 #, no-wrap
26389 msgid ""
26390 " char *\n"
26391 " guestfs_command (guestfs_h *g,\n"
26392 "                  char *const *arguments);\n"
26393 "\n"
26394 msgstr ""
26395
26396 #. type: textblock
26397 #: ../src/guestfs-actions.pod:1152
26398 msgid ""
26399 "The single parameter is an argv-style list of arguments.  The first element "
26400 "is the name of the program to run.  Subsequent elements are parameters.  The "
26401 "list must be non-empty (ie. must contain a program name).  Note that the "
26402 "command runs directly, and is I<not> invoked via the shell (see "
26403 "C<guestfs_sh>)."
26404 msgstr ""
26405
26406 #. type: textblock
26407 #: ../src/guestfs-actions.pod:1183 ../src/guestfs-actions.pod:1203 ../src/guestfs-actions.pod:2027
26408 msgid "(Added in 0.9.1)"
26409 msgstr ""
26410
26411 #. type: =head2
26412 #: ../src/guestfs-actions.pod:1185
26413 msgid "guestfs_command_lines"
26414 msgstr ""
26415
26416 #. type: verbatim
26417 #: ../src/guestfs-actions.pod:1187
26418 #, no-wrap
26419 msgid ""
26420 " char **\n"
26421 " guestfs_command_lines (guestfs_h *g,\n"
26422 "                        char *const *arguments);\n"
26423 "\n"
26424 msgstr ""
26425
26426 #. type: textblock
26427 #: ../src/guestfs-actions.pod:1191
26428 msgid ""
26429 "This is the same as C<guestfs_command>, but splits the result into a list of "
26430 "lines."
26431 msgstr ""
26432
26433 #. type: textblock
26434 #: ../src/guestfs-actions.pod:1194
26435 msgid "See also: C<guestfs_sh_lines>"
26436 msgstr ""
26437
26438 #. type: =head2
26439 #: ../src/guestfs-actions.pod:1205
26440 msgid "guestfs_compress_device_out"
26441 msgstr ""
26442
26443 #. type: verbatim
26444 #: ../src/guestfs-actions.pod:1207
26445 #, no-wrap
26446 msgid ""
26447 " int\n"
26448 " guestfs_compress_device_out (guestfs_h *g,\n"
26449 "                              const char *ctype,\n"
26450 "                              const char *device,\n"
26451 "                              const char *zdevice,\n"
26452 "                              ...);\n"
26453 "\n"
26454 msgstr ""
26455
26456 #. type: verbatim
26457 #: ../src/guestfs-actions.pod:1219
26458 #, no-wrap
26459 msgid ""
26460 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
26461 "\n"
26462 msgstr ""
26463
26464 #. type: textblock
26465 #: ../src/guestfs-actions.pod:1224
26466 msgid ""
26467 "The C<ctype> and optional C<level> parameters have the same meaning as in "
26468 "C<guestfs_compress_out>."
26469 msgstr ""
26470
26471 #. type: textblock
26472 #: ../src/guestfs-actions.pod:1229 ../src/guestfs-actions.pod:1288 ../src/guestfs-actions.pod:2572 ../src/guestfs-actions.pod:7068
26473 msgid "(Added in 1.13.15)"
26474 msgstr ""
26475
26476 #. type: =head2
26477 #: ../src/guestfs-actions.pod:1231
26478 msgid "guestfs_compress_device_out_va"
26479 msgstr ""
26480
26481 #. type: verbatim
26482 #: ../src/guestfs-actions.pod:1233
26483 #, no-wrap
26484 msgid ""
26485 " int\n"
26486 " guestfs_compress_device_out_va (guestfs_h *g,\n"
26487 "                                 const char *ctype,\n"
26488 "                                 const char *device,\n"
26489 "                                 const char *zdevice,\n"
26490 "                                 va_list args);\n"
26491 "\n"
26492 msgstr ""
26493
26494 #. type: textblock
26495 #: ../src/guestfs-actions.pod:1240
26496 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
26497 msgstr ""
26498
26499 #. type: =head2
26500 #: ../src/guestfs-actions.pod:1244
26501 msgid "guestfs_compress_device_out_argv"
26502 msgstr ""
26503
26504 #. type: verbatim
26505 #: ../src/guestfs-actions.pod:1246
26506 #, no-wrap
26507 msgid ""
26508 " int\n"
26509 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
26510 "                                   const char *ctype,\n"
26511 "                                   const char *device,\n"
26512 "                                   const char *zdevice,\n"
26513 "                                   const struct "
26514 "guestfs_compress_device_out_argv *optargs);\n"
26515 "\n"
26516 msgstr ""
26517
26518 #. type: textblock
26519 #: ../src/guestfs-actions.pod:1253
26520 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
26521 msgstr ""
26522
26523 #. type: =head2
26524 #: ../src/guestfs-actions.pod:1257
26525 msgid "guestfs_compress_out"
26526 msgstr ""
26527
26528 #. type: verbatim
26529 #: ../src/guestfs-actions.pod:1259
26530 #, no-wrap
26531 msgid ""
26532 " int\n"
26533 " guestfs_compress_out (guestfs_h *g,\n"
26534 "                       const char *ctype,\n"
26535 "                       const char *file,\n"
26536 "                       const char *zfile,\n"
26537 "                       ...);\n"
26538 "\n"
26539 msgstr ""
26540
26541 #. type: verbatim
26542 #: ../src/guestfs-actions.pod:1271
26543 #, no-wrap
26544 msgid ""
26545 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
26546 "\n"
26547 msgstr ""
26548
26549 #. type: =head2
26550 #: ../src/guestfs-actions.pod:1290
26551 msgid "guestfs_compress_out_va"
26552 msgstr ""
26553
26554 #. type: verbatim
26555 #: ../src/guestfs-actions.pod:1292
26556 #, no-wrap
26557 msgid ""
26558 " int\n"
26559 " guestfs_compress_out_va (guestfs_h *g,\n"
26560 "                          const char *ctype,\n"
26561 "                          const char *file,\n"
26562 "                          const char *zfile,\n"
26563 "                          va_list args);\n"
26564 "\n"
26565 msgstr ""
26566
26567 #. type: textblock
26568 #: ../src/guestfs-actions.pod:1299
26569 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
26570 msgstr ""
26571
26572 #. type: =head2
26573 #: ../src/guestfs-actions.pod:1303
26574 msgid "guestfs_compress_out_argv"
26575 msgstr ""
26576
26577 #. type: verbatim
26578 #: ../src/guestfs-actions.pod:1305
26579 #, no-wrap
26580 msgid ""
26581 " int\n"
26582 " guestfs_compress_out_argv (guestfs_h *g,\n"
26583 "                            const char *ctype,\n"
26584 "                            const char *file,\n"
26585 "                            const char *zfile,\n"
26586 "                            const struct guestfs_compress_out_argv "
26587 "*optargs);\n"
26588 "\n"
26589 msgstr ""
26590
26591 #. type: textblock
26592 #: ../src/guestfs-actions.pod:1312
26593 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
26594 msgstr ""
26595
26596 #. type: =head2
26597 #: ../src/guestfs-actions.pod:1316
26598 msgid "guestfs_config"
26599 msgstr ""
26600
26601 #. type: verbatim
26602 #: ../src/guestfs-actions.pod:1318
26603 #, no-wrap
26604 msgid ""
26605 " int\n"
26606 " guestfs_config (guestfs_h *g,\n"
26607 "                 const char *qemuparam,\n"
26608 "                 const char *qemuvalue);\n"
26609 "\n"
26610 msgstr ""
26611
26612 #. type: =head2
26613 #: ../src/guestfs-actions.pod:1336
26614 msgid "guestfs_copy_device_to_device"
26615 msgstr ""
26616
26617 #. type: verbatim
26618 #: ../src/guestfs-actions.pod:1338
26619 #, no-wrap
26620 msgid ""
26621 " int\n"
26622 " guestfs_copy_device_to_device (guestfs_h *g,\n"
26623 "                                const char *src,\n"
26624 "                                const char *dest,\n"
26625 "                                ...);\n"
26626 "\n"
26627 msgstr ""
26628
26629 #. type: verbatim
26630 #: ../src/guestfs-actions.pod:1349
26631 #, no-wrap
26632 msgid ""
26633 " GUESTFS_COPY_DEVICE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
26634 " GUESTFS_COPY_DEVICE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
26635 " GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, int64_t size,\n"
26636 "\n"
26637 msgstr ""
26638
26639 #. type: textblock
26640 #: ../src/guestfs-actions.pod:1353
26641 msgid ""
26642 "The four calls C<guestfs_copy_device_to_device>, "
26643 "C<guestfs_copy_device_to_file>, C<guestfs_copy_file_to_device>, and "
26644 "C<guestfs_copy_file_to_file> let you copy from a source (device|file) to a "
26645 "destination (device|file)."
26646 msgstr ""
26647
26648 #. type: textblock
26649 #: ../src/guestfs-actions.pod:1374 ../src/guestfs-actions.pod:1427 ../src/guestfs-actions.pod:1480 ../src/guestfs-actions.pod:1538 ../src/guestfs-actions.pod:1592 ../src/guestfs-actions.pod:1723 ../src/guestfs-actions.pod:1754 ../src/guestfs-actions.pod:1799 ../src/guestfs-actions.pod:2176 ../src/guestfs-actions.pod:2198 ../src/guestfs-actions.pod:4109 ../src/guestfs-actions.pod:7995 ../src/guestfs-actions.pod:8029 ../src/guestfs-actions.pod:8536 ../src/guestfs-actions.pod:8559
26650 msgid ""
26651 "This long-running command can generate progress notification messages so "
26652 "that the caller can display a progress bar or indicator.  To receive these "
26653 "messages, the caller must register a progress event callback.  See "
26654 "L<guestfs(3)/GUESTFS_EVENT_PROGRESS>."
26655 msgstr ""
26656
26657 #. type: textblock
26658 #: ../src/guestfs-actions.pod:1379 ../src/guestfs-actions.pod:1432 ../src/guestfs-actions.pod:1485 ../src/guestfs-actions.pod:1543 ../src/guestfs-actions.pod:6208
26659 msgid "(Added in 1.13.25)"
26660 msgstr ""
26661
26662 #. type: =head2
26663 #: ../src/guestfs-actions.pod:1381
26664 msgid "guestfs_copy_device_to_device_va"
26665 msgstr ""
26666
26667 #. type: verbatim
26668 #: ../src/guestfs-actions.pod:1383
26669 #, no-wrap
26670 msgid ""
26671 " int\n"
26672 " guestfs_copy_device_to_device_va (guestfs_h *g,\n"
26673 "                                   const char *src,\n"
26674 "                                   const char *dest,\n"
26675 "                                   va_list args);\n"
26676 "\n"
26677 msgstr ""
26678
26679 #. type: textblock
26680 #: ../src/guestfs-actions.pod:1389
26681 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_device>."
26682 msgstr ""
26683
26684 #. type: =head2
26685 #: ../src/guestfs-actions.pod:1393
26686 msgid "guestfs_copy_device_to_device_argv"
26687 msgstr ""
26688
26689 #. type: verbatim
26690 #: ../src/guestfs-actions.pod:1395
26691 #, no-wrap
26692 msgid ""
26693 " int\n"
26694 " guestfs_copy_device_to_device_argv (guestfs_h *g,\n"
26695 "                                     const char *src,\n"
26696 "                                     const char *dest,\n"
26697 "                                     const struct "
26698 "guestfs_copy_device_to_device_argv *optargs);\n"
26699 "\n"
26700 msgstr ""
26701
26702 #. type: textblock
26703 #: ../src/guestfs-actions.pod:1401
26704 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_device>."
26705 msgstr ""
26706
26707 #. type: =head2
26708 #: ../src/guestfs-actions.pod:1405
26709 msgid "guestfs_copy_device_to_file"
26710 msgstr ""
26711
26712 #. type: verbatim
26713 #: ../src/guestfs-actions.pod:1407
26714 #, no-wrap
26715 msgid ""
26716 " int\n"
26717 " guestfs_copy_device_to_file (guestfs_h *g,\n"
26718 "                              const char *src,\n"
26719 "                              const char *dest,\n"
26720 "                              ...);\n"
26721 "\n"
26722 msgstr ""
26723
26724 #. type: verbatim
26725 #: ../src/guestfs-actions.pod:1418
26726 #, no-wrap
26727 msgid ""
26728 " GUESTFS_COPY_DEVICE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
26729 " GUESTFS_COPY_DEVICE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
26730 " GUESTFS_COPY_DEVICE_TO_FILE_SIZE, int64_t size,\n"
26731 "\n"
26732 msgstr ""
26733
26734 #. type: textblock
26735 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1475 ../src/guestfs-actions.pod:1528
26736 msgid "See C<guestfs_copy_device_to_device> for a general overview of this call."
26737 msgstr ""
26738
26739 #. type: =head2
26740 #: ../src/guestfs-actions.pod:1434
26741 msgid "guestfs_copy_device_to_file_va"
26742 msgstr ""
26743
26744 #. type: verbatim
26745 #: ../src/guestfs-actions.pod:1436
26746 #, no-wrap
26747 msgid ""
26748 " int\n"
26749 " guestfs_copy_device_to_file_va (guestfs_h *g,\n"
26750 "                                 const char *src,\n"
26751 "                                 const char *dest,\n"
26752 "                                 va_list args);\n"
26753 "\n"
26754 msgstr ""
26755
26756 #. type: textblock
26757 #: ../src/guestfs-actions.pod:1442
26758 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_file>."
26759 msgstr ""
26760
26761 #. type: =head2
26762 #: ../src/guestfs-actions.pod:1446
26763 msgid "guestfs_copy_device_to_file_argv"
26764 msgstr ""
26765
26766 #. type: verbatim
26767 #: ../src/guestfs-actions.pod:1448
26768 #, no-wrap
26769 msgid ""
26770 " int\n"
26771 " guestfs_copy_device_to_file_argv (guestfs_h *g,\n"
26772 "                                   const char *src,\n"
26773 "                                   const char *dest,\n"
26774 "                                   const struct "
26775 "guestfs_copy_device_to_file_argv *optargs);\n"
26776 "\n"
26777 msgstr ""
26778
26779 #. type: textblock
26780 #: ../src/guestfs-actions.pod:1454
26781 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_file>."
26782 msgstr ""
26783
26784 #. type: =head2
26785 #: ../src/guestfs-actions.pod:1458
26786 msgid "guestfs_copy_file_to_device"
26787 msgstr ""
26788
26789 #. type: verbatim
26790 #: ../src/guestfs-actions.pod:1460
26791 #, no-wrap
26792 msgid ""
26793 " int\n"
26794 " guestfs_copy_file_to_device (guestfs_h *g,\n"
26795 "                              const char *src,\n"
26796 "                              const char *dest,\n"
26797 "                              ...);\n"
26798 "\n"
26799 msgstr ""
26800
26801 #. type: verbatim
26802 #: ../src/guestfs-actions.pod:1471
26803 #, no-wrap
26804 msgid ""
26805 " GUESTFS_COPY_FILE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
26806 " GUESTFS_COPY_FILE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
26807 " GUESTFS_COPY_FILE_TO_DEVICE_SIZE, int64_t size,\n"
26808 "\n"
26809 msgstr ""
26810
26811 #. type: =head2
26812 #: ../src/guestfs-actions.pod:1487
26813 msgid "guestfs_copy_file_to_device_va"
26814 msgstr ""
26815
26816 #. type: verbatim
26817 #: ../src/guestfs-actions.pod:1489
26818 #, no-wrap
26819 msgid ""
26820 " int\n"
26821 " guestfs_copy_file_to_device_va (guestfs_h *g,\n"
26822 "                                 const char *src,\n"
26823 "                                 const char *dest,\n"
26824 "                                 va_list args);\n"
26825 "\n"
26826 msgstr ""
26827
26828 #. type: textblock
26829 #: ../src/guestfs-actions.pod:1495
26830 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_device>."
26831 msgstr ""
26832
26833 #. type: =head2
26834 #: ../src/guestfs-actions.pod:1499
26835 msgid "guestfs_copy_file_to_device_argv"
26836 msgstr ""
26837
26838 #. type: verbatim
26839 #: ../src/guestfs-actions.pod:1501
26840 #, no-wrap
26841 msgid ""
26842 " int\n"
26843 " guestfs_copy_file_to_device_argv (guestfs_h *g,\n"
26844 "                                   const char *src,\n"
26845 "                                   const char *dest,\n"
26846 "                                   const struct "
26847 "guestfs_copy_file_to_device_argv *optargs);\n"
26848 "\n"
26849 msgstr ""
26850
26851 #. type: textblock
26852 #: ../src/guestfs-actions.pod:1507
26853 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_device>."
26854 msgstr ""
26855
26856 #. type: =head2
26857 #: ../src/guestfs-actions.pod:1511
26858 msgid "guestfs_copy_file_to_file"
26859 msgstr ""
26860
26861 #. type: verbatim
26862 #: ../src/guestfs-actions.pod:1513
26863 #, no-wrap
26864 msgid ""
26865 " int\n"
26866 " guestfs_copy_file_to_file (guestfs_h *g,\n"
26867 "                            const char *src,\n"
26868 "                            const char *dest,\n"
26869 "                            ...);\n"
26870 "\n"
26871 msgstr ""
26872
26873 #. type: verbatim
26874 #: ../src/guestfs-actions.pod:1524
26875 #, no-wrap
26876 msgid ""
26877 " GUESTFS_COPY_FILE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
26878 " GUESTFS_COPY_FILE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
26879 " GUESTFS_COPY_FILE_TO_FILE_SIZE, int64_t size,\n"
26880 "\n"
26881 msgstr ""
26882
26883 #. type: textblock
26884 #: ../src/guestfs-actions.pod:1531
26885 msgid ""
26886 "This is B<not> the function you want for copying files.  This is for copying "
26887 "blocks within existing files.  See C<guestfs_cp>, C<guestfs_cp_a> and "
26888 "C<guestfs_mv> for general file copying and moving functions."
26889 msgstr ""
26890
26891 #. type: =head2
26892 #: ../src/guestfs-actions.pod:1545
26893 msgid "guestfs_copy_file_to_file_va"
26894 msgstr ""
26895
26896 #. type: verbatim
26897 #: ../src/guestfs-actions.pod:1547
26898 #, no-wrap
26899 msgid ""
26900 " int\n"
26901 " guestfs_copy_file_to_file_va (guestfs_h *g,\n"
26902 "                               const char *src,\n"
26903 "                               const char *dest,\n"
26904 "                               va_list args);\n"
26905 "\n"
26906 msgstr ""
26907
26908 #. type: textblock
26909 #: ../src/guestfs-actions.pod:1553
26910 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_file>."
26911 msgstr ""
26912
26913 #. type: =head2
26914 #: ../src/guestfs-actions.pod:1557
26915 msgid "guestfs_copy_file_to_file_argv"
26916 msgstr ""
26917
26918 #. type: verbatim
26919 #: ../src/guestfs-actions.pod:1559
26920 #, no-wrap
26921 msgid ""
26922 " int\n"
26923 " guestfs_copy_file_to_file_argv (guestfs_h *g,\n"
26924 "                                 const char *src,\n"
26925 "                                 const char *dest,\n"
26926 "                                 const struct guestfs_copy_file_to_file_argv "
26927 "*optargs);\n"
26928 "\n"
26929 msgstr ""
26930
26931 #. type: textblock
26932 #: ../src/guestfs-actions.pod:1565
26933 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_file>."
26934 msgstr ""
26935
26936 #. type: =head2
26937 #: ../src/guestfs-actions.pod:1569
26938 msgid "guestfs_copy_size"
26939 msgstr ""
26940
26941 #. type: verbatim
26942 #: ../src/guestfs-actions.pod:1571
26943 #, no-wrap
26944 msgid ""
26945 " int\n"
26946 " guestfs_copy_size (guestfs_h *g,\n"
26947 "                    const char *src,\n"
26948 "                    const char *dest,\n"
26949 "                    int64_t size);\n"
26950 "\n"
26951 msgstr ""
26952
26953 #. type: textblock
26954 #: ../src/guestfs-actions.pod:1577 ../src/guestfs-actions.pod:1634
26955 msgid ""
26956 "I<This function is deprecated.> In new code, use the "
26957 "L</guestfs_copy_device_to_device> call instead."
26958 msgstr ""
26959
26960 #. type: textblock
26961 #: ../src/guestfs-actions.pod:1597 ../src/guestfs-actions.pod:4837 ../src/guestfs-actions.pod:6378 ../src/guestfs-actions.pod:8230 ../src/guestfs-actions.pod:8250 ../src/guestfs-actions.pod:8336
26962 msgid "(Added in 1.0.87)"
26963 msgstr ""
26964
26965 #. type: =head2
26966 #: ../src/guestfs-actions.pod:1599
26967 msgid "guestfs_cp"
26968 msgstr ""
26969
26970 #. type: verbatim
26971 #: ../src/guestfs-actions.pod:1601
26972 #, no-wrap
26973 msgid ""
26974 " int\n"
26975 " guestfs_cp (guestfs_h *g,\n"
26976 "             const char *src,\n"
26977 "             const char *dest);\n"
26978 "\n"
26979 msgstr ""
26980
26981 #. type: textblock
26982 #: ../src/guestfs-actions.pod:1611 ../src/guestfs-actions.pod:1625 ../src/guestfs-actions.pod:1705 ../src/guestfs-actions.pod:1779 ../src/guestfs-actions.pod:1893 ../src/guestfs-actions.pod:5730 ../src/guestfs-actions.pod:6222
26983 msgid "(Added in 1.0.18)"
26984 msgstr ""
26985
26986 #. type: =head2
26987 #: ../src/guestfs-actions.pod:1613
26988 msgid "guestfs_cp_a"
26989 msgstr ""
26990
26991 #. type: verbatim
26992 #: ../src/guestfs-actions.pod:1615
26993 #, no-wrap
26994 msgid ""
26995 " int\n"
26996 " guestfs_cp_a (guestfs_h *g,\n"
26997 "               const char *src,\n"
26998 "               const char *dest);\n"
26999 "\n"
27000 msgstr ""
27001
27002 #. type: =head2
27003 #: ../src/guestfs-actions.pod:1627
27004 msgid "guestfs_dd"
27005 msgstr ""
27006
27007 #. type: verbatim
27008 #: ../src/guestfs-actions.pod:1629
27009 #, no-wrap
27010 msgid ""
27011 " int\n"
27012 " guestfs_dd (guestfs_h *g,\n"
27013 "             const char *src,\n"
27014 "             const char *dest);\n"
27015 "\n"
27016 msgstr ""
27017
27018 #. type: textblock
27019 #: ../src/guestfs-actions.pod:1646
27020 msgid ""
27021 "If the destination is a device, it must be as large or larger than the "
27022 "source file or device, otherwise the copy will fail.  This command cannot do "
27023 "partial copies (see C<guestfs_copy_device_to_device>)."
27024 msgstr ""
27025
27026 #. type: =head2
27027 #: ../src/guestfs-actions.pod:1655
27028 msgid "guestfs_df"
27029 msgstr ""
27030
27031 #. type: verbatim
27032 #: ../src/guestfs-actions.pod:1657
27033 #, no-wrap
27034 msgid ""
27035 " char *\n"
27036 " guestfs_df (guestfs_h *g);\n"
27037 "\n"
27038 msgstr ""
27039
27040 #. type: textblock
27041 #: ../src/guestfs-actions.pod:1662 ../src/guestfs-actions.pod:1679
27042 msgid ""
27043 "This command is mostly useful for interactive sessions.  It is I<not> "
27044 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
27045 "from programs."
27046 msgstr ""
27047
27048 #. type: textblock
27049 #: ../src/guestfs-actions.pod:1669 ../src/guestfs-actions.pod:1686 ../src/guestfs-actions.pod:1804 ../src/guestfs-actions.pod:2811 ../src/guestfs-actions.pod:2835 ../src/guestfs-actions.pod:2903 ../src/guestfs-actions.pod:5096 ../src/guestfs-actions.pod:5630 ../src/guestfs-actions.pod:7611 ../src/guestfs-actions.pod:7635 ../src/guestfs-actions.pod:8376 ../src/guestfs-actions.pod:8389 ../src/guestfs-actions.pod:8402
27050 msgid "(Added in 1.0.54)"
27051 msgstr ""
27052
27053 #. type: =head2
27054 #: ../src/guestfs-actions.pod:1671
27055 msgid "guestfs_df_h"
27056 msgstr ""
27057
27058 #. type: verbatim
27059 #: ../src/guestfs-actions.pod:1673
27060 #, no-wrap
27061 msgid ""
27062 " char *\n"
27063 " guestfs_df_h (guestfs_h *g);\n"
27064 "\n"
27065 msgstr ""
27066
27067 #. type: =head2
27068 #: ../src/guestfs-actions.pod:1688
27069 msgid "guestfs_dmesg"
27070 msgstr ""
27071
27072 #. type: verbatim
27073 #: ../src/guestfs-actions.pod:1690
27074 #, no-wrap
27075 msgid ""
27076 " char *\n"
27077 " guestfs_dmesg (guestfs_h *g);\n"
27078 "\n"
27079 msgstr ""
27080
27081 #. type: textblock
27082 #: ../src/guestfs-actions.pod:1697
27083 msgid ""
27084 "Another way to get the same information is to enable verbose messages with "
27085 "C<guestfs_set_verbose> or by setting the environment variable "
27086 "C<LIBGUESTFS_DEBUG=1> before running the program."
27087 msgstr ""
27088
27089 #. type: =head2
27090 #: ../src/guestfs-actions.pod:1707
27091 msgid "guestfs_download"
27092 msgstr ""
27093
27094 #. type: verbatim
27095 #: ../src/guestfs-actions.pod:1709
27096 #, no-wrap
27097 msgid ""
27098 " int\n"
27099 " guestfs_download (guestfs_h *g,\n"
27100 "                   const char *remotefilename,\n"
27101 "                   const char *filename);\n"
27102 "\n"
27103 msgstr ""
27104
27105 #. type: textblock
27106 #: ../src/guestfs-actions.pod:1719
27107 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
27108 msgstr ""
27109
27110 #. type: =head2
27111 #: ../src/guestfs-actions.pod:1730
27112 msgid "guestfs_download_offset"
27113 msgstr ""
27114
27115 #. type: verbatim
27116 #: ../src/guestfs-actions.pod:1732
27117 #, no-wrap
27118 msgid ""
27119 " int\n"
27120 " guestfs_download_offset (guestfs_h *g,\n"
27121 "                          const char *remotefilename,\n"
27122 "                          const char *filename,\n"
27123 "                          int64_t offset,\n"
27124 "                          int64_t size);\n"
27125 "\n"
27126 msgstr ""
27127
27128 #. type: textblock
27129 #: ../src/guestfs-actions.pod:1745
27130 msgid ""
27131 "Note that there is no limit on the amount of data that can be downloaded "
27132 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
27133 "full amount unless an error occurs."
27134 msgstr ""
27135
27136 #. type: textblock
27137 #: ../src/guestfs-actions.pod:1750
27138 msgid "See also C<guestfs_download>, C<guestfs_pread>."
27139 msgstr ""
27140
27141 #. type: textblock
27142 #: ../src/guestfs-actions.pod:1759 ../src/guestfs-actions.pod:8034
27143 msgid "(Added in 1.5.17)"
27144 msgstr ""
27145
27146 #. type: =head2
27147 #: ../src/guestfs-actions.pod:1761
27148 msgid "guestfs_drop_caches"
27149 msgstr ""
27150
27151 #. type: verbatim
27152 #: ../src/guestfs-actions.pod:1763
27153 #, no-wrap
27154 msgid ""
27155 " int\n"
27156 " guestfs_drop_caches (guestfs_h *g,\n"
27157 "                      int whattodrop);\n"
27158 "\n"
27159 msgstr ""
27160
27161 #. type: =head2
27162 #: ../src/guestfs-actions.pod:1781
27163 msgid "guestfs_du"
27164 msgstr ""
27165
27166 #. type: verbatim
27167 #: ../src/guestfs-actions.pod:1783
27168 #, no-wrap
27169 msgid ""
27170 " int64_t\n"
27171 " guestfs_du (guestfs_h *g,\n"
27172 "             const char *path);\n"
27173 "\n"
27174 msgstr ""
27175
27176 #. type: =head2
27177 #: ../src/guestfs-actions.pod:1806
27178 msgid "guestfs_e2fsck_f"
27179 msgstr ""
27180
27181 #. type: verbatim
27182 #: ../src/guestfs-actions.pod:1808
27183 #, no-wrap
27184 msgid ""
27185 " int\n"
27186 " guestfs_e2fsck_f (guestfs_h *g,\n"
27187 "                   const char *device);\n"
27188 "\n"
27189 msgstr ""
27190
27191 #. type: textblock
27192 #: ../src/guestfs-actions.pod:1816
27193 msgid ""
27194 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
27195 "Normally you should use C<guestfs_fsck>."
27196 msgstr ""
27197
27198 #. type: textblock
27199 #: ../src/guestfs-actions.pod:1821
27200 msgid "(Added in 1.0.29)"
27201 msgstr ""
27202
27203 #. type: =head2
27204 #: ../src/guestfs-actions.pod:1823
27205 msgid "guestfs_echo_daemon"
27206 msgstr ""
27207
27208 #. type: verbatim
27209 #: ../src/guestfs-actions.pod:1825
27210 #, no-wrap
27211 msgid ""
27212 " char *\n"
27213 " guestfs_echo_daemon (guestfs_h *g,\n"
27214 "                      char *const *words);\n"
27215 "\n"
27216 msgstr ""
27217
27218 #. type: textblock
27219 #: ../src/guestfs-actions.pod:1834
27220 msgid "See also C<guestfs_ping_daemon>."
27221 msgstr ""
27222
27223 #. type: textblock
27224 #: ../src/guestfs-actions.pod:1839 ../src/guestfs-actions.pod:2597 ../src/guestfs-actions.pod:7092
27225 msgid "(Added in 1.0.69)"
27226 msgstr ""
27227
27228 #. type: =head2
27229 #: ../src/guestfs-actions.pod:1841
27230 msgid "guestfs_egrep"
27231 msgstr ""
27232
27233 #. type: verbatim
27234 #: ../src/guestfs-actions.pod:1843
27235 #, no-wrap
27236 msgid ""
27237 " char **\n"
27238 " guestfs_egrep (guestfs_h *g,\n"
27239 "                const char *regex,\n"
27240 "                const char *path);\n"
27241 "\n"
27242 msgstr ""
27243
27244 #. type: textblock
27245 #: ../src/guestfs-actions.pod:1858 ../src/guestfs-actions.pod:1877 ../src/guestfs-actions.pod:1934 ../src/guestfs-actions.pod:1980 ../src/guestfs-actions.pod:1999 ../src/guestfs-actions.pod:2727 ../src/guestfs-actions.pod:2746 ../src/guestfs-actions.pod:2924 ../src/guestfs-actions.pod:2937 ../src/guestfs-actions.pod:2952 ../src/guestfs-actions.pod:2998 ../src/guestfs-actions.pod:3020 ../src/guestfs-actions.pod:3033 ../src/guestfs-actions.pod:4336 ../src/guestfs-actions.pod:4350 ../src/guestfs-actions.pod:4363 ../src/guestfs-actions.pod:4377 ../src/guestfs-actions.pod:5518 ../src/guestfs-actions.pod:6556 ../src/guestfs-actions.pod:6605 ../src/guestfs-actions.pod:7479 ../src/guestfs-actions.pod:7491 ../src/guestfs-actions.pod:7504 ../src/guestfs-actions.pod:7517 ../src/guestfs-actions.pod:7539 ../src/guestfs-actions.pod:7552 ../src/guestfs-actions.pod:7565 ../src/guestfs-actions.pod:7578 ../src/guestfs-actions.pod:8494 ../src/guestfs-actions.pod:8513 ../src/guestfs-actions.pod:8604 ../src/guestfs-actions.pod:8623 ../src/guestfs-actions.pod:8669 ../src/guestfs-actions.pod:8688
27246 msgid "(Added in 1.0.66)"
27247 msgstr ""
27248
27249 #. type: =head2
27250 #: ../src/guestfs-actions.pod:1860
27251 msgid "guestfs_egrepi"
27252 msgstr ""
27253
27254 #. type: verbatim
27255 #: ../src/guestfs-actions.pod:1862
27256 #, no-wrap
27257 msgid ""
27258 " char **\n"
27259 " guestfs_egrepi (guestfs_h *g,\n"
27260 "                 const char *regex,\n"
27261 "                 const char *path);\n"
27262 "\n"
27263 msgstr ""
27264
27265 #. type: =head2
27266 #: ../src/guestfs-actions.pod:1879
27267 msgid "guestfs_equal"
27268 msgstr ""
27269
27270 #. type: verbatim
27271 #: ../src/guestfs-actions.pod:1881
27272 #, no-wrap
27273 msgid ""
27274 " int\n"
27275 " guestfs_equal (guestfs_h *g,\n"
27276 "                const char *file1,\n"
27277 "                const char *file2);\n"
27278 "\n"
27279 msgstr ""
27280
27281 #. type: =head2
27282 #: ../src/guestfs-actions.pod:1895
27283 msgid "guestfs_exists"
27284 msgstr ""
27285
27286 #. type: verbatim
27287 #: ../src/guestfs-actions.pod:1897
27288 #, no-wrap
27289 msgid ""
27290 " int\n"
27291 " guestfs_exists (guestfs_h *g,\n"
27292 "                 const char *path);\n"
27293 "\n"
27294 msgstr ""
27295
27296 #. type: textblock
27297 #: ../src/guestfs-actions.pod:1904
27298 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
27299 msgstr ""
27300
27301 #. type: =head2
27302 #: ../src/guestfs-actions.pod:1910
27303 msgid "guestfs_fallocate"
27304 msgstr ""
27305
27306 #. type: verbatim
27307 #: ../src/guestfs-actions.pod:1912
27308 #, no-wrap
27309 msgid ""
27310 " int\n"
27311 " guestfs_fallocate (guestfs_h *g,\n"
27312 "                    const char *path,\n"
27313 "                    int len);\n"
27314 "\n"
27315 msgstr ""
27316
27317 #. type: textblock
27318 #: ../src/guestfs-actions.pod:1917
27319 msgid ""
27320 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
27321 "call instead."
27322 msgstr ""
27323
27324 #. type: =head2
27325 #: ../src/guestfs-actions.pod:1936
27326 msgid "guestfs_fallocate64"
27327 msgstr ""
27328
27329 #. type: verbatim
27330 #: ../src/guestfs-actions.pod:1938
27331 #, no-wrap
27332 msgid ""
27333 " int\n"
27334 " guestfs_fallocate64 (guestfs_h *g,\n"
27335 "                      const char *path,\n"
27336 "                      int64_t len);\n"
27337 "\n"
27338 msgstr ""
27339
27340 #. type: textblock
27341 #: ../src/guestfs-actions.pod:1947
27342 msgid ""
27343 "Note that this call allocates disk blocks for the file.  To create a sparse "
27344 "file use C<guestfs_truncate_size> instead."
27345 msgstr ""
27346
27347 #. type: textblock
27348 #: ../src/guestfs-actions.pod:1950
27349 msgid ""
27350 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
27351 "oversight it only allowed 30 bit lengths to be specified, effectively "
27352 "limiting the maximum size of files created through that call to 1GB."
27353 msgstr ""
27354
27355 #. type: textblock
27356 #: ../src/guestfs-actions.pod:1961
27357 msgid "(Added in 1.3.17)"
27358 msgstr ""
27359
27360 #. type: =head2
27361 #: ../src/guestfs-actions.pod:1963
27362 msgid "guestfs_fgrep"
27363 msgstr ""
27364
27365 #. type: verbatim
27366 #: ../src/guestfs-actions.pod:1965
27367 #, no-wrap
27368 msgid ""
27369 " char **\n"
27370 " guestfs_fgrep (guestfs_h *g,\n"
27371 "                const char *pattern,\n"
27372 "                const char *path);\n"
27373 "\n"
27374 msgstr ""
27375
27376 #. type: =head2
27377 #: ../src/guestfs-actions.pod:1982
27378 msgid "guestfs_fgrepi"
27379 msgstr ""
27380
27381 #. type: verbatim
27382 #: ../src/guestfs-actions.pod:1984
27383 #, no-wrap
27384 msgid ""
27385 " char **\n"
27386 " guestfs_fgrepi (guestfs_h *g,\n"
27387 "                 const char *pattern,\n"
27388 "                 const char *path);\n"
27389 "\n"
27390 msgstr ""
27391
27392 #. type: =head2
27393 #: ../src/guestfs-actions.pod:2001
27394 msgid "guestfs_file"
27395 msgstr ""
27396
27397 #. type: verbatim
27398 #: ../src/guestfs-actions.pod:2003
27399 #, no-wrap
27400 msgid ""
27401 " char *\n"
27402 " guestfs_file (guestfs_h *g,\n"
27403 "               const char *path);\n"
27404 "\n"
27405 msgstr ""
27406
27407 #. type: textblock
27408 #: ../src/guestfs-actions.pod:2021
27409 msgid ""
27410 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
27411 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
27412 msgstr ""
27413
27414 #. type: =head2
27415 #: ../src/guestfs-actions.pod:2029
27416 msgid "guestfs_file_architecture"
27417 msgstr ""
27418
27419 #. type: verbatim
27420 #: ../src/guestfs-actions.pod:2031
27421 #, no-wrap
27422 msgid ""
27423 " char *\n"
27424 " guestfs_file_architecture (guestfs_h *g,\n"
27425 "                            const char *filename);\n"
27426 "\n"
27427 msgstr ""
27428
27429 #. type: textblock
27430 #: ../src/guestfs-actions.pod:2139 ../src/guestfs-actions.pod:2302 ../src/guestfs-actions.pod:2319 ../src/guestfs-actions.pod:3053 ../src/guestfs-actions.pod:3155 ../src/guestfs-actions.pod:3221 ../src/guestfs-actions.pod:3408 ../src/guestfs-actions.pod:3426 ../src/guestfs-actions.pod:3466 ../src/guestfs-actions.pod:3542 ../src/guestfs-actions.pod:3643 ../src/guestfs-actions.pod:3880 ../src/guestfs-actions.pod:4012
27431 msgid "(Added in 1.5.3)"
27432 msgstr ""
27433
27434 #. type: =head2
27435 #: ../src/guestfs-actions.pod:2141
27436 msgid "guestfs_filesize"
27437 msgstr ""
27438
27439 #. type: verbatim
27440 #: ../src/guestfs-actions.pod:2143
27441 #, no-wrap
27442 msgid ""
27443 " int64_t\n"
27444 " guestfs_filesize (guestfs_h *g,\n"
27445 "                   const char *file);\n"
27446 "\n"
27447 msgstr ""
27448
27449 #. type: textblock
27450 #: ../src/guestfs-actions.pod:2149
27451 msgid ""
27452 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
27453 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
27454 "devices, use C<guestfs_blockdev_getsize64>."
27455 msgstr ""
27456
27457 #. type: textblock
27458 #: ../src/guestfs-actions.pod:2155
27459 msgid "(Added in 1.0.82)"
27460 msgstr ""
27461
27462 #. type: =head2
27463 #: ../src/guestfs-actions.pod:2157
27464 msgid "guestfs_fill"
27465 msgstr ""
27466
27467 #. type: verbatim
27468 #: ../src/guestfs-actions.pod:2159
27469 #, no-wrap
27470 msgid ""
27471 " int\n"
27472 " guestfs_fill (guestfs_h *g,\n"
27473 "               int c,\n"
27474 "               int len,\n"
27475 "               const char *path);\n"
27476 "\n"
27477 msgstr ""
27478
27479 #. type: textblock
27480 #: ../src/guestfs-actions.pod:2169
27481 msgid ""
27482 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
27483 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
27484 "bytes use C<guestfs_fill_pattern>."
27485 msgstr ""
27486
27487 #. type: textblock
27488 #: ../src/guestfs-actions.pod:2181
27489 msgid "(Added in 1.0.79)"
27490 msgstr ""
27491
27492 #. type: =head2
27493 #: ../src/guestfs-actions.pod:2183
27494 msgid "guestfs_fill_pattern"
27495 msgstr ""
27496
27497 #. type: verbatim
27498 #: ../src/guestfs-actions.pod:2185
27499 #, no-wrap
27500 msgid ""
27501 " int\n"
27502 " guestfs_fill_pattern (guestfs_h *g,\n"
27503 "                       const char *pattern,\n"
27504 "                       int len,\n"
27505 "                       const char *path);\n"
27506 "\n"
27507 msgstr ""
27508
27509 #. type: textblock
27510 #: ../src/guestfs-actions.pod:2191
27511 msgid ""
27512 "This function is like C<guestfs_fill> except that it creates a new file of "
27513 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
27514 "pattern is truncated if necessary to ensure the length of the file is "
27515 "exactly C<len> bytes."
27516 msgstr ""
27517
27518 #. type: textblock
27519 #: ../src/guestfs-actions.pod:2203
27520 msgid "(Added in 1.3.12)"
27521 msgstr ""
27522
27523 #. type: =head2
27524 #: ../src/guestfs-actions.pod:2205
27525 msgid "guestfs_find"
27526 msgstr ""
27527
27528 #. type: verbatim
27529 #: ../src/guestfs-actions.pod:2207
27530 #, no-wrap
27531 msgid ""
27532 " char **\n"
27533 " guestfs_find (guestfs_h *g,\n"
27534 "               const char *directory);\n"
27535 "\n"
27536 msgstr ""
27537
27538 #. type: textblock
27539 #: ../src/guestfs-actions.pod:2223
27540 msgid "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
27541 msgstr ""
27542
27543 #. type: textblock
27544 #: ../src/guestfs-actions.pod:2236
27545 msgid "See also C<guestfs_find0>."
27546 msgstr ""
27547
27548 #. type: textblock
27549 #: ../src/guestfs-actions.pod:2245 ../src/guestfs-actions.pod:4774 ../src/guestfs-actions.pod:6640
27550 msgid "(Added in 1.0.27)"
27551 msgstr ""
27552
27553 #. type: =head2
27554 #: ../src/guestfs-actions.pod:2247
27555 msgid "guestfs_find0"
27556 msgstr ""
27557
27558 #. type: verbatim
27559 #: ../src/guestfs-actions.pod:2249
27560 #, no-wrap
27561 msgid ""
27562 " int\n"
27563 " guestfs_find0 (guestfs_h *g,\n"
27564 "                const char *directory,\n"
27565 "                const char *files);\n"
27566 "\n"
27567 msgstr ""
27568
27569 #. type: textblock
27570 #: ../src/guestfs-actions.pod:2258
27571 msgid ""
27572 "This command works the same way as C<guestfs_find> with the following "
27573 "exceptions:"
27574 msgstr ""
27575
27576 #. type: textblock
27577 #: ../src/guestfs-actions.pod:2285
27578 msgid "(Added in 1.0.74)"
27579 msgstr ""
27580
27581 #. type: =head2
27582 #: ../src/guestfs-actions.pod:2287
27583 msgid "guestfs_findfs_label"
27584 msgstr ""
27585
27586 #. type: verbatim
27587 #: ../src/guestfs-actions.pod:2289
27588 #, no-wrap
27589 msgid ""
27590 " char *\n"
27591 " guestfs_findfs_label (guestfs_h *g,\n"
27592 "                       const char *label);\n"
27593 "\n"
27594 msgstr ""
27595
27596 #. type: textblock
27597 #: ../src/guestfs-actions.pod:2297
27598 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
27599 msgstr ""
27600
27601 #. type: =head2
27602 #: ../src/guestfs-actions.pod:2304
27603 msgid "guestfs_findfs_uuid"
27604 msgstr ""
27605
27606 #. type: verbatim
27607 #: ../src/guestfs-actions.pod:2306
27608 #, no-wrap
27609 msgid ""
27610 " char *\n"
27611 " guestfs_findfs_uuid (guestfs_h *g,\n"
27612 "                      const char *uuid);\n"
27613 "\n"
27614 msgstr ""
27615
27616 #. type: textblock
27617 #: ../src/guestfs-actions.pod:2314
27618 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
27619 msgstr ""
27620
27621 #. type: =head2
27622 #: ../src/guestfs-actions.pod:2321
27623 msgid "guestfs_fsck"
27624 msgstr ""
27625
27626 #. type: verbatim
27627 #: ../src/guestfs-actions.pod:2323
27628 #, no-wrap
27629 msgid ""
27630 " int\n"
27631 " guestfs_fsck (guestfs_h *g,\n"
27632 "               const char *fstype,\n"
27633 "               const char *device);\n"
27634 "\n"
27635 msgstr ""
27636
27637 #. type: textblock
27638 #: ../src/guestfs-actions.pod:2358 ../src/guestfs-actions.pod:8541
27639 msgid "(Added in 1.0.16)"
27640 msgstr ""
27641
27642 #. type: =head2
27643 #: ../src/guestfs-actions.pod:2360
27644 msgid "guestfs_get_append"
27645 msgstr ""
27646
27647 #. type: verbatim
27648 #: ../src/guestfs-actions.pod:2362
27649 #, no-wrap
27650 msgid ""
27651 " const char *\n"
27652 " guestfs_get_append (guestfs_h *g);\n"
27653 "\n"
27654 msgstr ""
27655
27656 #. type: textblock
27657 #: ../src/guestfs-actions.pod:2370
27658 msgid ""
27659 "This function returns a string which may be NULL.  There is no way to return "
27660 "an error from this function.  The string is owned by the guest handle and "
27661 "must I<not> be freed."
27662 msgstr ""
27663
27664 #. type: textblock
27665 #: ../src/guestfs-actions.pod:2374 ../src/guestfs-actions.pod:6318 ../src/guestfs-actions.pod:6797 ../src/guestfs-actions.pod:7246 ../src/guestfs-actions.pod:7265 ../src/guestfs-actions.pod:7281 ../src/guestfs-actions.pod:7305 ../src/guestfs-actions.pod:8181 ../src/guestfs-actions.pod:8196 ../src/guestfs-actions.pod:8585
27666 msgid "(Added in 1.0.26)"
27667 msgstr ""
27668
27669 #. type: =head2
27670 #: ../src/guestfs-actions.pod:2376
27671 msgid "guestfs_get_attach_method"
27672 msgstr ""
27673
27674 #. type: verbatim
27675 #: ../src/guestfs-actions.pod:2378
27676 #, no-wrap
27677 msgid ""
27678 " char *\n"
27679 " guestfs_get_attach_method (guestfs_h *g);\n"
27680 "\n"
27681 msgstr ""
27682
27683 #. type: textblock
27684 #: ../src/guestfs-actions.pod:2381
27685 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
27686 msgstr ""
27687
27688 #. type: textblock
27689 #: ../src/guestfs-actions.pod:2386 ../src/guestfs-actions.pod:6827
27690 msgid "(Added in 1.9.8)"
27691 msgstr ""
27692
27693 #. type: =head2
27694 #: ../src/guestfs-actions.pod:2388
27695 msgid "guestfs_get_autosync"
27696 msgstr ""
27697
27698 #. type: verbatim
27699 #: ../src/guestfs-actions.pod:2390
27700 #, no-wrap
27701 msgid ""
27702 " int\n"
27703 " guestfs_get_autosync (guestfs_h *g);\n"
27704 "\n"
27705 msgstr ""
27706
27707 #. type: =head2
27708 #: ../src/guestfs-actions.pod:2399
27709 msgid "guestfs_get_direct"
27710 msgstr ""
27711
27712 #. type: verbatim
27713 #: ../src/guestfs-actions.pod:2401
27714 #, no-wrap
27715 msgid ""
27716 " int\n"
27717 " guestfs_get_direct (guestfs_h *g);\n"
27718 "\n"
27719 msgstr ""
27720
27721 #. type: textblock
27722 #: ../src/guestfs-actions.pod:2408 ../src/guestfs-actions.pod:6868
27723 msgid "(Added in 1.0.72)"
27724 msgstr ""
27725
27726 #. type: =head2
27727 #: ../src/guestfs-actions.pod:2410
27728 msgid "guestfs_get_e2label"
27729 msgstr ""
27730
27731 #. type: verbatim
27732 #: ../src/guestfs-actions.pod:2412
27733 #, no-wrap
27734 msgid ""
27735 " char *\n"
27736 " guestfs_get_e2label (guestfs_h *g,\n"
27737 "                      const char *device);\n"
27738 "\n"
27739 msgstr ""
27740
27741 #. type: textblock
27742 #: ../src/guestfs-actions.pod:2416
27743 msgid ""
27744 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
27745 "call instead."
27746 msgstr ""
27747
27748 #. type: textblock
27749 #: ../src/guestfs-actions.pod:2429 ../src/guestfs-actions.pod:2450 ../src/guestfs-actions.pod:6886 ../src/guestfs-actions.pod:6905
27750 msgid "(Added in 1.0.15)"
27751 msgstr ""
27752
27753 #. type: =head2
27754 #: ../src/guestfs-actions.pod:2431
27755 msgid "guestfs_get_e2uuid"
27756 msgstr ""
27757
27758 #. type: verbatim
27759 #: ../src/guestfs-actions.pod:2433
27760 #, no-wrap
27761 msgid ""
27762 " char *\n"
27763 " guestfs_get_e2uuid (guestfs_h *g,\n"
27764 "                     const char *device);\n"
27765 "\n"
27766 msgstr ""
27767
27768 #. type: textblock
27769 #: ../src/guestfs-actions.pod:2437
27770 msgid ""
27771 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
27772 "call instead."
27773 msgstr ""
27774
27775 #. type: =head2
27776 #: ../src/guestfs-actions.pod:2452
27777 msgid "guestfs_get_memsize"
27778 msgstr ""
27779
27780 #. type: verbatim
27781 #: ../src/guestfs-actions.pod:2454
27782 #, no-wrap
27783 msgid ""
27784 " int\n"
27785 " guestfs_get_memsize (guestfs_h *g);\n"
27786 "\n"
27787 msgstr ""
27788
27789 #. type: textblock
27790 #: ../src/guestfs-actions.pod:2460
27791 msgid ""
27792 "If C<guestfs_set_memsize> was not called on this handle, and if "
27793 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
27794 "value for memsize."
27795 msgstr ""
27796
27797 #. type: textblock
27798 #: ../src/guestfs-actions.pod:2469 ../src/guestfs-actions.pod:5214 ../src/guestfs-actions.pod:5423 ../src/guestfs-actions.pod:5442 ../src/guestfs-actions.pod:5461 ../src/guestfs-actions.pod:5473 ../src/guestfs-actions.pod:5490 ../src/guestfs-actions.pod:5503 ../src/guestfs-actions.pod:6543 ../src/guestfs-actions.pod:6926 ../src/guestfs-actions.pod:7216 ../src/guestfs-actions.pod:7950
27799 msgid "(Added in 1.0.55)"
27800 msgstr ""
27801
27802 #. type: =head2
27803 #: ../src/guestfs-actions.pod:2471
27804 msgid "guestfs_get_network"
27805 msgstr ""
27806
27807 #. type: verbatim
27808 #: ../src/guestfs-actions.pod:2473
27809 #, no-wrap
27810 msgid ""
27811 " int\n"
27812 " guestfs_get_network (guestfs_h *g);\n"
27813 "\n"
27814 msgstr ""
27815
27816 #. type: textblock
27817 #: ../src/guestfs-actions.pod:2480 ../src/guestfs-actions.pod:6945
27818 msgid "(Added in 1.5.4)"
27819 msgstr ""
27820
27821 #. type: =head2
27822 #: ../src/guestfs-actions.pod:2482
27823 msgid "guestfs_get_path"
27824 msgstr ""
27825
27826 #. type: verbatim
27827 #: ../src/guestfs-actions.pod:2484
27828 #, no-wrap
27829 msgid ""
27830 " const char *\n"
27831 " guestfs_get_path (guestfs_h *g);\n"
27832 "\n"
27833 msgstr ""
27834
27835 #. type: textblock
27836 #: ../src/guestfs-actions.pod:2492 ../src/guestfs-actions.pod:2532
27837 msgid ""
27838 "This function returns a string, or NULL on error.  The string is owned by "
27839 "the guest handle and must I<not> be freed."
27840 msgstr ""
27841
27842 #. type: =head2
27843 #: ../src/guestfs-actions.pod:2497
27844 msgid "guestfs_get_pgroup"
27845 msgstr ""
27846
27847 #. type: verbatim
27848 #: ../src/guestfs-actions.pod:2499
27849 #, no-wrap
27850 msgid ""
27851 " int\n"
27852 " guestfs_get_pgroup (guestfs_h *g);\n"
27853 "\n"
27854 msgstr ""
27855
27856 #. type: textblock
27857 #: ../src/guestfs-actions.pod:2506 ../src/guestfs-actions.pod:6981 ../src/guestfs-actions.pod:8442
27858 msgid "(Added in 1.11.18)"
27859 msgstr ""
27860
27861 #. type: =head2
27862 #: ../src/guestfs-actions.pod:2508
27863 msgid "guestfs_get_pid"
27864 msgstr ""
27865
27866 #. type: verbatim
27867 #: ../src/guestfs-actions.pod:2510
27868 #, no-wrap
27869 msgid ""
27870 " int\n"
27871 " guestfs_get_pid (guestfs_h *g);\n"
27872 "\n"
27873 msgstr ""
27874
27875 #. type: textblock
27876 #: ../src/guestfs-actions.pod:2520
27877 msgid "(Added in 1.0.56)"
27878 msgstr ""
27879
27880 #. type: =head2
27881 #: ../src/guestfs-actions.pod:2522
27882 msgid "guestfs_get_qemu"
27883 msgstr ""
27884
27885 #. type: verbatim
27886 #: ../src/guestfs-actions.pod:2524
27887 #, no-wrap
27888 msgid ""
27889 " const char *\n"
27890 " guestfs_get_qemu (guestfs_h *g);\n"
27891 "\n"
27892 msgstr ""
27893
27894 #. type: textblock
27895 #: ../src/guestfs-actions.pod:2535 ../src/guestfs-actions.pod:7009
27896 msgid "(Added in 1.0.6)"
27897 msgstr ""
27898
27899 #. type: =head2
27900 #: ../src/guestfs-actions.pod:2537
27901 msgid "guestfs_get_recovery_proc"
27902 msgstr ""
27903
27904 #. type: verbatim
27905 #: ../src/guestfs-actions.pod:2539
27906 #, no-wrap
27907 msgid ""
27908 " int\n"
27909 " guestfs_get_recovery_proc (guestfs_h *g);\n"
27910 "\n"
27911 msgstr ""
27912
27913 #. type: textblock
27914 #: ../src/guestfs-actions.pod:2546 ../src/guestfs-actions.pod:4134 ../src/guestfs-actions.pod:4478 ../src/guestfs-actions.pod:4872 ../src/guestfs-actions.pod:5053 ../src/guestfs-actions.pod:6248 ../src/guestfs-actions.pod:6591 ../src/guestfs-actions.pod:7033 ../src/guestfs-actions.pod:7731 ../src/guestfs-actions.pod:7751 ../src/guestfs-actions.pod:8065
27915 msgid "(Added in 1.0.77)"
27916 msgstr ""
27917
27918 #. type: =head2
27919 #: ../src/guestfs-actions.pod:2548
27920 msgid "guestfs_get_selinux"
27921 msgstr ""
27922
27923 #. type: verbatim
27924 #: ../src/guestfs-actions.pod:2550
27925 #, no-wrap
27926 msgid ""
27927 " int\n"
27928 " guestfs_get_selinux (guestfs_h *g);\n"
27929 "\n"
27930 msgstr ""
27931
27932 #. type: textblock
27933 #: ../src/guestfs-actions.pod:2553
27934 msgid ""
27935 "This returns the current setting of the selinux flag which is passed to the "
27936 "appliance at boot time.  See C<guestfs_set_selinux>."
27937 msgstr ""
27938
27939 #. type: textblock
27940 #: ../src/guestfs-actions.pod:2561 ../src/guestfs-actions.pod:2635 ../src/guestfs-actions.pod:7052 ../src/guestfs-actions.pod:7126
27941 msgid "(Added in 1.0.67)"
27942 msgstr ""
27943
27944 #. type: =head2
27945 #: ../src/guestfs-actions.pod:2563
27946 msgid "guestfs_get_smp"
27947 msgstr ""
27948
27949 #. type: verbatim
27950 #: ../src/guestfs-actions.pod:2565
27951 #, no-wrap
27952 msgid ""
27953 " int\n"
27954 " guestfs_get_smp (guestfs_h *g);\n"
27955 "\n"
27956 msgstr ""
27957
27958 #. type: =head2
27959 #: ../src/guestfs-actions.pod:2574
27960 msgid "guestfs_get_state"
27961 msgstr ""
27962
27963 #. type: verbatim
27964 #: ../src/guestfs-actions.pod:2576
27965 #, no-wrap
27966 msgid ""
27967 " int\n"
27968 " guestfs_get_state (guestfs_h *g);\n"
27969 "\n"
27970 msgstr ""
27971
27972 #. type: =head2
27973 #: ../src/guestfs-actions.pod:2588
27974 msgid "guestfs_get_trace"
27975 msgstr ""
27976
27977 #. type: verbatim
27978 #: ../src/guestfs-actions.pod:2590
27979 #, no-wrap
27980 msgid ""
27981 " int\n"
27982 " guestfs_get_trace (guestfs_h *g);\n"
27983 "\n"
27984 msgstr ""
27985
27986 #. type: =head2
27987 #: ../src/guestfs-actions.pod:2599
27988 msgid "guestfs_get_umask"
27989 msgstr ""
27990
27991 #. type: verbatim
27992 #: ../src/guestfs-actions.pod:2601
27993 #, no-wrap
27994 msgid ""
27995 " int\n"
27996 " guestfs_get_umask (guestfs_h *g);\n"
27997 "\n"
27998 msgstr ""
27999
28000 #. type: textblock
28001 #: ../src/guestfs-actions.pod:2604
28002 msgid ""
28003 "Return the current umask.  By default the umask is C<022> unless it has been "
28004 "set by calling C<guestfs_umask>."
28005 msgstr ""
28006
28007 #. type: =head2
28008 #: ../src/guestfs-actions.pod:2611
28009 msgid "guestfs_get_verbose"
28010 msgstr ""
28011
28012 #. type: verbatim
28013 #: ../src/guestfs-actions.pod:2613
28014 #, no-wrap
28015 msgid ""
28016 " int\n"
28017 " guestfs_get_verbose (guestfs_h *g);\n"
28018 "\n"
28019 msgstr ""
28020
28021 #. type: =head2
28022 #: ../src/guestfs-actions.pod:2622
28023 msgid "guestfs_getcon"
28024 msgstr ""
28025
28026 #. type: verbatim
28027 #: ../src/guestfs-actions.pod:2624
28028 #, no-wrap
28029 msgid ""
28030 " char *\n"
28031 " guestfs_getcon (guestfs_h *g);\n"
28032 "\n"
28033 msgstr ""
28034
28035 #. type: textblock
28036 #: ../src/guestfs-actions.pod:2629
28037 msgid "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
28038 msgstr ""
28039
28040 #. type: =head2
28041 #: ../src/guestfs-actions.pod:2637
28042 msgid "guestfs_getxattr"
28043 msgstr ""
28044
28045 #. type: verbatim
28046 #: ../src/guestfs-actions.pod:2639
28047 #, no-wrap
28048 msgid ""
28049 " char *\n"
28050 " guestfs_getxattr (guestfs_h *g,\n"
28051 "                   const char *path,\n"
28052 "                   const char *name,\n"
28053 "                   size_t *size_r);\n"
28054 "\n"
28055 msgstr ""
28056
28057 #. type: textblock
28058 #: ../src/guestfs-actions.pod:2645
28059 msgid ""
28060 "Get a single extended attribute from file C<path> named C<name>.  This call "
28061 "follows symlinks.  If you want to lookup an extended attribute for the "
28062 "symlink itself, use C<guestfs_lgetxattr>."
28063 msgstr ""
28064
28065 #. type: textblock
28066 #: ../src/guestfs-actions.pod:2649 ../src/guestfs-actions.pod:4148
28067 msgid ""
28068 "Normally it is better to get all extended attributes from a file in one go "
28069 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
28070 "implementations are buggy and do not provide a way to list out attributes.  "
28071 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
28072 "extended attributes you want in advance and call this function."
28073 msgstr ""
28074
28075 #. type: textblock
28076 #: ../src/guestfs-actions.pod:2659
28077 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
28078 msgstr ""
28079
28080 #. type: textblock
28081 #: ../src/guestfs-actions.pod:2661 ../src/guestfs-actions.pod:2874 ../src/guestfs-actions.pod:3356 ../src/guestfs-actions.pod:4160 ../src/guestfs-actions.pod:6241 ../src/guestfs-actions.pod:6267 ../src/guestfs-actions.pod:6448
28082 msgid ""
28083 "This function returns a buffer, or NULL on error.  The size of the returned "
28084 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
28085 "after use>."
28086 msgstr ""
28087
28088 #. type: textblock
28089 #: ../src/guestfs-actions.pod:2665 ../src/guestfs-actions.pod:4164
28090 msgid "(Added in 1.7.24)"
28091 msgstr ""
28092
28093 #. type: =head2
28094 #: ../src/guestfs-actions.pod:2667
28095 msgid "guestfs_getxattrs"
28096 msgstr ""
28097
28098 #. type: verbatim
28099 #: ../src/guestfs-actions.pod:2669
28100 #, no-wrap
28101 msgid ""
28102 " struct guestfs_xattr_list *\n"
28103 " guestfs_getxattrs (guestfs_h *g,\n"
28104 "                    const char *path);\n"
28105 "\n"
28106 msgstr ""
28107
28108 #. type: textblock
28109 #: ../src/guestfs-actions.pod:2679
28110 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
28111 msgstr ""
28112
28113 #. type: textblock
28114 #: ../src/guestfs-actions.pod:2681 ../src/guestfs-actions.pod:4176 ../src/guestfs-actions.pod:4868
28115 msgid ""
28116 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
28117 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
28118 msgstr ""
28119
28120 #. type: textblock
28121 #: ../src/guestfs-actions.pod:2685 ../src/guestfs-actions.pod:4180 ../src/guestfs-actions.pod:4392 ../src/guestfs-actions.pod:4428 ../src/guestfs-actions.pod:6621 ../src/guestfs-actions.pod:7145 ../src/guestfs-actions.pod:8650
28122 msgid "(Added in 1.0.59)"
28123 msgstr ""
28124
28125 #. type: =head2
28126 #: ../src/guestfs-actions.pod:2687
28127 msgid "guestfs_glob_expand"
28128 msgstr ""
28129
28130 #. type: verbatim
28131 #: ../src/guestfs-actions.pod:2689
28132 #, no-wrap
28133 msgid ""
28134 " char **\n"
28135 " guestfs_glob_expand (guestfs_h *g,\n"
28136 "                      const char *pattern);\n"
28137 "\n"
28138 msgstr ""
28139
28140 #. type: textblock
28141 #: ../src/guestfs-actions.pod:2708 ../src/guestfs-actions.pod:7329 ../src/guestfs-actions.pod:7346
28142 msgid "(Added in 1.0.50)"
28143 msgstr ""
28144
28145 #. type: =head2
28146 #: ../src/guestfs-actions.pod:2710
28147 msgid "guestfs_grep"
28148 msgstr ""
28149
28150 #. type: verbatim
28151 #: ../src/guestfs-actions.pod:2712
28152 #, no-wrap
28153 msgid ""
28154 " char **\n"
28155 " guestfs_grep (guestfs_h *g,\n"
28156 "               const char *regex,\n"
28157 "               const char *path);\n"
28158 "\n"
28159 msgstr ""
28160
28161 #. type: =head2
28162 #: ../src/guestfs-actions.pod:2729
28163 msgid "guestfs_grepi"
28164 msgstr ""
28165
28166 #. type: verbatim
28167 #: ../src/guestfs-actions.pod:2731
28168 #, no-wrap
28169 msgid ""
28170 " char **\n"
28171 " guestfs_grepi (guestfs_h *g,\n"
28172 "                const char *regex,\n"
28173 "                const char *path);\n"
28174 "\n"
28175 msgstr ""
28176
28177 #. type: =head2
28178 #: ../src/guestfs-actions.pod:2748
28179 msgid "guestfs_grub_install"
28180 msgstr ""
28181
28182 #. type: verbatim
28183 #: ../src/guestfs-actions.pod:2750
28184 #, no-wrap
28185 msgid ""
28186 " int\n"
28187 " guestfs_grub_install (guestfs_h *g,\n"
28188 "                       const char *root,\n"
28189 "                       const char *device);\n"
28190 "\n"
28191 msgstr ""
28192
28193 #. type: textblock
28194 #: ../src/guestfs-actions.pod:2793
28195 msgid "(Added in 1.0.17)"
28196 msgstr ""
28197
28198 #. type: =head2
28199 #: ../src/guestfs-actions.pod:2795
28200 msgid "guestfs_head"
28201 msgstr ""
28202
28203 #. type: verbatim
28204 #: ../src/guestfs-actions.pod:2797
28205 #, no-wrap
28206 msgid ""
28207 " char **\n"
28208 " guestfs_head (guestfs_h *g,\n"
28209 "               const char *path);\n"
28210 "\n"
28211 msgstr ""
28212
28213 #. type: =head2
28214 #: ../src/guestfs-actions.pod:2813
28215 msgid "guestfs_head_n"
28216 msgstr ""
28217
28218 #. type: verbatim
28219 #: ../src/guestfs-actions.pod:2815
28220 #, no-wrap
28221 msgid ""
28222 " char **\n"
28223 " guestfs_head_n (guestfs_h *g,\n"
28224 "                 int nrlines,\n"
28225 "                 const char *path);\n"
28226 "\n"
28227 msgstr ""
28228
28229 #. type: =head2
28230 #: ../src/guestfs-actions.pod:2837
28231 msgid "guestfs_hexdump"
28232 msgstr ""
28233
28234 #. type: verbatim
28235 #: ../src/guestfs-actions.pod:2839
28236 #, no-wrap
28237 msgid ""
28238 " char *\n"
28239 " guestfs_hexdump (guestfs_h *g,\n"
28240 "                  const char *path);\n"
28241 "\n"
28242 msgstr ""
28243
28244 #. type: textblock
28245 #: ../src/guestfs-actions.pod:2852 ../src/guestfs-actions.pod:7410 ../src/guestfs-actions.pod:7465
28246 msgid "(Added in 1.0.22)"
28247 msgstr ""
28248
28249 #. type: =head2
28250 #: ../src/guestfs-actions.pod:2854
28251 msgid "guestfs_initrd_cat"
28252 msgstr ""
28253
28254 #. type: verbatim
28255 #: ../src/guestfs-actions.pod:2856
28256 #, no-wrap
28257 msgid ""
28258 " char *\n"
28259 " guestfs_initrd_cat (guestfs_h *g,\n"
28260 "                     const char *initrdpath,\n"
28261 "                     const char *filename,\n"
28262 "                     size_t *size_r);\n"
28263 "\n"
28264 msgstr ""
28265
28266 #. type: textblock
28267 #: ../src/guestfs-actions.pod:2872
28268 msgid "See also C<guestfs_initrd_list>."
28269 msgstr ""
28270
28271 #. type: =head2
28272 #: ../src/guestfs-actions.pod:2883
28273 msgid "guestfs_initrd_list"
28274 msgstr ""
28275
28276 #. type: verbatim
28277 #: ../src/guestfs-actions.pod:2885
28278 #, no-wrap
28279 msgid ""
28280 " char **\n"
28281 " guestfs_initrd_list (guestfs_h *g,\n"
28282 "                      const char *path);\n"
28283 "\n"
28284 msgstr ""
28285
28286 #. type: =head2
28287 #: ../src/guestfs-actions.pod:2905
28288 msgid "guestfs_inotify_add_watch"
28289 msgstr ""
28290
28291 #. type: verbatim
28292 #: ../src/guestfs-actions.pod:2907
28293 #, no-wrap
28294 msgid ""
28295 " int64_t\n"
28296 " guestfs_inotify_add_watch (guestfs_h *g,\n"
28297 "                            const char *path,\n"
28298 "                            int mask);\n"
28299 "\n"
28300 msgstr ""
28301
28302 #. type: =head2
28303 #: ../src/guestfs-actions.pod:2926
28304 msgid "guestfs_inotify_close"
28305 msgstr ""
28306
28307 #. type: verbatim
28308 #: ../src/guestfs-actions.pod:2928
28309 #, no-wrap
28310 msgid ""
28311 " int\n"
28312 " guestfs_inotify_close (guestfs_h *g);\n"
28313 "\n"
28314 msgstr ""
28315
28316 #. type: =head2
28317 #: ../src/guestfs-actions.pod:2939
28318 msgid "guestfs_inotify_files"
28319 msgstr ""
28320
28321 #. type: verbatim
28322 #: ../src/guestfs-actions.pod:2941
28323 #, no-wrap
28324 msgid ""
28325 " char **\n"
28326 " guestfs_inotify_files (guestfs_h *g);\n"
28327 "\n"
28328 msgstr ""
28329
28330 #. type: textblock
28331 #: ../src/guestfs-actions.pod:2944
28332 msgid ""
28333 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
28334 "returns a list of pathnames of objects that were touched.  The returned "
28335 "pathnames are sorted and deduplicated."
28336 msgstr ""
28337
28338 #. type: =head2
28339 #: ../src/guestfs-actions.pod:2954
28340 msgid "guestfs_inotify_init"
28341 msgstr ""
28342
28343 #. type: verbatim
28344 #: ../src/guestfs-actions.pod:2956
28345 #, no-wrap
28346 msgid ""
28347 " int\n"
28348 " guestfs_inotify_init (guestfs_h *g,\n"
28349 "                       int maxevents);\n"
28350 "\n"
28351 msgstr ""
28352
28353 #. type: textblock
28354 #: ../src/guestfs-actions.pod:2964
28355 msgid ""
28356 "C<maxevents> is the maximum number of events which will be queued up between "
28357 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
28358 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
28359 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
28360 "throws away events, but records the fact that it threw them away by setting "
28361 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
28362 "C<guestfs_inotify_read>)."
28363 msgstr ""
28364
28365 #. type: textblock
28366 #: ../src/guestfs-actions.pod:2974
28367 msgid ""
28368 "Before any events are generated, you have to add some watches to the "
28369 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
28370 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
28371 msgstr ""
28372
28373 #. type: textblock
28374 #: ../src/guestfs-actions.pod:2980
28375 msgid ""
28376 "Queued up events should be read periodically by calling "
28377 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
28378 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
28379 "often enough then you risk the internal queue overflowing."
28380 msgstr ""
28381
28382 #. type: textblock
28383 #: ../src/guestfs-actions.pod:2987
28384 msgid ""
28385 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
28386 "This also removes any watches automatically."
28387 msgstr ""
28388
28389 #. type: =head2
28390 #: ../src/guestfs-actions.pod:3000
28391 msgid "guestfs_inotify_read"
28392 msgstr ""
28393
28394 #. type: verbatim
28395 #: ../src/guestfs-actions.pod:3002
28396 #, no-wrap
28397 msgid ""
28398 " struct guestfs_inotify_event_list *\n"
28399 " guestfs_inotify_read (guestfs_h *g);\n"
28400 "\n"
28401 msgstr ""
28402
28403 #. type: textblock
28404 #: ../src/guestfs-actions.pod:3016
28405 msgid ""
28406 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
28407 "there was an error.  I<The caller must call "
28408 "C<guestfs_free_inotify_event_list> after use>."
28409 msgstr ""
28410
28411 #. type: =head2
28412 #: ../src/guestfs-actions.pod:3022
28413 msgid "guestfs_inotify_rm_watch"
28414 msgstr ""
28415
28416 #. type: verbatim
28417 #: ../src/guestfs-actions.pod:3024
28418 #, no-wrap
28419 msgid ""
28420 " int\n"
28421 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
28422 "                           int wd);\n"
28423 "\n"
28424 msgstr ""
28425
28426 #. type: textblock
28427 #: ../src/guestfs-actions.pod:3028
28428 msgid ""
28429 "Remove a previously defined inotify watch.  See "
28430 "C<guestfs_inotify_add_watch>."
28431 msgstr ""
28432
28433 #. type: =head2
28434 #: ../src/guestfs-actions.pod:3035
28435 msgid "guestfs_inspect_get_arch"
28436 msgstr ""
28437
28438 #. type: verbatim
28439 #: ../src/guestfs-actions.pod:3037
28440 #, no-wrap
28441 msgid ""
28442 " char *\n"
28443 " guestfs_inspect_get_arch (guestfs_h *g,\n"
28444 "                           const char *root);\n"
28445 "\n"
28446 msgstr ""
28447
28448 #. type: textblock
28449 #: ../src/guestfs-actions.pod:3041
28450 msgid ""
28451 "This returns the architecture of the inspected operating system.  The "
28452 "possible return values are listed under C<guestfs_file_architecture>."
28453 msgstr ""
28454
28455 #. type: =head2
28456 #: ../src/guestfs-actions.pod:3055
28457 msgid "guestfs_inspect_get_distro"
28458 msgstr ""
28459
28460 #. type: verbatim
28461 #: ../src/guestfs-actions.pod:3057
28462 #, no-wrap
28463 msgid ""
28464 " char *\n"
28465 " guestfs_inspect_get_distro (guestfs_h *g,\n"
28466 "                             const char *root);\n"
28467 "\n"
28468 msgstr ""
28469
28470 #. type: =head2
28471 #: ../src/guestfs-actions.pod:3157
28472 msgid "guestfs_inspect_get_drive_mappings"
28473 msgstr ""
28474
28475 #. type: verbatim
28476 #: ../src/guestfs-actions.pod:3159
28477 #, no-wrap
28478 msgid ""
28479 " char **\n"
28480 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
28481 "                                     const char *root);\n"
28482 "\n"
28483 msgstr ""
28484
28485 #. type: textblock
28486 #: ../src/guestfs-actions.pod:3188
28487 msgid ""
28488 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28489 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
28490 msgstr ""
28491
28492 #. type: textblock
28493 #: ../src/guestfs-actions.pod:3192 ../src/guestfs-actions.pod:3460 ../src/guestfs-actions.pod:4267 ../src/guestfs-actions.pod:5006 ../src/guestfs-actions.pod:5692 ../src/guestfs-actions.pod:7889
28494 msgid ""
28495 "This function returns a NULL-terminated array of strings, or NULL if there "
28496 "was an error.  The array of strings will always have length C<2n+1>, where "
28497 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
28498 "caller must free the strings and the array after use>."
28499 msgstr ""
28500
28501 #. type: textblock
28502 #: ../src/guestfs-actions.pod:3198 ../src/guestfs-actions.pod:3663
28503 msgid "(Added in 1.9.17)"
28504 msgstr ""
28505
28506 #. type: =head2
28507 #: ../src/guestfs-actions.pod:3200
28508 msgid "guestfs_inspect_get_filesystems"
28509 msgstr ""
28510
28511 #. type: verbatim
28512 #: ../src/guestfs-actions.pod:3202
28513 #, no-wrap
28514 msgid ""
28515 " char **\n"
28516 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
28517 "                                  const char *root);\n"
28518 "\n"
28519 msgstr ""
28520
28521 #. type: textblock
28522 #: ../src/guestfs-actions.pod:3214
28523 msgid ""
28524 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28525 "C<guestfs_inspect_get_mountpoints>."
28526 msgstr ""
28527
28528 #. type: =head2
28529 #: ../src/guestfs-actions.pod:3223
28530 msgid "guestfs_inspect_get_format"
28531 msgstr ""
28532
28533 #. type: verbatim
28534 #: ../src/guestfs-actions.pod:3225
28535 #, no-wrap
28536 msgid ""
28537 " char *\n"
28538 " guestfs_inspect_get_format (guestfs_h *g,\n"
28539 "                             const char *root);\n"
28540 "\n"
28541 msgstr ""
28542
28543 #. type: textblock
28544 #: ../src/guestfs-actions.pod:3259 ../src/guestfs-actions.pod:3699 ../src/guestfs-actions.pod:3715 ../src/guestfs-actions.pod:3733 ../src/guestfs-actions.pod:6659
28545 msgid "(Added in 1.9.4)"
28546 msgstr ""
28547
28548 #. type: =head2
28549 #: ../src/guestfs-actions.pod:3261
28550 msgid "guestfs_inspect_get_hostname"
28551 msgstr ""
28552
28553 #. type: verbatim
28554 #: ../src/guestfs-actions.pod:3263
28555 #, no-wrap
28556 msgid ""
28557 " char *\n"
28558 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
28559 "                               const char *root);\n"
28560 "\n"
28561 msgstr ""
28562
28563 #. type: textblock
28564 #: ../src/guestfs-actions.pod:3278
28565 msgid "(Added in 1.7.9)"
28566 msgstr ""
28567
28568 #. type: =head2
28569 #: ../src/guestfs-actions.pod:3280
28570 msgid "guestfs_inspect_get_icon"
28571 msgstr ""
28572
28573 #. type: verbatim
28574 #: ../src/guestfs-actions.pod:3282
28575 #, no-wrap
28576 msgid ""
28577 " char *\n"
28578 " guestfs_inspect_get_icon (guestfs_h *g,\n"
28579 "                           const char *root,\n"
28580 "                           size_t *size_r,\n"
28581 "                           ...);\n"
28582 "\n"
28583 msgstr ""
28584
28585 #. type: verbatim
28586 #: ../src/guestfs-actions.pod:3293
28587 #, no-wrap
28588 msgid ""
28589 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
28590 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
28591 "\n"
28592 msgstr ""
28593
28594 #. type: textblock
28595 #: ../src/guestfs-actions.pod:3360 ../src/guestfs-actions.pod:4194 ../src/guestfs-actions.pod:5591
28596 msgid "(Added in 1.11.12)"
28597 msgstr ""
28598
28599 #. type: =head2
28600 #: ../src/guestfs-actions.pod:3362
28601 msgid "guestfs_inspect_get_icon_va"
28602 msgstr ""
28603
28604 #. type: verbatim
28605 #: ../src/guestfs-actions.pod:3364
28606 #, no-wrap
28607 msgid ""
28608 " char *\n"
28609 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
28610 "                              const char *root,\n"
28611 "                              size_t *size_r,\n"
28612 "                              va_list args);\n"
28613 "\n"
28614 msgstr ""
28615
28616 #. type: textblock
28617 #: ../src/guestfs-actions.pod:3370
28618 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
28619 msgstr ""
28620
28621 #. type: =head2
28622 #: ../src/guestfs-actions.pod:3374
28623 msgid "guestfs_inspect_get_icon_argv"
28624 msgstr ""
28625
28626 #. type: verbatim
28627 #: ../src/guestfs-actions.pod:3376
28628 #, no-wrap
28629 msgid ""
28630 " char *\n"
28631 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
28632 "                                const char *root,\n"
28633 "                                size_t *size_r,\n"
28634 "                                const struct guestfs_inspect_get_icon_argv "
28635 "*optargs);\n"
28636 "\n"
28637 msgstr ""
28638
28639 #. type: textblock
28640 #: ../src/guestfs-actions.pod:3382
28641 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
28642 msgstr ""
28643
28644 #. type: =head2
28645 #: ../src/guestfs-actions.pod:3386
28646 msgid "guestfs_inspect_get_major_version"
28647 msgstr ""
28648
28649 #. type: verbatim
28650 #: ../src/guestfs-actions.pod:3388
28651 #, no-wrap
28652 msgid ""
28653 " int\n"
28654 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
28655 "                                    const char *root);\n"
28656 "\n"
28657 msgstr ""
28658
28659 #. type: =head2
28660 #: ../src/guestfs-actions.pod:3410
28661 msgid "guestfs_inspect_get_minor_version"
28662 msgstr ""
28663
28664 #. type: verbatim
28665 #: ../src/guestfs-actions.pod:3412
28666 #, no-wrap
28667 msgid ""
28668 " int\n"
28669 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
28670 "                                    const char *root);\n"
28671 "\n"
28672 msgstr ""
28673
28674 #. type: textblock
28675 #: ../src/guestfs-actions.pod:3421
28676 msgid ""
28677 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28678 "C<guestfs_inspect_get_major_version>."
28679 msgstr ""
28680
28681 #. type: =head2
28682 #: ../src/guestfs-actions.pod:3428
28683 msgid "guestfs_inspect_get_mountpoints"
28684 msgstr ""
28685
28686 #. type: verbatim
28687 #: ../src/guestfs-actions.pod:3430
28688 #, no-wrap
28689 msgid ""
28690 " char **\n"
28691 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
28692 "                                  const char *root);\n"
28693 "\n"
28694 msgstr ""
28695
28696 #. type: textblock
28697 #: ../src/guestfs-actions.pod:3451
28698 msgid ""
28699 "For operating systems like Windows which still use drive letters, this call "
28700 "will only return an entry for the first drive \"mounted on\" C</>.  For "
28701 "information about the mapping of drive letters to partitions, see "
28702 "C<guestfs_inspect_get_drive_mappings>."
28703 msgstr ""
28704
28705 #. type: textblock
28706 #: ../src/guestfs-actions.pod:3457
28707 msgid ""
28708 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28709 "C<guestfs_inspect_get_filesystems>."
28710 msgstr ""
28711
28712 #. type: =head2
28713 #: ../src/guestfs-actions.pod:3468
28714 msgid "guestfs_inspect_get_package_format"
28715 msgstr ""
28716
28717 #. type: verbatim
28718 #: ../src/guestfs-actions.pod:3470
28719 #, no-wrap
28720 msgid ""
28721 " char *\n"
28722 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
28723 "                                     const char *root);\n"
28724 "\n"
28725 msgstr ""
28726
28727 #. type: textblock
28728 #: ../src/guestfs-actions.pod:3474
28729 msgid ""
28730 "This function and C<guestfs_inspect_get_package_management> return the "
28731 "package format and package management tool used by the inspected operating "
28732 "system.  For example for Fedora these functions would return C<rpm> (package "
28733 "format) and C<yum> (package management)."
28734 msgstr ""
28735
28736 #. type: textblock
28737 #: ../src/guestfs-actions.pod:3493 ../src/guestfs-actions.pod:3521
28738 msgid "(Added in 1.7.5)"
28739 msgstr ""
28740
28741 #. type: =head2
28742 #: ../src/guestfs-actions.pod:3495
28743 msgid "guestfs_inspect_get_package_management"
28744 msgstr ""
28745
28746 #. type: verbatim
28747 #: ../src/guestfs-actions.pod:3497
28748 #, no-wrap
28749 msgid ""
28750 " char *\n"
28751 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
28752 "                                         const char *root);\n"
28753 "\n"
28754 msgstr ""
28755
28756 #. type: textblock
28757 #: ../src/guestfs-actions.pod:3501
28758 msgid ""
28759 "C<guestfs_inspect_get_package_format> and this function return the package "
28760 "format and package management tool used by the inspected operating system.  "
28761 "For example for Fedora these functions would return C<rpm> (package format) "
28762 "and C<yum> (package management)."
28763 msgstr ""
28764
28765 #. type: =head2
28766 #: ../src/guestfs-actions.pod:3523
28767 msgid "guestfs_inspect_get_product_name"
28768 msgstr ""
28769
28770 #. type: verbatim
28771 #: ../src/guestfs-actions.pod:3525
28772 #, no-wrap
28773 msgid ""
28774 " char *\n"
28775 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
28776 "                                   const char *root);\n"
28777 "\n"
28778 msgstr ""
28779
28780 #. type: =head2
28781 #: ../src/guestfs-actions.pod:3544
28782 msgid "guestfs_inspect_get_product_variant"
28783 msgstr ""
28784
28785 #. type: verbatim
28786 #: ../src/guestfs-actions.pod:3546
28787 #, no-wrap
28788 msgid ""
28789 " char *\n"
28790 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
28791 "                                      const char *root);\n"
28792 "\n"
28793 msgstr ""
28794
28795 #. type: textblock
28796 #: ../src/guestfs-actions.pod:3569
28797 msgid ""
28798 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28799 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
28800 msgstr ""
28801
28802 #. type: textblock
28803 #: ../src/guestfs-actions.pod:3576
28804 msgid "(Added in 1.9.13)"
28805 msgstr ""
28806
28807 #. type: =head2
28808 #: ../src/guestfs-actions.pod:3578
28809 msgid "guestfs_inspect_get_roots"
28810 msgstr ""
28811
28812 #. type: verbatim
28813 #: ../src/guestfs-actions.pod:3580
28814 #, no-wrap
28815 msgid ""
28816 " char **\n"
28817 " guestfs_inspect_get_roots (guestfs_h *g);\n"
28818 "\n"
28819 msgstr ""
28820
28821 #. type: textblock
28822 #: ../src/guestfs-actions.pod:3583
28823 msgid ""
28824 "This function is a convenient way to get the list of root devices, as "
28825 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
28826 "the whole inspection process."
28827 msgstr ""
28828
28829 #. type: textblock
28830 #: ../src/guestfs-actions.pod:3587
28831 msgid ""
28832 "This returns an empty list if either no root devices were found or the "
28833 "caller has not called C<guestfs_inspect_os>."
28834 msgstr ""
28835
28836 #. type: textblock
28837 #: ../src/guestfs-actions.pod:3596
28838 msgid "(Added in 1.7.3)"
28839 msgstr ""
28840
28841 #. type: =head2
28842 #: ../src/guestfs-actions.pod:3598
28843 msgid "guestfs_inspect_get_type"
28844 msgstr ""
28845
28846 #. type: verbatim
28847 #: ../src/guestfs-actions.pod:3600
28848 #, no-wrap
28849 msgid ""
28850 " char *\n"
28851 " guestfs_inspect_get_type (guestfs_h *g,\n"
28852 "                           const char *root);\n"
28853 "\n"
28854 msgstr ""
28855
28856 #. type: =head2
28857 #: ../src/guestfs-actions.pod:3645
28858 msgid "guestfs_inspect_get_windows_current_control_set"
28859 msgstr ""
28860
28861 #. type: verbatim
28862 #: ../src/guestfs-actions.pod:3647
28863 #, no-wrap
28864 msgid ""
28865 " char *\n"
28866 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
28867 "                                                  const char *root);\n"
28868 "\n"
28869 msgstr ""
28870
28871 #. type: =head2
28872 #: ../src/guestfs-actions.pod:3665
28873 msgid "guestfs_inspect_get_windows_systemroot"
28874 msgstr ""
28875
28876 #. type: verbatim
28877 #: ../src/guestfs-actions.pod:3667
28878 #, no-wrap
28879 msgid ""
28880 " char *\n"
28881 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
28882 "                                         const char *root);\n"
28883 "\n"
28884 msgstr ""
28885
28886 #. type: textblock
28887 #: ../src/guestfs-actions.pod:3683
28888 msgid "(Added in 1.5.25)"
28889 msgstr ""
28890
28891 #. type: =head2
28892 #: ../src/guestfs-actions.pod:3685
28893 msgid "guestfs_inspect_is_live"
28894 msgstr ""
28895
28896 #. type: verbatim
28897 #: ../src/guestfs-actions.pod:3687
28898 #, no-wrap
28899 msgid ""
28900 " int\n"
28901 " guestfs_inspect_is_live (guestfs_h *g,\n"
28902 "                          const char *root);\n"
28903 "\n"
28904 msgstr ""
28905
28906 #. type: textblock
28907 #: ../src/guestfs-actions.pod:3691
28908 msgid ""
28909 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28910 "disk), then this returns true if a live image was detected on the disk."
28911 msgstr ""
28912
28913 #. type: =head2
28914 #: ../src/guestfs-actions.pod:3701
28915 msgid "guestfs_inspect_is_multipart"
28916 msgstr ""
28917
28918 #. type: verbatim
28919 #: ../src/guestfs-actions.pod:3703
28920 #, no-wrap
28921 msgid ""
28922 " int\n"
28923 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
28924 "                               const char *root);\n"
28925 "\n"
28926 msgstr ""
28927
28928 #. type: textblock
28929 #: ../src/guestfs-actions.pod:3707
28930 msgid ""
28931 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28932 "disk), then this returns true if the disk is part of a set."
28933 msgstr ""
28934
28935 #. type: =head2
28936 #: ../src/guestfs-actions.pod:3717
28937 msgid "guestfs_inspect_is_netinst"
28938 msgstr ""
28939
28940 #. type: verbatim
28941 #: ../src/guestfs-actions.pod:3719
28942 #, no-wrap
28943 msgid ""
28944 " int\n"
28945 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
28946 "                             const char *root);\n"
28947 "\n"
28948 msgstr ""
28949
28950 #. type: textblock
28951 #: ../src/guestfs-actions.pod:3723
28952 msgid ""
28953 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28954 "disk), then this returns true if the disk is a network installer, ie. not a "
28955 "self-contained install CD but one which is likely to require network access "
28956 "to complete the install."
28957 msgstr ""
28958
28959 #. type: =head2
28960 #: ../src/guestfs-actions.pod:3735
28961 msgid "guestfs_inspect_list_applications"
28962 msgstr ""
28963
28964 #. type: verbatim
28965 #: ../src/guestfs-actions.pod:3737
28966 #, no-wrap
28967 msgid ""
28968 " struct guestfs_application_list *\n"
28969 " guestfs_inspect_list_applications (guestfs_h *g,\n"
28970 "                                    const char *root);\n"
28971 "\n"
28972 msgstr ""
28973
28974 #. type: textblock
28975 #: ../src/guestfs-actions.pod:3743
28976 msgid ""
28977 "I<Note:> This call works differently from other parts of the inspection "
28978 "API.  You have to call C<guestfs_inspect_os>, then "
28979 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
28980 "this.  Listing applications is a significantly more difficult operation "
28981 "which requires access to the full filesystem.  Also note that unlike the "
28982 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
28983 "the libguestfs handle, this call actually reads parts of the mounted "
28984 "filesystems during the call."
28985 msgstr ""
28986
28987 #. type: textblock
28988 #: ../src/guestfs-actions.pod:3833
28989 msgid ""
28990 "This function returns a C<struct guestfs_application_list *>, or NULL if "
28991 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
28992 "after use>."
28993 msgstr ""
28994
28995 #. type: textblock
28996 #: ../src/guestfs-actions.pod:3837
28997 msgid "(Added in 1.7.8)"
28998 msgstr ""
28999
29000 #. type: =head2
29001 #: ../src/guestfs-actions.pod:3839
29002 msgid "guestfs_inspect_os"
29003 msgstr ""
29004
29005 #. type: verbatim
29006 #: ../src/guestfs-actions.pod:3841
29007 #, no-wrap
29008 msgid ""
29009 " char **\n"
29010 " guestfs_inspect_os (guestfs_h *g);\n"
29011 "\n"
29012 msgstr ""
29013
29014 #. type: textblock
29015 #: ../src/guestfs-actions.pod:3857
29016 msgid ""
29017 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
29018 "functions in order to query further information about each operating system, "
29019 "such as the name and version."
29020 msgstr ""
29021
29022 #. type: textblock
29023 #: ../src/guestfs-actions.pod:3862
29024 msgid ""
29025 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
29026 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
29027 "the contents.  This should be called with no disks currently mounted.  The "
29028 "function may also use Augeas, so any existing Augeas handle will be closed."
29029 msgstr ""
29030
29031 #. type: textblock
29032 #: ../src/guestfs-actions.pod:3874 ../src/guestfs-actions.pod:4205 ../src/guestfs-actions.pod:4300
29033 msgid "See also C<guestfs_list_filesystems>."
29034 msgstr ""
29035
29036 #. type: =head2
29037 #: ../src/guestfs-actions.pod:3882
29038 msgid "guestfs_is_blockdev"
29039 msgstr ""
29040
29041 #. type: verbatim
29042 #: ../src/guestfs-actions.pod:3884
29043 #, no-wrap
29044 msgid ""
29045 " int\n"
29046 " guestfs_is_blockdev (guestfs_h *g,\n"
29047 "                      const char *path);\n"
29048 "\n"
29049 msgstr ""
29050
29051 #. type: textblock
29052 #: ../src/guestfs-actions.pod:3891 ../src/guestfs-actions.pod:3920 ../src/guestfs-actions.pod:3950 ../src/guestfs-actions.pod:3965 ../src/guestfs-actions.pod:3981 ../src/guestfs-actions.pod:4037 ../src/guestfs-actions.pod:4052
29053 msgid "See also C<guestfs_stat>."
29054 msgstr ""
29055
29056 #. type: textblock
29057 #: ../src/guestfs-actions.pod:3895 ../src/guestfs-actions.pod:3924 ../src/guestfs-actions.pod:3969 ../src/guestfs-actions.pod:4041 ../src/guestfs-actions.pod:4056
29058 msgid "(Added in 1.5.10)"
29059 msgstr ""
29060
29061 #. type: =head2
29062 #: ../src/guestfs-actions.pod:3897
29063 msgid "guestfs_is_busy"
29064 msgstr ""
29065
29066 #. type: verbatim
29067 #: ../src/guestfs-actions.pod:3899
29068 #, no-wrap
29069 msgid ""
29070 " int\n"
29071 " guestfs_is_busy (guestfs_h *g);\n"
29072 "\n"
29073 msgstr ""
29074
29075 #. type: =head2
29076 #: ../src/guestfs-actions.pod:3911
29077 msgid "guestfs_is_chardev"
29078 msgstr ""
29079
29080 #. type: verbatim
29081 #: ../src/guestfs-actions.pod:3913
29082 #, no-wrap
29083 msgid ""
29084 " int\n"
29085 " guestfs_is_chardev (guestfs_h *g,\n"
29086 "                     const char *path);\n"
29087 "\n"
29088 msgstr ""
29089
29090 #. type: =head2
29091 #: ../src/guestfs-actions.pod:3926
29092 msgid "guestfs_is_config"
29093 msgstr ""
29094
29095 #. type: verbatim
29096 #: ../src/guestfs-actions.pod:3928
29097 #, no-wrap
29098 msgid ""
29099 " int\n"
29100 " guestfs_is_config (guestfs_h *g);\n"
29101 "\n"
29102 msgstr ""
29103
29104 #. type: =head2
29105 #: ../src/guestfs-actions.pod:3940
29106 msgid "guestfs_is_dir"
29107 msgstr ""
29108
29109 #. type: verbatim
29110 #: ../src/guestfs-actions.pod:3942
29111 #, no-wrap
29112 msgid ""
29113 " int\n"
29114 " guestfs_is_dir (guestfs_h *g,\n"
29115 "                 const char *path);\n"
29116 "\n"
29117 msgstr ""
29118
29119 #. type: =head2
29120 #: ../src/guestfs-actions.pod:3956
29121 msgid "guestfs_is_fifo"
29122 msgstr ""
29123
29124 #. type: verbatim
29125 #: ../src/guestfs-actions.pod:3958
29126 #, no-wrap
29127 msgid ""
29128 " int\n"
29129 " guestfs_is_fifo (guestfs_h *g,\n"
29130 "                  const char *path);\n"
29131 "\n"
29132 msgstr ""
29133
29134 #. type: =head2
29135 #: ../src/guestfs-actions.pod:3971
29136 msgid "guestfs_is_file"
29137 msgstr ""
29138
29139 #. type: verbatim
29140 #: ../src/guestfs-actions.pod:3973
29141 #, no-wrap
29142 msgid ""
29143 " int\n"
29144 " guestfs_is_file (guestfs_h *g,\n"
29145 "                  const char *path);\n"
29146 "\n"
29147 msgstr ""
29148
29149 #. type: =head2
29150 #: ../src/guestfs-actions.pod:3987
29151 msgid "guestfs_is_launching"
29152 msgstr ""
29153
29154 #. type: verbatim
29155 #: ../src/guestfs-actions.pod:3989
29156 #, no-wrap
29157 msgid ""
29158 " int\n"
29159 " guestfs_is_launching (guestfs_h *g);\n"
29160 "\n"
29161 msgstr ""
29162
29163 #. type: =head2
29164 #: ../src/guestfs-actions.pod:4001
29165 msgid "guestfs_is_lv"
29166 msgstr ""
29167
29168 #. type: verbatim
29169 #: ../src/guestfs-actions.pod:4003
29170 #, no-wrap
29171 msgid ""
29172 " int\n"
29173 " guestfs_is_lv (guestfs_h *g,\n"
29174 "                const char *device);\n"
29175 "\n"
29176 msgstr ""
29177
29178 #. type: =head2
29179 #: ../src/guestfs-actions.pod:4014
29180 msgid "guestfs_is_ready"
29181 msgstr ""
29182
29183 #. type: verbatim
29184 #: ../src/guestfs-actions.pod:4016
29185 #, no-wrap
29186 msgid ""
29187 " int\n"
29188 " guestfs_is_ready (guestfs_h *g);\n"
29189 "\n"
29190 msgstr ""
29191
29192 #. type: =head2
29193 #: ../src/guestfs-actions.pod:4028
29194 msgid "guestfs_is_socket"
29195 msgstr ""
29196
29197 #. type: verbatim
29198 #: ../src/guestfs-actions.pod:4030
29199 #, no-wrap
29200 msgid ""
29201 " int\n"
29202 " guestfs_is_socket (guestfs_h *g,\n"
29203 "                    const char *path);\n"
29204 "\n"
29205 msgstr ""
29206
29207 #. type: =head2
29208 #: ../src/guestfs-actions.pod:4043
29209 msgid "guestfs_is_symlink"
29210 msgstr ""
29211
29212 #. type: verbatim
29213 #: ../src/guestfs-actions.pod:4045
29214 #, no-wrap
29215 msgid ""
29216 " int\n"
29217 " guestfs_is_symlink (guestfs_h *g,\n"
29218 "                     const char *path);\n"
29219 "\n"
29220 msgstr ""
29221
29222 #. type: =head2
29223 #: ../src/guestfs-actions.pod:4058
29224 msgid "guestfs_is_zero"
29225 msgstr ""
29226
29227 #. type: verbatim
29228 #: ../src/guestfs-actions.pod:4060
29229 #, no-wrap
29230 msgid ""
29231 " int\n"
29232 " guestfs_is_zero (guestfs_h *g,\n"
29233 "                  const char *path);\n"
29234 "\n"
29235 msgstr ""
29236
29237 #. type: textblock
29238 #: ../src/guestfs-actions.pod:4069 ../src/guestfs-actions.pod:4083
29239 msgid "(Added in 1.11.8)"
29240 msgstr ""
29241
29242 #. type: =head2
29243 #: ../src/guestfs-actions.pod:4071
29244 msgid "guestfs_is_zero_device"
29245 msgstr ""
29246
29247 #. type: verbatim
29248 #: ../src/guestfs-actions.pod:4073
29249 #, no-wrap
29250 msgid ""
29251 " int\n"
29252 " guestfs_is_zero_device (guestfs_h *g,\n"
29253 "                         const char *device);\n"
29254 "\n"
29255 msgstr ""
29256
29257 #. type: =head2
29258 #: ../src/guestfs-actions.pod:4085
29259 msgid "guestfs_kill_subprocess"
29260 msgstr ""
29261
29262 #. type: verbatim
29263 #: ../src/guestfs-actions.pod:4087
29264 #, no-wrap
29265 msgid ""
29266 " int\n"
29267 " guestfs_kill_subprocess (guestfs_h *g);\n"
29268 "\n"
29269 msgstr ""
29270
29271 #. type: =head2
29272 #: ../src/guestfs-actions.pod:4096
29273 msgid "guestfs_launch"
29274 msgstr ""
29275
29276 #. type: verbatim
29277 #: ../src/guestfs-actions.pod:4098
29278 #, no-wrap
29279 msgid ""
29280 " int\n"
29281 " guestfs_launch (guestfs_h *g);\n"
29282 "\n"
29283 msgstr ""
29284
29285 #. type: =head2
29286 #: ../src/guestfs-actions.pod:4116
29287 msgid "guestfs_lchown"
29288 msgstr ""
29289
29290 #. type: verbatim
29291 #: ../src/guestfs-actions.pod:4118
29292 #, no-wrap
29293 msgid ""
29294 " int\n"
29295 " guestfs_lchown (guestfs_h *g,\n"
29296 "                 int owner,\n"
29297 "                 int group,\n"
29298 "                 const char *path);\n"
29299 "\n"
29300 msgstr ""
29301
29302 #. type: textblock
29303 #: ../src/guestfs-actions.pod:4124
29304 msgid ""
29305 "Change the file owner to C<owner> and group to C<group>.  This is like "
29306 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
29307 "changed, not the target."
29308 msgstr ""
29309
29310 #. type: =head2
29311 #: ../src/guestfs-actions.pod:4136
29312 msgid "guestfs_lgetxattr"
29313 msgstr ""
29314
29315 #. type: verbatim
29316 #: ../src/guestfs-actions.pod:4138
29317 #, no-wrap
29318 msgid ""
29319 " char *\n"
29320 " guestfs_lgetxattr (guestfs_h *g,\n"
29321 "                    const char *path,\n"
29322 "                    const char *name,\n"
29323 "                    size_t *size_r);\n"
29324 "\n"
29325 msgstr ""
29326
29327 #. type: textblock
29328 #: ../src/guestfs-actions.pod:4158
29329 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
29330 msgstr ""
29331
29332 #. type: =head2
29333 #: ../src/guestfs-actions.pod:4166
29334 msgid "guestfs_lgetxattrs"
29335 msgstr ""
29336
29337 #. type: verbatim
29338 #: ../src/guestfs-actions.pod:4168
29339 #, no-wrap
29340 msgid ""
29341 " struct guestfs_xattr_list *\n"
29342 " guestfs_lgetxattrs (guestfs_h *g,\n"
29343 "                     const char *path);\n"
29344 "\n"
29345 msgstr ""
29346
29347 #. type: textblock
29348 #: ../src/guestfs-actions.pod:4172
29349 msgid ""
29350 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
29351 "then it returns the extended attributes of the link itself."
29352 msgstr ""
29353
29354 #. type: =head2
29355 #: ../src/guestfs-actions.pod:4182
29356 msgid "guestfs_list_9p"
29357 msgstr ""
29358
29359 #. type: verbatim
29360 #: ../src/guestfs-actions.pod:4184
29361 #, no-wrap
29362 msgid ""
29363 " char **\n"
29364 " guestfs_list_9p (guestfs_h *g);\n"
29365 "\n"
29366 msgstr ""
29367
29368 #. type: =head2
29369 #: ../src/guestfs-actions.pod:4196
29370 msgid "guestfs_list_devices"
29371 msgstr ""
29372
29373 #. type: verbatim
29374 #: ../src/guestfs-actions.pod:4198
29375 #, no-wrap
29376 msgid ""
29377 " char **\n"
29378 " guestfs_list_devices (guestfs_h *g);\n"
29379 "\n"
29380 msgstr ""
29381
29382 #. type: =head2
29383 #: ../src/guestfs-actions.pod:4213
29384 msgid "guestfs_list_dm_devices"
29385 msgstr ""
29386
29387 #. type: verbatim
29388 #: ../src/guestfs-actions.pod:4215
29389 #, no-wrap
29390 msgid ""
29391 " char **\n"
29392 " guestfs_list_dm_devices (guestfs_h *g);\n"
29393 "\n"
29394 msgstr ""
29395
29396 #. type: textblock
29397 #: ../src/guestfs-actions.pod:4220
29398 msgid ""
29399 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
29400 "previous call to C<guestfs_luks_open>."
29401 msgstr ""
29402
29403 #. type: textblock
29404 #: ../src/guestfs-actions.pod:4223
29405 msgid ""
29406 "Device mapper devices which correspond to logical volumes are I<not> "
29407 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
29408 "volumes."
29409 msgstr ""
29410
29411 #. type: textblock
29412 #: ../src/guestfs-actions.pod:4231 ../src/guestfs-actions.pod:5830
29413 msgid "(Added in 1.11.15)"
29414 msgstr ""
29415
29416 #. type: =head2
29417 #: ../src/guestfs-actions.pod:4233
29418 msgid "guestfs_list_filesystems"
29419 msgstr ""
29420
29421 #. type: verbatim
29422 #: ../src/guestfs-actions.pod:4235
29423 #, no-wrap
29424 msgid ""
29425 " char **\n"
29426 " guestfs_list_filesystems (guestfs_h *g);\n"
29427 "\n"
29428 msgstr ""
29429
29430 #. type: textblock
29431 #: ../src/guestfs-actions.pod:4255
29432 msgid ""
29433 "This command runs other libguestfs commands, which might include "
29434 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
29435 "soon after launch and only when nothing is mounted."
29436 msgstr ""
29437
29438 #. type: textblock
29439 #: ../src/guestfs-actions.pod:4259
29440 msgid ""
29441 "Not all of the filesystems returned will be mountable.  In particular, swap "
29442 "partitions are returned in the list.  Also this command does not check that "
29443 "each filesystem found is valid and mountable, and some filesystems might be "
29444 "mountable but require special options.  Filesystems may not all belong to a "
29445 "single logical operating system (use C<guestfs_inspect_os> to look for "
29446 "OSes)."
29447 msgstr ""
29448
29449 #. type: textblock
29450 #: ../src/guestfs-actions.pod:4273 ../src/guestfs-actions.pod:6190
29451 msgid "(Added in 1.5.15)"
29452 msgstr ""
29453
29454 #. type: =head2
29455 #: ../src/guestfs-actions.pod:4275
29456 msgid "guestfs_list_md_devices"
29457 msgstr ""
29458
29459 #. type: verbatim
29460 #: ../src/guestfs-actions.pod:4277
29461 #, no-wrap
29462 msgid ""
29463 " char **\n"
29464 " guestfs_list_md_devices (guestfs_h *g);\n"
29465 "\n"
29466 msgstr ""
29467
29468 #. type: textblock
29469 #: ../src/guestfs-actions.pod:4286 ../src/guestfs-actions.pod:7851
29470 msgid "(Added in 1.15.4)"
29471 msgstr ""
29472
29473 #. type: =head2
29474 #: ../src/guestfs-actions.pod:4288
29475 msgid "guestfs_list_partitions"
29476 msgstr ""
29477
29478 #. type: verbatim
29479 #: ../src/guestfs-actions.pod:4290
29480 #, no-wrap
29481 msgid ""
29482 " char **\n"
29483 " guestfs_list_partitions (guestfs_h *g);\n"
29484 "\n"
29485 msgstr ""
29486
29487 #. type: textblock
29488 #: ../src/guestfs-actions.pod:4297
29489 msgid ""
29490 "This does not return logical volumes.  For that you will need to call "
29491 "C<guestfs_lvs>."
29492 msgstr ""
29493
29494 #. type: =head2
29495 #: ../src/guestfs-actions.pod:4308
29496 msgid "guestfs_ll"
29497 msgstr ""
29498
29499 #. type: verbatim
29500 #: ../src/guestfs-actions.pod:4310
29501 #, no-wrap
29502 msgid ""
29503 " char *\n"
29504 " guestfs_ll (guestfs_h *g,\n"
29505 "             const char *directory);\n"
29506 "\n"
29507 msgstr ""
29508
29509 #. type: =head2
29510 #: ../src/guestfs-actions.pod:4325
29511 msgid "guestfs_ln"
29512 msgstr ""
29513
29514 #. type: verbatim
29515 #: ../src/guestfs-actions.pod:4327
29516 #, no-wrap
29517 msgid ""
29518 " int\n"
29519 " guestfs_ln (guestfs_h *g,\n"
29520 "             const char *target,\n"
29521 "             const char *linkname);\n"
29522 "\n"
29523 msgstr ""
29524
29525 #. type: =head2
29526 #: ../src/guestfs-actions.pod:4338
29527 msgid "guestfs_ln_f"
29528 msgstr ""
29529
29530 #. type: verbatim
29531 #: ../src/guestfs-actions.pod:4340
29532 #, no-wrap
29533 msgid ""
29534 " int\n"
29535 " guestfs_ln_f (guestfs_h *g,\n"
29536 "               const char *target,\n"
29537 "               const char *linkname);\n"
29538 "\n"
29539 msgstr ""
29540
29541 #. type: =head2
29542 #: ../src/guestfs-actions.pod:4352
29543 msgid "guestfs_ln_s"
29544 msgstr ""
29545
29546 #. type: verbatim
29547 #: ../src/guestfs-actions.pod:4354
29548 #, no-wrap
29549 msgid ""
29550 " int\n"
29551 " guestfs_ln_s (guestfs_h *g,\n"
29552 "               const char *target,\n"
29553 "               const char *linkname);\n"
29554 "\n"
29555 msgstr ""
29556
29557 #. type: =head2
29558 #: ../src/guestfs-actions.pod:4365
29559 msgid "guestfs_ln_sf"
29560 msgstr ""
29561
29562 #. type: verbatim
29563 #: ../src/guestfs-actions.pod:4367
29564 #, no-wrap
29565 msgid ""
29566 " int\n"
29567 " guestfs_ln_sf (guestfs_h *g,\n"
29568 "                const char *target,\n"
29569 "                const char *linkname);\n"
29570 "\n"
29571 msgstr ""
29572
29573 #. type: =head2
29574 #: ../src/guestfs-actions.pod:4379
29575 msgid "guestfs_lremovexattr"
29576 msgstr ""
29577
29578 #. type: verbatim
29579 #: ../src/guestfs-actions.pod:4381
29580 #, no-wrap
29581 msgid ""
29582 " int\n"
29583 " guestfs_lremovexattr (guestfs_h *g,\n"
29584 "                       const char *xattr,\n"
29585 "                       const char *path);\n"
29586 "\n"
29587 msgstr ""
29588
29589 #. type: textblock
29590 #: ../src/guestfs-actions.pod:4386
29591 msgid ""
29592 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
29593 "link, then it removes an extended attribute of the link itself."
29594 msgstr ""
29595
29596 #. type: =head2
29597 #: ../src/guestfs-actions.pod:4394
29598 msgid "guestfs_ls"
29599 msgstr ""
29600
29601 #. type: verbatim
29602 #: ../src/guestfs-actions.pod:4396
29603 #, no-wrap
29604 msgid ""
29605 " char **\n"
29606 " guestfs_ls (guestfs_h *g,\n"
29607 "             const char *directory);\n"
29608 "\n"
29609 msgstr ""
29610
29611 #. type: textblock
29612 #: ../src/guestfs-actions.pod:4404
29613 msgid ""
29614 "This command is mostly useful for interactive sessions.  Programs should "
29615 "probably use C<guestfs_readdir> instead."
29616 msgstr ""
29617
29618 #. type: =head2
29619 #: ../src/guestfs-actions.pod:4413
29620 msgid "guestfs_lsetxattr"
29621 msgstr ""
29622
29623 #. type: verbatim
29624 #: ../src/guestfs-actions.pod:4415
29625 #, no-wrap
29626 msgid ""
29627 " int\n"
29628 " guestfs_lsetxattr (guestfs_h *g,\n"
29629 "                    const char *xattr,\n"
29630 "                    const char *val,\n"
29631 "                    int vallen,\n"
29632 "                    const char *path);\n"
29633 "\n"
29634 msgstr ""
29635
29636 #. type: textblock
29637 #: ../src/guestfs-actions.pod:4422
29638 msgid ""
29639 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
29640 "then it sets an extended attribute of the link itself."
29641 msgstr ""
29642
29643 #. type: =head2
29644 #: ../src/guestfs-actions.pod:4430
29645 msgid "guestfs_lstat"
29646 msgstr ""
29647
29648 #. type: verbatim
29649 #: ../src/guestfs-actions.pod:4432
29650 #, no-wrap
29651 msgid ""
29652 " struct guestfs_stat *\n"
29653 " guestfs_lstat (guestfs_h *g,\n"
29654 "                const char *path);\n"
29655 "\n"
29656 msgstr ""
29657
29658 #. type: textblock
29659 #: ../src/guestfs-actions.pod:4438
29660 msgid ""
29661 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
29662 "link, then the link is stat-ed, not the file it refers to."
29663 msgstr ""
29664
29665 #. type: textblock
29666 #: ../src/guestfs-actions.pod:4444 ../src/guestfs-actions.pod:7370
29667 msgid ""
29668 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
29669 "error.  I<The caller must call C<guestfs_free_stat> after use>."
29670 msgstr ""
29671
29672 #. type: textblock
29673 #: ../src/guestfs-actions.pod:4448 ../src/guestfs-actions.pod:7374 ../src/guestfs-actions.pod:7392 ../src/guestfs-actions.pod:7895
29674 msgid "(Added in 0.9.2)"
29675 msgstr ""
29676
29677 #. type: =head2
29678 #: ../src/guestfs-actions.pod:4450
29679 msgid "guestfs_lstatlist"
29680 msgstr ""
29681
29682 #. type: verbatim
29683 #: ../src/guestfs-actions.pod:4452
29684 #, no-wrap
29685 msgid ""
29686 " struct guestfs_stat_list *\n"
29687 " guestfs_lstatlist (guestfs_h *g,\n"
29688 "                    const char *path,\n"
29689 "                    char *const *names);\n"
29690 "\n"
29691 msgstr ""
29692
29693 #. type: textblock
29694 #: ../src/guestfs-actions.pod:4457
29695 msgid ""
29696 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
29697 "files, where all files are in the directory C<path>.  C<names> is the list "
29698 "of files from this directory."
29699 msgstr ""
29700
29701 #. type: textblock
29702 #: ../src/guestfs-actions.pod:4466
29703 msgid ""
29704 "This call is intended for programs that want to efficiently list a directory "
29705 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
29706 "for a similarly efficient call for getting extended attributes.  Very long "
29707 "directory listings might cause the protocol message size to be exceeded, "
29708 "causing this call to fail.  The caller must split up such requests into "
29709 "smaller groups of names."
29710 msgstr ""
29711
29712 #. type: textblock
29713 #: ../src/guestfs-actions.pod:4474
29714 msgid ""
29715 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
29716 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
29717 msgstr ""
29718
29719 #. type: =head2
29720 #: ../src/guestfs-actions.pod:4480
29721 msgid "guestfs_luks_add_key"
29722 msgstr ""
29723
29724 #. type: verbatim
29725 #: ../src/guestfs-actions.pod:4482
29726 #, no-wrap
29727 msgid ""
29728 " int\n"
29729 " guestfs_luks_add_key (guestfs_h *g,\n"
29730 "                       const char *device,\n"
29731 "                       const char *key,\n"
29732 "                       const char *newkey,\n"
29733 "                       int keyslot);\n"
29734 "\n"
29735 msgstr ""
29736
29737 #. type: textblock
29738 #: ../src/guestfs-actions.pod:4494
29739 msgid ""
29740 "Note that if C<keyslot> already contains a key, then this command will "
29741 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
29742 msgstr ""
29743
29744 #. type: textblock
29745 #: ../src/guestfs-actions.pod:4500 ../src/guestfs-actions.pod:4537 ../src/guestfs-actions.pod:4557 ../src/guestfs-actions.pod:4577 ../src/guestfs-actions.pod:4612 ../src/guestfs-actions.pod:4631
29746 msgid ""
29747 "This function takes a key or passphrase parameter which could contain "
29748 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
29749 "information."
29750 msgstr ""
29751
29752 #. type: textblock
29753 #: ../src/guestfs-actions.pod:4504 ../src/guestfs-actions.pod:4541 ../src/guestfs-actions.pod:4561 ../src/guestfs-actions.pod:4581
29754 msgid "(Added in 1.5.2)"
29755 msgstr ""
29756
29757 #. type: =head2
29758 #: ../src/guestfs-actions.pod:4506
29759 msgid "guestfs_luks_close"
29760 msgstr ""
29761
29762 #. type: verbatim
29763 #: ../src/guestfs-actions.pod:4508
29764 #, no-wrap
29765 msgid ""
29766 " int\n"
29767 " guestfs_luks_close (guestfs_h *g,\n"
29768 "                     const char *device);\n"
29769 "\n"
29770 msgstr ""
29771
29772 #. type: textblock
29773 #: ../src/guestfs-actions.pod:4512
29774 msgid ""
29775 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
29776 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
29777 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
29778 "underlying block device."
29779 msgstr ""
29780
29781 #. type: textblock
29782 #: ../src/guestfs-actions.pod:4520 ../src/guestfs-actions.pod:4616 ../src/guestfs-actions.pod:4635 ../src/guestfs-actions.pod:4685 ../src/guestfs-actions.pod:4730
29783 msgid "(Added in 1.5.1)"
29784 msgstr ""
29785
29786 #. type: =head2
29787 #: ../src/guestfs-actions.pod:4522
29788 msgid "guestfs_luks_format"
29789 msgstr ""
29790
29791 #. type: verbatim
29792 #: ../src/guestfs-actions.pod:4524
29793 #, no-wrap
29794 msgid ""
29795 " int\n"
29796 " guestfs_luks_format (guestfs_h *g,\n"
29797 "                      const char *device,\n"
29798 "                      const char *key,\n"
29799 "                      int keyslot);\n"
29800 "\n"
29801 msgstr ""
29802
29803 #. type: =head2
29804 #: ../src/guestfs-actions.pod:4543
29805 msgid "guestfs_luks_format_cipher"
29806 msgstr ""
29807
29808 #. type: verbatim
29809 #: ../src/guestfs-actions.pod:4545
29810 #, no-wrap
29811 msgid ""
29812 " int\n"
29813 " guestfs_luks_format_cipher (guestfs_h *g,\n"
29814 "                             const char *device,\n"
29815 "                             const char *key,\n"
29816 "                             int keyslot,\n"
29817 "                             const char *cipher);\n"
29818 "\n"
29819 msgstr ""
29820
29821 #. type: textblock
29822 #: ../src/guestfs-actions.pod:4552
29823 msgid ""
29824 "This command is the same as C<guestfs_luks_format> but it also allows you to "
29825 "set the C<cipher> used."
29826 msgstr ""
29827
29828 #. type: =head2
29829 #: ../src/guestfs-actions.pod:4563
29830 msgid "guestfs_luks_kill_slot"
29831 msgstr ""
29832
29833 #. type: verbatim
29834 #: ../src/guestfs-actions.pod:4565
29835 #, no-wrap
29836 msgid ""
29837 " int\n"
29838 " guestfs_luks_kill_slot (guestfs_h *g,\n"
29839 "                         const char *device,\n"
29840 "                         const char *key,\n"
29841 "                         int keyslot);\n"
29842 "\n"
29843 msgstr ""
29844
29845 #. type: =head2
29846 #: ../src/guestfs-actions.pod:4583
29847 msgid "guestfs_luks_open"
29848 msgstr ""
29849
29850 #. type: verbatim
29851 #: ../src/guestfs-actions.pod:4585
29852 #, no-wrap
29853 msgid ""
29854 " int\n"
29855 " guestfs_luks_open (guestfs_h *g,\n"
29856 "                    const char *device,\n"
29857 "                    const char *key,\n"
29858 "                    const char *mapname);\n"
29859 "\n"
29860 msgstr ""
29861
29862 #. type: textblock
29863 #: ../src/guestfs-actions.pod:4603
29864 msgid ""
29865 "If this block device contains LVM volume groups, then calling "
29866 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
29867 "visible."
29868 msgstr ""
29869
29870 #. type: textblock
29871 #: ../src/guestfs-actions.pod:4607
29872 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
29873 msgstr ""
29874
29875 #. type: =head2
29876 #: ../src/guestfs-actions.pod:4618
29877 msgid "guestfs_luks_open_ro"
29878 msgstr ""
29879
29880 #. type: verbatim
29881 #: ../src/guestfs-actions.pod:4620
29882 #, no-wrap
29883 msgid ""
29884 " int\n"
29885 " guestfs_luks_open_ro (guestfs_h *g,\n"
29886 "                       const char *device,\n"
29887 "                       const char *key,\n"
29888 "                       const char *mapname);\n"
29889 "\n"
29890 msgstr ""
29891
29892 #. type: textblock
29893 #: ../src/guestfs-actions.pod:4626
29894 msgid ""
29895 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
29896 "created."
29897 msgstr ""
29898
29899 #. type: =head2
29900 #: ../src/guestfs-actions.pod:4637
29901 msgid "guestfs_lvcreate"
29902 msgstr ""
29903
29904 #. type: verbatim
29905 #: ../src/guestfs-actions.pod:4639
29906 #, no-wrap
29907 msgid ""
29908 " int\n"
29909 " guestfs_lvcreate (guestfs_h *g,\n"
29910 "                   const char *logvol,\n"
29911 "                   const char *volgroup,\n"
29912 "                   int mbytes);\n"
29913 "\n"
29914 msgstr ""
29915
29916 #. type: =head2
29917 #: ../src/guestfs-actions.pod:4652
29918 msgid "guestfs_lvm_canonical_lv_name"
29919 msgstr ""
29920
29921 #. type: verbatim
29922 #: ../src/guestfs-actions.pod:4654
29923 #, no-wrap
29924 msgid ""
29925 " char *\n"
29926 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
29927 "                                const char *lvname);\n"
29928 "\n"
29929 msgstr ""
29930
29931 #. type: textblock
29932 #: ../src/guestfs-actions.pod:4665
29933 msgid "See also C<guestfs_is_lv>."
29934 msgstr ""
29935
29936 #. type: textblock
29937 #: ../src/guestfs-actions.pod:4670
29938 msgid "(Added in 1.5.24)"
29939 msgstr ""
29940
29941 #. type: =head2
29942 #: ../src/guestfs-actions.pod:4672
29943 msgid "guestfs_lvm_clear_filter"
29944 msgstr ""
29945
29946 #. type: verbatim
29947 #: ../src/guestfs-actions.pod:4674
29948 #, no-wrap
29949 msgid ""
29950 " int\n"
29951 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
29952 "\n"
29953 msgstr ""
29954
29955 #. type: textblock
29956 #: ../src/guestfs-actions.pod:4677
29957 msgid ""
29958 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
29959 "see every block device."
29960 msgstr ""
29961
29962 #. type: =head2
29963 #: ../src/guestfs-actions.pod:4687
29964 msgid "guestfs_lvm_remove_all"
29965 msgstr ""
29966
29967 #. type: verbatim
29968 #: ../src/guestfs-actions.pod:4689
29969 #, no-wrap
29970 msgid ""
29971 " int\n"
29972 " guestfs_lvm_remove_all (guestfs_h *g);\n"
29973 "\n"
29974 msgstr ""
29975
29976 #. type: =head2
29977 #: ../src/guestfs-actions.pod:4699
29978 msgid "guestfs_lvm_set_filter"
29979 msgstr ""
29980
29981 #. type: verbatim
29982 #: ../src/guestfs-actions.pod:4701
29983 #, no-wrap
29984 msgid ""
29985 " int\n"
29986 " guestfs_lvm_set_filter (guestfs_h *g,\n"
29987 "                         char *const *devices);\n"
29988 "\n"
29989 msgstr ""
29990
29991 #. type: =head2
29992 #: ../src/guestfs-actions.pod:4732
29993 msgid "guestfs_lvremove"
29994 msgstr ""
29995
29996 #. type: verbatim
29997 #: ../src/guestfs-actions.pod:4734
29998 #, no-wrap
29999 msgid ""
30000 " int\n"
30001 " guestfs_lvremove (guestfs_h *g,\n"
30002 "                   const char *device);\n"
30003 "\n"
30004 msgstr ""
30005
30006 #. type: textblock
30007 #: ../src/guestfs-actions.pod:4746 ../src/guestfs-actions.pod:6305 ../src/guestfs-actions.pod:8265
30008 msgid "(Added in 1.0.13)"
30009 msgstr ""
30010
30011 #. type: =head2
30012 #: ../src/guestfs-actions.pod:4748
30013 msgid "guestfs_lvrename"
30014 msgstr ""
30015
30016 #. type: verbatim
30017 #: ../src/guestfs-actions.pod:4750
30018 #, no-wrap
30019 msgid ""
30020 " int\n"
30021 " guestfs_lvrename (guestfs_h *g,\n"
30022 "                   const char *logvol,\n"
30023 "                   const char *newlogvol);\n"
30024 "\n"
30025 msgstr ""
30026
30027 #. type: textblock
30028 #: ../src/guestfs-actions.pod:4759 ../src/guestfs-actions.pod:8278
30029 msgid "(Added in 1.0.83)"
30030 msgstr ""
30031
30032 #. type: =head2
30033 #: ../src/guestfs-actions.pod:4761
30034 msgid "guestfs_lvresize"
30035 msgstr ""
30036
30037 #. type: verbatim
30038 #: ../src/guestfs-actions.pod:4763
30039 #, no-wrap
30040 msgid ""
30041 " int\n"
30042 " guestfs_lvresize (guestfs_h *g,\n"
30043 "                   const char *device,\n"
30044 "                   int mbytes);\n"
30045 "\n"
30046 msgstr ""
30047
30048 #. type: =head2
30049 #: ../src/guestfs-actions.pod:4776
30050 msgid "guestfs_lvresize_free"
30051 msgstr ""
30052
30053 #. type: verbatim
30054 #: ../src/guestfs-actions.pod:4778
30055 #, no-wrap
30056 msgid ""
30057 " int\n"
30058 " guestfs_lvresize_free (guestfs_h *g,\n"
30059 "                        const char *lv,\n"
30060 "                        int percent);\n"
30061 "\n"
30062 msgstr ""
30063
30064 #. type: textblock
30065 #: ../src/guestfs-actions.pod:4791
30066 msgid "(Added in 1.3.3)"
30067 msgstr ""
30068
30069 #. type: =head2
30070 #: ../src/guestfs-actions.pod:4793
30071 msgid "guestfs_lvs"
30072 msgstr ""
30073
30074 #. type: verbatim
30075 #: ../src/guestfs-actions.pod:4795
30076 #, no-wrap
30077 msgid ""
30078 " char **\n"
30079 " guestfs_lvs (guestfs_h *g);\n"
30080 "\n"
30081 msgstr ""
30082
30083 #. type: textblock
30084 #: ../src/guestfs-actions.pod:4804
30085 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
30086 msgstr ""
30087
30088 #. type: =head2
30089 #: ../src/guestfs-actions.pod:4812
30090 msgid "guestfs_lvs_full"
30091 msgstr ""
30092
30093 #. type: verbatim
30094 #: ../src/guestfs-actions.pod:4814
30095 #, no-wrap
30096 msgid ""
30097 " struct guestfs_lvm_lv_list *\n"
30098 " guestfs_lvs_full (guestfs_h *g);\n"
30099 "\n"
30100 msgstr ""
30101
30102 #. type: textblock
30103 #: ../src/guestfs-actions.pod:4820
30104 msgid ""
30105 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
30106 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after "
30107 "use>."
30108 msgstr ""
30109
30110 #. type: =head2
30111 #: ../src/guestfs-actions.pod:4826
30112 msgid "guestfs_lvuuid"
30113 msgstr ""
30114
30115 #. type: verbatim
30116 #: ../src/guestfs-actions.pod:4828
30117 #, no-wrap
30118 msgid ""
30119 " char *\n"
30120 " guestfs_lvuuid (guestfs_h *g,\n"
30121 "                 const char *device);\n"
30122 "\n"
30123 msgstr ""
30124
30125 #. type: =head2
30126 #: ../src/guestfs-actions.pod:4839
30127 msgid "guestfs_lxattrlist"
30128 msgstr ""
30129
30130 #. type: verbatim
30131 #: ../src/guestfs-actions.pod:4841
30132 #, no-wrap
30133 msgid ""
30134 " struct guestfs_xattr_list *\n"
30135 " guestfs_lxattrlist (guestfs_h *g,\n"
30136 "                     const char *path,\n"
30137 "                     char *const *names);\n"
30138 "\n"
30139 msgstr ""
30140
30141 #. type: textblock
30142 #: ../src/guestfs-actions.pod:4860
30143 msgid ""
30144 "This call is intended for programs that want to efficiently list a directory "
30145 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
30146 "a similarly efficient call for getting standard stats.  Very long directory "
30147 "listings might cause the protocol message size to be exceeded, causing this "
30148 "call to fail.  The caller must split up such requests into smaller groups of "
30149 "names."
30150 msgstr ""
30151
30152 #. type: =head2
30153 #: ../src/guestfs-actions.pod:4874
30154 msgid "guestfs_md_create"
30155 msgstr ""
30156
30157 #. type: verbatim
30158 #: ../src/guestfs-actions.pod:4876
30159 #, no-wrap
30160 msgid ""
30161 " int\n"
30162 " guestfs_md_create (guestfs_h *g,\n"
30163 "                    const char *name,\n"
30164 "                    char *const *devices,\n"
30165 "                    ...);\n"
30166 "\n"
30167 msgstr ""
30168
30169 #. type: verbatim
30170 #: ../src/guestfs-actions.pod:4887
30171 #, no-wrap
30172 msgid ""
30173 " GUESTFS_MD_CREATE_MISSINGBITMAP, int64_t missingbitmap,\n"
30174 " GUESTFS_MD_CREATE_NRDEVICES, int nrdevices,\n"
30175 " GUESTFS_MD_CREATE_SPARE, int spare,\n"
30176 " GUESTFS_MD_CREATE_CHUNK, int64_t chunk,\n"
30177 " GUESTFS_MD_CREATE_LEVEL, const char *level,\n"
30178 "\n"
30179 msgstr ""
30180
30181 #. type: =head2
30182 #: ../src/guestfs-actions.pod:4949
30183 msgid "guestfs_md_create_va"
30184 msgstr ""
30185
30186 #. type: verbatim
30187 #: ../src/guestfs-actions.pod:4951
30188 #, no-wrap
30189 msgid ""
30190 " int\n"
30191 " guestfs_md_create_va (guestfs_h *g,\n"
30192 "                       const char *name,\n"
30193 "                       char *const *devices,\n"
30194 "                       va_list args);\n"
30195 "\n"
30196 msgstr ""
30197
30198 #. type: textblock
30199 #: ../src/guestfs-actions.pod:4957
30200 msgid "This is the \"va_list variant\" of L</guestfs_md_create>."
30201 msgstr ""
30202
30203 #. type: =head2
30204 #: ../src/guestfs-actions.pod:4961
30205 msgid "guestfs_md_create_argv"
30206 msgstr ""
30207
30208 #. type: verbatim
30209 #: ../src/guestfs-actions.pod:4963
30210 #, no-wrap
30211 msgid ""
30212 " int\n"
30213 " guestfs_md_create_argv (guestfs_h *g,\n"
30214 "                         const char *name,\n"
30215 "                         char *const *devices,\n"
30216 "                         const struct guestfs_md_create_argv *optargs);\n"
30217 "\n"
30218 msgstr ""
30219
30220 #. type: textblock
30221 #: ../src/guestfs-actions.pod:4969
30222 msgid "This is the \"argv variant\" of L</guestfs_md_create>."
30223 msgstr ""
30224
30225 #. type: =head2
30226 #: ../src/guestfs-actions.pod:4973
30227 msgid "guestfs_md_detail"
30228 msgstr ""
30229
30230 #. type: verbatim
30231 #: ../src/guestfs-actions.pod:4975
30232 #, no-wrap
30233 msgid ""
30234 " char **\n"
30235 " guestfs_md_detail (guestfs_h *g,\n"
30236 "                    const char *md);\n"
30237 "\n"
30238 msgstr ""
30239
30240 #. type: =head2
30241 #: ../src/guestfs-actions.pod:5012
30242 msgid "guestfs_md_stop"
30243 msgstr ""
30244
30245 #. type: verbatim
30246 #: ../src/guestfs-actions.pod:5014
30247 #, no-wrap
30248 msgid ""
30249 " int\n"
30250 " guestfs_md_stop (guestfs_h *g,\n"
30251 "                  const char *md);\n"
30252 "\n"
30253 msgstr ""
30254
30255 #. type: =head2
30256 #: ../src/guestfs-actions.pod:5023
30257 msgid "guestfs_mkdir"
30258 msgstr ""
30259
30260 #. type: verbatim
30261 #: ../src/guestfs-actions.pod:5025
30262 #, no-wrap
30263 msgid ""
30264 " int\n"
30265 " guestfs_mkdir (guestfs_h *g,\n"
30266 "                const char *path);\n"
30267 "\n"
30268 msgstr ""
30269
30270 #. type: =head2
30271 #: ../src/guestfs-actions.pod:5035
30272 msgid "guestfs_mkdir_mode"
30273 msgstr ""
30274
30275 #. type: verbatim
30276 #: ../src/guestfs-actions.pod:5037
30277 #, no-wrap
30278 msgid ""
30279 " int\n"
30280 " guestfs_mkdir_mode (guestfs_h *g,\n"
30281 "                     const char *path,\n"
30282 "                     int mode);\n"
30283 "\n"
30284 msgstr ""
30285
30286 #. type: textblock
30287 #: ../src/guestfs-actions.pod:5049
30288 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
30289 msgstr ""
30290
30291 #. type: =head2
30292 #: ../src/guestfs-actions.pod:5055
30293 msgid "guestfs_mkdir_p"
30294 msgstr ""
30295
30296 #. type: verbatim
30297 #: ../src/guestfs-actions.pod:5057
30298 #, no-wrap
30299 msgid ""
30300 " int\n"
30301 " guestfs_mkdir_p (guestfs_h *g,\n"
30302 "                  const char *path);\n"
30303 "\n"
30304 msgstr ""
30305
30306 #. type: =head2
30307 #: ../src/guestfs-actions.pod:5068
30308 msgid "guestfs_mkdtemp"
30309 msgstr ""
30310
30311 #. type: verbatim
30312 #: ../src/guestfs-actions.pod:5070
30313 #, no-wrap
30314 msgid ""
30315 " char *\n"
30316 " guestfs_mkdtemp (guestfs_h *g,\n"
30317 "                  const char *template);\n"
30318 "\n"
30319 msgstr ""
30320
30321 #. type: =head2
30322 #: ../src/guestfs-actions.pod:5098
30323 msgid "guestfs_mke2fs_J"
30324 msgstr ""
30325
30326 #. type: verbatim
30327 #: ../src/guestfs-actions.pod:5100
30328 #, no-wrap
30329 msgid ""
30330 " int\n"
30331 " guestfs_mke2fs_J (guestfs_h *g,\n"
30332 "                   const char *fstype,\n"
30333 "                   int blocksize,\n"
30334 "                   const char *device,\n"
30335 "                   const char *journal);\n"
30336 "\n"
30337 msgstr ""
30338
30339 #. type: textblock
30340 #: ../src/guestfs-actions.pod:5113
30341 msgid "See also C<guestfs_mke2journal>."
30342 msgstr ""
30343
30344 #. type: textblock
30345 #: ../src/guestfs-actions.pod:5117 ../src/guestfs-actions.pod:5135 ../src/guestfs-actions.pod:5153 ../src/guestfs-actions.pod:5169 ../src/guestfs-actions.pod:5183 ../src/guestfs-actions.pod:5197 ../src/guestfs-actions.pod:5256 ../src/guestfs-actions.pod:5533
30346 msgid "(Added in 1.0.68)"
30347 msgstr ""
30348
30349 #. type: =head2
30350 #: ../src/guestfs-actions.pod:5119
30351 msgid "guestfs_mke2fs_JL"
30352 msgstr ""
30353
30354 #. type: verbatim
30355 #: ../src/guestfs-actions.pod:5121
30356 #, no-wrap
30357 msgid ""
30358 " int\n"
30359 " guestfs_mke2fs_JL (guestfs_h *g,\n"
30360 "                    const char *fstype,\n"
30361 "                    int blocksize,\n"
30362 "                    const char *device,\n"
30363 "                    const char *label);\n"
30364 "\n"
30365 msgstr ""
30366
30367 #. type: textblock
30368 #: ../src/guestfs-actions.pod:5131
30369 msgid "See also C<guestfs_mke2journal_L>."
30370 msgstr ""
30371
30372 #. type: =head2
30373 #: ../src/guestfs-actions.pod:5137
30374 msgid "guestfs_mke2fs_JU"
30375 msgstr ""
30376
30377 #. type: verbatim
30378 #: ../src/guestfs-actions.pod:5139
30379 #, no-wrap
30380 msgid ""
30381 " int\n"
30382 " guestfs_mke2fs_JU (guestfs_h *g,\n"
30383 "                    const char *fstype,\n"
30384 "                    int blocksize,\n"
30385 "                    const char *device,\n"
30386 "                    const char *uuid);\n"
30387 "\n"
30388 msgstr ""
30389
30390 #. type: textblock
30391 #: ../src/guestfs-actions.pod:5149
30392 msgid "See also C<guestfs_mke2journal_U>."
30393 msgstr ""
30394
30395 #. type: =head2
30396 #: ../src/guestfs-actions.pod:5155
30397 msgid "guestfs_mke2journal"
30398 msgstr ""
30399
30400 #. type: verbatim
30401 #: ../src/guestfs-actions.pod:5157
30402 #, no-wrap
30403 msgid ""
30404 " int\n"
30405 " guestfs_mke2journal (guestfs_h *g,\n"
30406 "                      int blocksize,\n"
30407 "                      const char *device);\n"
30408 "\n"
30409 msgstr ""
30410
30411 #. type: =head2
30412 #: ../src/guestfs-actions.pod:5171
30413 msgid "guestfs_mke2journal_L"
30414 msgstr ""
30415
30416 #. type: verbatim
30417 #: ../src/guestfs-actions.pod:5173
30418 #, no-wrap
30419 msgid ""
30420 " int\n"
30421 " guestfs_mke2journal_L (guestfs_h *g,\n"
30422 "                        int blocksize,\n"
30423 "                        const char *label,\n"
30424 "                        const char *device);\n"
30425 "\n"
30426 msgstr ""
30427
30428 #. type: =head2
30429 #: ../src/guestfs-actions.pod:5185
30430 msgid "guestfs_mke2journal_U"
30431 msgstr ""
30432
30433 #. type: verbatim
30434 #: ../src/guestfs-actions.pod:5187
30435 #, no-wrap
30436 msgid ""
30437 " int\n"
30438 " guestfs_mke2journal_U (guestfs_h *g,\n"
30439 "                        int blocksize,\n"
30440 "                        const char *uuid,\n"
30441 "                        const char *device);\n"
30442 "\n"
30443 msgstr ""
30444
30445 #. type: =head2
30446 #: ../src/guestfs-actions.pod:5199
30447 msgid "guestfs_mkfifo"
30448 msgstr ""
30449
30450 #. type: verbatim
30451 #: ../src/guestfs-actions.pod:5201
30452 #, no-wrap
30453 msgid ""
30454 " int\n"
30455 " guestfs_mkfifo (guestfs_h *g,\n"
30456 "                 int mode,\n"
30457 "                 const char *path);\n"
30458 "\n"
30459 msgstr ""
30460
30461 #. type: textblock
30462 #: ../src/guestfs-actions.pod:5206
30463 msgid ""
30464 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
30465 "is just a convenient wrapper around C<guestfs_mknod>."
30466 msgstr ""
30467
30468 #. type: =head2
30469 #: ../src/guestfs-actions.pod:5216
30470 msgid "guestfs_mkfs"
30471 msgstr ""
30472
30473 #. type: verbatim
30474 #: ../src/guestfs-actions.pod:5218
30475 #, no-wrap
30476 msgid ""
30477 " int\n"
30478 " guestfs_mkfs (guestfs_h *g,\n"
30479 "               const char *fstype,\n"
30480 "               const char *device);\n"
30481 "\n"
30482 msgstr ""
30483
30484 #. type: =head2
30485 #: ../src/guestfs-actions.pod:5231
30486 msgid "guestfs_mkfs_b"
30487 msgstr ""
30488
30489 #. type: verbatim
30490 #: ../src/guestfs-actions.pod:5233
30491 #, no-wrap
30492 msgid ""
30493 " int\n"
30494 " guestfs_mkfs_b (guestfs_h *g,\n"
30495 "                 const char *fstype,\n"
30496 "                 int blocksize,\n"
30497 "                 const char *device);\n"
30498 "\n"
30499 msgstr ""
30500
30501 #. type: textblock
30502 #: ../src/guestfs-actions.pod:5239
30503 msgid ""
30504 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
30505 "call instead."
30506 msgstr ""
30507
30508 #. type: textblock
30509 #: ../src/guestfs-actions.pod:5246
30510 msgid ""
30511 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
30512 "block size of the resulting filesystem.  Supported block sizes depend on the "
30513 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
30514 msgstr ""
30515
30516 #. type: =head2
30517 #: ../src/guestfs-actions.pod:5258
30518 msgid "guestfs_mkfs_opts"
30519 msgstr ""
30520
30521 #. type: verbatim
30522 #: ../src/guestfs-actions.pod:5260
30523 #, no-wrap
30524 msgid ""
30525 " int\n"
30526 " guestfs_mkfs_opts (guestfs_h *g,\n"
30527 "                    const char *fstype,\n"
30528 "                    const char *device,\n"
30529 "                    ...);\n"
30530 "\n"
30531 msgstr ""
30532
30533 #. type: verbatim
30534 #: ../src/guestfs-actions.pod:5271
30535 #, no-wrap
30536 msgid ""
30537 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
30538 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
30539 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
30540 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
30541 "\n"
30542 msgstr ""
30543
30544 #. type: textblock
30545 #: ../src/guestfs-actions.pod:5319
30546 msgid "(Added in 1.7.19)"
30547 msgstr ""
30548
30549 #. type: =head2
30550 #: ../src/guestfs-actions.pod:5321
30551 msgid "guestfs_mkfs_opts_va"
30552 msgstr ""
30553
30554 #. type: verbatim
30555 #: ../src/guestfs-actions.pod:5323
30556 #, no-wrap
30557 msgid ""
30558 " int\n"
30559 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
30560 "                       const char *fstype,\n"
30561 "                       const char *device,\n"
30562 "                       va_list args);\n"
30563 "\n"
30564 msgstr ""
30565
30566 #. type: textblock
30567 #: ../src/guestfs-actions.pod:5329
30568 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
30569 msgstr ""
30570
30571 #. type: =head2
30572 #: ../src/guestfs-actions.pod:5333
30573 msgid "guestfs_mkfs_opts_argv"
30574 msgstr ""
30575
30576 #. type: verbatim
30577 #: ../src/guestfs-actions.pod:5335
30578 #, no-wrap
30579 msgid ""
30580 " int\n"
30581 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
30582 "                         const char *fstype,\n"
30583 "                         const char *device,\n"
30584 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
30585 "\n"
30586 msgstr ""
30587
30588 #. type: textblock
30589 #: ../src/guestfs-actions.pod:5341
30590 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
30591 msgstr ""
30592
30593 #. type: =head2
30594 #: ../src/guestfs-actions.pod:5345
30595 msgid "guestfs_mkmountpoint"
30596 msgstr ""
30597
30598 #. type: verbatim
30599 #: ../src/guestfs-actions.pod:5347
30600 #, no-wrap
30601 msgid ""
30602 " int\n"
30603 " guestfs_mkmountpoint (guestfs_h *g,\n"
30604 "                       const char *exemptpath);\n"
30605 "\n"
30606 msgstr ""
30607
30608 #. type: textblock
30609 #: ../src/guestfs-actions.pod:5351
30610 msgid ""
30611 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
30612 "that can be used to create extra mountpoints before mounting the first "
30613 "filesystem."
30614 msgstr ""
30615
30616 #. type: textblock
30617 #: ../src/guestfs-actions.pod:5375
30618 msgid ""
30619 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
30620 "may get unexpected errors if you try to mix these calls.  It is safest to "
30621 "manually unmount filesystems and remove mountpoints after use."
30622 msgstr ""
30623
30624 #. type: textblock
30625 #: ../src/guestfs-actions.pod:5379
30626 msgid ""
30627 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
30628 "first, so for this to work for manual mountpoints, you must ensure that the "
30629 "innermost mountpoints have the longest pathnames, as in the example code "
30630 "above."
30631 msgstr ""
30632
30633 #. type: textblock
30634 #: ../src/guestfs-actions.pod:5386
30635 msgid ""
30636 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
30637 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
30638 "can also trigger these issues."
30639 msgstr ""
30640
30641 #. type: textblock
30642 #: ../src/guestfs-actions.pod:5392 ../src/guestfs-actions.pod:5698 ../src/guestfs-actions.pod:6725
30643 msgid "(Added in 1.0.62)"
30644 msgstr ""
30645
30646 #. type: =head2
30647 #: ../src/guestfs-actions.pod:5394
30648 msgid "guestfs_mknod"
30649 msgstr ""
30650
30651 #. type: verbatim
30652 #: ../src/guestfs-actions.pod:5396
30653 #, no-wrap
30654 msgid ""
30655 " int\n"
30656 " guestfs_mknod (guestfs_h *g,\n"
30657 "                int mode,\n"
30658 "                int devmajor,\n"
30659 "                int devminor,\n"
30660 "                const char *path);\n"
30661 "\n"
30662 msgstr ""
30663
30664 #. type: textblock
30665 #: ../src/guestfs-actions.pod:5411
30666 msgid ""
30667 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
30668 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
30669 "regular file).  These constants are available in the standard Linux header "
30670 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
30671 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
30672 "the appropriate constant for you."
30673 msgstr ""
30674
30675 #. type: =head2
30676 #: ../src/guestfs-actions.pod:5425
30677 msgid "guestfs_mknod_b"
30678 msgstr ""
30679
30680 #. type: verbatim
30681 #: ../src/guestfs-actions.pod:5427
30682 #, no-wrap
30683 msgid ""
30684 " int\n"
30685 " guestfs_mknod_b (guestfs_h *g,\n"
30686 "                  int mode,\n"
30687 "                  int devmajor,\n"
30688 "                  int devminor,\n"
30689 "                  const char *path);\n"
30690 "\n"
30691 msgstr ""
30692
30693 #. type: textblock
30694 #: ../src/guestfs-actions.pod:5434
30695 msgid ""
30696 "This call creates a block device node called C<path> with mode C<mode> and "
30697 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
30698 "wrapper around C<guestfs_mknod>."
30699 msgstr ""
30700
30701 #. type: =head2
30702 #: ../src/guestfs-actions.pod:5444
30703 msgid "guestfs_mknod_c"
30704 msgstr ""
30705
30706 #. type: verbatim
30707 #: ../src/guestfs-actions.pod:5446
30708 #, no-wrap
30709 msgid ""
30710 " int\n"
30711 " guestfs_mknod_c (guestfs_h *g,\n"
30712 "                  int mode,\n"
30713 "                  int devmajor,\n"
30714 "                  int devminor,\n"
30715 "                  const char *path);\n"
30716 "\n"
30717 msgstr ""
30718
30719 #. type: textblock
30720 #: ../src/guestfs-actions.pod:5453
30721 msgid ""
30722 "This call creates a char device node called C<path> with mode C<mode> and "
30723 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
30724 "wrapper around C<guestfs_mknod>."
30725 msgstr ""
30726
30727 #. type: =head2
30728 #: ../src/guestfs-actions.pod:5463
30729 msgid "guestfs_mkswap"
30730 msgstr ""
30731
30732 #. type: verbatim
30733 #: ../src/guestfs-actions.pod:5465
30734 #, no-wrap
30735 msgid ""
30736 " int\n"
30737 " guestfs_mkswap (guestfs_h *g,\n"
30738 "                 const char *device);\n"
30739 "\n"
30740 msgstr ""
30741
30742 #. type: =head2
30743 #: ../src/guestfs-actions.pod:5475
30744 msgid "guestfs_mkswap_L"
30745 msgstr ""
30746
30747 #. type: verbatim
30748 #: ../src/guestfs-actions.pod:5477
30749 #, no-wrap
30750 msgid ""
30751 " int\n"
30752 " guestfs_mkswap_L (guestfs_h *g,\n"
30753 "                   const char *label,\n"
30754 "                   const char *device);\n"
30755 "\n"
30756 msgstr ""
30757
30758 #. type: =head2
30759 #: ../src/guestfs-actions.pod:5492
30760 msgid "guestfs_mkswap_U"
30761 msgstr ""
30762
30763 #. type: verbatim
30764 #: ../src/guestfs-actions.pod:5494
30765 #, no-wrap
30766 msgid ""
30767 " int\n"
30768 " guestfs_mkswap_U (guestfs_h *g,\n"
30769 "                   const char *uuid,\n"
30770 "                   const char *device);\n"
30771 "\n"
30772 msgstr ""
30773
30774 #. type: =head2
30775 #: ../src/guestfs-actions.pod:5505
30776 msgid "guestfs_mkswap_file"
30777 msgstr ""
30778
30779 #. type: verbatim
30780 #: ../src/guestfs-actions.pod:5507
30781 #, no-wrap
30782 msgid ""
30783 " int\n"
30784 " guestfs_mkswap_file (guestfs_h *g,\n"
30785 "                      const char *path);\n"
30786 "\n"
30787 msgstr ""
30788
30789 #. type: textblock
30790 #: ../src/guestfs-actions.pod:5513
30791 msgid ""
30792 "This command just writes a swap file signature to an existing file.  To "
30793 "create the file itself, use something like C<guestfs_fallocate>."
30794 msgstr ""
30795
30796 #. type: =head2
30797 #: ../src/guestfs-actions.pod:5520
30798 msgid "guestfs_modprobe"
30799 msgstr ""
30800
30801 #. type: verbatim
30802 #: ../src/guestfs-actions.pod:5522
30803 #, no-wrap
30804 msgid ""
30805 " int\n"
30806 " guestfs_modprobe (guestfs_h *g,\n"
30807 "                   const char *modulename);\n"
30808 "\n"
30809 msgstr ""
30810
30811 #. type: =head2
30812 #: ../src/guestfs-actions.pod:5535
30813 msgid "guestfs_mount"
30814 msgstr ""
30815
30816 #. type: verbatim
30817 #: ../src/guestfs-actions.pod:5537
30818 #, no-wrap
30819 msgid ""
30820 " int\n"
30821 " guestfs_mount (guestfs_h *g,\n"
30822 "                const char *device,\n"
30823 "                const char *mountpoint);\n"
30824 "\n"
30825 msgstr ""
30826
30827 #. type: textblock
30828 #: ../src/guestfs-actions.pod:5556
30829 msgid ""
30830 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
30831 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
30832 "problems for users.  If your program might need to work with older versions "
30833 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
30834 "for the first parameter if you don't want any options)."
30835 msgstr ""
30836
30837 #. type: =head2
30838 #: ../src/guestfs-actions.pod:5567
30839 msgid "guestfs_mount_9p"
30840 msgstr ""
30841
30842 #. type: verbatim
30843 #: ../src/guestfs-actions.pod:5569
30844 #, no-wrap
30845 msgid ""
30846 " int\n"
30847 " guestfs_mount_9p (guestfs_h *g,\n"
30848 "                   const char *mounttag,\n"
30849 "                   const char *mountpoint,\n"
30850 "                   ...);\n"
30851 "\n"
30852 msgstr ""
30853
30854 #. type: verbatim
30855 #: ../src/guestfs-actions.pod:5580
30856 #, no-wrap
30857 msgid ""
30858 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
30859 "\n"
30860 msgstr ""
30861
30862 #. type: =head2
30863 #: ../src/guestfs-actions.pod:5593
30864 msgid "guestfs_mount_9p_va"
30865 msgstr ""
30866
30867 #. type: verbatim
30868 #: ../src/guestfs-actions.pod:5595
30869 #, no-wrap
30870 msgid ""
30871 " int\n"
30872 " guestfs_mount_9p_va (guestfs_h *g,\n"
30873 "                      const char *mounttag,\n"
30874 "                      const char *mountpoint,\n"
30875 "                      va_list args);\n"
30876 "\n"
30877 msgstr ""
30878
30879 #. type: textblock
30880 #: ../src/guestfs-actions.pod:5601
30881 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
30882 msgstr ""
30883
30884 #. type: =head2
30885 #: ../src/guestfs-actions.pod:5605
30886 msgid "guestfs_mount_9p_argv"
30887 msgstr ""
30888
30889 #. type: verbatim
30890 #: ../src/guestfs-actions.pod:5607
30891 #, no-wrap
30892 msgid ""
30893 " int\n"
30894 " guestfs_mount_9p_argv (guestfs_h *g,\n"
30895 "                        const char *mounttag,\n"
30896 "                        const char *mountpoint,\n"
30897 "                        const struct guestfs_mount_9p_argv *optargs);\n"
30898 "\n"
30899 msgstr ""
30900
30901 #. type: textblock
30902 #: ../src/guestfs-actions.pod:5613
30903 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
30904 msgstr ""
30905
30906 #. type: =head2
30907 #: ../src/guestfs-actions.pod:5617
30908 msgid "guestfs_mount_loop"
30909 msgstr ""
30910
30911 #. type: verbatim
30912 #: ../src/guestfs-actions.pod:5619
30913 #, no-wrap
30914 msgid ""
30915 " int\n"
30916 " guestfs_mount_loop (guestfs_h *g,\n"
30917 "                     const char *file,\n"
30918 "                     const char *mountpoint);\n"
30919 "\n"
30920 msgstr ""
30921
30922 #. type: =head2
30923 #: ../src/guestfs-actions.pod:5632
30924 msgid "guestfs_mount_options"
30925 msgstr ""
30926
30927 #. type: verbatim
30928 #: ../src/guestfs-actions.pod:5634
30929 #, no-wrap
30930 msgid ""
30931 " int\n"
30932 " guestfs_mount_options (guestfs_h *g,\n"
30933 "                        const char *options,\n"
30934 "                        const char *device,\n"
30935 "                        const char *mountpoint);\n"
30936 "\n"
30937 msgstr ""
30938
30939 #. type: textblock
30940 #: ../src/guestfs-actions.pod:5640
30941 msgid ""
30942 "This is the same as the C<guestfs_mount> command, but it allows you to set "
30943 "the mount options as for the L<mount(8)> I<-o> flag."
30944 msgstr ""
30945
30946 #. type: textblock
30947 #: ../src/guestfs-actions.pod:5650 ../src/guestfs-actions.pod:5664 ../src/guestfs-actions.pod:5681
30948 msgid "(Added in 1.0.10)"
30949 msgstr ""
30950
30951 #. type: =head2
30952 #: ../src/guestfs-actions.pod:5652
30953 msgid "guestfs_mount_ro"
30954 msgstr ""
30955
30956 #. type: verbatim
30957 #: ../src/guestfs-actions.pod:5654
30958 #, no-wrap
30959 msgid ""
30960 " int\n"
30961 " guestfs_mount_ro (guestfs_h *g,\n"
30962 "                   const char *device,\n"
30963 "                   const char *mountpoint);\n"
30964 "\n"
30965 msgstr ""
30966
30967 #. type: textblock
30968 #: ../src/guestfs-actions.pod:5659
30969 msgid ""
30970 "This is the same as the C<guestfs_mount> command, but it mounts the "
30971 "filesystem with the read-only (I<-o ro>) flag."
30972 msgstr ""
30973
30974 #. type: =head2
30975 #: ../src/guestfs-actions.pod:5666
30976 msgid "guestfs_mount_vfs"
30977 msgstr ""
30978
30979 #. type: verbatim
30980 #: ../src/guestfs-actions.pod:5668
30981 #, no-wrap
30982 msgid ""
30983 " int\n"
30984 " guestfs_mount_vfs (guestfs_h *g,\n"
30985 "                    const char *options,\n"
30986 "                    const char *vfstype,\n"
30987 "                    const char *device,\n"
30988 "                    const char *mountpoint);\n"
30989 "\n"
30990 msgstr ""
30991
30992 #. type: textblock
30993 #: ../src/guestfs-actions.pod:5675
30994 msgid ""
30995 "This is the same as the C<guestfs_mount> command, but it allows you to set "
30996 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and "
30997 "I<-t> flags."
30998 msgstr ""
30999
31000 #. type: =head2
31001 #: ../src/guestfs-actions.pod:5683
31002 msgid "guestfs_mountpoints"
31003 msgstr ""
31004
31005 #. type: verbatim
31006 #: ../src/guestfs-actions.pod:5685
31007 #, no-wrap
31008 msgid ""
31009 " char **\n"
31010 " guestfs_mountpoints (guestfs_h *g);\n"
31011 "\n"
31012 msgstr ""
31013
31014 #. type: textblock
31015 #: ../src/guestfs-actions.pod:5688
31016 msgid ""
31017 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
31018 "devices.  This one returns a hash table (map) of device name to directory "
31019 "where the device is mounted."
31020 msgstr ""
31021
31022 #. type: =head2
31023 #: ../src/guestfs-actions.pod:5700
31024 msgid "guestfs_mounts"
31025 msgstr ""
31026
31027 #. type: verbatim
31028 #: ../src/guestfs-actions.pod:5702
31029 #, no-wrap
31030 msgid ""
31031 " char **\n"
31032 " guestfs_mounts (guestfs_h *g);\n"
31033 "\n"
31034 msgstr ""
31035
31036 #. type: textblock
31037 #: ../src/guestfs-actions.pod:5710
31038 msgid "See also: C<guestfs_mountpoints>"
31039 msgstr ""
31040
31041 #. type: =head2
31042 #: ../src/guestfs-actions.pod:5718
31043 msgid "guestfs_mv"
31044 msgstr ""
31045
31046 #. type: verbatim
31047 #: ../src/guestfs-actions.pod:5720
31048 #, no-wrap
31049 msgid ""
31050 " int\n"
31051 " guestfs_mv (guestfs_h *g,\n"
31052 "             const char *src,\n"
31053 "             const char *dest);\n"
31054 "\n"
31055 msgstr ""
31056
31057 #. type: =head2
31058 #: ../src/guestfs-actions.pod:5732
31059 msgid "guestfs_ntfs_3g_probe"
31060 msgstr ""
31061
31062 #. type: verbatim
31063 #: ../src/guestfs-actions.pod:5734
31064 #, no-wrap
31065 msgid ""
31066 " int\n"
31067 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
31068 "                        int rw,\n"
31069 "                        const char *device);\n"
31070 "\n"
31071 msgstr ""
31072
31073 #. type: textblock
31074 #: ../src/guestfs-actions.pod:5753
31075 msgid "(Added in 1.0.43)"
31076 msgstr ""
31077
31078 #. type: =head2
31079 #: ../src/guestfs-actions.pod:5755
31080 msgid "guestfs_ntfsresize"
31081 msgstr ""
31082
31083 #. type: verbatim
31084 #: ../src/guestfs-actions.pod:5757
31085 #, no-wrap
31086 msgid ""
31087 " int\n"
31088 " guestfs_ntfsresize (guestfs_h *g,\n"
31089 "                     const char *device);\n"
31090 "\n"
31091 msgstr ""
31092
31093 #. type: textblock
31094 #: ../src/guestfs-actions.pod:5761 ../src/guestfs-actions.pod:5861
31095 msgid ""
31096 "I<This function is deprecated.> In new code, use the "
31097 "L</guestfs_ntfsresize_opts> call instead."
31098 msgstr ""
31099
31100 #. type: =head2
31101 #: ../src/guestfs-actions.pod:5785
31102 msgid "guestfs_ntfsresize_opts"
31103 msgstr ""
31104
31105 #. type: verbatim
31106 #: ../src/guestfs-actions.pod:5787
31107 #, no-wrap
31108 msgid ""
31109 " int\n"
31110 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
31111 "                          const char *device,\n"
31112 "                          ...);\n"
31113 "\n"
31114 msgstr ""
31115
31116 #. type: verbatim
31117 #: ../src/guestfs-actions.pod:5797
31118 #, no-wrap
31119 msgid ""
31120 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
31121 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
31122 "\n"
31123 msgstr ""
31124
31125 #. type: textblock
31126 #: ../src/guestfs-actions.pod:5817
31127 msgid ""
31128 "After the resize operation, the filesystem is always marked as requiring a "
31129 "consistency check (for safety).  You have to boot into Windows to perform "
31130 "this check and clear this condition.  If you I<don't> set the C<force> "
31131 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
31132 "times on a single filesystem without booting into Windows between each "
31133 "resize."
31134 msgstr ""
31135
31136 #. type: =head2
31137 #: ../src/guestfs-actions.pod:5832
31138 msgid "guestfs_ntfsresize_opts_va"
31139 msgstr ""
31140
31141 #. type: verbatim
31142 #: ../src/guestfs-actions.pod:5834
31143 #, no-wrap
31144 msgid ""
31145 " int\n"
31146 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
31147 "                             const char *device,\n"
31148 "                             va_list args);\n"
31149 "\n"
31150 msgstr ""
31151
31152 #. type: textblock
31153 #: ../src/guestfs-actions.pod:5839
31154 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
31155 msgstr ""
31156
31157 #. type: =head2
31158 #: ../src/guestfs-actions.pod:5843
31159 msgid "guestfs_ntfsresize_opts_argv"
31160 msgstr ""
31161
31162 #. type: verbatim
31163 #: ../src/guestfs-actions.pod:5845
31164 #, no-wrap
31165 msgid ""
31166 " int\n"
31167 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
31168 "                               const char *device,\n"
31169 "                               const struct guestfs_ntfsresize_opts_argv "
31170 "*optargs);\n"
31171 "\n"
31172 msgstr ""
31173
31174 #. type: textblock
31175 #: ../src/guestfs-actions.pod:5850
31176 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
31177 msgstr ""
31178
31179 #. type: =head2
31180 #: ../src/guestfs-actions.pod:5854
31181 msgid "guestfs_ntfsresize_size"
31182 msgstr ""
31183
31184 #. type: verbatim
31185 #: ../src/guestfs-actions.pod:5856
31186 #, no-wrap
31187 msgid ""
31188 " int\n"
31189 " guestfs_ntfsresize_size (guestfs_h *g,\n"
31190 "                          const char *device,\n"
31191 "                          int64_t size);\n"
31192 "\n"
31193 msgstr ""
31194
31195 #. type: textblock
31196 #: ../src/guestfs-actions.pod:5868
31197 msgid ""
31198 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
31199 "to specify the new size (in bytes) explicitly."
31200 msgstr ""
31201
31202 #. type: textblock
31203 #: ../src/guestfs-actions.pod:5873 ../src/guestfs-actions.pod:6332 ../src/guestfs-actions.pod:6405 ../src/guestfs-actions.pod:6673 ../src/guestfs-actions.pod:8422
31204 msgid "(Added in 1.3.14)"
31205 msgstr ""
31206
31207 #. type: =head2
31208 #: ../src/guestfs-actions.pod:5875
31209 msgid "guestfs_part_add"
31210 msgstr ""
31211
31212 #. type: verbatim
31213 #: ../src/guestfs-actions.pod:5877
31214 #, no-wrap
31215 msgid ""
31216 " int\n"
31217 " guestfs_part_add (guestfs_h *g,\n"
31218 "                   const char *device,\n"
31219 "                   const char *prlogex,\n"
31220 "                   int64_t startsect,\n"
31221 "                   int64_t endsect);\n"
31222 "\n"
31223 msgstr ""
31224
31225 #. type: textblock
31226 #: ../src/guestfs-actions.pod:5884
31227 msgid ""
31228 "This command adds a partition to C<device>.  If there is no partition table "
31229 "on the device, call C<guestfs_part_init> first."
31230 msgstr ""
31231
31232 #. type: textblock
31233 #: ../src/guestfs-actions.pod:5896
31234 msgid ""
31235 "Creating a partition which covers the whole disk is not so easy.  Use "
31236 "C<guestfs_part_disk> to do that."
31237 msgstr ""
31238
31239 #. type: textblock
31240 #: ../src/guestfs-actions.pod:5901 ../src/guestfs-actions.pod:5936 ../src/guestfs-actions.pod:5989 ../src/guestfs-actions.pod:6073 ../src/guestfs-actions.pod:6111 ../src/guestfs-actions.pod:6130 ../src/guestfs-actions.pod:6170
31241 msgid "(Added in 1.0.78)"
31242 msgstr ""
31243
31244 #. type: =head2
31245 #: ../src/guestfs-actions.pod:5903
31246 msgid "guestfs_part_del"
31247 msgstr ""
31248
31249 #. type: verbatim
31250 #: ../src/guestfs-actions.pod:5905
31251 #, no-wrap
31252 msgid ""
31253 " int\n"
31254 " guestfs_part_del (guestfs_h *g,\n"
31255 "                   const char *device,\n"
31256 "                   int partnum);\n"
31257 "\n"
31258 msgstr ""
31259
31260 #. type: =head2
31261 #: ../src/guestfs-actions.pod:5920
31262 msgid "guestfs_part_disk"
31263 msgstr ""
31264
31265 #. type: verbatim
31266 #: ../src/guestfs-actions.pod:5922
31267 #, no-wrap
31268 msgid ""
31269 " int\n"
31270 " guestfs_part_disk (guestfs_h *g,\n"
31271 "                    const char *device,\n"
31272 "                    const char *parttype);\n"
31273 "\n"
31274 msgstr ""
31275
31276 #. type: textblock
31277 #: ../src/guestfs-actions.pod:5927
31278 msgid ""
31279 "This command is simply a combination of C<guestfs_part_init> followed by "
31280 "C<guestfs_part_add> to create a single primary partition covering the whole "
31281 "disk."
31282 msgstr ""
31283
31284 #. type: textblock
31285 #: ../src/guestfs-actions.pod:5931
31286 msgid ""
31287 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
31288 "possible values are described in C<guestfs_part_init>."
31289 msgstr ""
31290
31291 #. type: =head2
31292 #: ../src/guestfs-actions.pod:5938
31293 msgid "guestfs_part_get_bootable"
31294 msgstr ""
31295
31296 #. type: verbatim
31297 #: ../src/guestfs-actions.pod:5940
31298 #, no-wrap
31299 msgid ""
31300 " int\n"
31301 " guestfs_part_get_bootable (guestfs_h *g,\n"
31302 "                            const char *device,\n"
31303 "                            int partnum);\n"
31304 "\n"
31305 msgstr ""
31306
31307 #. type: textblock
31308 #: ../src/guestfs-actions.pod:5948
31309 msgid "See also C<guestfs_part_set_bootable>."
31310 msgstr ""
31311
31312 #. type: =head2
31313 #: ../src/guestfs-actions.pod:5954
31314 msgid "guestfs_part_get_mbr_id"
31315 msgstr ""
31316
31317 #. type: verbatim
31318 #: ../src/guestfs-actions.pod:5956
31319 #, no-wrap
31320 msgid ""
31321 " int\n"
31322 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
31323 "                          const char *device,\n"
31324 "                          int partnum);\n"
31325 "\n"
31326 msgstr ""
31327
31328 #. type: textblock
31329 #: ../src/guestfs-actions.pod:5964 ../src/guestfs-actions.pod:6146
31330 msgid ""
31331 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
31332 "undefined results for other partition table types (see "
31333 "C<guestfs_part_get_parttype>)."
31334 msgstr ""
31335
31336 #. type: =head2
31337 #: ../src/guestfs-actions.pod:5972
31338 msgid "guestfs_part_get_parttype"
31339 msgstr ""
31340
31341 #. type: verbatim
31342 #: ../src/guestfs-actions.pod:5974
31343 #, no-wrap
31344 msgid ""
31345 " char *\n"
31346 " guestfs_part_get_parttype (guestfs_h *g,\n"
31347 "                            const char *device);\n"
31348 "\n"
31349 msgstr ""
31350
31351 #. type: textblock
31352 #: ../src/guestfs-actions.pod:5981
31353 msgid ""
31354 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
31355 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
31356 "possible, although unusual.  See C<guestfs_part_init> for a full list."
31357 msgstr ""
31358
31359 #. type: =head2
31360 #: ../src/guestfs-actions.pod:5991
31361 msgid "guestfs_part_init"
31362 msgstr ""
31363
31364 #. type: verbatim
31365 #: ../src/guestfs-actions.pod:5993
31366 #, no-wrap
31367 msgid ""
31368 " int\n"
31369 " guestfs_part_init (guestfs_h *g,\n"
31370 "                    const char *device,\n"
31371 "                    const char *parttype);\n"
31372 "\n"
31373 msgstr ""
31374
31375 #. type: textblock
31376 #: ../src/guestfs-actions.pod:6002
31377 msgid ""
31378 "Initially there are no partitions.  Following this, you should call "
31379 "C<guestfs_part_add> for each partition required."
31380 msgstr ""
31381
31382 #. type: =head2
31383 #: ../src/guestfs-actions.pod:6075
31384 msgid "guestfs_part_list"
31385 msgstr ""
31386
31387 #. type: verbatim
31388 #: ../src/guestfs-actions.pod:6077
31389 #, no-wrap
31390 msgid ""
31391 " struct guestfs_partition_list *\n"
31392 " guestfs_part_list (guestfs_h *g,\n"
31393 "                    const char *device);\n"
31394 "\n"
31395 msgstr ""
31396
31397 #. type: textblock
31398 #: ../src/guestfs-actions.pod:6094
31399 msgid ""
31400 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
31401 "the device's sector size, see C<guestfs_blockdev_getss>."
31402 msgstr ""
31403
31404 #. type: textblock
31405 #: ../src/guestfs-actions.pod:6107
31406 msgid ""
31407 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
31408 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
31409 "use>."
31410 msgstr ""
31411
31412 #. type: =head2
31413 #: ../src/guestfs-actions.pod:6113
31414 msgid "guestfs_part_set_bootable"
31415 msgstr ""
31416
31417 #. type: verbatim
31418 #: ../src/guestfs-actions.pod:6115
31419 #, no-wrap
31420 msgid ""
31421 " int\n"
31422 " guestfs_part_set_bootable (guestfs_h *g,\n"
31423 "                            const char *device,\n"
31424 "                            int partnum,\n"
31425 "                            int bootable);\n"
31426 "\n"
31427 msgstr ""
31428
31429 #. type: =head2
31430 #: ../src/guestfs-actions.pod:6132
31431 msgid "guestfs_part_set_mbr_id"
31432 msgstr ""
31433
31434 #. type: verbatim
31435 #: ../src/guestfs-actions.pod:6134
31436 #, no-wrap
31437 msgid ""
31438 " int\n"
31439 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
31440 "                          const char *device,\n"
31441 "                          int partnum,\n"
31442 "                          int idbyte);\n"
31443 "\n"
31444 msgstr ""
31445
31446 #. type: =head2
31447 #: ../src/guestfs-actions.pod:6154
31448 msgid "guestfs_part_set_name"
31449 msgstr ""
31450
31451 #. type: verbatim
31452 #: ../src/guestfs-actions.pod:6156
31453 #, no-wrap
31454 msgid ""
31455 " int\n"
31456 " guestfs_part_set_name (guestfs_h *g,\n"
31457 "                        const char *device,\n"
31458 "                        int partnum,\n"
31459 "                        const char *name);\n"
31460 "\n"
31461 msgstr ""
31462
31463 #. type: =head2
31464 #: ../src/guestfs-actions.pod:6172
31465 msgid "guestfs_part_to_dev"
31466 msgstr ""
31467
31468 #. type: verbatim
31469 #: ../src/guestfs-actions.pod:6174
31470 #, no-wrap
31471 msgid ""
31472 " char *\n"
31473 " guestfs_part_to_dev (guestfs_h *g,\n"
31474 "                      const char *partition);\n"
31475 "\n"
31476 msgstr ""
31477
31478 #. type: textblock
31479 #: ../src/guestfs-actions.pod:6182 ../src/guestfs-actions.pod:6201
31480 msgid ""
31481 "The named partition must exist, for example as a string returned from "
31482 "C<guestfs_list_partitions>."
31483 msgstr ""
31484
31485 #. type: textblock
31486 #: ../src/guestfs-actions.pod:6185
31487 msgid "See also C<guestfs_part_to_partnum>."
31488 msgstr ""
31489
31490 #. type: =head2
31491 #: ../src/guestfs-actions.pod:6192
31492 msgid "guestfs_part_to_partnum"
31493 msgstr ""
31494
31495 #. type: verbatim
31496 #: ../src/guestfs-actions.pod:6194
31497 #, no-wrap
31498 msgid ""
31499 " int\n"
31500 " guestfs_part_to_partnum (guestfs_h *g,\n"
31501 "                          const char *partition);\n"
31502 "\n"
31503 msgstr ""
31504
31505 #. type: textblock
31506 #: ../src/guestfs-actions.pod:6204
31507 msgid "See also C<guestfs_part_to_dev>."
31508 msgstr ""
31509
31510 #. type: =head2
31511 #: ../src/guestfs-actions.pod:6210
31512 msgid "guestfs_ping_daemon"
31513 msgstr ""
31514
31515 #. type: verbatim
31516 #: ../src/guestfs-actions.pod:6212
31517 #, no-wrap
31518 msgid ""
31519 " int\n"
31520 " guestfs_ping_daemon (guestfs_h *g);\n"
31521 "\n"
31522 msgstr ""
31523
31524 #. type: =head2
31525 #: ../src/guestfs-actions.pod:6224
31526 msgid "guestfs_pread"
31527 msgstr ""
31528
31529 #. type: verbatim
31530 #: ../src/guestfs-actions.pod:6226
31531 #, no-wrap
31532 msgid ""
31533 " char *\n"
31534 " guestfs_pread (guestfs_h *g,\n"
31535 "                const char *path,\n"
31536 "                int count,\n"
31537 "                int64_t offset,\n"
31538 "                size_t *size_r);\n"
31539 "\n"
31540 msgstr ""
31541
31542 #. type: textblock
31543 #: ../src/guestfs-actions.pod:6239
31544 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
31545 msgstr ""
31546
31547 #. type: =head2
31548 #: ../src/guestfs-actions.pod:6250
31549 msgid "guestfs_pread_device"
31550 msgstr ""
31551
31552 #. type: verbatim
31553 #: ../src/guestfs-actions.pod:6252
31554 #, no-wrap
31555 msgid ""
31556 " char *\n"
31557 " guestfs_pread_device (guestfs_h *g,\n"
31558 "                       const char *device,\n"
31559 "                       int count,\n"
31560 "                       int64_t offset,\n"
31561 "                       size_t *size_r);\n"
31562 "\n"
31563 msgstr ""
31564
31565 #. type: textblock
31566 #: ../src/guestfs-actions.pod:6265
31567 msgid "See also C<guestfs_pread>."
31568 msgstr ""
31569
31570 #. type: textblock
31571 #: ../src/guestfs-actions.pod:6274
31572 msgid "(Added in 1.5.21)"
31573 msgstr ""
31574
31575 #. type: =head2
31576 #: ../src/guestfs-actions.pod:6276
31577 msgid "guestfs_pvcreate"
31578 msgstr ""
31579
31580 #. type: verbatim
31581 #: ../src/guestfs-actions.pod:6278
31582 #, no-wrap
31583 msgid ""
31584 " int\n"
31585 " guestfs_pvcreate (guestfs_h *g,\n"
31586 "                   const char *device);\n"
31587 "\n"
31588 msgstr ""
31589
31590 #. type: =head2
31591 #: ../src/guestfs-actions.pod:6290
31592 msgid "guestfs_pvremove"
31593 msgstr ""
31594
31595 #. type: verbatim
31596 #: ../src/guestfs-actions.pod:6292
31597 #, no-wrap
31598 msgid ""
31599 " int\n"
31600 " guestfs_pvremove (guestfs_h *g,\n"
31601 "                   const char *device);\n"
31602 "\n"
31603 msgstr ""
31604
31605 #. type: =head2
31606 #: ../src/guestfs-actions.pod:6307
31607 msgid "guestfs_pvresize"
31608 msgstr ""
31609
31610 #. type: verbatim
31611 #: ../src/guestfs-actions.pod:6309
31612 #, no-wrap
31613 msgid ""
31614 " int\n"
31615 " guestfs_pvresize (guestfs_h *g,\n"
31616 "                   const char *device);\n"
31617 "\n"
31618 msgstr ""
31619
31620 #. type: =head2
31621 #: ../src/guestfs-actions.pod:6320
31622 msgid "guestfs_pvresize_size"
31623 msgstr ""
31624
31625 #. type: verbatim
31626 #: ../src/guestfs-actions.pod:6322
31627 #, no-wrap
31628 msgid ""
31629 " int\n"
31630 " guestfs_pvresize_size (guestfs_h *g,\n"
31631 "                        const char *device,\n"
31632 "                        int64_t size);\n"
31633 "\n"
31634 msgstr ""
31635
31636 #. type: textblock
31637 #: ../src/guestfs-actions.pod:6327
31638 msgid ""
31639 "This command is the same as C<guestfs_pvresize> except that it allows you to "
31640 "specify the new size (in bytes) explicitly."
31641 msgstr ""
31642
31643 #. type: =head2
31644 #: ../src/guestfs-actions.pod:6334
31645 msgid "guestfs_pvs"
31646 msgstr ""
31647
31648 #. type: verbatim
31649 #: ../src/guestfs-actions.pod:6336
31650 #, no-wrap
31651 msgid ""
31652 " char **\n"
31653 " guestfs_pvs (guestfs_h *g);\n"
31654 "\n"
31655 msgstr ""
31656
31657 #. type: textblock
31658 #: ../src/guestfs-actions.pod:6345
31659 msgid "See also C<guestfs_pvs_full>."
31660 msgstr ""
31661
31662 #. type: =head2
31663 #: ../src/guestfs-actions.pod:6353
31664 msgid "guestfs_pvs_full"
31665 msgstr ""
31666
31667 #. type: verbatim
31668 #: ../src/guestfs-actions.pod:6355
31669 #, no-wrap
31670 msgid ""
31671 " struct guestfs_lvm_pv_list *\n"
31672 " guestfs_pvs_full (guestfs_h *g);\n"
31673 "\n"
31674 msgstr ""
31675
31676 #. type: textblock
31677 #: ../src/guestfs-actions.pod:6361
31678 msgid ""
31679 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
31680 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after "
31681 "use>."
31682 msgstr ""
31683
31684 #. type: =head2
31685 #: ../src/guestfs-actions.pod:6367
31686 msgid "guestfs_pvuuid"
31687 msgstr ""
31688
31689 #. type: verbatim
31690 #: ../src/guestfs-actions.pod:6369
31691 #, no-wrap
31692 msgid ""
31693 " char *\n"
31694 " guestfs_pvuuid (guestfs_h *g,\n"
31695 "                 const char *device);\n"
31696 "\n"
31697 msgstr ""
31698
31699 #. type: =head2
31700 #: ../src/guestfs-actions.pod:6380
31701 msgid "guestfs_pwrite"
31702 msgstr ""
31703
31704 #. type: verbatim
31705 #: ../src/guestfs-actions.pod:6382
31706 #, no-wrap
31707 msgid ""
31708 " int\n"
31709 " guestfs_pwrite (guestfs_h *g,\n"
31710 "                 const char *path,\n"
31711 "                 const char *content,\n"
31712 "                 size_t content_size,\n"
31713 "                 int64_t offset);\n"
31714 "\n"
31715 msgstr ""
31716
31717 #. type: textblock
31718 #: ../src/guestfs-actions.pod:6398
31719 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
31720 msgstr ""
31721
31722 #. type: =head2
31723 #: ../src/guestfs-actions.pod:6407
31724 msgid "guestfs_pwrite_device"
31725 msgstr ""
31726
31727 #. type: verbatim
31728 #: ../src/guestfs-actions.pod:6409
31729 #, no-wrap
31730 msgid ""
31731 " int\n"
31732 " guestfs_pwrite_device (guestfs_h *g,\n"
31733 "                        const char *device,\n"
31734 "                        const char *content,\n"
31735 "                        size_t content_size,\n"
31736 "                        int64_t offset);\n"
31737 "\n"
31738 msgstr ""
31739
31740 #. type: textblock
31741 #: ../src/guestfs-actions.pod:6424
31742 msgid "See also C<guestfs_pwrite>."
31743 msgstr ""
31744
31745 #. type: textblock
31746 #: ../src/guestfs-actions.pod:6431
31747 msgid "(Added in 1.5.20)"
31748 msgstr ""
31749
31750 #. type: =head2
31751 #: ../src/guestfs-actions.pod:6433
31752 msgid "guestfs_read_file"
31753 msgstr ""
31754
31755 #. type: verbatim
31756 #: ../src/guestfs-actions.pod:6435
31757 #, no-wrap
31758 msgid ""
31759 " char *\n"
31760 " guestfs_read_file (guestfs_h *g,\n"
31761 "                    const char *path,\n"
31762 "                    size_t *size_r);\n"
31763 "\n"
31764 msgstr ""
31765
31766 #. type: textblock
31767 #: ../src/guestfs-actions.pod:6443
31768 msgid ""
31769 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
31770 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
31771 "function is limited in the total size of file that can be handled."
31772 msgstr ""
31773
31774 #. type: textblock
31775 #: ../src/guestfs-actions.pod:6455
31776 msgid "(Added in 1.0.63)"
31777 msgstr ""
31778
31779 #. type: =head2
31780 #: ../src/guestfs-actions.pod:6457
31781 msgid "guestfs_read_lines"
31782 msgstr ""
31783
31784 #. type: verbatim
31785 #: ../src/guestfs-actions.pod:6459
31786 #, no-wrap
31787 msgid ""
31788 " char **\n"
31789 " guestfs_read_lines (guestfs_h *g,\n"
31790 "                     const char *path);\n"
31791 "\n"
31792 msgstr ""
31793
31794 #. type: textblock
31795 #: ../src/guestfs-actions.pod:6468
31796 msgid ""
31797 "Note that this function cannot correctly handle binary files (specifically, "
31798 "files containing C<\\0> character which is treated as end of line).  For "
31799 "those you need to use the C<guestfs_read_file> function which has a more "
31800 "complex interface."
31801 msgstr ""
31802
31803 #. type: =head2
31804 #: ../src/guestfs-actions.pod:6479
31805 msgid "guestfs_readdir"
31806 msgstr ""
31807
31808 #. type: verbatim
31809 #: ../src/guestfs-actions.pod:6481
31810 #, no-wrap
31811 msgid ""
31812 " struct guestfs_dirent_list *\n"
31813 " guestfs_readdir (guestfs_h *g,\n"
31814 "                  const char *dir);\n"
31815 "\n"
31816 msgstr ""
31817
31818 #. type: textblock
31819 #: ../src/guestfs-actions.pod:6535
31820 msgid ""
31821 "This function is primarily intended for use by programs.  To get a simple "
31822 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
31823 "consumption, use C<guestfs_ll>."
31824 msgstr ""
31825
31826 #. type: textblock
31827 #: ../src/guestfs-actions.pod:6539
31828 msgid ""
31829 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
31830 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after "
31831 "use>."
31832 msgstr ""
31833
31834 #. type: =head2
31835 #: ../src/guestfs-actions.pod:6545
31836 msgid "guestfs_readlink"
31837 msgstr ""
31838
31839 #. type: verbatim
31840 #: ../src/guestfs-actions.pod:6547
31841 #, no-wrap
31842 msgid ""
31843 " char *\n"
31844 " guestfs_readlink (guestfs_h *g,\n"
31845 "                   const char *path);\n"
31846 "\n"
31847 msgstr ""
31848
31849 #. type: =head2
31850 #: ../src/guestfs-actions.pod:6558
31851 msgid "guestfs_readlinklist"
31852 msgstr ""
31853
31854 #. type: verbatim
31855 #: ../src/guestfs-actions.pod:6560
31856 #, no-wrap
31857 msgid ""
31858 " char **\n"
31859 " guestfs_readlinklist (guestfs_h *g,\n"
31860 "                       const char *path,\n"
31861 "                       char *const *names);\n"
31862 "\n"
31863 msgstr ""
31864
31865 #. type: =head2
31866 #: ../src/guestfs-actions.pod:6593
31867 msgid "guestfs_realpath"
31868 msgstr ""
31869
31870 #. type: verbatim
31871 #: ../src/guestfs-actions.pod:6595
31872 #, no-wrap
31873 msgid ""
31874 " char *\n"
31875 " guestfs_realpath (guestfs_h *g,\n"
31876 "                   const char *path);\n"
31877 "\n"
31878 msgstr ""
31879
31880 #. type: =head2
31881 #: ../src/guestfs-actions.pod:6607
31882 msgid "guestfs_removexattr"
31883 msgstr ""
31884
31885 #. type: verbatim
31886 #: ../src/guestfs-actions.pod:6609
31887 #, no-wrap
31888 msgid ""
31889 " int\n"
31890 " guestfs_removexattr (guestfs_h *g,\n"
31891 "                      const char *xattr,\n"
31892 "                      const char *path);\n"
31893 "\n"
31894 msgstr ""
31895
31896 #. type: textblock
31897 #: ../src/guestfs-actions.pod:6617
31898 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
31899 msgstr ""
31900
31901 #. type: =head2
31902 #: ../src/guestfs-actions.pod:6623
31903 msgid "guestfs_resize2fs"
31904 msgstr ""
31905
31906 #. type: verbatim
31907 #: ../src/guestfs-actions.pod:6625
31908 #, no-wrap
31909 msgid ""
31910 " int\n"
31911 " guestfs_resize2fs (guestfs_h *g,\n"
31912 "                    const char *device);\n"
31913 "\n"
31914 msgstr ""
31915
31916 #. type: textblock
31917 #: ../src/guestfs-actions.pod:6632
31918 msgid ""
31919 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
31920 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
31921 "sometimes gives an error about this and sometimes not.  In any case, it is "
31922 "always safe to call C<guestfs_e2fsck_f> before calling this function."
31923 msgstr ""
31924
31925 #. type: =head2
31926 #: ../src/guestfs-actions.pod:6642
31927 msgid "guestfs_resize2fs_M"
31928 msgstr ""
31929
31930 #. type: verbatim
31931 #: ../src/guestfs-actions.pod:6644
31932 #, no-wrap
31933 msgid ""
31934 " int\n"
31935 " guestfs_resize2fs_M (guestfs_h *g,\n"
31936 "                      const char *device);\n"
31937 "\n"
31938 msgstr ""
31939
31940 #. type: textblock
31941 #: ../src/guestfs-actions.pod:6648
31942 msgid ""
31943 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
31944 "resized to its minimum size.  This works like the I<-M> option to the "
31945 "C<resize2fs> command."
31946 msgstr ""
31947
31948 #. type: textblock
31949 #: ../src/guestfs-actions.pod:6652
31950 msgid ""
31951 "To get the resulting size of the filesystem you should call "
31952 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
31953 "These two numbers, multiplied together, give the resulting size of the "
31954 "minimal filesystem in bytes."
31955 msgstr ""
31956
31957 #. type: =head2
31958 #: ../src/guestfs-actions.pod:6661
31959 msgid "guestfs_resize2fs_size"
31960 msgstr ""
31961
31962 #. type: verbatim
31963 #: ../src/guestfs-actions.pod:6663
31964 #, no-wrap
31965 msgid ""
31966 " int\n"
31967 " guestfs_resize2fs_size (guestfs_h *g,\n"
31968 "                         const char *device,\n"
31969 "                         int64_t size);\n"
31970 "\n"
31971 msgstr ""
31972
31973 #. type: textblock
31974 #: ../src/guestfs-actions.pod:6668
31975 msgid ""
31976 "This command is the same as C<guestfs_resize2fs> except that it allows you "
31977 "to specify the new size (in bytes) explicitly."
31978 msgstr ""
31979
31980 #. type: =head2
31981 #: ../src/guestfs-actions.pod:6675
31982 msgid "guestfs_rm"
31983 msgstr ""
31984
31985 #. type: verbatim
31986 #: ../src/guestfs-actions.pod:6677
31987 #, no-wrap
31988 msgid ""
31989 " int\n"
31990 " guestfs_rm (guestfs_h *g,\n"
31991 "             const char *path);\n"
31992 "\n"
31993 msgstr ""
31994
31995 #. type: =head2
31996 #: ../src/guestfs-actions.pod:6687
31997 msgid "guestfs_rm_rf"
31998 msgstr ""
31999
32000 #. type: verbatim
32001 #: ../src/guestfs-actions.pod:6689
32002 #, no-wrap
32003 msgid ""
32004 " int\n"
32005 " guestfs_rm_rf (guestfs_h *g,\n"
32006 "                const char *path);\n"
32007 "\n"
32008 msgstr ""
32009
32010 #. type: =head2
32011 #: ../src/guestfs-actions.pod:6701
32012 msgid "guestfs_rmdir"
32013 msgstr ""
32014
32015 #. type: verbatim
32016 #: ../src/guestfs-actions.pod:6703
32017 #, no-wrap
32018 msgid ""
32019 " int\n"
32020 " guestfs_rmdir (guestfs_h *g,\n"
32021 "                const char *path);\n"
32022 "\n"
32023 msgstr ""
32024
32025 #. type: =head2
32026 #: ../src/guestfs-actions.pod:6713
32027 msgid "guestfs_rmmountpoint"
32028 msgstr ""
32029
32030 #. type: verbatim
32031 #: ../src/guestfs-actions.pod:6715
32032 #, no-wrap
32033 msgid ""
32034 " int\n"
32035 " guestfs_rmmountpoint (guestfs_h *g,\n"
32036 "                       const char *exemptpath);\n"
32037 "\n"
32038 msgstr ""
32039
32040 #. type: textblock
32041 #: ../src/guestfs-actions.pod:6719
32042 msgid ""
32043 "This calls removes a mountpoint that was previously created with "
32044 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
32045 msgstr ""
32046
32047 #. type: =head2
32048 #: ../src/guestfs-actions.pod:6727
32049 msgid "guestfs_scrub_device"
32050 msgstr ""
32051
32052 #. type: verbatim
32053 #: ../src/guestfs-actions.pod:6729
32054 #, no-wrap
32055 msgid ""
32056 " int\n"
32057 " guestfs_scrub_device (guestfs_h *g,\n"
32058 "                       const char *device);\n"
32059 "\n"
32060 msgstr ""
32061
32062 #. type: textblock
32063 #: ../src/guestfs-actions.pod:6741 ../src/guestfs-actions.pod:6759 ../src/guestfs-actions.pod:6778
32064 msgid "(Added in 1.0.52)"
32065 msgstr ""
32066
32067 #. type: =head2
32068 #: ../src/guestfs-actions.pod:6743
32069 msgid "guestfs_scrub_file"
32070 msgstr ""
32071
32072 #. type: verbatim
32073 #: ../src/guestfs-actions.pod:6745
32074 #, no-wrap
32075 msgid ""
32076 " int\n"
32077 " guestfs_scrub_file (guestfs_h *g,\n"
32078 "                     const char *file);\n"
32079 "\n"
32080 msgstr ""
32081
32082 #. type: =head2
32083 #: ../src/guestfs-actions.pod:6761
32084 msgid "guestfs_scrub_freespace"
32085 msgstr ""
32086
32087 #. type: verbatim
32088 #: ../src/guestfs-actions.pod:6763
32089 #, no-wrap
32090 msgid ""
32091 " int\n"
32092 " guestfs_scrub_freespace (guestfs_h *g,\n"
32093 "                          const char *dir);\n"
32094 "\n"
32095 msgstr ""
32096
32097 #. type: textblock
32098 #: ../src/guestfs-actions.pod:6767
32099 msgid ""
32100 "This command creates the directory C<dir> and then fills it with files until "
32101 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
32102 "and deletes them.  The intention is to scrub any free space on the partition "
32103 "containing C<dir>."
32104 msgstr ""
32105
32106 #. type: =head2
32107 #: ../src/guestfs-actions.pod:6780
32108 msgid "guestfs_set_append"
32109 msgstr ""
32110
32111 #. type: verbatim
32112 #: ../src/guestfs-actions.pod:6782
32113 #, no-wrap
32114 msgid ""
32115 " int\n"
32116 " guestfs_set_append (guestfs_h *g,\n"
32117 "                     const char *append);\n"
32118 "\n"
32119 msgstr ""
32120
32121 #. type: =head2
32122 #: ../src/guestfs-actions.pod:6799
32123 msgid "guestfs_set_attach_method"
32124 msgstr ""
32125
32126 #. type: verbatim
32127 #: ../src/guestfs-actions.pod:6801
32128 #, no-wrap
32129 msgid ""
32130 " int\n"
32131 " guestfs_set_attach_method (guestfs_h *g,\n"
32132 "                            const char *attachmethod);\n"
32133 "\n"
32134 msgstr ""
32135
32136 #. type: =head2
32137 #: ../src/guestfs-actions.pod:6829
32138 msgid "guestfs_set_autosync"
32139 msgstr ""
32140
32141 #. type: verbatim
32142 #: ../src/guestfs-actions.pod:6831
32143 #, no-wrap
32144 msgid ""
32145 " int\n"
32146 " guestfs_set_autosync (guestfs_h *g,\n"
32147 "                       int autosync);\n"
32148 "\n"
32149 msgstr ""
32150
32151 #. type: =head2
32152 #: ../src/guestfs-actions.pod:6847
32153 msgid "guestfs_set_direct"
32154 msgstr ""
32155
32156 #. type: verbatim
32157 #: ../src/guestfs-actions.pod:6849
32158 #, no-wrap
32159 msgid ""
32160 " int\n"
32161 " guestfs_set_direct (guestfs_h *g,\n"
32162 "                     int direct);\n"
32163 "\n"
32164 msgstr ""
32165
32166 #. type: textblock
32167 #: ../src/guestfs-actions.pod:6857
32168 msgid ""
32169 "One consequence of this is that log messages aren't caught by the library "
32170 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
32171 "stdout."
32172 msgstr ""
32173
32174 #. type: =head2
32175 #: ../src/guestfs-actions.pod:6870
32176 msgid "guestfs_set_e2label"
32177 msgstr ""
32178
32179 #. type: verbatim
32180 #: ../src/guestfs-actions.pod:6872
32181 #, no-wrap
32182 msgid ""
32183 " int\n"
32184 " guestfs_set_e2label (guestfs_h *g,\n"
32185 "                      const char *device,\n"
32186 "                      const char *label);\n"
32187 "\n"
32188 msgstr ""
32189
32190 #. type: textblock
32191 #: ../src/guestfs-actions.pod:6881
32192 msgid ""
32193 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
32194 "the existing label on a filesystem."
32195 msgstr ""
32196
32197 #. type: =head2
32198 #: ../src/guestfs-actions.pod:6888
32199 msgid "guestfs_set_e2uuid"
32200 msgstr ""
32201
32202 #. type: verbatim
32203 #: ../src/guestfs-actions.pod:6890
32204 #, no-wrap
32205 msgid ""
32206 " int\n"
32207 " guestfs_set_e2uuid (guestfs_h *g,\n"
32208 "                     const char *device,\n"
32209 "                     const char *uuid);\n"
32210 "\n"
32211 msgstr ""
32212
32213 #. type: textblock
32214 #: ../src/guestfs-actions.pod:6900
32215 msgid ""
32216 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
32217 "the existing UUID of a filesystem."
32218 msgstr ""
32219
32220 #. type: =head2
32221 #: ../src/guestfs-actions.pod:6907
32222 msgid "guestfs_set_memsize"
32223 msgstr ""
32224
32225 #. type: verbatim
32226 #: ../src/guestfs-actions.pod:6909
32227 #, no-wrap
32228 msgid ""
32229 " int\n"
32230 " guestfs_set_memsize (guestfs_h *g,\n"
32231 "                      int memsize);\n"
32232 "\n"
32233 msgstr ""
32234
32235 #. type: textblock
32236 #: ../src/guestfs-actions.pod:6913
32237 msgid ""
32238 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
32239 "This only has any effect if called before C<guestfs_launch>."
32240 msgstr ""
32241
32242 #. type: =head2
32243 #: ../src/guestfs-actions.pod:6928
32244 msgid "guestfs_set_network"
32245 msgstr ""
32246
32247 #. type: verbatim
32248 #: ../src/guestfs-actions.pod:6930
32249 #, no-wrap
32250 msgid ""
32251 " int\n"
32252 " guestfs_set_network (guestfs_h *g,\n"
32253 "                      int network);\n"
32254 "\n"
32255 msgstr ""
32256
32257 #. type: textblock
32258 #: ../src/guestfs-actions.pod:6940
32259 msgid ""
32260 "You must call this before calling C<guestfs_launch>, otherwise it has no "
32261 "effect."
32262 msgstr ""
32263
32264 #. type: =head2
32265 #: ../src/guestfs-actions.pod:6947
32266 msgid "guestfs_set_path"
32267 msgstr ""
32268
32269 #. type: verbatim
32270 #: ../src/guestfs-actions.pod:6949
32271 #, no-wrap
32272 msgid ""
32273 " int\n"
32274 " guestfs_set_path (guestfs_h *g,\n"
32275 "                   const char *searchpath);\n"
32276 "\n"
32277 msgstr ""
32278
32279 #. type: =head2
32280 #: ../src/guestfs-actions.pod:6964
32281 msgid "guestfs_set_pgroup"
32282 msgstr ""
32283
32284 #. type: verbatim
32285 #: ../src/guestfs-actions.pod:6966
32286 #, no-wrap
32287 msgid ""
32288 " int\n"
32289 " guestfs_set_pgroup (guestfs_h *g,\n"
32290 "                     int pgroup);\n"
32291 "\n"
32292 msgstr ""
32293
32294 #. type: =head2
32295 #: ../src/guestfs-actions.pod:6983
32296 msgid "guestfs_set_qemu"
32297 msgstr ""
32298
32299 #. type: verbatim
32300 #: ../src/guestfs-actions.pod:6985
32301 #, no-wrap
32302 msgid ""
32303 " int\n"
32304 " guestfs_set_qemu (guestfs_h *g,\n"
32305 "                   const char *qemu);\n"
32306 "\n"
32307 msgstr ""
32308
32309 #. type: =head2
32310 #: ../src/guestfs-actions.pod:7011
32311 msgid "guestfs_set_recovery_proc"
32312 msgstr ""
32313
32314 #. type: verbatim
32315 #: ../src/guestfs-actions.pod:7013
32316 #, no-wrap
32317 msgid ""
32318 " int\n"
32319 " guestfs_set_recovery_proc (guestfs_h *g,\n"
32320 "                            int recoveryproc);\n"
32321 "\n"
32322 msgstr ""
32323
32324 #. type: textblock
32325 #: ../src/guestfs-actions.pod:7017
32326 msgid ""
32327 "If this is called with the parameter C<false> then C<guestfs_launch> does "
32328 "not create a recovery process.  The purpose of the recovery process is to "
32329 "stop runaway qemu processes in the case where the main program aborts "
32330 "abruptly."
32331 msgstr ""
32332
32333 #. type: textblock
32334 #: ../src/guestfs-actions.pod:7022
32335 msgid ""
32336 "This only has any effect if called before C<guestfs_launch>, and the default "
32337 "is true."
32338 msgstr ""
32339
32340 #. type: =head2
32341 #: ../src/guestfs-actions.pod:7035
32342 msgid "guestfs_set_selinux"
32343 msgstr ""
32344
32345 #. type: verbatim
32346 #: ../src/guestfs-actions.pod:7037
32347 #, no-wrap
32348 msgid ""
32349 " int\n"
32350 " guestfs_set_selinux (guestfs_h *g,\n"
32351 "                      int selinux);\n"
32352 "\n"
32353 msgstr ""
32354
32355 #. type: =head2
32356 #: ../src/guestfs-actions.pod:7054
32357 msgid "guestfs_set_smp"
32358 msgstr ""
32359
32360 #. type: verbatim
32361 #: ../src/guestfs-actions.pod:7056
32362 #, no-wrap
32363 msgid ""
32364 " int\n"
32365 " guestfs_set_smp (guestfs_h *g,\n"
32366 "                  int smp);\n"
32367 "\n"
32368 msgstr ""
32369
32370 #. type: textblock
32371 #: ../src/guestfs-actions.pod:7064
32372 msgid "This function must be called before C<guestfs_launch>."
32373 msgstr ""
32374
32375 #. type: =head2
32376 #: ../src/guestfs-actions.pod:7070
32377 msgid "guestfs_set_trace"
32378 msgstr ""
32379
32380 #. type: verbatim
32381 #: ../src/guestfs-actions.pod:7072
32382 #, no-wrap
32383 msgid ""
32384 " int\n"
32385 " guestfs_set_trace (guestfs_h *g,\n"
32386 "                    int trace);\n"
32387 "\n"
32388 msgstr ""
32389
32390 #. type: textblock
32391 #: ../src/guestfs-actions.pod:7086
32392 msgid ""
32393 "Trace messages are normally sent to C<stderr>, unless you register a "
32394 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
32395 msgstr ""
32396
32397 #. type: =head2
32398 #: ../src/guestfs-actions.pod:7094
32399 msgid "guestfs_set_verbose"
32400 msgstr ""
32401
32402 #. type: verbatim
32403 #: ../src/guestfs-actions.pod:7096
32404 #, no-wrap
32405 msgid ""
32406 " int\n"
32407 " guestfs_set_verbose (guestfs_h *g,\n"
32408 "                      int verbose);\n"
32409 "\n"
32410 msgstr ""
32411
32412 #. type: textblock
32413 #: ../src/guestfs-actions.pod:7105
32414 msgid ""
32415 "Verbose messages are normally sent to C<stderr>, unless you register a "
32416 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
32417 msgstr ""
32418
32419 #. type: =head2
32420 #: ../src/guestfs-actions.pod:7113
32421 msgid "guestfs_setcon"
32422 msgstr ""
32423
32424 #. type: verbatim
32425 #: ../src/guestfs-actions.pod:7115
32426 #, no-wrap
32427 msgid ""
32428 " int\n"
32429 " guestfs_setcon (guestfs_h *g,\n"
32430 "                 const char *context);\n"
32431 "\n"
32432 msgstr ""
32433
32434 #. type: =head2
32435 #: ../src/guestfs-actions.pod:7128
32436 msgid "guestfs_setxattr"
32437 msgstr ""
32438
32439 #. type: verbatim
32440 #: ../src/guestfs-actions.pod:7130
32441 #, no-wrap
32442 msgid ""
32443 " int\n"
32444 " guestfs_setxattr (guestfs_h *g,\n"
32445 "                   const char *xattr,\n"
32446 "                   const char *val,\n"
32447 "                   int vallen,\n"
32448 "                   const char *path);\n"
32449 "\n"
32450 msgstr ""
32451
32452 #. type: textblock
32453 #: ../src/guestfs-actions.pod:7141
32454 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
32455 msgstr ""
32456
32457 #. type: =head2
32458 #: ../src/guestfs-actions.pod:7147
32459 msgid "guestfs_sfdisk"
32460 msgstr ""
32461
32462 #. type: verbatim
32463 #: ../src/guestfs-actions.pod:7149
32464 #, no-wrap
32465 msgid ""
32466 " int\n"
32467 " guestfs_sfdisk (guestfs_h *g,\n"
32468 "                 const char *device,\n"
32469 "                 int cyls,\n"
32470 "                 int heads,\n"
32471 "                 int sectors,\n"
32472 "                 char *const *lines);\n"
32473 "\n"
32474 msgstr ""
32475
32476 #. type: textblock
32477 #: ../src/guestfs-actions.pod:7157 ../src/guestfs-actions.pod:7198 ../src/guestfs-actions.pod:7229
32478 msgid ""
32479 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
32480 "call instead."
32481 msgstr ""
32482
32483 #. type: textblock
32484 #: ../src/guestfs-actions.pod:7184
32485 msgid "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
32486 msgstr ""
32487
32488 #. type: =head2
32489 #: ../src/guestfs-actions.pod:7191
32490 msgid "guestfs_sfdiskM"
32491 msgstr ""
32492
32493 #. type: verbatim
32494 #: ../src/guestfs-actions.pod:7193
32495 #, no-wrap
32496 msgid ""
32497 " int\n"
32498 " guestfs_sfdiskM (guestfs_h *g,\n"
32499 "                  const char *device,\n"
32500 "                  char *const *lines);\n"
32501 "\n"
32502 msgstr ""
32503
32504 #. type: textblock
32505 #: ../src/guestfs-actions.pod:7205
32506 msgid ""
32507 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
32508 "partition sizes are specified in megabytes only (rounded to the nearest "
32509 "cylinder) and you don't need to specify the cyls, heads and sectors "
32510 "parameters which were rarely if ever used anyway."
32511 msgstr ""
32512
32513 #. type: textblock
32514 #: ../src/guestfs-actions.pod:7211
32515 msgid ""
32516 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
32517 "C<guestfs_part_disk>"
32518 msgstr ""
32519
32520 #. type: =head2
32521 #: ../src/guestfs-actions.pod:7218
32522 msgid "guestfs_sfdisk_N"
32523 msgstr ""
32524
32525 #. type: verbatim
32526 #: ../src/guestfs-actions.pod:7220
32527 #, no-wrap
32528 msgid ""
32529 " int\n"
32530 " guestfs_sfdisk_N (guestfs_h *g,\n"
32531 "                   const char *device,\n"
32532 "                   int partnum,\n"
32533 "                   int cyls,\n"
32534 "                   int heads,\n"
32535 "                   int sectors,\n"
32536 "                   const char *line);\n"
32537 "\n"
32538 msgstr ""
32539
32540 #. type: textblock
32541 #: ../src/guestfs-actions.pod:7239
32542 msgid ""
32543 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
32544 "for the cyls/heads/sectors parameters."
32545 msgstr ""
32546
32547 #. type: textblock
32548 #: ../src/guestfs-actions.pod:7242
32549 msgid "See also: C<guestfs_part_add>"
32550 msgstr ""
32551
32552 #. type: =head2
32553 #: ../src/guestfs-actions.pod:7248
32554 msgid "guestfs_sfdisk_disk_geometry"
32555 msgstr ""
32556
32557 #. type: verbatim
32558 #: ../src/guestfs-actions.pod:7250
32559 #, no-wrap
32560 msgid ""
32561 " char *\n"
32562 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
32563 "                               const char *device);\n"
32564 "\n"
32565 msgstr ""
32566
32567 #. type: textblock
32568 #: ../src/guestfs-actions.pod:7254
32569 msgid ""
32570 "This displays the disk geometry of C<device> read from the partition table.  "
32571 "Especially in the case where the underlying block device has been resized, "
32572 "this can be different from the kernel's idea of the geometry (see "
32573 "C<guestfs_sfdisk_kernel_geometry>)."
32574 msgstr ""
32575
32576 #. type: =head2
32577 #: ../src/guestfs-actions.pod:7267
32578 msgid "guestfs_sfdisk_kernel_geometry"
32579 msgstr ""
32580
32581 #. type: verbatim
32582 #: ../src/guestfs-actions.pod:7269
32583 #, no-wrap
32584 msgid ""
32585 " char *\n"
32586 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
32587 "                                 const char *device);\n"
32588 "\n"
32589 msgstr ""
32590
32591 #. type: =head2
32592 #: ../src/guestfs-actions.pod:7283
32593 msgid "guestfs_sfdisk_l"
32594 msgstr ""
32595
32596 #. type: verbatim
32597 #: ../src/guestfs-actions.pod:7285
32598 #, no-wrap
32599 msgid ""
32600 " char *\n"
32601 " guestfs_sfdisk_l (guestfs_h *g,\n"
32602 "                   const char *device);\n"
32603 "\n"
32604 msgstr ""
32605
32606 #. type: textblock
32607 #: ../src/guestfs-actions.pod:7289
32608 msgid ""
32609 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
32610 "call instead."
32611 msgstr ""
32612
32613 #. type: textblock
32614 #: ../src/guestfs-actions.pod:7300
32615 msgid "See also: C<guestfs_part_list>"
32616 msgstr ""
32617
32618 #. type: =head2
32619 #: ../src/guestfs-actions.pod:7307
32620 msgid "guestfs_sh"
32621 msgstr ""
32622
32623 #. type: verbatim
32624 #: ../src/guestfs-actions.pod:7309
32625 #, no-wrap
32626 msgid ""
32627 " char *\n"
32628 " guestfs_sh (guestfs_h *g,\n"
32629 "             const char *command);\n"
32630 "\n"
32631 msgstr ""
32632
32633 #. type: textblock
32634 #: ../src/guestfs-actions.pod:7316
32635 msgid "This is like C<guestfs_command>, but passes the command to:"
32636 msgstr ""
32637
32638 #. type: textblock
32639 #: ../src/guestfs-actions.pod:7324
32640 msgid "All the provisos about C<guestfs_command> apply to this call."
32641 msgstr ""
32642
32643 #. type: =head2
32644 #: ../src/guestfs-actions.pod:7331
32645 msgid "guestfs_sh_lines"
32646 msgstr ""
32647
32648 #. type: verbatim
32649 #: ../src/guestfs-actions.pod:7333
32650 #, no-wrap
32651 msgid ""
32652 " char **\n"
32653 " guestfs_sh_lines (guestfs_h *g,\n"
32654 "                   const char *command);\n"
32655 "\n"
32656 msgstr ""
32657
32658 #. type: textblock
32659 #: ../src/guestfs-actions.pod:7337
32660 msgid ""
32661 "This is the same as C<guestfs_sh>, but splits the result into a list of "
32662 "lines."
32663 msgstr ""
32664
32665 #. type: textblock
32666 #: ../src/guestfs-actions.pod:7340
32667 msgid "See also: C<guestfs_command_lines>"
32668 msgstr ""
32669
32670 #. type: =head2
32671 #: ../src/guestfs-actions.pod:7348
32672 msgid "guestfs_sleep"
32673 msgstr ""
32674
32675 #. type: verbatim
32676 #: ../src/guestfs-actions.pod:7350
32677 #, no-wrap
32678 msgid ""
32679 " int\n"
32680 " guestfs_sleep (guestfs_h *g,\n"
32681 "                int secs);\n"
32682 "\n"
32683 msgstr ""
32684
32685 #. type: textblock
32686 #: ../src/guestfs-actions.pod:7358
32687 msgid "(Added in 1.0.41)"
32688 msgstr ""
32689
32690 #. type: =head2
32691 #: ../src/guestfs-actions.pod:7360 ../src/guestfs-structs.pod:109
32692 msgid "guestfs_stat"
32693 msgstr ""
32694
32695 #. type: verbatim
32696 #: ../src/guestfs-actions.pod:7362
32697 #, no-wrap
32698 msgid ""
32699 " struct guestfs_stat *\n"
32700 " guestfs_stat (guestfs_h *g,\n"
32701 "               const char *path);\n"
32702 "\n"
32703 msgstr ""
32704
32705 #. type: =head2
32706 #: ../src/guestfs-actions.pod:7376 ../src/guestfs-structs.pod:135
32707 msgid "guestfs_statvfs"
32708 msgstr ""
32709
32710 #. type: verbatim
32711 #: ../src/guestfs-actions.pod:7378
32712 #, no-wrap
32713 msgid ""
32714 " struct guestfs_statvfs *\n"
32715 " guestfs_statvfs (guestfs_h *g,\n"
32716 "                  const char *path);\n"
32717 "\n"
32718 msgstr ""
32719
32720 #. type: textblock
32721 #: ../src/guestfs-actions.pod:7388
32722 msgid ""
32723 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
32724 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
32725 msgstr ""
32726
32727 #. type: =head2
32728 #: ../src/guestfs-actions.pod:7394
32729 msgid "guestfs_strings"
32730 msgstr ""
32731
32732 #. type: verbatim
32733 #: ../src/guestfs-actions.pod:7396
32734 #, no-wrap
32735 msgid ""
32736 " char **\n"
32737 " guestfs_strings (guestfs_h *g,\n"
32738 "                  const char *path);\n"
32739 "\n"
32740 msgstr ""
32741
32742 #. type: =head2
32743 #: ../src/guestfs-actions.pod:7412
32744 msgid "guestfs_strings_e"
32745 msgstr ""
32746
32747 #. type: verbatim
32748 #: ../src/guestfs-actions.pod:7414
32749 #, no-wrap
32750 msgid ""
32751 " char **\n"
32752 " guestfs_strings_e (guestfs_h *g,\n"
32753 "                    const char *encoding,\n"
32754 "                    const char *path);\n"
32755 "\n"
32756 msgstr ""
32757
32758 #. type: textblock
32759 #: ../src/guestfs-actions.pod:7419
32760 msgid ""
32761 "This is like the C<guestfs_strings> command, but allows you to specify the "
32762 "encoding of strings that are looked for in the source file C<path>."
32763 msgstr ""
32764
32765 #. type: textblock
32766 #: ../src/guestfs-actions.pod:7429
32767 msgid ""
32768 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
32769 "ISO-8859-X (this is what C<guestfs_strings> uses)."
32770 msgstr ""
32771
32772 #. type: =head2
32773 #: ../src/guestfs-actions.pod:7467
32774 msgid "guestfs_swapoff_device"
32775 msgstr ""
32776
32777 #. type: verbatim
32778 #: ../src/guestfs-actions.pod:7469
32779 #, no-wrap
32780 msgid ""
32781 " int\n"
32782 " guestfs_swapoff_device (guestfs_h *g,\n"
32783 "                         const char *device);\n"
32784 "\n"
32785 msgstr ""
32786
32787 #. type: textblock
32788 #: ../src/guestfs-actions.pod:7473
32789 msgid ""
32790 "This command disables the libguestfs appliance swap device or partition "
32791 "named C<device>.  See C<guestfs_swapon_device>."
32792 msgstr ""
32793
32794 #. type: =head2
32795 #: ../src/guestfs-actions.pod:7481
32796 msgid "guestfs_swapoff_file"
32797 msgstr ""
32798
32799 #. type: verbatim
32800 #: ../src/guestfs-actions.pod:7483
32801 #, no-wrap
32802 msgid ""
32803 " int\n"
32804 " guestfs_swapoff_file (guestfs_h *g,\n"
32805 "                       const char *file);\n"
32806 "\n"
32807 msgstr ""
32808
32809 #. type: =head2
32810 #: ../src/guestfs-actions.pod:7493
32811 msgid "guestfs_swapoff_label"
32812 msgstr ""
32813
32814 #. type: verbatim
32815 #: ../src/guestfs-actions.pod:7495
32816 #, no-wrap
32817 msgid ""
32818 " int\n"
32819 " guestfs_swapoff_label (guestfs_h *g,\n"
32820 "                        const char *label);\n"
32821 "\n"
32822 msgstr ""
32823
32824 #. type: =head2
32825 #: ../src/guestfs-actions.pod:7506
32826 msgid "guestfs_swapoff_uuid"
32827 msgstr ""
32828
32829 #. type: verbatim
32830 #: ../src/guestfs-actions.pod:7508
32831 #, no-wrap
32832 msgid ""
32833 " int\n"
32834 " guestfs_swapoff_uuid (guestfs_h *g,\n"
32835 "                       const char *uuid);\n"
32836 "\n"
32837 msgstr ""
32838
32839 #. type: =head2
32840 #: ../src/guestfs-actions.pod:7519
32841 msgid "guestfs_swapon_device"
32842 msgstr ""
32843
32844 #. type: verbatim
32845 #: ../src/guestfs-actions.pod:7521
32846 #, no-wrap
32847 msgid ""
32848 " int\n"
32849 " guestfs_swapon_device (guestfs_h *g,\n"
32850 "                        const char *device);\n"
32851 "\n"
32852 msgstr ""
32853
32854 #. type: textblock
32855 #: ../src/guestfs-actions.pod:7525
32856 msgid ""
32857 "This command enables the libguestfs appliance to use the swap device or "
32858 "partition named C<device>.  The increased memory is made available for all "
32859 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
32860 msgstr ""
32861
32862 #. type: =head2
32863 #: ../src/guestfs-actions.pod:7541
32864 msgid "guestfs_swapon_file"
32865 msgstr ""
32866
32867 #. type: verbatim
32868 #: ../src/guestfs-actions.pod:7543
32869 #, no-wrap
32870 msgid ""
32871 " int\n"
32872 " guestfs_swapon_file (guestfs_h *g,\n"
32873 "                      const char *file);\n"
32874 "\n"
32875 msgstr ""
32876
32877 #. type: textblock
32878 #: ../src/guestfs-actions.pod:7547
32879 msgid ""
32880 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
32881 "notes."
32882 msgstr ""
32883
32884 #. type: =head2
32885 #: ../src/guestfs-actions.pod:7554
32886 msgid "guestfs_swapon_label"
32887 msgstr ""
32888
32889 #. type: verbatim
32890 #: ../src/guestfs-actions.pod:7556
32891 #, no-wrap
32892 msgid ""
32893 " int\n"
32894 " guestfs_swapon_label (guestfs_h *g,\n"
32895 "                       const char *label);\n"
32896 "\n"
32897 msgstr ""
32898
32899 #. type: textblock
32900 #: ../src/guestfs-actions.pod:7560
32901 msgid ""
32902 "This command enables swap to a labeled swap partition.  See "
32903 "C<guestfs_swapon_device> for other notes."
32904 msgstr ""
32905
32906 #. type: =head2
32907 #: ../src/guestfs-actions.pod:7567
32908 msgid "guestfs_swapon_uuid"
32909 msgstr ""
32910
32911 #. type: verbatim
32912 #: ../src/guestfs-actions.pod:7569
32913 #, no-wrap
32914 msgid ""
32915 " int\n"
32916 " guestfs_swapon_uuid (guestfs_h *g,\n"
32917 "                      const char *uuid);\n"
32918 "\n"
32919 msgstr ""
32920
32921 #. type: textblock
32922 #: ../src/guestfs-actions.pod:7573
32923 msgid ""
32924 "This command enables swap to a swap partition with the given UUID.  See "
32925 "C<guestfs_swapon_device> for other notes."
32926 msgstr ""
32927
32928 #. type: =head2
32929 #: ../src/guestfs-actions.pod:7580
32930 msgid "guestfs_sync"
32931 msgstr ""
32932
32933 #. type: verbatim
32934 #: ../src/guestfs-actions.pod:7582
32935 #, no-wrap
32936 msgid ""
32937 " int\n"
32938 " guestfs_sync (guestfs_h *g);\n"
32939 "\n"
32940 msgstr ""
32941
32942 #. type: =head2
32943 #: ../src/guestfs-actions.pod:7595
32944 msgid "guestfs_tail"
32945 msgstr ""
32946
32947 #. type: verbatim
32948 #: ../src/guestfs-actions.pod:7597
32949 #, no-wrap
32950 msgid ""
32951 " char **\n"
32952 " guestfs_tail (guestfs_h *g,\n"
32953 "               const char *path);\n"
32954 "\n"
32955 msgstr ""
32956
32957 #. type: =head2
32958 #: ../src/guestfs-actions.pod:7613
32959 msgid "guestfs_tail_n"
32960 msgstr ""
32961
32962 #. type: verbatim
32963 #: ../src/guestfs-actions.pod:7615
32964 #, no-wrap
32965 msgid ""
32966 " char **\n"
32967 " guestfs_tail_n (guestfs_h *g,\n"
32968 "                 int nrlines,\n"
32969 "                 const char *path);\n"
32970 "\n"
32971 msgstr ""
32972
32973 #. type: =head2
32974 #: ../src/guestfs-actions.pod:7637
32975 msgid "guestfs_tar_in"
32976 msgstr ""
32977
32978 #. type: verbatim
32979 #: ../src/guestfs-actions.pod:7639
32980 #, no-wrap
32981 msgid ""
32982 " int\n"
32983 " guestfs_tar_in (guestfs_h *g,\n"
32984 "                 const char *tarfile,\n"
32985 "                 const char *directory);\n"
32986 "\n"
32987 msgstr ""
32988
32989 #. type: textblock
32990 #: ../src/guestfs-actions.pod:7647
32991 msgid "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
32992 msgstr ""
32993
32994 #. type: textblock
32995 #: ../src/guestfs-actions.pod:7652 ../src/guestfs-actions.pod:7669 ../src/guestfs-actions.pod:7685 ../src/guestfs-actions.pod:7701
32996 msgid "(Added in 1.0.3)"
32997 msgstr ""
32998
32999 #. type: =head2
33000 #: ../src/guestfs-actions.pod:7654
33001 msgid "guestfs_tar_out"
33002 msgstr ""
33003
33004 #. type: verbatim
33005 #: ../src/guestfs-actions.pod:7656
33006 #, no-wrap
33007 msgid ""
33008 " int\n"
33009 " guestfs_tar_out (guestfs_h *g,\n"
33010 "                  const char *directory,\n"
33011 "                  const char *tarfile);\n"
33012 "\n"
33013 msgstr ""
33014
33015 #. type: textblock
33016 #: ../src/guestfs-actions.pod:7664
33017 msgid ""
33018 "To download a compressed tarball, use C<guestfs_tgz_out> or "
33019 "C<guestfs_txz_out>."
33020 msgstr ""
33021
33022 #. type: =head2
33023 #: ../src/guestfs-actions.pod:7671
33024 msgid "guestfs_tgz_in"
33025 msgstr ""
33026
33027 #. type: verbatim
33028 #: ../src/guestfs-actions.pod:7673
33029 #, no-wrap
33030 msgid ""
33031 " int\n"
33032 " guestfs_tgz_in (guestfs_h *g,\n"
33033 "                 const char *tarball,\n"
33034 "                 const char *directory);\n"
33035 "\n"
33036 msgstr ""
33037
33038 #. type: textblock
33039 #: ../src/guestfs-actions.pod:7681
33040 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
33041 msgstr ""
33042
33043 #. type: =head2
33044 #: ../src/guestfs-actions.pod:7687
33045 msgid "guestfs_tgz_out"
33046 msgstr ""
33047
33048 #. type: verbatim
33049 #: ../src/guestfs-actions.pod:7689
33050 #, no-wrap
33051 msgid ""
33052 " int\n"
33053 " guestfs_tgz_out (guestfs_h *g,\n"
33054 "                  const char *directory,\n"
33055 "                  const char *tarball);\n"
33056 "\n"
33057 msgstr ""
33058
33059 #. type: textblock
33060 #: ../src/guestfs-actions.pod:7697
33061 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
33062 msgstr ""
33063
33064 #. type: =head2
33065 #: ../src/guestfs-actions.pod:7703
33066 msgid "guestfs_touch"
33067 msgstr ""
33068
33069 #. type: verbatim
33070 #: ../src/guestfs-actions.pod:7705
33071 #, no-wrap
33072 msgid ""
33073 " int\n"
33074 " guestfs_touch (guestfs_h *g,\n"
33075 "                const char *path);\n"
33076 "\n"
33077 msgstr ""
33078
33079 #. type: =head2
33080 #: ../src/guestfs-actions.pod:7720
33081 msgid "guestfs_truncate"
33082 msgstr ""
33083
33084 #. type: verbatim
33085 #: ../src/guestfs-actions.pod:7722
33086 #, no-wrap
33087 msgid ""
33088 " int\n"
33089 " guestfs_truncate (guestfs_h *g,\n"
33090 "                   const char *path);\n"
33091 "\n"
33092 msgstr ""
33093
33094 #. type: =head2
33095 #: ../src/guestfs-actions.pod:7733
33096 msgid "guestfs_truncate_size"
33097 msgstr ""
33098
33099 #. type: verbatim
33100 #: ../src/guestfs-actions.pod:7735
33101 #, no-wrap
33102 msgid ""
33103 " int\n"
33104 " guestfs_truncate_size (guestfs_h *g,\n"
33105 "                        const char *path,\n"
33106 "                        int64_t size);\n"
33107 "\n"
33108 msgstr ""
33109
33110 #. type: textblock
33111 #: ../src/guestfs-actions.pod:7743
33112 msgid ""
33113 "If the current file size is less than C<size> then the file is extended to "
33114 "the required size with zero bytes.  This creates a sparse file (ie. disk "
33115 "blocks are not allocated for the file until you write to it).  To create a "
33116 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
33117 msgstr ""
33118
33119 #. type: =head2
33120 #: ../src/guestfs-actions.pod:7753
33121 msgid "guestfs_tune2fs"
33122 msgstr ""
33123
33124 #. type: verbatim
33125 #: ../src/guestfs-actions.pod:7755
33126 #, no-wrap
33127 msgid ""
33128 " int\n"
33129 " guestfs_tune2fs (guestfs_h *g,\n"
33130 "                  const char *device,\n"
33131 "                  ...);\n"
33132 "\n"
33133 msgstr ""
33134
33135 #. type: verbatim
33136 #: ../src/guestfs-actions.pod:7765
33137 #, no-wrap
33138 msgid ""
33139 " GUESTFS_TUNE2FS_FORCE, int force,\n"
33140 " GUESTFS_TUNE2FS_MAXMOUNTCOUNT, int maxmountcount,\n"
33141 " GUESTFS_TUNE2FS_MOUNTCOUNT, int mountcount,\n"
33142 " GUESTFS_TUNE2FS_ERRORBEHAVIOR, const char *errorbehavior,\n"
33143 " GUESTFS_TUNE2FS_GROUP, int64_t group,\n"
33144 " GUESTFS_TUNE2FS_INTERVALBETWEENCHECKS, int intervalbetweenchecks,\n"
33145 " GUESTFS_TUNE2FS_RESERVEDBLOCKSPERCENTAGE, int reservedblockspercentage,\n"
33146 " GUESTFS_TUNE2FS_LASTMOUNTEDDIRECTORY, const char *lastmounteddirectory,\n"
33147 " GUESTFS_TUNE2FS_RESERVEDBLOCKSCOUNT, int64_t reservedblockscount,\n"
33148 " GUESTFS_TUNE2FS_USER, int64_t user,\n"
33149 "\n"
33150 msgstr ""
33151
33152 #. type: textblock
33153 #: ../src/guestfs-actions.pod:7845
33154 msgid ""
33155 "To get the current values of filesystem parameters, see "
33156 "C<guestfs_tune2fs_l>.  For precise details of how tune2fs works, see the "
33157 "L<tune2fs(8)> man page."
33158 msgstr ""
33159
33160 #. type: =head2
33161 #: ../src/guestfs-actions.pod:7853
33162 msgid "guestfs_tune2fs_va"
33163 msgstr ""
33164
33165 #. type: verbatim
33166 #: ../src/guestfs-actions.pod:7855
33167 #, no-wrap
33168 msgid ""
33169 " int\n"
33170 " guestfs_tune2fs_va (guestfs_h *g,\n"
33171 "                     const char *device,\n"
33172 "                     va_list args);\n"
33173 "\n"
33174 msgstr ""
33175
33176 #. type: textblock
33177 #: ../src/guestfs-actions.pod:7860
33178 msgid "This is the \"va_list variant\" of L</guestfs_tune2fs>."
33179 msgstr ""
33180
33181 #. type: =head2
33182 #: ../src/guestfs-actions.pod:7864
33183 msgid "guestfs_tune2fs_argv"
33184 msgstr ""
33185
33186 #. type: verbatim
33187 #: ../src/guestfs-actions.pod:7866
33188 #, no-wrap
33189 msgid ""
33190 " int\n"
33191 " guestfs_tune2fs_argv (guestfs_h *g,\n"
33192 "                       const char *device,\n"
33193 "                       const struct guestfs_tune2fs_argv *optargs);\n"
33194 "\n"
33195 msgstr ""
33196
33197 #. type: textblock
33198 #: ../src/guestfs-actions.pod:7871
33199 msgid "This is the \"argv variant\" of L</guestfs_tune2fs>."
33200 msgstr ""
33201
33202 #. type: =head2
33203 #: ../src/guestfs-actions.pod:7875
33204 msgid "guestfs_tune2fs_l"
33205 msgstr ""
33206
33207 #. type: verbatim
33208 #: ../src/guestfs-actions.pod:7877
33209 #, no-wrap
33210 msgid ""
33211 " char **\n"
33212 " guestfs_tune2fs_l (guestfs_h *g,\n"
33213 "                    const char *device);\n"
33214 "\n"
33215 msgstr ""
33216
33217 #. type: =head2
33218 #: ../src/guestfs-actions.pod:7897
33219 msgid "guestfs_txz_in"
33220 msgstr ""
33221
33222 #. type: verbatim
33223 #: ../src/guestfs-actions.pod:7899
33224 #, no-wrap
33225 msgid ""
33226 " int\n"
33227 " guestfs_txz_in (guestfs_h *g,\n"
33228 "                 const char *tarball,\n"
33229 "                 const char *directory);\n"
33230 "\n"
33231 msgstr ""
33232
33233 #. type: =head2
33234 #: ../src/guestfs-actions.pod:7911
33235 msgid "guestfs_txz_out"
33236 msgstr ""
33237
33238 #. type: verbatim
33239 #: ../src/guestfs-actions.pod:7913
33240 #, no-wrap
33241 msgid ""
33242 " int\n"
33243 " guestfs_txz_out (guestfs_h *g,\n"
33244 "                  const char *directory,\n"
33245 "                  const char *tarball);\n"
33246 "\n"
33247 msgstr ""
33248
33249 #. type: =head2
33250 #: ../src/guestfs-actions.pod:7925
33251 msgid "guestfs_umask"
33252 msgstr ""
33253
33254 #. type: verbatim
33255 #: ../src/guestfs-actions.pod:7927
33256 #, no-wrap
33257 msgid ""
33258 " int\n"
33259 " guestfs_umask (guestfs_h *g,\n"
33260 "                int mask);\n"
33261 "\n"
33262 msgstr ""
33263
33264 #. type: textblock
33265 #: ../src/guestfs-actions.pod:7943
33266 msgid ""
33267 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
33268 "C<guestfs_mkdir>."
33269 msgstr ""
33270
33271 #. type: =head2
33272 #: ../src/guestfs-actions.pod:7952
33273 msgid "guestfs_umount"
33274 msgstr ""
33275
33276 #. type: verbatim
33277 #: ../src/guestfs-actions.pod:7954
33278 #, no-wrap
33279 msgid ""
33280 " int\n"
33281 " guestfs_umount (guestfs_h *g,\n"
33282 "                 const char *pathordevice);\n"
33283 "\n"
33284 msgstr ""
33285
33286 #. type: =head2
33287 #: ../src/guestfs-actions.pod:7966
33288 msgid "guestfs_umount_all"
33289 msgstr ""
33290
33291 #. type: verbatim
33292 #: ../src/guestfs-actions.pod:7968
33293 #, no-wrap
33294 msgid ""
33295 " int\n"
33296 " guestfs_umount_all (guestfs_h *g);\n"
33297 "\n"
33298 msgstr ""
33299
33300 #. type: =head2
33301 #: ../src/guestfs-actions.pod:7979
33302 msgid "guestfs_upload"
33303 msgstr ""
33304
33305 #. type: verbatim
33306 #: ../src/guestfs-actions.pod:7981
33307 #, no-wrap
33308 msgid ""
33309 " int\n"
33310 " guestfs_upload (guestfs_h *g,\n"
33311 "                 const char *filename,\n"
33312 "                 const char *remotefilename);\n"
33313 "\n"
33314 msgstr ""
33315
33316 #. type: textblock
33317 #: ../src/guestfs-actions.pod:7991
33318 msgid "See also C<guestfs_download>."
33319 msgstr ""
33320
33321 #. type: =head2
33322 #: ../src/guestfs-actions.pod:8002
33323 msgid "guestfs_upload_offset"
33324 msgstr ""
33325
33326 #. type: verbatim
33327 #: ../src/guestfs-actions.pod:8004
33328 #, no-wrap
33329 msgid ""
33330 " int\n"
33331 " guestfs_upload_offset (guestfs_h *g,\n"
33332 "                        const char *filename,\n"
33333 "                        const char *remotefilename,\n"
33334 "                        int64_t offset);\n"
33335 "\n"
33336 msgstr ""
33337
33338 #. type: textblock
33339 #: ../src/guestfs-actions.pod:8020
33340 msgid ""
33341 "Note that there is no limit on the amount of data that can be uploaded with "
33342 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
33343 "full amount unless an error occurs."
33344 msgstr ""
33345
33346 #. type: textblock
33347 #: ../src/guestfs-actions.pod:8025
33348 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
33349 msgstr ""
33350
33351 #. type: =head2
33352 #: ../src/guestfs-actions.pod:8036
33353 msgid "guestfs_utimens"
33354 msgstr ""
33355
33356 #. type: verbatim
33357 #: ../src/guestfs-actions.pod:8038
33358 #, no-wrap
33359 msgid ""
33360 " int\n"
33361 " guestfs_utimens (guestfs_h *g,\n"
33362 "                  const char *path,\n"
33363 "                  int64_t atsecs,\n"
33364 "                  int64_t atnsecs,\n"
33365 "                  int64_t mtsecs,\n"
33366 "                  int64_t mtnsecs);\n"
33367 "\n"
33368 msgstr ""
33369
33370 #. type: =head2
33371 #: ../src/guestfs-actions.pod:8067 ../src/guestfs-structs.pod:175
33372 msgid "guestfs_version"
33373 msgstr ""
33374
33375 #. type: verbatim
33376 #: ../src/guestfs-actions.pod:8069
33377 #, no-wrap
33378 msgid ""
33379 " struct guestfs_version *\n"
33380 " guestfs_version (guestfs_h *g);\n"
33381 "\n"
33382 msgstr ""
33383
33384 #. type: textblock
33385 #: ../src/guestfs-actions.pod:8097
33386 msgid ""
33387 "I<Note:> Don't use this call to test for availability of features.  In "
33388 "enterprise distributions we backport features from later versions into "
33389 "earlier versions, making this an unreliable way to test for features.  Use "
33390 "C<guestfs_available> instead."
33391 msgstr ""
33392
33393 #. type: textblock
33394 #: ../src/guestfs-actions.pod:8103
33395 msgid ""
33396 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
33397 "error.  I<The caller must call C<guestfs_free_version> after use>."
33398 msgstr ""
33399
33400 #. type: textblock
33401 #: ../src/guestfs-actions.pod:8107
33402 msgid "(Added in 1.0.58)"
33403 msgstr ""
33404
33405 #. type: =head2
33406 #: ../src/guestfs-actions.pod:8109
33407 msgid "guestfs_vfs_label"
33408 msgstr ""
33409
33410 #. type: verbatim
33411 #: ../src/guestfs-actions.pod:8111
33412 #, no-wrap
33413 msgid ""
33414 " char *\n"
33415 " guestfs_vfs_label (guestfs_h *g,\n"
33416 "                    const char *device);\n"
33417 "\n"
33418 msgstr ""
33419
33420 #. type: textblock
33421 #: ../src/guestfs-actions.pod:8120
33422 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
33423 msgstr ""
33424
33425 #. type: textblock
33426 #: ../src/guestfs-actions.pod:8125 ../src/guestfs-actions.pod:8162
33427 msgid "(Added in 1.3.18)"
33428 msgstr ""
33429
33430 #. type: =head2
33431 #: ../src/guestfs-actions.pod:8127
33432 msgid "guestfs_vfs_type"
33433 msgstr ""
33434
33435 #. type: verbatim
33436 #: ../src/guestfs-actions.pod:8129
33437 #, no-wrap
33438 msgid ""
33439 " char *\n"
33440 " guestfs_vfs_type (guestfs_h *g,\n"
33441 "                   const char *device);\n"
33442 "\n"
33443 msgstr ""
33444
33445 #. type: =head2
33446 #: ../src/guestfs-actions.pod:8146
33447 msgid "guestfs_vfs_uuid"
33448 msgstr ""
33449
33450 #. type: verbatim
33451 #: ../src/guestfs-actions.pod:8148
33452 #, no-wrap
33453 msgid ""
33454 " char *\n"
33455 " guestfs_vfs_uuid (guestfs_h *g,\n"
33456 "                   const char *device);\n"
33457 "\n"
33458 msgstr ""
33459
33460 #. type: textblock
33461 #: ../src/guestfs-actions.pod:8157
33462 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
33463 msgstr ""
33464
33465 #. type: =head2
33466 #: ../src/guestfs-actions.pod:8164
33467 msgid "guestfs_vg_activate"
33468 msgstr ""
33469
33470 #. type: verbatim
33471 #: ../src/guestfs-actions.pod:8166
33472 #, no-wrap
33473 msgid ""
33474 " int\n"
33475 " guestfs_vg_activate (guestfs_h *g,\n"
33476 "                      int activate,\n"
33477 "                      char *const *volgroups);\n"
33478 "\n"
33479 msgstr ""
33480
33481 #. type: =head2
33482 #: ../src/guestfs-actions.pod:8183
33483 msgid "guestfs_vg_activate_all"
33484 msgstr ""
33485
33486 #. type: verbatim
33487 #: ../src/guestfs-actions.pod:8185
33488 #, no-wrap
33489 msgid ""
33490 " int\n"
33491 " guestfs_vg_activate_all (guestfs_h *g,\n"
33492 "                          int activate);\n"
33493 "\n"
33494 msgstr ""
33495
33496 #. type: =head2
33497 #: ../src/guestfs-actions.pod:8198
33498 msgid "guestfs_vgcreate"
33499 msgstr ""
33500
33501 #. type: verbatim
33502 #: ../src/guestfs-actions.pod:8200
33503 #, no-wrap
33504 msgid ""
33505 " int\n"
33506 " guestfs_vgcreate (guestfs_h *g,\n"
33507 "                   const char *volgroup,\n"
33508 "                   char *const *physvols);\n"
33509 "\n"
33510 msgstr ""
33511
33512 #. type: =head2
33513 #: ../src/guestfs-actions.pod:8212
33514 msgid "guestfs_vglvuuids"
33515 msgstr ""
33516
33517 #. type: verbatim
33518 #: ../src/guestfs-actions.pod:8214
33519 #, no-wrap
33520 msgid ""
33521 " char **\n"
33522 " guestfs_vglvuuids (guestfs_h *g,\n"
33523 "                    const char *vgname);\n"
33524 "\n"
33525 msgstr ""
33526
33527 #. type: textblock
33528 #: ../src/guestfs-actions.pod:8221
33529 msgid ""
33530 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
33531 "associate logical volumes and volume groups."
33532 msgstr ""
33533
33534 #. type: textblock
33535 #: ../src/guestfs-actions.pod:8224
33536 msgid "See also C<guestfs_vgpvuuids>."
33537 msgstr ""
33538
33539 #. type: =head2
33540 #: ../src/guestfs-actions.pod:8232
33541 msgid "guestfs_vgpvuuids"
33542 msgstr ""
33543
33544 #. type: verbatim
33545 #: ../src/guestfs-actions.pod:8234
33546 #, no-wrap
33547 msgid ""
33548 " char **\n"
33549 " guestfs_vgpvuuids (guestfs_h *g,\n"
33550 "                    const char *vgname);\n"
33551 "\n"
33552 msgstr ""
33553
33554 #. type: textblock
33555 #: ../src/guestfs-actions.pod:8241
33556 msgid ""
33557 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
33558 "associate physical volumes and volume groups."
33559 msgstr ""
33560
33561 #. type: textblock
33562 #: ../src/guestfs-actions.pod:8244
33563 msgid "See also C<guestfs_vglvuuids>."
33564 msgstr ""
33565
33566 #. type: =head2
33567 #: ../src/guestfs-actions.pod:8252
33568 msgid "guestfs_vgremove"
33569 msgstr ""
33570
33571 #. type: verbatim
33572 #: ../src/guestfs-actions.pod:8254
33573 #, no-wrap
33574 msgid ""
33575 " int\n"
33576 " guestfs_vgremove (guestfs_h *g,\n"
33577 "                   const char *vgname);\n"
33578 "\n"
33579 msgstr ""
33580
33581 #. type: =head2
33582 #: ../src/guestfs-actions.pod:8267
33583 msgid "guestfs_vgrename"
33584 msgstr ""
33585
33586 #. type: verbatim
33587 #: ../src/guestfs-actions.pod:8269
33588 #, no-wrap
33589 msgid ""
33590 " int\n"
33591 " guestfs_vgrename (guestfs_h *g,\n"
33592 "                   const char *volgroup,\n"
33593 "                   const char *newvolgroup);\n"
33594 "\n"
33595 msgstr ""
33596
33597 #. type: =head2
33598 #: ../src/guestfs-actions.pod:8280
33599 msgid "guestfs_vgs"
33600 msgstr ""
33601
33602 #. type: verbatim
33603 #: ../src/guestfs-actions.pod:8282
33604 #, no-wrap
33605 msgid ""
33606 " char **\n"
33607 " guestfs_vgs (guestfs_h *g);\n"
33608 "\n"
33609 msgstr ""
33610
33611 #. type: textblock
33612 #: ../src/guestfs-actions.pod:8291
33613 msgid "See also C<guestfs_vgs_full>."
33614 msgstr ""
33615
33616 #. type: =head2
33617 #: ../src/guestfs-actions.pod:8299
33618 msgid "guestfs_vgs_full"
33619 msgstr ""
33620
33621 #. type: verbatim
33622 #: ../src/guestfs-actions.pod:8301
33623 #, no-wrap
33624 msgid ""
33625 " struct guestfs_lvm_vg_list *\n"
33626 " guestfs_vgs_full (guestfs_h *g);\n"
33627 "\n"
33628 msgstr ""
33629
33630 #. type: textblock
33631 #: ../src/guestfs-actions.pod:8307
33632 msgid ""
33633 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
33634 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after "
33635 "use>."
33636 msgstr ""
33637
33638 #. type: =head2
33639 #: ../src/guestfs-actions.pod:8313
33640 msgid "guestfs_vgscan"
33641 msgstr ""
33642
33643 #. type: verbatim
33644 #: ../src/guestfs-actions.pod:8315
33645 #, no-wrap
33646 msgid ""
33647 " int\n"
33648 " guestfs_vgscan (guestfs_h *g);\n"
33649 "\n"
33650 msgstr ""
33651
33652 #. type: =head2
33653 #: ../src/guestfs-actions.pod:8325
33654 msgid "guestfs_vguuid"
33655 msgstr ""
33656
33657 #. type: verbatim
33658 #: ../src/guestfs-actions.pod:8327
33659 #, no-wrap
33660 msgid ""
33661 " char *\n"
33662 " guestfs_vguuid (guestfs_h *g,\n"
33663 "                 const char *vgname);\n"
33664 "\n"
33665 msgstr ""
33666
33667 #. type: =head2
33668 #: ../src/guestfs-actions.pod:8338
33669 msgid "guestfs_wait_ready"
33670 msgstr ""
33671
33672 #. type: verbatim
33673 #: ../src/guestfs-actions.pod:8340
33674 #, no-wrap
33675 msgid ""
33676 " int\n"
33677 " guestfs_wait_ready (guestfs_h *g);\n"
33678 "\n"
33679 msgstr ""
33680
33681 #. type: textblock
33682 #: ../src/guestfs-actions.pod:8343
33683 msgid ""
33684 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
33685 "instead."
33686 msgstr ""
33687
33688 #. type: textblock
33689 #: ../src/guestfs-actions.pod:8350
33690 msgid "This function is a no op."
33691 msgstr ""
33692
33693 #. type: textblock
33694 #: ../src/guestfs-actions.pod:8352
33695 msgid ""
33696 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
33697 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
33698 "is no longer necessary because C<guestfs_launch> now does the waiting."
33699 msgstr ""
33700
33701 #. type: textblock
33702 #: ../src/guestfs-actions.pod:8357
33703 msgid ""
33704 "If you see any calls to this function in code then you can just remove them, "
33705 "unless you want to retain compatibility with older versions of the API."
33706 msgstr ""
33707
33708 #. type: =head2
33709 #: ../src/guestfs-actions.pod:8365
33710 msgid "guestfs_wc_c"
33711 msgstr ""
33712
33713 #. type: verbatim
33714 #: ../src/guestfs-actions.pod:8367
33715 #, no-wrap
33716 msgid ""
33717 " int\n"
33718 " guestfs_wc_c (guestfs_h *g,\n"
33719 "               const char *path);\n"
33720 "\n"
33721 msgstr ""
33722
33723 #. type: =head2
33724 #: ../src/guestfs-actions.pod:8378
33725 msgid "guestfs_wc_l"
33726 msgstr ""
33727
33728 #. type: verbatim
33729 #: ../src/guestfs-actions.pod:8380
33730 #, no-wrap
33731 msgid ""
33732 " int\n"
33733 " guestfs_wc_l (guestfs_h *g,\n"
33734 "               const char *path);\n"
33735 "\n"
33736 msgstr ""
33737
33738 #. type: =head2
33739 #: ../src/guestfs-actions.pod:8391
33740 msgid "guestfs_wc_w"
33741 msgstr ""
33742
33743 #. type: verbatim
33744 #: ../src/guestfs-actions.pod:8393
33745 #, no-wrap
33746 msgid ""
33747 " int\n"
33748 " guestfs_wc_w (guestfs_h *g,\n"
33749 "               const char *path);\n"
33750 "\n"
33751 msgstr ""
33752
33753 #. type: =head2
33754 #: ../src/guestfs-actions.pod:8404
33755 msgid "guestfs_write"
33756 msgstr ""
33757
33758 #. type: verbatim
33759 #: ../src/guestfs-actions.pod:8406
33760 #, no-wrap
33761 msgid ""
33762 " int\n"
33763 " guestfs_write (guestfs_h *g,\n"
33764 "                const char *path,\n"
33765 "                const char *content,\n"
33766 "                size_t content_size);\n"
33767 "\n"
33768 msgstr ""
33769
33770 #. type: textblock
33771 #: ../src/guestfs-actions.pod:8415
33772 msgid "See also C<guestfs_write_append>."
33773 msgstr ""
33774
33775 #. type: =head2
33776 #: ../src/guestfs-actions.pod:8424
33777 msgid "guestfs_write_append"
33778 msgstr ""
33779
33780 #. type: verbatim
33781 #: ../src/guestfs-actions.pod:8426
33782 #, no-wrap
33783 msgid ""
33784 " int\n"
33785 " guestfs_write_append (guestfs_h *g,\n"
33786 "                       const char *path,\n"
33787 "                       const char *content,\n"
33788 "                       size_t content_size);\n"
33789 "\n"
33790 msgstr ""
33791
33792 #. type: textblock
33793 #: ../src/guestfs-actions.pod:8435
33794 msgid "See also C<guestfs_write>."
33795 msgstr ""
33796
33797 #. type: =head2
33798 #: ../src/guestfs-actions.pod:8444
33799 msgid "guestfs_write_file"
33800 msgstr ""
33801
33802 #. type: verbatim
33803 #: ../src/guestfs-actions.pod:8446
33804 #, no-wrap
33805 msgid ""
33806 " int\n"
33807 " guestfs_write_file (guestfs_h *g,\n"
33808 "                     const char *path,\n"
33809 "                     const char *content,\n"
33810 "                     int size);\n"
33811 "\n"
33812 msgstr ""
33813
33814 #. type: textblock
33815 #: ../src/guestfs-actions.pod:8452
33816 msgid ""
33817 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
33818 "instead."
33819 msgstr ""
33820
33821 #. type: =head2
33822 #: ../src/guestfs-actions.pod:8477
33823 msgid "guestfs_zegrep"
33824 msgstr ""
33825
33826 #. type: verbatim
33827 #: ../src/guestfs-actions.pod:8479
33828 #, no-wrap
33829 msgid ""
33830 " char **\n"
33831 " guestfs_zegrep (guestfs_h *g,\n"
33832 "                 const char *regex,\n"
33833 "                 const char *path);\n"
33834 "\n"
33835 msgstr ""
33836
33837 #. type: =head2
33838 #: ../src/guestfs-actions.pod:8496
33839 msgid "guestfs_zegrepi"
33840 msgstr ""
33841
33842 #. type: verbatim
33843 #: ../src/guestfs-actions.pod:8498
33844 #, no-wrap
33845 msgid ""
33846 " char **\n"
33847 " guestfs_zegrepi (guestfs_h *g,\n"
33848 "                  const char *regex,\n"
33849 "                  const char *path);\n"
33850 "\n"
33851 msgstr ""
33852
33853 #. type: =head2
33854 #: ../src/guestfs-actions.pod:8515
33855 msgid "guestfs_zero"
33856 msgstr ""
33857
33858 #. type: verbatim
33859 #: ../src/guestfs-actions.pod:8517
33860 #, no-wrap
33861 msgid ""
33862 " int\n"
33863 " guestfs_zero (guestfs_h *g,\n"
33864 "               const char *device);\n"
33865 "\n"
33866 msgstr ""
33867
33868 #. type: textblock
33869 #: ../src/guestfs-actions.pod:8531
33870 msgid ""
33871 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
33872 "C<guestfs_is_zero_device>"
33873 msgstr ""
33874
33875 #. type: =head2
33876 #: ../src/guestfs-actions.pod:8543
33877 msgid "guestfs_zero_device"
33878 msgstr ""
33879
33880 #. type: verbatim
33881 #: ../src/guestfs-actions.pod:8545
33882 #, no-wrap
33883 msgid ""
33884 " int\n"
33885 " guestfs_zero_device (guestfs_h *g,\n"
33886 "                      const char *device);\n"
33887 "\n"
33888 msgstr ""
33889
33890 #. type: textblock
33891 #: ../src/guestfs-actions.pod:8549
33892 msgid ""
33893 "This command writes zeroes over the entire C<device>.  Compare with "
33894 "C<guestfs_zero> which just zeroes the first few blocks of a device."
33895 msgstr ""
33896
33897 #. type: textblock
33898 #: ../src/guestfs-actions.pod:8564
33899 msgid "(Added in 1.3.1)"
33900 msgstr ""
33901
33902 #. type: =head2
33903 #: ../src/guestfs-actions.pod:8566
33904 msgid "guestfs_zerofree"
33905 msgstr ""
33906
33907 #. type: verbatim
33908 #: ../src/guestfs-actions.pod:8568
33909 #, no-wrap
33910 msgid ""
33911 " int\n"
33912 " guestfs_zerofree (guestfs_h *g,\n"
33913 "                   const char *device);\n"
33914 "\n"
33915 msgstr ""
33916
33917 #. type: =head2
33918 #: ../src/guestfs-actions.pod:8587
33919 msgid "guestfs_zfgrep"
33920 msgstr ""
33921
33922 #. type: verbatim
33923 #: ../src/guestfs-actions.pod:8589
33924 #, no-wrap
33925 msgid ""
33926 " char **\n"
33927 " guestfs_zfgrep (guestfs_h *g,\n"
33928 "                 const char *pattern,\n"
33929 "                 const char *path);\n"
33930 "\n"
33931 msgstr ""
33932
33933 #. type: =head2
33934 #: ../src/guestfs-actions.pod:8606
33935 msgid "guestfs_zfgrepi"
33936 msgstr ""
33937
33938 #. type: verbatim
33939 #: ../src/guestfs-actions.pod:8608
33940 #, no-wrap
33941 msgid ""
33942 " char **\n"
33943 " guestfs_zfgrepi (guestfs_h *g,\n"
33944 "                  const char *pattern,\n"
33945 "                  const char *path);\n"
33946 "\n"
33947 msgstr ""
33948
33949 #. type: =head2
33950 #: ../src/guestfs-actions.pod:8625
33951 msgid "guestfs_zfile"
33952 msgstr ""
33953
33954 #. type: verbatim
33955 #: ../src/guestfs-actions.pod:8627
33956 #, no-wrap
33957 msgid ""
33958 " char *\n"
33959 " guestfs_zfile (guestfs_h *g,\n"
33960 "                const char *meth,\n"
33961 "                const char *path);\n"
33962 "\n"
33963 msgstr ""
33964
33965 #. type: textblock
33966 #: ../src/guestfs-actions.pod:8632
33967 msgid ""
33968 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
33969 "instead."
33970 msgstr ""
33971
33972 #. type: textblock
33973 #: ../src/guestfs-actions.pod:8644
33974 msgid ""
33975 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
33976 "files."
33977 msgstr ""
33978
33979 #. type: =head2
33980 #: ../src/guestfs-actions.pod:8652
33981 msgid "guestfs_zgrep"
33982 msgstr ""
33983
33984 #. type: verbatim
33985 #: ../src/guestfs-actions.pod:8654
33986 #, no-wrap
33987 msgid ""
33988 " char **\n"
33989 " guestfs_zgrep (guestfs_h *g,\n"
33990 "                const char *regex,\n"
33991 "                const char *path);\n"
33992 "\n"
33993 msgstr ""
33994
33995 #. type: =head2
33996 #: ../src/guestfs-actions.pod:8671
33997 msgid "guestfs_zgrepi"
33998 msgstr ""
33999
34000 #. type: verbatim
34001 #: ../src/guestfs-actions.pod:8673
34002 #, no-wrap
34003 msgid ""
34004 " char **\n"
34005 " guestfs_zgrepi (guestfs_h *g,\n"
34006 "                 const char *regex,\n"
34007 "                 const char *path);\n"
34008 "\n"
34009 msgstr ""
34010
34011 #. type: =item
34012 #: ../src/guestfs-availability.pod:3
34013 msgid "B<augeas>"
34014 msgstr ""
34015
34016 #. type: textblock
34017 #: ../src/guestfs-availability.pod:5
34018 msgid ""
34019 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> "
34020 "L</guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> "
34021 "L</guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> "
34022 "L</guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> "
34023 "L</guestfs_aug_rm> L</guestfs_aug_save> L</guestfs_aug_set>"
34024 msgstr ""
34025
34026 #. type: =item
34027 #: ../src/guestfs-availability.pod:21
34028 msgid "B<btrfs>"
34029 msgstr ""
34030
34031 #. type: textblock
34032 #: ../src/guestfs-availability.pod:23
34033 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
34034 msgstr ""
34035
34036 #. type: =item
34037 #: ../src/guestfs-availability.pod:26
34038 msgid "B<grub>"
34039 msgstr ""
34040
34041 #. type: textblock
34042 #: ../src/guestfs-availability.pod:28
34043 msgid "The following functions: L</guestfs_grub_install>"
34044 msgstr ""
34045
34046 #. type: =item
34047 #: ../src/guestfs-availability.pod:31
34048 msgid "B<inotify>"
34049 msgstr ""
34050
34051 #. type: textblock
34052 #: ../src/guestfs-availability.pod:33
34053 msgid ""
34054 "The following functions: L</guestfs_inotify_add_watch> "
34055 "L</guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> "
34056 "L</guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
34057 msgstr ""
34058
34059 #. type: =item
34060 #: ../src/guestfs-availability.pod:41
34061 msgid "B<linuxfsuuid>"
34062 msgstr ""
34063
34064 #. type: textblock
34065 #: ../src/guestfs-availability.pod:43
34066 msgid ""
34067 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> "
34068 "L</guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
34069 msgstr ""
34070
34071 #. type: =item
34072 #: ../src/guestfs-availability.pod:50
34073 msgid "B<linuxmodules>"
34074 msgstr ""
34075
34076 #. type: textblock
34077 #: ../src/guestfs-availability.pod:52
34078 msgid "The following functions: L</guestfs_modprobe>"
34079 msgstr ""
34080
34081 #. type: =item
34082 #: ../src/guestfs-availability.pod:55
34083 msgid "B<linuxxattrs>"
34084 msgstr ""
34085
34086 #. type: textblock
34087 #: ../src/guestfs-availability.pod:57
34088 msgid ""
34089 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> "
34090 "L</guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> "
34091 "L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> "
34092 "L</guestfs_setxattr>"
34093 msgstr ""
34094
34095 #. type: =item
34096 #: ../src/guestfs-availability.pod:68
34097 msgid "B<luks>"
34098 msgstr ""
34099
34100 #. type: textblock
34101 #: ../src/guestfs-availability.pod:70
34102 msgid ""
34103 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> "
34104 "L</guestfs_luks_format> L</guestfs_luks_format_cipher> "
34105 "L</guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
34106 msgstr ""
34107
34108 #. type: =item
34109 #: ../src/guestfs-availability.pod:79
34110 msgid "B<lvm2>"
34111 msgstr ""
34112
34113 #. type: textblock
34114 #: ../src/guestfs-availability.pod:81
34115 msgid ""
34116 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> "
34117 "L</guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> "
34118 "L</guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> "
34119 "L</guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> "
34120 "L</guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> "
34121 "L</guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> "
34122 "L</guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> "
34123 "L</guestfs_vgs_full>"
34124 msgstr ""
34125
34126 #. type: =item
34127 #: ../src/guestfs-availability.pod:104
34128 msgid "B<mdadm>"
34129 msgstr ""
34130
34131 #. type: textblock
34132 #: ../src/guestfs-availability.pod:106
34133 msgid ""
34134 "The following functions: L</guestfs_md_create> L</guestfs_md_detail> "
34135 "L</guestfs_md_stop>"
34136 msgstr ""
34137
34138 #. type: =item
34139 #: ../src/guestfs-availability.pod:111
34140 msgid "B<mknod>"
34141 msgstr ""
34142
34143 #. type: textblock
34144 #: ../src/guestfs-availability.pod:113
34145 msgid ""
34146 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> "
34147 "L</guestfs_mknod_b> L</guestfs_mknod_c>"
34148 msgstr ""
34149
34150 #. type: =item
34151 #: ../src/guestfs-availability.pod:119
34152 msgid "B<ntfs3g>"
34153 msgstr ""
34154
34155 #. type: textblock
34156 #: ../src/guestfs-availability.pod:121
34157 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
34158 msgstr ""
34159
34160 #. type: =item
34161 #: ../src/guestfs-availability.pod:124
34162 msgid "B<ntfsprogs>"
34163 msgstr ""
34164
34165 #. type: textblock
34166 #: ../src/guestfs-availability.pod:126
34167 msgid ""
34168 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
34169 "L</guestfs_ntfsresize_size>"
34170 msgstr ""
34171
34172 #. type: =item
34173 #: ../src/guestfs-availability.pod:131
34174 msgid "B<realpath>"
34175 msgstr ""
34176
34177 #. type: textblock
34178 #: ../src/guestfs-availability.pod:133
34179 msgid "The following functions: L</guestfs_realpath>"
34180 msgstr ""
34181
34182 #. type: =item
34183 #: ../src/guestfs-availability.pod:136
34184 msgid "B<scrub>"
34185 msgstr ""
34186
34187 #. type: textblock
34188 #: ../src/guestfs-availability.pod:138
34189 msgid ""
34190 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> "
34191 "L</guestfs_scrub_freespace>"
34192 msgstr ""
34193
34194 #. type: =item
34195 #: ../src/guestfs-availability.pod:143
34196 msgid "B<selinux>"
34197 msgstr ""
34198
34199 #. type: textblock
34200 #: ../src/guestfs-availability.pod:145
34201 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
34202 msgstr ""
34203
34204 #. type: =item
34205 #: ../src/guestfs-availability.pod:149
34206 msgid "B<xz>"
34207 msgstr ""
34208
34209 #. type: textblock
34210 #: ../src/guestfs-availability.pod:151
34211 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
34212 msgstr ""
34213
34214 #. type: =item
34215 #: ../src/guestfs-availability.pod:155
34216 msgid "B<zerofree>"
34217 msgstr ""
34218
34219 #. type: textblock
34220 #: ../src/guestfs-availability.pod:157
34221 msgid "The following functions: L</guestfs_zerofree>"
34222 msgstr ""
34223
34224 #. type: =head2
34225 #: ../src/guestfs-structs.pod:1
34226 msgid "guestfs_int_bool"
34227 msgstr ""
34228
34229 #. type: verbatim
34230 #: ../src/guestfs-structs.pod:3
34231 #, no-wrap
34232 msgid ""
34233 " struct guestfs_int_bool {\n"
34234 "   int32_t i;\n"
34235 "   int32_t b;\n"
34236 " };\n"
34237 " \n"
34238 msgstr ""
34239
34240 #. type: verbatim
34241 #: ../src/guestfs-structs.pod:8
34242 #, no-wrap
34243 msgid ""
34244 " struct guestfs_int_bool_list {\n"
34245 "   uint32_t len; /* Number of elements in list. */\n"
34246 "   struct guestfs_int_bool *val; /* Elements. */\n"
34247 " };\n"
34248 " \n"
34249 msgstr ""
34250
34251 #. type: verbatim
34252 #: ../src/guestfs-structs.pod:13
34253 #, no-wrap
34254 msgid ""
34255 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
34256 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
34257 "\n"
34258 msgstr ""
34259
34260 #. type: =head2
34261 #: ../src/guestfs-structs.pod:16
34262 msgid "guestfs_lvm_pv"
34263 msgstr ""
34264
34265 #. type: verbatim
34266 #: ../src/guestfs-structs.pod:18
34267 #, no-wrap
34268 msgid ""
34269 " struct guestfs_lvm_pv {\n"
34270 "   char *pv_name;\n"
34271 "   /* The next field is NOT nul-terminated, be careful when printing it: "
34272 "*/\n"
34273 "   char pv_uuid[32];\n"
34274 "   char *pv_fmt;\n"
34275 "   uint64_t pv_size;\n"
34276 "   uint64_t dev_size;\n"
34277 "   uint64_t pv_free;\n"
34278 "   uint64_t pv_used;\n"
34279 "   char *pv_attr;\n"
34280 "   int64_t pv_pe_count;\n"
34281 "   int64_t pv_pe_alloc_count;\n"
34282 "   char *pv_tags;\n"
34283 "   uint64_t pe_start;\n"
34284 "   int64_t pv_mda_count;\n"
34285 "   uint64_t pv_mda_free;\n"
34286 " };\n"
34287 " \n"
34288 msgstr ""
34289
34290 #. type: verbatim
34291 #: ../src/guestfs-structs.pod:36
34292 #, no-wrap
34293 msgid ""
34294 " struct guestfs_lvm_pv_list {\n"
34295 "   uint32_t len; /* Number of elements in list. */\n"
34296 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
34297 " };\n"
34298 " \n"
34299 msgstr ""
34300
34301 #. type: verbatim
34302 #: ../src/guestfs-structs.pod:41
34303 #, no-wrap
34304 msgid ""
34305 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
34306 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
34307 "\n"
34308 msgstr ""
34309
34310 #. type: =head2
34311 #: ../src/guestfs-structs.pod:44
34312 msgid "guestfs_lvm_vg"
34313 msgstr ""
34314
34315 #. type: verbatim
34316 #: ../src/guestfs-structs.pod:46
34317 #, no-wrap
34318 msgid ""
34319 " struct guestfs_lvm_vg {\n"
34320 "   char *vg_name;\n"
34321 "   /* The next field is NOT nul-terminated, be careful when printing it: "
34322 "*/\n"
34323 "   char vg_uuid[32];\n"
34324 "   char *vg_fmt;\n"
34325 "   char *vg_attr;\n"
34326 "   uint64_t vg_size;\n"
34327 "   uint64_t vg_free;\n"
34328 "   char *vg_sysid;\n"
34329 "   uint64_t vg_extent_size;\n"
34330 "   int64_t vg_extent_count;\n"
34331 "   int64_t vg_free_count;\n"
34332 "   int64_t max_lv;\n"
34333 "   int64_t max_pv;\n"
34334 "   int64_t pv_count;\n"
34335 "   int64_t lv_count;\n"
34336 "   int64_t snap_count;\n"
34337 "   int64_t vg_seqno;\n"
34338 "   char *vg_tags;\n"
34339 "   int64_t vg_mda_count;\n"
34340 "   uint64_t vg_mda_free;\n"
34341 " };\n"
34342 " \n"
34343 msgstr ""
34344
34345 #. type: verbatim
34346 #: ../src/guestfs-structs.pod:69
34347 #, no-wrap
34348 msgid ""
34349 " struct guestfs_lvm_vg_list {\n"
34350 "   uint32_t len; /* Number of elements in list. */\n"
34351 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
34352 " };\n"
34353 " \n"
34354 msgstr ""
34355
34356 #. type: verbatim
34357 #: ../src/guestfs-structs.pod:74
34358 #, no-wrap
34359 msgid ""
34360 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
34361 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
34362 "\n"
34363 msgstr ""
34364
34365 #. type: =head2
34366 #: ../src/guestfs-structs.pod:77
34367 msgid "guestfs_lvm_lv"
34368 msgstr ""
34369
34370 #. type: verbatim
34371 #: ../src/guestfs-structs.pod:79
34372 #, no-wrap
34373 msgid ""
34374 " struct guestfs_lvm_lv {\n"
34375 "   char *lv_name;\n"
34376 "   /* The next field is NOT nul-terminated, be careful when printing it: "
34377 "*/\n"
34378 "   char lv_uuid[32];\n"
34379 "   char *lv_attr;\n"
34380 "   int64_t lv_major;\n"
34381 "   int64_t lv_minor;\n"
34382 "   int64_t lv_kernel_major;\n"
34383 "   int64_t lv_kernel_minor;\n"
34384 "   uint64_t lv_size;\n"
34385 "   int64_t seg_count;\n"
34386 "   char *origin;\n"
34387 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
34388 "   float snap_percent;\n"
34389 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
34390 "   float copy_percent;\n"
34391 "   char *move_pv;\n"
34392 "   char *lv_tags;\n"
34393 "   char *mirror_log;\n"
34394 "   char *modules;\n"
34395 " };\n"
34396 " \n"
34397 msgstr ""
34398
34399 #. type: verbatim
34400 #: ../src/guestfs-structs.pod:101
34401 #, no-wrap
34402 msgid ""
34403 " struct guestfs_lvm_lv_list {\n"
34404 "   uint32_t len; /* Number of elements in list. */\n"
34405 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
34406 " };\n"
34407 " \n"
34408 msgstr ""
34409
34410 #. type: verbatim
34411 #: ../src/guestfs-structs.pod:106
34412 #, no-wrap
34413 msgid ""
34414 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
34415 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
34416 "\n"
34417 msgstr ""
34418
34419 #. type: verbatim
34420 #: ../src/guestfs-structs.pod:111
34421 #, no-wrap
34422 msgid ""
34423 " struct guestfs_stat {\n"
34424 "   int64_t dev;\n"
34425 "   int64_t ino;\n"
34426 "   int64_t mode;\n"
34427 "   int64_t nlink;\n"
34428 "   int64_t uid;\n"
34429 "   int64_t gid;\n"
34430 "   int64_t rdev;\n"
34431 "   int64_t size;\n"
34432 "   int64_t blksize;\n"
34433 "   int64_t blocks;\n"
34434 "   int64_t atime;\n"
34435 "   int64_t mtime;\n"
34436 "   int64_t ctime;\n"
34437 " };\n"
34438 " \n"
34439 msgstr ""
34440
34441 #. type: verbatim
34442 #: ../src/guestfs-structs.pod:127
34443 #, no-wrap
34444 msgid ""
34445 " struct guestfs_stat_list {\n"
34446 "   uint32_t len; /* Number of elements in list. */\n"
34447 "   struct guestfs_stat *val; /* Elements. */\n"
34448 " };\n"
34449 " \n"
34450 msgstr ""
34451
34452 #. type: verbatim
34453 #: ../src/guestfs-structs.pod:132
34454 #, no-wrap
34455 msgid ""
34456 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
34457 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
34458 "\n"
34459 msgstr ""
34460
34461 #. type: verbatim
34462 #: ../src/guestfs-structs.pod:137
34463 #, no-wrap
34464 msgid ""
34465 " struct guestfs_statvfs {\n"
34466 "   int64_t bsize;\n"
34467 "   int64_t frsize;\n"
34468 "   int64_t blocks;\n"
34469 "   int64_t bfree;\n"
34470 "   int64_t bavail;\n"
34471 "   int64_t files;\n"
34472 "   int64_t ffree;\n"
34473 "   int64_t favail;\n"
34474 "   int64_t fsid;\n"
34475 "   int64_t flag;\n"
34476 "   int64_t namemax;\n"
34477 " };\n"
34478 " \n"
34479 msgstr ""
34480
34481 #. type: verbatim
34482 #: ../src/guestfs-structs.pod:151
34483 #, no-wrap
34484 msgid ""
34485 " struct guestfs_statvfs_list {\n"
34486 "   uint32_t len; /* Number of elements in list. */\n"
34487 "   struct guestfs_statvfs *val; /* Elements. */\n"
34488 " };\n"
34489 " \n"
34490 msgstr ""
34491
34492 #. type: verbatim
34493 #: ../src/guestfs-structs.pod:156
34494 #, no-wrap
34495 msgid ""
34496 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
34497 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
34498 "\n"
34499 msgstr ""
34500
34501 #. type: =head2
34502 #: ../src/guestfs-structs.pod:159
34503 msgid "guestfs_dirent"
34504 msgstr ""
34505
34506 #. type: verbatim
34507 #: ../src/guestfs-structs.pod:161
34508 #, no-wrap
34509 msgid ""
34510 " struct guestfs_dirent {\n"
34511 "   int64_t ino;\n"
34512 "   char ftyp;\n"
34513 "   char *name;\n"
34514 " };\n"
34515 " \n"
34516 msgstr ""
34517
34518 #. type: verbatim
34519 #: ../src/guestfs-structs.pod:167
34520 #, no-wrap
34521 msgid ""
34522 " struct guestfs_dirent_list {\n"
34523 "   uint32_t len; /* Number of elements in list. */\n"
34524 "   struct guestfs_dirent *val; /* Elements. */\n"
34525 " };\n"
34526 " \n"
34527 msgstr ""
34528
34529 #. type: verbatim
34530 #: ../src/guestfs-structs.pod:172
34531 #, no-wrap
34532 msgid ""
34533 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
34534 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
34535 "\n"
34536 msgstr ""
34537
34538 #. type: verbatim
34539 #: ../src/guestfs-structs.pod:177
34540 #, no-wrap
34541 msgid ""
34542 " struct guestfs_version {\n"
34543 "   int64_t major;\n"
34544 "   int64_t minor;\n"
34545 "   int64_t release;\n"
34546 "   char *extra;\n"
34547 " };\n"
34548 " \n"
34549 msgstr ""
34550
34551 #. type: verbatim
34552 #: ../src/guestfs-structs.pod:184
34553 #, no-wrap
34554 msgid ""
34555 " struct guestfs_version_list {\n"
34556 "   uint32_t len; /* Number of elements in list. */\n"
34557 "   struct guestfs_version *val; /* Elements. */\n"
34558 " };\n"
34559 " \n"
34560 msgstr ""
34561
34562 #. type: verbatim
34563 #: ../src/guestfs-structs.pod:189
34564 #, no-wrap
34565 msgid ""
34566 " void guestfs_free_version (struct guestfs_free_version *);\n"
34567 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
34568 "\n"
34569 msgstr ""
34570
34571 #. type: =head2
34572 #: ../src/guestfs-structs.pod:192
34573 msgid "guestfs_xattr"
34574 msgstr ""
34575
34576 #. type: verbatim
34577 #: ../src/guestfs-structs.pod:194
34578 #, no-wrap
34579 msgid ""
34580 " struct guestfs_xattr {\n"
34581 "   char *attrname;\n"
34582 "   /* The next two fields describe a byte array. */\n"
34583 "   uint32_t attrval_len;\n"
34584 "   char *attrval;\n"
34585 " };\n"
34586 " \n"
34587 msgstr ""
34588
34589 #. type: verbatim
34590 #: ../src/guestfs-structs.pod:201
34591 #, no-wrap
34592 msgid ""
34593 " struct guestfs_xattr_list {\n"
34594 "   uint32_t len; /* Number of elements in list. */\n"
34595 "   struct guestfs_xattr *val; /* Elements. */\n"
34596 " };\n"
34597 " \n"
34598 msgstr ""
34599
34600 #. type: verbatim
34601 #: ../src/guestfs-structs.pod:206
34602 #, no-wrap
34603 msgid ""
34604 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
34605 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
34606 "\n"
34607 msgstr ""
34608
34609 #. type: =head2
34610 #: ../src/guestfs-structs.pod:209
34611 msgid "guestfs_inotify_event"
34612 msgstr ""
34613
34614 #. type: verbatim
34615 #: ../src/guestfs-structs.pod:211
34616 #, no-wrap
34617 msgid ""
34618 " struct guestfs_inotify_event {\n"
34619 "   int64_t in_wd;\n"
34620 "   uint32_t in_mask;\n"
34621 "   uint32_t in_cookie;\n"
34622 "   char *in_name;\n"
34623 " };\n"
34624 " \n"
34625 msgstr ""
34626
34627 #. type: verbatim
34628 #: ../src/guestfs-structs.pod:218
34629 #, no-wrap
34630 msgid ""
34631 " struct guestfs_inotify_event_list {\n"
34632 "   uint32_t len; /* Number of elements in list. */\n"
34633 "   struct guestfs_inotify_event *val; /* Elements. */\n"
34634 " };\n"
34635 " \n"
34636 msgstr ""
34637
34638 #. type: verbatim
34639 #: ../src/guestfs-structs.pod:223
34640 #, no-wrap
34641 msgid ""
34642 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
34643 " void guestfs_free_inotify_event_list (struct "
34644 "guestfs_free_inotify_event_list *);\n"
34645 "\n"
34646 msgstr ""
34647
34648 #. type: =head2
34649 #: ../src/guestfs-structs.pod:226
34650 msgid "guestfs_partition"
34651 msgstr ""
34652
34653 #. type: verbatim
34654 #: ../src/guestfs-structs.pod:228
34655 #, no-wrap
34656 msgid ""
34657 " struct guestfs_partition {\n"
34658 "   int32_t part_num;\n"
34659 "   uint64_t part_start;\n"
34660 "   uint64_t part_end;\n"
34661 "   uint64_t part_size;\n"
34662 " };\n"
34663 " \n"
34664 msgstr ""
34665
34666 #. type: verbatim
34667 #: ../src/guestfs-structs.pod:235
34668 #, no-wrap
34669 msgid ""
34670 " struct guestfs_partition_list {\n"
34671 "   uint32_t len; /* Number of elements in list. */\n"
34672 "   struct guestfs_partition *val; /* Elements. */\n"
34673 " };\n"
34674 " \n"
34675 msgstr ""
34676
34677 #. type: verbatim
34678 #: ../src/guestfs-structs.pod:240
34679 #, no-wrap
34680 msgid ""
34681 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
34682 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
34683 "\n"
34684 msgstr ""
34685
34686 #. type: =head2
34687 #: ../src/guestfs-structs.pod:243
34688 msgid "guestfs_application"
34689 msgstr ""
34690
34691 #. type: verbatim
34692 #: ../src/guestfs-structs.pod:245
34693 #, no-wrap
34694 msgid ""
34695 " struct guestfs_application {\n"
34696 "   char *app_name;\n"
34697 "   char *app_display_name;\n"
34698 "   int32_t app_epoch;\n"
34699 "   char *app_version;\n"
34700 "   char *app_release;\n"
34701 "   char *app_install_path;\n"
34702 "   char *app_trans_path;\n"
34703 "   char *app_publisher;\n"
34704 "   char *app_url;\n"
34705 "   char *app_source_package;\n"
34706 "   char *app_summary;\n"
34707 "   char *app_description;\n"
34708 " };\n"
34709 " \n"
34710 msgstr ""
34711
34712 #. type: verbatim
34713 #: ../src/guestfs-structs.pod:260
34714 #, no-wrap
34715 msgid ""
34716 " struct guestfs_application_list {\n"
34717 "   uint32_t len; /* Number of elements in list. */\n"
34718 "   struct guestfs_application *val; /* Elements. */\n"
34719 " };\n"
34720 " \n"
34721 msgstr ""
34722
34723 #. type: verbatim
34724 #: ../src/guestfs-structs.pod:265
34725 #, no-wrap
34726 msgid ""
34727 " void guestfs_free_application (struct guestfs_free_application *);\n"
34728 " void guestfs_free_application_list (struct guestfs_free_application_list "
34729 "*);\n"
34730 "\n"
34731 msgstr ""
34732
34733 #. type: textblock
34734 #: ../src/guestfs.pod:5
34735 msgid "guestfs - Library for accessing and modifying virtual machine images"
34736 msgstr ""
34737
34738 #. type: verbatim
34739 #: ../src/guestfs.pod:11
34740 #, no-wrap
34741 msgid ""
34742 " guestfs_h *g = guestfs_create ();\n"
34743 " guestfs_add_drive (g, \"guest.img\");\n"
34744 " guestfs_launch (g);\n"
34745 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34746 " guestfs_touch (g, \"/hello\");\n"
34747 " guestfs_umount (g, \"/\");\n"
34748 " guestfs_close (g);\n"
34749 "\n"
34750 msgstr ""
34751
34752 #. type: textblock
34753 #: ../src/guestfs.pod:25
34754 msgid ""
34755 "Libguestfs is a library for accessing and modifying guest disk images.  "
34756 "Amongst the things this is good for: making batch configuration changes to "
34757 "guests, getting disk used/free statistics (see also: virt-df), migrating "
34758 "between virtualization systems (see also: virt-p2v), performing partial "
34759 "backups, performing partial guest clones, cloning guests and changing "
34760 "registry/UUID/hostname info, and much else besides."
34761 msgstr ""
34762
34763 #. type: textblock
34764 #: ../src/guestfs.pod:33
34765 msgid ""
34766 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
34767 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
34768 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
34769 "qcow2, vmdk."
34770 msgstr ""
34771
34772 #. type: textblock
34773 #: ../src/guestfs.pod:38
34774 msgid ""
34775 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
34776 "what filesystem is in each LV, etc.).  It can also run commands in the "
34777 "context of the guest.  Also you can access filesystems over FUSE."
34778 msgstr ""
34779
34780 #. type: textblock
34781 #: ../src/guestfs.pod:43
34782 msgid ""
34783 "Libguestfs is a library that can be linked with C and C++ management "
34784 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
34785 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
34786 "command line."
34787 msgstr ""
34788
34789 #. type: textblock
34790 #: ../src/guestfs.pod:48
34791 msgid ""
34792 "You don't need to be root to use libguestfs, although obviously you do need "
34793 "enough permissions to access the disk images."
34794 msgstr ""
34795
34796 #. type: textblock
34797 #: ../src/guestfs.pod:51
34798 msgid ""
34799 "Libguestfs is a large API because it can do many things.  For a gentle "
34800 "introduction, please read the L</API OVERVIEW> section next."
34801 msgstr ""
34802
34803 #. type: textblock
34804 #: ../src/guestfs.pod:54
34805 msgid ""
34806 "There are also some example programs in the L<guestfs-examples(3)> manual "
34807 "page."
34808 msgstr ""
34809
34810 #. type: =head1
34811 #: ../src/guestfs.pod:57
34812 msgid "API OVERVIEW"
34813 msgstr ""
34814
34815 #. type: textblock
34816 #: ../src/guestfs.pod:59
34817 msgid ""
34818 "This section provides a gentler overview of the libguestfs API.  We also try "
34819 "to group API calls together, where that may not be obvious from reading "
34820 "about the individual calls in the main section of this manual."
34821 msgstr ""
34822
34823 #. type: =head2
34824 #: ../src/guestfs.pod:64
34825 msgid "HANDLES"
34826 msgstr ""
34827
34828 #. type: textblock
34829 #: ../src/guestfs.pod:66
34830 msgid ""
34831 "Before you can use libguestfs calls, you have to create a handle.  Then you "
34832 "must add at least one disk image to the handle, followed by launching the "
34833 "handle, then performing whatever operations you want, and finally closing "
34834 "the handle.  By convention we use the single letter C<g> for the name of the "
34835 "handle variable, although of course you can use any name you want."
34836 msgstr ""
34837
34838 #. type: textblock
34839 #: ../src/guestfs.pod:73
34840 msgid "The general structure of all libguestfs-using programs looks like this:"
34841 msgstr ""
34842
34843 #. type: verbatim
34844 #: ../src/guestfs.pod:76
34845 #, no-wrap
34846 msgid ""
34847 " guestfs_h *g = guestfs_create ();\n"
34848 " \n"
34849 msgstr ""
34850
34851 #. type: verbatim
34852 #: ../src/guestfs.pod:78
34853 #, no-wrap
34854 msgid ""
34855 " /* Call guestfs_add_drive additional times if there are\n"
34856 "  * multiple disk images.\n"
34857 "  */\n"
34858 " guestfs_add_drive (g, \"guest.img\");\n"
34859 " \n"
34860 msgstr ""
34861
34862 #. type: verbatim
34863 #: ../src/guestfs.pod:83
34864 #, no-wrap
34865 msgid ""
34866 " /* Most manipulation calls won't work until you've launched\n"
34867 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
34868 "  * and _before_ other commands.\n"
34869 "  */\n"
34870 " guestfs_launch (g);\n"
34871 " \n"
34872 msgstr ""
34873
34874 #. type: verbatim
34875 #: ../src/guestfs.pod:89
34876 #, no-wrap
34877 msgid ""
34878 " /* Now you can examine what partitions, LVs etc are available.\n"
34879 "  */\n"
34880 " char **partitions = guestfs_list_partitions (g);\n"
34881 " char **logvols = guestfs_lvs (g);\n"
34882 " \n"
34883 msgstr ""
34884
34885 #. type: verbatim
34886 #: ../src/guestfs.pod:94
34887 #, no-wrap
34888 msgid ""
34889 " /* To access a filesystem in the image, you must mount it.\n"
34890 "  */\n"
34891 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34892 " \n"
34893 msgstr ""
34894
34895 #. type: verbatim
34896 #: ../src/guestfs.pod:98
34897 #, no-wrap
34898 msgid ""
34899 " /* Now you can perform filesystem actions on the guest\n"
34900 "  * disk image.\n"
34901 "  */\n"
34902 " guestfs_touch (g, \"/hello\");\n"
34903 " \n"
34904 msgstr ""
34905
34906 #. type: verbatim
34907 #: ../src/guestfs.pod:103
34908 #, no-wrap
34909 msgid ""
34910 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
34911 "  * it is done automatically when you close the handle.  See\n"
34912 "  * discussion of autosync in this page.\n"
34913 "  */\n"
34914 " guestfs_sync (g);\n"
34915 " \n"
34916 msgstr ""
34917
34918 #. type: verbatim
34919 #: ../src/guestfs.pod:109
34920 #, no-wrap
34921 msgid ""
34922 " /* Close the handle 'g'. */\n"
34923 " guestfs_close (g);\n"
34924 "\n"
34925 msgstr ""
34926
34927 #. type: textblock
34928 #: ../src/guestfs.pod:112
34929 msgid ""
34930 "The code above doesn't include any error checking.  In real code you should "
34931 "check return values carefully for errors.  In general all functions that "
34932 "return integers return C<-1> on error, and all functions that return "
34933 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
34934 "how to handle errors, and consult the documentation for each function call "
34935 "below to see precisely how they return error indications.  See "
34936 "L<guestfs-examples(3)> for fully worked examples."
34937 msgstr ""
34938
34939 #. type: =head2
34940 #: ../src/guestfs.pod:121
34941 msgid "DISK IMAGES"
34942 msgstr ""
34943
34944 #. type: textblock
34945 #: ../src/guestfs.pod:123
34946 msgid ""
34947 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
34948 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
34949 "actual block device, or simply an empty file of zeroes that you have created "
34950 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
34951 "of these."
34952 msgstr ""
34953
34954 #. type: textblock
34955 #: ../src/guestfs.pod:129
34956 msgid ""
34957 "The call you should use in modern code for adding drives is "
34958 "L</guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
34959 "specifying that the format is raw, do:"
34960 msgstr ""
34961
34962 #. type: verbatim
34963 #: ../src/guestfs.pod:133
34964 #, no-wrap
34965 msgid ""
34966 " guestfs_add_drive_opts (g, filename,\n"
34967 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34968 "                         -1);\n"
34969 "\n"
34970 msgstr ""
34971
34972 #. type: textblock
34973 #: ../src/guestfs.pod:137
34974 msgid "You can add a disk read-only using:"
34975 msgstr ""
34976
34977 #. type: verbatim
34978 #: ../src/guestfs.pod:139
34979 #, no-wrap
34980 msgid ""
34981 " guestfs_add_drive_opts (g, filename,\n"
34982 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34983 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
34984 "                         -1);\n"
34985 "\n"
34986 msgstr ""
34987
34988 #. type: textblock
34989 #: ../src/guestfs.pod:144
34990 msgid ""
34991 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
34992 "libguestfs won't modify the file."
34993 msgstr ""
34994
34995 #. type: textblock
34996 #: ../src/guestfs.pod:147
34997 msgid ""
34998 "Be extremely cautious if the disk image is in use, eg. if it is being used "
34999 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
35000 "corruption, but adding it read-only is safe."
35001 msgstr ""
35002
35003 #. type: textblock
35004 #: ../src/guestfs.pod:151
35005 msgid ""
35006 "You must add at least one disk image, and you may add multiple disk images.  "
35007 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
35008 "first one you added), C</dev/sdb> (for the second one you added), etc."
35009 msgstr ""
35010
35011 #. type: textblock
35012 #: ../src/guestfs.pod:156
35013 msgid ""
35014 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
35015 "can call L</guestfs_list_devices> to get a list of the device names, in the "
35016 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
35017 msgstr ""
35018
35019 #. type: =head2
35020 #: ../src/guestfs.pod:161
35021 msgid "MOUNTING"
35022 msgstr ""
35023
35024 #. type: textblock
35025 #: ../src/guestfs.pod:163
35026 msgid ""
35027 "Before you can read or write files, create directories and so on in a disk "
35028 "image that contains filesystems, you have to mount those filesystems using "
35029 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
35030 "a disk image contains (for example) one partition with a filesystem on that "
35031 "partition, then you can mount it directly:"
35032 msgstr ""
35033
35034 #. type: verbatim
35035 #: ../src/guestfs.pod:170
35036 #, no-wrap
35037 msgid ""
35038 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
35039 "\n"
35040 msgstr ""
35041
35042 #. type: textblock
35043 #: ../src/guestfs.pod:172
35044 msgid ""
35045 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
35046 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
35047 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
35048 "that these are libguestfs virtual devices, and are nothing to do with host "
35049 "devices."
35050 msgstr ""
35051
35052 #. type: textblock
35053 #: ../src/guestfs.pod:178
35054 msgid ""
35055 "If you are given a disk image and you don't know what it contains then you "
35056 "have to find out.  Libguestfs can do that too: use "
35057 "L</guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions "
35058 "and LVs, and either try mounting each to see what is mountable, or else "
35059 "examine them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
35060 "filesystems, use L</guestfs_list_filesystems>."
35061 msgstr ""
35062
35063 #. type: textblock
35064 #: ../src/guestfs.pod:186
35065 msgid ""
35066 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
35067 "L</INSPECTION> below).  But you might find it easier to look at higher level "
35068 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
35069 msgstr ""
35070
35071 #. type: textblock
35072 #: ../src/guestfs.pod:191
35073 msgid ""
35074 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
35075 "several other variations of the C<guestfs_mount_*> call."
35076 msgstr ""
35077
35078 #. type: =head2
35079 #: ../src/guestfs.pod:194
35080 msgid "FILESYSTEM ACCESS AND MODIFICATION"
35081 msgstr ""
35082
35083 #. type: textblock
35084 #: ../src/guestfs.pod:196
35085 msgid ""
35086 "The majority of the libguestfs API consists of fairly low-level calls for "
35087 "accessing and modifying the files, directories, symlinks etc on mounted "
35088 "filesystems.  There are over a hundred such calls which you can find listed "
35089 "in detail below in this man page, and we don't even pretend to cover them "
35090 "all in this overview."
35091 msgstr ""
35092
35093 #. type: textblock
35094 #: ../src/guestfs.pod:202
35095 msgid ""
35096 "Specify filenames as full paths, starting with C<\"/\"> and including the "
35097 "mount point."
35098 msgstr ""
35099
35100 #. type: textblock
35101 #: ../src/guestfs.pod:205
35102 msgid ""
35103 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
35104 "the file called C<\"etc/passwd\"> then you could do:"
35105 msgstr ""
35106
35107 #. type: verbatim
35108 #: ../src/guestfs.pod:208
35109 #, no-wrap
35110 msgid ""
35111 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
35112 "\n"
35113 msgstr ""
35114
35115 #. type: textblock
35116 #: ../src/guestfs.pod:210
35117 msgid ""
35118 "This would return C<data> as a newly allocated buffer containing the full "
35119 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
35120 "or C<NULL> if there was an error."
35121 msgstr ""
35122
35123 #. type: textblock
35124 #: ../src/guestfs.pod:214
35125 msgid ""
35126 "As another example, to create a top-level directory on that filesystem "
35127 "called C<\"var\"> you would do:"
35128 msgstr ""
35129
35130 #. type: verbatim
35131 #: ../src/guestfs.pod:217
35132 #, no-wrap
35133 msgid ""
35134 " guestfs_mkdir (g, \"/var\");\n"
35135 "\n"
35136 msgstr ""
35137
35138 #. type: textblock
35139 #: ../src/guestfs.pod:219
35140 msgid "To create a symlink you could do:"
35141 msgstr ""
35142
35143 #. type: verbatim
35144 #: ../src/guestfs.pod:221
35145 #, no-wrap
35146 msgid ""
35147 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
35148 "               \"/etc/rc3.d/S30portmap\");\n"
35149 "\n"
35150 msgstr ""
35151
35152 #. type: textblock
35153 #: ../src/guestfs.pod:224
35154 msgid ""
35155 "Libguestfs will reject attempts to use relative paths and there is no "
35156 "concept of a current working directory."
35157 msgstr ""
35158
35159 #. type: textblock
35160 #: ../src/guestfs.pod:227
35161 msgid ""
35162 "Libguestfs can return errors in many situations: for example if the "
35163 "filesystem isn't writable, or if a file or directory that you requested "
35164 "doesn't exist.  If you are using the C API (documented here)  you have to "
35165 "check for those error conditions after each call.  (Other language bindings "
35166 "turn these errors into exceptions)."
35167 msgstr ""
35168
35169 #. type: textblock
35170 #: ../src/guestfs.pod:233
35171 msgid ""
35172 "File writes are affected by the per-handle umask, set by calling "
35173 "L</guestfs_umask> and defaulting to 022.  See L</UMASK>."
35174 msgstr ""
35175
35176 #. type: =head2
35177 #: ../src/guestfs.pod:236
35178 msgid "PARTITIONING"
35179 msgstr ""
35180
35181 #. type: textblock
35182 #: ../src/guestfs.pod:238
35183 msgid ""
35184 "Libguestfs contains API calls to read, create and modify partition tables on "
35185 "disk images."
35186 msgstr ""
35187
35188 #. type: textblock
35189 #: ../src/guestfs.pod:241
35190 msgid ""
35191 "In the common case where you want to create a single partition covering the "
35192 "whole disk, you should use the L</guestfs_part_disk> call:"
35193 msgstr ""
35194
35195 #. type: verbatim
35196 #: ../src/guestfs.pod:245
35197 #, no-wrap
35198 msgid ""
35199 " const char *parttype = \"mbr\";\n"
35200 " if (disk_is_larger_than_2TB)\n"
35201 "   parttype = \"gpt\";\n"
35202 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
35203 "\n"
35204 msgstr ""
35205
35206 #. type: textblock
35207 #: ../src/guestfs.pod:250
35208 msgid ""
35209 "Obviously this effectively wipes anything that was on that disk image "
35210 "before."
35211 msgstr ""
35212
35213 #. type: =head2
35214 #: ../src/guestfs.pod:253
35215 msgid "LVM2"
35216 msgstr ""
35217
35218 #. type: textblock
35219 #: ../src/guestfs.pod:255
35220 msgid ""
35221 "Libguestfs provides access to a large part of the LVM2 API, such as "
35222 "L</guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense "
35223 "unless you familiarize yourself with the concepts of physical volumes, "
35224 "volume groups and logical volumes."
35225 msgstr ""
35226
35227 #. type: textblock
35228 #: ../src/guestfs.pod:260
35229 msgid ""
35230 "This author strongly recommends reading the LVM HOWTO, online at "
35231 "L<http://tldp.org/HOWTO/LVM-HOWTO/>."
35232 msgstr ""
35233
35234 #. type: =head2
35235 #: ../src/guestfs.pod:263
35236 msgid "DOWNLOADING"
35237 msgstr ""
35238
35239 #. type: textblock
35240 #: ../src/guestfs.pod:265
35241 msgid ""
35242 "Use L</guestfs_cat> to download small, text only files.  This call is "
35243 "limited to files which are less than 2 MB and which cannot contain any ASCII "
35244 "NUL (C<\\0>) characters.  However the API is very simple to use."
35245 msgstr ""
35246
35247 #. type: textblock
35248 #: ../src/guestfs.pod:269
35249 msgid ""
35250 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
35251 "bit data, since it returns a (pointer, size) pair.  However it is still "
35252 "limited to \"small\" files, less than 2 MB."
35253 msgstr ""
35254
35255 #. type: textblock
35256 #: ../src/guestfs.pod:273
35257 msgid ""
35258 "L</guestfs_download> can be used to download any file, with no limits on "
35259 "content or size (even files larger than 4 GB)."
35260 msgstr ""
35261
35262 #. type: textblock
35263 #: ../src/guestfs.pod:276
35264 msgid "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
35265 msgstr ""
35266
35267 #. type: =head2
35268 #: ../src/guestfs.pod:279
35269 msgid "UPLOADING"
35270 msgstr ""
35271
35272 #. type: textblock
35273 #: ../src/guestfs.pod:281
35274 msgid ""
35275 "It's often the case that you want to write a file or files to the disk "
35276 "image."
35277 msgstr ""
35278
35279 #. type: textblock
35280 #: ../src/guestfs.pod:284
35281 msgid ""
35282 "To write a small file with fixed content, use L</guestfs_write>.  To create "
35283 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or "
35284 "L</guestfs_fallocate64> (with all disk blocks allocated).  There are a "
35285 "variety of other functions for creating test files, for example "
35286 "L</guestfs_fill> and L</guestfs_fill_pattern>."
35287 msgstr ""
35288
35289 #. type: textblock
35290 #: ../src/guestfs.pod:290
35291 msgid ""
35292 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
35293 "file content or size (even files larger than 4 GB)."
35294 msgstr ""
35295
35296 #. type: textblock
35297 #: ../src/guestfs.pod:293
35298 msgid "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
35299 msgstr ""
35300
35301 #. type: textblock
35302 #: ../src/guestfs.pod:295
35303 msgid ""
35304 "However the fastest way to upload I<large numbers of arbitrary files> is to "
35305 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and "
35306 "L<mkisofs(8)>), then attach this using L</guestfs_add_drive_ro>.  If you add "
35307 "the drive in a predictable way (eg. adding it last after all other drives) "
35308 "then you can get the device name from L</guestfs_list_devices> and mount it "
35309 "directly using L</guestfs_mount_ro>.  Note that squashfs images are "
35310 "sometimes non-portable between kernel versions, and they don't support "
35311 "labels or UUIDs.  If you want to pre-build an image or you need to mount it "
35312 "using a label or UUID, use an ISO image instead."
35313 msgstr ""
35314
35315 #. type: =head2
35316 #: ../src/guestfs.pod:306
35317 msgid "COPYING"
35318 msgstr ""
35319
35320 #. type: textblock
35321 #: ../src/guestfs.pod:308
35322 msgid ""
35323 "There are various different commands for copying between files and devices "
35324 "and in and out of the guest filesystem.  These are summarised in the table "
35325 "below."
35326 msgstr ""
35327
35328 #. type: =item
35329 #: ../src/guestfs.pod:314
35330 msgid "B<file> to B<file>"
35331 msgstr ""
35332
35333 #. type: textblock
35334 #: ../src/guestfs.pod:316
35335 msgid ""
35336 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
35337 "directories recursively."
35338 msgstr ""
35339
35340 #. type: textblock
35341 #: ../src/guestfs.pod:319
35342 msgid "To copy part of a file (offset and size) use L</guestfs_copy_file_to_file>."
35343 msgstr ""
35344
35345 #. type: =item
35346 #: ../src/guestfs.pod:322
35347 msgid "B<file> to B<device>"
35348 msgstr ""
35349
35350 #. type: =item
35351 #: ../src/guestfs.pod:324
35352 msgid "B<device> to B<file>"
35353 msgstr ""
35354
35355 #. type: =item
35356 #: ../src/guestfs.pod:326
35357 msgid "B<device> to B<device>"
35358 msgstr ""
35359
35360 #. type: textblock
35361 #: ../src/guestfs.pod:328
35362 msgid ""
35363 "Use L</guestfs_copy_file_to_device>, L</guestfs_copy_device_to_file>, or "
35364 "L</guestfs_copy_device_to_device>."
35365 msgstr ""
35366
35367 #. type: textblock
35368 #: ../src/guestfs.pod:331
35369 msgid "Example: duplicate the contents of an LV:"
35370 msgstr ""
35371
35372 #. type: verbatim
35373 #: ../src/guestfs.pod:333
35374 #, no-wrap
35375 msgid ""
35376 " guestfs_copy_device_to_device (g,\n"
35377 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
35378 "         /* -1 marks the end of the list of optional parameters */\n"
35379 "         -1);\n"
35380 "\n"
35381 msgstr ""
35382
35383 #. type: textblock
35384 #: ../src/guestfs.pod:338
35385 msgid ""
35386 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
35387 "(C</dev/VG/Original>).  To copy less than the whole source device, use the "
35388 "optional C<size> parameter:"
35389 msgstr ""
35390
35391 #. type: verbatim
35392 #: ../src/guestfs.pod:342
35393 #, no-wrap
35394 msgid ""
35395 " guestfs_copy_device_to_device (g,\n"
35396 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
35397 "         GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, 10000,\n"
35398 "         -1);\n"
35399 "\n"
35400 msgstr ""
35401
35402 #. type: =item
35403 #: ../src/guestfs.pod:347
35404 msgid "B<file on the host> to B<file or device>"
35405 msgstr ""
35406
35407 #. type: textblock
35408 #: ../src/guestfs.pod:349
35409 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
35410 msgstr ""
35411
35412 #. type: =item
35413 #: ../src/guestfs.pod:351
35414 msgid "B<file or device> to B<file on the host>"
35415 msgstr ""
35416
35417 #. type: textblock
35418 #: ../src/guestfs.pod:353
35419 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
35420 msgstr ""
35421
35422 #. type: =head2
35423 #: ../src/guestfs.pod:357
35424 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
35425 msgstr ""
35426
35427 #. type: textblock
35428 #: ../src/guestfs.pod:359
35429 msgid ""
35430 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, "
35431 "L</guestfs_tar_out> etc appear to only take filenames as arguments, so it "
35432 "appears you can only upload and download to files.  However many Un*x-like "
35433 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, "
35434 "C</dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, "
35435 "stderr, and arbitrary file descriptor N."
35436 msgstr ""
35437
35438 #. type: textblock
35439 #: ../src/guestfs.pod:367
35440 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
35441 msgstr ""
35442
35443 #. type: verbatim
35444 #: ../src/guestfs.pod:370
35445 #, no-wrap
35446 msgid ""
35447 " guestfs_download (g, filename, \"/dev/stdout\");\n"
35448 "\n"
35449 msgstr ""
35450
35451 #. type: textblock
35452 #: ../src/guestfs.pod:372
35453 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
35454 msgstr ""
35455
35456 #. type: verbatim
35457 #: ../src/guestfs.pod:374
35458 #, no-wrap
35459 msgid ""
35460 " char devfd[64];\n"
35461 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
35462 " guestfs_tar_out (g, \"/\", devfd);\n"
35463 "\n"
35464 msgstr ""
35465
35466 #. type: =head2
35467 #: ../src/guestfs.pod:378
35468 msgid "LISTING FILES"
35469 msgstr ""
35470
35471 #. type: textblock
35472 #: ../src/guestfs.pod:380
35473 msgid ""
35474 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
35475 "L<guestfish(1)>-equivalent command C<ll>)."
35476 msgstr ""
35477
35478 #. type: textblock
35479 #: ../src/guestfs.pod:383
35480 msgid ""
35481 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
35482 "programs, as a flat list of strings."
35483 msgstr ""
35484
35485 #. type: textblock
35486 #: ../src/guestfs.pod:386
35487 msgid ""
35488 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
35489 "directory, plus additional information about each one.  It is more "
35490 "equivalent to using the L<readdir(3)> call on a local filesystem."
35491 msgstr ""
35492
35493 #. type: textblock
35494 #: ../src/guestfs.pod:390
35495 msgid ""
35496 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list "
35497 "files."
35498 msgstr ""
35499
35500 #. type: =head2
35501 #: ../src/guestfs.pod:393
35502 msgid "RUNNING COMMANDS"
35503 msgstr ""
35504
35505 #. type: textblock
35506 #: ../src/guestfs.pod:395
35507 msgid ""
35508 "Although libguestfs is primarily an API for manipulating files inside guest "
35509 "images, we also provide some limited facilities for running commands inside "
35510 "guests."
35511 msgstr ""
35512
35513 #. type: textblock
35514 #: ../src/guestfs.pod:399
35515 msgid "There are many limitations to this:"
35516 msgstr ""
35517
35518 #. type: textblock
35519 #: ../src/guestfs.pod:405
35520 msgid ""
35521 "The kernel version that the command runs under will be different from what "
35522 "it expects."
35523 msgstr ""
35524
35525 #. type: textblock
35526 #: ../src/guestfs.pod:410
35527 msgid ""
35528 "If the command needs to communicate with daemons, then most likely they "
35529 "won't be running."
35530 msgstr ""
35531
35532 #. type: textblock
35533 #: ../src/guestfs.pod:415
35534 msgid "The command will be running in limited memory."
35535 msgstr ""
35536
35537 #. type: textblock
35538 #: ../src/guestfs.pod:419
35539 msgid ""
35540 "The network may not be available unless you enable it (see "
35541 "L</guestfs_set_network>)."
35542 msgstr ""
35543
35544 #. type: textblock
35545 #: ../src/guestfs.pod:424
35546 msgid "Only supports Linux guests (not Windows, BSD, etc)."
35547 msgstr ""
35548
35549 #. type: textblock
35550 #: ../src/guestfs.pod:428
35551 msgid "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
35552 msgstr ""
35553
35554 #. type: textblock
35555 #: ../src/guestfs.pod:433
35556 msgid ""
35557 "For SELinux guests, you may need to enable SELinux and load policy first.  "
35558 "See L</SELINUX> in this manpage."
35559 msgstr ""
35560
35561 #. type: textblock
35562 #: ../src/guestfs.pod:438
35563 msgid ""
35564 "I<Security:> It is not safe to run commands from untrusted, possibly "
35565 "malicious guests.  These commands may attempt to exploit your program by "
35566 "sending unexpected output.  They could also try to exploit the Linux kernel "
35567 "or qemu provided by the libguestfs appliance.  They could use the network "
35568 "provided by the libguestfs appliance to bypass ordinary network partitions "
35569 "and firewalls.  They could use the elevated privileges or different SELinux "
35570 "context of your program to their advantage."
35571 msgstr ""
35572
35573 #. type: textblock
35574 #: ../src/guestfs.pod:447
35575 msgid ""
35576 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
35577 "(a script which runs when the guest next boots normally), and to have this "
35578 "script run the commands you want in the normal context of the running guest, "
35579 "network security and so on.  For information about other security issues, "
35580 "see L</SECURITY>."
35581 msgstr ""
35582
35583 #. type: textblock
35584 #: ../src/guestfs.pod:455
35585 msgid ""
35586 "The two main API calls to run commands are L</guestfs_command> and "
35587 "L</guestfs_sh> (there are also variations)."
35588 msgstr ""
35589
35590 #. type: textblock
35591 #: ../src/guestfs.pod:458
35592 msgid ""
35593 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
35594 "shell globs, redirections, etc will work."
35595 msgstr ""
35596
35597 #. type: =head2
35598 #: ../src/guestfs.pod:461
35599 msgid "CONFIGURATION FILES"
35600 msgstr ""
35601
35602 #. type: textblock
35603 #: ../src/guestfs.pod:463
35604 msgid ""
35605 "To read and write configuration files in Linux guest filesystems, we "
35606 "strongly recommend using Augeas.  For example, Augeas understands how to "
35607 "read and write, say, a Linux shadow password file or X.org configuration "
35608 "file, and so avoids you having to write that code."
35609 msgstr ""
35610
35611 #. type: textblock
35612 #: ../src/guestfs.pod:468
35613 msgid ""
35614 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
35615 "document Augeas itself here because there is excellent documentation on the "
35616 "L<http://augeas.net/> website."
35617 msgstr ""
35618
35619 #. type: textblock
35620 #: ../src/guestfs.pod:472
35621 msgid ""
35622 "If you don't want to use Augeas (you fool!) then try calling "
35623 "L</guestfs_read_lines> to get the file as a list of lines which you can "
35624 "iterate over."
35625 msgstr ""
35626
35627 #. type: =head2
35628 #: ../src/guestfs.pod:476
35629 msgid "SELINUX"
35630 msgstr ""
35631
35632 #. type: textblock
35633 #: ../src/guestfs.pod:478
35634 msgid ""
35635 "We support SELinux guests.  To ensure that labeling happens correctly in "
35636 "SELinux guests, you need to enable SELinux and load the guest's policy:"
35637 msgstr ""
35638
35639 #. type: textblock
35640 #: ../src/guestfs.pod:486
35641 msgid "Before launching, do:"
35642 msgstr ""
35643
35644 #. type: verbatim
35645 #: ../src/guestfs.pod:488
35646 #, no-wrap
35647 msgid ""
35648 " guestfs_set_selinux (g, 1);\n"
35649 "\n"
35650 msgstr ""
35651
35652 #. type: textblock
35653 #: ../src/guestfs.pod:492
35654 msgid ""
35655 "After mounting the guest's filesystem(s), load the policy.  This is best "
35656 "done by running the L<load_policy(8)> command in the guest itself:"
35657 msgstr ""
35658
35659 #. type: verbatim
35660 #: ../src/guestfs.pod:496
35661 #, no-wrap
35662 msgid ""
35663 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
35664 "\n"
35665 msgstr ""
35666
35667 #. type: textblock
35668 #: ../src/guestfs.pod:498
35669 msgid ""
35670 "(Older versions of C<load_policy> require you to specify the name of the "
35671 "policy file)."
35672 msgstr ""
35673
35674 #. type: textblock
35675 #: ../src/guestfs.pod:503
35676 msgid ""
35677 "Optionally, set the security context for the API.  The correct security "
35678 "context to use can only be known by inspecting the guest.  As an example:"
35679 msgstr ""
35680
35681 #. type: verbatim
35682 #: ../src/guestfs.pod:507
35683 #, no-wrap
35684 msgid ""
35685 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
35686 "\n"
35687 msgstr ""
35688
35689 #. type: textblock
35690 #: ../src/guestfs.pod:511
35691 msgid "This will work for running commands and editing existing files."
35692 msgstr ""
35693
35694 #. type: textblock
35695 #: ../src/guestfs.pod:513
35696 msgid ""
35697 "When new files are created, you may need to label them explicitly, for "
35698 "example by running the external command C<restorecon pathname>."
35699 msgstr ""
35700
35701 #. type: =head2
35702 #: ../src/guestfs.pod:517
35703 msgid "UMASK"
35704 msgstr ""
35705
35706 #. type: textblock
35707 #: ../src/guestfs.pod:519
35708 msgid ""
35709 "Certain calls are affected by the current file mode creation mask (the "
35710 "\"umask\").  In particular ones which create files or directories, such as "
35711 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
35712 "either the default mode that the file is created with or modifies the mode "
35713 "that you supply."
35714 msgstr ""
35715
35716 #. type: textblock
35717 #: ../src/guestfs.pod:525
35718 msgid ""
35719 "The default umask is C<022>, so files are created with modes such as C<0644> "
35720 "and directories with C<0755>."
35721 msgstr ""
35722
35723 #. type: textblock
35724 #: ../src/guestfs.pod:528
35725 msgid ""
35726 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
35727 "(call C<guestfs_umask (g, 0)> early after launching).  Or call "
35728 "L</guestfs_chmod> after creating each file or directory."
35729 msgstr ""
35730
35731 #. type: textblock
35732 #: ../src/guestfs.pod:532
35733 msgid "For more information about umask, see L<umask(2)>."
35734 msgstr ""
35735
35736 #. type: textblock
35737 #: ../src/guestfs.pod:536
35738 msgid ""
35739 "Libguestfs allows you to access Linux guests which have been encrypted using "
35740 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
35741 "standard.  This includes nearly all whole disk encryption systems used by "
35742 "modern Linux guests."
35743 msgstr ""
35744
35745 #. type: textblock
35746 #: ../src/guestfs.pod:542
35747 msgid ""
35748 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
35749 "returns the string C<crypto_LUKS>)."
35750 msgstr ""
35751
35752 #. type: textblock
35753 #: ../src/guestfs.pod:545
35754 msgid ""
35755 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
35756 "will require the passphrase!"
35757 msgstr ""
35758
35759 #. type: textblock
35760 #: ../src/guestfs.pod:548
35761 msgid ""
35762 "Opening a LUKS device creates a new device mapper device called "
35763 "C</dev/mapper/mapname> (where C<mapname> is the string you supply to "
35764 "L</guestfs_luks_open>).  Reads and writes to this mapper device are "
35765 "decrypted from and encrypted to the underlying block device respectively."
35766 msgstr ""
35767
35768 #. type: textblock
35769 #: ../src/guestfs.pod:554
35770 msgid ""
35771 "LVM volume groups on the device can be made visible by calling "
35772 "L</guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical "
35773 "volume(s) can now be mounted in the usual way."
35774 msgstr ""
35775
35776 #. type: textblock
35777 #: ../src/guestfs.pod:558
35778 msgid ""
35779 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
35780 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
35781 "[\"/dev/VG\"])>.  Then close the mapper device by calling "
35782 "L</guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
35783 "underlying encrypted block device)."
35784 msgstr ""
35785
35786 #. type: =head2
35787 #: ../src/guestfs.pod:565
35788 msgid "INSPECTION"
35789 msgstr ""
35790
35791 #. type: textblock
35792 #: ../src/guestfs.pod:567
35793 msgid ""
35794 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
35795 "contains operating systems, an install CD or a live CD.  (These APIs used to "
35796 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
35797 "version 1.5.3 the most frequently used part of this library has been "
35798 "rewritten in C and moved into the core code)."
35799 msgstr ""
35800
35801 #. type: textblock
35802 #: ../src/guestfs.pod:574
35803 msgid ""
35804 "Add all disks belonging to the unknown virtual machine and call "
35805 "L</guestfs_launch> in the usual way."
35806 msgstr ""
35807
35808 #. type: textblock
35809 #: ../src/guestfs.pod:577
35810 msgid ""
35811 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
35812 "and certain heuristics, and returns a list of operating systems that were "
35813 "found.  An empty list means none were found.  A single element is the root "
35814 "filesystem of the operating system.  For dual- or multi-boot guests, "
35815 "multiple roots can be returned, each one corresponding to a separate "
35816 "operating system.  (Multi-boot virtual machines are extremely rare in the "
35817 "world of virtualization, but since this scenario can happen, we have built "
35818 "libguestfs to deal with it.)"
35819 msgstr ""
35820
35821 #. type: textblock
35822 #: ../src/guestfs.pod:586
35823 msgid ""
35824 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
35825 "to get additional details about that operating system.  For example, call "
35826 "L</guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
35827 "Windows and Linux-based operating systems respectively."
35828 msgstr ""
35829
35830 #. type: textblock
35831 #: ../src/guestfs.pod:592
35832 msgid ""
35833 "Un*x-like and Linux-based operating systems usually consist of several "
35834 "filesystems which are mounted at boot time (for example, a separate boot "
35835 "partition mounted on C</boot>).  The inspection rules are able to detect how "
35836 "filesystems correspond to mount points.  Call "
35837 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
35838 "hash table like this example:"
35839 msgstr ""
35840
35841 #. type: verbatim
35842 #: ../src/guestfs.pod:599
35843 #, no-wrap
35844 msgid ""
35845 " /boot => /dev/sda1\n"
35846 " /     => /dev/vg_guest/lv_root\n"
35847 " /usr  => /dev/vg_guest/lv_usr\n"
35848 "\n"
35849 msgstr ""
35850
35851 #. type: textblock
35852 #: ../src/guestfs.pod:603
35853 msgid ""
35854 "The caller can then make calls to L</guestfs_mount_options> to mount the "
35855 "filesystems as suggested."
35856 msgstr ""
35857
35858 #. type: textblock
35859 #: ../src/guestfs.pod:606
35860 msgid ""
35861 "Be careful to mount filesystems in the right order (eg. C</> before "
35862 "C</usr>).  Sorting the keys of the hash by length, shortest first, should "
35863 "work."
35864 msgstr ""
35865
35866 #. type: textblock
35867 #: ../src/guestfs.pod:610
35868 msgid ""
35869 "Inspection currently only works for some common operating systems.  "
35870 "Contributors are welcome to send patches for other operating systems that we "
35871 "currently cannot detect."
35872 msgstr ""
35873
35874 #. type: textblock
35875 #: ../src/guestfs.pod:614
35876 msgid ""
35877 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
35878 "for more details.  The L</guestfs_inspect_os> function just ignores any "
35879 "encrypted devices."
35880 msgstr ""
35881
35882 #. type: textblock
35883 #: ../src/guestfs.pod:618
35884 msgid ""
35885 "A note on the implementation: The call L</guestfs_inspect_os> performs "
35886 "inspection and caches the results in the guest handle.  Subsequent calls to "
35887 "C<guestfs_inspect_get_*> return this cached information, but I<do not> "
35888 "re-read the disks.  If you change the content of the guest disks, you can "
35889 "redo inspection by calling L</guestfs_inspect_os> again.  "
35890 "(L</guestfs_inspect_list_applications> works a little differently from the "
35891 "other calls and does read the disks.  See documentation for that function "
35892 "for details)."
35893 msgstr ""
35894
35895 #. type: =head3
35896 #: ../src/guestfs.pod:627
35897 msgid "INSPECTING INSTALL DISKS"
35898 msgstr ""
35899
35900 #. type: textblock
35901 #: ../src/guestfs.pod:629
35902 msgid ""
35903 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
35904 "CDs and more."
35905 msgstr ""
35906
35907 #. type: textblock
35908 #: ../src/guestfs.pod:632
35909 msgid ""
35910 "Call L</guestfs_inspect_get_format> to return the format of the operating "
35911 "system, which currently can be C<installed> (a regular operating system) or "
35912 "C<installer> (some sort of install disk)."
35913 msgstr ""
35914
35915 #. type: textblock
35916 #: ../src/guestfs.pod:636
35917 msgid ""
35918 "Further information is available about the operating system that can be "
35919 "installed using the regular inspection APIs like "
35920 "L</guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> "
35921 "etc."
35922 msgstr ""
35923
35924 #. type: textblock
35925 #: ../src/guestfs.pod:641
35926 msgid ""
35927 "Some additional information specific to installer disks is also available "
35928 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and "
35929 "L</guestfs_inspect_is_multipart> calls."
35930 msgstr ""
35931
35932 #. type: =head2
35933 #: ../src/guestfs.pod:646
35934 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
35935 msgstr ""
35936
35937 #. type: textblock
35938 #: ../src/guestfs.pod:648
35939 msgid ""
35940 "Libguestfs can mount NTFS partitions.  It does this using the "
35941 "L<http://www.ntfs-3g.org/> driver."
35942 msgstr ""
35943
35944 #. type: =head3
35945 #: ../src/guestfs.pod:651
35946 msgid "DRIVE LETTERS AND PATHS"
35947 msgstr ""
35948
35949 #. type: textblock
35950 #: ../src/guestfs.pod:653
35951 msgid ""
35952 "DOS and Windows still use drive letters, and the filesystems are always "
35953 "treated as case insensitive by Windows itself, and therefore you might find "
35954 "a Windows configuration file referring to a path like "
35955 "C<c:\\windows\\system32>.  When the filesystem is mounted in libguestfs, "
35956 "that directory might be referred to as C</WINDOWS/System32>."
35957 msgstr ""
35958
35959 #. type: textblock
35960 #: ../src/guestfs.pod:659
35961 msgid ""
35962 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
35963 "L</guestfs_inspect_get_drive_mappings>)"
35964 msgstr ""
35965
35966 #. type: textblock
35967 #: ../src/guestfs.pod:662
35968 msgid ""
35969 "Dealing with separator characters (backslash vs forward slash) is outside "
35970 "the scope of libguestfs, but usually a simple character replacement will "
35971 "work."
35972 msgstr ""
35973
35974 #. type: textblock
35975 #: ../src/guestfs.pod:666
35976 msgid ""
35977 "To resolve the case insensitivity of paths, call "
35978 "L</guestfs_case_sensitive_path>."
35979 msgstr ""
35980
35981 #. type: =head3
35982 #: ../src/guestfs.pod:669
35983 msgid "ACCESSING THE WINDOWS REGISTRY"
35984 msgstr ""
35985
35986 #. type: textblock
35987 #: ../src/guestfs.pod:671
35988 msgid ""
35989 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
35990 "files, through the library C<hivex> which is part of the libguestfs project "
35991 "although ships as a separate tarball.  You have to locate and download the "
35992 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
35993 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and "
35994 "L<virt-win-reg(1)> for more help on this issue."
35995 msgstr ""
35996
35997 #. type: =head3
35998 #: ../src/guestfs.pod:679
35999 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
36000 msgstr ""
36001
36002 #. type: textblock
36003 #: ../src/guestfs.pod:681
36004 msgid ""
36005 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
36006 "provide something which looks like a Linux symlink.  The way it tries to do "
36007 "the rewriting is described here:"
36008 msgstr ""
36009
36010 #. type: textblock
36011 #: ../src/guestfs.pod:685
36012 msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-symbolic-links/>"
36013 msgstr ""
36014
36015 #. type: textblock
36016 #: ../src/guestfs.pod:687
36017 msgid ""
36018 "The essential problem is that ntfs-3g simply does not have enough "
36019 "information to do a correct job.  NTFS links can contain drive letters and "
36020 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
36021 "It is almost certainly the case that libguestfs callers should ignore what "
36022 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
36023 msgstr ""
36024
36025 #. type: textblock
36026 #: ../src/guestfs.pod:694
36027 msgid ""
36028 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use "
36029 "L</guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
36030 "attribute, and read the raw reparse data from that (you can find the format "
36031 "documented in various places around the web)."
36032 msgstr ""
36033
36034 #. type: =head3
36035 #: ../src/guestfs.pod:699
36036 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
36037 msgstr ""
36038
36039 #. type: textblock
36040 #: ../src/guestfs.pod:701
36041 msgid ""
36042 "There are other useful extended attributes that can be read from ntfs-3g "
36043 "filesystems (using L</guestfs_getxattr>).  See:"
36044 msgstr ""
36045
36046 #. type: textblock
36047 #: ../src/guestfs.pod:704
36048 msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
36049 msgstr ""
36050
36051 #. type: =head2
36052 #: ../src/guestfs.pod:706
36053 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
36054 msgstr ""
36055
36056 #. type: textblock
36057 #: ../src/guestfs.pod:708
36058 msgid ""
36059 "Although we don't want to discourage you from using the C API, we will "
36060 "mention here that the same API is also available in other languages."
36061 msgstr ""
36062
36063 #. type: textblock
36064 #: ../src/guestfs.pod:711
36065 msgid ""
36066 "The API is broadly identical in all supported languages.  This means that "
36067 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
36068 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
36069 "OCaml.  In other words, a straightforward, predictable isomorphism between "
36070 "each language."
36071 msgstr ""
36072
36073 #. type: textblock
36074 #: ../src/guestfs.pod:717
36075 msgid ""
36076 "Error messages are automatically transformed into exceptions if the language "
36077 "supports it."
36078 msgstr ""
36079
36080 #. type: textblock
36081 #: ../src/guestfs.pod:720
36082 msgid ""
36083 "We don't try to \"object orientify\" parts of the API in OO languages, "
36084 "although contributors are welcome to write higher level APIs above what we "
36085 "provide in their favourite languages if they wish."
36086 msgstr ""
36087
36088 #. type: =item
36089 #: ../src/guestfs.pod:726
36090 msgid "B<C++>"
36091 msgstr ""
36092
36093 #. type: textblock
36094 #: ../src/guestfs.pod:728
36095 msgid ""
36096 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
36097 "identical to the C API.  C++ classes and exceptions are not used."
36098 msgstr ""
36099
36100 #. type: =item
36101 #: ../src/guestfs.pod:732
36102 msgid "B<C#>"
36103 msgstr ""
36104
36105 #. type: textblock
36106 #: ../src/guestfs.pod:734
36107 msgid ""
36108 "The C# bindings are highly experimental.  Please read the warnings at the "
36109 "top of C<csharp/Libguestfs.cs>."
36110 msgstr ""
36111
36112 #. type: =item
36113 #: ../src/guestfs.pod:737
36114 msgid "B<Erlang>"
36115 msgstr ""
36116
36117 #. type: textblock
36118 #: ../src/guestfs.pod:739
36119 msgid "See L<guestfs-erlang(3)>."
36120 msgstr ""
36121
36122 #. type: =item
36123 #: ../src/guestfs.pod:741
36124 msgid "B<Haskell>"
36125 msgstr ""
36126
36127 #. type: textblock
36128 #: ../src/guestfs.pod:743
36129 msgid ""
36130 "This is the only language binding that is working but incomplete.  Only "
36131 "calls which return simple integers have been bound in Haskell, and we are "
36132 "looking for help to complete this binding."
36133 msgstr ""
36134
36135 #. type: =item
36136 #: ../src/guestfs.pod:747
36137 msgid "B<Java>"
36138 msgstr ""
36139
36140 #. type: textblock
36141 #: ../src/guestfs.pod:749
36142 msgid ""
36143 "Full documentation is contained in the Javadoc which is distributed with "
36144 "libguestfs.  For examples, see L<guestfs-java(3)>."
36145 msgstr ""
36146
36147 #. type: =item
36148 #: ../src/guestfs.pod:752
36149 msgid "B<OCaml>"
36150 msgstr ""
36151
36152 #. type: textblock
36153 #: ../src/guestfs.pod:754
36154 msgid "See L<guestfs-ocaml(3)>."
36155 msgstr ""
36156
36157 #. type: =item
36158 #: ../src/guestfs.pod:756
36159 msgid "B<Perl>"
36160 msgstr ""
36161
36162 #. type: textblock
36163 #: ../src/guestfs.pod:758
36164 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
36165 msgstr ""
36166
36167 #. type: =item
36168 #: ../src/guestfs.pod:760
36169 msgid "B<PHP>"
36170 msgstr ""
36171
36172 #. type: textblock
36173 #: ../src/guestfs.pod:762
36174 msgid ""
36175 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
36176 "the php-libguestfs package for your distribution."
36177 msgstr ""
36178
36179 #. type: textblock
36180 #: ../src/guestfs.pod:765
36181 msgid "The PHP binding only works correctly on 64 bit machines."
36182 msgstr ""
36183
36184 #. type: =item
36185 #: ../src/guestfs.pod:767
36186 msgid "B<Python>"
36187 msgstr ""
36188
36189 #. type: textblock
36190 #: ../src/guestfs.pod:769
36191 msgid "See L<guestfs-python(3)>."
36192 msgstr ""
36193
36194 #. type: =item
36195 #: ../src/guestfs.pod:771
36196 msgid "B<Ruby>"
36197 msgstr ""
36198
36199 #. type: textblock
36200 #: ../src/guestfs.pod:773
36201 msgid "See L<guestfs-ruby(3)>."
36202 msgstr ""
36203
36204 #. type: =item
36205 #: ../src/guestfs.pod:775
36206 msgid "B<shell scripts>"
36207 msgstr ""
36208
36209 #. type: textblock
36210 #: ../src/guestfs.pod:777
36211 msgid "See L<guestfish(1)>."
36212 msgstr ""
36213
36214 #. type: =head2
36215 #: ../src/guestfs.pod:781
36216 msgid "LIBGUESTFS GOTCHAS"
36217 msgstr ""
36218
36219 #. type: textblock
36220 #: ../src/guestfs.pod:783
36221 msgid ""
36222 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
36223 "system [...] that works in the way it is documented but is counterintuitive "
36224 "and almost invites mistakes.\""
36225 msgstr ""
36226
36227 #. type: textblock
36228 #: ../src/guestfs.pod:787
36229 msgid ""
36230 "Since we developed libguestfs and the associated tools, there are several "
36231 "things we would have designed differently, but are now stuck with for "
36232 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
36233 "release, you can expect these to change.  Beware of them."
36234 msgstr ""
36235
36236 #. type: =item
36237 #: ../src/guestfs.pod:795
36238 msgid "Autosync / forgetting to sync."
36239 msgstr ""
36240
36241 #. type: textblock
36242 #: ../src/guestfs.pod:797
36243 msgid ""
36244 "I<Update:> Autosync is enabled by default for all API users starting from "
36245 "libguestfs 1.5.24.  This section only applies to older versions."
36246 msgstr ""
36247
36248 #. type: textblock
36249 #: ../src/guestfs.pod:800
36250 msgid ""
36251 "When modifying a filesystem from C or another language, you B<must> unmount "
36252 "all filesystems and call L</guestfs_sync> explicitly before you close the "
36253 "libguestfs handle.  You can also call:"
36254 msgstr ""
36255
36256 #. type: verbatim
36257 #: ../src/guestfs.pod:804
36258 #, no-wrap
36259 msgid ""
36260 " guestfs_set_autosync (g, 1);\n"
36261 "\n"
36262 msgstr ""
36263
36264 #. type: textblock
36265 #: ../src/guestfs.pod:806
36266 msgid ""
36267 "to have the unmount/sync done automatically for you when the handle 'g' is "
36268 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> "
36269 "q.v.)"
36270 msgstr ""
36271
36272 #. type: textblock
36273 #: ../src/guestfs.pod:810
36274 msgid ""
36275 "If you forget to do this, then it is entirely possible that your changes "
36276 "won't be written out, or will be partially written, or (very rarely) that "
36277 "you'll get disk corruption."
36278 msgstr ""
36279
36280 #. type: textblock
36281 #: ../src/guestfs.pod:814
36282 msgid ""
36283 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
36284 "guestfish scripts that forget to sync will work just fine, which can make "
36285 "this very puzzling if you are trying to debug a problem."
36286 msgstr ""
36287
36288 #. type: =item
36289 #: ../src/guestfs.pod:818
36290 msgid "Mount option C<-o sync> should not be the default."
36291 msgstr ""
36292
36293 #. type: textblock
36294 #: ../src/guestfs.pod:820
36295 msgid ""
36296 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
36297 "libguestfs 1.13.16.  This section only applies to older versions."
36298 msgstr ""
36299
36300 #. type: textblock
36301 #: ../src/guestfs.pod:823
36302 msgid ""
36303 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
36304 "However C<-o sync> does not add any reliability benefit, but does have a "
36305 "very large performance impact."
36306 msgstr ""
36307
36308 #. type: textblock
36309 #: ../src/guestfs.pod:827
36310 msgid ""
36311 "The work around is to use L</guestfs_mount_options> and set the mount "
36312 "options that you actually want to use."
36313 msgstr ""
36314
36315 #. type: =item
36316 #: ../src/guestfs.pod:830
36317 msgid "Read-only should be the default."
36318 msgstr ""
36319
36320 #. type: textblock
36321 #: ../src/guestfs.pod:832
36322 msgid ""
36323 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
36324 "specify I<--rw> if you want to make changes to the image."
36325 msgstr ""
36326
36327 #. type: textblock
36328 #: ../src/guestfs.pod:835
36329 msgid "This would reduce the potential to corrupt live VM images."
36330 msgstr ""
36331
36332 #. type: textblock
36333 #: ../src/guestfs.pod:837
36334 msgid ""
36335 "Note that many filesystems change the disk when you just mount and unmount, "
36336 "even if you didn't perform any writes.  You need to use "
36337 "L</guestfs_add_drive_ro> to guarantee that the disk is not changed."
36338 msgstr ""
36339
36340 #. type: =item
36341 #: ../src/guestfs.pod:841
36342 msgid "guestfish command line is hard to use."
36343 msgstr ""
36344
36345 #. type: textblock
36346 #: ../src/guestfs.pod:843
36347 msgid ""
36348 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
36349 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
36350 "exist, so it fails.  In earlier versions of guestfish the error message was "
36351 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
36352 "we should have used C<guestfish -c command> to run commands."
36353 msgstr ""
36354
36355 #. type: =item
36356 #: ../src/guestfs.pod:850
36357 msgid "guestfish megabyte modifiers don't work right on all commands"
36358 msgstr ""
36359
36360 #. type: textblock
36361 #: ../src/guestfs.pod:852
36362 msgid ""
36363 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
36364 "other modifiers).  What guestfish actually does is to multiply the number "
36365 "part by the modifier part and pass the result to the C API.  However this "
36366 "doesn't work for a few APIs which aren't expecting bytes, but are already "
36367 "expecting some other unit (eg. megabytes)."
36368 msgstr ""
36369
36370 #. type: textblock
36371 #: ../src/guestfs.pod:859
36372 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
36373 msgstr ""
36374
36375 #. type: verbatim
36376 #: ../src/guestfs.pod:861
36377 #, no-wrap
36378 msgid ""
36379 " lvcreate LV VG 100M\n"
36380 "\n"
36381 msgstr ""
36382
36383 #. type: textblock
36384 #: ../src/guestfs.pod:863
36385 msgid ""
36386 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
36387 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
36388 "megabytes * megabytes) logical volume.  The error message you get from this "
36389 "is also a little obscure."
36390 msgstr ""
36391
36392 #. type: textblock
36393 #: ../src/guestfs.pod:868
36394 msgid ""
36395 "This could be fixed in the generator by specially marking parameters and "
36396 "return values which take bytes or other units."
36397 msgstr ""
36398
36399 #. type: =item
36400 #: ../src/guestfs.pod:871
36401 msgid "Ambiguity between devices and paths"
36402 msgstr ""
36403
36404 #. type: textblock
36405 #: ../src/guestfs.pod:873
36406 msgid ""
36407 "There is a subtle ambiguity in the API between a device name "
36408 "(eg. C</dev/sdb2>) and a similar pathname.  A file might just happen to be "
36409 "called C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
36410 msgstr ""
36411
36412 #. type: textblock
36413 #: ../src/guestfs.pod:878
36414 msgid ""
36415 "In the current API we usually resolve this ambiguity by having two separate "
36416 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
36417 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
36418 "detecting if the path supplied begins with C</dev/>."
36419 msgstr ""
36420
36421 #. type: textblock
36422 #: ../src/guestfs.pod:884
36423 msgid ""
36424 "To avoid both the ambiguity and the need to duplicate some calls, we could "
36425 "make paths/devices into structured names.  One way to do this would be to "
36426 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
36427 "aspect of grub.  Another way would be to use a structured type, equivalent "
36428 "to this OCaml type:"
36429 msgstr ""
36430
36431 #. type: verbatim
36432 #: ../src/guestfs.pod:890
36433 #, no-wrap
36434 msgid ""
36435 " type path = Path of string | Device of int | Partition of int * int\n"
36436 "\n"
36437 msgstr ""
36438
36439 #. type: textblock
36440 #: ../src/guestfs.pod:892
36441 msgid "which would allow you to pass arguments like:"
36442 msgstr ""
36443
36444 #. type: verbatim
36445 #: ../src/guestfs.pod:894
36446 #, no-wrap
36447 msgid ""
36448 " Path \"/foo/bar\"\n"
36449 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
36450 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
36451 " Path \"/dev/sdb2\"    (* not a device *)\n"
36452 "\n"
36453 msgstr ""
36454
36455 #. type: textblock
36456 #: ../src/guestfs.pod:899
36457 msgid ""
36458 "As you can see there are still problems to resolve even with this "
36459 "representation.  Also consider how it might work in guestfish."
36460 msgstr ""
36461
36462 #. type: =head2
36463 #: ../src/guestfs.pod:904
36464 msgid "KEYS AND PASSPHRASES"
36465 msgstr ""
36466
36467 #. type: textblock
36468 #: ../src/guestfs.pod:906
36469 msgid ""
36470 "Certain libguestfs calls take a parameter that contains sensitive key "
36471 "material, passed in as a C string."
36472 msgstr ""
36473
36474 #. type: textblock
36475 #: ../src/guestfs.pod:909
36476 msgid ""
36477 "In the future we would hope to change the libguestfs implementation so that "
36478 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
36479 "swap.  However this is I<not> done at the moment, because of the complexity "
36480 "of such an implementation."
36481 msgstr ""
36482
36483 #. type: textblock
36484 #: ../src/guestfs.pod:914
36485 msgid ""
36486 "Therefore you should be aware that any key parameter you pass to libguestfs "
36487 "might end up being written out to the swap partition.  If this is a concern, "
36488 "scrub the swap partition or don't use libguestfs on encrypted devices."
36489 msgstr ""
36490
36491 #. type: =head2
36492 #: ../src/guestfs.pod:919
36493 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
36494 msgstr ""
36495
36496 #. type: textblock
36497 #: ../src/guestfs.pod:921
36498 msgid ""
36499 "All high-level libguestfs actions are synchronous.  If you want to use "
36500 "libguestfs asynchronously then you must create a thread."
36501 msgstr ""
36502
36503 #. type: textblock
36504 #: ../src/guestfs.pod:924
36505 msgid ""
36506 "Only use the handle from a single thread.  Either use the handle exclusively "
36507 "from one thread, or provide your own mutex so that two threads cannot issue "
36508 "calls on the same handle at the same time."
36509 msgstr ""
36510
36511 #. type: textblock
36512 #: ../src/guestfs.pod:928
36513 msgid ""
36514 "See the graphical program guestfs-browser for one possible architecture for "
36515 "multithreaded programs using libvirt and libguestfs."
36516 msgstr ""
36517
36518 #. type: =head2
36519 #: ../src/guestfs.pod:931
36520 msgid "PATH"
36521 msgstr ""
36522
36523 #. type: textblock
36524 #: ../src/guestfs.pod:933
36525 msgid ""
36526 "Libguestfs needs a supermin appliance, which it finds by looking along an "
36527 "internal path."
36528 msgstr ""
36529
36530 #. type: textblock
36531 #: ../src/guestfs.pod:936
36532 msgid ""
36533 "By default it looks for these in the directory C<$libdir/guestfs> "
36534 "(eg. C</usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
36535 msgstr ""
36536
36537 #. type: textblock
36538 #: ../src/guestfs.pod:939
36539 msgid ""
36540 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
36541 "to change the directories that libguestfs will search in.  The value is a "
36542 "colon-separated list of paths.  The current directory is I<not> searched "
36543 "unless the path contains an empty element or C<.>.  For example "
36544 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
36545 "then C</usr/lib/guestfs>."
36546 msgstr ""
36547
36548 #. type: =head2
36549 #: ../src/guestfs.pod:946
36550 msgid "QEMU WRAPPERS"
36551 msgstr ""
36552
36553 #. type: textblock
36554 #: ../src/guestfs.pod:948
36555 msgid ""
36556 "If you want to compile your own qemu, run qemu from a non-standard location, "
36557 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
36558 "around qemu."
36559 msgstr ""
36560
36561 #. type: textblock
36562 #: ../src/guestfs.pod:952
36563 msgid ""
36564 "There is one important rule to remember: you I<must C<exec qemu>> as the "
36565 "last command in the shell script (so that qemu replaces the shell and "
36566 "becomes the direct child of the libguestfs-using program).  If you don't do "
36567 "this, then the qemu process won't be cleaned up correctly."
36568 msgstr ""
36569
36570 #. type: textblock
36571 #: ../src/guestfs.pod:957
36572 msgid ""
36573 "Here is an example of a wrapper, where I have built my own copy of qemu from "
36574 "source:"
36575 msgstr ""
36576
36577 #. type: verbatim
36578 #: ../src/guestfs.pod:960
36579 #, no-wrap
36580 msgid ""
36581 " #!/bin/sh -\n"
36582 " qemudir=/home/rjones/d/qemu\n"
36583 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios "
36584 "\"$@\"\n"
36585 "\n"
36586 msgstr ""
36587
36588 #. type: textblock
36589 #: ../src/guestfs.pod:964
36590 msgid ""
36591 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
36592 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
36593 "example:"
36594 msgstr ""
36595
36596 #. type: verbatim
36597 #: ../src/guestfs.pod:968
36598 #, no-wrap
36599 msgid ""
36600 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
36601 "\n"
36602 msgstr ""
36603
36604 #. type: textblock
36605 #: ../src/guestfs.pod:970
36606 msgid ""
36607 "Note that libguestfs also calls qemu with the -help and -version options in "
36608 "order to determine features."
36609 msgstr ""
36610
36611 #. type: textblock
36612 #: ../src/guestfs.pod:973
36613 msgid ""
36614 "Wrappers can also be used to edit the options passed to qemu.  In the "
36615 "following example, the C<-machine ...> option (C<-machine> and the following "
36616 "argument) are removed from the command line and replaced with C<-machine "
36617 "pc,accel=tcg>.  The while loop iterates over the options until it finds the "
36618 "right one to remove, putting the remaining options into the C<args> array."
36619 msgstr ""
36620
36621 #. type: verbatim
36622 #: ../src/guestfs.pod:982
36623 #, no-wrap
36624 msgid ""
36625 " i=0\n"
36626 " while [ $# -gt 0 ]; do\n"
36627 "     case \"$1\" in\n"
36628 "     -machine)\n"
36629 "         shift 2;;\n"
36630 "     *)\n"
36631 "         args[i]=\"$1\"\n"
36632 "         (( i++ ))\n"
36633 "         shift ;;\n"
36634 "     esac\n"
36635 " done\n"
36636 " \n"
36637 msgstr ""
36638
36639 #. type: verbatim
36640 #: ../src/guestfs.pod:994
36641 #, no-wrap
36642 msgid ""
36643 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
36644 "\n"
36645 msgstr ""
36646
36647 #. type: =head2
36648 #: ../src/guestfs.pod:996
36649 msgid "ATTACHING TO RUNNING DAEMONS"
36650 msgstr ""
36651
36652 #. type: textblock
36653 #: ../src/guestfs.pod:998
36654 msgid ""
36655 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
36656 "babies.  Use with caution."
36657 msgstr ""
36658
36659 #. type: textblock
36660 #: ../src/guestfs.pod:1001
36661 msgid ""
36662 "I<Note (2):> This section explains how to attach to a running daemon from a "
36663 "low level perspective.  For most users, simply using virt tools such as "
36664 "L<guestfish(1)> with the I<--live> option will \"just work\"."
36665 msgstr ""
36666
36667 #. type: =head3
36668 #: ../src/guestfs.pod:1005
36669 msgid "Using guestfs_set_attach_method"
36670 msgstr ""
36671
36672 #. type: textblock
36673 #: ../src/guestfs.pod:1007
36674 msgid ""
36675 "By calling L</guestfs_set_attach_method> you can change how the library "
36676 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read "
36677 "L</ARCHITECTURE> for some background)."
36678 msgstr ""
36679
36680 #. type: textblock
36681 #: ../src/guestfs.pod:1011
36682 msgid ""
36683 "The normal attach method is C<appliance>, where a small appliance is created "
36684 "containing the daemon, and then the library connects to this."
36685 msgstr ""
36686
36687 #. type: textblock
36688 #: ../src/guestfs.pod:1014
36689 msgid ""
36690 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
36691 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
36692 "daemon over the Unix domain socket."
36693 msgstr ""
36694
36695 #. type: textblock
36696 #: ../src/guestfs.pod:1018
36697 msgid ""
36698 "The normal use for this is to connect to a running virtual machine that "
36699 "contains a C<guestfsd> daemon, and send commands so you can read and write "
36700 "files inside the live virtual machine."
36701 msgstr ""
36702
36703 #. type: =head3
36704 #: ../src/guestfs.pod:1022
36705 msgid "Using guestfs_add_domain with live flag"
36706 msgstr ""
36707
36708 #. type: textblock
36709 #: ../src/guestfs.pod:1024
36710 msgid ""
36711 "L</guestfs_add_domain> provides some help for getting the correct attach "
36712 "method.  If you pass the C<live> option to this function, then (if the "
36713 "virtual machine is running) it will examine the libvirt XML looking for a "
36714 "virtio-serial channel to connect to:"
36715 msgstr ""
36716
36717 #. type: verbatim
36718 #: ../src/guestfs.pod:1030
36719 #, no-wrap
36720 msgid ""
36721 " <domain>\n"
36722 "   ...\n"
36723 "   <devices>\n"
36724 "     ...\n"
36725 "     <channel type='unix'>\n"
36726 "       <source mode='bind' path='/path/to/socket'/>\n"
36727 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
36728 "     </channel>\n"
36729 "     ...\n"
36730 "   </devices>\n"
36731 " </domain>\n"
36732 "\n"
36733 msgstr ""
36734
36735 #. type: textblock
36736 #: ../src/guestfs.pod:1042
36737 msgid ""
36738 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
36739 "method to C<unix:/path/to/socket>."
36740 msgstr ""
36741
36742 #. type: textblock
36743 #: ../src/guestfs.pod:1045
36744 msgid ""
36745 "Some of the libguestfs tools (including guestfish) support a I<--live> "
36746 "option which is passed through to L</guestfs_add_domain> thus allowing you "
36747 "to attach to and modify live virtual machines."
36748 msgstr ""
36749
36750 #. type: textblock
36751 #: ../src/guestfs.pod:1049
36752 msgid ""
36753 "The virtual machine needs to have been set up beforehand so that it has the "
36754 "virtio-serial channel and so that guestfsd is running inside it."
36755 msgstr ""
36756
36757 #. type: =head2
36758 #: ../src/guestfs.pod:1053
36759 msgid "ABI GUARANTEE"
36760 msgstr ""
36761
36762 #. type: textblock
36763 #: ../src/guestfs.pod:1055
36764 msgid ""
36765 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
36766 "actions as outlined in this section.  Although we will deprecate some "
36767 "actions, for example if they get replaced by newer calls, we will keep the "
36768 "old actions forever.  This allows you the developer to program in confidence "
36769 "against the libguestfs API."
36770 msgstr ""
36771
36772 #. type: =head2
36773 #: ../src/guestfs.pod:1061
36774 msgid "BLOCK DEVICE NAMING"
36775 msgstr ""
36776
36777 #. type: textblock
36778 #: ../src/guestfs.pod:1063
36779 msgid ""
36780 "In the kernel there is now quite a profusion of schemata for naming block "
36781 "devices (in this context, by I<block device> I mean a physical or virtual "
36782 "hard drive).  The original Linux IDE driver used names starting with "
36783 "C</dev/hd*>.  SCSI devices have historically used a different naming scheme, "
36784 "C</dev/sd*>.  When the Linux kernel I<libata> driver became a popular "
36785 "replacement for the old IDE driver (particularly for SATA devices) those "
36786 "devices also used the C</dev/sd*> scheme.  Additionally we now have virtual "
36787 "machines with paravirtualized drivers.  This has created several different "
36788 "naming systems, such as C</dev/vd*> for virtio disks and C</dev/xvd*> for "
36789 "Xen PV disks."
36790 msgstr ""
36791
36792 #. type: textblock
36793 #: ../src/guestfs.pod:1075
36794 msgid ""
36795 "As discussed above, libguestfs uses a qemu appliance running an embedded "
36796 "Linux kernel to access block devices.  We can run a variety of appliances "
36797 "based on a variety of Linux kernels."
36798 msgstr ""
36799
36800 #. type: textblock
36801 #: ../src/guestfs.pod:1079
36802 msgid ""
36803 "This causes a problem for libguestfs because many API calls use device or "
36804 "partition names.  Working scripts and the recipe (example) scripts that we "
36805 "make available over the internet could fail if the naming scheme changes."
36806 msgstr ""
36807
36808 #. type: textblock
36809 #: ../src/guestfs.pod:1084
36810 msgid ""
36811 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
36812 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
36813 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
36814 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
36815 msgstr ""
36816
36817 #. type: textblock
36818 #: ../src/guestfs.pod:1090
36819 msgid ""
36820 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
36821 "L</guestfs_list_partitions> and similar calls return the true names of the "
36822 "devices and partitions as known to the appliance."
36823 msgstr ""
36824
36825 #. type: =head3
36826 #: ../src/guestfs.pod:1095
36827 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
36828 msgstr ""
36829
36830 #. type: textblock
36831 #: ../src/guestfs.pod:1097
36832 msgid ""
36833 "Usually this translation is transparent.  However in some (very rare)  cases "
36834 "you may need to know the exact algorithm.  Such cases include where you use "
36835 "L</guestfs_config> to add a mixture of virtio and IDE devices to the "
36836 "qemu-based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> "
36837 "devices."
36838 msgstr ""
36839
36840 #. type: textblock
36841 #: ../src/guestfs.pod:1103
36842 msgid ""
36843 "The algorithm is applied only to I<parameters> which are known to be either "
36844 "device or partition names.  Return values from functions such as "
36845 "L</guestfs_list_devices> are never changed."
36846 msgstr ""
36847
36848 #. type: textblock
36849 #: ../src/guestfs.pod:1111
36850 msgid "Is the string a parameter which is a device or partition name?"
36851 msgstr ""
36852
36853 #. type: textblock
36854 #: ../src/guestfs.pod:1115
36855 msgid "Does the string begin with C</dev/sd>?"
36856 msgstr ""
36857
36858 #. type: textblock
36859 #: ../src/guestfs.pod:1119
36860 msgid ""
36861 "Does the named device exist? If so, we use that device.  However if I<not> "
36862 "then we continue with this algorithm."
36863 msgstr ""
36864
36865 #. type: textblock
36866 #: ../src/guestfs.pod:1124
36867 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
36868 msgstr ""
36869
36870 #. type: textblock
36871 #: ../src/guestfs.pod:1126
36872 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
36873 msgstr ""
36874
36875 #. type: textblock
36876 #: ../src/guestfs.pod:1128
36877 msgid "If that named device exists, use it.  If not, continue."
36878 msgstr ""
36879
36880 #. type: textblock
36881 #: ../src/guestfs.pod:1132
36882 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
36883 msgstr ""
36884
36885 #. type: textblock
36886 #: ../src/guestfs.pod:1134
36887 msgid "If that named device exists, use it.  If not, return an error."
36888 msgstr ""
36889
36890 #. type: =head3
36891 #: ../src/guestfs.pod:1138
36892 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
36893 msgstr ""
36894
36895 #. type: textblock
36896 #: ../src/guestfs.pod:1140
36897 msgid ""
36898 "Although the standard naming scheme and automatic translation is useful for "
36899 "simple programs and guestfish scripts, for larger programs it is best not to "
36900 "rely on this mechanism."
36901 msgstr ""
36902
36903 #. type: textblock
36904 #: ../src/guestfs.pod:1144
36905 msgid ""
36906 "Where possible for maximum future portability programs using libguestfs "
36907 "should use these future-proof techniques:"
36908 msgstr ""
36909
36910 #. type: textblock
36911 #: ../src/guestfs.pod:1151
36912 msgid ""
36913 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
36914 "device names, and then use those names directly."
36915 msgstr ""
36916
36917 #. type: textblock
36918 #: ../src/guestfs.pod:1154
36919 msgid "Since those device names exist by definition, they will never be translated."
36920 msgstr ""
36921
36922 #. type: textblock
36923 #: ../src/guestfs.pod:1159
36924 msgid ""
36925 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
36926 "filesystem labels."
36927 msgstr ""
36928
36929 #. type: textblock
36930 #: ../src/guestfs.pod:1166
36931 msgid ""
36932 "This section discusses security implications of using libguestfs, "
36933 "particularly with untrusted or malicious guests or disk images."
36934 msgstr ""
36935
36936 #. type: =head2
36937 #: ../src/guestfs.pod:1169
36938 msgid "GENERAL SECURITY CONSIDERATIONS"
36939 msgstr ""
36940
36941 #. type: textblock
36942 #: ../src/guestfs.pod:1171
36943 msgid ""
36944 "Be careful with any files or data that you download from a guest (by "
36945 "\"download\" we mean not just the L</guestfs_download> command but any "
36946 "command that reads files, filenames, directories or anything else from a "
36947 "disk image).  An attacker could manipulate the data to fool your program "
36948 "into doing the wrong thing.  Consider cases such as:"
36949 msgstr ""
36950
36951 #. type: textblock
36952 #: ../src/guestfs.pod:1181
36953 msgid "the data (file etc) not being present"
36954 msgstr ""
36955
36956 #. type: textblock
36957 #: ../src/guestfs.pod:1185
36958 msgid "being present but empty"
36959 msgstr ""
36960
36961 #. type: textblock
36962 #: ../src/guestfs.pod:1189
36963 msgid "being much larger than normal"
36964 msgstr ""
36965
36966 #. type: textblock
36967 #: ../src/guestfs.pod:1193
36968 msgid "containing arbitrary 8 bit data"
36969 msgstr ""
36970
36971 #. type: textblock
36972 #: ../src/guestfs.pod:1197
36973 msgid "being in an unexpected character encoding"
36974 msgstr ""
36975
36976 #. type: textblock
36977 #: ../src/guestfs.pod:1201
36978 msgid "containing homoglyphs."
36979 msgstr ""
36980
36981 #. type: =head2
36982 #: ../src/guestfs.pod:1205
36983 msgid "SECURITY OF MOUNTING FILESYSTEMS"
36984 msgstr ""
36985
36986 #. type: textblock
36987 #: ../src/guestfs.pod:1207
36988 msgid ""
36989 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
36990 "(VFS) module can sometimes be escalated into exploits by deliberately "
36991 "creating a malicious, malformed filesystem.  These exploits are very severe "
36992 "for two reasons.  Firstly there are very many filesystem drivers in the "
36993 "kernel, and many of them are infrequently used and not much developer "
36994 "attention has been paid to the code.  Linux userspace helps potential "
36995 "crackers by detecting the filesystem type and automatically choosing the "
36996 "right VFS driver, even if that filesystem type is obscure or unexpected for "
36997 "the administrator.  Secondly, a kernel-level exploit is like a local root "
36998 "exploit (worse in some ways), giving immediate and total access to the "
36999 "system right down to the hardware level."
37000 msgstr ""
37001
37002 #. type: textblock
37003 #: ../src/guestfs.pod:1220
37004 msgid ""
37005 "That explains why you should never mount a filesystem from an untrusted "
37006 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
37007 "inside a qemu virtual machine, usually running as a non-root user.  The "
37008 "attacker would need to write a filesystem which first exploited the kernel, "
37009 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
37010 "the libguestfs protocol, and finally to be as serious as the host kernel "
37011 "exploit it would need to escalate its privileges to root.  This multi-step "
37012 "escalation, performed by a static piece of data, is thought to be extremely "
37013 "hard to do, although we never say 'never' about security issues."
37014 msgstr ""
37015
37016 #. type: textblock
37017 #: ../src/guestfs.pod:1231
37018 msgid ""
37019 "In any case callers can reduce the attack surface by forcing the filesystem "
37020 "type when mounting (use L</guestfs_mount_vfs>)."
37021 msgstr ""
37022
37023 #. type: =head2
37024 #: ../src/guestfs.pod:1234
37025 msgid "PROTOCOL SECURITY"
37026 msgstr ""
37027
37028 #. type: textblock
37029 #: ../src/guestfs.pod:1236
37030 msgid ""
37031 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
37032 "defined upper message size.  However a program that uses libguestfs must "
37033 "also take care - for example you can write a program that downloads a binary "
37034 "from a disk image and executes it locally, and no amount of protocol "
37035 "security will save you from the consequences."
37036 msgstr ""
37037
37038 #. type: =head2
37039 #: ../src/guestfs.pod:1242
37040 msgid "INSPECTION SECURITY"
37041 msgstr ""
37042
37043 #. type: textblock
37044 #: ../src/guestfs.pod:1244
37045 msgid ""
37046 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
37047 "directly from the guest, and these could contain any 8 bit data.  Callers "
37048 "should be careful to escape these before printing them to a structured file "
37049 "(for example, use HTML escaping if creating a web page)."
37050 msgstr ""
37051
37052 #. type: textblock
37053 #: ../src/guestfs.pod:1250
37054 msgid ""
37055 "Guest configuration may be altered in unusual ways by the administrator of "
37056 "the virtual machine, and may not reflect reality (particularly for untrusted "
37057 "or actively malicious guests).  For example we parse the hostname from "
37058 "configuration files like C</etc/sysconfig/network> that we find in the "
37059 "guest, but the guest administrator can easily manipulate these files to "
37060 "provide the wrong hostname."
37061 msgstr ""
37062
37063 #. type: textblock
37064 #: ../src/guestfs.pod:1258
37065 msgid ""
37066 "The inspection API parses guest configuration using two external libraries: "
37067 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
37068 "designed to be robust in the face of malicious data, although denial of "
37069 "service attacks are still possible, for example with oversized configuration "
37070 "files."
37071 msgstr ""
37072
37073 #. type: =head2
37074 #: ../src/guestfs.pod:1264
37075 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
37076 msgstr ""
37077
37078 #. type: textblock
37079 #: ../src/guestfs.pod:1266
37080 msgid ""
37081 "Be very cautious about running commands from the guest.  By running a "
37082 "command in the guest, you are giving CPU time to a binary that you do not "
37083 "control, under the same user account as the library, albeit wrapped in qemu "
37084 "virtualization.  More information and alternatives can be found in the "
37085 "section L</RUNNING COMMANDS>."
37086 msgstr ""
37087
37088 #. type: =head2
37089 #: ../src/guestfs.pod:1272
37090 msgid "CVE-2010-3851"
37091 msgstr ""
37092
37093 #. type: textblock
37094 #: ../src/guestfs.pod:1274
37095 msgid "https://bugzilla.redhat.com/642934"
37096 msgstr ""
37097
37098 #. type: textblock
37099 #: ../src/guestfs.pod:1276
37100 msgid ""
37101 "This security bug concerns the automatic disk format detection that qemu "
37102 "does on disk images."
37103 msgstr ""
37104
37105 #. type: textblock
37106 #: ../src/guestfs.pod:1279
37107 msgid ""
37108 "A raw disk image is just the raw bytes, there is no header.  Other disk "
37109 "images like qcow2 contain a special header.  Qemu deals with this by looking "
37110 "for one of the known headers, and if none is found then assuming the disk "
37111 "image must be raw."
37112 msgstr ""
37113
37114 #. type: textblock
37115 #: ../src/guestfs.pod:1284
37116 msgid ""
37117 "This allows a guest which has been given a raw disk image to write some "
37118 "other header.  At next boot (or when the disk image is accessed by "
37119 "libguestfs) qemu would do autodetection and think the disk image format was, "
37120 "say, qcow2 based on the header written by the guest."
37121 msgstr ""
37122
37123 #. type: textblock
37124 #: ../src/guestfs.pod:1289
37125 msgid ""
37126 "This in itself would not be a problem, but qcow2 offers many features, one "
37127 "of which is to allow a disk image to refer to another image (called the "
37128 "\"backing disk\").  It does this by placing the path to the backing disk "
37129 "into the qcow2 header.  This path is not validated and could point to any "
37130 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
37131 "\"holes\" in the qcow2 disk image, which of course is completely under the "
37132 "control of the attacker."
37133 msgstr ""
37134
37135 #. type: textblock
37136 #: ../src/guestfs.pod:1297
37137 msgid "In libguestfs this is rather hard to exploit except under two circumstances:"
37138 msgstr ""
37139
37140 #. type: textblock
37141 #: ../src/guestfs.pod:1304
37142 msgid "You have enabled the network or have opened the disk in write mode."
37143 msgstr ""
37144
37145 #. type: textblock
37146 #: ../src/guestfs.pod:1308
37147 msgid ""
37148 "You are also running untrusted code from the guest (see L</RUNNING "
37149 "COMMANDS>)."
37150 msgstr ""
37151
37152 #. type: textblock
37153 #: ../src/guestfs.pod:1313
37154 msgid ""
37155 "The way to avoid this is to specify the expected disk format when adding "
37156 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
37157 "should always do this if the disk is raw format, and it's a good idea for "
37158 "other cases too."
37159 msgstr ""
37160
37161 #. type: textblock
37162 #: ../src/guestfs.pod:1318
37163 msgid ""
37164 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
37165 "format is fetched from libvirt and passed through."
37166 msgstr ""
37167
37168 #. type: textblock
37169 #: ../src/guestfs.pod:1321
37170 msgid ""
37171 "For libguestfs tools, use the I<--format> command line parameter as "
37172 "appropriate."
37173 msgstr ""
37174
37175 #. type: =head1
37176 #: ../src/guestfs.pod:1324
37177 msgid "CONNECTION MANAGEMENT"
37178 msgstr ""
37179
37180 #. type: =head2
37181 #: ../src/guestfs.pod:1326
37182 msgid "guestfs_h *"
37183 msgstr ""
37184
37185 #. type: textblock
37186 #: ../src/guestfs.pod:1328
37187 msgid ""
37188 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
37189 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
37190 "handle and release all resources used."
37191 msgstr ""
37192
37193 #. type: textblock
37194 #: ../src/guestfs.pod:1332
37195 msgid ""
37196 "For information on using multiple handles and threads, see the section "
37197 "L</MULTIPLE HANDLES AND MULTIPLE THREADS> above."
37198 msgstr ""
37199
37200 #. type: =head2
37201 #: ../src/guestfs.pod:1335
37202 msgid "guestfs_create"
37203 msgstr ""
37204
37205 #. type: verbatim
37206 #: ../src/guestfs.pod:1337
37207 #, no-wrap
37208 msgid ""
37209 " guestfs_h *guestfs_create (void);\n"
37210 "\n"
37211 msgstr ""
37212
37213 #. type: textblock
37214 #: ../src/guestfs.pod:1339
37215 msgid "Create a connection handle."
37216 msgstr ""
37217
37218 #. type: textblock
37219 #: ../src/guestfs.pod:1341
37220 msgid ""
37221 "On success this returns a non-NULL pointer to a handle.  On error it returns "
37222 "NULL."
37223 msgstr ""
37224
37225 #. type: textblock
37226 #: ../src/guestfs.pod:1344
37227 msgid ""
37228 "You have to \"configure\" the handle after creating it.  This includes "
37229 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
37230 "handle at least once."
37231 msgstr ""
37232
37233 #. type: textblock
37234 #: ../src/guestfs.pod:1348
37235 msgid "After configuring the handle, you have to call L</guestfs_launch>."
37236 msgstr ""
37237
37238 #. type: textblock
37239 #: ../src/guestfs.pod:1350
37240 msgid ""
37241 "You may also want to configure error handling for the handle.  See the "
37242 "L</ERROR HANDLING> section below."
37243 msgstr ""
37244
37245 #. type: =head2
37246 #: ../src/guestfs.pod:1353
37247 msgid "guestfs_close"
37248 msgstr ""
37249
37250 #. type: verbatim
37251 #: ../src/guestfs.pod:1355
37252 #, no-wrap
37253 msgid ""
37254 " void guestfs_close (guestfs_h *g);\n"
37255 "\n"
37256 msgstr ""
37257
37258 #. type: textblock
37259 #: ../src/guestfs.pod:1357
37260 msgid "This closes the connection handle and frees up all resources used."
37261 msgstr ""
37262
37263 #. type: textblock
37264 #: ../src/guestfs.pod:1359
37265 msgid ""
37266 "If autosync was set on the handle and the handle was launched, then this "
37267 "implicitly calls various functions to unmount filesystems and sync the "
37268 "disk.  See L</guestfs_set_autosync> for more details."
37269 msgstr ""
37270
37271 #. type: textblock
37272 #: ../src/guestfs.pod:1363
37273 msgid "If a close callback was set on the handle, then it is called."
37274 msgstr ""
37275
37276 #. type: =head1
37277 #: ../src/guestfs.pod:1365
37278 msgid "ERROR HANDLING"
37279 msgstr ""
37280
37281 #. type: textblock
37282 #: ../src/guestfs.pod:1367
37283 msgid ""
37284 "API functions can return errors.  For example, almost all functions that "
37285 "return C<int> will return C<-1> to indicate an error."
37286 msgstr ""
37287
37288 #. type: textblock
37289 #: ../src/guestfs.pod:1370
37290 msgid ""
37291 "Additional information is available for errors: an error message string and "
37292 "optionally an error number (errno) if the thing that failed was a system "
37293 "call."
37294 msgstr ""
37295
37296 #. type: textblock
37297 #: ../src/guestfs.pod:1374
37298 msgid ""
37299 "You can get at the additional information about the last error on the handle "
37300 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
37301 "up an error handler with L</guestfs_set_error_handler>."
37302 msgstr ""
37303
37304 #. type: textblock
37305 #: ../src/guestfs.pod:1379
37306 msgid ""
37307 "When the handle is created, a default error handler is installed which "
37308 "prints the error message string to C<stderr>.  For small short-running "
37309 "command line programs it is sufficient to do:"
37310 msgstr ""
37311
37312 #. type: verbatim
37313 #: ../src/guestfs.pod:1383
37314 #, no-wrap
37315 msgid ""
37316 " if (guestfs_launch (g) == -1)\n"
37317 "   exit (EXIT_FAILURE);\n"
37318 "\n"
37319 msgstr ""
37320
37321 #. type: textblock
37322 #: ../src/guestfs.pod:1386
37323 msgid ""
37324 "since the default error handler will ensure that an error message has been "
37325 "printed to C<stderr> before the program exits."
37326 msgstr ""
37327
37328 #. type: textblock
37329 #: ../src/guestfs.pod:1389
37330 msgid ""
37331 "For other programs the caller will almost certainly want to install an "
37332 "alternate error handler or do error handling in-line like this:"
37333 msgstr ""
37334
37335 #. type: verbatim
37336 #: ../src/guestfs.pod:1392
37337 #, no-wrap
37338 msgid ""
37339 " /* This disables the default behaviour of printing errors\n"
37340 "    on stderr. */\n"
37341 " guestfs_set_error_handler (g, NULL, NULL);\n"
37342 " \n"
37343 msgstr ""
37344
37345 #. type: verbatim
37346 #: ../src/guestfs.pod:1396
37347 #, no-wrap
37348 msgid ""
37349 " if (guestfs_launch (g) == -1) {\n"
37350 "   /* Examine the error message and print it etc. */\n"
37351 "   char *msg = guestfs_last_error (g);\n"
37352 "   int errnum = guestfs_last_errno (g);\n"
37353 "   fprintf (stderr, \"%s\", msg);\n"
37354 "   if (errnum != 0)\n"
37355 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
37356 "   fprintf (stderr, \"\\n\");\n"
37357 "   /* ... */\n"
37358 " }\n"
37359 "\n"
37360 msgstr ""
37361
37362 #. type: textblock
37363 #: ../src/guestfs.pod:1407
37364 msgid ""
37365 "Out of memory errors are handled differently.  The default action is to call "
37366 "L<abort(3)>.  If this is undesirable, then you can set a handler using "
37367 "L</guestfs_set_out_of_memory_handler>."
37368 msgstr ""
37369
37370 #. type: textblock
37371 #: ../src/guestfs.pod:1411
37372 msgid ""
37373 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
37374 "because there is no handle if this happens there is no way to get additional "
37375 "error information.  However L</guestfs_create> is supposed to be a "
37376 "lightweight operation which can only fail because of insufficient memory (it "
37377 "returns NULL in this case)."
37378 msgstr ""
37379
37380 #. type: =head2
37381 #: ../src/guestfs.pod:1417
37382 msgid "guestfs_last_error"
37383 msgstr ""
37384
37385 #. type: verbatim
37386 #: ../src/guestfs.pod:1419
37387 #, no-wrap
37388 msgid ""
37389 " const char *guestfs_last_error (guestfs_h *g);\n"
37390 "\n"
37391 msgstr ""
37392
37393 #. type: textblock
37394 #: ../src/guestfs.pod:1421
37395 msgid ""
37396 "This returns the last error message that happened on C<g>.  If there has not "
37397 "been an error since the handle was created, then this returns C<NULL>."
37398 msgstr ""
37399
37400 #. type: textblock
37401 #: ../src/guestfs.pod:1425
37402 msgid ""
37403 "The lifetime of the returned string is until the next error occurs, or "
37404 "L</guestfs_close> is called."
37405 msgstr ""
37406
37407 #. type: =head2
37408 #: ../src/guestfs.pod:1428
37409 msgid "guestfs_last_errno"
37410 msgstr ""
37411
37412 #. type: verbatim
37413 #: ../src/guestfs.pod:1430
37414 #, no-wrap
37415 msgid ""
37416 " int guestfs_last_errno (guestfs_h *g);\n"
37417 "\n"
37418 msgstr ""
37419
37420 #. type: textblock
37421 #: ../src/guestfs.pod:1432
37422 msgid "This returns the last error number (errno) that happened on C<g>."
37423 msgstr ""
37424
37425 #. type: textblock
37426 #: ../src/guestfs.pod:1434
37427 msgid "If successful, an errno integer not equal to zero is returned."
37428 msgstr ""
37429
37430 #. type: textblock
37431 #: ../src/guestfs.pod:1436
37432 msgid "If no error, this returns 0.  This call can return 0 in three situations:"
37433 msgstr ""
37434
37435 #. type: textblock
37436 #: ../src/guestfs.pod:1443
37437 msgid "There has not been any error on the handle."
37438 msgstr ""
37439
37440 #. type: textblock
37441 #: ../src/guestfs.pod:1447
37442 msgid ""
37443 "There has been an error but the errno was meaningless.  This corresponds to "
37444 "the case where the error did not come from a failed system call, but for "
37445 "some other reason."
37446 msgstr ""
37447
37448 #. type: textblock
37449 #: ../src/guestfs.pod:1453
37450 msgid ""
37451 "There was an error from a failed system call, but for some reason the errno "
37452 "was not captured and returned.  This usually indicates a bug in libguestfs."
37453 msgstr ""
37454
37455 #. type: textblock
37456 #: ../src/guestfs.pod:1459
37457 msgid ""
37458 "Libguestfs tries to convert the errno from inside the applicance into a "
37459 "corresponding errno for the caller (not entirely trivial: the appliance "
37460 "might be running a completely different operating system from the library "
37461 "and error numbers are not standardized across Un*xen).  If this could not be "
37462 "done, then the error is translated to C<EINVAL>.  In practice this should "
37463 "only happen in very rare circumstances."
37464 msgstr ""
37465
37466 #. type: =head2
37467 #: ../src/guestfs.pod:1467
37468 msgid "guestfs_set_error_handler"
37469 msgstr ""
37470
37471 #. type: verbatim
37472 #: ../src/guestfs.pod:1469
37473 #, no-wrap
37474 msgid ""
37475 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
37476 "                                           void *opaque,\n"
37477 "                                           const char *msg);\n"
37478 " void guestfs_set_error_handler (guestfs_h *g,\n"
37479 "                                 guestfs_error_handler_cb cb,\n"
37480 "                                 void *opaque);\n"
37481 "\n"
37482 msgstr ""
37483
37484 #. type: textblock
37485 #: ../src/guestfs.pod:1476
37486 msgid ""
37487 "The callback C<cb> will be called if there is an error.  The parameters "
37488 "passed to the callback are an opaque data pointer and the error message "
37489 "string."
37490 msgstr ""
37491
37492 #. type: textblock
37493 #: ../src/guestfs.pod:1480
37494 msgid ""
37495 "C<errno> is not passed to the callback.  To get that the callback must call "
37496 "L</guestfs_last_errno>."
37497 msgstr ""
37498
37499 #. type: textblock
37500 #: ../src/guestfs.pod:1483
37501 msgid ""
37502 "Note that the message string C<msg> is freed as soon as the callback "
37503 "function returns, so if you want to stash it somewhere you must make your "
37504 "own copy."
37505 msgstr ""
37506
37507 #. type: textblock
37508 #: ../src/guestfs.pod:1487
37509 msgid "The default handler prints messages on C<stderr>."
37510 msgstr ""
37511
37512 #. type: textblock
37513 #: ../src/guestfs.pod:1489
37514 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
37515 msgstr ""
37516
37517 #. type: =head2
37518 #: ../src/guestfs.pod:1491
37519 msgid "guestfs_get_error_handler"
37520 msgstr ""
37521
37522 #. type: verbatim
37523 #: ../src/guestfs.pod:1493
37524 #, no-wrap
37525 msgid ""
37526 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
37527 "                                                     void **opaque_rtn);\n"
37528 "\n"
37529 msgstr ""
37530
37531 #. type: textblock
37532 #: ../src/guestfs.pod:1496
37533 msgid "Returns the current error handler callback."
37534 msgstr ""
37535
37536 #. type: =head2
37537 #: ../src/guestfs.pod:1498
37538 msgid "guestfs_set_out_of_memory_handler"
37539 msgstr ""
37540
37541 #. type: verbatim
37542 #: ../src/guestfs.pod:1500
37543 #, no-wrap
37544 msgid ""
37545 " typedef void (*guestfs_abort_cb) (void);\n"
37546 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
37547 "                                         guestfs_abort_cb);\n"
37548 "\n"
37549 msgstr ""
37550
37551 #. type: textblock
37552 #: ../src/guestfs.pod:1504
37553 msgid ""
37554 "The callback C<cb> will be called if there is an out of memory situation.  "
37555 "I<Note this callback must not return>."
37556 msgstr ""
37557
37558 #. type: textblock
37559 #: ../src/guestfs.pod:1507
37560 msgid "The default is to call L<abort(3)>."
37561 msgstr ""
37562
37563 #. type: textblock
37564 #: ../src/guestfs.pod:1509
37565 msgid "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
37566 msgstr ""
37567
37568 #. type: =head2
37569 #: ../src/guestfs.pod:1512
37570 msgid "guestfs_get_out_of_memory_handler"
37571 msgstr ""
37572
37573 #. type: verbatim
37574 #: ../src/guestfs.pod:1514
37575 #, no-wrap
37576 msgid ""
37577 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
37578 "\n"
37579 msgstr ""
37580
37581 #. type: textblock
37582 #: ../src/guestfs.pod:1516
37583 msgid "This returns the current out of memory handler."
37584 msgstr ""
37585
37586 #. type: =head1
37587 #: ../src/guestfs.pod:1518
37588 msgid "API CALLS"
37589 msgstr ""
37590
37591 #. type: =head1
37592 #: ../src/guestfs.pod:1522
37593 msgid "STRUCTURES"
37594 msgstr ""
37595
37596 #. type: textblock
37597 #: ../src/guestfs.pod:1524
37598 msgid "@STRUCTS@"
37599 msgstr ""
37600
37601 #. type: =head1
37602 #: ../src/guestfs.pod:1526
37603 msgid "AVAILABILITY"
37604 msgstr ""
37605
37606 #. type: =head2
37607 #: ../src/guestfs.pod:1528
37608 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
37609 msgstr ""
37610
37611 #. type: textblock
37612 #: ../src/guestfs.pod:1530
37613 msgid ""
37614 "Using L</guestfs_available> you can test availability of the following "
37615 "groups of functions.  This test queries the appliance to see if the "
37616 "appliance you are currently using supports the functionality."
37617 msgstr ""
37618
37619 #. type: textblock
37620 #: ../src/guestfs.pod:1535
37621 msgid "@AVAILABILITY@"
37622 msgstr ""
37623
37624 #. type: =head2
37625 #: ../src/guestfs.pod:1537
37626 msgid "GUESTFISH supported COMMAND"
37627 msgstr ""
37628
37629 #. type: textblock
37630 #: ../src/guestfs.pod:1539
37631 msgid ""
37632 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
37633 "prints out the available groups and whether they are supported by this build "
37634 "of libguestfs.  Note however that you have to do C<run> first."
37635 msgstr ""
37636
37637 #. type: =head2
37638 #: ../src/guestfs.pod:1544
37639 msgid "SINGLE CALLS AT COMPILE TIME"
37640 msgstr ""
37641
37642 #. type: textblock
37643 #: ../src/guestfs.pod:1546
37644 msgid ""
37645 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
37646 "function, such as:"
37647 msgstr ""
37648
37649 #. type: verbatim
37650 #: ../src/guestfs.pod:1549
37651 #, no-wrap
37652 msgid ""
37653 " #define LIBGUESTFS_HAVE_DD 1\n"
37654 "\n"
37655 msgstr ""
37656
37657 #. type: textblock
37658 #: ../src/guestfs.pod:1551
37659 msgid "if L</guestfs_dd> is available."
37660 msgstr ""
37661
37662 #. type: textblock
37663 #: ../src/guestfs.pod:1553
37664 msgid ""
37665 "Before version 1.5.8, if you needed to test whether a single libguestfs "
37666 "function is available at compile time, we recommended using build tools such "
37667 "as autoconf or cmake.  For example in autotools you could use:"
37668 msgstr ""
37669
37670 #. type: verbatim
37671 #: ../src/guestfs.pod:1558
37672 #, no-wrap
37673 msgid ""
37674 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
37675 " AC_CHECK_FUNCS([guestfs_dd])\n"
37676 "\n"
37677 msgstr ""
37678
37679 #. type: textblock
37680 #: ../src/guestfs.pod:1561
37681 msgid ""
37682 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
37683 "in your program."
37684 msgstr ""
37685
37686 #. type: =head2
37687 #: ../src/guestfs.pod:1564
37688 msgid "SINGLE CALLS AT RUN TIME"
37689 msgstr ""
37690
37691 #. type: textblock
37692 #: ../src/guestfs.pod:1566
37693 msgid ""
37694 "Testing at compile time doesn't guarantee that a function really exists in "
37695 "the library.  The reason is that you might be dynamically linked against a "
37696 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
37697 "This situation unfortunately results in a segmentation fault, which is a "
37698 "shortcoming of the C dynamic linking system itself."
37699 msgstr ""
37700
37701 #. type: textblock
37702 #: ../src/guestfs.pod:1573
37703 msgid ""
37704 "You can use L<dlopen(3)> to test if a function is available at run time, as "
37705 "in this example program (note that you still need the compile time check as "
37706 "well):"
37707 msgstr ""
37708
37709 #. type: verbatim
37710 #: ../src/guestfs.pod:1577
37711 #, no-wrap
37712 msgid ""
37713 " #include <stdio.h>\n"
37714 " #include <stdlib.h>\n"
37715 " #include <unistd.h>\n"
37716 " #include <dlfcn.h>\n"
37717 " #include <guestfs.h>\n"
37718 " \n"
37719 msgstr ""
37720
37721 #. type: verbatim
37722 #: ../src/guestfs.pod:1583
37723 #, no-wrap
37724 msgid ""
37725 " main ()\n"
37726 " {\n"
37727 " #ifdef LIBGUESTFS_HAVE_DD\n"
37728 "   void *dl;\n"
37729 "   int has_function;\n"
37730 " \n"
37731 msgstr ""
37732
37733 #. type: verbatim
37734 #: ../src/guestfs.pod:1589
37735 #, no-wrap
37736 msgid ""
37737 "   /* Test if the function guestfs_dd is really available. */\n"
37738 "   dl = dlopen (NULL, RTLD_LAZY);\n"
37739 "   if (!dl) {\n"
37740 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
37741 "     exit (EXIT_FAILURE);\n"
37742 "   }\n"
37743 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
37744 "   dlclose (dl);\n"
37745 " \n"
37746 msgstr ""
37747
37748 #. type: verbatim
37749 #: ../src/guestfs.pod:1598
37750 #, no-wrap
37751 msgid ""
37752 "   if (!has_function)\n"
37753 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
37754 "   else {\n"
37755 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
37756 "     /* Now it's safe to call\n"
37757 "     guestfs_dd (g, \"foo\", \"bar\");\n"
37758 "     */\n"
37759 "   }\n"
37760 " #else\n"
37761 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
37762 " #endif\n"
37763 "  }\n"
37764 "\n"
37765 msgstr ""
37766
37767 #. type: textblock
37768 #: ../src/guestfs.pod:1611
37769 msgid ""
37770 "You may think the above is an awful lot of hassle, and it is.  There are "
37771 "other ways outside of the C linking system to ensure that this kind of "
37772 "incompatibility never arises, such as using package versioning:"
37773 msgstr ""
37774
37775 #. type: verbatim
37776 #: ../src/guestfs.pod:1616
37777 #, no-wrap
37778 msgid ""
37779 " Requires: libguestfs >= 1.0.80\n"
37780 "\n"
37781 msgstr ""
37782
37783 #. type: =head1
37784 #: ../src/guestfs.pod:1618
37785 msgid "CALLS WITH OPTIONAL ARGUMENTS"
37786 msgstr ""
37787
37788 #. type: textblock
37789 #: ../src/guestfs.pod:1620
37790 msgid ""
37791 "A recent feature of the API is the introduction of calls which take optional "
37792 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
37793 "takes variable arguments (ie. C<...>), as in this example:"
37794 msgstr ""
37795
37796 #. type: verbatim
37797 #: ../src/guestfs.pod:1625
37798 #, no-wrap
37799 msgid ""
37800 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
37801 "\n"
37802 msgstr ""
37803
37804 #. type: textblock
37805 #: ../src/guestfs.pod:1627
37806 msgid ""
37807 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
37808 "call with no optional arguments specified:"
37809 msgstr ""
37810
37811 #. type: verbatim
37812 #: ../src/guestfs.pod:1630
37813 #, no-wrap
37814 msgid ""
37815 " guestfs_add_drive_opts (g, filename, -1);\n"
37816 "\n"
37817 msgstr ""
37818
37819 #. type: textblock
37820 #: ../src/guestfs.pod:1632
37821 msgid "With a single optional argument:"
37822 msgstr ""
37823
37824 #. type: verbatim
37825 #: ../src/guestfs.pod:1634
37826 #, no-wrap
37827 msgid ""
37828 " guestfs_add_drive_opts (g, filename,\n"
37829 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37830 "                         -1);\n"
37831 "\n"
37832 msgstr ""
37833
37834 #. type: textblock
37835 #: ../src/guestfs.pod:1638
37836 msgid "With two:"
37837 msgstr ""
37838
37839 #. type: verbatim
37840 #: ../src/guestfs.pod:1640
37841 #, no-wrap
37842 msgid ""
37843 " guestfs_add_drive_opts (g, filename,\n"
37844 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37845 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
37846 "                         -1);\n"
37847 "\n"
37848 msgstr ""
37849
37850 #. type: textblock
37851 #: ../src/guestfs.pod:1645
37852 msgid ""
37853 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
37854 "happen!"
37855 msgstr ""
37856
37857 #. type: =head2
37858 #: ../src/guestfs.pod:1648
37859 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
37860 msgstr ""
37861
37862 #. type: textblock
37863 #: ../src/guestfs.pod:1650
37864 msgid ""
37865 "The second variant has the same name with the suffix C<_va>, which works the "
37866 "same way but takes a C<va_list>.  See the C manual for details.  For the "
37867 "example function, this is declared:"
37868 msgstr ""
37869
37870 #. type: verbatim
37871 #: ../src/guestfs.pod:1654
37872 #, no-wrap
37873 msgid ""
37874 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
37875 "                                va_list args);\n"
37876 "\n"
37877 msgstr ""
37878
37879 #. type: =head2
37880 #: ../src/guestfs.pod:1657
37881 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
37882 msgstr ""
37883
37884 #. type: textblock
37885 #: ../src/guestfs.pod:1659
37886 msgid ""
37887 "The third variant is useful where you need to construct these calls.  You "
37888 "pass in a structure where you fill in the optional fields.  The structure "
37889 "has a bitmask as the first element which you must set to indicate which "
37890 "fields you have filled in.  For our example function the structure and call "
37891 "are declared:"
37892 msgstr ""
37893
37894 #. type: verbatim
37895 #: ../src/guestfs.pod:1665
37896 #, no-wrap
37897 msgid ""
37898 " struct guestfs_add_drive_opts_argv {\n"
37899 "   uint64_t bitmask;\n"
37900 "   int readonly;\n"
37901 "   const char *format;\n"
37902 "   /* ... */\n"
37903 " };\n"
37904 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
37905 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
37906 "\n"
37907 msgstr ""
37908
37909 #. type: textblock
37910 #: ../src/guestfs.pod:1674
37911 msgid "You could call it like this:"
37912 msgstr ""
37913
37914 #. type: verbatim
37915 #: ../src/guestfs.pod:1676
37916 #, no-wrap
37917 msgid ""
37918 " struct guestfs_add_drive_opts_argv optargs = {\n"
37919 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
37920 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
37921 "   .readonly = 1,\n"
37922 "   .format = \"qcow2\"\n"
37923 " };\n"
37924 " \n"
37925 msgstr ""
37926
37927 #. type: verbatim
37928 #: ../src/guestfs.pod:1683
37929 #, no-wrap
37930 msgid ""
37931 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
37932 "\n"
37933 msgstr ""
37934
37935 #. type: textblock
37936 #: ../src/guestfs.pod:1691
37937 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
37938 msgstr ""
37939
37940 #. type: textblock
37941 #: ../src/guestfs.pod:1696
37942 msgid "You do not need to fill in all fields of the structure."
37943 msgstr ""
37944
37945 #. type: textblock
37946 #: ../src/guestfs.pod:1700
37947 msgid ""
37948 "There must be a one-to-one correspondence between fields of the structure "
37949 "that are filled in, and bits set in the bitmask."
37950 msgstr ""
37951
37952 #. type: =head2
37953 #: ../src/guestfs.pod:1705
37954 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
37955 msgstr ""
37956
37957 #. type: textblock
37958 #: ../src/guestfs.pod:1707
37959 msgid ""
37960 "In other languages, optional arguments are expressed in the way that is "
37961 "natural for that language.  We refer you to the language-specific "
37962 "documentation for more details on that."
37963 msgstr ""
37964
37965 #. type: textblock
37966 #: ../src/guestfs.pod:1711
37967 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
37968 msgstr ""
37969
37970 #. type: =head2
37971 #: ../src/guestfs.pod:1713
37972 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
37973 msgstr ""
37974
37975 #. type: textblock
37976 #: ../src/guestfs.pod:1715
37977 msgid ""
37978 "B<Note:> This section documents the generic event mechanism introduced in "
37979 "libguestfs 1.10, which you should use in new code if possible.  The old "
37980 "functions C<guestfs_set_log_message_callback>, "
37981 "C<guestfs_set_subprocess_quit_callback>, "
37982 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
37983 "C<guestfs_set_progress_callback> are no longer documented in this manual "
37984 "page.  Because of the ABI guarantee, the old functions continue to work."
37985 msgstr ""
37986
37987 #. type: textblock
37988 #: ../src/guestfs.pod:1724
37989 msgid ""
37990 "Handles generate events when certain things happen, such as log messages "
37991 "being generated, progress messages during long-running operations, or the "
37992 "handle being closed.  The API calls described below let you register a "
37993 "callback to be called when events happen.  You can register multiple "
37994 "callbacks (for the same, different or overlapping sets of events), and "
37995 "individually remove callbacks.  If callbacks are not removed, then they "
37996 "remain in force until the handle is closed."
37997 msgstr ""
37998
37999 #. type: textblock
38000 #: ../src/guestfs.pod:1732
38001 msgid ""
38002 "In the current implementation, events are only generated synchronously: that "
38003 "means that events (and hence callbacks) can only happen while you are in the "
38004 "middle of making another libguestfs call.  The callback is called in the "
38005 "same thread."
38006 msgstr ""
38007
38008 #. type: textblock
38009 #: ../src/guestfs.pod:1737
38010 msgid ""
38011 "Events may contain a payload, usually nothing (void), an array of 64 bit "
38012 "unsigned integers, or a message buffer.  Payloads are discussed later on."
38013 msgstr ""
38014
38015 #. type: =head3
38016 #: ../src/guestfs.pod:1741
38017 msgid "CLASSES OF EVENTS"
38018 msgstr ""
38019
38020 #. type: =item
38021 #: ../src/guestfs.pod:1745
38022 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
38023 msgstr ""
38024
38025 #. type: textblock
38026 #: ../src/guestfs.pod:1748
38027 msgid ""
38028 "The callback function will be called while the handle is being closed "
38029 "(synchronously from L</guestfs_close>)."
38030 msgstr ""
38031
38032 #. type: textblock
38033 #: ../src/guestfs.pod:1751
38034 msgid ""
38035 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
38036 "handles that are open when the program exits.  This means that this callback "
38037 "might be called indirectly from L<exit(3)>, which can cause unexpected "
38038 "problems in higher-level languages (eg. if your HLL interpreter has already "
38039 "been cleaned up by the time this is called, and if your callback then jumps "
38040 "into some HLL function)."
38041 msgstr ""
38042
38043 #. type: textblock
38044 #: ../src/guestfs.pod:1758
38045 msgid ""
38046 "If no callback is registered: the handle is closed without any callback "
38047 "being invoked."
38048 msgstr ""
38049
38050 #. type: =item
38051 #: ../src/guestfs.pod:1761
38052 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
38053 msgstr ""
38054
38055 #. type: textblock
38056 #: ../src/guestfs.pod:1764
38057 msgid ""
38058 "The callback function will be called when the child process quits, either "
38059 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
38060 "corresponds to a transition from any state to the CONFIG state)."
38061 msgstr ""
38062
38063 #. type: textblock
38064 #: ../src/guestfs.pod:1768 ../src/guestfs.pod:1777 ../src/guestfs.pod:1894
38065 msgid "If no callback is registered: the event is ignored."
38066 msgstr ""
38067
38068 #. type: =item
38069 #: ../src/guestfs.pod:1770
38070 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
38071 msgstr ""
38072
38073 #. type: textblock
38074 #: ../src/guestfs.pod:1773
38075 msgid ""
38076 "The callback function will be called when the child process becomes ready "
38077 "first time after it has been launched.  (This corresponds to a transition "
38078 "from LAUNCHING to the READY state)."
38079 msgstr ""
38080
38081 #. type: =item
38082 #: ../src/guestfs.pod:1779
38083 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
38084 msgstr ""
38085
38086 #. type: textblock
38087 #: ../src/guestfs.pod:1782
38088 msgid ""
38089 "Some long-running operations can generate progress messages.  If this "
38090 "callback is registered, then it will be called each time a progress message "
38091 "is generated (usually two seconds after the operation started, and three "
38092 "times per second thereafter until it completes, although the frequency may "
38093 "change in future versions)."
38094 msgstr ""
38095
38096 #. type: textblock
38097 #: ../src/guestfs.pod:1788
38098 msgid ""
38099 "The callback receives in the payload four unsigned 64 bit numbers which are "
38100 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
38101 msgstr ""
38102
38103 #. type: textblock
38104 #: ../src/guestfs.pod:1791
38105 msgid ""
38106 "The units of C<total> are not defined, although for some operations C<total> "
38107 "may relate in some way to the amount of data to be transferred (eg. in bytes "
38108 "or megabytes), and C<position> may be the portion which has been "
38109 "transferred."
38110 msgstr ""
38111
38112 #. type: textblock
38113 #: ../src/guestfs.pod:1796
38114 msgid "The only defined and stable parts of the API are:"
38115 msgstr ""
38116
38117 #. type: textblock
38118 #: ../src/guestfs.pod:1802
38119 msgid ""
38120 "The callback can display to the user some type of progress bar or indicator "
38121 "which shows the ratio of C<position>:C<total>."
38122 msgstr ""
38123
38124 #. type: textblock
38125 #: ../src/guestfs.pod:1807
38126 msgid "0 E<lt>= C<position> E<lt>= C<total>"
38127 msgstr ""
38128
38129 #. type: textblock
38130 #: ../src/guestfs.pod:1811
38131 msgid ""
38132 "If any progress notification is sent during a call, then a final progress "
38133 "notification is always sent when C<position> = C<total> (I<unless> the call "
38134 "fails with an error)."
38135 msgstr ""
38136
38137 #. type: textblock
38138 #: ../src/guestfs.pod:1815
38139 msgid ""
38140 "This is to simplify caller code, so callers can easily set the progress "
38141 "indicator to \"100%\" at the end of the operation, without requiring special "
38142 "code to detect this case."
38143 msgstr ""
38144
38145 #. type: textblock
38146 #: ../src/guestfs.pod:1821
38147 msgid ""
38148 "For some calls we are unable to estimate the progress of the call, but we "
38149 "can still generate progress messages to indicate activity.  This is known as "
38150 "\"pulse mode\", and is directly supported by certain progress bar "
38151 "implementations (eg. GtkProgressBar)."
38152 msgstr ""
38153
38154 #. type: textblock
38155 #: ../src/guestfs.pod:1826
38156 msgid ""
38157 "For these calls, zero or more progress messages are generated with "
38158 "C<position = 0> and C<total = 1>, followed by a final message with "
38159 "C<position = total = 1>."
38160 msgstr ""
38161
38162 #. type: textblock
38163 #: ../src/guestfs.pod:1830
38164 msgid ""
38165 "As noted above, if the call fails with an error then the final message may "
38166 "not be generated."
38167 msgstr ""
38168
38169 #. type: textblock
38170 #: ../src/guestfs.pod:1835
38171 msgid ""
38172 "The callback also receives the procedure number (C<proc_nr>) and serial "
38173 "number (C<serial>) of the call.  These are only useful for debugging "
38174 "protocol issues, and the callback can normally ignore them.  The callback "
38175 "may want to print these numbers in error messages or debugging messages."
38176 msgstr ""
38177
38178 #. type: textblock
38179 #: ../src/guestfs.pod:1841
38180 msgid "If no callback is registered: progress messages are discarded."
38181 msgstr ""
38182
38183 #. type: =item
38184 #: ../src/guestfs.pod:1843
38185 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
38186 msgstr ""
38187
38188 #. type: textblock
38189 #: ../src/guestfs.pod:1846
38190 msgid ""
38191 "The callback function is called whenever a log message is generated by qemu, "
38192 "the appliance kernel, guestfsd (daemon), or utility programs."
38193 msgstr ""
38194
38195 #. type: textblock
38196 #: ../src/guestfs.pod:1849
38197 msgid ""
38198 "If the verbose flag (L</guestfs_set_verbose>) is set before launch "
38199 "(L</guestfs_launch>) then additional debug messages are generated."
38200 msgstr ""
38201
38202 #. type: textblock
38203 #: ../src/guestfs.pod:1852 ../src/guestfs.pod:1866
38204 msgid ""
38205 "If no callback is registered: the messages are discarded unless the verbose "
38206 "flag is set in which case they are sent to stderr.  You can override the "
38207 "printing of verbose messages to stderr by setting up a callback."
38208 msgstr ""
38209
38210 #. type: =item
38211 #: ../src/guestfs.pod:1857
38212 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
38213 msgstr ""
38214
38215 #. type: textblock
38216 #: ../src/guestfs.pod:1860
38217 msgid ""
38218 "The callback function is called whenever a log message is generated by the "
38219 "library part of libguestfs."
38220 msgstr ""
38221
38222 #. type: textblock
38223 #: ../src/guestfs.pod:1863
38224 msgid ""
38225 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
38226 "messages are generated."
38227 msgstr ""
38228
38229 #. type: =item
38230 #: ../src/guestfs.pod:1871
38231 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
38232 msgstr ""
38233
38234 #. type: textblock
38235 #: ../src/guestfs.pod:1874
38236 msgid ""
38237 "The callback function is called whenever a trace message is generated.  This "
38238 "only applies if the trace flag (L</guestfs_set_trace>) is set."
38239 msgstr ""
38240
38241 #. type: textblock
38242 #: ../src/guestfs.pod:1877
38243 msgid ""
38244 "If no callback is registered: the messages are sent to stderr.  You can "
38245 "override the printing of trace messages to stderr by setting up a callback."
38246 msgstr ""
38247
38248 #. type: =item
38249 #: ../src/guestfs.pod:1881
38250 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
38251 msgstr ""
38252
38253 #. type: textblock
38254 #: ../src/guestfs.pod:1884
38255 msgid "The callback function is called whenever a libguestfs function is entered."
38256 msgstr ""
38257
38258 #. type: textblock
38259 #: ../src/guestfs.pod:1887
38260 msgid ""
38261 "The payload is a string which contains the name of the function that we are "
38262 "entering (not including C<guestfs_> prefix)."
38263 msgstr ""
38264
38265 #. type: textblock
38266 #: ../src/guestfs.pod:1890
38267 msgid ""
38268 "Note that libguestfs functions can call themselves, so you may see many "
38269 "events from a single call.  A few libguestfs functions do not generate this "
38270 "event."
38271 msgstr ""
38272
38273 #. type: =head3
38274 #: ../src/guestfs.pod:1898
38275 msgid "guestfs_set_event_callback"
38276 msgstr ""
38277
38278 #. type: verbatim
38279 #: ../src/guestfs.pod:1900
38280 #, no-wrap
38281 msgid ""
38282 " int guestfs_set_event_callback (guestfs_h *g,\n"
38283 "                                 guestfs_event_callback cb,\n"
38284 "                                 uint64_t event_bitmask,\n"
38285 "                                 int flags,\n"
38286 "                                 void *opaque);\n"
38287 "\n"
38288 msgstr ""
38289
38290 #. type: textblock
38291 #: ../src/guestfs.pod:1906
38292 msgid ""
38293 "This function registers a callback (C<cb>) for all event classes in the "
38294 "C<event_bitmask>."
38295 msgstr ""
38296
38297 #. type: textblock
38298 #: ../src/guestfs.pod:1909
38299 msgid ""
38300 "For example, to register for all log message events, you could call this "
38301 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
38302 "To register a single callback for all possible classes of events, use "
38303 "C<GUESTFS_EVENT_ALL>."
38304 msgstr ""
38305
38306 #. type: textblock
38307 #: ../src/guestfs.pod:1915
38308 msgid "C<flags> should always be passed as 0."
38309 msgstr ""
38310
38311 #. type: textblock
38312 #: ../src/guestfs.pod:1917
38313 msgid ""
38314 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
38315 "it for any purpose."
38316 msgstr ""
38317
38318 #. type: textblock
38319 #: ../src/guestfs.pod:1920
38320 msgid ""
38321 "The return value is the event handle (an integer) which you can use to "
38322 "delete the callback (see below)."
38323 msgstr ""
38324
38325 #. type: textblock
38326 #: ../src/guestfs.pod:1923
38327 msgid ""
38328 "If there is an error, this function returns C<-1>, and sets the error in the "
38329 "handle in the usual way (see L</guestfs_last_error> etc.)"
38330 msgstr ""
38331
38332 #. type: textblock
38333 #: ../src/guestfs.pod:1926
38334 msgid ""
38335 "Callbacks remain in effect until they are deleted, or until the handle is "
38336 "closed."
38337 msgstr ""
38338
38339 #. type: textblock
38340 #: ../src/guestfs.pod:1929
38341 msgid ""
38342 "In the case where multiple callbacks are registered for a particular event "
38343 "class, all of the callbacks are called.  The order in which multiple "
38344 "callbacks are called is not defined."
38345 msgstr ""
38346
38347 #. type: =head3
38348 #: ../src/guestfs.pod:1933
38349 msgid "guestfs_delete_event_callback"
38350 msgstr ""
38351
38352 #. type: verbatim
38353 #: ../src/guestfs.pod:1935
38354 #, no-wrap
38355 msgid ""
38356 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
38357 "\n"
38358 msgstr ""
38359
38360 #. type: textblock
38361 #: ../src/guestfs.pod:1937
38362 msgid ""
38363 "Delete a callback that was previously registered.  C<event_handle> should be "
38364 "the integer that was returned by a previous call to "
38365 "C<guestfs_set_event_callback> on the same handle."
38366 msgstr ""
38367
38368 #. type: =head3
38369 #: ../src/guestfs.pod:1941
38370 msgid "guestfs_event_callback"
38371 msgstr ""
38372
38373 #. type: verbatim
38374 #: ../src/guestfs.pod:1943
38375 #, no-wrap
38376 msgid ""
38377 " typedef void (*guestfs_event_callback) (\n"
38378 "                  guestfs_h *g,\n"
38379 "                  void *opaque,\n"
38380 "                  uint64_t event,\n"
38381 "                  int event_handle,\n"
38382 "                  int flags,\n"
38383 "                  const char *buf, size_t buf_len,\n"
38384 "                  const uint64_t *array, size_t array_len);\n"
38385 "\n"
38386 msgstr ""
38387
38388 #. type: textblock
38389 #: ../src/guestfs.pod:1952
38390 msgid "This is the type of the event callback function that you have to provide."
38391 msgstr ""
38392
38393 #. type: textblock
38394 #: ../src/guestfs.pod:1955
38395 msgid ""
38396 "The basic parameters are: the handle (C<g>), the opaque user pointer "
38397 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
38398 "handle, and C<flags> which in the current API you should ignore."
38399 msgstr ""
38400
38401 #. type: textblock
38402 #: ../src/guestfs.pod:1959
38403 msgid ""
38404 "The remaining parameters contain the event payload (if any).  Each event may "
38405 "contain a payload, which usually relates to the event class, but for future "
38406 "proofing your code should be written to handle any payload for any event "
38407 "class."
38408 msgstr ""
38409
38410 #. type: textblock
38411 #: ../src/guestfs.pod:1964
38412 msgid ""
38413 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
38414 "there is no message buffer).  Note that this message buffer can contain "
38415 "arbitrary 8 bit data, including NUL bytes."
38416 msgstr ""
38417
38418 #. type: textblock
38419 #: ../src/guestfs.pod:1968
38420 msgid ""
38421 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
38422 "moment this is only used for progress messages."
38423 msgstr ""
38424
38425 #. type: =head3
38426 #: ../src/guestfs.pod:1971
38427 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
38428 msgstr ""
38429
38430 #. type: textblock
38431 #: ../src/guestfs.pod:1973
38432 msgid ""
38433 "One motivation for the generic event API was to allow GUI programs to "
38434 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
38435 "unconditionally to C<stderr>."
38436 msgstr ""
38437
38438 #. type: textblock
38439 #: ../src/guestfs.pod:1977
38440 msgid ""
38441 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
38442 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
38443 "messages are not events; you must capture error messages separately)."
38444 msgstr ""
38445
38446 #. type: textblock
38447 #: ../src/guestfs.pod:1982
38448 msgid ""
38449 "Programs have to set up a callback to capture the classes of events of "
38450 "interest:"
38451 msgstr ""
38452
38453 #. type: verbatim
38454 #: ../src/guestfs.pod:1985
38455 #, no-wrap
38456 msgid ""
38457 " int eh =\n"
38458 "   guestfs_set_event_callback\n"
38459 "     (g, message_callback,\n"
38460 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
38461 "      GUESTFS_EVENT_TRACE,\n"
38462 "      0, NULL) == -1)\n"
38463 " if (eh == -1) {\n"
38464 "   // handle error in the usual way\n"
38465 " }\n"
38466 "\n"
38467 msgstr ""
38468
38469 #. type: textblock
38470 #: ../src/guestfs.pod:1995
38471 msgid ""
38472 "The callback can then direct messages to the appropriate place.  In this "
38473 "example, messages are directed to syslog:"
38474 msgstr ""
38475
38476 #. type: verbatim
38477 #: ../src/guestfs.pod:1998
38478 #, no-wrap
38479 msgid ""
38480 " static void\n"
38481 " message_callback (\n"
38482 "         guestfs_h *g,\n"
38483 "         void *opaque,\n"
38484 "         uint64_t event,\n"
38485 "         int event_handle,\n"
38486 "         int flags,\n"
38487 "         const char *buf, size_t buf_len,\n"
38488 "         const uint64_t *array, size_t array_len)\n"
38489 " {\n"
38490 "   const int priority = LOG_USER|LOG_INFO;\n"
38491 "   if (buf_len > 0)\n"
38492 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
38493 " }\n"
38494 "\n"
38495 msgstr ""
38496
38497 #. type: =head1
38498 #: ../src/guestfs.pod:2013
38499 msgid "CANCELLING LONG TRANSFERS"
38500 msgstr ""
38501
38502 #. type: textblock
38503 #: ../src/guestfs.pod:2015
38504 msgid ""
38505 "Some operations can be cancelled by the caller while they are in progress.  "
38506 "Currently only operations that involve uploading or downloading data can be "
38507 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
38508 "parameters in the generator)."
38509 msgstr ""
38510
38511 #. type: =head2
38512 #: ../src/guestfs.pod:2020
38513 msgid "guestfs_user_cancel"
38514 msgstr ""
38515
38516 #. type: verbatim
38517 #: ../src/guestfs.pod:2022
38518 #, no-wrap
38519 msgid ""
38520 " void guestfs_user_cancel (guestfs_h *g);\n"
38521 "\n"
38522 msgstr ""
38523
38524 #. type: textblock
38525 #: ../src/guestfs.pod:2024
38526 msgid "C<guestfs_user_cancel> cancels the current upload or download operation."
38527 msgstr ""
38528
38529 #. type: textblock
38530 #: ../src/guestfs.pod:2027
38531 msgid ""
38532 "Unlike most other libguestfs calls, this function is signal safe and thread "
38533 "safe.  You can call it from a signal handler or from another thread, without "
38534 "needing to do any locking."
38535 msgstr ""
38536
38537 #. type: textblock
38538 #: ../src/guestfs.pod:2031
38539 msgid ""
38540 "The transfer that was in progress (if there is one) will stop shortly "
38541 "afterwards, and will return an error.  The errno (see "
38542 "L</guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
38543 "out if the operation was cancelled or failed because of another error."
38544 msgstr ""
38545
38546 #. type: textblock
38547 #: ../src/guestfs.pod:2037
38548 msgid ""
38549 "No cleanup is performed: for example, if a file was being uploaded then "
38550 "after cancellation there may be a partially uploaded file.  It is the "
38551 "caller's responsibility to clean up if necessary."
38552 msgstr ""
38553
38554 #. type: textblock
38555 #: ../src/guestfs.pod:2041
38556 msgid "There are two common places that you might call C<guestfs_user_cancel>."
38557 msgstr ""
38558
38559 #. type: textblock
38560 #: ../src/guestfs.pod:2043
38561 msgid ""
38562 "In an interactive text-based program, you might call it from a C<SIGINT> "
38563 "signal handler so that pressing C<^C> cancels the current operation.  (You "
38564 "also need to call L</guestfs_set_pgroup> so that child processes don't "
38565 "receive the C<^C> signal)."
38566 msgstr ""
38567
38568 #. type: textblock
38569 #: ../src/guestfs.pod:2048
38570 msgid ""
38571 "In a graphical program, when the main thread is displaying a progress bar "
38572 "with a cancel button, wire up the cancel button to call this function."
38573 msgstr ""
38574
38575 #. type: =head1
38576 #: ../src/guestfs.pod:2052
38577 msgid "PRIVATE DATA AREA"
38578 msgstr ""
38579
38580 #. type: textblock
38581 #: ../src/guestfs.pod:2054
38582 msgid ""
38583 "You can attach named pieces of private data to the libguestfs handle, fetch "
38584 "them by name, and walk over them, for the lifetime of the handle.  This is "
38585 "called the private data area and is only available from the C API."
38586 msgstr ""
38587
38588 #. type: textblock
38589 #: ../src/guestfs.pod:2059
38590 msgid "To attach a named piece of data, use the following call:"
38591 msgstr ""
38592
38593 #. type: verbatim
38594 #: ../src/guestfs.pod:2061
38595 #, no-wrap
38596 msgid ""
38597 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
38598 "\n"
38599 msgstr ""
38600
38601 #. type: textblock
38602 #: ../src/guestfs.pod:2063
38603 msgid ""
38604 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
38605 "pointer (which can be C<NULL>).  Any previous item with the same key is "
38606 "overwritten."
38607 msgstr ""
38608
38609 #. type: textblock
38610 #: ../src/guestfs.pod:2067
38611 msgid ""
38612 "You can use any C<key> you want, but your key should I<not> start with an "
38613 "underscore character.  Keys beginning with an underscore character are "
38614 "reserved for internal libguestfs purposes (eg. for implementing language "
38615 "bindings).  It is recommended that you prefix the key with some unique "
38616 "string to avoid collisions with other users."
38617 msgstr ""
38618
38619 #. type: textblock
38620 #: ../src/guestfs.pod:2073
38621 msgid "To retrieve the pointer, use:"
38622 msgstr ""
38623
38624 #. type: verbatim
38625 #: ../src/guestfs.pod:2075
38626 #, no-wrap
38627 msgid ""
38628 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
38629 "\n"
38630 msgstr ""
38631
38632 #. type: textblock
38633 #: ../src/guestfs.pod:2077
38634 msgid ""
38635 "This function returns C<NULL> if either no data is found associated with "
38636 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
38637 "C<NULL>."
38638 msgstr ""
38639
38640 #. type: textblock
38641 #: ../src/guestfs.pod:2081
38642 msgid ""
38643 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
38644 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
38645 "all.  In particular, libguestfs does I<not> try to free the data when the "
38646 "handle is closed.  If the data must be freed, then the caller must either "
38647 "free it before calling L</guestfs_close> or must set up a close callback to "
38648 "do it (see L</GUESTFS_EVENT_CLOSE>)."
38649 msgstr ""
38650
38651 #. type: textblock
38652 #: ../src/guestfs.pod:2088
38653 msgid "To walk over all entries, use these two functions:"
38654 msgstr ""
38655
38656 #. type: verbatim
38657 #: ../src/guestfs.pod:2090
38658 #, no-wrap
38659 msgid ""
38660 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
38661 "\n"
38662 msgstr ""
38663
38664 #. type: verbatim
38665 #: ../src/guestfs.pod:2092
38666 #, no-wrap
38667 msgid ""
38668 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
38669 "\n"
38670 msgstr ""
38671
38672 #. type: textblock
38673 #: ../src/guestfs.pod:2094
38674 msgid ""
38675 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
38676 "not have any particular meaning -- keys are not returned in any defined "
38677 "order).  A pointer to the key is returned in C<*key_rtn> and the "
38678 "corresponding data pointer is returned from the function.  C<NULL> is "
38679 "returned if there are no keys stored in the handle."
38680 msgstr ""
38681
38682 #. type: textblock
38683 #: ../src/guestfs.pod:2100
38684 msgid ""
38685 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
38686 "value of this function is also C<NULL> is there are no further entries to "
38687 "return."
38688 msgstr ""
38689
38690 #. type: textblock
38691 #: ../src/guestfs.pod:2104
38692 msgid "Notes about walking over entries:"
38693 msgstr ""
38694
38695 #. type: textblock
38696 #: ../src/guestfs.pod:2110
38697 msgid "You must not call C<guestfs_set_private> while walking over the entries."
38698 msgstr ""
38699
38700 #. type: textblock
38701 #: ../src/guestfs.pod:2115
38702 msgid ""
38703 "The handle maintains an internal iterator which is reset when you call "
38704 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
38705 "call C<guestfs_set_private>."
38706 msgstr ""
38707
38708 #. type: textblock
38709 #: ../src/guestfs.pod:2121
38710 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
38711 msgstr ""
38712
38713 #. type: verbatim
38714 #: ../src/guestfs.pod:2123
38715 #, no-wrap
38716 msgid ""
38717 " guestfs_set_private (g, key, NULL);\n"
38718 "\n"
38719 msgstr ""
38720
38721 #. type: textblock
38722 #: ../src/guestfs.pod:2125
38723 msgid "then that C<key> is not returned when walking."
38724 msgstr ""
38725
38726 #. type: textblock
38727 #: ../src/guestfs.pod:2129
38728 msgid ""
38729 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
38730 "C<guestfs_next_private> or C<guestfs_set_private>."
38731 msgstr ""
38732
38733 #. type: textblock
38734 #: ../src/guestfs.pod:2135
38735 msgid ""
38736 "The following example code shows how to print all keys and data pointers "
38737 "that are associated with the handle C<g>:"
38738 msgstr ""
38739
38740 #. type: verbatim
38741 #: ../src/guestfs.pod:2138
38742 #, no-wrap
38743 msgid ""
38744 " const char *key;\n"
38745 " void *data = guestfs_first_private (g, &key);\n"
38746 " while (data != NULL)\n"
38747 "   {\n"
38748 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
38749 "     data = guestfs_next_private (g, &key);\n"
38750 "   }\n"
38751 "\n"
38752 msgstr ""
38753
38754 #. type: textblock
38755 #: ../src/guestfs.pod:2146
38756 msgid ""
38757 "More commonly you are only interested in keys that begin with an "
38758 "application-specific prefix C<foo_>.  Modify the loop like so:"
38759 msgstr ""
38760
38761 #. type: verbatim
38762 #: ../src/guestfs.pod:2149
38763 #, no-wrap
38764 msgid ""
38765 " const char *key;\n"
38766 " void *data = guestfs_first_private (g, &key);\n"
38767 " while (data != NULL)\n"
38768 "   {\n"
38769 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
38770 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
38771 "     data = guestfs_next_private (g, &key);\n"
38772 "   }\n"
38773 "\n"
38774 msgstr ""
38775
38776 #. type: textblock
38777 #: ../src/guestfs.pod:2158
38778 msgid ""
38779 "If you need to modify keys while walking, then you have to jump back to the "
38780 "beginning of the loop.  For example, to delete all keys prefixed with "
38781 "C<foo_>:"
38782 msgstr ""
38783
38784 #. type: verbatim
38785 #: ../src/guestfs.pod:2162
38786 #, no-wrap
38787 msgid ""
38788 "  const char *key;\n"
38789 "  void *data;\n"
38790 " again:\n"
38791 "  data = guestfs_first_private (g, &key);\n"
38792 "  while (data != NULL)\n"
38793 "    {\n"
38794 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
38795 "        {\n"
38796 "          guestfs_set_private (g, key, NULL);\n"
38797 "          /* note that 'key' pointer is now invalid, and so is\n"
38798 "             the internal iterator */\n"
38799 "          goto again;\n"
38800 "        }\n"
38801 "      data = guestfs_next_private (g, &key);\n"
38802 "    }\n"
38803 "\n"
38804 msgstr ""
38805
38806 #. type: textblock
38807 #: ../src/guestfs.pod:2178
38808 msgid ""
38809 "Note that the above loop is guaranteed to terminate because the keys are "
38810 "being deleted, but other manipulations of keys within the loop might not "
38811 "terminate unless you also maintain an indication of which keys have been "
38812 "visited."
38813 msgstr ""
38814
38815 #. type: =head1
38816 #: ../src/guestfs.pod:2183
38817 msgid "SYSTEMTAP"
38818 msgstr ""
38819
38820 #. type: textblock
38821 #: ../src/guestfs.pod:2185
38822 msgid ""
38823 "The libguestfs C library can be probed using systemtap or DTrace.  This is "
38824 "true of any library, not just libguestfs.  However libguestfs also contains "
38825 "static markers to help in probing internal operations."
38826 msgstr ""
38827
38828 #. type: textblock
38829 #: ../src/guestfs.pod:2189
38830 msgid "You can list all the static markers by doing:"
38831 msgstr ""
38832
38833 #. type: verbatim
38834 #: ../src/guestfs.pod:2191
38835 #, no-wrap
38836 msgid ""
38837 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
38838 "              .provider(\"guestfs\").mark(\"*\")'\n"
38839 "\n"
38840 msgstr ""
38841
38842 #. type: textblock
38843 #: ../src/guestfs.pod:2194
38844 msgid ""
38845 "B<Note:> These static markers are I<not> part of the stable API and may "
38846 "change in future versions."
38847 msgstr ""
38848
38849 #. type: =head2
38850 #: ../src/guestfs.pod:2197
38851 msgid "SYSTEMTAP SCRIPT EXAMPLE"
38852 msgstr ""
38853
38854 #. type: textblock
38855 #: ../src/guestfs.pod:2199
38856 msgid ""
38857 "This script contains examples of displaying both the static markers and some "
38858 "ordinary C entry points:"
38859 msgstr ""
38860
38861 #. type: verbatim
38862 #: ../src/guestfs.pod:2202
38863 #, no-wrap
38864 msgid ""
38865 " global last;\n"
38866 " \n"
38867 msgstr ""
38868
38869 #. type: verbatim
38870 #: ../src/guestfs.pod:2204
38871 #, no-wrap
38872 msgid ""
38873 " function display_time () {\n"
38874 "       now = gettimeofday_us ();\n"
38875 "       delta = 0;\n"
38876 "       if (last > 0)\n"
38877 "             delta = now - last;\n"
38878 "       last = now;\n"
38879 " \n"
38880 msgstr ""
38881
38882 #. type: verbatim
38883 #: ../src/guestfs.pod:2211
38884 #, no-wrap
38885 msgid ""
38886 "       printf (\"%d (+%d):\", now, delta);\n"
38887 " }\n"
38888 " \n"
38889 msgstr ""
38890
38891 #. type: verbatim
38892 #: ../src/guestfs.pod:2214
38893 #, no-wrap
38894 msgid ""
38895 " probe begin {\n"
38896 "       last = 0;\n"
38897 "       printf (\"ready\\n\");\n"
38898 " }\n"
38899 " \n"
38900 msgstr ""
38901
38902 #. type: verbatim
38903 #: ../src/guestfs.pod:2219
38904 #, no-wrap
38905 msgid ""
38906 " /* Display all calls to static markers. */\n"
38907 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
38908 "           .provider(\"guestfs\").mark(\"*\") ? {\n"
38909 "       display_time();\n"
38910 "       printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
38911 " }\n"
38912 " \n"
38913 msgstr ""
38914
38915 #. type: verbatim
38916 #: ../src/guestfs.pod:2226
38917 #, no-wrap
38918 msgid ""
38919 " /* Display all calls to guestfs_mkfs* functions. */\n"
38920 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
38921 "           .function(\"guestfs_mkfs*\") ? {\n"
38922 "       display_time();\n"
38923 "       printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
38924 " }\n"
38925 "\n"
38926 msgstr ""
38927
38928 #. type: textblock
38929 #: ../src/guestfs.pod:2233
38930 msgid ""
38931 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
38932 "program.  Note that you either have to be root, or you have to add yourself "
38933 "to several special stap groups.  Consult the systemtap documentation for "
38934 "more information."
38935 msgstr ""
38936
38937 #. type: verbatim
38938 #: ../src/guestfs.pod:2238
38939 #, no-wrap
38940 msgid ""
38941 " # stap /tmp/test.stap\n"
38942 " ready\n"
38943 "\n"
38944 msgstr ""
38945
38946 #. type: textblock
38947 #: ../src/guestfs.pod:2241
38948 msgid "In another terminal, run a guestfish command such as this:"
38949 msgstr ""
38950
38951 #. type: textblock
38952 #: ../src/guestfs.pod:2245
38953 msgid "In the first terminal, stap trace output similar to this is shown:"
38954 msgstr ""
38955
38956 #. type: verbatim
38957 #: ../src/guestfs.pod:2247
38958 #, no-wrap
38959 msgid ""
38960 " 1318248056692655 (+0):\tlaunch_start\n"
38961 " 1318248056692850 (+195):       launch_build_appliance_start\n"
38962 " 1318248056818285 (+125435):    launch_build_appliance_end\n"
38963 " 1318248056838059 (+19774):     launch_run_qemu\n"
38964 " 1318248061071167 (+4233108):   launch_end\n"
38965 " 1318248061280324 (+209157):    guestfs_mkfs g=0x1024ab0 fstype=0x46116f "
38966 "device=0x1024e60\n"
38967 "\n"
38968 msgstr ""
38969
38970 #. type: =end
38971 #: ../src/guestfs.pod:2254 ../src/guestfs.pod:2259
38972 msgid "html"
38973 msgstr ""
38974
38975 #. type: textblock
38976 #: ../src/guestfs.pod:2256
38977 msgid ""
38978 "<!-- old anchor for the next section --> <a "
38979 "name=\"state_machine_and_low_level_event_api\"/>"
38980 msgstr ""
38981
38982 #. type: =head1
38983 #: ../src/guestfs.pod:2261
38984 msgid "ARCHITECTURE"
38985 msgstr ""
38986
38987 #. type: textblock
38988 #: ../src/guestfs.pod:2263
38989 msgid ""
38990 "Internally, libguestfs is implemented by running an appliance (a special "
38991 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
38992 "process of the main program."
38993 msgstr ""
38994
38995 #. type: verbatim
38996 #: ../src/guestfs.pod:2267
38997 #, no-wrap
38998 msgid ""
38999 "  ___________________\n"
39000 " /                   \\\n"
39001 " | main program      |\n"
39002 " |                   |\n"
39003 " |                   |           child process / appliance\n"
39004 " |                   |           __________________________\n"
39005 " |                   |          / qemu                     \\\n"
39006 " +-------------------+   RPC    |      +-----------------+ |\n"
39007 " | libguestfs     <--------------------> guestfsd        | |\n"
39008 " |                   |          |      +-----------------+ |\n"
39009 " \\___________________/          |      | Linux kernel    | |\n"
39010 "                                |      +--^--------------+ |\n"
39011 "                                \\_________|________________/\n"
39012 "                                          |\n"
39013 "                                   _______v______\n"
39014 "                                  /              \\\n"
39015 "                                  | Device or    |\n"
39016 "                                  | disk image   |\n"
39017 "                                  \\______________/\n"
39018 "\n"
39019 msgstr ""
39020
39021 #. type: textblock
39022 #: ../src/guestfs.pod:2287
39023 msgid ""
39024 "The library, linked to the main program, creates the child process and hence "
39025 "the appliance in the L</guestfs_launch> function."
39026 msgstr ""
39027
39028 #. type: textblock
39029 #: ../src/guestfs.pod:2290
39030 msgid ""
39031 "Inside the appliance is a Linux kernel and a complete stack of userspace "
39032 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
39033 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
39034 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
39035 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
39036 "attached to the qemu process which translates device access by the "
39037 "appliance's Linux kernel into accesses to the image."
39038 msgstr ""
39039
39040 #. type: textblock
39041 #: ../src/guestfs.pod:2299
39042 msgid ""
39043 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
39044 "Although the disk image you are attached to might also be used by some "
39045 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
39046 "care if both libguestfs's qemu process and your virtual machine are trying "
39047 "to update the disk image at the same time, since these usually results in "
39048 "massive disk corruption)."
39049 msgstr ""
39050
39051 #. type: =head1
39052 #: ../src/guestfs.pod:2306
39053 msgid "STATE MACHINE"
39054 msgstr ""
39055
39056 #. type: textblock
39057 #: ../src/guestfs.pod:2308
39058 msgid "libguestfs uses a state machine to model the child process:"
39059 msgstr ""
39060
39061 #. type: verbatim
39062 #: ../src/guestfs.pod:2310
39063 #, no-wrap
39064 msgid ""
39065 "                         |\n"
39066 "                    guestfs_create\n"
39067 "                         |\n"
39068 "                         |\n"
39069 "                     ____V_____\n"
39070 "                    /          \\\n"
39071 "                    |  CONFIG  |\n"
39072 "                    \\__________/\n"
39073 "                     ^ ^   ^  \\\n"
39074 "                    /  |    \\  \\ guestfs_launch\n"
39075 "                   /   |    _\\__V______\n"
39076 "                  /    |   /           \\\n"
39077 "                 /     |   | LAUNCHING |\n"
39078 "                /      |   \\___________/\n"
39079 "               /       |       /\n"
39080 "              /        |  guestfs_launch\n"
39081 "             /         |     /\n"
39082 "    ______  /        __|____V\n"
39083 "   /      \\ ------> /        \\\n"
39084 "   | BUSY |         | READY  |\n"
39085 "   \\______/ <------ \\________/\n"
39086 "\n"
39087 msgstr ""
39088
39089 #. type: textblock
39090 #: ../src/guestfs.pod:2332
39091 msgid ""
39092 "The normal transitions are (1) CONFIG (when the handle is created, but there "
39093 "is no child process), (2) LAUNCHING (when the child process is booting up), "
39094 "(3) alternating between READY and BUSY as commands are issued to, and "
39095 "carried out by, the child process."
39096 msgstr ""
39097
39098 #. type: textblock
39099 #: ../src/guestfs.pod:2337
39100 msgid ""
39101 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
39102 "asynchronously at any time (eg. due to some internal error), and that causes "
39103 "the state to transition back to CONFIG."
39104 msgstr ""
39105
39106 #. type: textblock
39107 #: ../src/guestfs.pod:2341
39108 msgid ""
39109 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
39110 "issued when in the CONFIG state."
39111 msgstr ""
39112
39113 #. type: textblock
39114 #: ../src/guestfs.pod:2344
39115 msgid ""
39116 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
39117 "L</guestfs_launch> blocks until the child process is READY to accept "
39118 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
39119 "moves the state from CONFIG to LAUNCHING while it is running."
39120 msgstr ""
39121
39122 #. type: textblock
39123 #: ../src/guestfs.pod:2350
39124 msgid ""
39125 "API actions such as L</guestfs_mount> can only be issued when in the READY "
39126 "state.  These API calls block waiting for the command to be carried out "
39127 "(ie. the state to transition to BUSY and then back to READY).  There are no "
39128 "non-blocking versions, and no way to issue more than one command per handle "
39129 "at the same time."
39130 msgstr ""
39131
39132 #. type: textblock
39133 #: ../src/guestfs.pod:2356
39134 msgid ""
39135 "Finally, the child process sends asynchronous messages back to the main "
39136 "program, such as kernel log messages.  You can register a callback to "
39137 "receive these messages."
39138 msgstr ""
39139
39140 #. type: =head1
39141 #: ../src/guestfs.pod:2360
39142 msgid "INTERNALS"
39143 msgstr ""
39144
39145 #. type: =head2
39146 #: ../src/guestfs.pod:2362
39147 msgid "APPLIANCE BOOT PROCESS"
39148 msgstr ""
39149
39150 #. type: textblock
39151 #: ../src/guestfs.pod:2364
39152 msgid ""
39153 "This process has evolved and continues to evolve.  The description here "
39154 "corresponds only to the current version of libguestfs and is provided for "
39155 "information only."
39156 msgstr ""
39157
39158 #. type: textblock
39159 #: ../src/guestfs.pod:2368
39160 msgid ""
39161 "In order to follow the stages involved below, enable libguestfs debugging "
39162 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
39163 msgstr ""
39164
39165 #. type: =item
39166 #: ../src/guestfs.pod:2373
39167 msgid "Create the appliance"
39168 msgstr ""
39169
39170 #. type: textblock
39171 #: ../src/guestfs.pod:2375
39172 msgid ""
39173 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
39174 "initrd and the appliance."
39175 msgstr ""
39176
39177 #. type: textblock
39178 #: ../src/guestfs.pod:2378
39179 msgid ""
39180 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
39181 "directory if C<TMPDIR> is set)."
39182 msgstr ""
39183
39184 #. type: textblock
39185 #: ../src/guestfs.pod:2381
39186 msgid ""
39187 "For a complete description of how the appliance is created and cached, read "
39188 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
39189 msgstr ""
39190
39191 #. type: =item
39192 #: ../src/guestfs.pod:2385
39193 msgid "Start qemu and boot the kernel"
39194 msgstr ""
39195
39196 #. type: textblock
39197 #: ../src/guestfs.pod:2387
39198 msgid "qemu is invoked to boot the kernel."
39199 msgstr ""
39200
39201 #. type: =item
39202 #: ../src/guestfs.pod:2389
39203 msgid "Run the initrd"
39204 msgstr ""
39205
39206 #. type: textblock
39207 #: ../src/guestfs.pod:2391
39208 msgid ""
39209 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
39210 "appliance.  The purpose of the initrd is to load enough kernel modules in "
39211 "order that the appliance itself can be mounted and started."
39212 msgstr ""
39213
39214 #. type: textblock
39215 #: ../src/guestfs.pod:2395
39216 msgid ""
39217 "The initrd is a cpio archive called "
39218 "C</var/tmp/.guestfs-E<lt>UIDE<gt>/initrd>."
39219 msgstr ""
39220
39221 #. type: textblock
39222 #: ../src/guestfs.pod:2398
39223 msgid ""
39224 "When the initrd has started you will see messages showing that kernel "
39225 "modules are being loaded, similar to this:"
39226 msgstr ""
39227
39228 #. type: verbatim
39229 #: ../src/guestfs.pod:2401
39230 #, no-wrap
39231 msgid ""
39232 " febootstrap: ext2 mini initrd starting up\n"
39233 " febootstrap: mounting /sys\n"
39234 " febootstrap: internal insmod libcrc32c.ko\n"
39235 " febootstrap: internal insmod crc32c-intel.ko\n"
39236 "\n"
39237 msgstr ""
39238
39239 #. type: =item
39240 #: ../src/guestfs.pod:2406
39241 msgid "Find and mount the appliance device"
39242 msgstr ""
39243
39244 #. type: textblock
39245 #: ../src/guestfs.pod:2408
39246 msgid ""
39247 "The appliance is a sparse file containing an ext2 filesystem which contains "
39248 "a familiar (although reduced in size) Linux operating system.  It would "
39249 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
39250 msgstr ""
39251
39252 #. type: textblock
39253 #: ../src/guestfs.pod:2412
39254 msgid ""
39255 "The regular disks being inspected by libguestfs are the first devices "
39256 "exposed by qemu (eg. as C</dev/vda>)."
39257 msgstr ""
39258
39259 #. type: textblock
39260 #: ../src/guestfs.pod:2415
39261 msgid ""
39262 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
39263 "there was only one regular disk)."
39264 msgstr ""
39265
39266 #. type: textblock
39267 #: ../src/guestfs.pod:2418
39268 msgid ""
39269 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
39270 "and switch root into the appliance, and run C</init> from the appliance."
39271 msgstr ""
39272
39273 #. type: textblock
39274 #: ../src/guestfs.pod:2422
39275 msgid "If this works successfully you will see messages such as:"
39276 msgstr ""
39277
39278 #. type: verbatim
39279 #: ../src/guestfs.pod:2424
39280 #, no-wrap
39281 msgid ""
39282 " febootstrap: picked /sys/block/vdb/dev as root device\n"
39283 " febootstrap: creating /dev/root as block special 252:16\n"
39284 " febootstrap: mounting new root on /root\n"
39285 " febootstrap: chroot\n"
39286 " Starting /init script ...\n"
39287 "\n"
39288 msgstr ""
39289
39290 #. type: textblock
39291 #: ../src/guestfs.pod:2430
39292 msgid ""
39293 "Note that C<Starting /init script ...> indicates that the appliance's init "
39294 "script is now running."
39295 msgstr ""
39296
39297 #. type: =item
39298 #: ../src/guestfs.pod:2433
39299 msgid "Initialize the appliance"
39300 msgstr ""
39301
39302 #. type: textblock
39303 #: ../src/guestfs.pod:2435
39304 msgid ""
39305 "The appliance itself now initializes itself.  This involves starting certain "
39306 "processes like C<udev>, possibly printing some debug information, and "
39307 "finally running the daemon (C<guestfsd>)."
39308 msgstr ""
39309
39310 #. type: =item
39311 #: ../src/guestfs.pod:2439
39312 msgid "The daemon"
39313 msgstr ""
39314
39315 #. type: textblock
39316 #: ../src/guestfs.pod:2441
39317 msgid ""
39318 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
39319 "should see:"
39320 msgstr ""
39321
39322 #. type: verbatim
39323 #: ../src/guestfs.pod:2444
39324 #, no-wrap
39325 msgid ""
39326 " verbose daemon enabled\n"
39327 "\n"
39328 msgstr ""
39329
39330 #. type: textblock
39331 #: ../src/guestfs.pod:2446
39332 msgid ""
39333 "The daemon expects to see a named virtio-serial port exposed by qemu and "
39334 "connected on the other end to the library."
39335 msgstr ""
39336
39337 #. type: textblock
39338 #: ../src/guestfs.pod:2449
39339 msgid ""
39340 "The daemon connects to this port (and hence to the library) and sends a four "
39341 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
39342 "protocol (see below)."
39343 msgstr ""
39344
39345 #. type: =head2
39346 #: ../src/guestfs.pod:2455
39347 msgid "COMMUNICATION PROTOCOL"
39348 msgstr ""
39349
39350 #. type: textblock
39351 #: ../src/guestfs.pod:2457
39352 msgid ""
39353 "Don't rely on using this protocol directly.  This section documents how it "
39354 "currently works, but it may change at any time."
39355 msgstr ""
39356
39357 #. type: textblock
39358 #: ../src/guestfs.pod:2460
39359 msgid ""
39360 "The protocol used to talk between the library and the daemon running inside "
39361 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
39362 "1014, RFC 1832, RFC 4506)."
39363 msgstr ""
39364
39365 #. type: textblock
39366 #: ../src/guestfs.pod:2464
39367 msgid ""
39368 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
39369 "this file is automatically generated)."
39370 msgstr ""
39371
39372 #. type: textblock
39373 #: ../src/guestfs.pod:2467
39374 msgid ""
39375 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
39376 "and C<FileOut> parameters, which are handled with very simple request/reply "
39377 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
39378 "parameters, which use the same request and reply messages, but they may also "
39379 "be followed by files sent using a chunked encoding."
39380 msgstr ""
39381
39382 #. type: =head3
39383 #: ../src/guestfs.pod:2474
39384 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
39385 msgstr ""
39386
39387 #. type: textblock
39388 #: ../src/guestfs.pod:2476
39389 msgid "For ordinary functions, the request message is:"
39390 msgstr ""
39391
39392 #. type: verbatim
39393 #: ../src/guestfs.pod:2478
39394 #, no-wrap
39395 msgid ""
39396 " total length (header + arguments,\n"
39397 "      but not including the length word itself)\n"
39398 " struct guestfs_message_header (encoded as XDR)\n"
39399 " struct guestfs_<foo>_args (encoded as XDR)\n"
39400 "\n"
39401 msgstr ""
39402
39403 #. type: textblock
39404 #: ../src/guestfs.pod:2483
39405 msgid ""
39406 "The total length field allows the daemon to allocate a fixed size buffer "
39407 "into which it slurps the rest of the message.  As a result, the total length "
39408 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
39409 "effective size of any request is limited to somewhere under this size."
39410 msgstr ""
39411
39412 #. type: textblock
39413 #: ../src/guestfs.pod:2489
39414 msgid ""
39415 "Note also that many functions don't take any arguments, in which case the "
39416 "C<guestfs_I<foo>_args> is completely omitted."
39417 msgstr ""
39418
39419 #. type: textblock
39420 #: ../src/guestfs.pod:2492
39421 msgid ""
39422 "The header contains the procedure number (C<guestfs_proc>) which is how the "
39423 "receiver knows what type of args structure to expect, or none at all."
39424 msgstr ""
39425
39426 #. type: textblock
39427 #: ../src/guestfs.pod:2496
39428 msgid ""
39429 "For functions that take optional arguments, the optional arguments are "
39430 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
39431 "arguments.  A bitmask in the header indicates which optional arguments are "
39432 "meaningful.  The bitmask is also checked to see if it contains bits set "
39433 "which the daemon does not know about (eg. if more optional arguments were "
39434 "added in a later version of the library), and this causes the call to be "
39435 "rejected."
39436 msgstr ""
39437
39438 #. type: textblock
39439 #: ../src/guestfs.pod:2504
39440 msgid "The reply message for ordinary functions is:"
39441 msgstr ""
39442
39443 #. type: verbatim
39444 #: ../src/guestfs.pod:2506
39445 #, no-wrap
39446 msgid ""
39447 " total length (header + ret,\n"
39448 "      but not including the length word itself)\n"
39449 " struct guestfs_message_header (encoded as XDR)\n"
39450 " struct guestfs_<foo>_ret (encoded as XDR)\n"
39451 "\n"
39452 msgstr ""
39453
39454 #. type: textblock
39455 #: ../src/guestfs.pod:2511
39456 msgid ""
39457 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
39458 "functions that return no formal return values."
39459 msgstr ""
39460
39461 #. type: textblock
39462 #: ../src/guestfs.pod:2514
39463 msgid "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
39464 msgstr ""
39465
39466 #. type: textblock
39467 #: ../src/guestfs.pod:2517
39468 msgid ""
39469 "In the case of an error, a flag is set in the header, and the reply message "
39470 "is slightly changed:"
39471 msgstr ""
39472
39473 #. type: verbatim
39474 #: ../src/guestfs.pod:2520
39475 #, no-wrap
39476 msgid ""
39477 " total length (header + error,\n"
39478 "      but not including the length word itself)\n"
39479 " struct guestfs_message_header (encoded as XDR)\n"
39480 " struct guestfs_message_error (encoded as XDR)\n"
39481 "\n"
39482 msgstr ""
39483
39484 #. type: textblock
39485 #: ../src/guestfs.pod:2525
39486 msgid ""
39487 "The C<guestfs_message_error> structure contains the error message as a "
39488 "string."
39489 msgstr ""
39490
39491 #. type: =head3
39492 #: ../src/guestfs.pod:2528
39493 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
39494 msgstr ""
39495
39496 #. type: textblock
39497 #: ../src/guestfs.pod:2530
39498 msgid ""
39499 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
39500 "The normal request message is sent (see above).  However this is followed by "
39501 "a sequence of file chunks."
39502 msgstr ""
39503
39504 #. type: verbatim
39505 #: ../src/guestfs.pod:2534
39506 #, no-wrap
39507 msgid ""
39508 " total length (header + arguments,\n"
39509 "      but not including the length word itself,\n"
39510 "      and not including the chunks)\n"
39511 " struct guestfs_message_header (encoded as XDR)\n"
39512 " struct guestfs_<foo>_args (encoded as XDR)\n"
39513 " sequence of chunks for FileIn param #0\n"
39514 " sequence of chunks for FileIn param #1 etc.\n"
39515 "\n"
39516 msgstr ""
39517
39518 #. type: textblock
39519 #: ../src/guestfs.pod:2542
39520 msgid "The \"sequence of chunks\" is:"
39521 msgstr ""
39522
39523 #. type: verbatim
39524 #: ../src/guestfs.pod:2544
39525 #, no-wrap
39526 msgid ""
39527 " length of chunk (not including length word itself)\n"
39528 " struct guestfs_chunk (encoded as XDR)\n"
39529 " length of chunk\n"
39530 " struct guestfs_chunk (encoded as XDR)\n"
39531 "   ...\n"
39532 " length of chunk\n"
39533 " struct guestfs_chunk (with data.data_len == 0)\n"
39534 "\n"
39535 msgstr ""
39536
39537 #. type: textblock
39538 #: ../src/guestfs.pod:2552
39539 msgid ""
39540 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
39541 "is set in the final chunk to indicate either successful completion or early "
39542 "cancellation."
39543 msgstr ""
39544
39545 #. type: textblock
39546 #: ../src/guestfs.pod:2556
39547 msgid ""
39548 "At time of writing there are no functions that have more than one FileIn "
39549 "parameter.  However this is (theoretically) supported, by sending the "
39550 "sequence of chunks for each FileIn parameter one after another (from left to "
39551 "right)."
39552 msgstr ""
39553
39554 #. type: textblock
39555 #: ../src/guestfs.pod:2561
39556 msgid ""
39557 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
39558 "transfer.  The library does this by sending a chunk with a special flag set "
39559 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
39560 "RPC, does I<not> send any reply, and goes back to reading the next request."
39561 msgstr ""
39562
39563 #. type: textblock
39564 #: ../src/guestfs.pod:2567
39565 msgid ""
39566 "The daemon may also cancel.  It does this by writing a special word "
39567 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
39568 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
39569 "cancel chunk).  The special word is chosen so that even if cancellation "
39570 "happens right at the end of the transfer (after the library has finished "
39571 "writing and has started listening for the reply), the \"spurious\" cancel "
39572 "flag will not be confused with the reply message."
39573 msgstr ""
39574
39575 #. type: textblock
39576 #: ../src/guestfs.pod:2576
39577 msgid ""
39578 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
39579 "limit), and also files where the size is not known in advance (eg. from "
39580 "pipes or sockets).  However the chunks are rather small "
39581 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
39582 "to keep much in memory."
39583 msgstr ""
39584
39585 #. type: =head3
39586 #: ../src/guestfs.pod:2582
39587 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
39588 msgstr ""
39589
39590 #. type: textblock
39591 #: ../src/guestfs.pod:2584
39592 msgid ""
39593 "The protocol for FileOut parameters is exactly the same as for FileIn "
39594 "parameters, but with the roles of daemon and library reversed."
39595 msgstr ""
39596
39597 #. type: verbatim
39598 #: ../src/guestfs.pod:2587
39599 #, no-wrap
39600 msgid ""
39601 " total length (header + ret,\n"
39602 "      but not including the length word itself,\n"
39603 "      and not including the chunks)\n"
39604 " struct guestfs_message_header (encoded as XDR)\n"
39605 " struct guestfs_<foo>_ret (encoded as XDR)\n"
39606 " sequence of chunks for FileOut param #0\n"
39607 " sequence of chunks for FileOut param #1 etc.\n"
39608 "\n"
39609 msgstr ""
39610
39611 #. type: =head3
39612 #: ../src/guestfs.pod:2595
39613 msgid "INITIAL MESSAGE"
39614 msgstr ""
39615
39616 #. type: textblock
39617 #: ../src/guestfs.pod:2597
39618 msgid ""
39619 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
39620 "which indicates that the guest and daemon is alive.  This is what "
39621 "L</guestfs_launch> waits for."
39622 msgstr ""
39623
39624 #. type: =head3
39625 #: ../src/guestfs.pod:2601
39626 msgid "PROGRESS NOTIFICATION MESSAGES"
39627 msgstr ""
39628
39629 #. type: textblock
39630 #: ../src/guestfs.pod:2603
39631 msgid ""
39632 "The daemon may send progress notification messages at any time.  These are "
39633 "distinguished by the normal length word being replaced by "
39634 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
39635 msgstr ""
39636
39637 #. type: textblock
39638 #: ../src/guestfs.pod:2607
39639 msgid ""
39640 "The library turns them into progress callbacks (see "
39641 "L</GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards "
39642 "them if not."
39643 msgstr ""
39644
39645 #. type: textblock
39646 #: ../src/guestfs.pod:2611
39647 msgid ""
39648 "The daemon self-limits the frequency of progress messages it sends (see "
39649 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
39650 "messages."
39651 msgstr ""
39652
39653 #. type: =head1
39654 #: ../src/guestfs.pod:2615
39655 msgid "LIBGUESTFS VERSION NUMBERS"
39656 msgstr ""
39657
39658 #. type: textblock
39659 #: ../src/guestfs.pod:2617
39660 msgid ""
39661 "Since April 2010, libguestfs has started to make separate development and "
39662 "stable releases, along with corresponding branches in our git repository.  "
39663 "These separate releases can be identified by version number:"
39664 msgstr ""
39665
39666 #. type: verbatim
39667 #: ../src/guestfs.pod:2622
39668 #, no-wrap
39669 msgid ""
39670 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
39671 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
39672 "       |\n"
39673 "       v\n"
39674 " 1  .  3  .  5\n"
39675 " ^           ^\n"
39676 " |           |\n"
39677 " |           `-------- sub-version\n"
39678 " |\n"
39679 " `------ always '1' because we don't change the ABI\n"
39680 "\n"
39681 msgstr ""
39682
39683 #. type: textblock
39684 #: ../src/guestfs.pod:2633
39685 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
39686 msgstr ""
39687
39688 #. type: textblock
39689 #: ../src/guestfs.pod:2635
39690 msgid ""
39691 "As time passes we cherry pick fixes from the development branch and backport "
39692 "those into the stable branch, the effect being that the stable branch should "
39693 "get more stable and less buggy over time.  So the stable releases are ideal "
39694 "for people who don't need new features but would just like the software to "
39695 "work."
39696 msgstr ""
39697
39698 #. type: textblock
39699 #: ../src/guestfs.pod:2641
39700 msgid "Our criteria for backporting changes are:"
39701 msgstr ""
39702
39703 #. type: textblock
39704 #: ../src/guestfs.pod:2647
39705 msgid ""
39706 "Documentation changes which don't affect any code are backported unless the "
39707 "documentation refers to a future feature which is not in stable."
39708 msgstr ""
39709
39710 #. type: textblock
39711 #: ../src/guestfs.pod:2653
39712 msgid ""
39713 "Bug fixes which are not controversial, fix obvious problems, and have been "
39714 "well tested are backported."
39715 msgstr ""
39716
39717 #. type: textblock
39718 #: ../src/guestfs.pod:2658
39719 msgid ""
39720 "Simple rearrangements of code which shouldn't affect how it works get "
39721 "backported.  This is so that the code in the two branches doesn't get too "
39722 "far out of step, allowing us to backport future fixes more easily."
39723 msgstr ""
39724
39725 #. type: textblock
39726 #: ../src/guestfs.pod:2664
39727 msgid ""
39728 "We I<don't> backport new features, new APIs, new tools etc, except in one "
39729 "exceptional case: the new feature is required in order to implement an "
39730 "important bug fix."
39731 msgstr ""
39732
39733 #. type: textblock
39734 #: ../src/guestfs.pod:2670
39735 msgid ""
39736 "A new stable branch starts when we think the new features in development are "
39737 "substantial and compelling enough over the current stable branch to warrant "
39738 "it.  When that happens we create new stable and development versions 1.N.0 "
39739 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
39740 "stable at this point, but by backporting fixes from development, that branch "
39741 "will stabilize over time."
39742 msgstr ""
39743
39744 #. type: =head1
39745 #: ../src/guestfs.pod:2678
39746 msgid "EXTENDING LIBGUESTFS"
39747 msgstr ""
39748
39749 #. type: =head2
39750 #: ../src/guestfs.pod:2680
39751 msgid "ADDING A NEW API ACTION"
39752 msgstr ""
39753
39754 #. type: textblock
39755 #: ../src/guestfs.pod:2682
39756 msgid ""
39757 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
39758 "documentation) are generated, and this makes it easy to extend the "
39759 "libguestfs API."
39760 msgstr ""
39761
39762 #. type: textblock
39763 #: ../src/guestfs.pod:2686
39764 msgid "To add a new API action there are two changes:"
39765 msgstr ""
39766
39767 #. type: textblock
39768 #: ../src/guestfs.pod:2692
39769 msgid ""
39770 "You need to add a description of the call (name, parameters, return type, "
39771 "tests, documentation) to C<generator/generator_actions.ml>."
39772 msgstr ""
39773
39774 #. type: textblock
39775 #: ../src/guestfs.pod:2695
39776 msgid ""
39777 "There are two sorts of API action, depending on whether the call goes "
39778 "through to the daemon in the appliance, or is serviced entirely by the "
39779 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
39780 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
39781 "an example of the latter, since a trace flag is maintained in the handle and "
39782 "all tracing is done on the library side."
39783 msgstr ""
39784
39785 #. type: textblock
39786 #: ../src/guestfs.pod:2703
39787 msgid ""
39788 "Most new actions are of the first type, and get added to the "
39789 "C<daemon_functions> list.  Each function has a unique procedure number used "
39790 "in the RPC protocol which is assigned to that action when we publish "
39791 "libguestfs and cannot be reused.  Take the latest procedure number and "
39792 "increment it."
39793 msgstr ""
39794
39795 #. type: textblock
39796 #: ../src/guestfs.pod:2709
39797 msgid ""
39798 "For library-only actions of the second type, add to the "
39799 "C<non_daemon_functions> list.  Since these functions are serviced by the "
39800 "library and do not travel over the RPC mechanism to the daemon, these "
39801 "functions do not need a procedure number, and so the procedure number is set "
39802 "to C<-1>."
39803 msgstr ""
39804
39805 #. type: textblock
39806 #: ../src/guestfs.pod:2717
39807 msgid "Implement the action (in C):"
39808 msgstr ""
39809
39810 #. type: textblock
39811 #: ../src/guestfs.pod:2719
39812 msgid ""
39813 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
39814 "C<daemon/> directory."
39815 msgstr ""
39816
39817 #. type: textblock
39818 #: ../src/guestfs.pod:2722
39819 msgid ""
39820 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
39821 "(note: double underscore) in the C<src/> directory."
39822 msgstr ""
39823
39824 #. type: textblock
39825 #: ../src/guestfs.pod:2725
39826 msgid "In either case, use another function as an example of what to do."
39827 msgstr ""
39828
39829 #. type: textblock
39830 #: ../src/guestfs.pod:2729
39831 msgid "After making these changes, use C<make> to compile."
39832 msgstr ""
39833
39834 #. type: textblock
39835 #: ../src/guestfs.pod:2731
39836 msgid ""
39837 "Note that you don't need to implement the RPC, language bindings, manual "
39838 "pages or anything else.  It's all automatically generated from the OCaml "
39839 "description."
39840 msgstr ""
39841
39842 #. type: =head2
39843 #: ../src/guestfs.pod:2735
39844 msgid "ADDING TESTS FOR AN API ACTION"
39845 msgstr ""
39846
39847 #. type: textblock
39848 #: ../src/guestfs.pod:2737
39849 msgid ""
39850 "You can supply zero or as many tests as you want per API call.  The tests "
39851 "can either be added as part of the API description "
39852 "(C<generator/generator_actions.ml>), or in some rarer cases you may want to "
39853 "drop a script into C<regressions/>.  Note that adding a script to "
39854 "C<regressions/> is slower, so if possible use the first method."
39855 msgstr ""
39856
39857 #. type: textblock
39858 #: ../src/guestfs.pod:2743
39859 msgid ""
39860 "The following describes the test environment used when you add an API test "
39861 "in C<generator_actions.ml>."
39862 msgstr ""
39863
39864 #. type: textblock
39865 #: ../src/guestfs.pod:2746
39866 msgid "The test environment has 4 block devices:"
39867 msgstr ""
39868
39869 #. type: =item
39870 #: ../src/guestfs.pod:2750
39871 msgid "C</dev/sda> 500MB"
39872 msgstr ""
39873
39874 #. type: textblock
39875 #: ../src/guestfs.pod:2752
39876 msgid "General block device for testing."
39877 msgstr ""
39878
39879 #. type: =item
39880 #: ../src/guestfs.pod:2754
39881 msgid "C</dev/sdb> 50MB"
39882 msgstr ""
39883
39884 #. type: textblock
39885 #: ../src/guestfs.pod:2756
39886 msgid ""
39887 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
39888 "operations."
39889 msgstr ""
39890
39891 #. type: =item
39892 #: ../src/guestfs.pod:2759
39893 msgid "C</dev/sdc> 10MB"
39894 msgstr ""
39895
39896 #. type: textblock
39897 #: ../src/guestfs.pod:2761
39898 msgid "Used in a few tests where two block devices are needed."
39899 msgstr ""
39900
39901 #. type: =item
39902 #: ../src/guestfs.pod:2763
39903 msgid "C</dev/sdd>"
39904 msgstr ""
39905
39906 #. type: textblock
39907 #: ../src/guestfs.pod:2765
39908 msgid "ISO with fixed content (see C<images/test.iso>)."
39909 msgstr ""
39910
39911 #. type: textblock
39912 #: ../src/guestfs.pod:2769
39913 msgid ""
39914 "To be able to run the tests in a reasonable amount of time, the libguestfs "
39915 "appliance and block devices are reused between tests.  So don't try testing "
39916 "L</guestfs_kill_subprocess> :-x"
39917 msgstr ""
39918
39919 #. type: textblock
39920 #: ../src/guestfs.pod:2773
39921 msgid ""
39922 "Each test starts with an initial scenario, selected using one of the "
39923 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
39924 "initialize the disks mentioned above in a particular way as documented in "
39925 "C<generator_types.ml>.  You should not assume anything about the previous "
39926 "contents of other disks that are not initialized."
39927 msgstr ""
39928
39929 #. type: textblock
39930 #: ../src/guestfs.pod:2779
39931 msgid ""
39932 "You can add a prerequisite clause to any individual test.  This is a "
39933 "run-time check, which, if it fails, causes the test to be skipped.  Useful "
39934 "if testing a command which might not work on all variations of libguestfs "
39935 "builds.  A test that has prerequisite of C<Always> means to run "
39936 "unconditionally."
39937 msgstr ""
39938
39939 #. type: textblock
39940 #: ../src/guestfs.pod:2785
39941 msgid ""
39942 "In addition, packagers can skip individual tests by setting environment "
39943 "variables before running C<make check>."
39944 msgstr ""
39945
39946 #. type: verbatim
39947 #: ../src/guestfs.pod:2788
39948 #, no-wrap
39949 msgid ""
39950 " SKIP_TEST_<CMD>_<NUM>=1\n"
39951 "\n"
39952 msgstr ""
39953
39954 #. type: textblock
39955 #: ../src/guestfs.pod:2790
39956 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
39957 msgstr ""
39958
39959 #. type: verbatim
39960 #: ../src/guestfs.pod:2794
39961 #, no-wrap
39962 msgid ""
39963 " SKIP_TEST_<CMD>=1\n"
39964 "\n"
39965 msgstr ""
39966
39967 #. type: textblock
39968 #: ../src/guestfs.pod:2796
39969 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
39970 msgstr ""
39971
39972 #. type: textblock
39973 #: ../src/guestfs.pod:2798
39974 msgid "Packagers can run only certain tests by setting for example:"
39975 msgstr ""
39976
39977 #. type: verbatim
39978 #: ../src/guestfs.pod:2800
39979 #, no-wrap
39980 msgid ""
39981 " TEST_ONLY=\"vfs_type zerofree\"\n"
39982 "\n"
39983 msgstr ""
39984
39985 #. type: textblock
39986 #: ../src/guestfs.pod:2802
39987 msgid ""
39988 "See C<capitests/tests.c> for more details of how these environment variables "
39989 "work."
39990 msgstr ""
39991
39992 #. type: =head2
39993 #: ../src/guestfs.pod:2805
39994 msgid "DEBUGGING NEW API ACTIONS"
39995 msgstr ""
39996
39997 #. type: textblock
39998 #: ../src/guestfs.pod:2807
39999 msgid "Test new actions work before submitting them."
40000 msgstr ""
40001
40002 #. type: textblock
40003 #: ../src/guestfs.pod:2809
40004 msgid "You can use guestfish to try out new commands."
40005 msgstr ""
40006
40007 #. type: textblock
40008 #: ../src/guestfs.pod:2811
40009 msgid ""
40010 "Debugging the daemon is a problem because it runs inside a minimal "
40011 "environment.  However you can fprintf messages in the daemon to stderr, and "
40012 "they will show up if you use C<guestfish -v>."
40013 msgstr ""
40014
40015 #. type: =head2
40016 #: ../src/guestfs.pod:2815
40017 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
40018 msgstr ""
40019
40020 #. type: textblock
40021 #: ../src/guestfs.pod:2817
40022 msgid ""
40023 "Our C source code generally adheres to some basic code-formatting "
40024 "conventions.  The existing code base is not totally consistent on this "
40025 "front, but we do prefer that contributed code be formatted similarly.  In "
40026 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
40027 "indentation level, and other than that, follow the K&R style."
40028 msgstr ""
40029
40030 #. type: textblock
40031 #: ../src/guestfs.pod:2823
40032 msgid ""
40033 "If you use Emacs, add the following to one of one of your start-up files "
40034 "(e.g., ~/.emacs), to help ensure that you get indentation right:"
40035 msgstr ""
40036
40037 #. type: verbatim
40038 #: ../src/guestfs.pod:2826
40039 #, no-wrap
40040 msgid ""
40041 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
40042 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
40043 " (add-hook 'find-file-hook\n"
40044 "     '(lambda () (if (and buffer-file-name\n"
40045 "                          (string-match \"/libguestfs\\\\>\"\n"
40046 "                              (buffer-file-name))\n"
40047 "                          (not (string-equal mode-name \"Change Log\"))\n"
40048 "                          (not (string-equal mode-name \"Makefile\")))\n"
40049 "                     (setq indent-tabs-mode nil))))\n"
40050 " \n"
40051 msgstr ""
40052
40053 #. type: verbatim
40054 #: ../src/guestfs.pod:2836
40055 #, no-wrap
40056 msgid ""
40057 " ;;; When editing C sources in libguestfs, use this style.\n"
40058 " (defun libguestfs-c-mode ()\n"
40059 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
40060 "   (interactive)\n"
40061 "   (c-set-style \"K&R\")\n"
40062 "   (setq c-indent-level 2)\n"
40063 "   (setq c-basic-offset 2))\n"
40064 " (add-hook 'c-mode-hook\n"
40065 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
40066 "                               (buffer-file-name))\n"
40067 "                           (libguestfs-c-mode))))\n"
40068 "\n"
40069 msgstr ""
40070
40071 #. type: textblock
40072 #: ../src/guestfs.pod:2848
40073 msgid "Enable warnings when compiling (and fix any problems this finds):"
40074 msgstr ""
40075
40076 #. type: verbatim
40077 #: ../src/guestfs.pod:2851
40078 #, no-wrap
40079 msgid ""
40080 " ./configure --enable-gcc-warnings\n"
40081 "\n"
40082 msgstr ""
40083
40084 #. type: textblock
40085 #: ../src/guestfs.pod:2853
40086 msgid "Useful targets are:"
40087 msgstr ""
40088
40089 #. type: verbatim
40090 #: ../src/guestfs.pod:2855
40091 #, no-wrap
40092 msgid ""
40093 " make syntax-check  # checks the syntax of the C code\n"
40094 " make check         # runs the test suite\n"
40095 "\n"
40096 msgstr ""
40097
40098 #. type: =head2
40099 #: ../src/guestfs.pod:2858
40100 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
40101 msgstr ""
40102
40103 #. type: textblock
40104 #: ../src/guestfs.pod:2860
40105 msgid ""
40106 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
40107 "which are used to do shell quoting."
40108 msgstr ""
40109
40110 #. type: =item
40111 #: ../src/guestfs.pod:2865
40112 msgid "%Q"
40113 msgstr ""
40114
40115 #. type: textblock
40116 #: ../src/guestfs.pod:2867
40117 msgid ""
40118 "Simple shell quoted string.  Any spaces or other shell characters are "
40119 "escaped for you."
40120 msgstr ""
40121
40122 #. type: =item
40123 #: ../src/guestfs.pod:2870
40124 msgid "%R"
40125 msgstr ""
40126
40127 #. type: textblock
40128 #: ../src/guestfs.pod:2872
40129 msgid ""
40130 "Same as C<%Q> except the string is treated as a path which is prefixed by "
40131 "the sysroot."
40132 msgstr ""
40133
40134 #. type: verbatim
40135 #: ../src/guestfs.pod:2879
40136 #, no-wrap
40137 msgid ""
40138 " asprintf (&cmd, \"cat %R\", path);\n"
40139 "\n"
40140 msgstr ""
40141
40142 #. type: textblock
40143 #: ../src/guestfs.pod:2881
40144 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
40145 msgstr ""
40146
40147 #. type: textblock
40148 #: ../src/guestfs.pod:2883
40149 msgid ""
40150 "I<Note:> Do I<not> use these when you are passing parameters to the "
40151 "C<command{,r,v,rv}()> functions.  These parameters do NOT need to be quoted "
40152 "because they are not passed via the shell (instead, straight to exec).  You "
40153 "probably want to use the C<sysroot_path()> function however."
40154 msgstr ""
40155
40156 #. type: =head2
40157 #: ../src/guestfs.pod:2889
40158 msgid "SUBMITTING YOUR NEW API ACTIONS"
40159 msgstr ""
40160
40161 #. type: textblock
40162 #: ../src/guestfs.pod:2891
40163 msgid ""
40164 "Submit patches to the mailing list: "
40165 "L<http://www.redhat.com/mailman/listinfo/libguestfs> and CC to "
40166 "L<rjones@redhat.com>."
40167 msgstr ""
40168
40169 #. type: =head2
40170 #: ../src/guestfs.pod:2895
40171 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
40172 msgstr ""
40173
40174 #. type: textblock
40175 #: ../src/guestfs.pod:2897
40176 msgid "We support i18n (gettext anyhow) in the library."
40177 msgstr ""
40178
40179 #. type: textblock
40180 #: ../src/guestfs.pod:2899
40181 msgid ""
40182 "However many messages come from the daemon, and we don't translate those at "
40183 "the moment.  One reason is that the appliance generally has all locale files "
40184 "removed from it, because they take up a lot of space.  So we'd have to readd "
40185 "some of those, as well as copying our PO files into the appliance."
40186 msgstr ""
40187
40188 #. type: textblock
40189 #: ../src/guestfs.pod:2905
40190 msgid ""
40191 "Debugging messages are never translated, since they are intended for the "
40192 "programmers."
40193 msgstr ""
40194
40195 #. type: =head2
40196 #: ../src/guestfs.pod:2908
40197 msgid "SOURCE CODE SUBDIRECTORIES"
40198 msgstr ""
40199
40200 #. type: =item
40201 #: ../src/guestfs.pod:2912
40202 msgid "C<align>"
40203 msgstr ""
40204
40205 #. type: textblock
40206 #: ../src/guestfs.pod:2914
40207 msgid "L<virt-alignment-scan(1)> command and documentation."
40208 msgstr ""
40209
40210 #. type: textblock
40211 #: ../src/guestfs.pod:2918
40212 msgid "The libguestfs appliance, build scripts and so on."
40213 msgstr ""
40214
40215 #. type: =item
40216 #: ../src/guestfs.pod:2920
40217 msgid "C<capitests>"
40218 msgstr ""
40219
40220 #. type: textblock
40221 #: ../src/guestfs.pod:2922
40222 msgid "Automated tests of the C API."
40223 msgstr ""
40224
40225 #. type: =item
40226 #: ../src/guestfs.pod:2924
40227 msgid "C<cat>"
40228 msgstr ""
40229
40230 #. type: textblock
40231 #: ../src/guestfs.pod:2926
40232 msgid ""
40233 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
40234 "documentation."
40235 msgstr ""
40236
40237 #. type: =item
40238 #: ../src/guestfs.pod:2929
40239 msgid "C<caution>"
40240 msgstr ""
40241
40242 #. type: textblock
40243 #: ../src/guestfs.pod:2931
40244 msgid ""
40245 "Safety and liveness tests of components that libguestfs depends upon (not of "
40246 "libguestfs itself).  Mainly this is for qemu and the kernel."
40247 msgstr ""
40248
40249 #. type: =item
40250 #: ../src/guestfs.pod:2934
40251 msgid "C<clone>"
40252 msgstr ""
40253
40254 #. type: textblock
40255 #: ../src/guestfs.pod:2936
40256 msgid ""
40257 "Tools for cloning virtual machines.  Currently contains L<virt-sysprep(1)> "
40258 "command and documentation."
40259 msgstr ""
40260
40261 #. type: =item
40262 #: ../src/guestfs.pod:2939
40263 msgid "C<contrib>"
40264 msgstr ""
40265
40266 #. type: textblock
40267 #: ../src/guestfs.pod:2941
40268 msgid "Outside contributions, experimental parts."
40269 msgstr ""
40270
40271 #. type: =item
40272 #: ../src/guestfs.pod:2943
40273 msgid "C<daemon>"
40274 msgstr ""
40275
40276 #. type: textblock
40277 #: ../src/guestfs.pod:2945
40278 msgid ""
40279 "The daemon that runs inside the libguestfs appliance and carries out "
40280 "actions."
40281 msgstr ""
40282
40283 #. type: =item
40284 #: ../src/guestfs.pod:2948
40285 msgid "C<df>"
40286 msgstr ""
40287
40288 #. type: textblock
40289 #: ../src/guestfs.pod:2950
40290 msgid "L<virt-df(1)> command and documentation."
40291 msgstr ""
40292
40293 #. type: =item
40294 #: ../src/guestfs.pod:2952
40295 msgid "C<edit>"
40296 msgstr ""
40297
40298 #. type: textblock
40299 #: ../src/guestfs.pod:2954
40300 msgid "L<virt-edit(1)> command and documentation."
40301 msgstr ""
40302
40303 #. type: =item
40304 #: ../src/guestfs.pod:2956
40305 msgid "C<examples>"
40306 msgstr ""
40307
40308 #. type: textblock
40309 #: ../src/guestfs.pod:2958
40310 msgid "C API example code."
40311 msgstr ""
40312
40313 #. type: =item
40314 #: ../src/guestfs.pod:2960
40315 msgid "C<extratests>"
40316 msgstr ""
40317
40318 #. type: textblock
40319 #: ../src/guestfs.pod:2962
40320 msgid ""
40321 "Extra tests.  These are not run by default because they require special "
40322 "tools or configuration."
40323 msgstr ""
40324
40325 #. type: =item
40326 #: ../src/guestfs.pod:2965
40327 msgid "C<fish>"
40328 msgstr ""
40329
40330 #. type: textblock
40331 #: ../src/guestfs.pod:2967
40332 msgid ""
40333 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
40334 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
40335 "L<virt-tar-out(1)>."
40336 msgstr ""
40337
40338 #. type: =item
40339 #: ../src/guestfs.pod:2971
40340 msgid "C<fuse>"
40341 msgstr ""
40342
40343 #. type: textblock
40344 #: ../src/guestfs.pod:2973
40345 msgid "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
40346 msgstr ""
40347
40348 #. type: =item
40349 #: ../src/guestfs.pod:2975
40350 msgid "C<generator>"
40351 msgstr ""
40352
40353 #. type: textblock
40354 #: ../src/guestfs.pod:2977
40355 msgid ""
40356 "The crucially important generator, used to automatically generate large "
40357 "amounts of boilerplate C code for things like RPC and bindings."
40358 msgstr ""
40359
40360 #. type: =item
40361 #: ../src/guestfs.pod:2980
40362 msgid "C<images>"
40363 msgstr ""
40364
40365 #. type: textblock
40366 #: ../src/guestfs.pod:2982
40367 msgid "Files used by the test suite."
40368 msgstr ""
40369
40370 #. type: textblock
40371 #: ../src/guestfs.pod:2984
40372 msgid "Some \"phony\" guest images which we test against."
40373 msgstr ""
40374
40375 #. type: =item
40376 #: ../src/guestfs.pod:2986
40377 msgid "C<inspector>"
40378 msgstr ""
40379
40380 #. type: textblock
40381 #: ../src/guestfs.pod:2988
40382 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
40383 msgstr ""
40384
40385 #. type: =item
40386 #: ../src/guestfs.pod:2990
40387 msgid "C<logo>"
40388 msgstr ""
40389
40390 #. type: textblock
40391 #: ../src/guestfs.pod:2992
40392 msgid "Logo used on the website.  The fish is called Arthur by the way."
40393 msgstr ""
40394
40395 #. type: =item
40396 #: ../src/guestfs.pod:2994
40397 msgid "C<m4>"
40398 msgstr ""
40399
40400 #. type: textblock
40401 #: ../src/guestfs.pod:2996
40402 msgid "M4 macros used by autoconf."
40403 msgstr ""
40404
40405 #. type: =item
40406 #: ../src/guestfs.pod:2998
40407 msgid "C<po>"
40408 msgstr ""
40409
40410 #. type: textblock
40411 #: ../src/guestfs.pod:3000
40412 msgid "Translations of simple gettext strings."
40413 msgstr ""
40414
40415 #. type: =item
40416 #: ../src/guestfs.pod:3002
40417 msgid "C<po-docs>"
40418 msgstr ""
40419
40420 #. type: textblock
40421 #: ../src/guestfs.pod:3004
40422 msgid ""
40423 "The build infrastructure and PO files for translations of manpages and POD "
40424 "files.  Eventually this will be combined with the C<po> directory, but that "
40425 "is rather complicated."
40426 msgstr ""
40427
40428 #. type: =item
40429 #: ../src/guestfs.pod:3008
40430 msgid "C<regressions>"
40431 msgstr ""
40432
40433 #. type: textblock
40434 #: ../src/guestfs.pod:3010
40435 msgid "Regression tests."
40436 msgstr ""
40437
40438 #. type: =item
40439 #: ../src/guestfs.pod:3012
40440 msgid "C<rescue>"
40441 msgstr ""
40442
40443 #. type: textblock
40444 #: ../src/guestfs.pod:3014
40445 msgid "L<virt-rescue(1)> command and documentation."
40446 msgstr ""
40447
40448 #. type: =item
40449 #: ../src/guestfs.pod:3016
40450 msgid "C<resize>"
40451 msgstr ""
40452
40453 #. type: textblock
40454 #: ../src/guestfs.pod:3018
40455 msgid "L<virt-resize(1)> command and documentation."
40456 msgstr ""
40457
40458 #. type: =item
40459 #: ../src/guestfs.pod:3020
40460 msgid "C<sparsify>"
40461 msgstr ""
40462
40463 #. type: textblock
40464 #: ../src/guestfs.pod:3022
40465 msgid "L<virt-sparsify(1)> command and documentation."
40466 msgstr ""
40467
40468 #. type: =item
40469 #: ../src/guestfs.pod:3024
40470 msgid "C<src>"
40471 msgstr ""
40472
40473 #. type: textblock
40474 #: ../src/guestfs.pod:3026
40475 msgid "Source code to the C library."
40476 msgstr ""
40477
40478 #. type: =item
40479 #: ../src/guestfs.pod:3028
40480 msgid "C<tools>"
40481 msgstr ""
40482
40483 #. type: textblock
40484 #: ../src/guestfs.pod:3030
40485 msgid "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
40486 msgstr ""
40487
40488 #. type: =item
40489 #: ../src/guestfs.pod:3032
40490 msgid "C<test-tool>"
40491 msgstr ""
40492
40493 #. type: textblock
40494 #: ../src/guestfs.pod:3034
40495 msgid ""
40496 "Test tool for end users to test if their qemu/kernel combination will work "
40497 "with libguestfs."
40498 msgstr ""
40499
40500 #. type: =item
40501 #: ../src/guestfs.pod:3037
40502 msgid "C<csharp>"
40503 msgstr ""
40504
40505 #. type: =item
40506 #: ../src/guestfs.pod:3039
40507 msgid "C<erlang>"
40508 msgstr ""
40509
40510 #. type: =item
40511 #: ../src/guestfs.pod:3041
40512 msgid "C<haskell>"
40513 msgstr ""
40514
40515 #. type: =item
40516 #: ../src/guestfs.pod:3043
40517 msgid "C<java>"
40518 msgstr ""
40519
40520 #. type: =item
40521 #: ../src/guestfs.pod:3045
40522 msgid "C<ocaml>"
40523 msgstr ""
40524
40525 #. type: =item
40526 #: ../src/guestfs.pod:3047
40527 msgid "C<php>"
40528 msgstr ""
40529
40530 #. type: =item
40531 #: ../src/guestfs.pod:3049
40532 msgid "C<perl>"
40533 msgstr ""
40534
40535 #. type: =item
40536 #: ../src/guestfs.pod:3051
40537 msgid "C<python>"
40538 msgstr ""
40539
40540 #. type: =item
40541 #: ../src/guestfs.pod:3053
40542 msgid "C<ruby>"
40543 msgstr ""
40544
40545 #. type: textblock
40546 #: ../src/guestfs.pod:3055
40547 msgid "Language bindings."
40548 msgstr ""
40549
40550 #. type: =head2
40551 #: ../src/guestfs.pod:3059
40552 msgid "MAKING A STABLE RELEASE"
40553 msgstr ""
40554
40555 #. type: textblock
40556 #: ../src/guestfs.pod:3061
40557 msgid ""
40558 "When we make a stable release, there are several steps documented here.  See "
40559 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
40560 "branch policy."
40561 msgstr ""
40562
40563 #. type: textblock
40564 #: ../src/guestfs.pod:3069
40565 msgid "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
40566 msgstr ""
40567
40568 #. type: textblock
40569 #: ../src/guestfs.pod:3074
40570 msgid "Finalize RELEASE-NOTES."
40571 msgstr ""
40572
40573 #. type: textblock
40574 #: ../src/guestfs.pod:3078
40575 msgid "Update ROADMAP."
40576 msgstr ""
40577
40578 #. type: textblock
40579 #: ../src/guestfs.pod:3082
40580 msgid "Run C<src/api-support/update-from-tarballs.sh>."
40581 msgstr ""
40582
40583 #. type: textblock
40584 #: ../src/guestfs.pod:3086
40585 msgid "Push and pull from Transifex."
40586 msgstr ""
40587
40588 #. type: verbatim
40589 #: ../src/guestfs.pod:3090
40590 #, no-wrap
40591 msgid ""
40592 " tx push -s\n"
40593 "\n"
40594 msgstr ""
40595
40596 #. type: textblock
40597 #: ../src/guestfs.pod:3092
40598 msgid "to push the latest POT files to Transifex.  Then run:"
40599 msgstr ""
40600
40601 #. type: verbatim
40602 #: ../src/guestfs.pod:3094
40603 #, no-wrap
40604 msgid ""
40605 " ./tx-pull.sh\n"
40606 "\n"
40607 msgstr ""
40608
40609 #. type: textblock
40610 #: ../src/guestfs.pod:3096
40611 msgid "which is a wrapper to pull the latest translated C<*.po> files."
40612 msgstr ""
40613
40614 #. type: textblock
40615 #: ../src/guestfs.pod:3100
40616 msgid ""
40617 "Create new stable and development directories under "
40618 "L<http://libguestfs.org/download>."
40619 msgstr ""
40620
40621 #. type: textblock
40622 #: ../src/guestfs.pod:3105
40623 msgid "Create the branch in git:"
40624 msgstr ""
40625
40626 #. type: verbatim
40627 #: ../src/guestfs.pod:3107
40628 #, no-wrap
40629 msgid ""
40630 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
40631 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
40632 " git branch stable-1.XX\n"
40633 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
40634 "\n"
40635 msgstr ""
40636
40637 #. type: =head1
40638 #: ../src/guestfs.pod:3114
40639 msgid "LIMITS"
40640 msgstr ""
40641
40642 #. type: =head2
40643 #: ../src/guestfs.pod:3116
40644 msgid "PROTOCOL LIMITS"
40645 msgstr ""
40646
40647 #. type: textblock
40648 #: ../src/guestfs.pod:3118
40649 msgid ""
40650 "Internally libguestfs uses a message-based protocol to pass API calls and "
40651 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
40652 "plenty more detail about this).  The maximum message size used by the "
40653 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
40654 "aware of this limit.  The API calls which may be affected are individually "
40655 "documented, with a link back to this section of the documentation."
40656 msgstr ""
40657
40658 #. type: textblock
40659 #: ../src/guestfs.pod:3126
40660 msgid ""
40661 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
40662 "a simple string.  Because this string is at some point internally encoded as "
40663 "a message, the maximum size that it can return is slightly under 4 MB.  If "
40664 "the requested file is larger than this then you will get an error."
40665 msgstr ""
40666
40667 #. type: textblock
40668 #: ../src/guestfs.pod:3132
40669 msgid ""
40670 "In order to transfer large files into and out of the guest filesystem, you "
40671 "need to use particular calls that support this.  The sections L</UPLOADING> "
40672 "and L</DOWNLOADING> document how to do this."
40673 msgstr ""
40674
40675 #. type: textblock
40676 #: ../src/guestfs.pod:3136
40677 msgid ""
40678 "You might also consider mounting the disk image using our FUSE filesystem "
40679 "support (L<guestmount(1)>)."
40680 msgstr ""
40681
40682 #. type: =head2
40683 #: ../src/guestfs.pod:3139
40684 msgid "MAXIMUM NUMBER OF DISKS"
40685 msgstr ""
40686
40687 #. type: textblock
40688 #: ../src/guestfs.pod:3141
40689 msgid "When using virtio disks (the default) the current limit is B<25> disks."
40690 msgstr ""
40691
40692 #. type: textblock
40693 #: ../src/guestfs.pod:3144
40694 msgid ""
40695 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
40696 "slots.  However febootstrap only understands disks with names C</dev/vda> "
40697 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
40698 "purposes."
40699 msgstr ""
40700
40701 #. type: textblock
40702 #: ../src/guestfs.pod:3149
40703 msgid ""
40704 "We are working to substantially raise this limit in future versions but it "
40705 "requires complex changes to qemu."
40706 msgstr ""
40707
40708 #. type: textblock
40709 #: ../src/guestfs.pod:3152
40710 msgid ""
40711 "In future versions of libguestfs it should also be possible to \"hot plug\" "
40712 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
40713 "requires changes to qemu."
40714 msgstr ""
40715
40716 #. type: =head2
40717 #: ../src/guestfs.pod:3156
40718 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
40719 msgstr ""
40720
40721 #. type: textblock
40722 #: ../src/guestfs.pod:3158
40723 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
40724 msgstr ""
40725
40726 #. type: textblock
40727 #: ../src/guestfs.pod:3160
40728 msgid ""
40729 "This is because it reserves 4 bits for the minor device number (thus "
40730 "C</dev/vda>, and C</dev/vda1> through C</dev/vda15>)."
40731 msgstr ""
40732
40733 #. type: textblock
40734 #: ../src/guestfs.pod:3163
40735 msgid ""
40736 "If you attach a disk with more than 15 partitions, the extra partitions are "
40737 "ignored by libguestfs."
40738 msgstr ""
40739
40740 #. type: =head2
40741 #: ../src/guestfs.pod:3166
40742 msgid "MAXIMUM SIZE OF A DISK"
40743 msgstr ""
40744
40745 #. type: textblock
40746 #: ../src/guestfs.pod:3168
40747 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
40748 msgstr ""
40749
40750 #. type: textblock
40751 #: ../src/guestfs.pod:3170
40752 msgid ""
40753 "We have tested block devices up to 1 exabyte (2**60 or "
40754 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
40755 "filesystem."
40756 msgstr ""
40757
40758 #. type: textblock
40759 #: ../src/guestfs.pod:3174
40760 msgid ""
40761 "Although libguestfs probably does not impose any limit, the underlying host "
40762 "storage will.  If you store disk images on a host ext4 filesystem, then the "
40763 "maximum size will be limited by the maximum ext4 file size (currently 16 "
40764 "TB).  If you store disk images as host logical volumes then you are limited "
40765 "by the maximum size of an LV."
40766 msgstr ""
40767
40768 #. type: textblock
40769 #: ../src/guestfs.pod:3180
40770 msgid ""
40771 "For the hugest disk image files, we recommend using XFS on the host for "
40772 "storage."
40773 msgstr ""
40774
40775 #. type: =head2
40776 #: ../src/guestfs.pod:3183
40777 msgid "MAXIMUM SIZE OF A PARTITION"
40778 msgstr ""
40779
40780 #. type: textblock
40781 #: ../src/guestfs.pod:3185
40782 msgid ""
40783 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
40784 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
40785 "address a partition located beyond 2 TB on the disk."
40786 msgstr ""
40787
40788 #. type: textblock
40789 #: ../src/guestfs.pod:3189
40790 msgid ""
40791 "It is recommended that you use GPT partitions on disks which are larger than "
40792 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
40793 "which are theoretically larger than the largest disk we could support."
40794 msgstr ""
40795
40796 #. type: =head2
40797 #: ../src/guestfs.pod:3194
40798 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
40799 msgstr ""
40800
40801 #. type: textblock
40802 #: ../src/guestfs.pod:3196
40803 msgid ""
40804 "This depends on the filesystem type.  libguestfs itself does not impose any "
40805 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
40806 "what these limits are."
40807 msgstr ""
40808
40809 #. type: =head2
40810 #: ../src/guestfs.pod:3200
40811 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
40812 msgstr ""
40813
40814 #. type: textblock
40815 #: ../src/guestfs.pod:3202
40816 msgid ""
40817 "The API functions L</guestfs_upload>, L</guestfs_download>, "
40818 "L</guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
40819 "uploads and downloads."
40820 msgstr ""
40821
40822 #. type: =head2
40823 #: ../src/guestfs.pod:3206
40824 msgid "INSPECTION LIMITS"
40825 msgstr ""
40826
40827 #. type: textblock
40828 #: ../src/guestfs.pod:3208
40829 msgid ""
40830 "The inspection code has several arbitrary limits on things like the size of "
40831 "Windows Registry hive it will read, and the length of product name.  These "
40832 "are intended to stop a malicious guest from consuming arbitrary amounts of "
40833 "memory and disk space on the host, and should not be reached in practice.  "
40834 "See the source code for more information."
40835 msgstr ""
40836
40837 #. type: textblock
40838 #: ../src/guestfs.pod:3234
40839 msgid ""
40840 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
40841 "effect as calling C<guestfs_set_verbose (g, 1)>."
40842 msgstr ""
40843
40844 #. type: textblock
40845 #: ../src/guestfs.pod:3246
40846 msgid ""
40847 "Set the path that libguestfs uses to search for a supermin appliance.  See "
40848 "the discussion of paths in section L</PATH> above."
40849 msgstr ""
40850
40851 #. type: textblock
40852 #: ../src/guestfs.pod:3255
40853 msgid "See also L</QEMU WRAPPERS> above."
40854 msgstr ""
40855
40856 #. type: textblock
40857 #: ../src/guestfs.pod:3259
40858 msgid ""
40859 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
40860 "effect as calling C<guestfs_set_trace (g, 1)>."
40861 msgstr ""
40862
40863 #. type: textblock
40864 #: ../src/guestfs.pod:3277
40865 msgid ""
40866 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, "
40867 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
40868 "L<guestfs-ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, "
40869 "L<virt-alignment-scan(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, "
40870 "L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, "
40871 "L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
40872 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
40873 "L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, "
40874 "L<virt-sysprep(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
40875 "L<virt-win-reg(1)>, L<guestfs-testing(1)>, L<qemu(1)>, L<febootstrap(1)>, "
40876 "L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<stap(1)>, "
40877 "L<http://libguestfs.org/>."
40878 msgstr ""
40879
40880 #. type: textblock
40881 #: ../src/guestfs.pod:3314
40882 msgid ""
40883 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, "
40884 "L<lvm(8)>, L<disktype(1)>."
40885 msgstr ""
40886
40887 #. type: =head1
40888 #: ../src/guestfs.pod:3321 ../tools/virt-make-fs.pl:571 ../tools/virt-win-reg.pl:772
40889 msgid "BUGS"
40890 msgstr ""
40891
40892 #. type: textblock
40893 #: ../src/guestfs.pod:3323
40894 msgid "To get a list of bugs against libguestfs use this link:"
40895 msgstr ""
40896
40897 #. type: textblock
40898 #: ../src/guestfs.pod:3325
40899 msgid "L<https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools>"
40900 msgstr ""
40901
40902 #. type: textblock
40903 #: ../src/guestfs.pod:3327
40904 msgid "To report a new bug against libguestfs use this link:"
40905 msgstr ""
40906
40907 #. type: textblock
40908 #: ../src/guestfs.pod:3329
40909 msgid "L<https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools>"
40910 msgstr ""
40911
40912 #. type: textblock
40913 #: ../src/guestfs.pod:3331
40914 msgid "When reporting a bug, please check:"
40915 msgstr ""
40916
40917 #. type: textblock
40918 #: ../src/guestfs.pod:3337
40919 msgid "That the bug hasn't been reported already."
40920 msgstr ""
40921
40922 #. type: textblock
40923 #: ../src/guestfs.pod:3341
40924 msgid "That you are testing a recent version."
40925 msgstr ""
40926
40927 #. type: textblock
40928 #: ../src/guestfs.pod:3345
40929 msgid "Describe the bug accurately, and give a way to reproduce it."
40930 msgstr ""
40931
40932 #. type: textblock
40933 #: ../src/guestfs.pod:3349
40934 msgid ""
40935 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
40936 "bug report."
40937 msgstr ""
40938
40939 #. type: textblock
40940 #: ../test-tool/libguestfs-test-tool.pod:5
40941 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
40942 msgstr ""
40943
40944 #. type: verbatim
40945 #: ../test-tool/libguestfs-test-tool.pod:9
40946 #, no-wrap
40947 msgid ""
40948 " libguestfs-test-tool [--options]\n"
40949 "\n"
40950 msgstr ""
40951
40952 #. type: textblock
40953 #: ../test-tool/libguestfs-test-tool.pod:13
40954 msgid ""
40955 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
40956 "to check basic libguestfs functionality is working.  This is needed because "
40957 "libguestfs occasionally breaks for reasons beyond our control: usually "
40958 "because of changes in the underlying qemu or kernel packages, or the host "
40959 "environment."
40960 msgstr ""
40961
40962 #. type: textblock
40963 #: ../test-tool/libguestfs-test-tool.pod:19
40964 msgid "If you suspect a problem in libguestfs, then just run:"
40965 msgstr ""
40966
40967 #. type: verbatim
40968 #: ../test-tool/libguestfs-test-tool.pod:21
40969 #, no-wrap
40970 msgid ""
40971 " libguestfs-test-tool\n"
40972 "\n"
40973 msgstr ""
40974
40975 #. type: textblock
40976 #: ../test-tool/libguestfs-test-tool.pod:23
40977 msgid "It will print lots of diagnostic messages."
40978 msgstr ""
40979
40980 #. type: textblock
40981 #: ../test-tool/libguestfs-test-tool.pod:25
40982 msgid "If it runs to completion successfully, you will see this near the end:"
40983 msgstr ""
40984
40985 #. type: verbatim
40986 #: ../test-tool/libguestfs-test-tool.pod:27
40987 #, no-wrap
40988 msgid ""
40989 " ===== TEST FINISHED OK =====\n"
40990 "\n"
40991 msgstr ""
40992
40993 #. type: textblock
40994 #: ../test-tool/libguestfs-test-tool.pod:29
40995 msgid "and the test tool will exit with code 0."
40996 msgstr ""
40997
40998 #. type: textblock
40999 #: ../test-tool/libguestfs-test-tool.pod:31
41000 msgid ""
41001 "If it fails (and/or exits with non-zero error code), please paste the "
41002 "I<complete, unedited> output of the test tool into a bug report.  More "
41003 "information about reporting bugs can be found on the "
41004 "L<http://libguestfs.org/> website."
41005 msgstr ""
41006
41007 #. type: textblock
41008 #: ../test-tool/libguestfs-test-tool.pod:42
41009 msgid "Display short usage information and exit."
41010 msgstr ""
41011
41012 #. type: =item
41013 #: ../test-tool/libguestfs-test-tool.pod:44
41014 msgid "B<--qemu qemu_binary>"
41015 msgstr ""
41016
41017 #. type: textblock
41018 #: ../test-tool/libguestfs-test-tool.pod:46
41019 msgid ""
41020 "If you have downloaded another qemu binary, point this option at the full "
41021 "path of the binary to try it."
41022 msgstr ""
41023
41024 #. type: =item
41025 #: ../test-tool/libguestfs-test-tool.pod:49
41026 msgid "B<--qemudir qemu_source_dir>"
41027 msgstr ""
41028
41029 #. type: textblock
41030 #: ../test-tool/libguestfs-test-tool.pod:51
41031 msgid ""
41032 "If you have compiled qemu from source, point this option at the source "
41033 "directory to try it."
41034 msgstr ""
41035
41036 #. type: =item
41037 #: ../test-tool/libguestfs-test-tool.pod:54
41038 msgid "B<-t N>"
41039 msgstr ""
41040
41041 #. type: =item
41042 #: ../test-tool/libguestfs-test-tool.pod:56
41043 msgid "B<--timeout N>"
41044 msgstr ""
41045
41046 #. type: textblock
41047 #: ../test-tool/libguestfs-test-tool.pod:58
41048 msgid ""
41049 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
41050 "minutes) which does not usually need to be adjusted."
41051 msgstr ""
41052
41053 #. type: =head1
41054 #: ../test-tool/libguestfs-test-tool.pod:63
41055 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
41056 msgstr ""
41057
41058 #. type: textblock
41059 #: ../test-tool/libguestfs-test-tool.pod:65
41060 msgid ""
41061 "If you have compiled another version of qemu from source and would like to "
41062 "try that, then you can use the I<--qemudir> option to point to the qemu "
41063 "source directory."
41064 msgstr ""
41065
41066 #. type: textblock
41067 #: ../test-tool/libguestfs-test-tool.pod:69
41068 msgid ""
41069 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
41070 "option to point to the binary."
41071 msgstr ""
41072
41073 #. type: textblock
41074 #: ../test-tool/libguestfs-test-tool.pod:72
41075 msgid ""
41076 "Note when using these options, you can ignore the business of qemu wrapper "
41077 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
41078 "wrapper script for you if one is needed."
41079 msgstr ""
41080
41081 #. type: =head1
41082 #: ../test-tool/libguestfs-test-tool.pod:76
41083 msgid "TRYING OUT A DIFFERENT KERNEL"
41084 msgstr ""
41085
41086 #. type: textblock
41087 #: ../test-tool/libguestfs-test-tool.pod:78
41088 msgid ""
41089 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
41090 "libguestfs tries.  You do this by setting the environment variables "
41091 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
41092 msgstr ""
41093
41094 #. type: textblock
41095 #: ../test-tool/libguestfs-test-tool.pod:82
41096 msgid ""
41097 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
41098 "information."
41099 msgstr ""
41100
41101 #. type: =head1
41102 #: ../test-tool/libguestfs-test-tool.pod:85
41103 msgid "SELF-DIAGNOSIS"
41104 msgstr ""
41105
41106 #. type: textblock
41107 #: ../test-tool/libguestfs-test-tool.pod:87
41108 msgid ""
41109 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
41110 "produced by libguestfs-test-tool and/or possible errors."
41111 msgstr ""
41112
41113 #. type: textblock
41114 #: ../test-tool/libguestfs-test-tool.pod:92
41115 msgid ""
41116 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
41117 "I<1> if there was an error."
41118 msgstr ""
41119
41120 #. type: textblock
41121 #: ../test-tool/libguestfs-test-tool.pod:97
41122 msgid ""
41123 "For the full list of environment variables which may affect libguestfs, "
41124 "please see the L<guestfs(3)> manual page."
41125 msgstr ""
41126
41127 #. type: textblock
41128 #: ../test-tool/libguestfs-test-tool.pod:102
41129 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
41130 msgstr ""
41131
41132 #. type: textblock
41133 #: ../tools/virt-list-filesystems.pl:32
41134 msgid "virt-list-filesystems - List filesystems in a virtual machine or disk image"
41135 msgstr ""
41136
41137 #. type: verbatim
41138 #: ../tools/virt-list-filesystems.pl:36
41139 #, no-wrap
41140 msgid ""
41141 " virt-list-filesystems [--options] domname\n"
41142 "\n"
41143 msgstr ""
41144
41145 #. type: verbatim
41146 #: ../tools/virt-list-filesystems.pl:38
41147 #, no-wrap
41148 msgid ""
41149 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
41150 "\n"
41151 msgstr ""
41152
41153 #. type: textblock
41154 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
41155 msgid ""
41156 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
41157 "replacement."
41158 msgstr ""
41159
41160 #. type: textblock
41161 #: ../tools/virt-list-filesystems.pl:45
41162 msgid ""
41163 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
41164 "are contained in a virtual machine or disk image."
41165 msgstr ""
41166
41167 #. type: textblock
41168 #: ../tools/virt-list-filesystems.pl:49
41169 msgid ""
41170 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
41171 "functionality.  For more complex cases you should look at the "
41172 "L<guestfish(1)> tool."
41173 msgstr ""
41174
41175 #. type: textblock
41176 #: ../tools/virt-list-filesystems.pl:112
41177 msgid ""
41178 "With this option, C<virt-list-filesystems> displays the type of each "
41179 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
41180 msgstr ""
41181
41182 #. type: =item
41183 #: ../tools/virt-list-filesystems.pl:119
41184 msgid "B<-a>"
41185 msgstr ""
41186
41187 #. type: textblock
41188 #: ../tools/virt-list-filesystems.pl:123
41189 msgid ""
41190 "Normally we only show mountable filesystems.  If this option is given then "
41191 "swap devices are shown too."
41192 msgstr ""
41193
41194 #. type: textblock
41195 #: ../tools/virt-list-filesystems.pl:197
41196 msgid ""
41197 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
41198 "L<virt-filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, "
41199 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41200 msgstr ""
41201
41202 #. type: textblock
41203 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
41204 msgid "Copyright (C) 2009 Red Hat Inc."
41205 msgstr ""
41206
41207 #. type: textblock
41208 #: ../tools/virt-list-partitions.pl:32
41209 msgid "virt-list-partitions - List partitions in a virtual machine or disk image"
41210 msgstr ""
41211
41212 #. type: verbatim
41213 #: ../tools/virt-list-partitions.pl:36
41214 #, no-wrap
41215 msgid ""
41216 " virt-list-partitions [--options] domname\n"
41217 "\n"
41218 msgstr ""
41219
41220 #. type: verbatim
41221 #: ../tools/virt-list-partitions.pl:38
41222 #, no-wrap
41223 msgid ""
41224 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
41225 "\n"
41226 msgstr ""
41227
41228 #. type: textblock
41229 #: ../tools/virt-list-partitions.pl:45
41230 msgid ""
41231 "C<virt-list-partitions> is a command line tool to list the partitions that "
41232 "are contained in a virtual machine or disk image.  It is mainly useful as a "
41233 "first step to using L<virt-resize(1)>."
41234 msgstr ""
41235
41236 #. type: textblock
41237 #: ../tools/virt-list-partitions.pl:50
41238 msgid ""
41239 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
41240 "functionality.  For more complex cases you should look at the "
41241 "L<guestfish(1)> tool."
41242 msgstr ""
41243
41244 #. type: textblock
41245 #: ../tools/virt-list-partitions.pl:113
41246 msgid "Show sizes in human-readable form (eg. \"1G\")."
41247 msgstr ""
41248
41249 #. type: textblock
41250 #: ../tools/virt-list-partitions.pl:123
41251 msgid ""
41252 "With this option, C<virt-list-partitions> displays the type and size of each "
41253 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
41254 msgstr ""
41255
41256 #. type: =item
41257 #: ../tools/virt-list-partitions.pl:130
41258 msgid "B<-t>"
41259 msgstr ""
41260
41261 #. type: =item
41262 #: ../tools/virt-list-partitions.pl:132
41263 msgid "B<--total>"
41264 msgstr ""
41265
41266 #. type: textblock
41267 #: ../tools/virt-list-partitions.pl:134
41268 msgid "Display the total size of each block device (as a separate row or rows)."
41269 msgstr ""
41270
41271 #. type: textblock
41272 #: ../tools/virt-list-partitions.pl:267
41273 msgid ""
41274 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, "
41275 "L<virt-list-filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, "
41276 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41277 msgstr ""
41278
41279 #. type: textblock
41280 #: ../tools/virt-list-partitions.pl:283
41281 msgid "Copyright (C) 2009-2010 Red Hat Inc."
41282 msgstr ""
41283
41284 #. type: textblock
41285 #: ../tools/virt-make-fs.pl:37
41286 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
41287 msgstr ""
41288
41289 #. type: verbatim
41290 #: ../tools/virt-make-fs.pl:41
41291 #, no-wrap
41292 msgid ""
41293 " virt-make-fs [--options] input.tar output.img\n"
41294 "\n"
41295 msgstr ""
41296
41297 #. type: verbatim
41298 #: ../tools/virt-make-fs.pl:43
41299 #, no-wrap
41300 msgid ""
41301 " virt-make-fs [--options] input.tar.gz output.img\n"
41302 "\n"
41303 msgstr ""
41304
41305 #. type: verbatim
41306 #: ../tools/virt-make-fs.pl:45
41307 #, no-wrap
41308 msgid ""
41309 " virt-make-fs [--options] directory output.img\n"
41310 "\n"
41311 msgstr ""
41312
41313 #. type: textblock
41314 #: ../tools/virt-make-fs.pl:49
41315 msgid ""
41316 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
41317 "archive or some files in a directory.  It is similar to tools like "
41318 "L<mkisofs(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, "
41319 "it can create common filesystem types like ext2/3 or NTFS, which can be "
41320 "useful if you want to attach these filesystems to existing virtual machines "
41321 "(eg. to import large amounts of read-only data to a VM)."
41322 msgstr ""
41323
41324 #. type: textblock
41325 #: ../tools/virt-make-fs.pl:57
41326 msgid "Basic usage is:"
41327 msgstr ""
41328
41329 #. type: verbatim
41330 #: ../tools/virt-make-fs.pl:59
41331 #, no-wrap
41332 msgid ""
41333 " virt-make-fs input output.img\n"
41334 "\n"
41335 msgstr ""
41336
41337 #. type: textblock
41338 #: ../tools/virt-make-fs.pl:61
41339 msgid ""
41340 "where C<input> is either a directory containing files that you want to add, "
41341 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
41342 "C<output.img> is a disk image.  The input type is detected automatically.  "
41343 "The output disk image defaults to a raw ext2 sparse image unless you specify "
41344 "extra flags (see L</OPTIONS> below)."
41345 msgstr ""
41346
41347 #. type: =head2
41348 #: ../tools/virt-make-fs.pl:67
41349 msgid "FILESYSTEM TYPE"
41350 msgstr ""
41351
41352 #. type: textblock
41353 #: ../tools/virt-make-fs.pl:69
41354 msgid ""
41355 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
41356 "libguestfs supports can be used (but I<not> read-only formats like "
41357 "ISO9660).  Here are some of the more common choices:"
41358 msgstr ""
41359
41360 #. type: =item
41361 #: ../tools/virt-make-fs.pl:75
41362 msgid "I<ext3>"
41363 msgstr ""
41364
41365 #. type: textblock
41366 #: ../tools/virt-make-fs.pl:77
41367 msgid ""
41368 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
41369 "you are not going to use the filesystem in a way that requires the journal, "
41370 "then this is just wasted overhead."
41371 msgstr ""
41372
41373 #. type: =item
41374 #: ../tools/virt-make-fs.pl:81
41375 msgid "I<ntfs> or I<vfat>"
41376 msgstr ""
41377
41378 #. type: textblock
41379 #: ../tools/virt-make-fs.pl:83
41380 msgid "Useful if exporting data to a Windows guest."
41381 msgstr ""
41382
41383 #. type: textblock
41384 #: ../tools/virt-make-fs.pl:85
41385 msgid ""
41386 "I<Note for vfat>: The tar archive or local directory must only contain files "
41387 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
41388 "program running within libguestfs is unable to change the ownership of "
41389 "non-root files, since vfat itself does not support this."
41390 msgstr ""
41391
41392 #. type: =item
41393 #: ../tools/virt-make-fs.pl:90
41394 msgid "I<minix>"
41395 msgstr ""
41396
41397 #. type: textblock
41398 #: ../tools/virt-make-fs.pl:92
41399 msgid ""
41400 "Lower overhead than C<ext2>, but certain limitations on filename length and "
41401 "total filesystem size."
41402 msgstr ""
41403
41404 #. type: =head3
41405 #: ../tools/virt-make-fs.pl:97 ../tools/virt-make-fs.pl:116 ../tools/virt-make-fs.pl:149
41406 msgid "EXAMPLE"
41407 msgstr ""
41408
41409 #. type: verbatim
41410 #: ../tools/virt-make-fs.pl:99
41411 #, no-wrap
41412 msgid ""
41413 " virt-make-fs --type=minix input minixfs.img\n"
41414 "\n"
41415 msgstr ""
41416
41417 #. type: =head2
41418 #: ../tools/virt-make-fs.pl:101
41419 msgid "TO PARTITION OR NOT TO PARTITION"
41420 msgstr ""
41421
41422 #. type: textblock
41423 #: ../tools/virt-make-fs.pl:103
41424 msgid "Optionally virt-make-fs can add a partition table to the output disk."
41425 msgstr ""
41426
41427 #. type: textblock
41428 #: ../tools/virt-make-fs.pl:105
41429 msgid ""
41430 "Adding a partition can make the disk image more compatible with certain "
41431 "virtualized operating systems which don't expect to see a filesystem "
41432 "directly located on a block device (Linux doesn't care and will happily "
41433 "handle both types)."
41434 msgstr ""
41435
41436 #. type: textblock
41437 #: ../tools/virt-make-fs.pl:110
41438 msgid ""
41439 "On the other hand, if you have a partition table then the output image is no "
41440 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
41441 "directly on a partitioned disk image.  (However libguestfs tools such as "
41442 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
41443 msgstr ""
41444
41445 #. type: textblock
41446 #: ../tools/virt-make-fs.pl:118
41447 msgid "Add an MBR partition:"
41448 msgstr ""
41449
41450 #. type: verbatim
41451 #: ../tools/virt-make-fs.pl:120
41452 #, no-wrap
41453 msgid ""
41454 " virt-make-fs --partition -- input disk.img\n"
41455 "\n"
41456 msgstr ""
41457
41458 #. type: textblock
41459 #: ../tools/virt-make-fs.pl:122
41460 msgid ""
41461 "If the output disk image could be terabyte-sized or larger, it's better to "
41462 "use an EFI/GPT-compatible partition table:"
41463 msgstr ""
41464
41465 #. type: verbatim
41466 #: ../tools/virt-make-fs.pl:125
41467 #, no-wrap
41468 msgid ""
41469 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
41470 "\n"
41471 msgstr ""
41472
41473 #. type: =head2
41474 #: ../tools/virt-make-fs.pl:127
41475 msgid "EXTRA SPACE"
41476 msgstr ""
41477
41478 #. type: textblock
41479 #: ../tools/virt-make-fs.pl:129
41480 msgid ""
41481 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
41482 "the files that it contains, but might have extra space.  Depending on how "
41483 "you are going to use the output, you might think this extra space is wasted "
41484 "and want to minimize it, or you might want to leave space so that more files "
41485 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
41486 "but you can use the I<--size> flag to leave space in the filesystem if you "
41487 "want it."
41488 msgstr ""
41489
41490 #. type: textblock
41491 #: ../tools/virt-make-fs.pl:137
41492 msgid ""
41493 "An alternative way to leave extra space but not make the output image any "
41494 "bigger is to use an alternative disk image format (instead of the default "
41495 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
41496 "image format (check your hypervisor supports this before using it).  This "
41497 "allows you to choose a large I<--size> but the extra space won't actually be "
41498 "allocated in the image until you try to store something in it."
41499 msgstr ""
41500
41501 #. type: textblock
41502 #: ../tools/virt-make-fs.pl:145
41503 msgid ""
41504 "Don't forget that you can also use local commands including L<resize2fs(8)> "
41505 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
41506 "to build another image from scratch."
41507 msgstr ""
41508
41509 #. type: verbatim
41510 #: ../tools/virt-make-fs.pl:151
41511 #, no-wrap
41512 msgid ""
41513 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
41514 "\n"
41515 msgstr ""
41516
41517 #. type: textblock
41518 #: ../tools/virt-make-fs.pl:179
41519 msgid "Enable debugging information."
41520 msgstr ""
41521
41522 #. type: =item
41523 #: ../tools/virt-make-fs.pl:185
41524 msgid "B<--size=E<lt>NE<gt>>"
41525 msgstr ""
41526
41527 #. type: =item
41528 #: ../tools/virt-make-fs.pl:187
41529 msgid "B<--size=+E<lt>NE<gt>>"
41530 msgstr ""
41531
41532 #. type: =item
41533 #: ../tools/virt-make-fs.pl:189
41534 msgid "B<-s E<lt>NE<gt>>"
41535 msgstr ""
41536
41537 #. type: =item
41538 #: ../tools/virt-make-fs.pl:191
41539 msgid "B<-s +E<lt>NE<gt>>"
41540 msgstr ""
41541
41542 #. type: textblock
41543 #: ../tools/virt-make-fs.pl:193
41544 msgid "Use the I<--size> (or I<-s>) option to choose the size of the output image."
41545 msgstr ""
41546
41547 #. type: textblock
41548 #: ../tools/virt-make-fs.pl:196
41549 msgid ""
41550 "If this option is I<not> given, then the output image will be just large "
41551 "enough to contain all the files, with not much wasted space."
41552 msgstr ""
41553
41554 #. type: textblock
41555 #: ../tools/virt-make-fs.pl:199
41556 msgid ""
41557 "To choose a fixed size output disk, specify an absolute number followed by "
41558 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
41559 "Petabytes or Exabytes.  This must be large enough to contain all the input "
41560 "files, else you will get an error."
41561 msgstr ""
41562
41563 #. type: textblock
41564 #: ../tools/virt-make-fs.pl:204
41565 msgid ""
41566 "To leave extra space, specify C<+> (plus sign) and a number followed by "
41567 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
41568 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
41569 "the input files, and (approximately) an extra 200 MB free space."
41570 msgstr ""
41571
41572 #. type: textblock
41573 #: ../tools/virt-make-fs.pl:210
41574 msgid ""
41575 "Note that virt-make-fs estimates free space, and therefore will not produce "
41576 "filesystems containing precisely the free space requested.  (It is much more "
41577 "expensive and time-consuming to produce a filesystem which has precisely the "
41578 "desired free space)."
41579 msgstr ""
41580
41581 #. type: =item
41582 #: ../tools/virt-make-fs.pl:219
41583 msgid "B<--format=E<lt>fmtE<gt>>"
41584 msgstr ""
41585
41586 #. type: =item
41587 #: ../tools/virt-make-fs.pl:221
41588 msgid "B<-F E<lt>fmtE<gt>>"
41589 msgstr ""
41590
41591 #. type: textblock
41592 #: ../tools/virt-make-fs.pl:223
41593 msgid "Choose the output disk image format."
41594 msgstr ""
41595
41596 #. type: textblock
41597 #: ../tools/virt-make-fs.pl:225
41598 msgid "The default is C<raw> (raw sparse disk image)."
41599 msgstr ""
41600
41601 #. type: textblock
41602 #: ../tools/virt-make-fs.pl:227
41603 msgid ""
41604 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
41605 "that would really make sense here is C<qcow2>."
41606 msgstr ""
41607
41608 #. type: =item
41609 #: ../tools/virt-make-fs.pl:234
41610 msgid "B<--type=E<lt>fsE<gt>>"
41611 msgstr ""
41612
41613 #. type: =item
41614 #: ../tools/virt-make-fs.pl:236
41615 msgid "B<-t E<lt>fsE<gt>>"
41616 msgstr ""
41617
41618 #. type: textblock
41619 #: ../tools/virt-make-fs.pl:238
41620 msgid "Choose the output filesystem type."
41621 msgstr ""
41622
41623 #. type: textblock
41624 #: ../tools/virt-make-fs.pl:240
41625 msgid "The default is C<ext2>."
41626 msgstr ""
41627
41628 #. type: textblock
41629 #: ../tools/virt-make-fs.pl:242
41630 msgid "Any filesystem which is supported read-write by libguestfs can be used here."
41631 msgstr ""
41632
41633 #. type: =item
41634 #: ../tools/virt-make-fs.pl:249
41635 msgid "B<--partition>"
41636 msgstr ""
41637
41638 #. type: =item
41639 #: ../tools/virt-make-fs.pl:251
41640 msgid "B<--partition=E<lt>parttypeE<gt>>"
41641 msgstr ""
41642
41643 #. type: textblock
41644 #: ../tools/virt-make-fs.pl:253
41645 msgid ""
41646 "If specified, this flag adds an MBR partition table to the output disk "
41647 "image."
41648 msgstr ""
41649
41650 #. type: textblock
41651 #: ../tools/virt-make-fs.pl:256
41652 msgid ""
41653 "You can change the partition table type, eg. I<--partition=gpt> for large "
41654 "disks."
41655 msgstr ""
41656
41657 #. type: textblock
41658 #: ../tools/virt-make-fs.pl:259
41659 msgid ""
41660 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
41661 "might consider the next parameter to be the partition type.  For example:"
41662 msgstr ""
41663
41664 #. type: verbatim
41665 #: ../tools/virt-make-fs.pl:263
41666 #, no-wrap
41667 msgid ""
41668 " virt-make-fs --partition input.tar output.img\n"
41669 "\n"
41670 msgstr ""
41671
41672 #. type: textblock
41673 #: ../tools/virt-make-fs.pl:265
41674 msgid ""
41675 "would cause virt-make-fs to think you wanted to use a partition type of "
41676 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
41677 "dash) between options and the input and output arguments:"
41678 msgstr ""
41679
41680 #. type: verbatim
41681 #: ../tools/virt-make-fs.pl:269
41682 #, no-wrap
41683 msgid ""
41684 " virt-make-fs --partition -- input.tar output.img\n"
41685 "\n"
41686 msgstr ""
41687
41688 #. type: textblock
41689 #: ../tools/virt-make-fs.pl:271
41690 msgid "For MBR, virt-make-fs sets the partition type byte automatically."
41691 msgstr ""
41692
41693 #. type: textblock
41694 #: ../tools/virt-make-fs.pl:559
41695 msgid ""
41696 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
41697 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
41698 "L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
41699 msgstr ""
41700
41701 #. type: textblock
41702 #: ../tools/virt-make-fs.pl:573 ../tools/virt-win-reg.pl:774
41703 msgid ""
41704 "When reporting bugs, please enable debugging and capture the I<complete> "
41705 "output:"
41706 msgstr ""
41707
41708 #. type: verbatim
41709 #: ../tools/virt-make-fs.pl:576
41710 #, no-wrap
41711 msgid ""
41712 " export LIBGUESTFS_DEBUG=1\n"
41713 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
41714 "\n"
41715 msgstr ""
41716
41717 #. type: textblock
41718 #: ../tools/virt-make-fs.pl:579
41719 msgid ""
41720 "Attach /tmp/virt-make-fs.log to a new bug report at "
41721 "L<https://bugzilla.redhat.com/>"
41722 msgstr ""
41723
41724 #. type: textblock
41725 #: ../tools/virt-tar.pl:33
41726 msgid "virt-tar - Extract or upload files to a virtual machine"
41727 msgstr ""
41728
41729 #. type: verbatim
41730 #: ../tools/virt-tar.pl:37
41731 #, no-wrap
41732 msgid ""
41733 " virt-tar [--options] -x domname directory tarball\n"
41734 "\n"
41735 msgstr ""
41736
41737 #. type: verbatim
41738 #: ../tools/virt-tar.pl:39
41739 #, no-wrap
41740 msgid ""
41741 " virt-tar [--options] -u domname tarball directory\n"
41742 "\n"
41743 msgstr ""
41744
41745 #. type: verbatim
41746 #: ../tools/virt-tar.pl:41
41747 #, no-wrap
41748 msgid ""
41749 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
41750 "\n"
41751 msgstr ""
41752
41753 #. type: verbatim
41754 #: ../tools/virt-tar.pl:43
41755 #, no-wrap
41756 msgid ""
41757 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
41758 "\n"
41759 msgstr ""
41760
41761 #. type: =head2
41762 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
41763 msgid "NOTE"
41764 msgstr ""
41765
41766 #. type: textblock
41767 #: ../tools/virt-tar.pl:47
41768 msgid ""
41769 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
41770 "L<virt-tar-in(1)>, L<virt-tar-out(1)> as replacements."
41771 msgstr ""
41772
41773 #. type: textblock
41774 #: ../tools/virt-tar.pl:52
41775 msgid "Download C</home> from the VM into a local tarball:"
41776 msgstr ""
41777
41778 #. type: verbatim
41779 #: ../tools/virt-tar.pl:54
41780 #, no-wrap
41781 msgid ""
41782 " virt-tar -x domname /home home.tar\n"
41783 "\n"
41784 msgstr ""
41785
41786 #. type: verbatim
41787 #: ../tools/virt-tar.pl:56
41788 #, no-wrap
41789 msgid ""
41790 " virt-tar -zx domname /home home.tar.gz\n"
41791 "\n"
41792 msgstr ""
41793
41794 #. type: textblock
41795 #: ../tools/virt-tar.pl:58
41796 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
41797 msgstr ""
41798
41799 #. type: verbatim
41800 #: ../tools/virt-tar.pl:60
41801 #, no-wrap
41802 msgid ""
41803 " virt-tar -u domname uploadstuff.tar /tmp\n"
41804 "\n"
41805 msgstr ""
41806
41807 #. type: verbatim
41808 #: ../tools/virt-tar.pl:62
41809 #, no-wrap
41810 msgid ""
41811 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
41812 "\n"
41813 msgstr ""
41814
41815 #. type: textblock
41816 #: ../tools/virt-tar.pl:66
41817 msgid ""
41818 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
41819 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
41820 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
41821 msgstr ""
41822
41823 #. type: textblock
41824 #: ../tools/virt-tar.pl:71
41825 msgid ""
41826 "You can use I<-x> (extract) on live virtual machines, but you might get "
41827 "inconsistent results or errors if there is filesystem activity inside the "
41828 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
41829 "work, but the only way to guarantee consistent results is if the virtual "
41830 "machine is shut down."
41831 msgstr ""
41832
41833 #. type: textblock
41834 #: ../tools/virt-tar.pl:79
41835 msgid ""
41836 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
41837 "parts of a guest filesystem.  There are many possibilities: making backups, "
41838 "uploading data files, snooping on guest activity, fixing or customizing "
41839 "guests, etc."
41840 msgstr ""
41841
41842 #. type: textblock
41843 #: ../tools/virt-tar.pl:84
41844 msgid ""
41845 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
41846 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
41847 "should look at the L<guestfish(1)> tool."
41848 msgstr ""
41849
41850 #. type: textblock
41851 #: ../tools/virt-tar.pl:88
41852 msgid ""
41853 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
41854 "its contents (recursively) from the virtual machine into a local tarball.  "
41855 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
41856 "virtual machine.  You cannot use these two options together."
41857 msgstr ""
41858
41859 #. type: textblock
41860 #: ../tools/virt-tar.pl:94
41861 msgid ""
41862 "In addition, you may need to use the I<-z> (gZip) option to enable "
41863 "compression.  When uploading, you have to specify I<-z> if the upload file "
41864 "is compressed because virt-tar won't detect this on its own."
41865 msgstr ""
41866
41867 #. type: textblock
41868 #: ../tools/virt-tar.pl:98
41869 msgid ""
41870 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
41871 "example it cannot do PKZip files or bzip2 compression.  If you want that "
41872 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
41873 "the L<libguestfs(3)> API)."
41874 msgstr ""
41875
41876 #. type: =item
41877 #: ../tools/virt-tar.pl:160
41878 msgid "B<--extract>"
41879 msgstr ""
41880
41881 #. type: =item
41882 #: ../tools/virt-tar.pl:162
41883 msgid "B<--download>"
41884 msgstr ""
41885
41886 #. type: =item
41887 #: ../tools/virt-tar.pl:164
41888 msgid "B<-u>"
41889 msgstr ""
41890
41891 #. type: =item
41892 #: ../tools/virt-tar.pl:166
41893 msgid "B<--upload>"
41894 msgstr ""
41895
41896 #. type: textblock
41897 #: ../tools/virt-tar.pl:168
41898 msgid ""
41899 "Use I<-x> to extract (download) a directory from a virtual machine to a "
41900 "local tarball."
41901 msgstr ""
41902
41903 #. type: textblock
41904 #: ../tools/virt-tar.pl:171
41905 msgid ""
41906 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
41907 "Please read the L</WARNING> section above before using this option."
41908 msgstr ""
41909
41910 #. type: textblock
41911 #: ../tools/virt-tar.pl:175
41912 msgid "You must specify exactly one of these options."
41913 msgstr ""
41914
41915 #. type: =item
41916 #: ../tools/virt-tar.pl:181
41917 msgid "B<-z>"
41918 msgstr ""
41919
41920 #. type: =item
41921 #: ../tools/virt-tar.pl:183
41922 msgid "B<--gzip>"
41923 msgstr ""
41924
41925 #. type: textblock
41926 #: ../tools/virt-tar.pl:185
41927 msgid "Specify that the input or output tarball is gzip-compressed."
41928 msgstr ""
41929
41930 #. type: textblock
41931 #: ../tools/virt-tar.pl:298
41932 msgid ""
41933 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
41934 "L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
41935 "L<virt-tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
41936 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41937 msgstr ""
41938
41939 #. type: textblock
41940 #: ../tools/virt-win-reg.pl:37
41941 msgid ""
41942 "virt-win-reg - Export and merge Windows Registry entries from a Windows "
41943 "guest"
41944 msgstr ""
41945
41946 #. type: verbatim
41947 #: ../tools/virt-win-reg.pl:41
41948 #, no-wrap
41949 msgid ""
41950 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
41951 "\n"
41952 msgstr ""
41953
41954 #. type: verbatim
41955 #: ../tools/virt-win-reg.pl:43
41956 #, no-wrap
41957 msgid ""
41958 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
41959 "\n"
41960 msgstr ""
41961
41962 #. type: verbatim
41963 #: ../tools/virt-win-reg.pl:45
41964 #, no-wrap
41965 msgid ""
41966 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
41967 "\n"
41968 msgstr ""
41969
41970 #. type: verbatim
41971 #: ../tools/virt-win-reg.pl:47
41972 #, no-wrap
41973 msgid ""
41974 " virt-win-reg --merge domname [input.reg ...]\n"
41975 "\n"
41976 msgstr ""
41977
41978 #. type: verbatim
41979 #: ../tools/virt-win-reg.pl:49
41980 #, no-wrap
41981 msgid ""
41982 " virt-win-reg [--options] disk.img ... # instead of domname\n"
41983 "\n"
41984 msgstr ""
41985
41986 #. type: textblock
41987 #: ../tools/virt-win-reg.pl:53
41988 msgid ""
41989 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
41990 "virtual machines.  If you do this, you I<will> get irreversible disk "
41991 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
41992 "but doesn't catch all cases."
41993 msgstr ""
41994
41995 #. type: textblock
41996 #: ../tools/virt-win-reg.pl:58
41997 msgid ""
41998 "Modifying the Windows Registry is an inherently risky operation.  The format "
41999 "is deliberately obscure and undocumented, and Registry changes can leave the "
42000 "system unbootable.  Therefore when using the I<--merge> option, make sure "
42001 "you have a reliable backup first."
42002 msgstr ""
42003
42004 #. type: textblock
42005 #: ../tools/virt-win-reg.pl:65
42006 msgid ""
42007 "This program can export and merge Windows Registry entries from a Windows "
42008 "guest."
42009 msgstr ""
42010
42011 #. type: textblock
42012 #: ../tools/virt-win-reg.pl:68
42013 msgid ""
42014 "The first parameter is the libvirt guest name or the raw disk image of a "
42015 "Windows guest."
42016 msgstr ""
42017
42018 #. type: textblock
42019 #: ../tools/virt-win-reg.pl:71
42020 msgid ""
42021 "If I<--merge> is I<not> specified, then the chosen registry key is "
42022 "displayed/exported (recursively).  For example:"
42023 msgstr ""
42024
42025 #. type: verbatim
42026 #: ../tools/virt-win-reg.pl:74
42027 #, no-wrap
42028 msgid ""
42029 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
42030 "\n"
42031 msgstr ""
42032
42033 #. type: textblock
42034 #: ../tools/virt-win-reg.pl:76
42035 msgid "You can also display single values from within registry keys, for example:"
42036 msgstr ""
42037
42038 #. type: verbatim
42039 #: ../tools/virt-win-reg.pl:79
42040 #, no-wrap
42041 msgid ""
42042 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
42043 " $ virt-win-reg Windows7 $cvkey ProductName\n"
42044 " Windows 7 Enterprise\n"
42045 "\n"
42046 msgstr ""
42047
42048 #. type: textblock
42049 #: ../tools/virt-win-reg.pl:83
42050 msgid ""
42051 "With I<--merge>, you can merge a textual regedit file into the Windows "
42052 "Registry:"
42053 msgstr ""
42054
42055 #. type: verbatim
42056 #: ../tools/virt-win-reg.pl:86
42057 #, no-wrap
42058 msgid ""
42059 " $ virt-win-reg --merge Windows7 changes.reg\n"
42060 "\n"
42061 msgstr ""
42062
42063 #. type: textblock
42064 #: ../tools/virt-win-reg.pl:90
42065 msgid ""
42066 "This program is only meant for simple access to the registry.  If you want "
42067 "to do complicated things with the registry, we suggest you download the "
42068 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
42069 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
42070 "L<hivexregedit(1)>."
42071 msgstr ""
42072
42073 #. type: =item
42074 #: ../tools/virt-win-reg.pl:159
42075 msgid "B<--merge>"
42076 msgstr ""
42077
42078 #. type: textblock
42079 #: ../tools/virt-win-reg.pl:161
42080 msgid ""
42081 "In merge mode, this merges a textual regedit file into the Windows Registry "
42082 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
42083 "displays or exports Registry entries instead."
42084 msgstr ""
42085
42086 #. type: textblock
42087 #: ../tools/virt-win-reg.pl:165
42088 msgid ""
42089 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
42090 "result in disk corruption.  However exporting (without this flag)  is always "
42091 "safe."
42092 msgstr ""
42093
42094 #. type: =item
42095 #: ../tools/virt-win-reg.pl:173
42096 msgid "B<--encoding> UTF-16LE|ASCII"
42097 msgstr ""
42098
42099 #. type: textblock
42100 #: ../tools/virt-win-reg.pl:175
42101 msgid ""
42102 "When merging (only), you may need to specify the encoding for strings to be "
42103 "used in the hive file.  This is explained in detail in "
42104 "L<Win::Hivex::Regedit(3)/ENCODING STRINGS>."
42105 msgstr ""
42106
42107 #. type: textblock
42108 #: ../tools/virt-win-reg.pl:179
42109 msgid ""
42110 "The default is to use UTF-16LE, which should work with recent versions of "
42111 "Windows."
42112 msgstr ""
42113
42114 #. type: =item
42115 #: ../tools/virt-win-reg.pl:186
42116 msgid "B<--unsafe-printable-strings>"
42117 msgstr ""
42118
42119 #. type: textblock
42120 #: ../tools/virt-win-reg.pl:188
42121 msgid ""
42122 "When exporting (only), assume strings are UTF-16LE and print them as strings "
42123 "instead of hex sequences.  Remove the final zero codepoint from strings if "
42124 "present."
42125 msgstr ""
42126
42127 #. type: textblock
42128 #: ../tools/virt-win-reg.pl:192
42129 msgid ""
42130 "This is unsafe and does not preserve the fidelity of strings in the original "
42131 "Registry for various reasons:"
42132 msgstr ""
42133
42134 #. type: textblock
42135 #: ../tools/virt-win-reg.pl:199
42136 msgid ""
42137 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
42138 "other encodings will be corrupted by this transformation."
42139 msgstr ""
42140
42141 #. type: textblock
42142 #: ../tools/virt-win-reg.pl:204
42143 msgid ""
42144 "Assumes that everything which has type 1 or 2 is really a string and that "
42145 "everything else is not a string, but the type field in real Registries is "
42146 "not reliable."
42147 msgstr ""
42148
42149 #. type: textblock
42150 #: ../tools/virt-win-reg.pl:210
42151 msgid ""
42152 "Loses information about whether a zero codepoint followed the string in the "
42153 "Registry or not."
42154 msgstr ""
42155
42156 #. type: textblock
42157 #: ../tools/virt-win-reg.pl:215
42158 msgid ""
42159 "This all happens because the Registry itself contains no information about "
42160 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
42161 msgstr ""
42162
42163 #. type: textblock
42164 #: ../tools/virt-win-reg.pl:219
42165 msgid ""
42166 "You should only use this option for quick hacking and debugging of the "
42167 "Registry contents, and I<never> use it if the output is going to be passed "
42168 "into another program or stored in another Registry."
42169 msgstr ""
42170
42171 #. type: =head1
42172 #: ../tools/virt-win-reg.pl:556
42173 msgid "SUPPORTED SYSTEMS"
42174 msgstr ""
42175
42176 #. type: textblock
42177 #: ../tools/virt-win-reg.pl:558
42178 msgid ""
42179 "The program currently supports Windows NT-derived guests starting with "
42180 "Windows XP through to at least Windows 7."
42181 msgstr ""
42182
42183 #. type: textblock
42184 #: ../tools/virt-win-reg.pl:561
42185 msgid "The following Registry keys are supported:"
42186 msgstr ""
42187
42188 #. type: =item
42189 #: ../tools/virt-win-reg.pl:565
42190 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
42191 msgstr ""
42192
42193 #. type: =item
42194 #: ../tools/virt-win-reg.pl:567
42195 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
42196 msgstr ""
42197
42198 #. type: =item
42199 #: ../tools/virt-win-reg.pl:569
42200 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
42201 msgstr ""
42202
42203 #. type: =item
42204 #: ../tools/virt-win-reg.pl:571
42205 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
42206 msgstr ""
42207
42208 #. type: =item
42209 #: ../tools/virt-win-reg.pl:573
42210 msgid "C<HKEY_USERS\\.DEFAULT>"
42211 msgstr ""
42212
42213 #. type: =item
42214 #: ../tools/virt-win-reg.pl:575
42215 msgid "C<HKEY_USERS\\I<SID>>"
42216 msgstr ""
42217
42218 #. type: textblock
42219 #: ../tools/virt-win-reg.pl:577
42220 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
42221 msgstr ""
42222
42223 #. type: =item
42224 #: ../tools/virt-win-reg.pl:579
42225 msgid "C<HKEY_USERS\\I<username>>"
42226 msgstr ""
42227
42228 #. type: textblock
42229 #: ../tools/virt-win-reg.pl:581
42230 msgid "where I<username> is a local user name (this is a libguestfs extension)."
42231 msgstr ""
42232
42233 #. type: textblock
42234 #: ../tools/virt-win-reg.pl:585
42235 msgid ""
42236 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
42237 "C<HKEY_USERS>."
42238 msgstr ""
42239
42240 #. type: textblock
42241 #: ../tools/virt-win-reg.pl:588
42242 msgid ""
42243 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
42244 "supported (there is no \"current user\")."
42245 msgstr ""
42246
42247 #. type: =head1
42248 #: ../tools/virt-win-reg.pl:591
42249 msgid "ENCODING"
42250 msgstr ""
42251
42252 #. type: textblock
42253 #: ../tools/virt-win-reg.pl:593
42254 msgid ""
42255 "C<virt-win-reg> expects that regedit files have already been reencoded in "
42256 "the local encoding.  Usually on Linux hosts, this means UTF-8 with "
42257 "Unix-style line endings.  Since Windows regedit files are often in UTF-16LE "
42258 "with Windows-style line endings, you may need to reencode the whole file "
42259 "before or after processing."
42260 msgstr ""
42261
42262 #. type: textblock
42263 #: ../tools/virt-win-reg.pl:599
42264 msgid ""
42265 "To reencode a file from Windows format to Linux (before processing it with "
42266 "the I<--merge> option), you would do something like this:"
42267 msgstr ""
42268
42269 #. type: verbatim
42270 #: ../tools/virt-win-reg.pl:602
42271 #, no-wrap
42272 msgid ""
42273 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
42274 "\n"
42275 msgstr ""
42276
42277 #. type: textblock
42278 #: ../tools/virt-win-reg.pl:604
42279 msgid ""
42280 "To go in the opposite direction, after exporting and before sending the file "
42281 "to a Windows user, do something like this:"
42282 msgstr ""
42283
42284 #. type: verbatim
42285 #: ../tools/virt-win-reg.pl:607
42286 #, no-wrap
42287 msgid ""
42288 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
42289 "\n"
42290 msgstr ""
42291
42292 #. type: textblock
42293 #: ../tools/virt-win-reg.pl:609
42294 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
42295 msgstr ""
42296
42297 #. type: textblock
42298 #: ../tools/virt-win-reg.pl:611
42299 msgid ""
42300 "If you are unsure about the current encoding, use the L<file(1)> command.  "
42301 "Recent versions of Windows regedit.exe produce a UTF-16LE file with "
42302 "Windows-style (CRLF) line endings, like this:"
42303 msgstr ""
42304
42305 #. type: verbatim
42306 #: ../tools/virt-win-reg.pl:615
42307 #, no-wrap
42308 msgid ""
42309 " $ file software.reg\n"
42310 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
42311 " with CRLF line terminators\n"
42312 "\n"
42313 msgstr ""
42314
42315 #. type: textblock
42316 #: ../tools/virt-win-reg.pl:619
42317 msgid "This file would need conversion before you could I<--merge> it."
42318 msgstr ""
42319
42320 #. type: =head1
42321 #: ../tools/virt-win-reg.pl:621
42322 msgid "CurrentControlSet etc."
42323 msgstr ""
42324
42325 #. type: textblock
42326 #: ../tools/virt-win-reg.pl:623
42327 msgid ""
42328 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
42329 "Registry at the level of the hive file, and therefore you cannot modify "
42330 "these."
42331 msgstr ""
42332
42333 #. type: textblock
42334 #: ../tools/virt-win-reg.pl:627
42335 msgid ""
42336 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
42337 "circumstances it might refer to another control set.  The way to find out is "
42338 "to look at the C<HKLM\\SYSTEM\\Select> key:"
42339 msgstr ""
42340
42341 #. type: verbatim
42342 #: ../tools/virt-win-reg.pl:631
42343 #, no-wrap
42344 msgid ""
42345 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
42346 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
42347 " \"Current\"=dword:00000001\n"
42348 " \"Default\"=dword:00000001\n"
42349 " \"Failed\"=dword:00000000\n"
42350 " \"LastKnownGood\"=dword:00000002\n"
42351 "\n"
42352 msgstr ""
42353
42354 #. type: textblock
42355 #: ../tools/virt-win-reg.pl:638
42356 msgid "\"Current\" is the one which Windows will choose when it boots."
42357 msgstr ""
42358
42359 #. type: textblock
42360 #: ../tools/virt-win-reg.pl:640
42361 msgid "Similarly, other C<Current...> keys in the path may need to be replaced."
42362 msgstr ""
42363
42364 #. type: =head1
42365 #: ../tools/virt-win-reg.pl:643
42366 msgid "DELETING REGISTRY KEYS AND VALUES"
42367 msgstr ""
42368
42369 #. type: textblock
42370 #: ../tools/virt-win-reg.pl:645
42371 msgid "To delete a whole registry key, use the syntax:"
42372 msgstr ""
42373
42374 #. type: verbatim
42375 #: ../tools/virt-win-reg.pl:647
42376 #, no-wrap
42377 msgid ""
42378 " [-HKEY_LOCAL_MACHINE\\Foo]\n"
42379 "\n"
42380 msgstr ""
42381
42382 #. type: textblock
42383 #: ../tools/virt-win-reg.pl:649
42384 msgid "To delete a single value within a key, use the syntax:"
42385 msgstr ""
42386
42387 #. type: verbatim
42388 #: ../tools/virt-win-reg.pl:651
42389 #, no-wrap
42390 msgid ""
42391 " [HKEY_LOCAL_MACHINE\\Foo]\n"
42392 " \"Value\"=-\n"
42393 "\n"
42394 msgstr ""
42395
42396 #. type: =head1
42397 #: ../tools/virt-win-reg.pl:654
42398 msgid "WINDOWS TIPS"
42399 msgstr ""
42400
42401 #. type: textblock
42402 #: ../tools/virt-win-reg.pl:656
42403 msgid ""
42404 "Note that some of these tips modify the guest disk image.  The guest I<must> "
42405 "be shut off, else you will get disk corruption."
42406 msgstr ""
42407
42408 #. type: =head2
42409 #: ../tools/virt-win-reg.pl:659
42410 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
42411 msgstr ""
42412
42413 #. type: textblock
42414 #: ../tools/virt-win-reg.pl:661
42415 msgid ""
42416 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
42417 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
42418 "is uploaded into C<C:\\>:"
42419 msgstr ""
42420
42421 #. type: verbatim
42422 #: ../tools/virt-win-reg.pl:665
42423 #, no-wrap
42424 msgid ""
42425 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
42426 "\n"
42427 msgstr ""
42428
42429 #. type: textblock
42430 #: ../tools/virt-win-reg.pl:667
42431 msgid "Prepare a regedit file containing the registry change:"
42432 msgstr ""
42433
42434 #. type: verbatim
42435 #: ../tools/virt-win-reg.pl:669
42436 #, no-wrap
42437 msgid ""
42438 " cat > test.reg <<'EOF'\n"
42439 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
42440 " \"Test\"=\"c:\\\\test.bat\"\n"
42441 " EOF\n"
42442 "\n"
42443 msgstr ""
42444
42445 #. type: textblock
42446 #: ../tools/virt-win-reg.pl:674
42447 msgid ""
42448 "In this example we use the key C<RunOnce> which means that the script will "
42449 "run precisely once when the first user logs in.  If you want it to run every "
42450 "time a user logs in, replace C<RunOnce> with C<Run>."
42451 msgstr ""
42452
42453 #. type: textblock
42454 #: ../tools/virt-win-reg.pl:678
42455 msgid "Now update the registry:"
42456 msgstr ""
42457
42458 #. type: verbatim
42459 #: ../tools/virt-win-reg.pl:680
42460 #, no-wrap
42461 msgid ""
42462 " virt-win-reg --merge WindowsGuest test.reg\n"
42463 "\n"
42464 msgstr ""
42465
42466 #. type: =head2
42467 #: ../tools/virt-win-reg.pl:682
42468 msgid "INSTALLING A SERVICE"
42469 msgstr ""
42470
42471 #. type: textblock
42472 #: ../tools/virt-win-reg.pl:684
42473 msgid ""
42474 "This section assumes you are familiar with Windows services, and you either "
42475 "have a program which handles the Windows Service Control Protocol directly "
42476 "or you want to run any program using a service wrapper like SrvAny or the "
42477 "free RHSrvAny."
42478 msgstr ""
42479
42480 #. type: textblock
42481 #: ../tools/virt-win-reg.pl:689
42482 msgid ""
42483 "First upload the program and optionally the service wrapper.  In this case "
42484 "the test program is called C<test.exe> and we are using the RHSrvAny "
42485 "wrapper:"
42486 msgstr ""
42487
42488 #. type: verbatim
42489 #: ../tools/virt-win-reg.pl:693
42490 #, no-wrap
42491 msgid ""
42492 " guestfish -i -d WindowsGuest <<EOF\n"
42493 "   upload rhsrvany.exe /rhsrvany.exe\n"
42494 "   upload test.exe /test.exe\n"
42495 " EOF\n"
42496 "\n"
42497 msgstr ""
42498
42499 #. type: textblock
42500 #: ../tools/virt-win-reg.pl:698
42501 msgid ""
42502 "Prepare a regedit file containing the registry changes.  In this example, "
42503 "the first registry change is needed for the service itself or the service "
42504 "wrapper (if used).  The second registry change is only needed because I am "
42505 "using the RHSrvAny service wrapper."
42506 msgstr ""
42507
42508 #. type: verbatim
42509 #: ../tools/virt-win-reg.pl:703
42510 #, no-wrap
42511 msgid ""
42512 " cat > service.reg <<'EOF'\n"
42513 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
42514 " \"Type\"=dword:00000010\n"
42515 " \"Start\"=dword:00000002\n"
42516 " \"ErrorControl\"=dword:00000001\n"
42517 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
42518 " \"DisplayName\"=\"RHSrvAny\"\n"
42519 " \"ObjectName\"=\"NetworkService\"\n"
42520 " \n"
42521 msgstr ""
42522
42523 #. type: verbatim
42524 #: ../tools/virt-win-reg.pl:712
42525 #, no-wrap
42526 msgid ""
42527 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
42528 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
42529 " \"PWD\"=\"c:\\\\Temp\"\n"
42530 " EOF\n"
42531 "\n"
42532 msgstr ""
42533
42534 #. type: textblock
42535 #: ../tools/virt-win-reg.pl:723
42536 msgid ""
42537 "For use of C<ControlSet001> see the section above in this manual page.  You "
42538 "may need to adjust this according to the control set that is in use by the "
42539 "guest."
42540 msgstr ""
42541
42542 #. type: textblock
42543 #: ../tools/virt-win-reg.pl:729
42544 msgid ""
42545 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
42546 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
42547 "privileged account."
42548 msgstr ""
42549
42550 #. type: textblock
42551 #: ../tools/virt-win-reg.pl:735
42552 msgid ""
42553 "For the meaning of the magic numbers, see this Microsoft KB article: "
42554 "L<http://support.microsoft.com/kb/103000>."
42555 msgstr ""
42556
42557 #. type: textblock
42558 #: ../tools/virt-win-reg.pl:740
42559 msgid "Update the registry:"
42560 msgstr ""
42561
42562 #. type: verbatim
42563 #: ../tools/virt-win-reg.pl:742
42564 #, no-wrap
42565 msgid ""
42566 " virt-win-reg --merge WindowsGuest service.reg\n"
42567 "\n"
42568 msgstr ""
42569
42570 #. type: textblock
42571 #: ../tools/virt-win-reg.pl:746
42572 msgid ""
42573 "Be careful when passing parameters containing C<\\> (backslash) in the "
42574 "shell.  Usually you will have to use 'single quotes' or double backslashes "
42575 "(but not both) to protect them from the shell."
42576 msgstr ""
42577
42578 #. type: textblock
42579 #: ../tools/virt-win-reg.pl:750
42580 msgid "Paths and value names are case-insensitive."
42581 msgstr ""
42582
42583 #. type: textblock
42584 #: ../tools/virt-win-reg.pl:759
42585 msgid ""
42586 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
42587 "L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
42588 "L<Sys::Guestfs::Lib(3)>, L<Win::Hivex(3)>, L<Win::Hivex::Regedit(3)>, "
42589 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42590 msgstr ""
42591
42592 #. type: verbatim
42593 #: ../tools/virt-win-reg.pl:777
42594 #, no-wrap
42595 msgid ""
42596 " export LIBGUESTFS_DEBUG=1\n"
42597 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
42598 "\n"
42599 msgstr ""
42600
42601 #. type: textblock
42602 #: ../tools/virt-win-reg.pl:780
42603 msgid ""
42604 "Attach /tmp/virt-win-reg.log to a new bug report at "
42605 "L<https://bugzilla.redhat.com/>"
42606 msgstr ""