Version 1.14.3.
[libguestfs.git] / po-docs / libguestfs-docs.pot
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Red Hat Inc.
3 # This file is distributed under the same license as the libguestfs package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: libguestfs 1.14.3\n"
10 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
11 "POT-Creation-Date: 2011-11-22 15:04+0000\n"
12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14 "Language-Team: LANGUAGE <LL@li.org>\n"
15 "Language: \n"
16 "MIME-Version: 1.0\n"
17 "Content-Type: text/plain; charset=UTF-8\n"
18 "Content-Transfer-Encoding: 8bit\n"
19
20 #. type: =head1
21 #: ../align/virt-alignment-scan.pod:3 ../cat/virt-cat.pod:3 ../cat/virt-filesystems.pod:3 ../cat/virt-ls.pod:3 ../clone/virt-sysprep.pod:3 ../df/virt-df.pod:3 ../edit/virt-edit.pod:3 ../erlang/examples/guestfs-erlang.pod:3 ../examples/guestfs-examples.pod:3 ../examples/guestfs-recipes.pod:14 ../examples/guestfs-testing.pod:3 ../fish/guestfish.pod:3 ../fish/virt-copy-in.pod:3 ../fish/virt-copy-out.pod:3 ../fish/virt-tar-in.pod:3 ../fish/virt-tar-out.pod:3 ../fuse/guestmount.pod:3 ../inspector/virt-inspector.pod:3 ../java/examples/guestfs-java.pod:3 ../ocaml/examples/guestfs-ocaml.pod:3 ../perl/examples/guestfs-perl.pod:3 ../python/examples/guestfs-python.pod:3 ../rescue/virt-rescue.pod:3 ../resize/virt-resize.pod:3 ../ruby/examples/guestfs-ruby.pod:3 ../sparsify/virt-sparsify.pod:3 ../src/guestfs.pod:3 ../test-tool/libguestfs-test-tool.pod:3 ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30 ../tools/virt-make-fs.pl:35 ../tools/virt-tar.pl:31 ../tools/virt-win-reg.pl:35
22 msgid "NAME"
23 msgstr ""
24
25 #. type: textblock
26 #: ../align/virt-alignment-scan.pod:5
27 msgid "virt-alignment-scan - Check alignment of virtual machine partitions"
28 msgstr ""
29
30 #. type: =head1
31 #: ../align/virt-alignment-scan.pod:7 ../cat/virt-cat.pod:7 ../cat/virt-filesystems.pod:7 ../cat/virt-ls.pod:7 ../clone/virt-sysprep.pod:7 ../df/virt-df.pod:7 ../edit/virt-edit.pod:7 ../erlang/examples/guestfs-erlang.pod:7 ../examples/guestfs-examples.pod:7 ../fish/guestfish.pod:7 ../fish/virt-copy-in.pod:7 ../fish/virt-copy-out.pod:7 ../fish/virt-tar-in.pod:7 ../fish/virt-tar-out.pod:7 ../fuse/guestmount.pod:7 ../inspector/virt-inspector.pod:7 ../java/examples/guestfs-java.pod:7 ../ocaml/examples/guestfs-ocaml.pod:7 ../perl/examples/guestfs-perl.pod:7 ../python/examples/guestfs-python.pod:7 ../rescue/virt-rescue.pod:7 ../resize/virt-resize.pod:7 ../ruby/examples/guestfs-ruby.pod:7 ../sparsify/virt-sparsify.pod:7 ../src/guestfs.pod:7 ../test-tool/libguestfs-test-tool.pod:7 ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34 ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35 ../tools/virt-win-reg.pl:39
32 msgid "SYNOPSIS"
33 msgstr ""
34
35 #. type: verbatim
36 #: ../align/virt-alignment-scan.pod:9
37 #, no-wrap
38 msgid ""
39 " virt-alignment-scan [--options] -d domname\n"
40 "\n"
41 msgstr ""
42
43 #. type: verbatim
44 #: ../align/virt-alignment-scan.pod:11
45 #, no-wrap
46 msgid ""
47 " virt-alignment-scan [--options] -a disk.img [-a disk.img ...]\n"
48 "\n"
49 msgstr ""
50
51 #. type: =head1
52 #: ../align/virt-alignment-scan.pod:13 ../cat/virt-cat.pod:19 ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19 ../clone/virt-sysprep.pod:13 ../df/virt-df.pod:21 ../edit/virt-edit.pod:27 ../erlang/examples/guestfs-erlang.pod:16 ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18 ../examples/guestfs-testing.pod:7 ../fish/guestfish.pod:30 ../fish/virt-copy-in.pod:19 ../fish/virt-copy-out.pod:13 ../fish/virt-tar-in.pod:21 ../fish/virt-tar-out.pod:15 ../fuse/guestmount.pod:20 ../inspector/virt-inspector.pod:19 ../java/examples/guestfs-java.pod:15 ../ocaml/examples/guestfs-ocaml.pod:25 ../perl/examples/guestfs-perl.pod:18 ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:29 ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15 ../sparsify/virt-sparsify.pod:11 ../src/guestfs.pod:23 ../test-tool/libguestfs-test-tool.pod:11 ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40 ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77 ../tools/virt-win-reg.pl:63
53 msgid "DESCRIPTION"
54 msgstr ""
55
56 #. type: textblock
57 #: ../align/virt-alignment-scan.pod:15
58 msgid ""
59 "When older operating systems install themselves, the partitioning tools "
60 "place partitions at a sector misaligned with the underlying storage "
61 "(commonly the first partition starts on sector C<63>).  Misaligned "
62 "partitions can result in an operating system issuing more I/O than should be "
63 "necessary."
64 msgstr ""
65
66 #. type: textblock
67 #: ../align/virt-alignment-scan.pod:21
68 msgid ""
69 "The virt-alignment-scan tool checks the alignment of partitions in virtual "
70 "machines and disk images and warns you if there are alignment problems."
71 msgstr ""
72
73 #. type: textblock
74 #: ../align/virt-alignment-scan.pod:25
75 msgid ""
76 "Currently there is no virt tool for fixing alignment problems.  You can only "
77 "reinstall the guest operating system.  The following NetApp document "
78 "summarises the problem and possible solutions: "
79 "L<http://media.netapp.com/documents/tr-3747.pdf>"
80 msgstr ""
81
82 #. type: =head1
83 #: ../align/virt-alignment-scan.pod:30
84 msgid "OUTPUT"
85 msgstr ""
86
87 #. type: textblock
88 #: ../align/virt-alignment-scan.pod:32
89 msgid "To run this tool on a disk image directly, use the I<-a> option:"
90 msgstr ""
91
92 #. type: verbatim
93 #: ../align/virt-alignment-scan.pod:34
94 #, no-wrap
95 msgid ""
96 " $ virt-alignment-scan -a winxp.img\n"
97 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
98 "\n"
99 msgstr ""
100
101 #. type: verbatim
102 #: ../align/virt-alignment-scan.pod:37
103 #, no-wrap
104 msgid ""
105 " $ virt-alignment-scan -a fedora16.img\n"
106 " /dev/sda1      1048576         1024K   ok\n"
107 " /dev/sda2      2097152         2048K   ok\n"
108 " /dev/sda3    526385152         2048K   ok\n"
109 "\n"
110 msgstr ""
111
112 #. type: textblock
113 #: ../align/virt-alignment-scan.pod:42
114 msgid ""
115 "To run the tool on a guest known to libvirt, use the I<-d> option and "
116 "possibly the I<-c> option:"
117 msgstr ""
118
119 #. type: verbatim
120 #: ../align/virt-alignment-scan.pod:45
121 #, no-wrap
122 msgid ""
123 " # virt-alignment-scan -d RHEL5\n"
124 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
125 " /dev/sda2    106928640          512    bad (alignment < 4K)\n"
126 "\n"
127 msgstr ""
128
129 #. type: verbatim
130 #: ../align/virt-alignment-scan.pod:49
131 #, no-wrap
132 msgid ""
133 " $ virt-alignment-scan -c qemu:///system -d Win7TwoDisks\n"
134 " /dev/sda1      1048576         1024K   ok\n"
135 " /dev/sda2    105906176         1024K   ok\n"
136 " /dev/sdb1        65536           64K   ok\n"
137 "\n"
138 msgstr ""
139
140 #. type: textblock
141 #: ../align/virt-alignment-scan.pod:54
142 msgid ""
143 "The output consists of 4 or more whitespace-separated columns.  Only the "
144 "first 4 columns are signficant if you want to parse this from a program.  "
145 "The columns are:"
146 msgstr ""
147
148 #. type: =item
149 #: ../align/virt-alignment-scan.pod:60
150 msgid "col 1"
151 msgstr ""
152
153 #. type: textblock
154 #: ../align/virt-alignment-scan.pod:62
155 msgid ""
156 "the device and partition name (eg. C</dev/sda1> meaning the first partition "
157 "on the first block device)"
158 msgstr ""
159
160 #. type: =item
161 #: ../align/virt-alignment-scan.pod:65
162 msgid "col 2"
163 msgstr ""
164
165 #. type: textblock
166 #: ../align/virt-alignment-scan.pod:67
167 msgid "the start of the partition in bytes"
168 msgstr ""
169
170 #. type: =item
171 #: ../align/virt-alignment-scan.pod:69
172 msgid "col 3"
173 msgstr ""
174
175 #. type: textblock
176 #: ../align/virt-alignment-scan.pod:71
177 msgid "the alignment in bytes or Kbytes (eg. C<512> or C<4K>)"
178 msgstr ""
179
180 #. type: =item
181 #: ../align/virt-alignment-scan.pod:73
182 msgid "col 4"
183 msgstr ""
184
185 #. type: textblock
186 #: ../align/virt-alignment-scan.pod:75
187 msgid ""
188 "C<ok> if the alignment is best for performance, or C<bad> if the alignment "
189 "can cause performance problems"
190 msgstr ""
191
192 #. type: =item
193 #: ../align/virt-alignment-scan.pod:78
194 msgid "cols 5+"
195 msgstr ""
196
197 #. type: textblock
198 #: ../align/virt-alignment-scan.pod:80
199 msgid "optional free-text explanation."
200 msgstr ""
201
202 #. type: textblock
203 #: ../align/virt-alignment-scan.pod:84
204 msgid ""
205 "The exit code from the program changes depending on whether poorly aligned "
206 "partitions were found.  See L</EXIT STATUS> below."
207 msgstr ""
208
209 #. type: textblock
210 #: ../align/virt-alignment-scan.pod:87
211 msgid "If you just want the exit code with no output, use the I<-q> option."
212 msgstr ""
213
214 #. type: =head1
215 #: ../align/virt-alignment-scan.pod:89 ../cat/virt-cat.pod:62 ../cat/virt-filesystems.pod:91 ../cat/virt-ls.pod:261 ../clone/virt-sysprep.pod:42 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62 ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45 ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42 ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:92 ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:84 ../resize/virt-resize.pod:262 ../sparsify/virt-sparsify.pod:99 ../test-tool/libguestfs-test-tool.pod:36 ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54 ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103 ../tools/virt-win-reg.pl:96
216 msgid "OPTIONS"
217 msgstr ""
218
219 #. type: =item
220 #: ../align/virt-alignment-scan.pod:93 ../cat/virt-cat.pod:66 ../cat/virt-filesystems.pod:95 ../cat/virt-ls.pod:265 ../clone/virt-sysprep.pod:46 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66 ../fish/guestfish.pod:152 ../fuse/guestmount.pod:160 ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:88 ../resize/virt-resize.pod:266 ../sparsify/virt-sparsify.pod:103 ../test-tool/libguestfs-test-tool.pod:40 ../tools/virt-list-filesystems.pl:61 ../tools/virt-list-partitions.pl:62 ../tools/virt-make-fs.pl:161 ../tools/virt-tar.pl:111 ../tools/virt-win-reg.pl:104
221 msgid "B<--help>"
222 msgstr ""
223
224 #. type: textblock
225 #: ../align/virt-alignment-scan.pod:95 ../cat/virt-cat.pod:68 ../cat/virt-filesystems.pod:97 ../cat/virt-ls.pod:267 ../clone/virt-sysprep.pod:48 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68 ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:90 ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64 ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113 ../tools/virt-win-reg.pl:106
226 msgid "Display brief help."
227 msgstr ""
228
229 #. type: =item
230 #: ../align/virt-alignment-scan.pod:97 ../cat/virt-cat.pod:70 ../cat/virt-filesystems.pod:99 ../cat/virt-ls.pod:269 ../clone/virt-sysprep.pod:50 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70 ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:92
231 msgid "B<-a> file"
232 msgstr ""
233
234 #. type: =item
235 #: ../align/virt-alignment-scan.pod:99 ../cat/virt-cat.pod:72 ../cat/virt-filesystems.pod:101 ../cat/virt-ls.pod:271 ../clone/virt-sysprep.pod:52 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72 ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:94
236 msgid "B<--add> file"
237 msgstr ""
238
239 #. type: textblock
240 #: ../align/virt-alignment-scan.pod:101 ../clone/virt-sysprep.pod:54
241 msgid "Add I<file> which should be a disk image from a virtual machine."
242 msgstr ""
243
244 #. type: textblock
245 #: ../align/virt-alignment-scan.pod:103 ../cat/virt-cat.pod:78 ../cat/virt-filesystems.pod:107 ../cat/virt-ls.pod:277 ../clone/virt-sysprep.pod:56 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78 ../fish/guestfish.pod:174 ../fuse/guestmount.pod:102 ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:100
246 msgid ""
247 "The format of the disk image is auto-detected.  To override this and force a "
248 "particular format use the I<--format=..> option."
249 msgstr ""
250
251 #. type: =item
252 #: ../align/virt-alignment-scan.pod:106 ../cat/virt-cat.pod:81 ../cat/virt-filesystems.pod:125 ../cat/virt-ls.pod:291 ../clone/virt-sysprep.pod:59 ../df/virt-df.pod:78 ../rescue/virt-rescue.pod:107
253 msgid "B<-c> URI"
254 msgstr ""
255
256 #. type: =item
257 #: ../align/virt-alignment-scan.pod:108 ../cat/virt-cat.pod:83 ../cat/virt-filesystems.pod:127 ../cat/virt-ls.pod:293 ../clone/virt-sysprep.pod:61 ../df/virt-df.pod:80 ../rescue/virt-rescue.pod:109
258 msgid "B<--connect> URI"
259 msgstr ""
260
261 #. type: textblock
262 #: ../align/virt-alignment-scan.pod:110 ../cat/virt-cat.pod:85 ../cat/virt-filesystems.pod:129 ../cat/virt-ls.pod:295 ../clone/virt-sysprep.pod:63 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99 ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:111 ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82 ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
263 msgid ""
264 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
265 "to the default libvirt hypervisor."
266 msgstr ""
267
268 #. type: textblock
269 #: ../align/virt-alignment-scan.pod:113 ../cat/virt-cat.pod:88 ../cat/virt-filesystems.pod:132 ../cat/virt-ls.pod:298 ../clone/virt-sysprep.pod:66 ../df/virt-df.pod:85 ../rescue/virt-rescue.pod:114
270 msgid ""
271 "If you specify guest block devices directly (I<-a>), then libvirt is not "
272 "used at all."
273 msgstr ""
274
275 #. type: =item
276 #: ../align/virt-alignment-scan.pod:116 ../cat/virt-cat.pod:91 ../cat/virt-filesystems.pod:141 ../cat/virt-ls.pod:307 ../clone/virt-sysprep.pod:69 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105 ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:117
277 msgid "B<-d> guest"
278 msgstr ""
279
280 #. type: =item
281 #: ../align/virt-alignment-scan.pod:118 ../cat/virt-cat.pod:93 ../cat/virt-filesystems.pod:143 ../cat/virt-ls.pod:309 ../clone/virt-sysprep.pod:71 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107 ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:119
282 msgid "B<--domain> guest"
283 msgstr ""
284
285 #. type: textblock
286 #: ../align/virt-alignment-scan.pod:120 ../cat/virt-cat.pod:95 ../cat/virt-filesystems.pod:145 ../cat/virt-ls.pod:311 ../clone/virt-sysprep.pod:73 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109 ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:121
287 msgid ""
288 "Add all the disks from the named libvirt guest.  Domain UUIDs can be used "
289 "instead of names."
290 msgstr ""
291
292 #. type: =item
293 #: ../align/virt-alignment-scan.pod:123 ../cat/virt-cat.pod:105 ../cat/virt-filesystems.pod:170 ../cat/virt-ls.pod:328 ../clone/virt-sysprep.pod:95 ../df/virt-df.pod:101 ../fish/guestfish.pod:233 ../fuse/guestmount.pod:142 ../inspector/virt-inspector.pod:99 ../rescue/virt-rescue.pod:124
294 msgid "B<--format=raw|qcow2|..>"
295 msgstr ""
296
297 #. type: =item
298 #: ../align/virt-alignment-scan.pod:125 ../cat/virt-cat.pod:107 ../cat/virt-filesystems.pod:172 ../cat/virt-ls.pod:330 ../clone/virt-sysprep.pod:97 ../df/virt-df.pod:103 ../edit/virt-edit.pod:134 ../fish/guestfish.pod:235 ../fuse/guestmount.pod:144 ../inspector/virt-inspector.pod:101 ../rescue/virt-rescue.pod:126
299 msgid "B<--format>"
300 msgstr ""
301
302 #. type: textblock
303 #: ../align/virt-alignment-scan.pod:127 ../cat/virt-cat.pod:109 ../cat/virt-filesystems.pod:174 ../cat/virt-ls.pod:332 ../clone/virt-sysprep.pod:99 ../df/virt-df.pod:105 ../edit/virt-edit.pod:136 ../fish/guestfish.pod:237 ../fuse/guestmount.pod:146 ../rescue/virt-rescue.pod:128
304 msgid ""
305 "The default for the I<-a> option is to auto-detect the format of the disk "
306 "image.  Using this forces the disk format for I<-a> options which follow on "
307 "the command line.  Using I<--format> with no argument switches back to "
308 "auto-detection for subsequent I<-a> options."
309 msgstr ""
310
311 #. type: textblock
312 #: ../align/virt-alignment-scan.pod:132 ../cat/virt-cat.pod:114 ../cat/virt-filesystems.pod:179 ../cat/virt-ls.pod:337 ../clone/virt-sysprep.pod:104 ../df/virt-df.pod:110 ../edit/virt-edit.pod:141 ../fish/guestfish.pod:242 ../fish/guestfish.pod:673 ../inspector/virt-inspector.pod:351 ../rescue/virt-rescue.pod:133 ../src/guestfs.pod:2877
313 msgid "For example:"
314 msgstr ""
315
316 #. type: verbatim
317 #: ../align/virt-alignment-scan.pod:134
318 #, no-wrap
319 msgid ""
320 " virt-alignment-scan --format=raw -a disk.img\n"
321 "\n"
322 msgstr ""
323
324 #. type: textblock
325 #: ../align/virt-alignment-scan.pod:136 ../cat/virt-cat.pod:118 ../cat/virt-filesystems.pod:183 ../cat/virt-ls.pod:341 ../clone/virt-sysprep.pod:108 ../df/virt-df.pod:114 ../edit/virt-edit.pod:145 ../fish/guestfish.pod:246 ../rescue/virt-rescue.pod:137
326 msgid "forces raw format (no auto-detection) for C<disk.img>."
327 msgstr ""
328
329 #. type: verbatim
330 #: ../align/virt-alignment-scan.pod:138
331 #, no-wrap
332 msgid ""
333 " virt-alignment-scan --format=raw -a disk.img --format -a another.img\n"
334 "\n"
335 msgstr ""
336
337 #. type: textblock
338 #: ../align/virt-alignment-scan.pod:140 ../cat/virt-cat.pod:122 ../cat/virt-filesystems.pod:187 ../cat/virt-ls.pod:345 ../clone/virt-sysprep.pod:112 ../df/virt-df.pod:118 ../edit/virt-edit.pod:149 ../fish/guestfish.pod:250 ../rescue/virt-rescue.pod:141
339 msgid ""
340 "forces raw format (no auto-detection) for C<disk.img> and reverts to "
341 "auto-detection for C<another.img>."
342 msgstr ""
343
344 #. type: textblock
345 #: ../align/virt-alignment-scan.pod:143 ../cat/virt-cat.pod:125 ../cat/virt-filesystems.pod:190 ../cat/virt-ls.pod:348 ../clone/virt-sysprep.pod:115 ../df/virt-df.pod:121 ../edit/virt-edit.pod:152 ../rescue/virt-rescue.pod:144
346 msgid ""
347 "If you have untrusted raw-format guest disk images, you should use this "
348 "option to specify the disk format.  This avoids a possible security problem "
349 "with malicious guests (CVE-2010-3851)."
350 msgstr ""
351
352 #. type: =item
353 #: ../align/virt-alignment-scan.pod:147 ../resize/virt-resize.pod:491 ../sparsify/virt-sparsify.pod:152
354 msgid "B<-q>"
355 msgstr ""
356
357 #. type: =item
358 #: ../align/virt-alignment-scan.pod:149 ../resize/virt-resize.pod:493 ../sparsify/virt-sparsify.pod:154
359 msgid "B<--quiet>"
360 msgstr ""
361
362 #. type: textblock
363 #: ../align/virt-alignment-scan.pod:151
364 msgid ""
365 "Don't produce any output.  Just set the exit code (see L</EXIT STATUS> "
366 "below)."
367 msgstr ""
368
369 #. type: =item
370 #: ../align/virt-alignment-scan.pod:154 ../cat/virt-cat.pod:134 ../cat/virt-filesystems.pod:261 ../cat/virt-ls.pod:425 ../clone/virt-sysprep.pod:138 ../df/virt-df.pod:173 ../edit/virt-edit.pod:161 ../fish/guestfish.pod:390 ../fuse/guestmount.pod:266 ../inspector/virt-inspector.pod:119 ../rescue/virt-rescue.pod:182 ../sparsify/virt-sparsify.pod:158
371 msgid "B<-v>"
372 msgstr ""
373
374 #. type: =item
375 #: ../align/virt-alignment-scan.pod:156 ../cat/virt-cat.pod:136 ../cat/virt-filesystems.pod:263 ../cat/virt-ls.pod:427 ../clone/virt-sysprep.pod:140 ../df/virt-df.pod:175 ../edit/virt-edit.pod:163 ../fish/guestfish.pod:392 ../fuse/guestmount.pod:268 ../inspector/virt-inspector.pod:121 ../rescue/virt-rescue.pod:184 ../sparsify/virt-sparsify.pod:160
376 msgid "B<--verbose>"
377 msgstr ""
378
379 #. type: textblock
380 #: ../align/virt-alignment-scan.pod:158 ../cat/virt-cat.pod:138 ../cat/virt-filesystems.pod:265 ../cat/virt-ls.pod:429 ../clone/virt-sysprep.pod:142 ../df/virt-df.pod:177 ../edit/virt-edit.pod:165 ../inspector/virt-inspector.pod:123 ../rescue/virt-rescue.pod:186 ../sparsify/virt-sparsify.pod:162
381 msgid "Enable verbose messages for debugging."
382 msgstr ""
383
384 #. type: =item
385 #: ../align/virt-alignment-scan.pod:160 ../cat/virt-cat.pod:140 ../cat/virt-filesystems.pod:267 ../cat/virt-ls.pod:431 ../clone/virt-sysprep.pod:144 ../df/virt-df.pod:179 ../edit/virt-edit.pod:167 ../fish/guestfish.pod:397 ../fuse/guestmount.pod:272 ../inspector/virt-inspector.pod:125 ../rescue/virt-rescue.pod:188 ../resize/virt-resize.pod:561 ../sparsify/virt-sparsify.pod:164
386 msgid "B<-V>"
387 msgstr ""
388
389 #. type: =item
390 #: ../align/virt-alignment-scan.pod:162 ../cat/virt-cat.pod:142 ../cat/virt-filesystems.pod:269 ../cat/virt-ls.pod:433 ../clone/virt-sysprep.pod:146 ../df/virt-df.pod:181 ../edit/virt-edit.pod:169 ../fish/guestfish.pod:399 ../fuse/guestmount.pod:274 ../inspector/virt-inspector.pod:127 ../rescue/virt-rescue.pod:190 ../resize/virt-resize.pod:563 ../sparsify/virt-sparsify.pod:166 ../tools/virt-list-filesystems.pl:69 ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169 ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
391 msgid "B<--version>"
392 msgstr ""
393
394 #. type: textblock
395 #: ../align/virt-alignment-scan.pod:164 ../cat/virt-cat.pod:144 ../cat/virt-filesystems.pod:271 ../cat/virt-ls.pod:435 ../clone/virt-sysprep.pod:148 ../df/virt-df.pod:183 ../edit/virt-edit.pod:171 ../inspector/virt-inspector.pod:129 ../rescue/virt-rescue.pod:192 ../resize/virt-resize.pod:565 ../sparsify/virt-sparsify.pod:168 ../tools/virt-list-filesystems.pl:71 ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171 ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114
396 msgid "Display version number and exit."
397 msgstr ""
398
399 #. type: =item
400 #: ../align/virt-alignment-scan.pod:166 ../cat/virt-cat.pod:146 ../cat/virt-filesystems.pod:281 ../cat/virt-ls.pod:437 ../clone/virt-sysprep.pod:150 ../df/virt-df.pod:185 ../edit/virt-edit.pod:173 ../fish/guestfish.pod:412 ../fuse/guestmount.pod:287 ../inspector/virt-inspector.pod:131 ../rescue/virt-rescue.pod:203 ../sparsify/virt-sparsify.pod:170 ../tools/virt-tar.pl:158
401 msgid "B<-x>"
402 msgstr ""
403
404 #. type: textblock
405 #: ../align/virt-alignment-scan.pod:168 ../cat/virt-cat.pod:148 ../cat/virt-filesystems.pod:283 ../cat/virt-ls.pod:439 ../clone/virt-sysprep.pod:152 ../df/virt-df.pod:187 ../edit/virt-edit.pod:175 ../inspector/virt-inspector.pod:133 ../rescue/virt-rescue.pod:205 ../sparsify/virt-sparsify.pod:172
406 msgid "Enable tracing of libguestfs API calls."
407 msgstr ""
408
409 #. type: =head1
410 #: ../align/virt-alignment-scan.pod:172
411 msgid "RECOMMENDED ALIGNMENT"
412 msgstr ""
413
414 #. type: textblock
415 #: ../align/virt-alignment-scan.pod:174
416 msgid ""
417 "Operating systems older than Windows 2008 and Linux before ca.2010 place the "
418 "first sector of the first partition at sector 63, with a 512 byte sector "
419 "size.  This happens because of a historical accident.  Drives have to report "
420 "a cylinder / head / sector (CHS) geometry to the BIOS.  The geometry is "
421 "completely meaningless on modern drives, but it happens that the geometry "
422 "reported always has 63 sectors per track.  The operating system therefore "
423 "places the first partition at the start of the second \"track\", at sector "
424 "63."
425 msgstr ""
426
427 #. type: textblock
428 #: ../align/virt-alignment-scan.pod:183
429 msgid ""
430 "When the guest OS is virtualized, the host operating system and hypervisor "
431 "may prefer accesses aligned to one of:"
432 msgstr ""
433
434 #. type: =item
435 #: ../align/virt-alignment-scan.pod:188
436 msgid "* 512 bytes"
437 msgstr ""
438
439 #. type: textblock
440 #: ../align/virt-alignment-scan.pod:190
441 msgid ""
442 "if the host OS uses local storage directly on hard drive partitions, and the "
443 "hard drive has 512 byte physical sectors."
444 msgstr ""
445
446 #. type: =item
447 #: ../align/virt-alignment-scan.pod:193
448 msgid "* 4 Kbytes"
449 msgstr ""
450
451 #. type: textblock
452 #: ../align/virt-alignment-scan.pod:195
453 msgid ""
454 "for local storage on new hard drives with 4Kbyte physical sectors; for "
455 "file-backed storage on filesystems with 4Kbyte block size; or for some types "
456 "of network-attached storage."
457 msgstr ""
458
459 #. type: =item
460 #: ../align/virt-alignment-scan.pod:199
461 msgid "* 64 Kbytes"
462 msgstr ""
463
464 #. type: textblock
465 #: ../align/virt-alignment-scan.pod:201
466 msgid ""
467 "for high-end network-attached storage.  This is the optimal block size for "
468 "some NetApp hardware."
469 msgstr ""
470
471 #. type: =item
472 #: ../align/virt-alignment-scan.pod:204
473 msgid "* 1 Mbyte"
474 msgstr ""
475
476 #. type: textblock
477 #: ../align/virt-alignment-scan.pod:206
478 msgid "see L</1 MB PARTITION ALIGNMENT> below."
479 msgstr ""
480
481 #. type: textblock
482 #: ../align/virt-alignment-scan.pod:210
483 msgid ""
484 "Partitions which are not aligned correctly to the underlying storage cause "
485 "extra I/O.  For example:"
486 msgstr ""
487
488 #. type: verbatim
489 #: ../align/virt-alignment-scan.pod:213
490 #, no-wrap
491 msgid ""
492 "                       sect#63\n"
493 "                       +--------------------------+------\n"
494 "                       |         guest            |\n"
495 "                       |    filesystem block      |\n"
496 " ---+------------------+------+-------------------+-----+---\n"
497 "    |  host block             |  host block             |\n"
498 "    |                         |                         |\n"
499 " ---+-------------------------+-------------------------+---\n"
500 "\n"
501 msgstr ""
502
503 #. type: textblock
504 #: ../align/virt-alignment-scan.pod:222
505 msgid ""
506 "In this example, each time a 4K guest block is read, two blocks on the host "
507 "must be accessed (so twice as much I/O is done).  When a 4K guest block is "
508 "written, two host blocks must first be read, the old and new data combined, "
509 "and the two blocks written back (4x I/O)."
510 msgstr ""
511
512 #. type: =head2
513 #: ../align/virt-alignment-scan.pod:227
514 msgid "LINUX HOST BLOCK AND I/O SIZE"
515 msgstr ""
516
517 #. type: textblock
518 #: ../align/virt-alignment-scan.pod:229
519 msgid ""
520 "New versions of the Linux kernel expose the physical and logical block size, "
521 "and minimum and recommended I/O size."
522 msgstr ""
523
524 #. type: textblock
525 #: ../align/virt-alignment-scan.pod:232
526 msgid "For a typical consumer hard drive with 512 byte sectors:"
527 msgstr ""
528
529 #. type: verbatim
530 #: ../align/virt-alignment-scan.pod:234
531 #, no-wrap
532 msgid ""
533 " $ cat /sys/block/sda/queue/hw_sector_size\n"
534 " 512\n"
535 " $ cat /sys/block/sda/queue/physical_block_size\n"
536 " 512\n"
537 " $ cat /sys/block/sda/queue/logical_block_size\n"
538 " 512\n"
539 " $ cat /sys/block/sda/queue/minimum_io_size\n"
540 " 512\n"
541 " $ cat /sys/block/sda/queue/optimal_io_size\n"
542 " 0\n"
543 "\n"
544 msgstr ""
545
546 #. type: textblock
547 #: ../align/virt-alignment-scan.pod:245
548 msgid "For a new consumer hard drive with 4Kbyte sectors:"
549 msgstr ""
550
551 #. type: verbatim
552 #: ../align/virt-alignment-scan.pod:247
553 #, no-wrap
554 msgid ""
555 " $ cat /sys/block/sda/queue/hw_sector_size\n"
556 " 4096\n"
557 " $ cat /sys/block/sda/queue/physical_block_size\n"
558 " 4096\n"
559 " $ cat /sys/block/sda/queue/logical_block_size\n"
560 " 4096\n"
561 " $ cat /sys/block/sda/queue/minimum_io_size\n"
562 " 4096\n"
563 " $ cat /sys/block/sda/queue/optimal_io_size\n"
564 " 0\n"
565 "\n"
566 msgstr ""
567
568 #. type: textblock
569 #: ../align/virt-alignment-scan.pod:258
570 msgid "For a NetApp LUN:"
571 msgstr ""
572
573 #. type: verbatim
574 #: ../align/virt-alignment-scan.pod:260
575 #, no-wrap
576 msgid ""
577 " $ cat /sys/block/sdc/queue/logical_block_size\n"
578 " 512\n"
579 " $ cat /sys/block/sdc/queue/physical_block_size\n"
580 " 512\n"
581 " $ cat /sys/block/sdc/queue/minimum_io_size\n"
582 " 4096\n"
583 " $ cat /sys/block/sdc/queue/optimal_io_size\n"
584 " 65536\n"
585 "\n"
586 msgstr ""
587
588 #. type: textblock
589 #: ../align/virt-alignment-scan.pod:269
590 msgid ""
591 "The NetApp allows 512 byte accesses (but they will be very inefficient), "
592 "prefers a minimum 4K I/O size, but the optimal I/O size is 64K."
593 msgstr ""
594
595 #. type: textblock
596 #: ../align/virt-alignment-scan.pod:273
597 msgid ""
598 "For detailed information about what these numbers mean, see "
599 "L<http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Storage_Administration_Guide/newstorage-iolimits.html>"
600 msgstr ""
601
602 #. type: textblock
603 #: ../align/virt-alignment-scan.pod:276
604 msgid ""
605 "[Thanks to Matt Booth for providing 4K drive data.  Thanks to Mike Snitzer "
606 "for providing NetApp data and additional information.]"
607 msgstr ""
608
609 #. type: =head2
610 #: ../align/virt-alignment-scan.pod:279
611 msgid "1 MB PARTITION ALIGNMENT"
612 msgstr ""
613
614 #. type: textblock
615 #: ../align/virt-alignment-scan.pod:281
616 msgid ""
617 "Microsoft picked 1 MB as the default alignment for all partitions starting "
618 "with Windows 2008 Server, and Linux has followed this."
619 msgstr ""
620
621 #. type: textblock
622 #: ../align/virt-alignment-scan.pod:284
623 msgid ""
624 "Assuming 512 byte sectors in the guest, you will now see the first partition "
625 "starting at sector 2048, and subsequent partitions (if any)  will start at a "
626 "multiple of 2048 sectors."
627 msgstr ""
628
629 #. type: textblock
630 #: ../align/virt-alignment-scan.pod:288
631 msgid ""
632 "1 MB alignment is compatible with all current alignment requirements (4K, "
633 "64K) and provides room for future growth in physical block sizes."
634 msgstr ""
635
636 #. type: =head2
637 #: ../align/virt-alignment-scan.pod:291
638 msgid "SETTING ALIGNMENT"
639 msgstr ""
640
641 #. type: textblock
642 #: ../align/virt-alignment-scan.pod:293
643 msgid ""
644 "L<virt-resize(1)> can change the alignment of the partitions of some "
645 "guests.  Currently it can fully align all the partitions of all Windows "
646 "guests, and it will fix the bootloader where necessary.  For Linux guests, "
647 "it can align the second and subsequent partitions, so the majority of OS "
648 "accesses except at boot will be aligned."
649 msgstr ""
650
651 #. type: textblock
652 #: ../align/virt-alignment-scan.pod:299
653 msgid ""
654 "Another way to correct partition alignment problems is to reinstall your "
655 "guest operating systems.  If you install operating systems from templates, "
656 "ensure these have correct partition alignment too."
657 msgstr ""
658
659 #. type: textblock
660 #: ../align/virt-alignment-scan.pod:303
661 msgid ""
662 "For older versions of Windows, the following NetApp document contains useful "
663 "information: L<http://media.netapp.com/documents/tr-3747.pdf>"
664 msgstr ""
665
666 #. type: textblock
667 #: ../align/virt-alignment-scan.pod:306
668 msgid ""
669 "For Red Hat Enterprise Linux E<le> 5, use a Kickstart script that contains "
670 "an explicit C<%pre> section that creates aligned partitions using "
671 "L<parted(8)>.  Do not use the Kickstart C<part> command.  The NetApp "
672 "document above contains an example."
673 msgstr ""
674
675 #. type: =head1
676 #: ../align/virt-alignment-scan.pod:311 ../cat/virt-cat.pod:231 ../cat/virt-filesystems.pod:373 ../cat/virt-ls.pod:483 ../clone/virt-sysprep.pod:475 ../df/virt-df.pod:241 ../edit/virt-edit.pod:342 ../inspector/virt-inspector.pod:367 ../rescue/virt-rescue.pod:266 ../resize/virt-resize.pod:676 ../tools/virt-list-filesystems.pl:188 ../tools/virt-list-partitions.pl:258 ../tools/virt-make-fs.pl:550 ../tools/virt-tar.pl:289 ../tools/virt-win-reg.pl:744
677 msgid "SHELL QUOTING"
678 msgstr ""
679
680 #. type: textblock
681 #: ../align/virt-alignment-scan.pod:313 ../cat/virt-cat.pod:233 ../cat/virt-filesystems.pod:375 ../cat/virt-ls.pod:485 ../clone/virt-sysprep.pod:477 ../df/virt-df.pod:243 ../edit/virt-edit.pod:344 ../inspector/virt-inspector.pod:369 ../rescue/virt-rescue.pod:268 ../resize/virt-resize.pod:678 ../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:683 ../sparsify/virt-sparsify.pod:226 ../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:359 ../resize/virt-resize.pod:363 ../resize/virt-resize.pod:372 ../resize/virt-resize.pod:378 ../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:3062 ../src/guestfs.pod:3067 ../src/guestfs.pod:3071 ../src/guestfs.pod:3075 ../src/guestfs.pod:3079 ../src/guestfs.pod:3093 ../src/guestfs.pod:3098 ../src/guestfs.pod:3330 ../src/guestfs.pod:3334 ../src/guestfs.pod:3338 ../src/guestfs.pod:3342 ../tools/virt-win-reg.pl:197 ../tools/virt-win-reg.pl:202 ../tools/virt-win-reg.pl:208 ../tools/virt-win-reg.pl:721 ../tools/virt-win-reg.pl:727 ../tools/virt-win-reg.pl:733
701 msgid "*"
702 msgstr ""
703
704 #. type: textblock
705 #: ../align/virt-alignment-scan.pod:326
706 msgid "0"
707 msgstr ""
708
709 #. type: textblock
710 #: ../align/virt-alignment-scan.pod:328
711 msgid "successful exit, all partitions are aligned E<ge> 64K for best performance"
712 msgstr ""
713
714 #. type: textblock
715 #: ../align/virt-alignment-scan.pod:332
716 msgid "1"
717 msgstr ""
718
719 #. type: textblock
720 #: ../align/virt-alignment-scan.pod:334
721 msgid "an error scanning the disk image or guest"
722 msgstr ""
723
724 #. type: textblock
725 #: ../align/virt-alignment-scan.pod:338
726 msgid "2"
727 msgstr ""
728
729 #. type: textblock
730 #: ../align/virt-alignment-scan.pod:340
731 msgid ""
732 "successful exit, some partitions have alignment E<lt> 64K which can result "
733 "in poor performance on high end network storage"
734 msgstr ""
735
736 #. type: textblock
737 #: ../align/virt-alignment-scan.pod:345
738 msgid "3"
739 msgstr ""
740
741 #. type: textblock
742 #: ../align/virt-alignment-scan.pod:347
743 msgid ""
744 "successful exit, some partitions have alignment E<lt> 4K which can result in "
745 "poor performance on most hypervisors"
746 msgstr ""
747
748 #. type: =head1
749 #: ../align/virt-alignment-scan.pod:352 ../cat/virt-cat.pod:243 ../cat/virt-filesystems.pod:385 ../cat/virt-ls.pod:495 ../clone/virt-sysprep.pod:486 ../df/virt-df.pod:253 ../edit/virt-edit.pod:354 ../erlang/examples/guestfs-erlang.pod:97 ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384 ../examples/guestfs-testing.pod:291 ../fish/guestfish.pod:1268 ../fish/virt-copy-in.pod:50 ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47 ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:317 ../inspector/virt-inspector.pod:395 ../java/examples/guestfs-java.pod:45 ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39 ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:288 ../resize/virt-resize.pod:688 ../ruby/examples/guestfs-ruby.pod:36 ../sparsify/virt-sparsify.pod:250 ../src/guestfs.pod:3270 ../test-tool/libguestfs-test-tool.pod:100 ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265 ../tools/virt-make-fs.pl:557 ../tools/virt-tar.pl:296 ../tools/virt-win-reg.pl:757
750 msgid "SEE ALSO"
751 msgstr ""
752
753 #. type: textblock
754 #: ../align/virt-alignment-scan.pod:354
755 msgid ""
756 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-rescue(1)>, "
757 "L<virt-resize(1)>, L<http://libguestfs.org/>."
758 msgstr ""
759
760 #. type: =head1
761 #: ../align/virt-alignment-scan.pod:361 ../cat/virt-cat.pod:252 ../cat/virt-filesystems.pod:396 ../cat/virt-ls.pod:507 ../clone/virt-sysprep.pod:501 ../df/virt-df.pod:261 ../edit/virt-edit.pod:368 ../rescue/virt-rescue.pod:296 ../resize/virt-resize.pod:711 ../sparsify/virt-sparsify.pod:263 ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277 ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:311 ../tools/virt-win-reg.pl:783
762 msgid "AUTHOR"
763 msgstr ""
764
765 #. type: textblock
766 #: ../align/virt-alignment-scan.pod:363 ../cat/virt-cat.pod:254 ../cat/virt-filesystems.pod:398 ../cat/virt-ls.pod:509 ../clone/virt-sysprep.pod:503 ../df/virt-df.pod:263 ../edit/virt-edit.pod:370 ../inspector/virt-inspector.pod:410 ../rescue/virt-rescue.pod:298 ../resize/virt-resize.pod:713 ../sparsify/virt-sparsify.pod:265 ../tools/virt-list-filesystems.pl:210 ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:584 ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:785
767 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
768 msgstr ""
769
770 #. type: =head1
771 #: ../align/virt-alignment-scan.pod:365 ../cat/virt-cat.pod:256 ../cat/virt-filesystems.pod:400 ../cat/virt-ls.pod:511 ../clone/virt-sysprep.pod:505 ../df/virt-df.pod:265 ../edit/virt-edit.pod:372 ../erlang/examples/guestfs-erlang.pod:114 ../examples/guestfs-examples.pod:49 ../examples/guestfs-recipes.pod:401 ../examples/guestfs-testing.pod:302 ../fish/guestfish.pod:1300 ../fish/virt-copy-in.pod:64 ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62 ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:332 ../inspector/virt-inspector.pod:418 ../java/examples/guestfs-java.pod:62 ../ocaml/examples/guestfs-ocaml.pod:95 ../perl/examples/guestfs-perl.pod:56 ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:300 ../resize/virt-resize.pod:715 ../ruby/examples/guestfs-ruby.pod:52 ../sparsify/virt-sparsify.pod:267 ../src/guestfs.pod:3353 ../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:269
777 msgid "Copyright (C) 2011 Red Hat Inc."
778 msgstr ""
779
780 #. type: textblock
781 #: ../align/virt-alignment-scan.pod:369 ../cat/virt-cat.pod:260 ../cat/virt-filesystems.pod:404 ../cat/virt-ls.pod:515 ../clone/virt-sysprep.pod:509 ../df/virt-df.pod:269 ../edit/virt-edit.pod:376 ../fish/guestfish.pod:1305 ../fish/virt-copy-in.pod:69 ../fish/virt-copy-out.pod:58 ../fish/virt-tar-in.pod:67 ../fish/virt-tar-out.pod:60 ../fuse/guestmount.pod:337 ../inspector/virt-inspector.pod:422 ../rescue/virt-rescue.pod:304 ../resize/virt-resize.pod:719 ../sparsify/virt-sparsify.pod:271 ../test-tool/libguestfs-test-tool.pod:115 ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285 ../tools/virt-make-fs.pl:590 ../tools/virt-tar.pl:319 ../tools/virt-win-reg.pl:791
782 msgid ""
783 "This program is free software; you can redistribute it and/or modify it "
784 "under the terms of the GNU General Public License as published by the Free "
785 "Software Foundation; either version 2 of the License, or (at your option) "
786 "any later version."
787 msgstr ""
788
789 #. type: textblock
790 #: ../align/virt-alignment-scan.pod:374 ../cat/virt-cat.pod:265 ../cat/virt-filesystems.pod:409 ../cat/virt-ls.pod:520 ../clone/virt-sysprep.pod:514 ../df/virt-df.pod:274 ../edit/virt-edit.pod:381 ../fish/guestfish.pod:1310 ../fish/virt-copy-in.pod:74 ../fish/virt-copy-out.pod:63 ../fish/virt-tar-in.pod:72 ../fish/virt-tar-out.pod:65 ../fuse/guestmount.pod:342 ../inspector/virt-inspector.pod:427 ../rescue/virt-rescue.pod:309 ../resize/virt-resize.pod:724 ../sparsify/virt-sparsify.pod:276 ../test-tool/libguestfs-test-tool.pod:120 ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290 ../tools/virt-make-fs.pl:595 ../tools/virt-tar.pl:324 ../tools/virt-win-reg.pl:796
791 msgid ""
792 "This program is distributed in the hope that it will be useful, but WITHOUT "
793 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
794 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
795 "more details."
796 msgstr ""
797
798 #. type: textblock
799 #: ../align/virt-alignment-scan.pod:379 ../cat/virt-cat.pod:270 ../cat/virt-filesystems.pod:414 ../cat/virt-ls.pod:525 ../clone/virt-sysprep.pod:519 ../df/virt-df.pod:279 ../edit/virt-edit.pod:386 ../fish/guestfish.pod:1315 ../fish/virt-copy-in.pod:79 ../fish/virt-copy-out.pod:68 ../fish/virt-tar-in.pod:77 ../fish/virt-tar-out.pod:70 ../fuse/guestmount.pod:347 ../inspector/virt-inspector.pod:432 ../rescue/virt-rescue.pod:314 ../resize/virt-resize.pod:729 ../sparsify/virt-sparsify.pod:281 ../test-tool/libguestfs-test-tool.pod:125 ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295 ../tools/virt-make-fs.pl:600 ../tools/virt-tar.pl:329 ../tools/virt-win-reg.pl:801
800 msgid ""
801 "You should have received a copy of the GNU General Public License along with "
802 "this program; if not, write to the Free Software Foundation, Inc., 51 "
803 "Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA."
804 msgstr ""
805
806 #. type: textblock
807 #: ../cat/virt-cat.pod:5
808 msgid "virt-cat - Display files in a virtual machine"
809 msgstr ""
810
811 #. type: verbatim
812 #: ../cat/virt-cat.pod:9
813 #, no-wrap
814 msgid ""
815 " virt-cat [--options] -d domname file [file ...]\n"
816 "\n"
817 msgstr ""
818
819 #. type: verbatim
820 #: ../cat/virt-cat.pod:11
821 #, no-wrap
822 msgid ""
823 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
824 "\n"
825 msgstr ""
826
827 #. type: textblock
828 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15 ../inspector/virt-inspector.pod:13
829 msgid "Old-style:"
830 msgstr ""
831
832 #. type: verbatim
833 #: ../cat/virt-cat.pod:15
834 #, no-wrap
835 msgid ""
836 " virt-cat domname file\n"
837 "\n"
838 msgstr ""
839
840 #. type: verbatim
841 #: ../cat/virt-cat.pod:17
842 #, no-wrap
843 msgid ""
844 " virt-cat disk.img file\n"
845 "\n"
846 msgstr ""
847
848 #. type: textblock
849 #: ../cat/virt-cat.pod:21
850 msgid ""
851 "C<virt-cat> is a command line tool to display the contents of C<file> where "
852 "C<file> exists in the named virtual machine (or disk image)."
853 msgstr ""
854
855 #. type: textblock
856 #: ../cat/virt-cat.pod:24
857 msgid ""
858 "Multiple filenames can be given, in which case they are concatenated "
859 "together.  Each filename must be a full path, starting at the root directory "
860 "(starting with '/')."
861 msgstr ""
862
863 #. type: textblock
864 #: ../cat/virt-cat.pod:28
865 msgid ""
866 "C<virt-cat> can be used to quickly view a file.  To edit a file, use "
867 "C<virt-edit>.  For more complex cases you should look at the L<guestfish(1)> "
868 "tool (see L</USING GUESTFISH> below)."
869 msgstr ""
870
871 #. type: =head1
872 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43 ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41 ../fish/guestfish.pod:1051 ../fish/virt-copy-in.pod:29 ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30 ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39 ../resize/virt-resize.pod:27 ../sparsify/virt-sparsify.pod:75 ../tools/virt-tar.pl:50
873 msgid "EXAMPLES"
874 msgstr ""
875
876 #. type: textblock
877 #: ../cat/virt-cat.pod:34
878 msgid "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
879 msgstr ""
880
881 #. type: verbatim
882 #: ../cat/virt-cat.pod:37
883 #, no-wrap
884 msgid ""
885 " virt-cat -d mydomain /etc/fstab\n"
886 "\n"
887 msgstr ""
888
889 #. type: textblock
890 #: ../cat/virt-cat.pod:39
891 msgid "List syslog messages from a VM disk image file:"
892 msgstr ""
893
894 #. type: verbatim
895 #: ../cat/virt-cat.pod:41
896 #, no-wrap
897 msgid ""
898 " virt-cat -a disk.img /var/log/messages | tail\n"
899 "\n"
900 msgstr ""
901
902 #. type: textblock
903 #: ../cat/virt-cat.pod:43
904 msgid "Find out what DHCP IP address a VM acquired:"
905 msgstr ""
906
907 #. type: verbatim
908 #: ../cat/virt-cat.pod:45
909 #, no-wrap
910 msgid ""
911 " virt-cat -d mydomain /var/log/messages | \\\n"
912 "   grep 'dhclient: bound to' | tail\n"
913 "\n"
914 msgstr ""
915
916 #. type: textblock
917 #: ../cat/virt-cat.pod:48
918 msgid "Find out what packages were recently installed:"
919 msgstr ""
920
921 #. type: verbatim
922 #: ../cat/virt-cat.pod:50
923 #, no-wrap
924 msgid ""
925 " virt-cat -d mydomain /var/log/yum.log | tail\n"
926 "\n"
927 msgstr ""
928
929 #. type: textblock
930 #: ../cat/virt-cat.pod:52
931 msgid "Find out who is logged on inside a virtual machine:"
932 msgstr ""
933
934 #. type: verbatim
935 #: ../cat/virt-cat.pod:54
936 #, no-wrap
937 msgid ""
938 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
939 " who /tmp/utmp\n"
940 "\n"
941 msgstr ""
942
943 #. type: textblock
944 #: ../cat/virt-cat.pod:57
945 msgid "or who was logged on:"
946 msgstr ""
947
948 #. type: verbatim
949 #: ../cat/virt-cat.pod:59
950 #, no-wrap
951 msgid ""
952 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
953 " last -f /tmp/wtmp\n"
954 "\n"
955 msgstr ""
956
957 #. type: textblock
958 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103 ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74 ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
959 msgid ""
960 "Add I<file> which should be a disk image from a virtual machine.  If the "
961 "virtual machine has multiple block devices, you must supply all of them with "
962 "separate I<-a> options."
963 msgstr ""
964
965 #. type: =item
966 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148 ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217 ../fuse/guestmount.pod:135 ../inspector/virt-inspector.pod:92
967 msgid "B<--echo-keys>"
968 msgstr ""
969
970 #. type: textblock
971 #: ../cat/virt-cat.pod:100
972 msgid ""
973 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
974 "so you cannot see what you are typing.  If you are not worried about Tempest "
975 "attacks and there is no one else in the room you can specify this flag to "
976 "see what you are typing."
977 msgstr ""
978
979 #. type: verbatim
980 #: ../cat/virt-cat.pod:116
981 #, no-wrap
982 msgid ""
983 " virt-cat --format=raw -a disk.img file\n"
984 "\n"
985 msgstr ""
986
987 #. type: verbatim
988 #: ../cat/virt-cat.pod:120
989 #, no-wrap
990 msgid ""
991 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
992 "\n"
993 msgstr ""
994
995 #. type: =item
996 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200 ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289 ../fuse/guestmount.pod:172 ../inspector/virt-inspector.pod:114
997 msgid "B<--keys-from-stdin>"
998 msgstr ""
999
1000 #. type: textblock
1001 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202 ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291 ../fuse/guestmount.pod:174 ../inspector/virt-inspector.pod:116
1002 msgid ""
1003 "Read key or passphrase parameters from stdin.  The default is to try to read "
1004 "passphrases from the user by opening C</dev/tty>."
1005 msgstr ""
1006
1007 #. type: =head1
1008 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179 ../inspector/virt-inspector.pod:144 ../rescue/virt-rescue.pod:209
1009 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
1010 msgstr ""
1011
1012 #. type: textblock
1013 #: ../cat/virt-cat.pod:154
1014 msgid "Previous versions of virt-cat allowed you to write either:"
1015 msgstr ""
1016
1017 #. type: verbatim
1018 #: ../cat/virt-cat.pod:156
1019 #, no-wrap
1020 msgid ""
1021 " virt-cat disk.img [disk.img ...] file\n"
1022 "\n"
1023 msgstr ""
1024
1025 #. type: textblock
1026 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185 ../inspector/virt-inspector.pod:150 ../rescue/virt-rescue.pod:215
1027 msgid "or"
1028 msgstr ""
1029
1030 #. type: verbatim
1031 #: ../cat/virt-cat.pod:160
1032 #, no-wrap
1033 msgid ""
1034 " virt-cat guestname file\n"
1035 "\n"
1036 msgstr ""
1037
1038 #. type: textblock
1039 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189 ../inspector/virt-inspector.pod:154 ../rescue/virt-rescue.pod:219
1040 msgid ""
1041 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
1042 "the confusing case where a disk image might have the same name as a guest."
1043 msgstr ""
1044
1045 #. type: textblock
1046 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193 ../inspector/virt-inspector.pod:158 ../rescue/virt-rescue.pod:223
1047 msgid "For compatibility the old style is still supported."
1048 msgstr ""
1049
1050 #. type: =head1
1051 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
1052 msgid "WINDOWS PATHS"
1053 msgstr ""
1054
1055 #. type: textblock
1056 #: ../cat/virt-cat.pod:170
1057 msgid ""
1058 "C<virt-cat> has a limited ability to understand Windows drive letters and "
1059 "paths (eg. C<E:\\foo\\bar.txt>)."
1060 msgstr ""
1061
1062 #. type: textblock
1063 #: ../cat/virt-cat.pod:173 ../edit/virt-edit.pod:262
1064 msgid "If and only if the guest is running Windows then:"
1065 msgstr ""
1066
1067 #. type: textblock
1068 #: ../cat/virt-cat.pod:179 ../edit/virt-edit.pod:268
1069 msgid ""
1070 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
1071 "to the correct filesystem."
1072 msgstr ""
1073
1074 #. type: textblock
1075 #: ../cat/virt-cat.pod:184 ../edit/virt-edit.pod:273
1076 msgid ""
1077 "Any backslash (C<\\>) characters in the path are replaced with forward "
1078 "slashes so that libguestfs can process it."
1079 msgstr ""
1080
1081 #. type: textblock
1082 #: ../cat/virt-cat.pod:189
1083 msgid ""
1084 "The path is resolved case insensitively to locate the file that should be "
1085 "displayed."
1086 msgstr ""
1087
1088 #. type: textblock
1089 #: ../cat/virt-cat.pod:194 ../edit/virt-edit.pod:283
1090 msgid "There are some known shortcomings:"
1091 msgstr ""
1092
1093 #. type: textblock
1094 #: ../cat/virt-cat.pod:200 ../edit/virt-edit.pod:289
1095 msgid "Some NTFS symbolic links may not be followed correctly."
1096 msgstr ""
1097
1098 #. type: textblock
1099 #: ../cat/virt-cat.pod:204 ../edit/virt-edit.pod:293
1100 msgid "NTFS junction points that cross filesystems are not followed."
1101 msgstr ""
1102
1103 #. type: =head1
1104 #: ../cat/virt-cat.pod:208 ../edit/virt-edit.pod:297
1105 msgid "USING GUESTFISH"
1106 msgstr ""
1107
1108 #. type: textblock
1109 #: ../cat/virt-cat.pod:210
1110 msgid ""
1111 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
1112 "C<virt-cat> doesn't work."
1113 msgstr ""
1114
1115 #. type: textblock
1116 #: ../cat/virt-cat.pod:213
1117 msgid "Using C<virt-cat> is approximately equivalent to doing:"
1118 msgstr ""
1119
1120 #. type: verbatim
1121 #: ../cat/virt-cat.pod:215
1122 #, no-wrap
1123 msgid ""
1124 " guestfish --ro -i -d domname download file -\n"
1125 "\n"
1126 msgstr ""
1127
1128 #. type: textblock
1129 #: ../cat/virt-cat.pod:217
1130 msgid ""
1131 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
1132 "path to the file.  Note the final C<-> (meaning \"output to stdout\")."
1133 msgstr ""
1134
1135 #. type: textblock
1136 #: ../cat/virt-cat.pod:221
1137 msgid ""
1138 "The command above uses libguestfs's guest inspection feature and so does not "
1139 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
1140 "disk images that don't contain guests.  To display a file from a disk image "
1141 "directly, use:"
1142 msgstr ""
1143
1144 #. type: verbatim
1145 #: ../cat/virt-cat.pod:226
1146 #, no-wrap
1147 msgid ""
1148 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
1149 "\n"
1150 msgstr ""
1151
1152 #. type: textblock
1153 #: ../cat/virt-cat.pod:228
1154 msgid ""
1155 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
1156 "the disk image, and C<file> is the full path to the file."
1157 msgstr ""
1158
1159 #. type: textblock
1160 #: ../cat/virt-cat.pod:240 ../cat/virt-filesystems.pod:382 ../cat/virt-ls.pod:492 ../df/virt-df.pod:250 ../edit/virt-edit.pod:351 ../fuse/guestmount.pod:314 ../inspector/virt-inspector.pod:392 ../resize/virt-resize.pod:685 ../sparsify/virt-sparsify.pod:228
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:717 ../tools/virt-make-fs.pl:588
1173 msgid "Copyright (C) 2010-2011 Red Hat Inc."
1174 msgstr ""
1175
1176 #. type: textblock
1177 #: ../cat/virt-filesystems.pod:5
1178 msgid ""
1179 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
1180 "virtual machine or disk image"
1181 msgstr ""
1182
1183 #. type: verbatim
1184 #: ../cat/virt-filesystems.pod:9
1185 #, no-wrap
1186 msgid ""
1187 " virt-filesystems [--options] -d domname\n"
1188 "\n"
1189 msgstr ""
1190
1191 #. type: verbatim
1192 #: ../cat/virt-filesystems.pod:11
1193 #, no-wrap
1194 msgid ""
1195 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
1196 "\n"
1197 msgstr ""
1198
1199 #. type: textblock
1200 #: ../cat/virt-filesystems.pod:15
1201 msgid ""
1202 "This tool allows you to discover filesystems, partitions, logical volumes, "
1203 "and their sizes in a disk image or virtual machine.  It is a replacement for "
1204 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
1205 msgstr ""
1206
1207 #. type: textblock
1208 #: ../cat/virt-filesystems.pod:20
1209 msgid ""
1210 "One use for this tool is from shell scripts to iterate over all filesystems "
1211 "from a disk image:"
1212 msgstr ""
1213
1214 #. type: verbatim
1215 #: ../cat/virt-filesystems.pod:23
1216 #, no-wrap
1217 msgid ""
1218 " for fs in $(virt-filesystems -a disk.img); do\n"
1219 "   # ...\n"
1220 " done\n"
1221 "\n"
1222 msgstr ""
1223
1224 #. type: textblock
1225 #: ../cat/virt-filesystems.pod:27
1226 msgid ""
1227 "Another use is to list partitions before using another tool to modify those "
1228 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
1229 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
1230 msgstr ""
1231
1232 #. type: textblock
1233 #: ../cat/virt-filesystems.pod:32
1234 msgid ""
1235 "Various command line options control what this program displays.  You need "
1236 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
1237 "guest respectively.  If you just specify that then the program shows "
1238 "filesystems found, one per line, like this:"
1239 msgstr ""
1240
1241 #. type: verbatim
1242 #: ../cat/virt-filesystems.pod:37
1243 #, no-wrap
1244 msgid ""
1245 " $ virt-filesystems -a disk.img\n"
1246 " /dev/sda1\n"
1247 " /dev/vg_guest/lv_root\n"
1248 "\n"
1249 msgstr ""
1250
1251 #. type: textblock
1252 #: ../cat/virt-filesystems.pod:41
1253 msgid "If you add I<-l> or I<--long> then the output includes extra information:"
1254 msgstr ""
1255
1256 #. type: verbatim
1257 #: ../cat/virt-filesystems.pod:44
1258 #, no-wrap
1259 msgid ""
1260 " $ virt-filesystems -a disk.img -l\n"
1261 " Name                   Type         VFS   Label  Size\n"
1262 " /dev/sda1              filesystem   ext4  boot   524288000\n"
1263 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
1264 "\n"
1265 msgstr ""
1266
1267 #. type: textblock
1268 #: ../cat/virt-filesystems.pod:49
1269 msgid ""
1270 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
1271 "shown as well:"
1272 msgstr ""
1273
1274 #. type: verbatim
1275 #: ../cat/virt-filesystems.pod:52
1276 #, no-wrap
1277 msgid ""
1278 " $ virt-filesystems -a disk.img --extra\n"
1279 " /dev/sda1\n"
1280 " /dev/vg_guest/lv_root\n"
1281 " /dev/vg_guest/lv_swap\n"
1282 " /dev/vg_guest/lv_data\n"
1283 "\n"
1284 msgstr ""
1285
1286 #. type: textblock
1287 #: ../cat/virt-filesystems.pod:58
1288 msgid "If you add I<--partitions> then partitions are shown instead of filesystems:"
1289 msgstr ""
1290
1291 #. type: verbatim
1292 #: ../cat/virt-filesystems.pod:60
1293 #, no-wrap
1294 msgid ""
1295 " $ virt-filesystems -a disk.img --partitions\n"
1296 " /dev/sda1\n"
1297 " /dev/sda2\n"
1298 "\n"
1299 msgstr ""
1300
1301 #. type: textblock
1302 #: ../cat/virt-filesystems.pod:64
1303 msgid ""
1304 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, "
1305 "I<--physical-volumes>, I<--block-devices> to list those items."
1306 msgstr ""
1307
1308 #. type: textblock
1309 #: ../cat/virt-filesystems.pod:67
1310 msgid ""
1311 "You can use these options in combination as well (if you want a combination "
1312 "including filesystems, you have to add I<--filesystems>).  Notice that some "
1313 "items fall into several categories (eg. C</dev/sda1> might be both a "
1314 "partition and a filesystem).  These items are listed several times.  To get "
1315 "a list which includes absolutely everything that virt-filesystems knows "
1316 "about, use the I<--all> option."
1317 msgstr ""
1318
1319 #. type: textblock
1320 #: ../cat/virt-filesystems.pod:74
1321 msgid ""
1322 "UUIDs (because they are quite long) are not shown by default.  Add the "
1323 "I<--uuid> option to display device and filesystem UUIDs in the long output."
1324 msgstr ""
1325
1326 #. type: textblock
1327 #: ../cat/virt-filesystems.pod:78
1328 msgid ""
1329 "I<--all --long --uuid> is a useful combination to display all possible "
1330 "information about everything."
1331 msgstr ""
1332
1333 #. type: verbatim
1334 #: ../cat/virt-filesystems.pod:81
1335 #, no-wrap
1336 msgid ""
1337 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1338 " Name      Type       VFS  Label           Size Parent   UUID\n"
1339 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
1340 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
1341 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
1342 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
1343 " /dev/sda  device     -    -               20G  -        -\n"
1344 "\n"
1345 msgstr ""
1346
1347 #. type: textblock
1348 #: ../cat/virt-filesystems.pod:89
1349 msgid "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1350 msgstr ""
1351
1352 #. type: =item
1353 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1354 msgid "B<--all>"
1355 msgstr ""
1356
1357 #. type: textblock
1358 #: ../cat/virt-filesystems.pod:112
1359 msgid ""
1360 "Display everything.  This is currently the same as specifying these options: "
1361 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, "
1362 "I<--logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may "
1363 "be added to this list in future)."
1364 msgstr ""
1365
1366 #. type: textblock
1367 #: ../cat/virt-filesystems.pod:117
1368 msgid "See also I<--long>."
1369 msgstr ""
1370
1371 #. type: =item
1372 #: ../cat/virt-filesystems.pod:119
1373 msgid "B<--blkdevs>"
1374 msgstr ""
1375
1376 #. type: =item
1377 #: ../cat/virt-filesystems.pod:121
1378 msgid "B<--block-devices>"
1379 msgstr ""
1380
1381 #. type: textblock
1382 #: ../cat/virt-filesystems.pod:123
1383 msgid "Display block devices."
1384 msgstr ""
1385
1386 #. type: =item
1387 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1388 msgid "B<--csv>"
1389 msgstr ""
1390
1391 #. type: textblock
1392 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1393 msgid ""
1394 "Write out the results in CSV format (comma-separated values).  This format "
1395 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1396 "ABOUT CSV FORMAT> below."
1397 msgstr ""
1398
1399 #. type: textblock
1400 #: ../cat/virt-filesystems.pod:150
1401 msgid ""
1402 "When prompting for keys and passphrases, virt-filesystems normally turns "
1403 "echoing off so you cannot see what you are typing.  If you are not worried "
1404 "about Tempest attacks and there is no one else in the room you can specify "
1405 "this flag to see what you are typing."
1406 msgstr ""
1407
1408 #. type: =item
1409 #: ../cat/virt-filesystems.pod:155
1410 msgid "B<--extra>"
1411 msgstr ""
1412
1413 #. type: textblock
1414 #: ../cat/virt-filesystems.pod:157
1415 msgid ""
1416 "This causes filesystems that are not ordinary, mountable filesystems to be "
1417 "displayed.  This category includes swapspace, and filesystems that are empty "
1418 "or contain unknown data."
1419 msgstr ""
1420
1421 #. type: textblock
1422 #: ../cat/virt-filesystems.pod:161
1423 msgid "This option implies I<--filesystems>."
1424 msgstr ""
1425
1426 #. type: =item
1427 #: ../cat/virt-filesystems.pod:163
1428 msgid "B<--filesystems>"
1429 msgstr ""
1430
1431 #. type: textblock
1432 #: ../cat/virt-filesystems.pod:165
1433 msgid ""
1434 "Display mountable filesystems.  If no display option was selected then this "
1435 "option is implied."
1436 msgstr ""
1437
1438 #. type: textblock
1439 #: ../cat/virt-filesystems.pod:168
1440 msgid "With I<--extra>, non-mountable filesystems are shown too."
1441 msgstr ""
1442
1443 #. type: verbatim
1444 #: ../cat/virt-filesystems.pod:181
1445 #, no-wrap
1446 msgid ""
1447 " virt-filesystems --format=raw -a disk.img\n"
1448 "\n"
1449 msgstr ""
1450
1451 #. type: verbatim
1452 #: ../cat/virt-filesystems.pod:185
1453 #, no-wrap
1454 msgid ""
1455 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1456 "\n"
1457 msgstr ""
1458
1459 #. type: =item
1460 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352 ../df/virt-df.pod:125 ../fish/guestfish.pod:156 ../tools/virt-list-partitions.pl:109
1461 msgid "B<-h>"
1462 msgstr ""
1463
1464 #. type: =item
1465 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354 ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1466 msgid "B<--human-readable>"
1467 msgstr ""
1468
1469 #. type: textblock
1470 #: ../cat/virt-filesystems.pod:198
1471 msgid "In I<--long> mode, display sizes in human-readable format."
1472 msgstr ""
1473
1474 #. type: =item
1475 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366 ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1476 msgid "B<-l>"
1477 msgstr ""
1478
1479 #. type: =item
1480 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368 ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1481 msgid "B<--long>"
1482 msgstr ""
1483
1484 #. type: textblock
1485 #: ../cat/virt-filesystems.pod:209
1486 msgid "Display extra columns of data (\"long format\")."
1487 msgstr ""
1488
1489 #. type: textblock
1490 #: ../cat/virt-filesystems.pod:211
1491 msgid "A title row is added unless you also specify I<--no-title>."
1492 msgstr ""
1493
1494 #. type: textblock
1495 #: ../cat/virt-filesystems.pod:213
1496 msgid ""
1497 "The extra columns displayed depend on what output you select, and the "
1498 "ordering of columns may change in future versions.  Use the title row, "
1499 "I<--csv> output and/or L<csvtool(1)> to match columns to data in external "
1500 "programs."
1501 msgstr ""
1502
1503 #. type: textblock
1504 #: ../cat/virt-filesystems.pod:218
1505 msgid ""
1506 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
1507 "default is to show raw numbers of I<bytes>."
1508 msgstr ""
1509
1510 #. type: textblock
1511 #: ../cat/virt-filesystems.pod:221
1512 msgid "Use I<--uuid> to display UUIDs too."
1513 msgstr ""
1514
1515 #. type: =item
1516 #: ../cat/virt-filesystems.pod:223
1517 msgid "B<--lvs>"
1518 msgstr ""
1519
1520 #. type: =item
1521 #: ../cat/virt-filesystems.pod:225
1522 msgid "B<--logvols>"
1523 msgstr ""
1524
1525 #. type: =item
1526 #: ../cat/virt-filesystems.pod:227
1527 msgid "B<--logical-volumes>"
1528 msgstr ""
1529
1530 #. type: textblock
1531 #: ../cat/virt-filesystems.pod:229
1532 msgid ""
1533 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
1534 "of whether the LVs contain filesystems."
1535 msgstr ""
1536
1537 #. type: =item
1538 #: ../cat/virt-filesystems.pod:232
1539 msgid "B<--no-title>"
1540 msgstr ""
1541
1542 #. type: textblock
1543 #: ../cat/virt-filesystems.pod:234
1544 msgid "In I<--long> mode, don't add a title row."
1545 msgstr ""
1546
1547 #. type: textblock
1548 #: ../cat/virt-filesystems.pod:236
1549 msgid ""
1550 "Note that the order of the columns is not fixed, and may change in future "
1551 "versions of virt-filesystems, so using this option may give you unexpected "
1552 "surprises."
1553 msgstr ""
1554
1555 #. type: =item
1556 #: ../cat/virt-filesystems.pod:240
1557 msgid "B<--parts>"
1558 msgstr ""
1559
1560 #. type: =item
1561 #: ../cat/virt-filesystems.pod:242
1562 msgid "B<--partitions>"
1563 msgstr ""
1564
1565 #. type: textblock
1566 #: ../cat/virt-filesystems.pod:244
1567 msgid ""
1568 "Display partitions.  In this mode, these are displayed irrespective of "
1569 "whether the partitions contain filesystems."
1570 msgstr ""
1571
1572 #. type: =item
1573 #: ../cat/virt-filesystems.pod:247
1574 msgid "B<--pvs>"
1575 msgstr ""
1576
1577 #. type: =item
1578 #: ../cat/virt-filesystems.pod:249
1579 msgid "B<--physvols>"
1580 msgstr ""
1581
1582 #. type: =item
1583 #: ../cat/virt-filesystems.pod:251
1584 msgid "B<--physical-volumes>"
1585 msgstr ""
1586
1587 #. type: textblock
1588 #: ../cat/virt-filesystems.pod:253
1589 msgid "Display LVM physical volumes."
1590 msgstr ""
1591
1592 #. type: =item
1593 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1594 msgid "B<--uuid>"
1595 msgstr ""
1596
1597 #. type: =item
1598 #: ../cat/virt-filesystems.pod:257
1599 msgid "B<--uuids>"
1600 msgstr ""
1601
1602 #. type: textblock
1603 #: ../cat/virt-filesystems.pod:259
1604 msgid "In I<--long> mode, display UUIDs as well."
1605 msgstr ""
1606
1607 #. type: =item
1608 #: ../cat/virt-filesystems.pod:273
1609 msgid "B<--vgs>"
1610 msgstr ""
1611
1612 #. type: =item
1613 #: ../cat/virt-filesystems.pod:275
1614 msgid "B<--volgroups>"
1615 msgstr ""
1616
1617 #. type: =item
1618 #: ../cat/virt-filesystems.pod:277
1619 msgid "B<--volume-groups>"
1620 msgstr ""
1621
1622 #. type: textblock
1623 #: ../cat/virt-filesystems.pod:279
1624 msgid "Display LVM volume groups."
1625 msgstr ""
1626
1627 #. type: =head1
1628 #: ../cat/virt-filesystems.pod:287
1629 msgid "COLUMNS"
1630 msgstr ""
1631
1632 #. type: textblock
1633 #: ../cat/virt-filesystems.pod:289
1634 msgid ""
1635 "Note that columns in the output are subject to reordering and change in "
1636 "future versions of this tool."
1637 msgstr ""
1638
1639 #. type: =item
1640 #: ../cat/virt-filesystems.pod:294
1641 msgid "B<Name>"
1642 msgstr ""
1643
1644 #. type: textblock
1645 #: ../cat/virt-filesystems.pod:296
1646 msgid "The filesystem, partition, block device or LVM name."
1647 msgstr ""
1648
1649 #. type: textblock
1650 #: ../cat/virt-filesystems.pod:298
1651 msgid ""
1652 "For device and partition names these are displayed as canonical libguestfs "
1653 "names, so that for example C</dev/sda2> is the second partition on the first "
1654 "device."
1655 msgstr ""
1656
1657 #. type: textblock
1658 #: ../cat/virt-filesystems.pod:302
1659 msgid ""
1660 "If the I<--long> option is B<not> specified, then only the name column is "
1661 "shown in the output."
1662 msgstr ""
1663
1664 #. type: =item
1665 #: ../cat/virt-filesystems.pod:305
1666 msgid "B<Type>"
1667 msgstr ""
1668
1669 #. type: textblock
1670 #: ../cat/virt-filesystems.pod:307
1671 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
1672 msgstr ""
1673
1674 #. type: =item
1675 #: ../cat/virt-filesystems.pod:309
1676 msgid "B<VFS>"
1677 msgstr ""
1678
1679 #. type: textblock
1680 #: ../cat/virt-filesystems.pod:311
1681 msgid ""
1682 "If there is a filesystem, then this column displays the filesystem type if "
1683 "one could be detected, eg. C<ext4>."
1684 msgstr ""
1685
1686 #. type: =item
1687 #: ../cat/virt-filesystems.pod:314
1688 msgid "B<Label>"
1689 msgstr ""
1690
1691 #. type: textblock
1692 #: ../cat/virt-filesystems.pod:316
1693 msgid ""
1694 "If the object has a label (used for identifying and mounting filesystems) "
1695 "then this column contains the label."
1696 msgstr ""
1697
1698 #. type: =item
1699 #: ../cat/virt-filesystems.pod:319
1700 msgid "B<MBR>"
1701 msgstr ""
1702
1703 #. type: textblock
1704 #: ../cat/virt-filesystems.pod:321
1705 msgid ""
1706 "The partition type byte, displayed as a two digit hexadecimal number.  A "
1707 "comprehensive list of partition types can be found here: "
1708 "L<http://www.win.tue.nl/~aeb/partitions/partition_types-1.html>"
1709 msgstr ""
1710
1711 #. type: textblock
1712 #: ../cat/virt-filesystems.pod:325
1713 msgid "This is only applicable for DOS (MBR) partitions."
1714 msgstr ""
1715
1716 #. type: =item
1717 #: ../cat/virt-filesystems.pod:327
1718 msgid "B<Size>"
1719 msgstr ""
1720
1721 #. type: textblock
1722 #: ../cat/virt-filesystems.pod:329
1723 msgid ""
1724 "The size of the object in bytes.  If the I<--human> option is used then the "
1725 "size is displayed in a human-readable form."
1726 msgstr ""
1727
1728 #. type: =item
1729 #: ../cat/virt-filesystems.pod:332
1730 msgid "B<Parent>"
1731 msgstr ""
1732
1733 #. type: textblock
1734 #: ../cat/virt-filesystems.pod:334
1735 msgid ""
1736 "The parent column records the parent relationship between objects.  For "
1737 "example, if the object is a partition, then this column contains the name of "
1738 "the containing device.  If the object is a logical volume, then this column "
1739 "is the name of the volume group."
1740 msgstr ""
1741
1742 #. type: =item
1743 #: ../cat/virt-filesystems.pod:339
1744 msgid "B<UUID>"
1745 msgstr ""
1746
1747 #. type: textblock
1748 #: ../cat/virt-filesystems.pod:341
1749 msgid ""
1750 "If the object has a UUID (used for identifying and mounting filesystems and "
1751 "block devices) then this column contains the UUID as a string."
1752 msgstr ""
1753
1754 #. type: textblock
1755 #: ../cat/virt-filesystems.pod:345
1756 msgid "The UUID is only displayed if the I<--uuid> option is given."
1757 msgstr ""
1758
1759 #. type: =head1
1760 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:459 ../df/virt-df.pod:217
1761 msgid "NOTE ABOUT CSV FORMAT"
1762 msgstr ""
1763
1764 #. type: textblock
1765 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:461 ../df/virt-df.pod:219
1766 msgid ""
1767 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
1768 "should be easy to parse, but it is definitely not easy to parse."
1769 msgstr ""
1770
1771 #. type: textblock
1772 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:464 ../df/virt-df.pod:222
1773 msgid ""
1774 "Myth: Just split fields at commas.  Reality: This does I<not> work "
1775 "reliably.  This example has two columns:"
1776 msgstr ""
1777
1778 #. type: verbatim
1779 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:467 ../df/virt-df.pod:225
1780 #, no-wrap
1781 msgid ""
1782 " \"foo,bar\",baz\n"
1783 "\n"
1784 msgstr ""
1785
1786 #. type: textblock
1787 #: ../cat/virt-filesystems.pod:359 ../cat/virt-ls.pod:469 ../df/virt-df.pod:227
1788 msgid ""
1789 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
1790 "reliably.  This example has one row:"
1791 msgstr ""
1792
1793 #. type: verbatim
1794 #: ../cat/virt-filesystems.pod:362 ../cat/virt-ls.pod:472 ../df/virt-df.pod:230
1795 #, no-wrap
1796 msgid ""
1797 " \"foo\n"
1798 " bar\",baz\n"
1799 "\n"
1800 msgstr ""
1801
1802 #. type: textblock
1803 #: ../cat/virt-filesystems.pod:365 ../cat/virt-ls.pod:475 ../df/virt-df.pod:233
1804 msgid ""
1805 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
1806 "packaged in major Linux distributions)."
1807 msgstr ""
1808
1809 #. type: textblock
1810 #: ../cat/virt-filesystems.pod:368 ../cat/virt-ls.pod:478 ../df/virt-df.pod:236
1811 msgid ""
1812 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
1813 "or Python's built-in csv library)."
1814 msgstr ""
1815
1816 #. type: textblock
1817 #: ../cat/virt-filesystems.pod:371 ../cat/virt-ls.pod:481 ../df/virt-df.pod:239
1818 msgid "Most spreadsheets and databases can import CSV directly."
1819 msgstr ""
1820
1821 #. type: textblock
1822 #: ../cat/virt-filesystems.pod:387
1823 msgid ""
1824 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, "
1825 "L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, "
1826 "L<http://libguestfs.org/>."
1827 msgstr ""
1828
1829 #. type: textblock
1830 #: ../cat/virt-filesystems.pod:402 ../tools/virt-win-reg.pl:789
1831 msgid "Copyright (C) 2010 Red Hat Inc."
1832 msgstr ""
1833
1834 #. type: textblock
1835 #: ../cat/virt-ls.pod:5
1836 msgid "virt-ls - List files in a virtual machine"
1837 msgstr ""
1838
1839 #. type: verbatim
1840 #: ../cat/virt-ls.pod:9
1841 #, no-wrap
1842 msgid ""
1843 " virt-ls [--options] -d domname directory [directory ...]\n"
1844 "\n"
1845 msgstr ""
1846
1847 #. type: verbatim
1848 #: ../cat/virt-ls.pod:11
1849 #, no-wrap
1850 msgid ""
1851 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory "
1852 "...]\n"
1853 "\n"
1854 msgstr ""
1855
1856 #. type: textblock
1857 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
1858 msgid "Old style:"
1859 msgstr ""
1860
1861 #. type: verbatim
1862 #: ../cat/virt-ls.pod:15
1863 #, no-wrap
1864 msgid ""
1865 " virt-ls [--options] domname directory\n"
1866 "\n"
1867 msgstr ""
1868
1869 #. type: verbatim
1870 #: ../cat/virt-ls.pod:17
1871 #, no-wrap
1872 msgid ""
1873 " virt-ls [--options] disk.img [disk.img ...] directory\n"
1874 "\n"
1875 msgstr ""
1876
1877 #. type: textblock
1878 #: ../cat/virt-ls.pod:21
1879 msgid ""
1880 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
1881 "more from a virtual machine or disk image."
1882 msgstr ""
1883
1884 #. type: textblock
1885 #: ../cat/virt-ls.pod:24
1886 msgid ""
1887 "Multiple directory names can be given, in which case the output from each is "
1888 "concatenated."
1889 msgstr ""
1890
1891 #. type: textblock
1892 #: ../cat/virt-ls.pod:27
1893 msgid ""
1894 "To list directories from a libvirt guest use the I<-d> option to specify the "
1895 "name of the guest.  For a disk image, use the I<-a> option."
1896 msgstr ""
1897
1898 #. type: textblock
1899 #: ../cat/virt-ls.pod:31
1900 msgid ""
1901 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
1902 "may need to use L<guestfish(1)>, or write a program directly to the "
1903 "L<guestfs(3)> API."
1904 msgstr ""
1905
1906 #. type: textblock
1907 #: ../cat/virt-ls.pod:37
1908 msgid "Get a list of all files and directories in a virtual machine:"
1909 msgstr ""
1910
1911 #. type: verbatim
1912 #: ../cat/virt-ls.pod:39
1913 #, no-wrap
1914 msgid ""
1915 " virt-ls -R -d guest /\n"
1916 "\n"
1917 msgstr ""
1918
1919 #. type: textblock
1920 #: ../cat/virt-ls.pod:41 ../examples/guestfs-testing.pod:182
1921 msgid "List all setuid or setgid programs in a Linux virtual machine:"
1922 msgstr ""
1923
1924 #. type: verbatim
1925 #: ../cat/virt-ls.pod:43
1926 #, no-wrap
1927 msgid ""
1928 " virt-ls -lR -d guest / | grep '^- [42]'\n"
1929 "\n"
1930 msgstr ""
1931
1932 #. type: textblock
1933 #: ../cat/virt-ls.pod:45 ../examples/guestfs-testing.pod:186
1934 msgid "List all public-writable directories in a Linux virtual machine:"
1935 msgstr ""
1936
1937 #. type: verbatim
1938 #: ../cat/virt-ls.pod:47
1939 #, no-wrap
1940 msgid ""
1941 " virt-ls -lR -d guest / | grep '^d ...7'\n"
1942 "\n"
1943 msgstr ""
1944
1945 #. type: textblock
1946 #: ../cat/virt-ls.pod:49 ../examples/guestfs-testing.pod:190
1947 msgid "List all Unix domain sockets in a Linux virtual machine:"
1948 msgstr ""
1949
1950 #. type: verbatim
1951 #: ../cat/virt-ls.pod:51
1952 #, no-wrap
1953 msgid ""
1954 " virt-ls -lR -d guest / | grep '^s'\n"
1955 "\n"
1956 msgstr ""
1957
1958 #. type: textblock
1959 #: ../cat/virt-ls.pod:53 ../examples/guestfs-testing.pod:194
1960 msgid "List all regular files with filenames ending in '.png':"
1961 msgstr ""
1962
1963 #. type: verbatim
1964 #: ../cat/virt-ls.pod:55
1965 #, no-wrap
1966 msgid ""
1967 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
1968 "\n"
1969 msgstr ""
1970
1971 #. type: textblock
1972 #: ../cat/virt-ls.pod:57
1973 msgid "To display files larger than 10MB in home directories:"
1974 msgstr ""
1975
1976 #. type: verbatim
1977 #: ../cat/virt-ls.pod:59
1978 #, no-wrap
1979 msgid ""
1980 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
1981 "\n"
1982 msgstr ""
1983
1984 #. type: textblock
1985 #: ../cat/virt-ls.pod:61 ../examples/guestfs-testing.pod:202
1986 msgid "Find everything modified in the last 7 days:"
1987 msgstr ""
1988
1989 #. type: verbatim
1990 #: ../cat/virt-ls.pod:63
1991 #, no-wrap
1992 msgid ""
1993 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
1994 "\n"
1995 msgstr ""
1996
1997 #. type: textblock
1998 #: ../cat/virt-ls.pod:65 ../examples/guestfs-testing.pod:206
1999 msgid "Find regular files modified in the last 24 hours:"
2000 msgstr ""
2001
2002 #. type: verbatim
2003 #: ../cat/virt-ls.pod:67
2004 #, no-wrap
2005 msgid ""
2006 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
2007 "\n"
2008 msgstr ""
2009
2010 #. type: =head2
2011 #: ../cat/virt-ls.pod:69
2012 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
2013 msgstr ""
2014
2015 #. type: textblock
2016 #: ../cat/virt-ls.pod:71
2017 msgid ""
2018 "Find the differences between files in a guest and an earlier snapshot of the "
2019 "same guest."
2020 msgstr ""
2021
2022 #. type: verbatim
2023 #: ../cat/virt-ls.pod:74
2024 #, no-wrap
2025 msgid ""
2026 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
2027 " virt-ls -lR -a current.img / --uids --time-t > new\n"
2028 " diff -u old new | less\n"
2029 "\n"
2030 msgstr ""
2031
2032 #. type: textblock
2033 #: ../cat/virt-ls.pod:78
2034 msgid ""
2035 "The commands above won't find files where the content has changed but the "
2036 "metadata (eg. file size and modification date) is the same.  To do that, you "
2037 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  "
2038 "I<--checksum> can be quite slow since it has to read and compute a checksum "
2039 "of every regular file in the virtual machine."
2040 msgstr ""
2041
2042 #. type: =head1
2043 #: ../cat/virt-ls.pod:84
2044 msgid "OUTPUT MODES"
2045 msgstr ""
2046
2047 #. type: textblock
2048 #: ../cat/virt-ls.pod:86
2049 msgid ""
2050 "C<virt-ls> has four output modes, controlled by different combinations of "
2051 "the I<-l> and I<-R> options."
2052 msgstr ""
2053
2054 #. type: =head2
2055 #: ../cat/virt-ls.pod:89
2056 msgid "SIMPLE LISTING"
2057 msgstr ""
2058
2059 #. type: textblock
2060 #: ../cat/virt-ls.pod:91
2061 msgid "A simple listing is like the ordinary L<ls(1)> command:"
2062 msgstr ""
2063
2064 #. type: verbatim
2065 #: ../cat/virt-ls.pod:93
2066 #, no-wrap
2067 msgid ""
2068 " $ virt-ls -d guest /\n"
2069 " bin\n"
2070 " boot\n"
2071 " [etc.]\n"
2072 "\n"
2073 msgstr ""
2074
2075 #. type: =head2
2076 #: ../cat/virt-ls.pod:98
2077 msgid "LONG LISTING"
2078 msgstr ""
2079
2080 #. type: textblock
2081 #: ../cat/virt-ls.pod:100
2082 msgid ""
2083 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
2084 "(more specifically, like the C<guestfs_ll> function)."
2085 msgstr ""
2086
2087 #. type: verbatim
2088 #: ../cat/virt-ls.pod:103
2089 #, no-wrap
2090 msgid ""
2091 " $ virt-ls -l -d guest /\n"
2092 " total 204\n"
2093 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
2094 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
2095 " [etc.]\n"
2096 "\n"
2097 msgstr ""
2098
2099 #. type: textblock
2100 #: ../cat/virt-ls.pod:109
2101 msgid ""
2102 "Note that while this is useful for displaying a directory, do not try "
2103 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
2104 "instead."
2105 msgstr ""
2106
2107 #. type: =head2
2108 #: ../cat/virt-ls.pod:113
2109 msgid "RECURSIVE LISTING"
2110 msgstr ""
2111
2112 #. type: textblock
2113 #: ../cat/virt-ls.pod:115
2114 msgid ""
2115 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
2116 "and directories recursively:"
2117 msgstr ""
2118
2119 #. type: verbatim
2120 #: ../cat/virt-ls.pod:118
2121 #, no-wrap
2122 msgid ""
2123 " $ virt-ls -R -d guest /tmp\n"
2124 " foo\n"
2125 " foo/bar\n"
2126 " [etc.]\n"
2127 "\n"
2128 msgstr ""
2129
2130 #. type: textblock
2131 #: ../cat/virt-ls.pod:123
2132 msgid ""
2133 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
2134 "converts C<\\0> characters to C<\\n>."
2135 msgstr ""
2136
2137 #. type: =head2
2138 #: ../cat/virt-ls.pod:126
2139 msgid "RECURSIVE LONG LISTING"
2140 msgstr ""
2141
2142 #. type: textblock
2143 #: ../cat/virt-ls.pod:128
2144 msgid ""
2145 "Using I<-lR> options together changes the output to display directories "
2146 "recursively, with file stats, and optionally other features such as "
2147 "checksums and extended attributes."
2148 msgstr ""
2149
2150 #. type: textblock
2151 #: ../cat/virt-ls.pod:132
2152 msgid ""
2153 "Most of the interesting features of C<virt-ls> are only available when using "
2154 "I<-lR> mode."
2155 msgstr ""
2156
2157 #. type: textblock
2158 #: ../cat/virt-ls.pod:135
2159 msgid ""
2160 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
2161 "you cannot use the output in another program (because filenames can contain "
2162 "spaces and other unsafe characters).  If the guest was untrusted and someone "
2163 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
2164 "on you by creating filenames with embedded newline characters.  To B<safely> "
2165 "parse the output in another program, use the I<--csv> (Comma-Separated "
2166 "Values) option."
2167 msgstr ""
2168
2169 #. type: textblock
2170 #: ../cat/virt-ls.pod:143
2171 msgid ""
2172 "Note that this output format is completely unrelated to the C<ls -lR> "
2173 "command."
2174 msgstr ""
2175
2176 #. type: verbatim
2177 #: ../cat/virt-ls.pod:146
2178 #, no-wrap
2179 msgid ""
2180 " $ virt-ls -lR -d guest /bin\n"
2181 " d 0555       4096 /bin\n"
2182 " - 0755        123 /bin/alsaunmute\n"
2183 " - 0755      28328 /bin/arch\n"
2184 " l 0777          4 /bin/awk -> gawk\n"
2185 " - 0755      27216 /bin/basename\n"
2186 " - 0755     943360 /bin/bash\n"
2187 " [etc.]\n"
2188 "\n"
2189 msgstr ""
2190
2191 #. type: textblock
2192 #: ../cat/virt-ls.pod:155
2193 msgid "These basic fields are always shown:"
2194 msgstr ""
2195
2196 #. type: =item
2197 #: ../cat/virt-ls.pod:159
2198 msgid "type"
2199 msgstr ""
2200
2201 #. type: textblock
2202 #: ../cat/virt-ls.pod:161
2203 msgid ""
2204 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
2205 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
2206 "link), C<s> (socket) or C<u> (unknown)."
2207 msgstr ""
2208
2209 #. type: =item
2210 #: ../cat/virt-ls.pod:171
2211 msgid "permissions"
2212 msgstr ""
2213
2214 #. type: textblock
2215 #: ../cat/virt-ls.pod:173
2216 msgid "The Unix permissions, displayed as a 4 digit octal number."
2217 msgstr ""
2218
2219 #. type: =item
2220 #: ../cat/virt-ls.pod:175
2221 msgid "size"
2222 msgstr ""
2223
2224 #. type: textblock
2225 #: ../cat/virt-ls.pod:177
2226 msgid ""
2227 "The size of the file.  This is shown in bytes unless I<-h> or "
2228 "I<--human-readable> option is given, in which case this is shown as a "
2229 "human-readable number."
2230 msgstr ""
2231
2232 #. type: =head2
2233 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4380
2234 msgid "path"
2235 msgstr ""
2236
2237 #. type: textblock
2238 #: ../cat/virt-ls.pod:183
2239 msgid "The full path of the file or directory."
2240 msgstr ""
2241
2242 #. type: =item
2243 #: ../cat/virt-ls.pod:185
2244 msgid "link"
2245 msgstr ""
2246
2247 #. type: textblock
2248 #: ../cat/virt-ls.pod:187
2249 msgid "For symbolic links only, the link target."
2250 msgstr ""
2251
2252 #. type: textblock
2253 #: ../cat/virt-ls.pod:191
2254 msgid ""
2255 "In I<-lR> mode, additional command line options enable the display of more "
2256 "fields."
2257 msgstr ""
2258
2259 #. type: textblock
2260 #: ../cat/virt-ls.pod:194
2261 msgid ""
2262 "With the I<--uids> flag, these additional fields are displayed before the "
2263 "path:"
2264 msgstr ""
2265
2266 #. type: =item
2267 #: ../cat/virt-ls.pod:199
2268 msgid "uid"
2269 msgstr ""
2270
2271 #. type: =item
2272 #: ../cat/virt-ls.pod:201
2273 msgid "gid"
2274 msgstr ""
2275
2276 #. type: textblock
2277 #: ../cat/virt-ls.pod:203
2278 msgid ""
2279 "The UID and GID of the owner of the file (displayed numerically).  Note "
2280 "these only make sense in the context of a Unix-like guest."
2281 msgstr ""
2282
2283 #. type: textblock
2284 #: ../cat/virt-ls.pod:208
2285 msgid "With the I<--times> flag, these additional fields are displayed:"
2286 msgstr ""
2287
2288 #. type: =item
2289 #: ../cat/virt-ls.pod:212
2290 msgid "atime"
2291 msgstr ""
2292
2293 #. type: textblock
2294 #: ../cat/virt-ls.pod:214
2295 msgid "The time of last access."
2296 msgstr ""
2297
2298 #. type: =item
2299 #: ../cat/virt-ls.pod:216
2300 msgid "mtime"
2301 msgstr ""
2302
2303 #. type: textblock
2304 #: ../cat/virt-ls.pod:218
2305 msgid "The time of last modification."
2306 msgstr ""
2307
2308 #. type: =item
2309 #: ../cat/virt-ls.pod:220
2310 msgid "ctime"
2311 msgstr ""
2312
2313 #. type: textblock
2314 #: ../cat/virt-ls.pod:222
2315 msgid "The time of last status change."
2316 msgstr ""
2317
2318 #. type: textblock
2319 #: ../cat/virt-ls.pod:226
2320 msgid ""
2321 "The time fields are displayed as string dates and times, unless one of the "
2322 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2323 msgstr ""
2324
2325 #. type: textblock
2326 #: ../cat/virt-ls.pod:229
2327 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2328 msgstr ""
2329
2330 #. type: =item
2331 #: ../cat/virt-ls.pod:233
2332 msgid "device"
2333 msgstr ""
2334
2335 #. type: textblock
2336 #: ../cat/virt-ls.pod:235
2337 msgid ""
2338 "The device containing the file (displayed as major:minor).  This may not "
2339 "match devices as known to the guest."
2340 msgstr ""
2341
2342 #. type: =item
2343 #: ../cat/virt-ls.pod:238
2344 msgid "inode"
2345 msgstr ""
2346
2347 #. type: textblock
2348 #: ../cat/virt-ls.pod:240
2349 msgid "The inode number."
2350 msgstr ""
2351
2352 #. type: =item
2353 #: ../cat/virt-ls.pod:242
2354 msgid "nlink"
2355 msgstr ""
2356
2357 #. type: textblock
2358 #: ../cat/virt-ls.pod:244
2359 msgid "The number of hard links."
2360 msgstr ""
2361
2362 #. type: =item
2363 #: ../cat/virt-ls.pod:246
2364 msgid "rdev"
2365 msgstr ""
2366
2367 #. type: textblock
2368 #: ../cat/virt-ls.pod:248
2369 msgid "For block and char special files, the device (displayed as major:minor)."
2370 msgstr ""
2371
2372 #. type: =item
2373 #: ../cat/virt-ls.pod:251
2374 msgid "blocks"
2375 msgstr ""
2376
2377 #. type: textblock
2378 #: ../cat/virt-ls.pod:253
2379 msgid "The number of 512 byte blocks allocated to the file."
2380 msgstr ""
2381
2382 #. type: textblock
2383 #: ../cat/virt-ls.pod:257
2384 msgid ""
2385 "With the I<--checksum> flag, the checksum of the file contents is shown "
2386 "(only for regular files).  Computing file checksums can take a considerable "
2387 "amount of time."
2388 msgstr ""
2389
2390 #. type: =item
2391 #: ../cat/virt-ls.pod:280
2392 msgid "B<--checksum>"
2393 msgstr ""
2394
2395 #. type: =item
2396 #: ../cat/virt-ls.pod:282
2397 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2398 msgstr ""
2399
2400 #. type: textblock
2401 #: ../cat/virt-ls.pod:284
2402 msgid ""
2403 "Display checksum over file contents for regular files.  With no argument, "
2404 "this defaults to using I<md5>.  Using an argument, you can select the "
2405 "checksum type to use."
2406 msgstr ""
2407
2408 #. type: textblock
2409 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358 ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408 ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2410 msgid ""
2411 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
2412 "LISTING> above."
2413 msgstr ""
2414
2415 #. type: textblock
2416 #: ../cat/virt-ls.pod:316
2417 msgid ""
2418 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2419 "so you cannot see what you are typing.  If you are not worried about Tempest "
2420 "attacks and there is no one else in the room you can specify this flag to "
2421 "see what you are typing."
2422 msgstr ""
2423
2424 #. type: =item
2425 #: ../cat/virt-ls.pod:321
2426 msgid "B<--extra-stats>"
2427 msgstr ""
2428
2429 #. type: textblock
2430 #: ../cat/virt-ls.pod:323
2431 msgid "Display extra stats."
2432 msgstr ""
2433
2434 #. type: verbatim
2435 #: ../cat/virt-ls.pod:339
2436 #, no-wrap
2437 msgid ""
2438 " virt-ls --format=raw -a disk.img /dir\n"
2439 "\n"
2440 msgstr ""
2441
2442 #. type: verbatim
2443 #: ../cat/virt-ls.pod:343
2444 #, no-wrap
2445 msgid ""
2446 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2447 "\n"
2448 msgstr ""
2449
2450 #. type: textblock
2451 #: ../cat/virt-ls.pod:356
2452 msgid "Display file sizes in human-readable format."
2453 msgstr ""
2454
2455 #. type: =item
2456 #: ../cat/virt-ls.pod:370
2457 msgid "B<-R>"
2458 msgstr ""
2459
2460 #. type: =item
2461 #: ../cat/virt-ls.pod:372
2462 msgid "B<--recursive>"
2463 msgstr ""
2464
2465 #. type: textblock
2466 #: ../cat/virt-ls.pod:374
2467 msgid ""
2468 "Select the mode.  With neither of these options, C<virt-ls> produces a "
2469 "simple, flat list of the files in the named directory.  See L</SIMPLE "
2470 "LISTING>."
2471 msgstr ""
2472
2473 #. type: textblock
2474 #: ../cat/virt-ls.pod:378
2475 msgid ""
2476 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See "
2477 "L</LONG LISTING>."
2478 msgstr ""
2479
2480 #. type: textblock
2481 #: ../cat/virt-ls.pod:381
2482 msgid ""
2483 "C<virt-ls -R> produces a recursive list of files starting at the named "
2484 "directory.  See L</RECURSIVE LISTING>."
2485 msgstr ""
2486
2487 #. type: textblock
2488 #: ../cat/virt-ls.pod:384
2489 msgid ""
2490 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2491 "parsed.  See L</RECURSIVE LONG LISTING>."
2492 msgstr ""
2493
2494 #. type: =item
2495 #: ../cat/virt-ls.pod:387
2496 msgid "B<--times>"
2497 msgstr ""
2498
2499 #. type: textblock
2500 #: ../cat/virt-ls.pod:389
2501 msgid "Display time fields."
2502 msgstr ""
2503
2504 #. type: =item
2505 #: ../cat/virt-ls.pod:394
2506 msgid "B<--time-days>"
2507 msgstr ""
2508
2509 #. type: textblock
2510 #: ../cat/virt-ls.pod:396
2511 msgid "Display time fields as days before now (negative if in the future)."
2512 msgstr ""
2513
2514 #. type: textblock
2515 #: ../cat/virt-ls.pod:398
2516 msgid ""
2517 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2518 "of the file is between 0 and 86399 seconds."
2519 msgstr ""
2520
2521 #. type: =item
2522 #: ../cat/virt-ls.pod:404
2523 msgid "B<--time-relative>"
2524 msgstr ""
2525
2526 #. type: textblock
2527 #: ../cat/virt-ls.pod:406
2528 msgid "Display time fields as seconds before now (negative if in the future)."
2529 msgstr ""
2530
2531 #. type: =item
2532 #: ../cat/virt-ls.pod:411
2533 msgid "B<--time-t>"
2534 msgstr ""
2535
2536 #. type: textblock
2537 #: ../cat/virt-ls.pod:413
2538 msgid "Display time fields as seconds since the Unix epoch."
2539 msgstr ""
2540
2541 #. type: =item
2542 #: ../cat/virt-ls.pod:418
2543 msgid "B<--uids>"
2544 msgstr ""
2545
2546 #. type: textblock
2547 #: ../cat/virt-ls.pod:420
2548 msgid "Display UID and GID fields."
2549 msgstr ""
2550
2551 #. type: textblock
2552 #: ../cat/virt-ls.pod:445
2553 msgid "Previous versions of virt-ls allowed you to write either:"
2554 msgstr ""
2555
2556 #. type: verbatim
2557 #: ../cat/virt-ls.pod:447
2558 #, no-wrap
2559 msgid ""
2560 " virt-ls disk.img [disk.img ...] /dir\n"
2561 "\n"
2562 msgstr ""
2563
2564 #. type: verbatim
2565 #: ../cat/virt-ls.pod:451
2566 #, no-wrap
2567 msgid ""
2568 " virt-ls guestname /dir\n"
2569 "\n"
2570 msgstr ""
2571
2572 #. type: textblock
2573 #: ../cat/virt-ls.pod:497
2574 msgid ""
2575 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, "
2576 "L<virt-tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
2577 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
2578 msgstr ""
2579
2580 #. type: textblock
2581 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:267 ../edit/virt-edit.pod:374 ../rescue/virt-rescue.pod:302
2582 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2583 msgstr ""
2584
2585 #. type: textblock
2586 #: ../clone/virt-sysprep.pod:5
2587 msgid "virt-sysprep - Reset or unconfigure a virtual machine so clones can be made"
2588 msgstr ""
2589
2590 #. type: verbatim
2591 #: ../clone/virt-sysprep.pod:9
2592 #, no-wrap
2593 msgid ""
2594 " virt-sysprep [--options] -d domname\n"
2595 "\n"
2596 msgstr ""
2597
2598 #. type: verbatim
2599 #: ../clone/virt-sysprep.pod:11
2600 #, no-wrap
2601 msgid ""
2602 " virt-sysprep [--options] -a disk.img [-a disk.img ...]\n"
2603 "\n"
2604 msgstr ""
2605
2606 #. type: textblock
2607 #: ../clone/virt-sysprep.pod:15
2608 msgid ""
2609 "Virt-sysprep \"resets\" or \"unconfigures\" a virtual machine so that clones "
2610 "can be made from it.  Steps in this process include removing SSH host keys, "
2611 "removing persistent network MAC configuration, and removing user accounts.  "
2612 "Each step can be enabled or disabled as required."
2613 msgstr ""
2614
2615 #. type: textblock
2616 #: ../clone/virt-sysprep.pod:21
2617 msgid ""
2618 "Virt-sysprep is a simple shell script, allowing easy inspection or "
2619 "customization by the system administrator."
2620 msgstr ""
2621
2622 #. type: textblock
2623 #: ../clone/virt-sysprep.pod:24
2624 msgid ""
2625 "Virt-sysprep modifies the guest or disk image I<in place>.  The guest must "
2626 "be shut down.  If you want to preserve the existing contents of the guest, "
2627 "you I<must copy or clone the disk first>.  See L</COPYING AND CLONING> "
2628 "below."
2629 msgstr ""
2630
2631 #. type: textblock
2632 #: ../clone/virt-sysprep.pod:29
2633 msgid ""
2634 "You do I<not> need to run virt-sysprep as root.  In fact we'd generally "
2635 "recommend that you don't.  The time you might want to run it as root is when "
2636 "you need root in order to access the disk image, but even in this case it "
2637 "would be better to change the permissions on the disk image to be writable "
2638 "as the non-root user running virt-sysprep."
2639 msgstr ""
2640
2641 #. type: textblock
2642 #: ../clone/virt-sysprep.pod:35
2643 msgid ""
2644 "\"Sysprep\" stands for \"system preparation\" tool.  The name comes from the "
2645 "Microsoft program C<sysprep.exe> which is used to unconfigure Windows "
2646 "machines in preparation for cloning them.  Having said that, virt-sysprep "
2647 "does I<not> currently work on Microsoft Windows guests.  We plan to support "
2648 "Windows sysprepping in a future version, and we already have code to do it."
2649 msgstr ""
2650
2651 #. type: =item
2652 #: ../clone/virt-sysprep.pod:76
2653 msgid "B<--enable=...>"
2654 msgstr ""
2655
2656 #. type: textblock
2657 #: ../clone/virt-sysprep.pod:78
2658 msgid ""
2659 "Choose which sysprep operations to perform.  Give a comma-separated list of "
2660 "operations, for example:"
2661 msgstr ""
2662
2663 #. type: verbatim
2664 #: ../clone/virt-sysprep.pod:81
2665 #, no-wrap
2666 msgid ""
2667 " --enable=ssh-hostkeys,udev-persistent-net\n"
2668 "\n"
2669 msgstr ""
2670
2671 #. type: textblock
2672 #: ../clone/virt-sysprep.pod:83
2673 msgid "would enable ONLY C<ssh-hostkeys> and C<udev-persistent-net> operations."
2674 msgstr ""
2675
2676 #. type: textblock
2677 #: ../clone/virt-sysprep.pod:85
2678 msgid ""
2679 "If the I<--enable> option is not given, then we default to trying all "
2680 "possible sysprep operations.  But some sysprep operations are skipped for "
2681 "some guest types."
2682 msgstr ""
2683
2684 #. type: textblock
2685 #: ../clone/virt-sysprep.pod:89
2686 msgid ""
2687 "Use I<--list-operations> to list operations supported by a particular "
2688 "version of virt-sysprep."
2689 msgstr ""
2690
2691 #. type: textblock
2692 #: ../clone/virt-sysprep.pod:92
2693 msgid "See L</OPERATIONS> below for a list and an explanation of each operation."
2694 msgstr ""
2695
2696 #. type: verbatim
2697 #: ../clone/virt-sysprep.pod:106
2698 #, no-wrap
2699 msgid ""
2700 " virt-sysprep --format=raw -a disk.img\n"
2701 "\n"
2702 msgstr ""
2703
2704 #. type: verbatim
2705 #: ../clone/virt-sysprep.pod:110
2706 #, no-wrap
2707 msgid ""
2708 " virt-sysprep --format=raw -a disk.img --format -a another.img\n"
2709 "\n"
2710 msgstr ""
2711
2712 #. type: =item
2713 #: ../clone/virt-sysprep.pod:119
2714 msgid "B<--hostname> newhostname"
2715 msgstr ""
2716
2717 #. type: textblock
2718 #: ../clone/virt-sysprep.pod:121
2719 msgid ""
2720 "Change the hostname.  See the L</hostname> operation below.  If not given, "
2721 "defaults to C<localhost.localdomain>."
2722 msgstr ""
2723
2724 #. type: =item
2725 #: ../clone/virt-sysprep.pod:124
2726 msgid "B<--list-operations>"
2727 msgstr ""
2728
2729 #. type: textblock
2730 #: ../clone/virt-sysprep.pod:126
2731 msgid "List the operations supported by the virt-sysprep program."
2732 msgstr ""
2733
2734 #. type: =item
2735 #: ../clone/virt-sysprep.pod:128
2736 msgid "B<--selinux-relabel>"
2737 msgstr ""
2738
2739 #. type: =item
2740 #: ../clone/virt-sysprep.pod:130
2741 msgid "B<--no-selinux-relabel>"
2742 msgstr ""
2743
2744 #. type: textblock
2745 #: ../clone/virt-sysprep.pod:132
2746 msgid ""
2747 "I<--selinux-relabel> forces SELinux relabelling next time the guest boots.  "
2748 "I<--no-selinux-relabel> disables relabelling."
2749 msgstr ""
2750
2751 #. type: textblock
2752 #: ../clone/virt-sysprep.pod:135
2753 msgid ""
2754 "The default is to try to detect if SELinux relabelling is required.  See "
2755 "L</SELINUX RELABELLING> below for more details."
2756 msgstr ""
2757
2758 #. type: =head1
2759 #: ../clone/virt-sysprep.pod:156
2760 msgid "OPERATIONS"
2761 msgstr ""
2762
2763 #. type: textblock
2764 #: ../clone/virt-sysprep.pod:158
2765 msgid ""
2766 "If the I<--enable> option is I<not> given, then I<all sysprep operations are "
2767 "enabled>, although some are skipped depending on the type of guest."
2768 msgstr ""
2769
2770 #. type: textblock
2771 #: ../clone/virt-sysprep.pod:162
2772 msgid ""
2773 "Operations can be individually enabled using the I<--enable> option.  Use a "
2774 "comma-separated list, for example:"
2775 msgstr ""
2776
2777 #. type: verbatim
2778 #: ../clone/virt-sysprep.pod:165
2779 #, no-wrap
2780 msgid ""
2781 " virt-sysprep --enable=ssh-hostkeys,udev-persistent-net [etc..]\n"
2782 "\n"
2783 msgstr ""
2784
2785 #. type: textblock
2786 #: ../clone/virt-sysprep.pod:167
2787 msgid ""
2788 "To list the operations supported by the current version of virt-sysprep, use "
2789 "I<--list-operations>."
2790 msgstr ""
2791
2792 #. type: textblock
2793 #: ../clone/virt-sysprep.pod:170
2794 msgid ""
2795 "Future versions of virt-sysprep may add more operations.  If you are using "
2796 "virt-sysprep and want predictable behaviour, specify only the operations "
2797 "that you want to have enabled."
2798 msgstr ""
2799
2800 #. type: =head2
2801 #: ../clone/virt-sysprep.pod:174
2802 msgid "cron-spool"
2803 msgstr ""
2804
2805 #. type: textblock
2806 #: ../clone/virt-sysprep.pod:176
2807 msgid "Remove user at-jobs and cron-jobs."
2808 msgstr ""
2809
2810 #. type: =head2
2811 #: ../clone/virt-sysprep.pod:178
2812 msgid "dhcp-client-state"
2813 msgstr ""
2814
2815 #. type: textblock
2816 #: ../clone/virt-sysprep.pod:180
2817 msgid "Remove DHCP client leases."
2818 msgstr ""
2819
2820 #. type: =head2
2821 #: ../clone/virt-sysprep.pod:182
2822 msgid "dhcp-server-state"
2823 msgstr ""
2824
2825 #. type: textblock
2826 #: ../clone/virt-sysprep.pod:184
2827 msgid "Remove DHCP server leases."
2828 msgstr ""
2829
2830 #. type: =head2
2831 #: ../clone/virt-sysprep.pod:186
2832 msgid "hostname"
2833 msgstr ""
2834
2835 #. type: textblock
2836 #: ../clone/virt-sysprep.pod:188
2837 msgid ""
2838 "Changes the hostname of the guest to the value given in the I<--hostname> "
2839 "parameter."
2840 msgstr ""
2841
2842 #. type: textblock
2843 #: ../clone/virt-sysprep.pod:191
2844 msgid ""
2845 "If the I<--hostname> parameter is not given, then the hostname is changed to "
2846 "C<localhost.localdomain>."
2847 msgstr ""
2848
2849 #. type: =head2
2850 #: ../clone/virt-sysprep.pod:194
2851 msgid "logfiles"
2852 msgstr ""
2853
2854 #. type: textblock
2855 #: ../clone/virt-sysprep.pod:196
2856 msgid "Remove many log files."
2857 msgstr ""
2858
2859 #. type: =head2
2860 #: ../clone/virt-sysprep.pod:198
2861 msgid "mail-spool"
2862 msgstr ""
2863
2864 #. type: textblock
2865 #: ../clone/virt-sysprep.pod:200
2866 msgid "Remove email from the local mail spool directory."
2867 msgstr ""
2868
2869 #. type: =head2
2870 #: ../clone/virt-sysprep.pod:202
2871 msgid "net-hwaddr"
2872 msgstr ""
2873
2874 #. type: textblock
2875 #: ../clone/virt-sysprep.pod:204
2876 msgid ""
2877 "Remove HWADDR (hard-coded MAC address) configuration.  For Fedora and Red "
2878 "Hat Enterprise Linux, this is removed from C<ifcfg-*> files."
2879 msgstr ""
2880
2881 #. type: =head2
2882 #: ../clone/virt-sysprep.pod:207
2883 msgid "random-seed"
2884 msgstr ""
2885
2886 #. type: textblock
2887 #: ../clone/virt-sysprep.pod:209
2888 msgid ""
2889 "Write some random bytes from the host into the random seed file of the "
2890 "guest."
2891 msgstr ""
2892
2893 #. type: textblock
2894 #: ../clone/virt-sysprep.pod:212
2895 msgid "See L</RANDOM SEED> below."
2896 msgstr ""
2897
2898 #. type: =head2
2899 #: ../clone/virt-sysprep.pod:214
2900 msgid "rhn-systemid"
2901 msgstr ""
2902
2903 #. type: textblock
2904 #: ../clone/virt-sysprep.pod:216
2905 msgid "Remove the RHN system ID."
2906 msgstr ""
2907
2908 #. type: =head2
2909 #: ../clone/virt-sysprep.pod:218
2910 msgid "smolt-uuid"
2911 msgstr ""
2912
2913 #. type: textblock
2914 #: ../clone/virt-sysprep.pod:220
2915 msgid "Remove the Smolt hardware UUID."
2916 msgstr ""
2917
2918 #. type: =head2
2919 #: ../clone/virt-sysprep.pod:222
2920 msgid "ssh-hostkeys"
2921 msgstr ""
2922
2923 #. type: textblock
2924 #: ../clone/virt-sysprep.pod:224
2925 msgid "Remove the SSH host keys in the guest."
2926 msgstr ""
2927
2928 #. type: textblock
2929 #: ../clone/virt-sysprep.pod:226
2930 msgid ""
2931 "The SSH host keys are regenerated (differently) next time the guest is "
2932 "booted."
2933 msgstr ""
2934
2935 #. type: textblock
2936 #: ../clone/virt-sysprep.pod:229
2937 msgid ""
2938 "If, after cloning, the guest gets the same IP address, ssh will give you a "
2939 "stark warning about the host key changing:"
2940 msgstr ""
2941
2942 #. type: verbatim
2943 #: ../clone/virt-sysprep.pod:232
2944 #, no-wrap
2945 msgid ""
2946 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
2947 " @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @\n"
2948 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
2949 " IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!\n"
2950 "\n"
2951 msgstr ""
2952
2953 #. type: =head2
2954 #: ../clone/virt-sysprep.pod:237
2955 msgid "udev-persistent-net"
2956 msgstr ""
2957
2958 #. type: textblock
2959 #: ../clone/virt-sysprep.pod:239
2960 msgid ""
2961 "Remove udev persistent net rules which map the guest's existing MAC address "
2962 "to a fixed ethernet device (eg. eth0)."
2963 msgstr ""
2964
2965 #. type: textblock
2966 #: ../clone/virt-sysprep.pod:242
2967 msgid ""
2968 "After a guest is cloned, the MAC address usually changes.  Since the old MAC "
2969 "address occupies the old name (eg. eth0), this means the fresh MAC address "
2970 "is assigned to a new name (eg. eth1) and this is usually undesirable.  "
2971 "Erasing the udev persistent net rules avoids this."
2972 msgstr ""
2973
2974 #. type: =head2
2975 #: ../clone/virt-sysprep.pod:247
2976 msgid "utmp"
2977 msgstr ""
2978
2979 #. type: textblock
2980 #: ../clone/virt-sysprep.pod:249
2981 msgid "Remove the utmp file."
2982 msgstr ""
2983
2984 #. type: textblock
2985 #: ../clone/virt-sysprep.pod:251
2986 msgid ""
2987 "This records who is currently logged in on a machine.  In modern Linux "
2988 "distros it is stored in a ramdisk and hence not part of the virtual "
2989 "machine's disk, but it was stored on disk in older distros."
2990 msgstr ""
2991
2992 #. type: =head2
2993 #: ../clone/virt-sysprep.pod:255
2994 msgid "yum-uuid"
2995 msgstr ""
2996
2997 #. type: textblock
2998 #: ../clone/virt-sysprep.pod:257
2999 msgid "Remove the yum UUID."
3000 msgstr ""
3001
3002 #. type: textblock
3003 #: ../clone/virt-sysprep.pod:259
3004 msgid ""
3005 "Yum creates a fresh UUID the next time it runs when it notices that the "
3006 "original UUID has been erased."
3007 msgstr ""
3008
3009 #. type: =head1
3010 #: ../clone/virt-sysprep.pod:262
3011 msgid "COPYING AND CLONING"
3012 msgstr ""
3013
3014 #. type: textblock
3015 #: ../clone/virt-sysprep.pod:264
3016 msgid ""
3017 "Virt-sysprep can be used as part of a process of cloning guests, or to "
3018 "prepare a template from which guests can be cloned.  There are many "
3019 "different ways to achieve this using the virt tools, and this section is "
3020 "just an introduction."
3021 msgstr ""
3022
3023 #. type: textblock
3024 #: ../clone/virt-sysprep.pod:269
3025 msgid "A virtual machine (when switched off) consists of two parts:"
3026 msgstr ""
3027
3028 #. type: =item
3029 #: ../clone/virt-sysprep.pod:273
3030 msgid "I<configuration>"
3031 msgstr ""
3032
3033 #. type: textblock
3034 #: ../clone/virt-sysprep.pod:275
3035 msgid ""
3036 "The configuration or description of the guest.  eg. The libvirt XML (see "
3037 "C<virsh dumpxml>), the running configuration of the guest, or another "
3038 "external format like OVF."
3039 msgstr ""
3040
3041 #. type: textblock
3042 #: ../clone/virt-sysprep.pod:279
3043 msgid "Some configuration items that might need to be changed:"
3044 msgstr ""
3045
3046 #. type: textblock
3047 #: ../clone/virt-sysprep.pod:285
3048 msgid "name"
3049 msgstr ""
3050
3051 #. type: textblock
3052 #: ../clone/virt-sysprep.pod:289 ../clone/virt-sysprep.pod:316
3053 msgid "UUID"
3054 msgstr ""
3055
3056 #. type: textblock
3057 #: ../clone/virt-sysprep.pod:293
3058 msgid "path to block device(s)"
3059 msgstr ""
3060
3061 #. type: textblock
3062 #: ../clone/virt-sysprep.pod:297
3063 msgid "network card MAC address"
3064 msgstr ""
3065
3066 #. type: =item
3067 #: ../clone/virt-sysprep.pod:301
3068 msgid "I<block device(s)>"
3069 msgstr ""
3070
3071 #. type: textblock
3072 #: ../clone/virt-sysprep.pod:303
3073 msgid ""
3074 "One or more hard disk images, themselves containing files, directories, "
3075 "applications, kernels, configuration, etc."
3076 msgstr ""
3077
3078 #. type: textblock
3079 #: ../clone/virt-sysprep.pod:306
3080 msgid "Some things inside the block devices that might need to be changed:"
3081 msgstr ""
3082
3083 #. type: textblock
3084 #: ../clone/virt-sysprep.pod:312
3085 msgid "hostname and other net configuration"
3086 msgstr ""
3087
3088 #. type: textblock
3089 #: ../clone/virt-sysprep.pod:320
3090 msgid "SSH host keys"
3091 msgstr ""
3092
3093 #. type: textblock
3094 #: ../clone/virt-sysprep.pod:324
3095 msgid "Windows unique security ID (SID)"
3096 msgstr ""
3097
3098 #. type: textblock
3099 #: ../clone/virt-sysprep.pod:328
3100 msgid "Puppet registration"
3101 msgstr ""
3102
3103 #. type: =head2
3104 #: ../clone/virt-sysprep.pod:334
3105 msgid "COPYING THE BLOCK DEVICE"
3106 msgstr ""
3107
3108 #. type: textblock
3109 #: ../clone/virt-sysprep.pod:336
3110 msgid ""
3111 "Starting with an original guest, you probably wish to copy the guest block "
3112 "device and its configuration to make a template.  Then once you are happy "
3113 "with the template, you will want to make many clones from it."
3114 msgstr ""
3115
3116 #. type: verbatim
3117 #: ../clone/virt-sysprep.pod:341
3118 #, no-wrap
3119 msgid ""
3120 "                        virt-sysprep\n"
3121 "                             |\n"
3122 "                             v\n"
3123 " original guest --------> template ---------->\n"
3124 "                                      \\------> cloned\n"
3125 "                                       \\-----> guests\n"
3126 "                                        \\---->\n"
3127 "\n"
3128 msgstr ""
3129
3130 #. type: textblock
3131 #: ../clone/virt-sysprep.pod:349
3132 msgid ""
3133 "You can, of course, just copy the block device on the host using L<cp(1)> or "
3134 "L<dd(1)>."
3135 msgstr ""
3136
3137 #. type: verbatim
3138 #: ../clone/virt-sysprep.pod:352
3139 #, no-wrap
3140 msgid ""
3141 "                   dd                 dd\n"
3142 " original guest --------> template ---------->\n"
3143 "                                      \\------> cloned\n"
3144 "                                       \\-----> guests\n"
3145 "                                        \\---->\n"
3146 "\n"
3147 msgstr ""
3148
3149 #. type: textblock
3150 #: ../clone/virt-sysprep.pod:358
3151 msgid "There are some smarter (and faster) ways too:"
3152 msgstr ""
3153
3154 #. type: verbatim
3155 #: ../clone/virt-sysprep.pod:364
3156 #, no-wrap
3157 msgid ""
3158 "                          snapshot\n"
3159 "                template ---------->\n"
3160 "                            \\------> cloned\n"
3161 "                             \\-----> guests\n"
3162 "                              \\---->\n"
3163 "\n"
3164 msgstr ""
3165
3166 #. type: textblock
3167 #: ../clone/virt-sysprep.pod:370
3168 msgid ""
3169 "Use the block device as a backing file and create a snapshot on top for each "
3170 "guest.  The advantage is that you don't need to copy the block device (very "
3171 "fast) and only changes are stored (less storage required)."
3172 msgstr ""
3173
3174 #. type: textblock
3175 #: ../clone/virt-sysprep.pod:375
3176 msgid ""
3177 "Note that writing to the backing file once you have created guests on top of "
3178 "it is not possible: you will corrupt the guests."
3179 msgstr ""
3180
3181 #. type: textblock
3182 #: ../clone/virt-sysprep.pod:378
3183 msgid ""
3184 "Tools that can do this include: L<qemu-img(1)> (with the I<create -f qcow2 "
3185 "-o backing_file> option), L<lvcreate(8)> (I<--snapshot> option).  Some "
3186 "filesystems (such as btrfs) and most Network Attached Storage devices can "
3187 "also create cheap snapshots from files or LUNs."
3188 msgstr ""
3189
3190 #. type: textblock
3191 #: ../clone/virt-sysprep.pod:386
3192 msgid "Get your NAS to snapshot and/or duplicate the LUN."
3193 msgstr ""
3194
3195 #. type: textblock
3196 #: ../clone/virt-sysprep.pod:390
3197 msgid "Prepare your template using L<virt-sparsify(1)>.  See below."
3198 msgstr ""
3199
3200 #. type: =head2
3201 #: ../clone/virt-sysprep.pod:394
3202 msgid "VIRT-CLONE"
3203 msgstr ""
3204
3205 #. type: textblock
3206 #: ../clone/virt-sysprep.pod:396
3207 msgid ""
3208 "A separate tool, L<virt-clone(1)>, can be used to duplicate the block device "
3209 "and/or modify the external libvirt configuration of a guest.  It will reset "
3210 "the name, UUID and MAC address of the guest in the libvirt XML."
3211 msgstr ""
3212
3213 #. type: textblock
3214 #: ../clone/virt-sysprep.pod:401
3215 msgid ""
3216 "L<virt-clone(1)> does not use libguestfs and cannot look inside the disk "
3217 "image.  This was the original motivation to write virt-sysprep."
3218 msgstr ""
3219
3220 #. type: =head2
3221 #: ../clone/virt-sysprep.pod:404
3222 msgid "SPARSIFY"
3223 msgstr ""
3224
3225 #. type: verbatim
3226 #: ../clone/virt-sysprep.pod:406
3227 #, no-wrap
3228 msgid ""
3229 "              virt-sparsify\n"
3230 " original guest --------> template\n"
3231 "\n"
3232 msgstr ""
3233
3234 #. type: textblock
3235 #: ../clone/virt-sysprep.pod:409
3236 msgid ""
3237 "L<virt-sparsify(1)> can be used to make the cloning template smaller, making "
3238 "it easier to compress and/or faster to copy."
3239 msgstr ""
3240
3241 #. type: textblock
3242 #: ../clone/virt-sysprep.pod:412
3243 msgid ""
3244 "Notice that since virt-sparsify also copies the image, you can use it to "
3245 "make the initial copy (instead of C<dd>)."
3246 msgstr ""
3247
3248 #. type: =head2
3249 #: ../clone/virt-sysprep.pod:415
3250 msgid "RESIZE"
3251 msgstr ""
3252
3253 #. type: verbatim
3254 #: ../clone/virt-sysprep.pod:417
3255 #, no-wrap
3256 msgid ""
3257 "                         virt-resize\n"
3258 "                template ---------->\n"
3259 "                            \\------> cloned\n"
3260 "                             \\-----> guests\n"
3261 "                              \\---->\n"
3262 "\n"
3263 msgstr ""
3264
3265 #. type: textblock
3266 #: ../clone/virt-sysprep.pod:423
3267 msgid ""
3268 "If you want to give people cloned guests, but let them pick the size of the "
3269 "guest themselves (eg. depending on how much they are prepared to pay for "
3270 "disk space), then instead of copying the template, you can run "
3271 "L<virt-resize(1)>.  Virt-resize performs a copy and resize, and thus is "
3272 "ideal for cloning guests from a template."
3273 msgstr ""
3274
3275 #. type: =head1
3276 #: ../clone/virt-sysprep.pod:429 ../src/guestfs.pod:1164
3277 msgid "SECURITY"
3278 msgstr ""
3279
3280 #. type: textblock
3281 #: ../clone/virt-sysprep.pod:431
3282 msgid ""
3283 "Although virt-sysprep removes some sensitive information from the guest, it "
3284 "does not pretend to remove all of it.  You should examine the L</OPERATIONS> "
3285 "above, and the implementation of the operations in the shell script.  You "
3286 "should also examine the guest afterwards."
3287 msgstr ""
3288
3289 #. type: textblock
3290 #: ../clone/virt-sysprep.pod:436
3291 msgid ""
3292 "Sensitive files are simply removed.  The data they contained may still exist "
3293 "on the disk, easily recovered with a hex editor or undelete tool.  Use "
3294 "L<virt-sparsify(1)> as one way to remove this content.  See also the "
3295 "L<scrub(1)> command to get rid of deleted content in directory entries and "
3296 "inodes."
3297 msgstr ""
3298
3299 #. type: =head2
3300 #: ../clone/virt-sysprep.pod:442
3301 msgid "RANDOM SEED"
3302 msgstr ""
3303
3304 #. type: textblock
3305 #: ../clone/virt-sysprep.pod:444
3306 msgid "I<(This section applies to Linux guests only)>"
3307 msgstr ""
3308
3309 #. type: textblock
3310 #: ../clone/virt-sysprep.pod:446
3311 msgid ""
3312 "The virt-sysprep C<random-seed> operation writes a few bytes of randomness "
3313 "from the host into the guest's random seed file."
3314 msgstr ""
3315
3316 #. type: textblock
3317 #: ../clone/virt-sysprep.pod:449
3318 msgid ""
3319 "If this is just done once and the guest is cloned from the same template, "
3320 "then each guest will start with the same entropy, and things like SSH host "
3321 "keys and TCP sequence numbers may be predictable."
3322 msgstr ""
3323
3324 #. type: textblock
3325 #: ../clone/virt-sysprep.pod:453
3326 msgid ""
3327 "Therefore you should arrange to add more randomness I<after> cloning from a "
3328 "template too, which can be done by just enabling the C<random-seed> "
3329 "operation:"
3330 msgstr ""
3331
3332 #. type: verbatim
3333 #: ../clone/virt-sysprep.pod:457
3334 #, no-wrap
3335 msgid ""
3336 " cp template.img newguest.img\n"
3337 " virt-sysprep --enable=random-seed -a newguest.img\n"
3338 "\n"
3339 msgstr ""
3340
3341 #. type: =head2
3342 #: ../clone/virt-sysprep.pod:460
3343 msgid "SELINUX RELABELLING"
3344 msgstr ""
3345
3346 #. type: textblock
3347 #: ../clone/virt-sysprep.pod:462
3348 msgid "I<(This section applies to Linux guests using SELinux only)>"
3349 msgstr ""
3350
3351 #. type: textblock
3352 #: ../clone/virt-sysprep.pod:464
3353 msgid ""
3354 "If any new files are created by virt-sysprep, then virt-sysprep touches "
3355 "C</.autorelabel> so that these will be correctly labelled by SELinux the "
3356 "next time the guest is booted.  This process interrupts boot and can take "
3357 "some time."
3358 msgstr ""
3359
3360 #. type: textblock
3361 #: ../clone/virt-sysprep.pod:469
3362 msgid ""
3363 "You can force relabelling for all guests by supplying the "
3364 "I<--selinux-relabel> option."
3365 msgstr ""
3366
3367 #. type: textblock
3368 #: ../clone/virt-sysprep.pod:472
3369 msgid ""
3370 "You can disable relabelling entirely by supplying the "
3371 "I<--no-selinux-relabel> option."
3372 msgstr ""
3373
3374 #. type: textblock
3375 #: ../clone/virt-sysprep.pod:484
3376 msgid "This program returns 0 on success, or 1 if there was an error."
3377 msgstr ""
3378
3379 #. type: textblock
3380 #: ../clone/virt-sysprep.pod:488
3381 msgid ""
3382 "L<guestfs(3)>, L<guestfish(1)>, L<virt-clone(1)>, L<virt-rescue(1)>, "
3383 "L<virt-resize(1)>, L<virt-sparsify(1)>, L<virsh(1)>, L<lvcreate(8)>, "
3384 "L<qemu-img(1)>, L<scrub(1)>, L<http://libguestfs.org/>, "
3385 "L<http://libvirt.org/>."
3386 msgstr ""
3387
3388 #. type: textblock
3389 #: ../df/virt-df.pod:5
3390 msgid "virt-df - Display free space on virtual filesystems"
3391 msgstr ""
3392
3393 #. type: verbatim
3394 #: ../df/virt-df.pod:9
3395 #, no-wrap
3396 msgid ""
3397 " virt-df [--options]\n"
3398 "\n"
3399 msgstr ""
3400
3401 #. type: verbatim
3402 #: ../df/virt-df.pod:11
3403 #, no-wrap
3404 msgid ""
3405 " virt-df [--options] -d domname\n"
3406 "\n"
3407 msgstr ""
3408
3409 #. type: verbatim
3410 #: ../df/virt-df.pod:13
3411 #, no-wrap
3412 msgid ""
3413 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
3414 "\n"
3415 msgstr ""
3416
3417 #. type: verbatim
3418 #: ../df/virt-df.pod:17
3419 #, no-wrap
3420 msgid ""
3421 " virt-df [--options] domname\n"
3422 "\n"
3423 msgstr ""
3424
3425 #. type: verbatim
3426 #: ../df/virt-df.pod:19
3427 #, no-wrap
3428 msgid ""
3429 " virt-df [--options] disk.img [disk.img ...]\n"
3430 "\n"
3431 msgstr ""
3432
3433 #. type: textblock
3434 #: ../df/virt-df.pod:23
3435 msgid ""
3436 "C<virt-df> is a command line tool to display free space on virtual machine "
3437 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
3438 "allocated to a virtual machine, but can look inside disk images to see how "
3439 "much space is really being used."
3440 msgstr ""
3441
3442 #. type: textblock
3443 #: ../df/virt-df.pod:28
3444 msgid ""
3445 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
3446 "to get a list of all active and inactive guests, and performs a C<df>-type "
3447 "operation on each one in turn, printing out the results."
3448 msgstr ""
3449
3450 #. type: textblock
3451 #: ../df/virt-df.pod:32
3452 msgid ""
3453 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a "
3454 "C<df>-type operation on either the single named libvirt domain, or on the "
3455 "disk image(s) listed on the command line (which must all belong to a single "
3456 "VM).  In this mode (with arguments), C<virt-df> will I<only work for a "
3457 "single guest>.  If you want to run on multiple guests, then you have to "
3458 "invoke C<virt-df> multiple times."
3459 msgstr ""
3460
3461 #. type: textblock
3462 #: ../df/virt-df.pod:39
3463 msgid ""
3464 "Use the I<--csv> option to get a format which can be easily parsed by other "
3465 "programs.  Other options are similar to the standard L<df(1)> command."
3466 msgstr ""
3467
3468 #. type: textblock
3469 #: ../df/virt-df.pod:45
3470 msgid ""
3471 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
3472 "output human-readable:"
3473 msgstr ""
3474
3475 #. type: verbatim
3476 #: ../df/virt-df.pod:48
3477 #, no-wrap
3478 msgid ""
3479 " # virt-df -d F14x64 -h\n"
3480 " Filesystem                       Size     Used  Available  Use%\n"
3481 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
3482 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
3483 "\n"
3484 msgstr ""
3485
3486 #. type: textblock
3487 #: ../df/virt-df.pod:53
3488 msgid "Show disk usage for a disk image file called C<test.img>:"
3489 msgstr ""
3490
3491 #. type: verbatim
3492 #: ../df/virt-df.pod:55
3493 #, no-wrap
3494 msgid ""
3495 " $ virt-df -a test1.img\n"
3496 " Filesystem                  1K-blocks     Used  Available  Use%\n"
3497 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
3498 "\n"
3499 msgstr ""
3500
3501 #. type: verbatim
3502 #: ../df/virt-df.pod:112
3503 #, no-wrap
3504 msgid ""
3505 " virt-df --format=raw -a disk.img\n"
3506 "\n"
3507 msgstr ""
3508
3509 #. type: verbatim
3510 #: ../df/virt-df.pod:116
3511 #, no-wrap
3512 msgid ""
3513 " virt-df --format=raw -a disk.img --format -a another.img\n"
3514 "\n"
3515 msgstr ""
3516
3517 #. type: textblock
3518 #: ../df/virt-df.pod:129
3519 msgid "Print sizes in human-readable format."
3520 msgstr ""
3521
3522 #. type: textblock
3523 #: ../df/virt-df.pod:131
3524 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
3525 msgstr ""
3526
3527 #. type: =item
3528 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:164
3529 msgid "B<-i>"
3530 msgstr ""
3531
3532 #. type: =item
3533 #: ../df/virt-df.pod:135
3534 msgid "B<--inodes>"
3535 msgstr ""
3536
3537 #. type: textblock
3538 #: ../df/virt-df.pod:137
3539 msgid "Print inodes instead of blocks."
3540 msgstr ""
3541
3542 #. type: =item
3543 #: ../df/virt-df.pod:139
3544 msgid "B<--one-per-guest>"
3545 msgstr ""
3546
3547 #. type: textblock
3548 #: ../df/virt-df.pod:141
3549 msgid ""
3550 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
3551 "disks from several guests to a single libguestfs appliance."
3552 msgstr ""
3553
3554 #. type: textblock
3555 #: ../df/virt-df.pod:144
3556 msgid "You might use this option in the following circumstances:"
3557 msgstr ""
3558
3559 #. type: textblock
3560 #: ../df/virt-df.pod:150
3561 msgid ""
3562 "If you think an untrusted guest might actively try to exploit the libguestfs "
3563 "appliance kernel, then this prevents one guest from interfering with the "
3564 "stats printed for another guest."
3565 msgstr ""
3566
3567 #. type: textblock
3568 #: ../df/virt-df.pod:156
3569 msgid ""
3570 "If the kernel has a bug which stops it from accessing a filesystem in one "
3571 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
3572 "and report stats for further guests."
3573 msgstr ""
3574
3575 #. type: textblock
3576 #: ../df/virt-df.pod:165
3577 msgid ""
3578 "Print UUIDs instead of names.  This is useful for following a guest even "
3579 "when the guest is migrated or renamed, or when two guests happen to have the "
3580 "same name."
3581 msgstr ""
3582
3583 #. type: textblock
3584 #: ../df/virt-df.pod:169
3585 msgid ""
3586 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
3587 "images, we still print the disk image name even when this option is "
3588 "specified."
3589 msgstr ""
3590
3591 #. type: =head1
3592 #: ../df/virt-df.pod:191
3593 msgid "STATVFS NUMBERS"
3594 msgstr ""
3595
3596 #. type: textblock
3597 #: ../df/virt-df.pod:193
3598 msgid ""
3599 "C<virt-df> (and L<df(1)>) get information by issuing a L<statvfs(3)> system "
3600 "call.  You can get the same information directly, either from the host "
3601 "(using libguestfs) or inside the guest:"
3602 msgstr ""
3603
3604 #. type: =item
3605 #: ../df/virt-df.pod:199
3606 msgid "From the host"
3607 msgstr ""
3608
3609 #. type: textblock
3610 #: ../df/virt-df.pod:201 ../df/virt-df.pod:209
3611 msgid "Run this command:"
3612 msgstr ""
3613
3614 #. type: verbatim
3615 #: ../df/virt-df.pod:203
3616 #, no-wrap
3617 msgid ""
3618 " guestfish --ro -d GuestName -i statvfs /\n"
3619 "\n"
3620 msgstr ""
3621
3622 #. type: textblock
3623 #: ../df/virt-df.pod:205 ../df/virt-df.pod:213
3624 msgid "(change C</> to see stats for other filesystems)."
3625 msgstr ""
3626
3627 #. type: =item
3628 #: ../df/virt-df.pod:207
3629 msgid "From inside the guest"
3630 msgstr ""
3631
3632 #. type: verbatim
3633 #: ../df/virt-df.pod:211
3634 #, no-wrap
3635 msgid ""
3636 " python -c 'import os; s = os.statvfs (\"/\"); print s'\n"
3637 "\n"
3638 msgstr ""
3639
3640 #. type: textblock
3641 #: ../df/virt-df.pod:255
3642 msgid ""
3643 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, "
3644 "L<http://libguestfs.org/>."
3645 msgstr ""
3646
3647 #. type: textblock
3648 #: ../edit/virt-edit.pod:5
3649 msgid "virt-edit - Edit a file in a virtual machine"
3650 msgstr ""
3651
3652 #. type: verbatim
3653 #: ../edit/virt-edit.pod:9
3654 #, no-wrap
3655 msgid ""
3656 " virt-edit [--options] -d domname file [file ...]\n"
3657 "\n"
3658 msgstr ""
3659
3660 #. type: verbatim
3661 #: ../edit/virt-edit.pod:11
3662 #, no-wrap
3663 msgid ""
3664 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
3665 "\n"
3666 msgstr ""
3667
3668 #. type: verbatim
3669 #: ../edit/virt-edit.pod:13
3670 #, no-wrap
3671 msgid ""
3672 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
3673 "\n"
3674 msgstr ""
3675
3676 #. type: verbatim
3677 #: ../edit/virt-edit.pod:17
3678 #, no-wrap
3679 msgid ""
3680 " virt-edit domname file\n"
3681 "\n"
3682 msgstr ""
3683
3684 #. type: verbatim
3685 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
3686 #, no-wrap
3687 msgid ""
3688 " virt-edit disk.img [disk.img ...] file\n"
3689 "\n"
3690 msgstr ""
3691
3692 #. type: =head1
3693 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23 ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15 ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19 ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
3694 msgid "WARNING"
3695 msgstr ""
3696
3697 #. type: textblock
3698 #: ../edit/virt-edit.pod:23
3699 msgid ""
3700 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
3701 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
3702 "doing this, but doesn't catch all cases."
3703 msgstr ""
3704
3705 #. type: textblock
3706 #: ../edit/virt-edit.pod:29
3707 msgid ""
3708 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
3709 "exists in the named virtual machine (or disk image)."
3710 msgstr ""
3711
3712 #. type: textblock
3713 #: ../edit/virt-edit.pod:32
3714 msgid ""
3715 "Multiple filenames can be given, in which case they are each edited in "
3716 "turn.  Each filename must be a full path, starting at the root directory "
3717 "(starting with '/')."
3718 msgstr ""
3719
3720 #. type: textblock
3721 #: ../edit/virt-edit.pod:36
3722 msgid "If you want to just view a file, use L<virt-cat(1)>."
3723 msgstr ""
3724
3725 #. type: textblock
3726 #: ../edit/virt-edit.pod:38
3727 msgid ""
3728 "For more complex cases you should look at the L<guestfish(1)> tool (see "
3729 "L</USING GUESTFISH> below)."
3730 msgstr ""
3731
3732 #. type: textblock
3733 #: ../edit/virt-edit.pod:41
3734 msgid ""
3735 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
3736 "that and much more."
3737 msgstr ""
3738
3739 #. type: textblock
3740 #: ../edit/virt-edit.pod:46
3741 msgid "Edit the named files interactively:"
3742 msgstr ""
3743
3744 #. type: verbatim
3745 #: ../edit/virt-edit.pod:48
3746 #, no-wrap
3747 msgid ""
3748 " virt-edit -d mydomain /boot/grub/grub.conf\n"
3749 "\n"
3750 msgstr ""
3751
3752 #. type: verbatim
3753 #: ../edit/virt-edit.pod:50
3754 #, no-wrap
3755 msgid ""
3756 " virt-edit -d mydomain /etc/passwd\n"
3757 "\n"
3758 msgstr ""
3759
3760 #. type: textblock
3761 #: ../edit/virt-edit.pod:52
3762 msgid "For Windows guests, some Windows paths are understood:"
3763 msgstr ""
3764
3765 #. type: verbatim
3766 #: ../edit/virt-edit.pod:54
3767 #, no-wrap
3768 msgid ""
3769 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
3770 "\n"
3771 msgstr ""
3772
3773 #. type: textblock
3774 #: ../edit/virt-edit.pod:56
3775 msgid ""
3776 "If Perl is installed, you can also edit files non-interactively (see "
3777 "L</NON-INTERACTIVE EDITING> below).  To change the init default level to 5:"
3778 msgstr ""
3779
3780 #. type: verbatim
3781 #: ../edit/virt-edit.pod:60
3782 #, no-wrap
3783 msgid ""
3784 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
3785 "\n"
3786 msgstr ""
3787
3788 #. type: =item
3789 #: ../edit/virt-edit.pod:81
3790 msgid "B<-b> extension"
3791 msgstr ""
3792
3793 #. type: =item
3794 #: ../edit/virt-edit.pod:83
3795 msgid "B<--backup> extension"
3796 msgstr ""
3797
3798 #. type: textblock
3799 #: ../edit/virt-edit.pod:85
3800 msgid ""
3801 "Create a backup of the original file I<in the guest disk image>.  The backup "
3802 "has the original filename with C<extension> added."
3803 msgstr ""
3804
3805 #. type: textblock
3806 #: ../edit/virt-edit.pod:88
3807 msgid ""
3808 "Usually the first character of C<extension> would be a dot C<.> so you would "
3809 "write:"
3810 msgstr ""
3811
3812 #. type: verbatim
3813 #: ../edit/virt-edit.pod:91
3814 #, no-wrap
3815 msgid ""
3816 " virt-edit -b .orig [etc]\n"
3817 "\n"
3818 msgstr ""
3819
3820 #. type: textblock
3821 #: ../edit/virt-edit.pod:93
3822 msgid "By default, no backup file is made."
3823 msgstr ""
3824
3825 #. type: =item
3826 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181 ../fuse/guestmount.pod:105 ../inspector/virt-inspector.pod:74 ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78 ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
3827 msgid "B<-c URI>"
3828 msgstr ""
3829
3830 #. type: =item
3831 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183 ../fuse/guestmount.pod:107 ../inspector/virt-inspector.pod:76 ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80 ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
3832 msgid "B<--connect URI>"
3833 msgstr ""
3834
3835 #. type: textblock
3836 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84 ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134 ../tools/virt-win-reg.pl:135
3837 msgid ""
3838 "If you specify guest block devices directly, then libvirt is not used at "
3839 "all."
3840 msgstr ""
3841
3842 #. type: textblock
3843 #: ../edit/virt-edit.pod:114
3844 msgid ""
3845 "When prompting for keys and passphrases, virt-edit normally turns echoing "
3846 "off so you cannot see what you are typing.  If you are not worried about "
3847 "Tempest attacks and there is no one else in the room you can specify this "
3848 "flag to see what you are typing."
3849 msgstr ""
3850
3851 #. type: =item
3852 #: ../edit/virt-edit.pod:119
3853 msgid "B<-e> EXPR"
3854 msgstr ""
3855
3856 #. type: =item
3857 #: ../edit/virt-edit.pod:121
3858 msgid "B<--expr> EXPR"
3859 msgstr ""
3860
3861 #. type: textblock
3862 #: ../edit/virt-edit.pod:123
3863 msgid ""
3864 "Instead of launching the external editor, non-interactively apply the Perl "
3865 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
3866 "EDITING> below."
3867 msgstr ""
3868
3869 #. type: textblock
3870 #: ../edit/virt-edit.pod:127
3871 msgid ""
3872 "Be careful to properly quote the expression to prevent it from being altered "
3873 "by the shell."
3874 msgstr ""
3875
3876 #. type: textblock
3877 #: ../edit/virt-edit.pod:130
3878 msgid "Note that this option is only available when Perl 5 is installed."
3879 msgstr ""
3880
3881 #. type: =item
3882 #: ../edit/virt-edit.pod:132
3883 msgid "B<--format> raw|qcow2|..."
3884 msgstr ""
3885
3886 #. type: verbatim
3887 #: ../edit/virt-edit.pod:143
3888 #, no-wrap
3889 msgid ""
3890 " virt-edit --format=raw -a disk.img file\n"
3891 "\n"
3892 msgstr ""
3893
3894 #. type: verbatim
3895 #: ../edit/virt-edit.pod:147
3896 #, no-wrap
3897 msgid ""
3898 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
3899 "\n"
3900 msgstr ""
3901
3902 #. type: textblock
3903 #: ../edit/virt-edit.pod:181
3904 msgid "Previous versions of virt-edit allowed you to write either:"
3905 msgstr ""
3906
3907 #. type: verbatim
3908 #: ../edit/virt-edit.pod:187
3909 #, no-wrap
3910 msgid ""
3911 " virt-edit guestname file\n"
3912 "\n"
3913 msgstr ""
3914
3915 #. type: =head1
3916 #: ../edit/virt-edit.pod:195
3917 msgid "NON-INTERACTIVE EDITING"
3918 msgstr ""
3919
3920 #. type: textblock
3921 #: ../edit/virt-edit.pod:197
3922 msgid ""
3923 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
3924 "administrator can interactively edit the file."
3925 msgstr ""
3926
3927 #. type: textblock
3928 #: ../edit/virt-edit.pod:200
3929 msgid ""
3930 "There are two ways also to use C<virt-edit> from scripts in order to make "
3931 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
3932 "like this, it's less error-prone to write scripts directly using the "
3933 "libguestfs API and Augeas for configuration file editing.)"
3934 msgstr ""
3935
3936 #. type: textblock
3937 #: ../edit/virt-edit.pod:206
3938 msgid ""
3939 "The first method is to temporarily set C<$EDITOR> to any script or program "
3940 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
3941 "update C<tmpfile> in place however it likes."
3942 msgstr ""
3943
3944 #. type: textblock
3945 #: ../edit/virt-edit.pod:210
3946 msgid ""
3947 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
3948 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
3949 "instances of C<foo> with C<bar> in a file:"
3950 msgstr ""
3951
3952 #. type: verbatim
3953 #: ../edit/virt-edit.pod:214
3954 #, no-wrap
3955 msgid ""
3956 " virt-edit -d domname filename -e 's/foo/bar/'\n"
3957 "\n"
3958 msgstr ""
3959
3960 #. type: textblock
3961 #: ../edit/virt-edit.pod:216
3962 msgid ""
3963 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
3964 "For example to delete root's password you could do:"
3965 msgstr ""
3966
3967 #. type: verbatim
3968 #: ../edit/virt-edit.pod:219
3969 #, no-wrap
3970 msgid ""
3971 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
3972 "\n"
3973 msgstr ""
3974
3975 #. type: textblock
3976 #: ../edit/virt-edit.pod:221
3977 msgid ""
3978 "What really happens is that the snippet is evaluated as a Perl expression "
3979 "for each line of the file.  The line, including the final C<\\n>, is passed "
3980 "in C<$_> and the expression should update C<$_> or leave it unchanged."
3981 msgstr ""
3982
3983 #. type: textblock
3984 #: ../edit/virt-edit.pod:226
3985 msgid ""
3986 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
3987 "C<apache> user account from the password file you can do:"
3988 msgstr ""
3989
3990 #. type: verbatim
3991 #: ../edit/virt-edit.pod:229
3992 #, no-wrap
3993 msgid ""
3994 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
3995 "\n"
3996 msgstr ""
3997
3998 #. type: textblock
3999 #: ../edit/virt-edit.pod:231
4000 msgid ""
4001 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
4002 "the end of the file is rather difficult this way since there is no concept "
4003 "of \"last line of the file\" - your expression just doesn't get called "
4004 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
4005 "want to do this."
4006 msgstr ""
4007
4008 #. type: textblock
4009 #: ../edit/virt-edit.pod:237
4010 msgid ""
4011 "The variable C<$lineno> contains the current line number.  As is "
4012 "traditional, the first line in the file is number C<1>."
4013 msgstr ""
4014
4015 #. type: textblock
4016 #: ../edit/virt-edit.pod:240
4017 msgid ""
4018 "The return value from the expression is ignored, but the expression may call "
4019 "C<die> in order to abort the whole program, leaving the original file "
4020 "untouched."
4021 msgstr ""
4022
4023 #. type: textblock
4024 #: ../edit/virt-edit.pod:244
4025 msgid ""
4026 "Remember when matching the end of a line that C<$_> may contain the final "
4027 "C<\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
4028 "newline then neither of these.  Thus to match or substitute some text at the "
4029 "end of a line, use this regular expression:"
4030 msgstr ""
4031
4032 #. type: verbatim
4033 #: ../edit/virt-edit.pod:249
4034 #, no-wrap
4035 msgid ""
4036 " /some text(\\r?\\n)?$/\n"
4037 "\n"
4038 msgstr ""
4039
4040 #. type: textblock
4041 #: ../edit/virt-edit.pod:251
4042 msgid ""
4043 "Alternately, use the perl C<chomp> function, being careful not to chomp "
4044 "C<$_> itself (since that would remove all newlines from the file):"
4045 msgstr ""
4046
4047 #. type: verbatim
4048 #: ../edit/virt-edit.pod:255
4049 #, no-wrap
4050 msgid ""
4051 " my $m = $_; chomp $m; $m =~ /some text$/\n"
4052 "\n"
4053 msgstr ""
4054
4055 #. type: textblock
4056 #: ../edit/virt-edit.pod:259
4057 msgid ""
4058 "C<virt-edit> has a limited ability to understand Windows drive letters and "
4059 "paths (eg. C<E:\\foo\\bar.txt>)."
4060 msgstr ""
4061
4062 #. type: textblock
4063 #: ../edit/virt-edit.pod:278
4064 msgid ""
4065 "The path is resolved case insensitively to locate the file that should be "
4066 "edited."
4067 msgstr ""
4068
4069 #. type: textblock
4070 #: ../edit/virt-edit.pod:299
4071 msgid ""
4072 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
4073 "C<virt-edit> doesn't work."
4074 msgstr ""
4075
4076 #. type: textblock
4077 #: ../edit/virt-edit.pod:302
4078 msgid "Using C<virt-edit> is approximately equivalent to doing:"
4079 msgstr ""
4080
4081 #. type: verbatim
4082 #: ../edit/virt-edit.pod:304
4083 #, no-wrap
4084 msgid ""
4085 " guestfish --rw -i -d domname edit /file\n"
4086 "\n"
4087 msgstr ""
4088
4089 #. type: textblock
4090 #: ../edit/virt-edit.pod:306
4091 msgid ""
4092 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
4093 "path to the file."
4094 msgstr ""
4095
4096 #. type: textblock
4097 #: ../edit/virt-edit.pod:309
4098 msgid ""
4099 "The command above uses libguestfs's guest inspection feature and so does not "
4100 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
4101 "disk images that don't contain guests.  To edit a file on a disk image "
4102 "directly, use:"
4103 msgstr ""
4104
4105 #. type: verbatim
4106 #: ../edit/virt-edit.pod:314
4107 #, no-wrap
4108 msgid ""
4109 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
4110 "\n"
4111 msgstr ""
4112
4113 #. type: textblock
4114 #: ../edit/virt-edit.pod:316
4115 msgid ""
4116 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
4117 "the disk image to edit, and C</file> is the full path to the file."
4118 msgstr ""
4119
4120 #. type: textblock
4121 #: ../edit/virt-edit.pod:320
4122 msgid ""
4123 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
4124 "C<write> or C<upload> instead:"
4125 msgstr ""
4126
4127 #. type: verbatim
4128 #: ../edit/virt-edit.pod:323
4129 #, no-wrap
4130 msgid ""
4131 " guestfish --rw -i -d domname touch /newfile\n"
4132 "\n"
4133 msgstr ""
4134
4135 #. type: verbatim
4136 #: ../edit/virt-edit.pod:325
4137 #, no-wrap
4138 msgid ""
4139 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
4140 "\n"
4141 msgstr ""
4142
4143 #. type: verbatim
4144 #: ../edit/virt-edit.pod:327
4145 #, no-wrap
4146 msgid ""
4147 " guestfish --rw -i -d domname upload localfile /newfile\n"
4148 "\n"
4149 msgstr ""
4150
4151 #. type: =head1
4152 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1119 ../rescue/virt-rescue.pod:261 ../sparsify/virt-sparsify.pod:231 ../src/guestfs.pod:3209 ../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:3349 ../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:3351 ../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:3358
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:3363
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:3368
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:3083
5598 msgid "Run:"
5599 msgstr ""
5600
5601 #. type: verbatim
5602 #: ../examples/guestfs-testing.pod:133
5603 #, no-wrap
5604 msgid ""
5605 " virt-df --csv > /tmp/report.csv\n"
5606 "\n"
5607 msgstr ""
5608
5609 #. type: textblock
5610 #: ../examples/guestfs-testing.pod:135
5611 msgid ""
5612 "Now try to load this into your favorite spreadsheet or database.  Are the "
5613 "results reproduced faithfully in the spreadsheet/database?"
5614 msgstr ""
5615
5616 #. type: textblock
5617 #: ../examples/guestfs-testing.pod:138
5618 msgid ""
5619 "http://www.postgresql.org/docs/8.1/static/sql-copy.html "
5620 "http://dev.mysql.com/doc/refman/5.1/en/load-data.html"
5621 msgstr ""
5622
5623 #. type: =head2
5624 #: ../examples/guestfs-testing.pod:141
5625 msgid "B<*> Edit a file in a B<shut off> guest."
5626 msgstr ""
5627
5628 #. type: textblock
5629 #: ../examples/guestfs-testing.pod:143
5630 msgid ""
5631 "L<virt-edit(1)> can edit files in guests.  Try this command on a RHEL or "
5632 "Fedora guest:"
5633 msgstr ""
5634
5635 #. type: verbatim
5636 #: ../examples/guestfs-testing.pod:146
5637 #, no-wrap
5638 msgid ""
5639 " virt-edit LinuxGuest /etc/sysconfig/network\n"
5640 "\n"
5641 msgstr ""
5642
5643 #. type: textblock
5644 #: ../examples/guestfs-testing.pod:148
5645 msgid "On other Linux guests try editing other files such as:"
5646 msgstr ""
5647
5648 #. type: verbatim
5649 #: ../examples/guestfs-testing.pod:150
5650 #, no-wrap
5651 msgid ""
5652 " virt-edit LinuxGuest /etc/motd\n"
5653 "\n"
5654 msgstr ""
5655
5656 #. type: textblock
5657 #: ../examples/guestfs-testing.pod:152
5658 msgid "Are the changes seen inside the guest when it is booted?"
5659 msgstr ""
5660
5661 #. type: =head2
5662 #: ../examples/guestfs-testing.pod:154
5663 msgid "Display the filesystems / partitions / LVs in a guest."
5664 msgstr ""
5665
5666 #. type: textblock
5667 #: ../examples/guestfs-testing.pod:156
5668 msgid ""
5669 "L<virt-filesystems(1)> can be used to display filesystems in a guest.  Try "
5670 "this command on any disk image or guest:"
5671 msgstr ""
5672
5673 #. type: verbatim
5674 #: ../examples/guestfs-testing.pod:159
5675 #, no-wrap
5676 msgid ""
5677 " virt-filesystems -a /path/to/disk.img --all --long -h\n"
5678 "\n"
5679 msgstr ""
5680
5681 #. type: verbatim
5682 #: ../examples/guestfs-testing.pod:163
5683 #, no-wrap
5684 msgid ""
5685 " virt-filesystems -d Guest --all --long -h\n"
5686 "\n"
5687 msgstr ""
5688
5689 #. type: textblock
5690 #: ../examples/guestfs-testing.pod:165
5691 msgid "Do the results match what is seen in the guest?"
5692 msgstr ""
5693
5694 #. type: =head2
5695 #: ../examples/guestfs-testing.pod:167
5696 msgid "Run virt-inspector on all your guests."
5697 msgstr ""
5698
5699 #. type: textblock
5700 #: ../examples/guestfs-testing.pod:169
5701 msgid ""
5702 "Use L<virt-inspector(1)> to get a report on all of your guests or disk "
5703 "images:"
5704 msgstr ""
5705
5706 #. type: verbatim
5707 #: ../examples/guestfs-testing.pod:172
5708 #, no-wrap
5709 msgid ""
5710 " virt-inspector -a /path/to/disk.img | less\n"
5711 "\n"
5712 msgstr ""
5713
5714 #. type: verbatim
5715 #: ../examples/guestfs-testing.pod:176
5716 #, no-wrap
5717 msgid ""
5718 " virt-inspector -d Guest | less\n"
5719 "\n"
5720 msgstr ""
5721
5722 #. type: textblock
5723 #: ../examples/guestfs-testing.pod:178
5724 msgid "Do the results match what is actually in the guest?"
5725 msgstr ""
5726
5727 #. type: =head2
5728 #: ../examples/guestfs-testing.pod:180
5729 msgid "Try the auditing features of virt-ls on all your guests."
5730 msgstr ""
5731
5732 #. type: verbatim
5733 #: ../examples/guestfs-testing.pod:184
5734 #, no-wrap
5735 msgid ""
5736 " virt-ls -lR -d Guest / | grep '^- [42]'\n"
5737 "\n"
5738 msgstr ""
5739
5740 #. type: verbatim
5741 #: ../examples/guestfs-testing.pod:188
5742 #, no-wrap
5743 msgid ""
5744 " virt-ls -lR -d Guest / | grep '^d ...7'\n"
5745 "\n"
5746 msgstr ""
5747
5748 #. type: verbatim
5749 #: ../examples/guestfs-testing.pod:192
5750 #, no-wrap
5751 msgid ""
5752 " virt-ls -lR -d Guest / | grep '^s'\n"
5753 "\n"
5754 msgstr ""
5755
5756 #. type: verbatim
5757 #: ../examples/guestfs-testing.pod:196
5758 #, no-wrap
5759 msgid ""
5760 " virt-ls -lR -d Guest / | grep -i '^-.*\\.png$'\n"
5761 "\n"
5762 msgstr ""
5763
5764 #. type: textblock
5765 #: ../examples/guestfs-testing.pod:198
5766 msgid "Display files larger than 10MB in home directories:"
5767 msgstr ""
5768
5769 #. type: verbatim
5770 #: ../examples/guestfs-testing.pod:200
5771 #, no-wrap
5772 msgid ""
5773 " virt-ls -lR -d Guest /home | awk '$3 > 10*1024*1024'\n"
5774 "\n"
5775 msgstr ""
5776
5777 #. type: verbatim
5778 #: ../examples/guestfs-testing.pod:204
5779 #, no-wrap
5780 msgid ""
5781 " virt-ls -lR -d Guest --time-days / | awk '$6 <= 7'\n"
5782 "\n"
5783 msgstr ""
5784
5785 #. type: verbatim
5786 #: ../examples/guestfs-testing.pod:208
5787 #, no-wrap
5788 msgid ""
5789 " virt-ls -lR -d Guest --time-days / | grep '^-' | awk '$6 < 1'\n"
5790 "\n"
5791 msgstr ""
5792
5793 #. type: textblock
5794 #: ../examples/guestfs-testing.pod:210
5795 msgid "Do the results match what is in the guest?"
5796 msgstr ""
5797
5798 #. type: =head2
5799 #: ../examples/guestfs-testing.pod:212
5800 msgid "Create a disk image from a tarball."
5801 msgstr ""
5802
5803 #. type: textblock
5804 #: ../examples/guestfs-testing.pod:214
5805 msgid ""
5806 "Use L<virt-make-fs(1)> to create a disk image from any tarball that you "
5807 "happen to have:"
5808 msgstr ""
5809
5810 #. type: verbatim
5811 #: ../examples/guestfs-testing.pod:217
5812 #, no-wrap
5813 msgid ""
5814 " virt-make-fs --partition=mbr --type=vfat /any/tarball.tar.gz output.img\n"
5815 "\n"
5816 msgstr ""
5817
5818 #. type: textblock
5819 #: ../examples/guestfs-testing.pod:219
5820 msgid ""
5821 "Add 'output.img' as a raw disk to an existing guest.  Check the guest can "
5822 "see the files.  This test is particularly useful if you try it with a "
5823 "Windows guest."
5824 msgstr ""
5825
5826 #. type: textblock
5827 #: ../examples/guestfs-testing.pod:223
5828 msgid "Try other partitioning schemes, eg. I<--partition=gpt>."
5829 msgstr ""
5830
5831 #. type: textblock
5832 #: ../examples/guestfs-testing.pod:225
5833 msgid "Try other filesystem formats, eg. I<--type=ntfs>, I<--type=ext2>."
5834 msgstr ""
5835
5836 #. type: =head2
5837 #: ../examples/guestfs-testing.pod:227
5838 msgid "B<*> Run virt-rescue on a B<shut off> disk image or guest."
5839 msgstr ""
5840
5841 #. type: textblock
5842 #: ../examples/guestfs-testing.pod:229
5843 msgid ""
5844 "Use L<virt-rescue(1)> to examine, rescue or repair a B<shut off> guest or "
5845 "disk image:"
5846 msgstr ""
5847
5848 #. type: verbatim
5849 #: ../examples/guestfs-testing.pod:232
5850 #, no-wrap
5851 msgid ""
5852 " virt-rescue -a /path/to/disk.img\n"
5853 "\n"
5854 msgstr ""
5855
5856 #. type: verbatim
5857 #: ../examples/guestfs-testing.pod:236
5858 #, no-wrap
5859 msgid ""
5860 " virt-rescue -d Guest\n"
5861 "\n"
5862 msgstr ""
5863
5864 #. type: textblock
5865 #: ../examples/guestfs-testing.pod:238
5866 msgid "Can you use ordinary shell commands to examine the guest?"
5867 msgstr ""
5868
5869 #. type: =head2
5870 #: ../examples/guestfs-testing.pod:240
5871 msgid "B<*> Resize your guests."
5872 msgstr ""
5873
5874 #. type: textblock
5875 #: ../examples/guestfs-testing.pod:242
5876 msgid ""
5877 "Use L<virt-resize(1)> to give a guest some more disk space.  For example, if "
5878 "you have a disk image that is smaller than 30G, increase it to 30G by doing:"
5879 msgstr ""
5880
5881 #. type: verbatim
5882 #: ../examples/guestfs-testing.pod:246
5883 #, no-wrap
5884 msgid ""
5885 " truncate -s 30G newdisk.img\n"
5886 " virt-filesystems -a /path/to/olddisk.img --all --long -h\n"
5887 " virt-resize /path/to/olddisk.img newdisk.img --expand /dev/sda1\n"
5888 " qemu-kvm -m 1024 -hda newdisk.img\n"
5889 "\n"
5890 msgstr ""
5891
5892 #. type: textblock
5893 #: ../examples/guestfs-testing.pod:251
5894 msgid "Does the guest still boot? Try expanding other partitions."
5895 msgstr ""
5896
5897 #. type: =head2
5898 #: ../examples/guestfs-testing.pod:253
5899 msgid "B<*> Sparsify a guest disk."
5900 msgstr ""
5901
5902 #. type: textblock
5903 #: ../examples/guestfs-testing.pod:255
5904 msgid "Using L<virt-sparsify(1)>, make a disk image more sparse:"
5905 msgstr ""
5906
5907 #. type: verbatim
5908 #: ../examples/guestfs-testing.pod:257
5909 #, no-wrap
5910 msgid ""
5911 " virt-sparsify /path/to/olddisk.img newdisk.img\n"
5912 "\n"
5913 msgstr ""
5914
5915 #. type: textblock
5916 #: ../examples/guestfs-testing.pod:259
5917 msgid ""
5918 "Is C<newdisk.img> still bootable after sparsifying? Is the resulting disk "
5919 "image smaller (use C<du> to check)?"
5920 msgstr ""
5921
5922 #. type: =head2
5923 #: ../examples/guestfs-testing.pod:262
5924 msgid "B<*> \"sysprep\" a B<shut off> Linux guest."
5925 msgstr ""
5926
5927 #. type: textblock
5928 #: ../examples/guestfs-testing.pod:264
5929 msgid ""
5930 "Note that this really will mess up an existing guest, so it's better to "
5931 "clone the guest before trying this."
5932 msgstr ""
5933
5934 #. type: verbatim
5935 #: ../examples/guestfs-testing.pod:267
5936 #, no-wrap
5937 msgid ""
5938 " virt-sysprep --hostname newhost.example.com -a /path/to/disk.img\n"
5939 "\n"
5940 msgstr ""
5941
5942 #. type: textblock
5943 #: ../examples/guestfs-testing.pod:269
5944 msgid ""
5945 "Was the sysprep successful? After booting, what changes were made and were "
5946 "they successful?"
5947 msgstr ""
5948
5949 #. type: =head2
5950 #: ../examples/guestfs-testing.pod:272
5951 msgid "Dump the Windows Registry from your Windows guests."
5952 msgstr ""
5953
5954 #. type: textblock
5955 #: ../examples/guestfs-testing.pod:274
5956 msgid ""
5957 "Use L<virt-win-reg(1)> to dump out the Windows Registry from any Windows "
5958 "guests that you have."
5959 msgstr ""
5960
5961 #. type: verbatim
5962 #: ../examples/guestfs-testing.pod:277
5963 #, no-wrap
5964 msgid ""
5965 " virt-win-reg --unsafe-printable-strings WindowsGuest 'HKLM\\Software' |\n"
5966 "   less\n"
5967 "\n"
5968 msgstr ""
5969
5970 #. type: verbatim
5971 #: ../examples/guestfs-testing.pod:280
5972 #, no-wrap
5973 msgid ""
5974 " virt-win-reg --unsafe-printable-strings WindowsGuest 'HKLM\\System' |\n"
5975 "   less\n"
5976 "\n"
5977 msgstr ""
5978
5979 #. type: textblock
5980 #: ../examples/guestfs-testing.pod:283
5981 msgid "Does the output match running C<regedit> inside the guest?"
5982 msgstr ""
5983
5984 #. type: textblock
5985 #: ../examples/guestfs-testing.pod:285
5986 msgid ""
5987 "A recent feature is the ability to dump user registries, so try this, "
5988 "replacing I<username> with the name of a local user in the guest:"
5989 msgstr ""
5990
5991 #. type: verbatim
5992 #: ../examples/guestfs-testing.pod:288
5993 #, no-wrap
5994 msgid ""
5995 " virt-win-reg --unsafe-printable-strings WindowsGuest 'HKEY_USERS\\username' "
5996 "|\n"
5997 "   less\n"
5998 "\n"
5999 msgstr ""
6000
6001 #. type: textblock
6002 #: ../examples/guestfs-testing.pod:293
6003 msgid ""
6004 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, "
6005 "L<http://libguestfs.org/>."
6006 msgstr ""
6007
6008 #. type: =head2
6009 #: ../fish/guestfish-actions.pod:1
6010 msgid "add-cdrom"
6011 msgstr ""
6012
6013 #. type: verbatim
6014 #: ../fish/guestfish-actions.pod:3
6015 #, no-wrap
6016 msgid ""
6017 " add-cdrom filename\n"
6018 "\n"
6019 msgstr ""
6020
6021 #. type: textblock
6022 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
6023 msgid "This function adds a virtual CD-ROM disk image to the guest."
6024 msgstr ""
6025
6026 #. type: textblock
6027 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
6028 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
6029 msgstr ""
6030
6031 #. type: textblock
6032 #: ../fish/guestfish-actions.pod:15
6033 msgid ""
6034 "This call checks for the existence of C<filename>.  This stops you from "
6035 "specifying other types of drive which are supported by qemu such as C<nbd:> "
6036 "and C<http:> URLs.  To specify those, use the general L</config> call "
6037 "instead."
6038 msgstr ""
6039
6040 #. type: textblock
6041 #: ../fish/guestfish-actions.pod:22
6042 msgid ""
6043 "If you just want to add an ISO file (often you use this as an efficient way "
6044 "to transfer large files into the guest), then you should probably use "
6045 "L</add-drive-ro> instead."
6046 msgstr ""
6047
6048 #. type: textblock
6049 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:214 ../fish/guestfish-actions.pod:228
6050 msgid ""
6051 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
6052 "instead."
6053 msgstr ""
6054
6055 #. type: textblock
6056 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:217 ../fish/guestfish-actions.pod:231 ../fish/guestfish-actions.pod:941 ../fish/guestfish-actions.pod:976 ../fish/guestfish-actions.pod:1149 ../fish/guestfish-actions.pod:1509 ../fish/guestfish-actions.pod:1523 ../fish/guestfish-actions.pod:3284 ../fish/guestfish-actions.pod:3595 ../fish/guestfish-actions.pod:3643 ../fish/guestfish-actions.pod:4561 ../fish/guestfish-actions.pod:4581 ../fish/guestfish-actions.pod:4600 ../fish/guestfish-actions.pod:4638 ../fish/guestfish-actions.pod:5287 ../fish/guestfish-actions.pod:5390 ../src/guestfs-actions.pod:10 ../src/guestfs-actions.pod:305 ../src/guestfs-actions.pod:326 ../src/guestfs-actions.pod:1580 ../src/guestfs-actions.pod:1637 ../src/guestfs-actions.pod:1920 ../src/guestfs-actions.pod:2419 ../src/guestfs-actions.pod:2440 ../src/guestfs-actions.pod:5076 ../src/guestfs-actions.pod:5598 ../src/guestfs-actions.pod:5698 ../src/guestfs-actions.pod:6994 ../src/guestfs-actions.pod:7035 ../src/guestfs-actions.pod:7066 ../src/guestfs-actions.pod:7126 ../src/guestfs-actions.pod:8058 ../src/guestfs-actions.pod:8167 ../src/guestfs-actions.pod:8347
6057 msgid ""
6058 "Deprecated functions will not be removed from the API, but the fact that "
6059 "they are deprecated indicates that there are problems with correct use of "
6060 "these functions."
6061 msgstr ""
6062
6063 #. type: =head2
6064 #: ../fish/guestfish-actions.pod:35
6065 msgid "add-domain"
6066 msgstr ""
6067
6068 #. type: =head2
6069 #: ../fish/guestfish-actions.pod:37
6070 msgid "domain"
6071 msgstr ""
6072
6073 #. type: verbatim
6074 #: ../fish/guestfish-actions.pod:39
6075 #, no-wrap
6076 msgid ""
6077 " add-domain dom [libvirturi:..] [readonly:true|false] [iface:..] "
6078 "[live:true|false] [allowuuid:true|false] [readonlydisk:..]\n"
6079 "\n"
6080 msgstr ""
6081
6082 #. type: textblock
6083 #: ../fish/guestfish-actions.pod:41
6084 msgid ""
6085 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
6086 "It works by connecting to libvirt, requesting the domain and domain XML from "
6087 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
6088 msgstr ""
6089
6090 #. type: textblock
6091 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:65
6092 msgid ""
6093 "The number of disks added is returned.  This operation is atomic: if an "
6094 "error is returned, then no disks are added."
6095 msgstr ""
6096
6097 #. type: textblock
6098 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:68
6099 msgid ""
6100 "This function does some minimal checks to make sure the libvirt domain is "
6101 "not running (unless C<readonly> is true).  In a future version we will try "
6102 "to acquire the libvirt lock on each disk."
6103 msgstr ""
6104
6105 #. type: textblock
6106 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:72
6107 msgid ""
6108 "Disks must be accessible locally.  This often means that adding disks from a "
6109 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
6110 "unless those disks are accessible via the same device path locally too."
6111 msgstr ""
6112
6113 #. type: textblock
6114 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:77
6115 msgid ""
6116 "The optional C<libvirturi> parameter sets the libvirt URI (see "
6117 "L<http://libvirt.org/uri.html>).  If this is not set then we connect to the "
6118 "default libvirt URI (or one set through an environment variable, see the "
6119 "libvirt documentation for full details)."
6120 msgstr ""
6121
6122 #. type: textblock
6123 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:83
6124 msgid ""
6125 "The optional C<live> flag controls whether this call will try to connect to "
6126 "a running virtual machine C<guestfsd> process if it sees a suitable "
6127 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
6128 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
6129 "DAEMONS> for more information."
6130 msgstr ""
6131
6132 #. type: textblock
6133 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:90
6134 msgid ""
6135 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
6136 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
6137 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
6138 "as usual."
6139 msgstr ""
6140
6141 #. type: textblock
6142 #: ../fish/guestfish-actions.pod:76 ../src/guestfs-actions.pod:95
6143 msgid ""
6144 "The optional C<readonlydisk> parameter controls what we do for disks which "
6145 "are marked E<lt>readonly/E<gt> in the libvirt XML.  Possible values are:"
6146 msgstr ""
6147
6148 #. type: =item
6149 #: ../fish/guestfish-actions.pod:82 ../src/guestfs-actions.pod:101
6150 msgid "readonlydisk = \"error\""
6151 msgstr ""
6152
6153 #. type: textblock
6154 #: ../fish/guestfish-actions.pod:84 ../fish/guestfish-actions.pod:95 ../fish/guestfish-actions.pod:106 ../src/guestfs-actions.pod:103 ../src/guestfs-actions.pod:114 ../src/guestfs-actions.pod:125
6155 msgid "If C<readonly> is false:"
6156 msgstr ""
6157
6158 #. type: textblock
6159 #: ../fish/guestfish-actions.pod:86 ../src/guestfs-actions.pod:105
6160 msgid ""
6161 "The whole call is aborted with an error if any disk with the "
6162 "E<lt>readonly/E<gt> flag is found."
6163 msgstr ""
6164
6165 #. type: textblock
6166 #: ../fish/guestfish-actions.pod:89 ../fish/guestfish-actions.pod:100 ../fish/guestfish-actions.pod:110 ../src/guestfs-actions.pod:108 ../src/guestfs-actions.pod:119 ../src/guestfs-actions.pod:129
6167 msgid "If C<readonly> is true:"
6168 msgstr ""
6169
6170 #. type: textblock
6171 #: ../fish/guestfish-actions.pod:91 ../fish/guestfish-actions.pod:102 ../fish/guestfish-actions.pod:112 ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121 ../src/guestfs-actions.pod:131
6172 msgid "Disks with the E<lt>readonly/E<gt> flag are added read-only."
6173 msgstr ""
6174
6175 #. type: =item
6176 #: ../fish/guestfish-actions.pod:93 ../src/guestfs-actions.pod:112
6177 msgid "readonlydisk = \"read\""
6178 msgstr ""
6179
6180 #. type: textblock
6181 #: ../fish/guestfish-actions.pod:97 ../src/guestfs-actions.pod:116
6182 msgid ""
6183 "Disks with the E<lt>readonly/E<gt> flag are added read-only.  Other disks "
6184 "are added read/write."
6185 msgstr ""
6186
6187 #. type: =item
6188 #: ../fish/guestfish-actions.pod:104 ../src/guestfs-actions.pod:123
6189 msgid "readonlydisk = \"write\" (default)"
6190 msgstr ""
6191
6192 #. type: textblock
6193 #: ../fish/guestfish-actions.pod:108 ../src/guestfs-actions.pod:127
6194 msgid "Disks with the E<lt>readonly/E<gt> flag are added read/write."
6195 msgstr ""
6196
6197 #. type: =item
6198 #: ../fish/guestfish-actions.pod:114 ../src/guestfs-actions.pod:133
6199 msgid "readonlydisk = \"ignore\""
6200 msgstr ""
6201
6202 #. type: textblock
6203 #: ../fish/guestfish-actions.pod:116 ../src/guestfs-actions.pod:135
6204 msgid "If C<readonly> is true or false:"
6205 msgstr ""
6206
6207 #. type: textblock
6208 #: ../fish/guestfish-actions.pod:118 ../src/guestfs-actions.pod:137
6209 msgid "Disks with the E<lt>readonly/E<gt> flag are skipped."
6210 msgstr ""
6211
6212 #. type: textblock
6213 #: ../fish/guestfish-actions.pod:122
6214 msgid ""
6215 "The other optional parameters are passed directly through to "
6216 "L</add-drive-opts>."
6217 msgstr ""
6218
6219 #. type: textblock
6220 #: ../fish/guestfish-actions.pod:125 ../fish/guestfish-actions.pod:194 ../fish/guestfish-actions.pod:624 ../fish/guestfish-actions.pod:835 ../fish/guestfish-actions.pod:856 ../fish/guestfish-actions.pod:894 ../fish/guestfish-actions.pod:903 ../fish/guestfish-actions.pod:912 ../fish/guestfish-actions.pod:926 ../fish/guestfish-actions.pod:2171 ../fish/guestfish-actions.pod:3333 ../fish/guestfish-actions.pod:3496 ../fish/guestfish-actions.pod:3631
6221 msgid ""
6222 "This command has one or more optional arguments.  See L</OPTIONAL "
6223 "ARGUMENTS>."
6224 msgstr ""
6225
6226 #. type: =head2
6227 #: ../fish/guestfish-actions.pod:127
6228 msgid "add-drive"
6229 msgstr ""
6230
6231 #. type: verbatim
6232 #: ../fish/guestfish-actions.pod:129
6233 #, no-wrap
6234 msgid ""
6235 " add-drive filename\n"
6236 "\n"
6237 msgstr ""
6238
6239 #. type: textblock
6240 #: ../fish/guestfish-actions.pod:131
6241 msgid ""
6242 "This function is the equivalent of calling L</add-drive-opts> with no "
6243 "optional parameters, so the disk is added writable, with the format being "
6244 "detected automatically."
6245 msgstr ""
6246
6247 #. type: textblock
6248 #: ../fish/guestfish-actions.pod:135
6249 msgid ""
6250 "Automatic detection of the format opens you up to a potential security hole "
6251 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6252 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
6253 "you should think about replacing calls to this function with calls to "
6254 "L</add-drive-opts>, and specifying the format."
6255 msgstr ""
6256
6257 #. type: =head2
6258 #: ../fish/guestfish-actions.pod:142
6259 msgid "add-drive-opts"
6260 msgstr ""
6261
6262 #. type: =head2
6263 #: ../fish/guestfish-actions.pod:144
6264 msgid "add"
6265 msgstr ""
6266
6267 #. type: verbatim
6268 #: ../fish/guestfish-actions.pod:146
6269 #, no-wrap
6270 msgid ""
6271 " add-drive-opts filename [readonly:true|false] [format:..] [iface:..] "
6272 "[name:..]\n"
6273 "\n"
6274 msgstr ""
6275
6276 #. type: textblock
6277 #: ../fish/guestfish-actions.pod:148 ../src/guestfs-actions.pod:208
6278 msgid ""
6279 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
6280 "The first time you call this function, the disk appears as C</dev/sda>, the "
6281 "second time as C</dev/sdb>, and so on."
6282 msgstr ""
6283
6284 #. type: textblock
6285 #: ../fish/guestfish-actions.pod:153 ../src/guestfs-actions.pod:213
6286 msgid ""
6287 "You don't necessarily need to be root when using libguestfs.  However you "
6288 "obviously do need sufficient permissions to access the filename for whatever "
6289 "operations you want to perform (ie. read access if you just want to read the "
6290 "image or write access if you want to modify the image)."
6291 msgstr ""
6292
6293 #. type: textblock
6294 #: ../fish/guestfish-actions.pod:159 ../src/guestfs-actions.pod:219
6295 msgid "This call checks that C<filename> exists."
6296 msgstr ""
6297
6298 #. type: textblock
6299 #: ../fish/guestfish-actions.pod:161 ../fish/guestfish-actions.pod:3295 ../src/guestfs-actions.pod:221 ../src/guestfs-actions.pod:5113
6300 msgid "The optional arguments are:"
6301 msgstr ""
6302
6303 #. type: =item
6304 #: ../fish/guestfish-actions.pod:165 ../src/guestfs-actions.pod:225
6305 msgid "C<readonly>"
6306 msgstr ""
6307
6308 #. type: textblock
6309 #: ../fish/guestfish-actions.pod:167 ../src/guestfs-actions.pod:227
6310 msgid ""
6311 "If true then the image is treated as read-only.  Writes are still allowed, "
6312 "but they are stored in a temporary snapshot overlay which is discarded at "
6313 "the end.  The disk that you add is not modified."
6314 msgstr ""
6315
6316 #. type: =item
6317 #: ../fish/guestfish-actions.pod:171 ../src/guestfs-actions.pod:231
6318 msgid "C<format>"
6319 msgstr ""
6320
6321 #. type: textblock
6322 #: ../fish/guestfish-actions.pod:173
6323 msgid ""
6324 "This forces the image format.  If you omit this (or use L</add-drive> or "
6325 "L</add-drive-ro>) then the format is automatically detected.  Possible "
6326 "formats include C<raw> and C<qcow2>."
6327 msgstr ""
6328
6329 #. type: textblock
6330 #: ../fish/guestfish-actions.pod:177 ../src/guestfs-actions.pod:237
6331 msgid ""
6332 "Automatic detection of the format opens you up to a potential security hole "
6333 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6334 "RHBZ#642934.  Specifying the format closes this security hole."
6335 msgstr ""
6336
6337 #. type: =item
6338 #: ../fish/guestfish-actions.pod:182 ../src/guestfs-actions.pod:242
6339 msgid "C<iface>"
6340 msgstr ""
6341
6342 #. type: textblock
6343 #: ../fish/guestfish-actions.pod:184
6344 msgid ""
6345 "This rarely-used option lets you emulate the behaviour of the deprecated "
6346 "L</add-drive-with-if> call (q.v.)"
6347 msgstr ""
6348
6349 #. type: =item
6350 #: ../fish/guestfish-actions.pod:187 ../src/guestfs-actions.pod:247
6351 msgid "C<name>"
6352 msgstr ""
6353
6354 #. type: textblock
6355 #: ../fish/guestfish-actions.pod:189 ../src/guestfs-actions.pod:249
6356 msgid ""
6357 "The name the drive had in the original guest, e.g. /dev/sdb. This is used as "
6358 "a hint to the guest inspection process if it is available."
6359 msgstr ""
6360
6361 #. type: =head2
6362 #: ../fish/guestfish-actions.pod:196
6363 msgid "add-drive-ro"
6364 msgstr ""
6365
6366 #. type: =head2
6367 #: ../fish/guestfish-actions.pod:198
6368 msgid "add-ro"
6369 msgstr ""
6370
6371 #. type: verbatim
6372 #: ../fish/guestfish-actions.pod:200
6373 #, no-wrap
6374 msgid ""
6375 " add-drive-ro filename\n"
6376 "\n"
6377 msgstr ""
6378
6379 #. type: textblock
6380 #: ../fish/guestfish-actions.pod:202
6381 msgid ""
6382 "This function is the equivalent of calling L</add-drive-opts> with the "
6383 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
6384 "is added read-only, with the format being detected automatically."
6385 msgstr ""
6386
6387 #. type: =head2
6388 #: ../fish/guestfish-actions.pod:207
6389 msgid "add-drive-ro-with-if"
6390 msgstr ""
6391
6392 #. type: verbatim
6393 #: ../fish/guestfish-actions.pod:209
6394 #, no-wrap
6395 msgid ""
6396 " add-drive-ro-with-if filename iface\n"
6397 "\n"
6398 msgstr ""
6399
6400 #. type: textblock
6401 #: ../fish/guestfish-actions.pod:211
6402 msgid ""
6403 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
6404 "interface emulation to use at run time."
6405 msgstr ""
6406
6407 #. type: =head2
6408 #: ../fish/guestfish-actions.pod:221
6409 msgid "add-drive-with-if"
6410 msgstr ""
6411
6412 #. type: verbatim
6413 #: ../fish/guestfish-actions.pod:223
6414 #, no-wrap
6415 msgid ""
6416 " add-drive-with-if filename iface\n"
6417 "\n"
6418 msgstr ""
6419
6420 #. type: textblock
6421 #: ../fish/guestfish-actions.pod:225
6422 msgid ""
6423 "This is the same as L</add-drive> but it allows you to specify the QEMU "
6424 "interface emulation to use at run time."
6425 msgstr ""
6426
6427 #. type: =head2
6428 #: ../fish/guestfish-actions.pod:235
6429 msgid "aug-clear"
6430 msgstr ""
6431
6432 #. type: verbatim
6433 #: ../fish/guestfish-actions.pod:237
6434 #, no-wrap
6435 msgid ""
6436 " aug-clear augpath\n"
6437 "\n"
6438 msgstr ""
6439
6440 #. type: textblock
6441 #: ../fish/guestfish-actions.pod:239 ../src/guestfs-actions.pod:343
6442 msgid ""
6443 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
6444 "L<augtool(1)> C<clear> command."
6445 msgstr ""
6446
6447 #. type: =head2
6448 #: ../fish/guestfish-actions.pod:242
6449 msgid "aug-close"
6450 msgstr ""
6451
6452 #. type: verbatim
6453 #: ../fish/guestfish-actions.pod:244
6454 #, no-wrap
6455 msgid ""
6456 " aug-close\n"
6457 "\n"
6458 msgstr ""
6459
6460 #. type: textblock
6461 #: ../fish/guestfish-actions.pod:246
6462 msgid ""
6463 "Close the current Augeas handle and free up any resources used by it.  After "
6464 "calling this, you have to call L</aug-init> again before you can use any "
6465 "other Augeas functions."
6466 msgstr ""
6467
6468 #. type: =head2
6469 #: ../fish/guestfish-actions.pod:251
6470 msgid "aug-defnode"
6471 msgstr ""
6472
6473 #. type: verbatim
6474 #: ../fish/guestfish-actions.pod:253
6475 #, no-wrap
6476 msgid ""
6477 " aug-defnode name expr val\n"
6478 "\n"
6479 msgstr ""
6480
6481 #. type: textblock
6482 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:372
6483 msgid "Defines a variable C<name> whose value is the result of evaluating C<expr>."
6484 msgstr ""
6485
6486 #. type: textblock
6487 #: ../fish/guestfish-actions.pod:258
6488 msgid ""
6489 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
6490 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
6491 "containing that single node."
6492 msgstr ""
6493
6494 #. type: textblock
6495 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:379
6496 msgid ""
6497 "On success this returns a pair containing the number of nodes in the "
6498 "nodeset, and a boolean flag if a node was created."
6499 msgstr ""
6500
6501 #. type: =head2
6502 #: ../fish/guestfish-actions.pod:266
6503 msgid "aug-defvar"
6504 msgstr ""
6505
6506 #. type: verbatim
6507 #: ../fish/guestfish-actions.pod:268
6508 #, no-wrap
6509 msgid ""
6510 " aug-defvar name expr\n"
6511 "\n"
6512 msgstr ""
6513
6514 #. type: textblock
6515 #: ../fish/guestfish-actions.pod:270 ../src/guestfs-actions.pod:396
6516 msgid ""
6517 "Defines an Augeas variable C<name> whose value is the result of evaluating "
6518 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
6519 msgstr ""
6520
6521 #. type: textblock
6522 #: ../fish/guestfish-actions.pod:274 ../src/guestfs-actions.pod:400
6523 msgid ""
6524 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
6525 "evaluates to something which is not a nodeset."
6526 msgstr ""
6527
6528 #. type: =head2
6529 #: ../fish/guestfish-actions.pod:277
6530 msgid "aug-get"
6531 msgstr ""
6532
6533 #. type: verbatim
6534 #: ../fish/guestfish-actions.pod:279
6535 #, no-wrap
6536 msgid ""
6537 " aug-get augpath\n"
6538 "\n"
6539 msgstr ""
6540
6541 #. type: textblock
6542 #: ../fish/guestfish-actions.pod:281 ../src/guestfs-actions.pod:413
6543 msgid ""
6544 "Look up the value associated with C<path>.  If C<path> matches exactly one "
6545 "node, the C<value> is returned."
6546 msgstr ""
6547
6548 #. type: =head2
6549 #: ../fish/guestfish-actions.pod:284
6550 msgid "aug-init"
6551 msgstr ""
6552
6553 #. type: verbatim
6554 #: ../fish/guestfish-actions.pod:286
6555 #, no-wrap
6556 msgid ""
6557 " aug-init root flags\n"
6558 "\n"
6559 msgstr ""
6560
6561 #. type: textblock
6562 #: ../fish/guestfish-actions.pod:288 ../src/guestfs-actions.pod:428
6563 msgid ""
6564 "Create a new Augeas handle for editing configuration files.  If there was "
6565 "any previous Augeas handle associated with this guestfs session, then it is "
6566 "closed."
6567 msgstr ""
6568
6569 #. type: textblock
6570 #: ../fish/guestfish-actions.pod:292
6571 msgid "You must call this before using any other L</aug-*> commands."
6572 msgstr ""
6573
6574 #. type: textblock
6575 #: ../fish/guestfish-actions.pod:295 ../src/guestfs-actions.pod:435
6576 msgid "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
6577 msgstr ""
6578
6579 #. type: textblock
6580 #: ../fish/guestfish-actions.pod:298 ../src/guestfs-actions.pod:438
6581 msgid ""
6582 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
6583 "logical I<or> of the following integers:"
6584 msgstr ""
6585
6586 #. type: =item
6587 #: ../fish/guestfish-actions.pod:304 ../src/guestfs-actions.pod:444
6588 msgid "C<AUG_SAVE_BACKUP> = 1"
6589 msgstr ""
6590
6591 #. type: textblock
6592 #: ../fish/guestfish-actions.pod:306 ../src/guestfs-actions.pod:446
6593 msgid "Keep the original file with a C<.augsave> extension."
6594 msgstr ""
6595
6596 #. type: =item
6597 #: ../fish/guestfish-actions.pod:308 ../src/guestfs-actions.pod:448
6598 msgid "C<AUG_SAVE_NEWFILE> = 2"
6599 msgstr ""
6600
6601 #. type: textblock
6602 #: ../fish/guestfish-actions.pod:310 ../src/guestfs-actions.pod:450
6603 msgid ""
6604 "Save changes into a file with extension C<.augnew>, and do not overwrite "
6605 "original.  Overrides C<AUG_SAVE_BACKUP>."
6606 msgstr ""
6607
6608 #. type: =item
6609 #: ../fish/guestfish-actions.pod:313 ../src/guestfs-actions.pod:453
6610 msgid "C<AUG_TYPE_CHECK> = 4"
6611 msgstr ""
6612
6613 #. type: textblock
6614 #: ../fish/guestfish-actions.pod:315 ../src/guestfs-actions.pod:455
6615 msgid "Typecheck lenses."
6616 msgstr ""
6617
6618 #. type: textblock
6619 #: ../fish/guestfish-actions.pod:317
6620 msgid ""
6621 "This option is only useful when debugging Augeas lenses.  Use of this option "
6622 "may require additional memory for the libguestfs appliance.  You may need to "
6623 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
6624 msgstr ""
6625
6626 #. type: =item
6627 #: ../fish/guestfish-actions.pod:322 ../src/guestfs-actions.pod:462
6628 msgid "C<AUG_NO_STDINC> = 8"
6629 msgstr ""
6630
6631 #. type: textblock
6632 #: ../fish/guestfish-actions.pod:324 ../src/guestfs-actions.pod:464
6633 msgid "Do not use standard load path for modules."
6634 msgstr ""
6635
6636 #. type: =item
6637 #: ../fish/guestfish-actions.pod:326 ../src/guestfs-actions.pod:466
6638 msgid "C<AUG_SAVE_NOOP> = 16"
6639 msgstr ""
6640
6641 #. type: textblock
6642 #: ../fish/guestfish-actions.pod:328 ../src/guestfs-actions.pod:468
6643 msgid "Make save a no-op, just record what would have been changed."
6644 msgstr ""
6645
6646 #. type: =item
6647 #: ../fish/guestfish-actions.pod:330 ../src/guestfs-actions.pod:470
6648 msgid "C<AUG_NO_LOAD> = 32"
6649 msgstr ""
6650
6651 #. type: textblock
6652 #: ../fish/guestfish-actions.pod:332
6653 msgid "Do not load the tree in L</aug-init>."
6654 msgstr ""
6655
6656 #. type: textblock
6657 #: ../fish/guestfish-actions.pod:336
6658 msgid "To close the handle, you can call L</aug-close>."
6659 msgstr ""
6660
6661 #. type: textblock
6662 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:478
6663 msgid "To find out more about Augeas, see L<http://augeas.net/>."
6664 msgstr ""
6665
6666 #. type: =head2
6667 #: ../fish/guestfish-actions.pod:340
6668 msgid "aug-insert"
6669 msgstr ""
6670
6671 #. type: verbatim
6672 #: ../fish/guestfish-actions.pod:342
6673 #, no-wrap
6674 msgid ""
6675 " aug-insert augpath label true|false\n"
6676 "\n"
6677 msgstr ""
6678
6679 #. type: textblock
6680 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:492
6681 msgid ""
6682 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
6683 "or after C<path> (depending on the boolean flag C<before>)."
6684 msgstr ""
6685
6686 #. type: textblock
6687 #: ../fish/guestfish-actions.pod:348 ../src/guestfs-actions.pod:496
6688 msgid ""
6689 "C<path> must match exactly one existing node in the tree, and C<label> must "
6690 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
6691 msgstr ""
6692
6693 #. type: =head2
6694 #: ../fish/guestfish-actions.pod:352
6695 msgid "aug-load"
6696 msgstr ""
6697
6698 #. type: verbatim
6699 #: ../fish/guestfish-actions.pod:354
6700 #, no-wrap
6701 msgid ""
6702 " aug-load\n"
6703 "\n"
6704 msgstr ""
6705
6706 #. type: textblock
6707 #: ../fish/guestfish-actions.pod:356 ../src/guestfs-actions.pod:509
6708 msgid "Load files into the tree."
6709 msgstr ""
6710
6711 #. type: textblock
6712 #: ../fish/guestfish-actions.pod:358 ../src/guestfs-actions.pod:511
6713 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
6714 msgstr ""
6715
6716 #. type: =head2
6717 #: ../fish/guestfish-actions.pod:361
6718 msgid "aug-ls"
6719 msgstr ""
6720
6721 #. type: verbatim
6722 #: ../fish/guestfish-actions.pod:363
6723 #, no-wrap
6724 msgid ""
6725 " aug-ls augpath\n"
6726 "\n"
6727 msgstr ""
6728
6729 #. type: textblock
6730 #: ../fish/guestfish-actions.pod:365
6731 msgid ""
6732 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
6733 "resulting nodes into alphabetical order."
6734 msgstr ""
6735
6736 #. type: =head2
6737 #: ../fish/guestfish-actions.pod:368
6738 msgid "aug-match"
6739 msgstr ""
6740
6741 #. type: verbatim
6742 #: ../fish/guestfish-actions.pod:370
6743 #, no-wrap
6744 msgid ""
6745 " aug-match augpath\n"
6746 "\n"
6747 msgstr ""
6748
6749 #. type: textblock
6750 #: ../fish/guestfish-actions.pod:372 ../src/guestfs-actions.pod:539
6751 msgid ""
6752 "Returns a list of paths which match the path expression C<path>.  The "
6753 "returned paths are sufficiently qualified so that they match exactly one "
6754 "node in the current tree."
6755 msgstr ""
6756
6757 #. type: =head2
6758 #: ../fish/guestfish-actions.pod:376
6759 msgid "aug-mv"
6760 msgstr ""
6761
6762 #. type: verbatim
6763 #: ../fish/guestfish-actions.pod:378
6764 #, no-wrap
6765 msgid ""
6766 " aug-mv src dest\n"
6767 "\n"
6768 msgstr ""
6769
6770 #. type: textblock
6771 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:556
6772 msgid ""
6773 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
6774 "C<dest> is overwritten if it exists."
6775 msgstr ""
6776
6777 #. type: =head2
6778 #: ../fish/guestfish-actions.pod:383
6779 msgid "aug-rm"
6780 msgstr ""
6781
6782 #. type: verbatim
6783 #: ../fish/guestfish-actions.pod:385
6784 #, no-wrap
6785 msgid ""
6786 " aug-rm augpath\n"
6787 "\n"
6788 msgstr ""
6789
6790 #. type: textblock
6791 #: ../fish/guestfish-actions.pod:387 ../src/guestfs-actions.pod:569
6792 msgid "Remove C<path> and all of its children."
6793 msgstr ""
6794
6795 #. type: textblock
6796 #: ../fish/guestfish-actions.pod:389 ../src/guestfs-actions.pod:571
6797 msgid "On success this returns the number of entries which were removed."
6798 msgstr ""
6799
6800 #. type: =head2
6801 #: ../fish/guestfish-actions.pod:391
6802 msgid "aug-save"
6803 msgstr ""
6804
6805 #. type: verbatim
6806 #: ../fish/guestfish-actions.pod:393
6807 #, no-wrap
6808 msgid ""
6809 " aug-save\n"
6810 "\n"
6811 msgstr ""
6812
6813 #. type: textblock
6814 #: ../fish/guestfish-actions.pod:395 ../src/guestfs-actions.pod:582
6815 msgid "This writes all pending changes to disk."
6816 msgstr ""
6817
6818 #. type: textblock
6819 #: ../fish/guestfish-actions.pod:397
6820 msgid ""
6821 "The flags which were passed to L</aug-init> affect exactly how files are "
6822 "saved."
6823 msgstr ""
6824
6825 #. type: =head2
6826 #: ../fish/guestfish-actions.pod:400
6827 msgid "aug-set"
6828 msgstr ""
6829
6830 #. type: verbatim
6831 #: ../fish/guestfish-actions.pod:402
6832 #, no-wrap
6833 msgid ""
6834 " aug-set augpath val\n"
6835 "\n"
6836 msgstr ""
6837
6838 #. type: textblock
6839 #: ../fish/guestfish-actions.pod:404 ../src/guestfs-actions.pod:598
6840 msgid "Set the value associated with C<path> to C<val>."
6841 msgstr ""
6842
6843 #. type: textblock
6844 #: ../fish/guestfish-actions.pod:406
6845 msgid ""
6846 "In the Augeas API, it is possible to clear a node by setting the value to "
6847 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
6848 "this call.  Instead you must use the L</aug-clear> call."
6849 msgstr ""
6850
6851 #. type: =head2
6852 #: ../fish/guestfish-actions.pod:411
6853 msgid "available"
6854 msgstr ""
6855
6856 #. type: verbatim
6857 #: ../fish/guestfish-actions.pod:413
6858 #, no-wrap
6859 msgid ""
6860 " available 'groups ...'\n"
6861 "\n"
6862 msgstr ""
6863
6864 #. type: textblock
6865 #: ../fish/guestfish-actions.pod:415 ../src/guestfs-actions.pod:615
6866 msgid ""
6867 "This command is used to check the availability of some groups of "
6868 "functionality in the appliance, which not all builds of the libguestfs "
6869 "appliance will be able to provide."
6870 msgstr ""
6871
6872 #. type: textblock
6873 #: ../fish/guestfish-actions.pod:419
6874 msgid ""
6875 "The libguestfs groups, and the functions that those groups correspond to, "
6876 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
6877 "runtime by calling L</available-all-groups>."
6878 msgstr ""
6879
6880 #. type: textblock
6881 #: ../fish/guestfish-actions.pod:424 ../src/guestfs-actions.pod:624
6882 msgid ""
6883 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", "
6884 "\"augeas\"]> would check for the availability of the Linux inotify functions "
6885 "and Augeas (configuration file editing) functions."
6886 msgstr ""
6887
6888 #. type: textblock
6889 #: ../fish/guestfish-actions.pod:429 ../src/guestfs-actions.pod:629
6890 msgid "The command returns no error if I<all> requested groups are available."
6891 msgstr ""
6892
6893 #. type: textblock
6894 #: ../fish/guestfish-actions.pod:431 ../src/guestfs-actions.pod:631
6895 msgid ""
6896 "It fails with an error if one or more of the requested groups is unavailable "
6897 "in the appliance."
6898 msgstr ""
6899
6900 #. type: textblock
6901 #: ../fish/guestfish-actions.pod:434 ../src/guestfs-actions.pod:634
6902 msgid ""
6903 "If an unknown group name is included in the list of groups then an error is "
6904 "always returned."
6905 msgstr ""
6906
6907 #. type: textblock
6908 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:637
6909 msgid "I<Notes:>"
6910 msgstr ""
6911
6912 #. type: textblock
6913 #: ../fish/guestfish-actions.pod:443
6914 msgid "You must call L</launch> before calling this function."
6915 msgstr ""
6916
6917 #. type: textblock
6918 #: ../fish/guestfish-actions.pod:445 ../src/guestfs-actions.pod:645
6919 msgid ""
6920 "The reason is because we don't know what groups are supported by the "
6921 "appliance/daemon until it is running and can be queried."
6922 msgstr ""
6923
6924 #. type: textblock
6925 #: ../fish/guestfish-actions.pod:451 ../src/guestfs-actions.pod:651
6926 msgid ""
6927 "If a group of functions is available, this does not necessarily mean that "
6928 "they will work.  You still have to check for errors when calling individual "
6929 "API functions even if they are available."
6930 msgstr ""
6931
6932 #. type: textblock
6933 #: ../fish/guestfish-actions.pod:458 ../src/guestfs-actions.pod:658
6934 msgid ""
6935 "It is usually the job of distro packagers to build complete functionality "
6936 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
6937 "with all requirements satisfied, will support everything."
6938 msgstr ""
6939
6940 #. type: textblock
6941 #: ../fish/guestfish-actions.pod:465
6942 msgid ""
6943 "This call was added in version C<1.0.80>.  In previous versions of "
6944 "libguestfs all you could do would be to speculatively execute a command to "
6945 "find out if the daemon implemented it.  See also L</version>."
6946 msgstr ""
6947
6948 #. type: =head2
6949 #: ../fish/guestfish-actions.pod:472
6950 msgid "available-all-groups"
6951 msgstr ""
6952
6953 #. type: verbatim
6954 #: ../fish/guestfish-actions.pod:474
6955 #, no-wrap
6956 msgid ""
6957 " available-all-groups\n"
6958 "\n"
6959 msgstr ""
6960
6961 #. type: textblock
6962 #: ../fish/guestfish-actions.pod:476
6963 msgid ""
6964 "This command returns a list of all optional groups that this daemon knows "
6965 "about.  Note this returns both supported and unsupported groups.  To find "
6966 "out which ones the daemon can actually support you have to call "
6967 "L</available> on each member of the returned list."
6968 msgstr ""
6969
6970 #. type: textblock
6971 #: ../fish/guestfish-actions.pod:482
6972 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
6973 msgstr ""
6974
6975 #. type: =head2
6976 #: ../fish/guestfish-actions.pod:484
6977 msgid "base64-in"
6978 msgstr ""
6979
6980 #. type: verbatim
6981 #: ../fish/guestfish-actions.pod:486
6982 #, no-wrap
6983 msgid ""
6984 " base64-in (base64file|-) filename\n"
6985 "\n"
6986 msgstr ""
6987
6988 #. type: textblock
6989 #: ../fish/guestfish-actions.pod:488 ../src/guestfs-actions.pod:702
6990 msgid "This command uploads base64-encoded data from C<base64file> to C<filename>."
6991 msgstr ""
6992
6993 #. type: textblock
6994 #: ../fish/guestfish-actions.pod:491 ../fish/guestfish-actions.pod:500 ../fish/guestfish-actions.pod:749 ../fish/guestfish-actions.pod:833 ../fish/guestfish-actions.pod:854 ../fish/guestfish-actions.pod:1025 ../fish/guestfish-actions.pod:1044 ../fish/guestfish-actions.pod:1418 ../fish/guestfish-actions.pod:4858 ../fish/guestfish-actions.pod:4870 ../fish/guestfish-actions.pod:4881 ../fish/guestfish-actions.pod:4892 ../fish/guestfish-actions.pod:4944 ../fish/guestfish-actions.pod:4953 ../fish/guestfish-actions.pod:5007 ../fish/guestfish-actions.pod:5030
6995 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
6996 msgstr ""
6997
6998 #. type: =head2
6999 #: ../fish/guestfish-actions.pod:493
7000 msgid "base64-out"
7001 msgstr ""
7002
7003 #. type: verbatim
7004 #: ../fish/guestfish-actions.pod:495
7005 #, no-wrap
7006 msgid ""
7007 " base64-out filename (base64file|-)\n"
7008 "\n"
7009 msgstr ""
7010
7011 #. type: textblock
7012 #: ../fish/guestfish-actions.pod:497 ../src/guestfs-actions.pod:716
7013 msgid ""
7014 "This command downloads the contents of C<filename>, writing it out to local "
7015 "file C<base64file> encoded as base64."
7016 msgstr ""
7017
7018 #. type: =head2
7019 #: ../fish/guestfish-actions.pod:502
7020 msgid "blockdev-flushbufs"
7021 msgstr ""
7022
7023 #. type: verbatim
7024 #: ../fish/guestfish-actions.pod:504
7025 #, no-wrap
7026 msgid ""
7027 " blockdev-flushbufs device\n"
7028 "\n"
7029 msgstr ""
7030
7031 #. type: textblock
7032 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:729
7033 msgid "This tells the kernel to flush internal buffers associated with C<device>."
7034 msgstr ""
7035
7036 #. type: textblock
7037 #: ../fish/guestfish-actions.pod:509 ../fish/guestfish-actions.pod:520 ../fish/guestfish-actions.pod:529 ../fish/guestfish-actions.pod:539 ../fish/guestfish-actions.pod:551 ../fish/guestfish-actions.pod:564 ../fish/guestfish-actions.pod:572 ../fish/guestfish-actions.pod:583 ../fish/guestfish-actions.pod:591 ../fish/guestfish-actions.pod:599 ../src/guestfs-actions.pod:732 ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:764 ../src/guestfs-actions.pod:780 ../src/guestfs-actions.pod:798 ../src/guestfs-actions.pod:817 ../src/guestfs-actions.pod:831 ../src/guestfs-actions.pod:849 ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:877
7038 msgid "This uses the L<blockdev(8)> command."
7039 msgstr ""
7040
7041 #. type: =head2
7042 #: ../fish/guestfish-actions.pod:511
7043 msgid "blockdev-getbsz"
7044 msgstr ""
7045
7046 #. type: verbatim
7047 #: ../fish/guestfish-actions.pod:513
7048 #, no-wrap
7049 msgid ""
7050 " blockdev-getbsz device\n"
7051 "\n"
7052 msgstr ""
7053
7054 #. type: textblock
7055 #: ../fish/guestfish-actions.pod:515 ../src/guestfs-actions.pod:744
7056 msgid "This returns the block size of a device."
7057 msgstr ""
7058
7059 #. type: textblock
7060 #: ../fish/guestfish-actions.pod:517 ../fish/guestfish-actions.pod:580 ../src/guestfs-actions.pod:746 ../src/guestfs-actions.pod:846
7061 msgid ""
7062 "(Note this is different from both I<size in blocks> and I<filesystem block "
7063 "size>)."
7064 msgstr ""
7065
7066 #. type: =head2
7067 #: ../fish/guestfish-actions.pod:522
7068 msgid "blockdev-getro"
7069 msgstr ""
7070
7071 #. type: verbatim
7072 #: ../fish/guestfish-actions.pod:524
7073 #, no-wrap
7074 msgid ""
7075 " blockdev-getro device\n"
7076 "\n"
7077 msgstr ""
7078
7079 #. type: textblock
7080 #: ../fish/guestfish-actions.pod:526 ../src/guestfs-actions.pod:761
7081 msgid ""
7082 "Returns a boolean indicating if the block device is read-only (true if "
7083 "read-only, false if not)."
7084 msgstr ""
7085
7086 #. type: =head2
7087 #: ../fish/guestfish-actions.pod:531
7088 msgid "blockdev-getsize64"
7089 msgstr ""
7090
7091 #. type: verbatim
7092 #: ../fish/guestfish-actions.pod:533
7093 #, no-wrap
7094 msgid ""
7095 " blockdev-getsize64 device\n"
7096 "\n"
7097 msgstr ""
7098
7099 #. type: textblock
7100 #: ../fish/guestfish-actions.pod:535 ../src/guestfs-actions.pod:776
7101 msgid "This returns the size of the device in bytes."
7102 msgstr ""
7103
7104 #. type: textblock
7105 #: ../fish/guestfish-actions.pod:537
7106 msgid "See also L</blockdev-getsz>."
7107 msgstr ""
7108
7109 #. type: =head2
7110 #: ../fish/guestfish-actions.pod:541
7111 msgid "blockdev-getss"
7112 msgstr ""
7113
7114 #. type: verbatim
7115 #: ../fish/guestfish-actions.pod:543
7116 #, no-wrap
7117 msgid ""
7118 " blockdev-getss device\n"
7119 "\n"
7120 msgstr ""
7121
7122 #. type: textblock
7123 #: ../fish/guestfish-actions.pod:545 ../src/guestfs-actions.pod:792
7124 msgid ""
7125 "This returns the size of sectors on a block device.  Usually 512, but can be "
7126 "larger for modern devices."
7127 msgstr ""
7128
7129 #. type: textblock
7130 #: ../fish/guestfish-actions.pod:548
7131 msgid "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
7132 msgstr ""
7133
7134 #. type: =head2
7135 #: ../fish/guestfish-actions.pod:553
7136 msgid "blockdev-getsz"
7137 msgstr ""
7138
7139 #. type: verbatim
7140 #: ../fish/guestfish-actions.pod:555
7141 #, no-wrap
7142 msgid ""
7143 " blockdev-getsz device\n"
7144 "\n"
7145 msgstr ""
7146
7147 #. type: textblock
7148 #: ../fish/guestfish-actions.pod:557 ../src/guestfs-actions.pod:810
7149 msgid ""
7150 "This returns the size of the device in units of 512-byte sectors (even if "
7151 "the sectorsize isn't 512 bytes ... weird)."
7152 msgstr ""
7153
7154 #. type: textblock
7155 #: ../fish/guestfish-actions.pod:560
7156 msgid ""
7157 "See also L</blockdev-getss> for the real sector size of the device, and "
7158 "L</blockdev-getsize64> for the more useful I<size in bytes>."
7159 msgstr ""
7160
7161 #. type: =head2
7162 #: ../fish/guestfish-actions.pod:566
7163 msgid "blockdev-rereadpt"
7164 msgstr ""
7165
7166 #. type: verbatim
7167 #: ../fish/guestfish-actions.pod:568
7168 #, no-wrap
7169 msgid ""
7170 " blockdev-rereadpt device\n"
7171 "\n"
7172 msgstr ""
7173
7174 #. type: textblock
7175 #: ../fish/guestfish-actions.pod:570 ../src/guestfs-actions.pod:829
7176 msgid "Reread the partition table on C<device>."
7177 msgstr ""
7178
7179 #. type: =head2
7180 #: ../fish/guestfish-actions.pod:574
7181 msgid "blockdev-setbsz"
7182 msgstr ""
7183
7184 #. type: verbatim
7185 #: ../fish/guestfish-actions.pod:576
7186 #, no-wrap
7187 msgid ""
7188 " blockdev-setbsz device blocksize\n"
7189 "\n"
7190 msgstr ""
7191
7192 #. type: textblock
7193 #: ../fish/guestfish-actions.pod:578 ../src/guestfs-actions.pod:844
7194 msgid "This sets the block size of a device."
7195 msgstr ""
7196
7197 #. type: =head2
7198 #: ../fish/guestfish-actions.pod:585
7199 msgid "blockdev-setro"
7200 msgstr ""
7201
7202 #. type: verbatim
7203 #: ../fish/guestfish-actions.pod:587
7204 #, no-wrap
7205 msgid ""
7206 " blockdev-setro device\n"
7207 "\n"
7208 msgstr ""
7209
7210 #. type: textblock
7211 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:861
7212 msgid "Sets the block device named C<device> to read-only."
7213 msgstr ""
7214
7215 #. type: =head2
7216 #: ../fish/guestfish-actions.pod:593
7217 msgid "blockdev-setrw"
7218 msgstr ""
7219
7220 #. type: verbatim
7221 #: ../fish/guestfish-actions.pod:595
7222 #, no-wrap
7223 msgid ""
7224 " blockdev-setrw device\n"
7225 "\n"
7226 msgstr ""
7227
7228 #. type: textblock
7229 #: ../fish/guestfish-actions.pod:597 ../src/guestfs-actions.pod:875
7230 msgid "Sets the block device named C<device> to read-write."
7231 msgstr ""
7232
7233 #. type: =head2
7234 #: ../fish/guestfish-actions.pod:601
7235 msgid "btrfs-filesystem-resize"
7236 msgstr ""
7237
7238 #. type: verbatim
7239 #: ../fish/guestfish-actions.pod:603
7240 #, no-wrap
7241 msgid ""
7242 " btrfs-filesystem-resize mountpoint [size:N]\n"
7243 "\n"
7244 msgstr ""
7245
7246 #. type: textblock
7247 #: ../fish/guestfish-actions.pod:605 ../src/guestfs-actions.pod:897
7248 msgid "This command resizes a btrfs filesystem."
7249 msgstr ""
7250
7251 #. type: textblock
7252 #: ../fish/guestfish-actions.pod:607 ../src/guestfs-actions.pod:899
7253 msgid ""
7254 "Note that unlike other resize calls, the filesystem has to be mounted and "
7255 "the parameter is the mountpoint not the device (this is a requirement of "
7256 "btrfs itself)."
7257 msgstr ""
7258
7259 #. type: textblock
7260 #: ../fish/guestfish-actions.pod:611 ../fish/guestfish-actions.pod:3606 ../src/guestfs-actions.pod:903 ../src/guestfs-actions.pod:5637
7261 msgid "The optional parameters are:"
7262 msgstr ""
7263
7264 #. type: =item
7265 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3610 ../src/guestfs-actions.pod:907 ../src/guestfs-actions.pod:5641
7266 msgid "C<size>"
7267 msgstr ""
7268
7269 #. type: textblock
7270 #: ../fish/guestfish-actions.pod:617 ../src/guestfs-actions.pod:909
7271 msgid ""
7272 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
7273 "resized to the maximum size."
7274 msgstr ""
7275
7276 #. type: textblock
7277 #: ../fish/guestfish-actions.pod:622 ../src/guestfs-actions.pod:914
7278 msgid "See also L<btrfs(8)>."
7279 msgstr ""
7280
7281 #. type: =head2
7282 #: ../fish/guestfish-actions.pod:626
7283 msgid "case-sensitive-path"
7284 msgstr ""
7285
7286 #. type: verbatim
7287 #: ../fish/guestfish-actions.pod:628
7288 #, no-wrap
7289 msgid ""
7290 " case-sensitive-path path\n"
7291 "\n"
7292 msgstr ""
7293
7294 #. type: textblock
7295 #: ../fish/guestfish-actions.pod:630 ../src/guestfs-actions.pod:948
7296 msgid ""
7297 "This can be used to resolve case insensitive paths on a filesystem which is "
7298 "case sensitive.  The use case is to resolve paths which you have read from "
7299 "Windows configuration files or the Windows Registry, to the true path."
7300 msgstr ""
7301
7302 #. type: textblock
7303 #: ../fish/guestfish-actions.pod:635 ../src/guestfs-actions.pod:953
7304 msgid ""
7305 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
7306 "(and probably others), which is that although the underlying filesystem is "
7307 "case-insensitive, the driver exports the filesystem to Linux as "
7308 "case-sensitive."
7309 msgstr ""
7310
7311 #. type: textblock
7312 #: ../fish/guestfish-actions.pod:640 ../src/guestfs-actions.pod:958
7313 msgid ""
7314 "One consequence of this is that special directories such as C<c:\\windows> "
7315 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
7316 "precise details of how they were created.  In Windows itself this would not "
7317 "be a problem."
7318 msgstr ""
7319
7320 #. type: textblock
7321 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:964
7322 msgid ""
7323 "Bug or feature? You decide: "
7324 "L<http://www.tuxera.com/community/ntfs-3g-faq/#posixfilenames1>"
7325 msgstr ""
7326
7327 #. type: textblock
7328 #: ../fish/guestfish-actions.pod:649 ../src/guestfs-actions.pod:967
7329 msgid ""
7330 "This function resolves the true case of each element in the path and returns "
7331 "the case-sensitive path."
7332 msgstr ""
7333
7334 #. type: textblock
7335 #: ../fish/guestfish-actions.pod:652
7336 msgid ""
7337 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return "
7338 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
7339 "how the directories were originally created under Windows)."
7340 msgstr ""
7341
7342 #. type: textblock
7343 #: ../fish/guestfish-actions.pod:657 ../src/guestfs-actions.pod:975
7344 msgid "I<Note>: This function does not handle drive names, backslashes etc."
7345 msgstr ""
7346
7347 #. type: textblock
7348 #: ../fish/guestfish-actions.pod:660
7349 msgid "See also L</realpath>."
7350 msgstr ""
7351
7352 #. type: =head2
7353 #: ../fish/guestfish-actions.pod:662
7354 msgid "cat"
7355 msgstr ""
7356
7357 #. type: verbatim
7358 #: ../fish/guestfish-actions.pod:664
7359 #, no-wrap
7360 msgid ""
7361 " cat path\n"
7362 "\n"
7363 msgstr ""
7364
7365 #. type: textblock
7366 #: ../fish/guestfish-actions.pod:666 ../fish/guestfish-actions.pod:4037 ../src/guestfs-actions.pod:991 ../src/guestfs-actions.pod:6297
7367 msgid "Return the contents of the file named C<path>."
7368 msgstr ""
7369
7370 #. type: textblock
7371 #: ../fish/guestfish-actions.pod:668
7372 msgid ""
7373 "Note that this function cannot correctly handle binary files (specifically, "
7374 "files containing C<\\0> character which is treated as end of string).  For "
7375 "those you need to use the L</read-file> or L</download> functions which have "
7376 "a more complex interface."
7377 msgstr ""
7378
7379 #. type: textblock
7380 #: ../fish/guestfish-actions.pod:673 ../fish/guestfish-actions.pod:808 ../fish/guestfish-actions.pod:820 ../fish/guestfish-actions.pod:1103 ../fish/guestfish-actions.pod:1113 ../fish/guestfish-actions.pod:1180 ../fish/guestfish-actions.pod:1190 ../fish/guestfish-actions.pod:1382 ../fish/guestfish-actions.pod:1695 ../fish/guestfish-actions.pod:1705 ../fish/guestfish-actions.pod:1755 ../fish/guestfish-actions.pod:1770 ../fish/guestfish-actions.pod:1780 ../fish/guestfish-actions.pod:1799 ../fish/guestfish-actions.pod:3907 ../fish/guestfish-actions.pod:3922 ../fish/guestfish-actions.pod:3998 ../fish/guestfish-actions.pod:4015 ../fish/guestfish-actions.pod:4030 ../fish/guestfish-actions.pod:4699 ../fish/guestfish-actions.pod:4745 ../fish/guestfish-actions.pod:4830 ../fish/guestfish-actions.pod:4845 ../fish/guestfish-actions.pod:5251 ../fish/guestfish-actions.pod:5263 ../fish/guestfish-actions.pod:5281 ../fish/guestfish-actions.pod:5298 ../fish/guestfish-actions.pod:5308 ../fish/guestfish-actions.pod:5362 ../fish/guestfish-actions.pod:5372 ../fish/guestfish-actions.pod:5401 ../fish/guestfish-actions.pod:5411 ../src/guestfs-actions.pod:1001 ../src/guestfs-actions.pod:1180 ../src/guestfs-actions.pod:1200 ../src/guestfs-actions.pod:1855 ../src/guestfs-actions.pod:1874 ../src/guestfs-actions.pod:1977 ../src/guestfs-actions.pod:1996 ../src/guestfs-actions.pod:2242 ../src/guestfs-actions.pod:2724 ../src/guestfs-actions.pod:2743 ../src/guestfs-actions.pod:2808 ../src/guestfs-actions.pod:2832 ../src/guestfs-actions.pod:2849 ../src/guestfs-actions.pod:2878 ../src/guestfs-actions.pod:6079 ../src/guestfs-actions.pod:6105 ../src/guestfs-actions.pod:6236 ../src/guestfs-actions.pod:6262 ../src/guestfs-actions.pod:6286 ../src/guestfs-actions.pod:7241 ../src/guestfs-actions.pod:7296 ../src/guestfs-actions.pod:7442 ../src/guestfs-actions.pod:7466 ../src/guestfs-actions.pod:8131 ../src/guestfs-actions.pod:8151 ../src/guestfs-actions.pod:8184 ../src/guestfs-actions.pod:8203 ../src/guestfs-actions.pod:8222 ../src/guestfs-actions.pod:8313 ../src/guestfs-actions.pod:8332 ../src/guestfs-actions.pod:8378 ../src/guestfs-actions.pod:8397
7381 msgid ""
7382 "Because of the message protocol, there is a transfer limit of somewhere "
7383 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
7384 msgstr ""
7385
7386 #. type: =head2
7387 #: ../fish/guestfish-actions.pod:676
7388 msgid "checksum"
7389 msgstr ""
7390
7391 #. type: verbatim
7392 #: ../fish/guestfish-actions.pod:678
7393 #, no-wrap
7394 msgid ""
7395 " checksum csumtype path\n"
7396 "\n"
7397 msgstr ""
7398
7399 #. type: textblock
7400 #: ../fish/guestfish-actions.pod:680 ../src/guestfs-actions.pod:1013
7401 msgid "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
7402 msgstr ""
7403
7404 #. type: textblock
7405 #: ../fish/guestfish-actions.pod:683 ../src/guestfs-actions.pod:1016
7406 msgid ""
7407 "The type of checksum to compute is given by the C<csumtype> parameter which "
7408 "must have one of the following values:"
7409 msgstr ""
7410
7411 #. type: =item
7412 #: ../fish/guestfish-actions.pod:688 ../src/guestfs-actions.pod:1021
7413 msgid "C<crc>"
7414 msgstr ""
7415
7416 #. type: textblock
7417 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1023
7418 msgid ""
7419 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
7420 "C<cksum> command."
7421 msgstr ""
7422
7423 #. type: =item
7424 #: ../fish/guestfish-actions.pod:693 ../src/guestfs-actions.pod:1026
7425 msgid "C<md5>"
7426 msgstr ""
7427
7428 #. type: textblock
7429 #: ../fish/guestfish-actions.pod:695 ../src/guestfs-actions.pod:1028
7430 msgid "Compute the MD5 hash (using the C<md5sum> program)."
7431 msgstr ""
7432
7433 #. type: =item
7434 #: ../fish/guestfish-actions.pod:697 ../src/guestfs-actions.pod:1030
7435 msgid "C<sha1>"
7436 msgstr ""
7437
7438 #. type: textblock
7439 #: ../fish/guestfish-actions.pod:699 ../src/guestfs-actions.pod:1032
7440 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
7441 msgstr ""
7442
7443 #. type: =item
7444 #: ../fish/guestfish-actions.pod:701 ../src/guestfs-actions.pod:1034
7445 msgid "C<sha224>"
7446 msgstr ""
7447
7448 #. type: textblock
7449 #: ../fish/guestfish-actions.pod:703 ../src/guestfs-actions.pod:1036
7450 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
7451 msgstr ""
7452
7453 #. type: =item
7454 #: ../fish/guestfish-actions.pod:705 ../src/guestfs-actions.pod:1038
7455 msgid "C<sha256>"
7456 msgstr ""
7457
7458 #. type: textblock
7459 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1040
7460 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
7461 msgstr ""
7462
7463 #. type: =item
7464 #: ../fish/guestfish-actions.pod:709 ../src/guestfs-actions.pod:1042
7465 msgid "C<sha384>"
7466 msgstr ""
7467
7468 #. type: textblock
7469 #: ../fish/guestfish-actions.pod:711 ../src/guestfs-actions.pod:1044
7470 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
7471 msgstr ""
7472
7473 #. type: =item
7474 #: ../fish/guestfish-actions.pod:713 ../src/guestfs-actions.pod:1046
7475 msgid "C<sha512>"
7476 msgstr ""
7477
7478 #. type: textblock
7479 #: ../fish/guestfish-actions.pod:715 ../src/guestfs-actions.pod:1048
7480 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
7481 msgstr ""
7482
7483 #. type: textblock
7484 #: ../fish/guestfish-actions.pod:719 ../src/guestfs-actions.pod:1052
7485 msgid "The checksum is returned as a printable string."
7486 msgstr ""
7487
7488 #. type: textblock
7489 #: ../fish/guestfish-actions.pod:721
7490 msgid "To get the checksum for a device, use L</checksum-device>."
7491 msgstr ""
7492
7493 #. type: textblock
7494 #: ../fish/guestfish-actions.pod:723
7495 msgid "To get the checksums for many files, use L</checksums-out>."
7496 msgstr ""
7497
7498 #. type: =head2
7499 #: ../fish/guestfish-actions.pod:725
7500 msgid "checksum-device"
7501 msgstr ""
7502
7503 #. type: verbatim
7504 #: ../fish/guestfish-actions.pod:727
7505 #, no-wrap
7506 msgid ""
7507 " checksum-device csumtype device\n"
7508 "\n"
7509 msgstr ""
7510
7511 #. type: textblock
7512 #: ../fish/guestfish-actions.pod:729
7513 msgid ""
7514 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
7515 "device named C<device>.  For the types of checksums supported see the "
7516 "L</checksum> command."
7517 msgstr ""
7518
7519 #. type: =head2
7520 #: ../fish/guestfish-actions.pod:733
7521 msgid "checksums-out"
7522 msgstr ""
7523
7524 #. type: verbatim
7525 #: ../fish/guestfish-actions.pod:735
7526 #, no-wrap
7527 msgid ""
7528 " checksums-out csumtype directory (sumsfile|-)\n"
7529 "\n"
7530 msgstr ""
7531
7532 #. type: textblock
7533 #: ../fish/guestfish-actions.pod:737 ../src/guestfs-actions.pod:1087
7534 msgid ""
7535 "This command computes the checksums of all regular files in C<directory> and "
7536 "then emits a list of those checksums to the local output file C<sumsfile>."
7537 msgstr ""
7538
7539 #. type: textblock
7540 #: ../fish/guestfish-actions.pod:741 ../src/guestfs-actions.pod:1091
7541 msgid ""
7542 "This can be used for verifying the integrity of a virtual machine.  However "
7543 "to be properly secure you should pay attention to the output of the checksum "
7544 "command (it uses the ones from GNU coreutils).  In particular when the "
7545 "filename is not printable, coreutils uses a special backslash syntax.  For "
7546 "more information, see the GNU coreutils info file."
7547 msgstr ""
7548
7549 #. type: =head2
7550 #: ../fish/guestfish-actions.pod:751
7551 msgid "chmod"
7552 msgstr ""
7553
7554 #. type: verbatim
7555 #: ../fish/guestfish-actions.pod:753
7556 #, no-wrap
7557 msgid ""
7558 " chmod mode path\n"
7559 "\n"
7560 msgstr ""
7561
7562 #. type: textblock
7563 #: ../fish/guestfish-actions.pod:755 ../src/guestfs-actions.pod:1110
7564 msgid ""
7565 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
7566 "supported."
7567 msgstr ""
7568
7569 #. type: textblock
7570 #: ../fish/guestfish-actions.pod:758 ../src/guestfs-actions.pod:1113
7571 msgid ""
7572 "I<Note>: When using this command from guestfish, C<mode> by default would be "
7573 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
7574 "C<700>."
7575 msgstr ""
7576
7577 #. type: textblock
7578 #: ../fish/guestfish-actions.pod:762 ../fish/guestfish-actions.pod:3259 ../fish/guestfish-actions.pod:3398 ../fish/guestfish-actions.pod:3408 ../fish/guestfish-actions.pod:3418 ../src/guestfs-actions.pod:1117 ../src/guestfs-actions.pod:5044 ../src/guestfs-actions.pod:5253 ../src/guestfs-actions.pod:5272 ../src/guestfs-actions.pod:5291
7579 msgid "The mode actually set is affected by the umask."
7580 msgstr ""
7581
7582 #. type: =head2
7583 #: ../fish/guestfish-actions.pod:764
7584 msgid "chown"
7585 msgstr ""
7586
7587 #. type: verbatim
7588 #: ../fish/guestfish-actions.pod:766
7589 #, no-wrap
7590 msgid ""
7591 " chown owner group path\n"
7592 "\n"
7593 msgstr ""
7594
7595 #. type: textblock
7596 #: ../fish/guestfish-actions.pod:768 ../src/guestfs-actions.pod:1131
7597 msgid "Change the file owner to C<owner> and group to C<group>."
7598 msgstr ""
7599
7600 #. type: textblock
7601 #: ../fish/guestfish-actions.pod:770 ../fish/guestfish-actions.pod:2703 ../src/guestfs-actions.pod:1133 ../src/guestfs-actions.pod:4124
7602 msgid ""
7603 "Only numeric uid and gid are supported.  If you want to use names, you will "
7604 "need to locate and parse the password file yourself (Augeas support makes "
7605 "this relatively easy)."
7606 msgstr ""
7607
7608 #. type: =head2
7609 #: ../fish/guestfish-actions.pod:774
7610 msgid "command"
7611 msgstr ""
7612
7613 #. type: verbatim
7614 #: ../fish/guestfish-actions.pod:776
7615 #, no-wrap
7616 msgid ""
7617 " command 'arguments ...'\n"
7618 "\n"
7619 msgstr ""
7620
7621 #. type: textblock
7622 #: ../fish/guestfish-actions.pod:778 ../src/guestfs-actions.pod:1147
7623 msgid ""
7624 "This call runs a command from the guest filesystem.  The filesystem must be "
7625 "mounted, and must contain a compatible operating system (ie. something "
7626 "Linux, with the same or compatible processor architecture)."
7627 msgstr ""
7628
7629 #. type: textblock
7630 #: ../fish/guestfish-actions.pod:783
7631 msgid ""
7632 "The single parameter is an argv-style list of arguments.  The first element "
7633 "is the name of the program to run.  Subsequent elements are parameters.  The "
7634 "list must be non-empty (ie. must contain a program name).  Note that the "
7635 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
7636 msgstr ""
7637
7638 #. type: textblock
7639 #: ../fish/guestfish-actions.pod:790 ../src/guestfs-actions.pod:1159
7640 msgid "The return value is anything printed to I<stdout> by the command."
7641 msgstr ""
7642
7643 #. type: textblock
7644 #: ../fish/guestfish-actions.pod:793 ../src/guestfs-actions.pod:1162
7645 msgid ""
7646 "If the command returns a non-zero exit status, then this function returns an "
7647 "error message.  The error message string is the content of I<stderr> from "
7648 "the command."
7649 msgstr ""
7650
7651 #. type: textblock
7652 #: ../fish/guestfish-actions.pod:797 ../src/guestfs-actions.pod:1166
7653 msgid ""
7654 "The C<$PATH> environment variable will contain at least C</usr/bin> and "
7655 "C</bin>.  If you require a program from another location, you should provide "
7656 "the full path in the first parameter."
7657 msgstr ""
7658
7659 #. type: textblock
7660 #: ../fish/guestfish-actions.pod:802 ../src/guestfs-actions.pod:1171
7661 msgid ""
7662 "Shared libraries and data files required by the program must be available on "
7663 "filesystems which are mounted in the correct places.  It is the caller's "
7664 "responsibility to ensure all filesystems that are needed are mounted at the "
7665 "right locations."
7666 msgstr ""
7667
7668 #. type: =head2
7669 #: ../fish/guestfish-actions.pod:811
7670 msgid "command-lines"
7671 msgstr ""
7672
7673 #. type: verbatim
7674 #: ../fish/guestfish-actions.pod:813
7675 #, no-wrap
7676 msgid ""
7677 " command-lines 'arguments ...'\n"
7678 "\n"
7679 msgstr ""
7680
7681 #. type: textblock
7682 #: ../fish/guestfish-actions.pod:815
7683 msgid "This is the same as L</command>, but splits the result into a list of lines."
7684 msgstr ""
7685
7686 #. type: textblock
7687 #: ../fish/guestfish-actions.pod:818
7688 msgid "See also: L</sh-lines>"
7689 msgstr ""
7690
7691 #. type: =head2
7692 #: ../fish/guestfish-actions.pod:823
7693 msgid "compress-device-out"
7694 msgstr ""
7695
7696 #. type: verbatim
7697 #: ../fish/guestfish-actions.pod:825
7698 #, no-wrap
7699 msgid ""
7700 " compress-device-out ctype device (zdevice|-) [level:N]\n"
7701 "\n"
7702 msgstr ""
7703
7704 #. type: textblock
7705 #: ../fish/guestfish-actions.pod:827 ../src/guestfs-actions.pod:1221
7706 msgid ""
7707 "This command compresses C<device> and writes it out to the local file "
7708 "C<zdevice>."
7709 msgstr ""
7710
7711 #. type: textblock
7712 #: ../fish/guestfish-actions.pod:830
7713 msgid ""
7714 "The C<ctype> and optional C<level> parameters have the same meaning as in "
7715 "L</compress-out>."
7716 msgstr ""
7717
7718 #. type: =head2
7719 #: ../fish/guestfish-actions.pod:837
7720 msgid "compress-out"
7721 msgstr ""
7722
7723 #. type: verbatim
7724 #: ../fish/guestfish-actions.pod:839
7725 #, no-wrap
7726 msgid ""
7727 " compress-out ctype file (zfile|-) [level:N]\n"
7728 "\n"
7729 msgstr ""
7730
7731 #. type: textblock
7732 #: ../fish/guestfish-actions.pod:841 ../src/guestfs-actions.pod:1273
7733 msgid ""
7734 "This command compresses C<file> and writes it out to the local file "
7735 "C<zfile>."
7736 msgstr ""
7737
7738 #. type: textblock
7739 #: ../fish/guestfish-actions.pod:844 ../src/guestfs-actions.pod:1276
7740 msgid ""
7741 "The compression program used is controlled by the C<ctype> parameter.  "
7742 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>.  "
7743 "Some compression types may not be supported by particular builds of "
7744 "libguestfs, in which case you will get an error containing the substring "
7745 "\"not supported\"."
7746 msgstr ""
7747
7748 #. type: textblock
7749 #: ../fish/guestfish-actions.pod:850 ../src/guestfs-actions.pod:1282
7750 msgid ""
7751 "The optional C<level> parameter controls compression level.  The meaning and "
7752 "default for this parameter depends on the compression program being used."
7753 msgstr ""
7754
7755 #. type: =head2
7756 #: ../fish/guestfish-actions.pod:858
7757 msgid "config"
7758 msgstr ""
7759
7760 #. type: verbatim
7761 #: ../fish/guestfish-actions.pod:860
7762 #, no-wrap
7763 msgid ""
7764 " config qemuparam qemuvalue\n"
7765 "\n"
7766 msgstr ""
7767
7768 #. type: textblock
7769 #: ../fish/guestfish-actions.pod:862 ../src/guestfs-actions.pod:1323
7770 msgid ""
7771 "This can be used to add arbitrary qemu command line parameters of the form "
7772 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
7773 "setting some parameters which would interfere with parameters that we use."
7774 msgstr ""
7775
7776 #. type: textblock
7777 #: ../fish/guestfish-actions.pod:867 ../src/guestfs-actions.pod:1328
7778 msgid "The first character of C<param> string must be a C<-> (dash)."
7779 msgstr ""
7780
7781 #. type: textblock
7782 #: ../fish/guestfish-actions.pod:869 ../src/guestfs-actions.pod:1330
7783 msgid "C<value> can be NULL."
7784 msgstr ""
7785
7786 #. type: =head2
7787 #: ../fish/guestfish-actions.pod:871
7788 msgid "copy-device-to-device"
7789 msgstr ""
7790
7791 #. type: verbatim
7792 #: ../fish/guestfish-actions.pod:873
7793 #, no-wrap
7794 msgid ""
7795 " copy-device-to-device src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7796 "\n"
7797 msgstr ""
7798
7799 #. type: textblock
7800 #: ../fish/guestfish-actions.pod:875
7801 msgid ""
7802 "The four calls L</copy-device-to-device>, L</copy-device-to-file>, "
7803 "L</copy-file-to-device>, and L</copy-file-to-file> let you copy from a "
7804 "source (device|file) to a destination (device|file)."
7805 msgstr ""
7806
7807 #. type: textblock
7808 #: ../fish/guestfish-actions.pod:882 ../src/guestfs-actions.pod:1360
7809 msgid ""
7810 "Partial copies can be made since you can specify optionally the source "
7811 "offset, destination offset and size to copy.  These values are all specified "
7812 "in bytes.  If not given, the offsets both default to zero, and the size "
7813 "defaults to copying as much as possible until we hit the end of the source."
7814 msgstr ""
7815
7816 #. type: textblock
7817 #: ../fish/guestfish-actions.pod:888 ../src/guestfs-actions.pod:1366
7818 msgid ""
7819 "The source and destination may be the same object.  However overlapping "
7820 "regions may not be copied correctly."
7821 msgstr ""
7822
7823 #. type: textblock
7824 #: ../fish/guestfish-actions.pod:891 ../src/guestfs-actions.pod:1369
7825 msgid ""
7826 "If the destination is a file, it is created if required.  If the destination "
7827 "file is not large enough, it is extended."
7828 msgstr ""
7829
7830 #. type: =head2
7831 #: ../fish/guestfish-actions.pod:896
7832 msgid "copy-device-to-file"
7833 msgstr ""
7834
7835 #. type: verbatim
7836 #: ../fish/guestfish-actions.pod:898
7837 #, no-wrap
7838 msgid ""
7839 " copy-device-to-file src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7840 "\n"
7841 msgstr ""
7842
7843 #. type: textblock
7844 #: ../fish/guestfish-actions.pod:900 ../fish/guestfish-actions.pod:909 ../fish/guestfish-actions.pod:918
7845 msgid "See L</copy-device-to-device> for a general overview of this call."
7846 msgstr ""
7847
7848 #. type: =head2
7849 #: ../fish/guestfish-actions.pod:905
7850 msgid "copy-file-to-device"
7851 msgstr ""
7852
7853 #. type: verbatim
7854 #: ../fish/guestfish-actions.pod:907
7855 #, no-wrap
7856 msgid ""
7857 " copy-file-to-device src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7858 "\n"
7859 msgstr ""
7860
7861 #. type: =head2
7862 #: ../fish/guestfish-actions.pod:914
7863 msgid "copy-file-to-file"
7864 msgstr ""
7865
7866 #. type: verbatim
7867 #: ../fish/guestfish-actions.pod:916
7868 #, no-wrap
7869 msgid ""
7870 " copy-file-to-file src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7871 "\n"
7872 msgstr ""
7873
7874 #. type: textblock
7875 #: ../fish/guestfish-actions.pod:921
7876 msgid ""
7877 "This is B<not> the function you want for copying files.  This is for copying "
7878 "blocks within existing files.  See L</cp>, L</cp-a> and L</mv> for general "
7879 "file copying and moving functions."
7880 msgstr ""
7881
7882 #. type: =head2
7883 #: ../fish/guestfish-actions.pod:928
7884 msgid "copy-size"
7885 msgstr ""
7886
7887 #. type: verbatim
7888 #: ../fish/guestfish-actions.pod:930
7889 #, no-wrap
7890 msgid ""
7891 " copy-size src dest size\n"
7892 "\n"
7893 msgstr ""
7894
7895 #. type: textblock
7896 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1584
7897 msgid ""
7898 "This command copies exactly C<size> bytes from one source device or file "
7899 "C<src> to another destination device or file C<dest>."
7900 msgstr ""
7901
7902 #. type: textblock
7903 #: ../fish/guestfish-actions.pod:935 ../src/guestfs-actions.pod:1587
7904 msgid ""
7905 "Note this will fail if the source is too short or if the destination is not "
7906 "large enough."
7907 msgstr ""
7908
7909 #. type: textblock
7910 #: ../fish/guestfish-actions.pod:938 ../fish/guestfish-actions.pod:973
7911 msgid ""
7912 "I<This function is deprecated.> In new code, use the "
7913 "L</copy_device_to_device> call instead."
7914 msgstr ""
7915
7916 #. type: =head2
7917 #: ../fish/guestfish-actions.pod:945
7918 msgid "cp"
7919 msgstr ""
7920
7921 #. type: verbatim
7922 #: ../fish/guestfish-actions.pod:947
7923 #, no-wrap
7924 msgid ""
7925 " cp src dest\n"
7926 "\n"
7927 msgstr ""
7928
7929 #. type: textblock
7930 #: ../fish/guestfish-actions.pod:949 ../src/guestfs-actions.pod:1606
7931 msgid ""
7932 "This copies a file from C<src> to C<dest> where C<dest> is either a "
7933 "destination filename or destination directory."
7934 msgstr ""
7935
7936 #. type: =head2
7937 #: ../fish/guestfish-actions.pod:952
7938 msgid "cp-a"
7939 msgstr ""
7940
7941 #. type: verbatim
7942 #: ../fish/guestfish-actions.pod:954
7943 #, no-wrap
7944 msgid ""
7945 " cp-a src dest\n"
7946 "\n"
7947 msgstr ""
7948
7949 #. type: textblock
7950 #: ../fish/guestfish-actions.pod:956 ../src/guestfs-actions.pod:1620
7951 msgid ""
7952 "This copies a file or directory from C<src> to C<dest> recursively using the "
7953 "C<cp -a> command."
7954 msgstr ""
7955
7956 #. type: =head2
7957 #: ../fish/guestfish-actions.pod:959
7958 msgid "dd"
7959 msgstr ""
7960
7961 #. type: verbatim
7962 #: ../fish/guestfish-actions.pod:961
7963 #, no-wrap
7964 msgid ""
7965 " dd src dest\n"
7966 "\n"
7967 msgstr ""
7968
7969 #. type: textblock
7970 #: ../fish/guestfish-actions.pod:963 ../src/guestfs-actions.pod:1641
7971 msgid ""
7972 "This command copies from one source device or file C<src> to another "
7973 "destination device or file C<dest>.  Normally you would use this to copy to "
7974 "or from a device or partition, for example to duplicate a filesystem."
7975 msgstr ""
7976
7977 #. type: textblock
7978 #: ../fish/guestfish-actions.pod:968
7979 msgid ""
7980 "If the destination is a device, it must be as large or larger than the "
7981 "source file or device, otherwise the copy will fail.  This command cannot do "
7982 "partial copies (see L</copy-device-to-device>)."
7983 msgstr ""
7984
7985 #. type: =head2
7986 #: ../fish/guestfish-actions.pod:980
7987 msgid "df"
7988 msgstr ""
7989
7990 #. type: verbatim
7991 #: ../fish/guestfish-actions.pod:982
7992 #, no-wrap
7993 msgid ""
7994 " df\n"
7995 "\n"
7996 msgstr ""
7997
7998 #. type: textblock
7999 #: ../fish/guestfish-actions.pod:984 ../src/guestfs-actions.pod:1660
8000 msgid "This command runs the C<df> command to report disk space used."
8001 msgstr ""
8002
8003 #. type: textblock
8004 #: ../fish/guestfish-actions.pod:986 ../fish/guestfish-actions.pod:997
8005 msgid ""
8006 "This command is mostly useful for interactive sessions.  It is I<not> "
8007 "intended that you try to parse the output string.  Use L</statvfs> from "
8008 "programs."
8009 msgstr ""
8010
8011 #. type: =head2
8012 #: ../fish/guestfish-actions.pod:990
8013 msgid "df-h"
8014 msgstr ""
8015
8016 #. type: verbatim
8017 #: ../fish/guestfish-actions.pod:992
8018 #, no-wrap
8019 msgid ""
8020 " df-h\n"
8021 "\n"
8022 msgstr ""
8023
8024 #. type: textblock
8025 #: ../fish/guestfish-actions.pod:994 ../src/guestfs-actions.pod:1676
8026 msgid ""
8027 "This command runs the C<df -h> command to report disk space used in "
8028 "human-readable format."
8029 msgstr ""
8030
8031 #. type: =head2
8032 #: ../fish/guestfish-actions.pod:1001
8033 msgid "dmesg"
8034 msgstr ""
8035
8036 #. type: verbatim
8037 #: ../fish/guestfish-actions.pod:1003
8038 #, no-wrap
8039 msgid ""
8040 " dmesg\n"
8041 "\n"
8042 msgstr ""
8043
8044 #. type: textblock
8045 #: ../fish/guestfish-actions.pod:1005 ../src/guestfs-actions.pod:1693
8046 msgid ""
8047 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
8048 "This is sometimes useful for extended debugging of problems."
8049 msgstr ""
8050
8051 #. type: textblock
8052 #: ../fish/guestfish-actions.pod:1009
8053 msgid ""
8054 "Another way to get the same information is to enable verbose messages with "
8055 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
8056 "before running the program."
8057 msgstr ""
8058
8059 #. type: =head2
8060 #: ../fish/guestfish-actions.pod:1014
8061 msgid "download"
8062 msgstr ""
8063
8064 #. type: verbatim
8065 #: ../fish/guestfish-actions.pod:1016
8066 #, no-wrap
8067 msgid ""
8068 " download remotefilename (filename|-)\n"
8069 "\n"
8070 msgstr ""
8071
8072 #. type: textblock
8073 #: ../fish/guestfish-actions.pod:1018 ../fish/guestfish-actions.pod:1031 ../src/guestfs-actions.pod:1714 ../src/guestfs-actions.pod:1739
8074 msgid ""
8075 "Download file C<remotefilename> and save it as C<filename> on the local "
8076 "machine."
8077 msgstr ""
8078
8079 #. type: textblock
8080 #: ../fish/guestfish-actions.pod:1021 ../fish/guestfish-actions.pod:5003 ../src/guestfs-actions.pod:1717 ../src/guestfs-actions.pod:7701
8081 msgid "C<filename> can also be a named pipe."
8082 msgstr ""
8083
8084 #. type: textblock
8085 #: ../fish/guestfish-actions.pod:1023
8086 msgid "See also L</upload>, L</cat>."
8087 msgstr ""
8088
8089 #. type: =head2
8090 #: ../fish/guestfish-actions.pod:1027
8091 msgid "download-offset"
8092 msgstr ""
8093
8094 #. type: verbatim
8095 #: ../fish/guestfish-actions.pod:1029
8096 #, no-wrap
8097 msgid ""
8098 " download-offset remotefilename (filename|-) offset size\n"
8099 "\n"
8100 msgstr ""
8101
8102 #. type: textblock
8103 #: ../fish/guestfish-actions.pod:1034 ../src/guestfs-actions.pod:1742
8104 msgid ""
8105 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
8106 "region must be within the file or device)."
8107 msgstr ""
8108
8109 #. type: textblock
8110 #: ../fish/guestfish-actions.pod:1037
8111 msgid ""
8112 "Note that there is no limit on the amount of data that can be downloaded "
8113 "with this call, unlike with L</pread>, and this call always reads the full "
8114 "amount unless an error occurs."
8115 msgstr ""
8116
8117 #. type: textblock
8118 #: ../fish/guestfish-actions.pod:1042
8119 msgid "See also L</download>, L</pread>."
8120 msgstr ""
8121
8122 #. type: =head2
8123 #: ../fish/guestfish-actions.pod:1046
8124 msgid "drop-caches"
8125 msgstr ""
8126
8127 #. type: verbatim
8128 #: ../fish/guestfish-actions.pod:1048
8129 #, no-wrap
8130 msgid ""
8131 " drop-caches whattodrop\n"
8132 "\n"
8133 msgstr ""
8134
8135 #. type: textblock
8136 #: ../fish/guestfish-actions.pod:1050 ../src/guestfs-actions.pod:1767
8137 msgid ""
8138 "This instructs the guest kernel to drop its page cache, and/or dentries and "
8139 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
8140 "to drop, see L<http://linux-mm.org/Drop_Caches>"
8141 msgstr ""
8142
8143 #. type: textblock
8144 #: ../fish/guestfish-actions.pod:1055 ../src/guestfs-actions.pod:1772
8145 msgid "Setting C<whattodrop> to 3 should drop everything."
8146 msgstr ""
8147
8148 #. type: textblock
8149 #: ../fish/guestfish-actions.pod:1057 ../src/guestfs-actions.pod:1774
8150 msgid ""
8151 "This automatically calls L<sync(2)> before the operation, so that the "
8152 "maximum guest memory is freed."
8153 msgstr ""
8154
8155 #. type: =head2
8156 #: ../fish/guestfish-actions.pod:1060
8157 msgid "du"
8158 msgstr ""
8159
8160 #. type: verbatim
8161 #: ../fish/guestfish-actions.pod:1062
8162 #, no-wrap
8163 msgid ""
8164 " du path\n"
8165 "\n"
8166 msgstr ""
8167
8168 #. type: textblock
8169 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1787
8170 msgid ""
8171 "This command runs the C<du -s> command to estimate file space usage for "
8172 "C<path>."
8173 msgstr ""
8174
8175 #. type: textblock
8176 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1790
8177 msgid ""
8178 "C<path> can be a file or a directory.  If C<path> is a directory then the "
8179 "estimate includes the contents of the directory and all subdirectories "
8180 "(recursively)."
8181 msgstr ""
8182
8183 #. type: textblock
8184 #: ../fish/guestfish-actions.pod:1071 ../src/guestfs-actions.pod:1794
8185 msgid "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
8186 msgstr ""
8187
8188 #. type: =head2
8189 #: ../fish/guestfish-actions.pod:1074
8190 msgid "e2fsck-f"
8191 msgstr ""
8192
8193 #. type: verbatim
8194 #: ../fish/guestfish-actions.pod:1076
8195 #, no-wrap
8196 msgid ""
8197 " e2fsck-f device\n"
8198 "\n"
8199 msgstr ""
8200
8201 #. type: textblock
8202 #: ../fish/guestfish-actions.pod:1078 ../src/guestfs-actions.pod:1812
8203 msgid ""
8204 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
8205 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
8206 "clean (I<-f>)."
8207 msgstr ""
8208
8209 #. type: textblock
8210 #: ../fish/guestfish-actions.pod:1082
8211 msgid ""
8212 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
8213 "should use L</fsck>."
8214 msgstr ""
8215
8216 #. type: =head2
8217 #: ../fish/guestfish-actions.pod:1085
8218 msgid "echo-daemon"
8219 msgstr ""
8220
8221 #. type: verbatim
8222 #: ../fish/guestfish-actions.pod:1087
8223 #, no-wrap
8224 msgid ""
8225 " echo-daemon 'words ...'\n"
8226 "\n"
8227 msgstr ""
8228
8229 #. type: textblock
8230 #: ../fish/guestfish-actions.pod:1089 ../src/guestfs-actions.pod:1829
8231 msgid ""
8232 "This command concatenates the list of C<words> passed with single spaces "
8233 "between them and returns the resulting string."
8234 msgstr ""
8235
8236 #. type: textblock
8237 #: ../fish/guestfish-actions.pod:1092 ../src/guestfs-actions.pod:1832
8238 msgid "You can use this command to test the connection through to the daemon."
8239 msgstr ""
8240
8241 #. type: textblock
8242 #: ../fish/guestfish-actions.pod:1094
8243 msgid "See also L</ping-daemon>."
8244 msgstr ""
8245
8246 #. type: =head2
8247 #: ../fish/guestfish-actions.pod:1096
8248 msgid "egrep"
8249 msgstr ""
8250
8251 #. type: verbatim
8252 #: ../fish/guestfish-actions.pod:1098
8253 #, no-wrap
8254 msgid ""
8255 " egrep regex path\n"
8256 "\n"
8257 msgstr ""
8258
8259 #. type: textblock
8260 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1848
8261 msgid "This calls the external C<egrep> program and returns the matching lines."
8262 msgstr ""
8263
8264 #. type: =head2
8265 #: ../fish/guestfish-actions.pod:1106
8266 msgid "egrepi"
8267 msgstr ""
8268
8269 #. type: verbatim
8270 #: ../fish/guestfish-actions.pod:1108
8271 #, no-wrap
8272 msgid ""
8273 " egrepi regex path\n"
8274 "\n"
8275 msgstr ""
8276
8277 #. type: textblock
8278 #: ../fish/guestfish-actions.pod:1110 ../src/guestfs-actions.pod:1867
8279 msgid "This calls the external C<egrep -i> program and returns the matching lines."
8280 msgstr ""
8281
8282 #. type: =head2
8283 #: ../fish/guestfish-actions.pod:1116
8284 msgid "equal"
8285 msgstr ""
8286
8287 #. type: verbatim
8288 #: ../fish/guestfish-actions.pod:1118
8289 #, no-wrap
8290 msgid ""
8291 " equal file1 file2\n"
8292 "\n"
8293 msgstr ""
8294
8295 #. type: textblock
8296 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1886
8297 msgid ""
8298 "This compares the two files C<file1> and C<file2> and returns true if their "
8299 "content is exactly equal, or false otherwise."
8300 msgstr ""
8301
8302 #. type: textblock
8303 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1889
8304 msgid "The external L<cmp(1)> program is used for the comparison."
8305 msgstr ""
8306
8307 #. type: =head2
8308 #: ../fish/guestfish-actions.pod:1125
8309 msgid "exists"
8310 msgstr ""
8311
8312 #. type: verbatim
8313 #: ../fish/guestfish-actions.pod:1127
8314 #, no-wrap
8315 msgid ""
8316 " exists path\n"
8317 "\n"
8318 msgstr ""
8319
8320 #. type: textblock
8321 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1901
8322 msgid ""
8323 "This returns C<true> if and only if there is a file, directory (or anything) "
8324 "with the given C<path> name."
8325 msgstr ""
8326
8327 #. type: textblock
8328 #: ../fish/guestfish-actions.pod:1132
8329 msgid "See also L</is-file>, L</is-dir>, L</stat>."
8330 msgstr ""
8331
8332 #. type: =head2
8333 #: ../fish/guestfish-actions.pod:1134
8334 msgid "fallocate"
8335 msgstr ""
8336
8337 #. type: verbatim
8338 #: ../fish/guestfish-actions.pod:1136
8339 #, no-wrap
8340 msgid ""
8341 " fallocate path len\n"
8342 "\n"
8343 msgstr ""
8344
8345 #. type: textblock
8346 #: ../fish/guestfish-actions.pod:1138 ../fish/guestfish-actions.pod:1157 ../src/guestfs-actions.pod:1924 ../src/guestfs-actions.pod:1943
8347 msgid ""
8348 "This command preallocates a file (containing zero bytes) named C<path> of "
8349 "size C<len> bytes.  If the file exists already, it is overwritten."
8350 msgstr ""
8351
8352 #. type: textblock
8353 #: ../fish/guestfish-actions.pod:1142 ../src/guestfs-actions.pod:1928
8354 msgid ""
8355 "Do not confuse this with the guestfish-specific C<alloc> command which "
8356 "allocates a file in the host and attaches it as a device."
8357 msgstr ""
8358
8359 #. type: textblock
8360 #: ../fish/guestfish-actions.pod:1146
8361 msgid ""
8362 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
8363 "instead."
8364 msgstr ""
8365
8366 #. type: =head2
8367 #: ../fish/guestfish-actions.pod:1153
8368 msgid "fallocate64"
8369 msgstr ""
8370
8371 #. type: verbatim
8372 #: ../fish/guestfish-actions.pod:1155
8373 #, no-wrap
8374 msgid ""
8375 " fallocate64 path len\n"
8376 "\n"
8377 msgstr ""
8378
8379 #. type: textblock
8380 #: ../fish/guestfish-actions.pod:1161
8381 msgid ""
8382 "Note that this call allocates disk blocks for the file.  To create a sparse "
8383 "file use L</truncate-size> instead."
8384 msgstr ""
8385
8386 #. type: textblock
8387 #: ../fish/guestfish-actions.pod:1164
8388 msgid ""
8389 "The deprecated call L</fallocate> does the same, but owing to an oversight "
8390 "it only allowed 30 bit lengths to be specified, effectively limiting the "
8391 "maximum size of files created through that call to 1GB."
8392 msgstr ""
8393
8394 #. type: textblock
8395 #: ../fish/guestfish-actions.pod:1169 ../src/guestfs-actions.pod:1955
8396 msgid ""
8397 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
8398 "commands which create a file in the host and attach it as a device."
8399 msgstr ""
8400
8401 #. type: =head2
8402 #: ../fish/guestfish-actions.pod:1173
8403 msgid "fgrep"
8404 msgstr ""
8405
8406 #. type: verbatim
8407 #: ../fish/guestfish-actions.pod:1175
8408 #, no-wrap
8409 msgid ""
8410 " fgrep pattern path\n"
8411 "\n"
8412 msgstr ""
8413
8414 #. type: textblock
8415 #: ../fish/guestfish-actions.pod:1177 ../src/guestfs-actions.pod:1970
8416 msgid "This calls the external C<fgrep> program and returns the matching lines."
8417 msgstr ""
8418
8419 #. type: =head2
8420 #: ../fish/guestfish-actions.pod:1183
8421 msgid "fgrepi"
8422 msgstr ""
8423
8424 #. type: verbatim
8425 #: ../fish/guestfish-actions.pod:1185
8426 #, no-wrap
8427 msgid ""
8428 " fgrepi pattern path\n"
8429 "\n"
8430 msgstr ""
8431
8432 #. type: textblock
8433 #: ../fish/guestfish-actions.pod:1187 ../src/guestfs-actions.pod:1989
8434 msgid "This calls the external C<fgrep -i> program and returns the matching lines."
8435 msgstr ""
8436
8437 #. type: =head2
8438 #: ../fish/guestfish-actions.pod:1193
8439 msgid "file"
8440 msgstr ""
8441
8442 #. type: verbatim
8443 #: ../fish/guestfish-actions.pod:1195
8444 #, no-wrap
8445 msgid ""
8446 " file path\n"
8447 "\n"
8448 msgstr ""
8449
8450 #. type: textblock
8451 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:2007
8452 msgid ""
8453 "This call uses the standard L<file(1)> command to determine the type or "
8454 "contents of the file."
8455 msgstr ""
8456
8457 #. type: textblock
8458 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:2010
8459 msgid ""
8460 "This call will also transparently look inside various types of compressed "
8461 "file."
8462 msgstr ""
8463
8464 #. type: textblock
8465 #: ../fish/guestfish-actions.pod:1203 ../src/guestfs-actions.pod:2013
8466 msgid ""
8467 "The exact command which runs is C<file -zb path>.  Note in particular that "
8468 "the filename is not prepended to the output (the I<-b> option)."
8469 msgstr ""
8470
8471 #. type: textblock
8472 #: ../fish/guestfish-actions.pod:1207 ../src/guestfs-actions.pod:2017
8473 msgid ""
8474 "The output depends on the output of the underlying L<file(1)> command and it "
8475 "can change in future in ways beyond our control.  In other words, the output "
8476 "is not guaranteed by the ABI."
8477 msgstr ""
8478
8479 #. type: textblock
8480 #: ../fish/guestfish-actions.pod:1211
8481 msgid ""
8482 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
8483 "(etc), L</is-zero>."
8484 msgstr ""
8485
8486 #. type: =head2
8487 #: ../fish/guestfish-actions.pod:1214
8488 msgid "file-architecture"
8489 msgstr ""
8490
8491 #. type: verbatim
8492 #: ../fish/guestfish-actions.pod:1216
8493 #, no-wrap
8494 msgid ""
8495 " file-architecture filename\n"
8496 "\n"
8497 msgstr ""
8498
8499 #. type: textblock
8500 #: ../fish/guestfish-actions.pod:1218 ../src/guestfs-actions.pod:2035
8501 msgid ""
8502 "This detects the architecture of the binary C<filename>, and returns it if "
8503 "known."
8504 msgstr ""
8505
8506 #. type: textblock
8507 #: ../fish/guestfish-actions.pod:1221 ../src/guestfs-actions.pod:2038
8508 msgid "Currently defined architectures are:"
8509 msgstr ""
8510
8511 #. type: =item
8512 #: ../fish/guestfish-actions.pod:1225 ../src/guestfs-actions.pod:2042
8513 msgid "\"i386\""
8514 msgstr ""
8515
8516 #. type: textblock
8517 #: ../fish/guestfish-actions.pod:1227 ../src/guestfs-actions.pod:2044
8518 msgid ""
8519 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
8520 "irrespective of the precise processor requirements of the binary."
8521 msgstr ""
8522
8523 #. type: =item
8524 #: ../fish/guestfish-actions.pod:1230 ../src/guestfs-actions.pod:2047
8525 msgid "\"x86_64\""
8526 msgstr ""
8527
8528 #. type: textblock
8529 #: ../fish/guestfish-actions.pod:1232 ../src/guestfs-actions.pod:2049
8530 msgid "64 bit x86-64."
8531 msgstr ""
8532
8533 #. type: =item
8534 #: ../fish/guestfish-actions.pod:1234 ../src/guestfs-actions.pod:2051
8535 msgid "\"sparc\""
8536 msgstr ""
8537
8538 #. type: textblock
8539 #: ../fish/guestfish-actions.pod:1236 ../src/guestfs-actions.pod:2053
8540 msgid "32 bit SPARC."
8541 msgstr ""
8542
8543 #. type: =item
8544 #: ../fish/guestfish-actions.pod:1238 ../src/guestfs-actions.pod:2055
8545 msgid "\"sparc64\""
8546 msgstr ""
8547
8548 #. type: textblock
8549 #: ../fish/guestfish-actions.pod:1240 ../src/guestfs-actions.pod:2057
8550 msgid "64 bit SPARC V9 and above."
8551 msgstr ""
8552
8553 #. type: =item
8554 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:2059
8555 msgid "\"ia64\""
8556 msgstr ""
8557
8558 #. type: textblock
8559 #: ../fish/guestfish-actions.pod:1244 ../src/guestfs-actions.pod:2061
8560 msgid "Intel Itanium."
8561 msgstr ""
8562
8563 #. type: =item
8564 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:2063
8565 msgid "\"ppc\""
8566 msgstr ""
8567
8568 #. type: textblock
8569 #: ../fish/guestfish-actions.pod:1248 ../src/guestfs-actions.pod:2065
8570 msgid "32 bit Power PC."
8571 msgstr ""
8572
8573 #. type: =item
8574 #: ../fish/guestfish-actions.pod:1250 ../src/guestfs-actions.pod:2067
8575 msgid "\"ppc64\""
8576 msgstr ""
8577
8578 #. type: textblock
8579 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:2069
8580 msgid "64 bit Power PC."
8581 msgstr ""
8582
8583 #. type: textblock
8584 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:2073
8585 msgid "Libguestfs may return other architecture strings in future."
8586 msgstr ""
8587
8588 #. type: textblock
8589 #: ../fish/guestfish-actions.pod:1258 ../src/guestfs-actions.pod:2075
8590 msgid "The function works on at least the following types of files:"
8591 msgstr ""
8592
8593 #. type: textblock
8594 #: ../fish/guestfish-actions.pod:1264 ../src/guestfs-actions.pod:2081
8595 msgid "many types of Un*x and Linux binary"
8596 msgstr ""
8597
8598 #. type: textblock
8599 #: ../fish/guestfish-actions.pod:1268 ../src/guestfs-actions.pod:2085
8600 msgid "many types of Un*x and Linux shared library"
8601 msgstr ""
8602
8603 #. type: textblock
8604 #: ../fish/guestfish-actions.pod:1272 ../src/guestfs-actions.pod:2089
8605 msgid "Windows Win32 and Win64 binaries"
8606 msgstr ""
8607
8608 #. type: textblock
8609 #: ../fish/guestfish-actions.pod:1276 ../src/guestfs-actions.pod:2093
8610 msgid "Windows Win32 and Win64 DLLs"
8611 msgstr ""
8612
8613 #. type: textblock
8614 #: ../fish/guestfish-actions.pod:1278 ../src/guestfs-actions.pod:2095
8615 msgid "Win32 binaries and DLLs return C<i386>."
8616 msgstr ""
8617
8618 #. type: textblock
8619 #: ../fish/guestfish-actions.pod:1280 ../src/guestfs-actions.pod:2097
8620 msgid "Win64 binaries and DLLs return C<x86_64>."
8621 msgstr ""
8622
8623 #. type: textblock
8624 #: ../fish/guestfish-actions.pod:1284 ../src/guestfs-actions.pod:2101
8625 msgid "Linux kernel modules"
8626 msgstr ""
8627
8628 #. type: textblock
8629 #: ../fish/guestfish-actions.pod:1288 ../src/guestfs-actions.pod:2105
8630 msgid "Linux new-style initrd images"
8631 msgstr ""
8632
8633 #. type: textblock
8634 #: ../fish/guestfish-actions.pod:1292 ../src/guestfs-actions.pod:2109
8635 msgid "some non-x86 Linux vmlinuz kernels"
8636 msgstr ""
8637
8638 #. type: textblock
8639 #: ../fish/guestfish-actions.pod:1296 ../src/guestfs-actions.pod:2113
8640 msgid "What it can't do currently:"
8641 msgstr ""
8642
8643 #. type: textblock
8644 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:2119
8645 msgid "static libraries (libfoo.a)"
8646 msgstr ""
8647
8648 #. type: textblock
8649 #: ../fish/guestfish-actions.pod:1306 ../src/guestfs-actions.pod:2123
8650 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
8651 msgstr ""
8652
8653 #. type: textblock
8654 #: ../fish/guestfish-actions.pod:1310 ../src/guestfs-actions.pod:2127
8655 msgid "x86 Linux vmlinuz kernels"
8656 msgstr ""
8657
8658 #. type: textblock
8659 #: ../fish/guestfish-actions.pod:1312 ../src/guestfs-actions.pod:2129
8660 msgid ""
8661 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
8662 "compressed code, and are horribly hard to unpack.  If you want to find the "
8663 "architecture of a kernel, use the architecture of the associated initrd or "
8664 "kernel module(s) instead."
8665 msgstr ""
8666
8667 #. type: =head2
8668 #: ../fish/guestfish-actions.pod:1319
8669 msgid "filesize"
8670 msgstr ""
8671
8672 #. type: verbatim
8673 #: ../fish/guestfish-actions.pod:1321
8674 #, no-wrap
8675 msgid ""
8676 " filesize file\n"
8677 "\n"
8678 msgstr ""
8679
8680 #. type: textblock
8681 #: ../fish/guestfish-actions.pod:1323 ../src/guestfs-actions.pod:2147
8682 msgid "This command returns the size of C<file> in bytes."
8683 msgstr ""
8684
8685 #. type: textblock
8686 #: ../fish/guestfish-actions.pod:1325
8687 msgid ""
8688 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, "
8689 "L</is-file> etc.  To get the size of block devices, use "
8690 "L</blockdev-getsize64>."
8691 msgstr ""
8692
8693 #. type: =head2
8694 #: ../fish/guestfish-actions.pod:1329
8695 msgid "fill"
8696 msgstr ""
8697
8698 #. type: verbatim
8699 #: ../fish/guestfish-actions.pod:1331
8700 #, no-wrap
8701 msgid ""
8702 " fill c len path\n"
8703 "\n"
8704 msgstr ""
8705
8706 #. type: textblock
8707 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:2165
8708 msgid ""
8709 "This command creates a new file called C<path>.  The initial content of the "
8710 "file is C<len> octets of C<c>, where C<c> must be a number in the range "
8711 "C<[0..255]>."
8712 msgstr ""
8713
8714 #. type: textblock
8715 #: ../fish/guestfish-actions.pod:1337
8716 msgid ""
8717 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
8718 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
8719 "L</fill-pattern>."
8720 msgstr ""
8721
8722 #. type: =head2
8723 #: ../fish/guestfish-actions.pod:1342
8724 msgid "fill-pattern"
8725 msgstr ""
8726
8727 #. type: verbatim
8728 #: ../fish/guestfish-actions.pod:1344
8729 #, no-wrap
8730 msgid ""
8731 " fill-pattern pattern len path\n"
8732 "\n"
8733 msgstr ""
8734
8735 #. type: textblock
8736 #: ../fish/guestfish-actions.pod:1346
8737 msgid ""
8738 "This function is like L</fill> except that it creates a new file of length "
8739 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
8740 "is truncated if necessary to ensure the length of the file is exactly C<len> "
8741 "bytes."
8742 msgstr ""
8743
8744 #. type: =head2
8745 #: ../fish/guestfish-actions.pod:1351
8746 msgid "find"
8747 msgstr ""
8748
8749 #. type: verbatim
8750 #: ../fish/guestfish-actions.pod:1353
8751 #, no-wrap
8752 msgid ""
8753 " find directory\n"
8754 "\n"
8755 msgstr ""
8756
8757 #. type: textblock
8758 #: ../fish/guestfish-actions.pod:1355 ../src/guestfs-actions.pod:2211
8759 msgid ""
8760 "This command lists out all files and directories, recursively, starting at "
8761 "C<directory>.  It is essentially equivalent to running the shell command "
8762 "C<find directory -print> but some post-processing happens on the output, "
8763 "described below."
8764 msgstr ""
8765
8766 #. type: textblock
8767 #: ../fish/guestfish-actions.pod:1360 ../src/guestfs-actions.pod:2216
8768 msgid ""
8769 "This returns a list of strings I<without any prefix>.  Thus if the directory "
8770 "structure was:"
8771 msgstr ""
8772
8773 #. type: verbatim
8774 #: ../fish/guestfish-actions.pod:1363 ../src/guestfs-actions.pod:2219
8775 #, no-wrap
8776 msgid ""
8777 " /tmp/a\n"
8778 " /tmp/b\n"
8779 " /tmp/c/d\n"
8780 "\n"
8781 msgstr ""
8782
8783 #. type: textblock
8784 #: ../fish/guestfish-actions.pod:1367
8785 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
8786 msgstr ""
8787
8788 #. type: verbatim
8789 #: ../fish/guestfish-actions.pod:1370 ../src/guestfs-actions.pod:2226
8790 #, no-wrap
8791 msgid ""
8792 " a\n"
8793 " b\n"
8794 " c\n"
8795 " c/d\n"
8796 "\n"
8797 msgstr ""
8798
8799 #. type: textblock
8800 #: ../fish/guestfish-actions.pod:1375 ../src/guestfs-actions.pod:2231
8801 msgid "If C<directory> is not a directory, then this command returns an error."
8802 msgstr ""
8803
8804 #. type: textblock
8805 #: ../fish/guestfish-actions.pod:1378 ../src/guestfs-actions.pod:2234
8806 msgid "The returned list is sorted."
8807 msgstr ""
8808
8809 #. type: textblock
8810 #: ../fish/guestfish-actions.pod:1380
8811 msgid "See also L</find0>."
8812 msgstr ""
8813
8814 #. type: =head2
8815 #: ../fish/guestfish-actions.pod:1385
8816 msgid "find0"
8817 msgstr ""
8818
8819 #. type: verbatim
8820 #: ../fish/guestfish-actions.pod:1387
8821 #, no-wrap
8822 msgid ""
8823 " find0 directory (files|-)\n"
8824 "\n"
8825 msgstr ""
8826
8827 #. type: textblock
8828 #: ../fish/guestfish-actions.pod:1389 ../src/guestfs-actions.pod:2254
8829 msgid ""
8830 "This command lists out all files and directories, recursively, starting at "
8831 "C<directory>, placing the resulting list in the external file called "
8832 "C<files>."
8833 msgstr ""
8834
8835 #. type: textblock
8836 #: ../fish/guestfish-actions.pod:1393
8837 msgid "This command works the same way as L</find> with the following exceptions:"
8838 msgstr ""
8839
8840 #. type: textblock
8841 #: ../fish/guestfish-actions.pod:1400 ../src/guestfs-actions.pod:2265
8842 msgid "The resulting list is written to an external file."
8843 msgstr ""
8844
8845 #. type: textblock
8846 #: ../fish/guestfish-actions.pod:1404 ../src/guestfs-actions.pod:2269
8847 msgid ""
8848 "Items (filenames) in the result are separated by C<\\0> characters.  See "
8849 "L<find(1)> option I<-print0>."
8850 msgstr ""
8851
8852 #. type: textblock
8853 #: ../fish/guestfish-actions.pod:1409 ../src/guestfs-actions.pod:2274
8854 msgid "This command is not limited in the number of names that it can return."
8855 msgstr ""
8856
8857 #. type: textblock
8858 #: ../fish/guestfish-actions.pod:1414 ../src/guestfs-actions.pod:2279
8859 msgid "The result list is not sorted."
8860 msgstr ""
8861
8862 #. type: =head2
8863 #: ../fish/guestfish-actions.pod:1420
8864 msgid "findfs-label"
8865 msgstr ""
8866
8867 #. type: verbatim
8868 #: ../fish/guestfish-actions.pod:1422
8869 #, no-wrap
8870 msgid ""
8871 " findfs-label label\n"
8872 "\n"
8873 msgstr ""
8874
8875 #. type: textblock
8876 #: ../fish/guestfish-actions.pod:1424 ../src/guestfs-actions.pod:2293
8877 msgid ""
8878 "This command searches the filesystems and returns the one which has the "
8879 "given label.  An error is returned if no such filesystem can be found."
8880 msgstr ""
8881
8882 #. type: textblock
8883 #: ../fish/guestfish-actions.pod:1428
8884 msgid "To find the label of a filesystem, use L</vfs-label>."
8885 msgstr ""
8886
8887 #. type: =head2
8888 #: ../fish/guestfish-actions.pod:1430
8889 msgid "findfs-uuid"
8890 msgstr ""
8891
8892 #. type: verbatim
8893 #: ../fish/guestfish-actions.pod:1432
8894 #, no-wrap
8895 msgid ""
8896 " findfs-uuid uuid\n"
8897 "\n"
8898 msgstr ""
8899
8900 #. type: textblock
8901 #: ../fish/guestfish-actions.pod:1434 ../src/guestfs-actions.pod:2310
8902 msgid ""
8903 "This command searches the filesystems and returns the one which has the "
8904 "given UUID.  An error is returned if no such filesystem can be found."
8905 msgstr ""
8906
8907 #. type: textblock
8908 #: ../fish/guestfish-actions.pod:1438
8909 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
8910 msgstr ""
8911
8912 #. type: =head2
8913 #: ../fish/guestfish-actions.pod:1440
8914 msgid "fsck"
8915 msgstr ""
8916
8917 #. type: verbatim
8918 #: ../fish/guestfish-actions.pod:1442
8919 #, no-wrap
8920 msgid ""
8921 " fsck fstype device\n"
8922 "\n"
8923 msgstr ""
8924
8925 #. type: textblock
8926 #: ../fish/guestfish-actions.pod:1444 ../src/guestfs-actions.pod:2328
8927 msgid ""
8928 "This runs the filesystem checker (fsck) on C<device> which should have "
8929 "filesystem type C<fstype>."
8930 msgstr ""
8931
8932 #. type: textblock
8933 #: ../fish/guestfish-actions.pod:1447 ../src/guestfs-actions.pod:2331
8934 msgid ""
8935 "The returned integer is the status.  See L<fsck(8)> for the list of status "
8936 "codes from C<fsck>."
8937 msgstr ""
8938
8939 #. type: textblock
8940 #: ../fish/guestfish-actions.pod:1456 ../src/guestfs-actions.pod:2340
8941 msgid "Multiple status codes can be summed together."
8942 msgstr ""
8943
8944 #. type: textblock
8945 #: ../fish/guestfish-actions.pod:1460 ../src/guestfs-actions.pod:2344
8946 msgid ""
8947 "A non-zero return code can mean \"success\", for example if errors have been "
8948 "corrected on the filesystem."
8949 msgstr ""
8950
8951 #. type: textblock
8952 #: ../fish/guestfish-actions.pod:1465 ../src/guestfs-actions.pod:2349
8953 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
8954 msgstr ""
8955
8956 #. type: textblock
8957 #: ../fish/guestfish-actions.pod:1470 ../src/guestfs-actions.pod:2354
8958 msgid "This command is entirely equivalent to running C<fsck -a -t fstype device>."
8959 msgstr ""
8960
8961 #. type: =head2
8962 #: ../fish/guestfish-actions.pod:1472
8963 msgid "get-append"
8964 msgstr ""
8965
8966 #. type: verbatim
8967 #: ../fish/guestfish-actions.pod:1474
8968 #, no-wrap
8969 msgid ""
8970 " get-append\n"
8971 "\n"
8972 msgstr ""
8973
8974 #. type: textblock
8975 #: ../fish/guestfish-actions.pod:1476 ../src/guestfs-actions.pod:2365
8976 msgid ""
8977 "Return the additional kernel options which are added to the guest kernel "
8978 "command line."
8979 msgstr ""
8980
8981 #. type: textblock
8982 #: ../fish/guestfish-actions.pod:1479 ../src/guestfs-actions.pod:2368
8983 msgid "If C<NULL> then no options are added."
8984 msgstr ""
8985
8986 #. type: =head2
8987 #: ../fish/guestfish-actions.pod:1481
8988 msgid "get-attach-method"
8989 msgstr ""
8990
8991 #. type: verbatim
8992 #: ../fish/guestfish-actions.pod:1483
8993 #, no-wrap
8994 msgid ""
8995 " get-attach-method\n"
8996 "\n"
8997 msgstr ""
8998
8999 #. type: textblock
9000 #: ../fish/guestfish-actions.pod:1485
9001 msgid "Return the current attach method.  See L</set-attach-method>."
9002 msgstr ""
9003
9004 #. type: =head2
9005 #: ../fish/guestfish-actions.pod:1487
9006 msgid "get-autosync"
9007 msgstr ""
9008
9009 #. type: verbatim
9010 #: ../fish/guestfish-actions.pod:1489
9011 #, no-wrap
9012 msgid ""
9013 " get-autosync\n"
9014 "\n"
9015 msgstr ""
9016
9017 #. type: textblock
9018 #: ../fish/guestfish-actions.pod:1491 ../src/guestfs-actions.pod:2393
9019 msgid "Get the autosync flag."
9020 msgstr ""
9021
9022 #. type: =head2
9023 #: ../fish/guestfish-actions.pod:1493
9024 msgid "get-direct"
9025 msgstr ""
9026
9027 #. type: verbatim
9028 #: ../fish/guestfish-actions.pod:1495
9029 #, no-wrap
9030 msgid ""
9031 " get-direct\n"
9032 "\n"
9033 msgstr ""
9034
9035 #. type: textblock
9036 #: ../fish/guestfish-actions.pod:1497 ../src/guestfs-actions.pod:2404
9037 msgid "Return the direct appliance mode flag."
9038 msgstr ""
9039
9040 #. type: =head2
9041 #: ../fish/guestfish-actions.pod:1499
9042 msgid "get-e2label"
9043 msgstr ""
9044
9045 #. type: verbatim
9046 #: ../fish/guestfish-actions.pod:1501
9047 #, no-wrap
9048 msgid ""
9049 " get-e2label device\n"
9050 "\n"
9051 msgstr ""
9052
9053 #. type: textblock
9054 #: ../fish/guestfish-actions.pod:1503 ../src/guestfs-actions.pod:2423
9055 msgid "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
9056 msgstr ""
9057
9058 #. type: textblock
9059 #: ../fish/guestfish-actions.pod:1506
9060 msgid ""
9061 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
9062 "instead."
9063 msgstr ""
9064
9065 #. type: =head2
9066 #: ../fish/guestfish-actions.pod:1513
9067 msgid "get-e2uuid"
9068 msgstr ""
9069
9070 #. type: verbatim
9071 #: ../fish/guestfish-actions.pod:1515
9072 #, no-wrap
9073 msgid ""
9074 " get-e2uuid device\n"
9075 "\n"
9076 msgstr ""
9077
9078 #. type: textblock
9079 #: ../fish/guestfish-actions.pod:1517 ../src/guestfs-actions.pod:2444
9080 msgid "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
9081 msgstr ""
9082
9083 #. type: textblock
9084 #: ../fish/guestfish-actions.pod:1520
9085 msgid ""
9086 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
9087 "instead."
9088 msgstr ""
9089
9090 #. type: =head2
9091 #: ../fish/guestfish-actions.pod:1527
9092 msgid "get-memsize"
9093 msgstr ""
9094
9095 #. type: verbatim
9096 #: ../fish/guestfish-actions.pod:1529
9097 #, no-wrap
9098 msgid ""
9099 " get-memsize\n"
9100 "\n"
9101 msgstr ""
9102
9103 #. type: textblock
9104 #: ../fish/guestfish-actions.pod:1531 ../src/guestfs-actions.pod:2457
9105 msgid "This gets the memory size in megabytes allocated to the qemu subprocess."
9106 msgstr ""
9107
9108 #. type: textblock
9109 #: ../fish/guestfish-actions.pod:1534
9110 msgid ""
9111 "If L</set-memsize> was not called on this handle, and if "
9112 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
9113 "value for memsize."
9114 msgstr ""
9115
9116 #. type: textblock
9117 #: ../fish/guestfish-actions.pod:1538 ../fish/guestfish-actions.pod:1595 ../fish/guestfish-actions.pod:4360 ../fish/guestfish-actions.pod:4462 ../src/guestfs-actions.pod:2464 ../src/guestfs-actions.pod:2556 ../src/guestfs-actions.pod:6755 ../src/guestfs-actions.pod:6881
9118 msgid "For more information on the architecture of libguestfs, see L<guestfs(3)>."
9119 msgstr ""
9120
9121 #. type: =head2
9122 #: ../fish/guestfish-actions.pod:1541
9123 msgid "get-network"
9124 msgstr ""
9125
9126 #. type: verbatim
9127 #: ../fish/guestfish-actions.pod:1543
9128 #, no-wrap
9129 msgid ""
9130 " get-network\n"
9131 "\n"
9132 msgstr ""
9133
9134 #. type: textblock
9135 #: ../fish/guestfish-actions.pod:1545 ../src/guestfs-actions.pod:2476
9136 msgid "This returns the enable network flag."
9137 msgstr ""
9138
9139 #. type: =head2
9140 #: ../fish/guestfish-actions.pod:1547
9141 msgid "get-path"
9142 msgstr ""
9143
9144 #. type: verbatim
9145 #: ../fish/guestfish-actions.pod:1549
9146 #, no-wrap
9147 msgid ""
9148 " get-path\n"
9149 "\n"
9150 msgstr ""
9151
9152 #. type: textblock
9153 #: ../fish/guestfish-actions.pod:1551 ../src/guestfs-actions.pod:2487
9154 msgid "Return the current search path."
9155 msgstr ""
9156
9157 #. type: textblock
9158 #: ../fish/guestfish-actions.pod:1553 ../src/guestfs-actions.pod:2489
9159 msgid ""
9160 "This is always non-NULL.  If it wasn't set already, then this will return "
9161 "the default path."
9162 msgstr ""
9163
9164 #. type: =head2
9165 #: ../fish/guestfish-actions.pod:1556
9166 msgid "get-pgroup"
9167 msgstr ""
9168
9169 #. type: verbatim
9170 #: ../fish/guestfish-actions.pod:1558
9171 #, no-wrap
9172 msgid ""
9173 " get-pgroup\n"
9174 "\n"
9175 msgstr ""
9176
9177 #. type: textblock
9178 #: ../fish/guestfish-actions.pod:1560 ../src/guestfs-actions.pod:2502
9179 msgid "This returns the process group flag."
9180 msgstr ""
9181
9182 #. type: =head2
9183 #: ../fish/guestfish-actions.pod:1562
9184 msgid "get-pid"
9185 msgstr ""
9186
9187 #. type: =head2
9188 #: ../fish/guestfish-actions.pod:1564
9189 msgid "pid"
9190 msgstr ""
9191
9192 #. type: verbatim
9193 #: ../fish/guestfish-actions.pod:1566
9194 #, no-wrap
9195 msgid ""
9196 " get-pid\n"
9197 "\n"
9198 msgstr ""
9199
9200 #. type: textblock
9201 #: ../fish/guestfish-actions.pod:1568 ../src/guestfs-actions.pod:2513
9202 msgid ""
9203 "Return the process ID of the qemu subprocess.  If there is no qemu "
9204 "subprocess, then this will return an error."
9205 msgstr ""
9206
9207 #. type: textblock
9208 #: ../fish/guestfish-actions.pod:1571 ../src/guestfs-actions.pod:2516
9209 msgid "This is an internal call used for debugging and testing."
9210 msgstr ""
9211
9212 #. type: =head2
9213 #: ../fish/guestfish-actions.pod:1573
9214 msgid "get-qemu"
9215 msgstr ""
9216
9217 #. type: verbatim
9218 #: ../fish/guestfish-actions.pod:1575
9219 #, no-wrap
9220 msgid ""
9221 " get-qemu\n"
9222 "\n"
9223 msgstr ""
9224
9225 #. type: textblock
9226 #: ../fish/guestfish-actions.pod:1577 ../src/guestfs-actions.pod:2527
9227 msgid "Return the current qemu binary."
9228 msgstr ""
9229
9230 #. type: textblock
9231 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2529
9232 msgid ""
9233 "This is always non-NULL.  If it wasn't set already, then this will return "
9234 "the default qemu binary name."
9235 msgstr ""
9236
9237 #. type: =head2
9238 #: ../fish/guestfish-actions.pod:1582
9239 msgid "get-recovery-proc"
9240 msgstr ""
9241
9242 #. type: verbatim
9243 #: ../fish/guestfish-actions.pod:1584
9244 #, no-wrap
9245 msgid ""
9246 " get-recovery-proc\n"
9247 "\n"
9248 msgstr ""
9249
9250 #. type: textblock
9251 #: ../fish/guestfish-actions.pod:1586 ../src/guestfs-actions.pod:2542
9252 msgid "Return the recovery process enabled flag."
9253 msgstr ""
9254
9255 #. type: =head2
9256 #: ../fish/guestfish-actions.pod:1588
9257 msgid "get-selinux"
9258 msgstr ""
9259
9260 #. type: verbatim
9261 #: ../fish/guestfish-actions.pod:1590
9262 #, no-wrap
9263 msgid ""
9264 " get-selinux\n"
9265 "\n"
9266 msgstr ""
9267
9268 #. type: textblock
9269 #: ../fish/guestfish-actions.pod:1592
9270 msgid ""
9271 "This returns the current setting of the selinux flag which is passed to the "
9272 "appliance at boot time.  See L</set-selinux>."
9273 msgstr ""
9274
9275 #. type: =head2
9276 #: ../fish/guestfish-actions.pod:1598
9277 msgid "get-smp"
9278 msgstr ""
9279
9280 #. type: verbatim
9281 #: ../fish/guestfish-actions.pod:1600
9282 #, no-wrap
9283 msgid ""
9284 " get-smp\n"
9285 "\n"
9286 msgstr ""
9287
9288 #. type: textblock
9289 #: ../fish/guestfish-actions.pod:1602 ../src/guestfs-actions.pod:2568
9290 msgid "This returns the number of virtual CPUs assigned to the appliance."
9291 msgstr ""
9292
9293 #. type: =head2
9294 #: ../fish/guestfish-actions.pod:1604
9295 msgid "get-state"
9296 msgstr ""
9297
9298 #. type: verbatim
9299 #: ../fish/guestfish-actions.pod:1606
9300 #, no-wrap
9301 msgid ""
9302 " get-state\n"
9303 "\n"
9304 msgstr ""
9305
9306 #. type: textblock
9307 #: ../fish/guestfish-actions.pod:1608 ../src/guestfs-actions.pod:2579
9308 msgid ""
9309 "This returns the current state as an opaque integer.  This is only useful "
9310 "for printing debug and internal error messages."
9311 msgstr ""
9312
9313 #. type: textblock
9314 #: ../fish/guestfish-actions.pod:1611 ../fish/guestfish-actions.pod:2570 ../fish/guestfish-actions.pod:2588 ../fish/guestfish-actions.pod:2626 ../fish/guestfish-actions.pod:2642 ../src/guestfs-actions.pod:2582 ../src/guestfs-actions.pod:3901 ../src/guestfs-actions.pod:3930 ../src/guestfs-actions.pod:3991 ../src/guestfs-actions.pod:4018
9315 msgid "For more information on states, see L<guestfs(3)>."
9316 msgstr ""
9317
9318 #. type: =head2
9319 #: ../fish/guestfish-actions.pod:1613
9320 msgid "get-trace"
9321 msgstr ""
9322
9323 #. type: verbatim
9324 #: ../fish/guestfish-actions.pod:1615
9325 #, no-wrap
9326 msgid ""
9327 " get-trace\n"
9328 "\n"
9329 msgstr ""
9330
9331 #. type: textblock
9332 #: ../fish/guestfish-actions.pod:1617 ../src/guestfs-actions.pod:2593
9333 msgid "Return the command trace flag."
9334 msgstr ""
9335
9336 #. type: =head2
9337 #: ../fish/guestfish-actions.pod:1619
9338 msgid "get-umask"
9339 msgstr ""
9340
9341 #. type: verbatim
9342 #: ../fish/guestfish-actions.pod:1621
9343 #, no-wrap
9344 msgid ""
9345 " get-umask\n"
9346 "\n"
9347 msgstr ""
9348
9349 #. type: textblock
9350 #: ../fish/guestfish-actions.pod:1623
9351 msgid ""
9352 "Return the current umask.  By default the umask is C<022> unless it has been "
9353 "set by calling L</umask>."
9354 msgstr ""
9355
9356 #. type: =head2
9357 #: ../fish/guestfish-actions.pod:1626
9358 msgid "get-verbose"
9359 msgstr ""
9360
9361 #. type: verbatim
9362 #: ../fish/guestfish-actions.pod:1628
9363 #, no-wrap
9364 msgid ""
9365 " get-verbose\n"
9366 "\n"
9367 msgstr ""
9368
9369 #. type: textblock
9370 #: ../fish/guestfish-actions.pod:1630 ../src/guestfs-actions.pod:2616
9371 msgid "This returns the verbose messages flag."
9372 msgstr ""
9373
9374 #. type: =head2
9375 #: ../fish/guestfish-actions.pod:1632
9376 msgid "getcon"
9377 msgstr ""
9378
9379 #. type: verbatim
9380 #: ../fish/guestfish-actions.pod:1634
9381 #, no-wrap
9382 msgid ""
9383 " getcon\n"
9384 "\n"
9385 msgstr ""
9386
9387 #. type: textblock
9388 #: ../fish/guestfish-actions.pod:1636 ../src/guestfs-actions.pod:2627
9389 msgid "This gets the SELinux security context of the daemon."
9390 msgstr ""
9391
9392 #. type: textblock
9393 #: ../fish/guestfish-actions.pod:1638
9394 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
9395 msgstr ""
9396
9397 #. type: =head2
9398 #: ../fish/guestfish-actions.pod:1641
9399 msgid "getxattr"
9400 msgstr ""
9401
9402 #. type: verbatim
9403 #: ../fish/guestfish-actions.pod:1643
9404 #, no-wrap
9405 msgid ""
9406 " getxattr path name\n"
9407 "\n"
9408 msgstr ""
9409
9410 #. type: textblock
9411 #: ../fish/guestfish-actions.pod:1645
9412 msgid ""
9413 "Get a single extended attribute from file C<path> named C<name>.  This call "
9414 "follows symlinks.  If you want to lookup an extended attribute for the "
9415 "symlink itself, use L</lgetxattr>."
9416 msgstr ""
9417
9418 #. type: textblock
9419 #: ../fish/guestfish-actions.pod:1649 ../fish/guestfish-actions.pod:2715
9420 msgid ""
9421 "Normally it is better to get all extended attributes from a file in one go "
9422 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
9423 "buggy and do not provide a way to list out attributes.  For these "
9424 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
9425 "attributes you want in advance and call this function."
9426 msgstr ""
9427
9428 #. type: textblock
9429 #: ../fish/guestfish-actions.pod:1656 ../fish/guestfish-actions.pod:2722 ../src/guestfs-actions.pod:2656 ../src/guestfs-actions.pod:4151
9430 msgid ""
9431 "Extended attribute values are blobs of binary data.  If there is no extended "
9432 "attribute named C<name>, this returns an error."
9433 msgstr ""
9434
9435 #. type: textblock
9436 #: ../fish/guestfish-actions.pod:1659
9437 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9438 msgstr ""
9439
9440 #. type: =head2
9441 #: ../fish/guestfish-actions.pod:1661
9442 msgid "getxattrs"
9443 msgstr ""
9444
9445 #. type: verbatim
9446 #: ../fish/guestfish-actions.pod:1663
9447 #, no-wrap
9448 msgid ""
9449 " getxattrs path\n"
9450 "\n"
9451 msgstr ""
9452
9453 #. type: textblock
9454 #: ../fish/guestfish-actions.pod:1665 ../src/guestfs-actions.pod:2673
9455 msgid "This call lists the extended attributes of the file or directory C<path>."
9456 msgstr ""
9457
9458 #. type: textblock
9459 #: ../fish/guestfish-actions.pod:1668 ../src/guestfs-actions.pod:2676
9460 msgid ""
9461 "At the system call level, this is a combination of the L<listxattr(2)> and "
9462 "L<getxattr(2)> calls."
9463 msgstr ""
9464
9465 #. type: textblock
9466 #: ../fish/guestfish-actions.pod:1671
9467 msgid "See also: L</lgetxattrs>, L<attr(5)>."
9468 msgstr ""
9469
9470 #. type: =head2
9471 #: ../fish/guestfish-actions.pod:1673
9472 msgid "glob-expand"
9473 msgstr ""
9474
9475 #. type: verbatim
9476 #: ../fish/guestfish-actions.pod:1675
9477 #, no-wrap
9478 msgid ""
9479 " glob-expand pattern\n"
9480 "\n"
9481 msgstr ""
9482
9483 #. type: textblock
9484 #: ../fish/guestfish-actions.pod:1677 ../src/guestfs-actions.pod:2693
9485 msgid ""
9486 "This command searches for all the pathnames matching C<pattern> according to "
9487 "the wildcard expansion rules used by the shell."
9488 msgstr ""
9489
9490 #. type: textblock
9491 #: ../fish/guestfish-actions.pod:1681 ../src/guestfs-actions.pod:2697
9492 msgid "If no paths match, then this returns an empty list (note: not an error)."
9493 msgstr ""
9494
9495 #. type: textblock
9496 #: ../fish/guestfish-actions.pod:1684 ../src/guestfs-actions.pod:2700
9497 msgid ""
9498 "It is just a wrapper around the C L<glob(3)> function with flags "
9499 "C<GLOB_MARK|GLOB_BRACE>.  See that manual page for more details."
9500 msgstr ""
9501
9502 #. type: =head2
9503 #: ../fish/guestfish-actions.pod:1688
9504 msgid "grep"
9505 msgstr ""
9506
9507 #. type: verbatim
9508 #: ../fish/guestfish-actions.pod:1690
9509 #, no-wrap
9510 msgid ""
9511 " grep regex path\n"
9512 "\n"
9513 msgstr ""
9514
9515 #. type: textblock
9516 #: ../fish/guestfish-actions.pod:1692 ../src/guestfs-actions.pod:2717
9517 msgid "This calls the external C<grep> program and returns the matching lines."
9518 msgstr ""
9519
9520 #. type: =head2
9521 #: ../fish/guestfish-actions.pod:1698
9522 msgid "grepi"
9523 msgstr ""
9524
9525 #. type: verbatim
9526 #: ../fish/guestfish-actions.pod:1700
9527 #, no-wrap
9528 msgid ""
9529 " grepi regex path\n"
9530 "\n"
9531 msgstr ""
9532
9533 #. type: textblock
9534 #: ../fish/guestfish-actions.pod:1702 ../src/guestfs-actions.pod:2736
9535 msgid "This calls the external C<grep -i> program and returns the matching lines."
9536 msgstr ""
9537
9538 #. type: =head2
9539 #: ../fish/guestfish-actions.pod:1708
9540 msgid "grub-install"
9541 msgstr ""
9542
9543 #. type: verbatim
9544 #: ../fish/guestfish-actions.pod:1710
9545 #, no-wrap
9546 msgid ""
9547 " grub-install root device\n"
9548 "\n"
9549 msgstr ""
9550
9551 #. type: textblock
9552 #: ../fish/guestfish-actions.pod:1712 ../src/guestfs-actions.pod:2755
9553 msgid ""
9554 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
9555 "with the root directory being C<root>."
9556 msgstr ""
9557
9558 #. type: textblock
9559 #: ../fish/guestfish-actions.pod:1721 ../src/guestfs-actions.pod:2764
9560 msgid ""
9561 "There is currently no way in the API to install grub2, which is used by most "
9562 "modern Linux guests.  It is possible to run the grub2 command from the "
9563 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
9564 msgstr ""
9565
9566 #. type: textblock
9567 #: ../fish/guestfish-actions.pod:1728 ../src/guestfs-actions.pod:2771
9568 msgid ""
9569 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
9570 "compatible with itself, so this only works in rather narrow circumstances.  "
9571 "Careful testing with each guest version is advisable."
9572 msgstr ""
9573
9574 #. type: textblock
9575 #: ../fish/guestfish-actions.pod:1735 ../src/guestfs-actions.pod:2778
9576 msgid ""
9577 "If grub-install reports the error \"No suitable drive was found in the "
9578 "generated device map.\" it may be that you need to create a "
9579 "C</boot/grub/device.map> file first that contains the mapping between grub "
9580 "device names and Linux device names.  It is usually sufficient to create a "
9581 "file containing:"
9582 msgstr ""
9583
9584 #. type: verbatim
9585 #: ../fish/guestfish-actions.pod:1742 ../src/guestfs-actions.pod:2785
9586 #, no-wrap
9587 msgid ""
9588 " (hd0) /dev/vda\n"
9589 "\n"
9590 msgstr ""
9591
9592 #. type: textblock
9593 #: ../fish/guestfish-actions.pod:1744 ../src/guestfs-actions.pod:2787
9594 msgid "replacing C</dev/vda> with the name of the installation device."
9595 msgstr ""
9596
9597 #. type: =head2
9598 #: ../fish/guestfish-actions.pod:1748
9599 msgid "head"
9600 msgstr ""
9601
9602 #. type: verbatim
9603 #: ../fish/guestfish-actions.pod:1750
9604 #, no-wrap
9605 msgid ""
9606 " head path\n"
9607 "\n"
9608 msgstr ""
9609
9610 #. type: textblock
9611 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2801
9612 msgid ""
9613 "This command returns up to the first 10 lines of a file as a list of "
9614 "strings."
9615 msgstr ""
9616
9617 #. type: =head2
9618 #: ../fish/guestfish-actions.pod:1758
9619 msgid "head-n"
9620 msgstr ""
9621
9622 #. type: verbatim
9623 #: ../fish/guestfish-actions.pod:1760
9624 #, no-wrap
9625 msgid ""
9626 " head-n nrlines path\n"
9627 "\n"
9628 msgstr ""
9629
9630 #. type: textblock
9631 #: ../fish/guestfish-actions.pod:1762 ../src/guestfs-actions.pod:2820
9632 msgid ""
9633 "If the parameter C<nrlines> is a positive number, this returns the first "
9634 "C<nrlines> lines of the file C<path>."
9635 msgstr ""
9636
9637 #. type: textblock
9638 #: ../fish/guestfish-actions.pod:1765 ../src/guestfs-actions.pod:2823
9639 msgid ""
9640 "If the parameter C<nrlines> is a negative number, this returns lines from "
9641 "the file C<path>, excluding the last C<nrlines> lines."
9642 msgstr ""
9643
9644 #. type: textblock
9645 #: ../fish/guestfish-actions.pod:1768 ../fish/guestfish-actions.pod:4843 ../src/guestfs-actions.pod:2826 ../src/guestfs-actions.pod:7460
9646 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
9647 msgstr ""
9648
9649 #. type: =head2
9650 #: ../fish/guestfish-actions.pod:1773
9651 msgid "hexdump"
9652 msgstr ""
9653
9654 #. type: verbatim
9655 #: ../fish/guestfish-actions.pod:1775
9656 #, no-wrap
9657 msgid ""
9658 " hexdump path\n"
9659 "\n"
9660 msgstr ""
9661
9662 #. type: textblock
9663 #: ../fish/guestfish-actions.pod:1777 ../src/guestfs-actions.pod:2843
9664 msgid ""
9665 "This runs C<hexdump -C> on the given C<path>.  The result is the "
9666 "human-readable, canonical hex dump of the file."
9667 msgstr ""
9668
9669 #. type: =head2
9670 #: ../fish/guestfish-actions.pod:1783
9671 msgid "initrd-cat"
9672 msgstr ""
9673
9674 #. type: verbatim
9675 #: ../fish/guestfish-actions.pod:1785
9676 #, no-wrap
9677 msgid ""
9678 " initrd-cat initrdpath filename\n"
9679 "\n"
9680 msgstr ""
9681
9682 #. type: textblock
9683 #: ../fish/guestfish-actions.pod:1787 ../src/guestfs-actions.pod:2862
9684 msgid ""
9685 "This command unpacks the file C<filename> from the initrd file called "
9686 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
9687 "character."
9688 msgstr ""
9689
9690 #. type: textblock
9691 #: ../fish/guestfish-actions.pod:1791 ../src/guestfs-actions.pod:2866
9692 msgid ""
9693 "For example, in guestfish you could use the following command to examine the "
9694 "boot script (usually called C</init>)  contained in a Linux initrd or "
9695 "initramfs image:"
9696 msgstr ""
9697
9698 #. type: verbatim
9699 #: ../fish/guestfish-actions.pod:1795 ../src/guestfs-actions.pod:2870
9700 #, no-wrap
9701 msgid ""
9702 " initrd-cat /boot/initrd-<version>.img init\n"
9703 "\n"
9704 msgstr ""
9705
9706 #. type: textblock
9707 #: ../fish/guestfish-actions.pod:1797
9708 msgid "See also L</initrd-list>."
9709 msgstr ""
9710
9711 #. type: =head2
9712 #: ../fish/guestfish-actions.pod:1802
9713 msgid "initrd-list"
9714 msgstr ""
9715
9716 #. type: verbatim
9717 #: ../fish/guestfish-actions.pod:1804
9718 #, no-wrap
9719 msgid ""
9720 " initrd-list path\n"
9721 "\n"
9722 msgstr ""
9723
9724 #. type: textblock
9725 #: ../fish/guestfish-actions.pod:1806 ../src/guestfs-actions.pod:2889
9726 msgid "This command lists out files contained in an initrd."
9727 msgstr ""
9728
9729 #. type: textblock
9730 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2891
9731 msgid ""
9732 "The files are listed without any initial C</> character.  The files are "
9733 "listed in the order they appear (not necessarily alphabetical).  Directory "
9734 "names are listed as separate items."
9735 msgstr ""
9736
9737 #. type: textblock
9738 #: ../fish/guestfish-actions.pod:1812 ../src/guestfs-actions.pod:2895
9739 msgid ""
9740 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
9741 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
9742 "files)."
9743 msgstr ""
9744
9745 #. type: =head2
9746 #: ../fish/guestfish-actions.pod:1816
9747 msgid "inotify-add-watch"
9748 msgstr ""
9749
9750 #. type: verbatim
9751 #: ../fish/guestfish-actions.pod:1818
9752 #, no-wrap
9753 msgid ""
9754 " inotify-add-watch path mask\n"
9755 "\n"
9756 msgstr ""
9757
9758 #. type: textblock
9759 #: ../fish/guestfish-actions.pod:1820 ../src/guestfs-actions.pod:2912
9760 msgid "Watch C<path> for the events listed in C<mask>."
9761 msgstr ""
9762
9763 #. type: textblock
9764 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2914
9765 msgid ""
9766 "Note that if C<path> is a directory then events within that directory are "
9767 "watched, but this does I<not> happen recursively (in subdirectories)."
9768 msgstr ""
9769
9770 #. type: textblock
9771 #: ../fish/guestfish-actions.pod:1826 ../src/guestfs-actions.pod:2918
9772 msgid ""
9773 "Note for non-C or non-Linux callers: the inotify events are defined by the "
9774 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
9775 msgstr ""
9776
9777 #. type: =head2
9778 #: ../fish/guestfish-actions.pod:1830
9779 msgid "inotify-close"
9780 msgstr ""
9781
9782 #. type: verbatim
9783 #: ../fish/guestfish-actions.pod:1832
9784 #, no-wrap
9785 msgid ""
9786 " inotify-close\n"
9787 "\n"
9788 msgstr ""
9789
9790 #. type: textblock
9791 #: ../fish/guestfish-actions.pod:1834 ../src/guestfs-actions.pod:2931
9792 msgid ""
9793 "This closes the inotify handle which was previously opened by inotify_init.  "
9794 "It removes all watches, throws away any pending events, and deallocates all "
9795 "resources."
9796 msgstr ""
9797
9798 #. type: =head2
9799 #: ../fish/guestfish-actions.pod:1838
9800 msgid "inotify-files"
9801 msgstr ""
9802
9803 #. type: verbatim
9804 #: ../fish/guestfish-actions.pod:1840
9805 #, no-wrap
9806 msgid ""
9807 " inotify-files\n"
9808 "\n"
9809 msgstr ""
9810
9811 #. type: textblock
9812 #: ../fish/guestfish-actions.pod:1842
9813 msgid ""
9814 "This function is a helpful wrapper around L</inotify-read> which just "
9815 "returns a list of pathnames of objects that were touched.  The returned "
9816 "pathnames are sorted and deduplicated."
9817 msgstr ""
9818
9819 #. type: =head2
9820 #: ../fish/guestfish-actions.pod:1846
9821 msgid "inotify-init"
9822 msgstr ""
9823
9824 #. type: verbatim
9825 #: ../fish/guestfish-actions.pod:1848
9826 #, no-wrap
9827 msgid ""
9828 " inotify-init maxevents\n"
9829 "\n"
9830 msgstr ""
9831
9832 #. type: textblock
9833 #: ../fish/guestfish-actions.pod:1850 ../src/guestfs-actions.pod:2960
9834 msgid ""
9835 "This command creates a new inotify handle.  The inotify subsystem can be "
9836 "used to notify events which happen to objects in the guest filesystem."
9837 msgstr ""
9838
9839 #. type: textblock
9840 #: ../fish/guestfish-actions.pod:1854
9841 msgid ""
9842 "C<maxevents> is the maximum number of events which will be queued up between "
9843 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
9844 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
9845 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
9846 "but records the fact that it threw them away by setting a flag "
9847 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
9848 msgstr ""
9849
9850 #. type: textblock
9851 #: ../fish/guestfish-actions.pod:1864
9852 msgid ""
9853 "Before any events are generated, you have to add some watches to the "
9854 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
9855 "L</inotify-watch-all>."
9856 msgstr ""
9857
9858 #. type: textblock
9859 #: ../fish/guestfish-actions.pod:1870
9860 msgid ""
9861 "Queued up events should be read periodically by calling L</inotify-read> (or "
9862 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
9863 "If you don't read the events out often enough then you risk the internal "
9864 "queue overflowing."
9865 msgstr ""
9866
9867 #. type: textblock
9868 #: ../fish/guestfish-actions.pod:1877
9869 msgid ""
9870 "The handle should be closed after use by calling L</inotify-close>.  This "
9871 "also removes any watches automatically."
9872 msgstr ""
9873
9874 #. type: textblock
9875 #: ../fish/guestfish-actions.pod:1881 ../src/guestfs-actions.pod:2991
9876 msgid ""
9877 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
9878 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
9879 "that there is one global inotify handle per libguestfs instance."
9880 msgstr ""
9881
9882 #. type: =head2
9883 #: ../fish/guestfish-actions.pod:1886
9884 msgid "inotify-read"
9885 msgstr ""
9886
9887 #. type: verbatim
9888 #: ../fish/guestfish-actions.pod:1888
9889 #, no-wrap
9890 msgid ""
9891 " inotify-read\n"
9892 "\n"
9893 msgstr ""
9894
9895 #. type: textblock
9896 #: ../fish/guestfish-actions.pod:1890 ../src/guestfs-actions.pod:3005
9897 msgid ""
9898 "Return the complete queue of events that have happened since the previous "
9899 "read call."
9900 msgstr ""
9901
9902 #. type: textblock
9903 #: ../fish/guestfish-actions.pod:1893 ../src/guestfs-actions.pod:3008
9904 msgid "If no events have happened, this returns an empty list."
9905 msgstr ""
9906
9907 #. type: textblock
9908 #: ../fish/guestfish-actions.pod:1895 ../src/guestfs-actions.pod:3010
9909 msgid ""
9910 "I<Note>: In order to make sure that all events have been read, you must call "
9911 "this function repeatedly until it returns an empty list.  The reason is that "
9912 "the call will read events up to the maximum appliance-to-host message size "
9913 "and leave remaining events in the queue."
9914 msgstr ""
9915
9916 #. type: =head2
9917 #: ../fish/guestfish-actions.pod:1901
9918 msgid "inotify-rm-watch"
9919 msgstr ""
9920
9921 #. type: verbatim
9922 #: ../fish/guestfish-actions.pod:1903
9923 #, no-wrap
9924 msgid ""
9925 " inotify-rm-watch wd\n"
9926 "\n"
9927 msgstr ""
9928
9929 #. type: textblock
9930 #: ../fish/guestfish-actions.pod:1905
9931 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
9932 msgstr ""
9933
9934 #. type: =head2
9935 #: ../fish/guestfish-actions.pod:1908
9936 msgid "inspect-get-arch"
9937 msgstr ""
9938
9939 #. type: verbatim
9940 #: ../fish/guestfish-actions.pod:1910
9941 #, no-wrap
9942 msgid ""
9943 " inspect-get-arch root\n"
9944 "\n"
9945 msgstr ""
9946
9947 #. type: textblock
9948 #: ../fish/guestfish-actions.pod:1912
9949 msgid ""
9950 "This returns the architecture of the inspected operating system.  The "
9951 "possible return values are listed under L</file-architecture>."
9952 msgstr ""
9953
9954 #. type: textblock
9955 #: ../fish/guestfish-actions.pod:1916 ../src/guestfs-actions.pod:3045
9956 msgid ""
9957 "If the architecture could not be determined, then the string C<unknown> is "
9958 "returned."
9959 msgstr ""
9960
9961 #. type: textblock
9962 #: ../fish/guestfish-actions.pod:1919 ../fish/guestfish-actions.pod:2014 ../fish/guestfish-actions.pod:2093 ../fish/guestfish-actions.pod:2105 ../fish/guestfish-actions.pod:2189 ../fish/guestfish-actions.pod:2251 ../fish/guestfish-actions.pod:2272 ../fish/guestfish-actions.pod:2286 ../fish/guestfish-actions.pod:2326 ../fish/guestfish-actions.pod:2362 ../fish/guestfish-actions.pod:2375 ../fish/guestfish-actions.pod:2388 ../fish/guestfish-actions.pod:2398 ../fish/guestfish-actions.pod:2408 ../fish/guestfish-actions.pod:2420 ../fish/guestfish-actions.pod:2516 ../fish/guestfish-actions.pod:2550 ../src/guestfs-actions.pod:3048 ../src/guestfs-actions.pod:3150 ../src/guestfs-actions.pod:3254 ../src/guestfs-actions.pod:3273 ../src/guestfs-actions.pod:3404 ../src/guestfs-actions.pod:3488 ../src/guestfs-actions.pod:3516 ../src/guestfs-actions.pod:3537 ../src/guestfs-actions.pod:3590 ../src/guestfs-actions.pod:3634 ../src/guestfs-actions.pod:3654 ../src/guestfs-actions.pod:3674 ../src/guestfs-actions.pod:3691 ../src/guestfs-actions.pod:3707 ../src/guestfs-actions.pod:3725 ../src/guestfs-actions.pod:3827 ../src/guestfs-actions.pod:3868
9963 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
9964 msgstr ""
9965
9966 #. type: =head2
9967 #: ../fish/guestfish-actions.pod:1921
9968 msgid "inspect-get-distro"
9969 msgstr ""
9970
9971 #. type: verbatim
9972 #: ../fish/guestfish-actions.pod:1923
9973 #, no-wrap
9974 msgid ""
9975 " inspect-get-distro root\n"
9976 "\n"
9977 msgstr ""
9978
9979 #. type: textblock
9980 #: ../fish/guestfish-actions.pod:1925 ../src/guestfs-actions.pod:3061
9981 msgid "This returns the distro (distribution) of the inspected operating system."
9982 msgstr ""
9983
9984 #. type: textblock
9985 #: ../fish/guestfish-actions.pod:1928 ../src/guestfs-actions.pod:3064
9986 msgid "Currently defined distros are:"
9987 msgstr ""
9988
9989 #. type: =item
9990 #: ../fish/guestfish-actions.pod:1932 ../src/guestfs-actions.pod:3068
9991 msgid "\"archlinux\""
9992 msgstr ""
9993
9994 #. type: textblock
9995 #: ../fish/guestfish-actions.pod:1934 ../src/guestfs-actions.pod:3070
9996 msgid "Arch Linux."
9997 msgstr ""
9998
9999 #. type: =item
10000 #: ../fish/guestfish-actions.pod:1936 ../src/guestfs-actions.pod:3072
10001 msgid "\"centos\""
10002 msgstr ""
10003
10004 #. type: textblock
10005 #: ../fish/guestfish-actions.pod:1938 ../src/guestfs-actions.pod:3074
10006 msgid "CentOS."
10007 msgstr ""
10008
10009 #. type: =item
10010 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:3076
10011 msgid "\"debian\""
10012 msgstr ""
10013
10014 #. type: textblock
10015 #: ../fish/guestfish-actions.pod:1942 ../src/guestfs-actions.pod:3078
10016 msgid "Debian."
10017 msgstr ""
10018
10019 #. type: =item
10020 #: ../fish/guestfish-actions.pod:1944 ../src/guestfs-actions.pod:3080
10021 msgid "\"fedora\""
10022 msgstr ""
10023
10024 #. type: textblock
10025 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:3082
10026 msgid "Fedora."
10027 msgstr ""
10028
10029 #. type: =item
10030 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:3084
10031 msgid "\"gentoo\""
10032 msgstr ""
10033
10034 #. type: textblock
10035 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:3086
10036 msgid "Gentoo."
10037 msgstr ""
10038
10039 #. type: =item
10040 #: ../fish/guestfish-actions.pod:1952 ../src/guestfs-actions.pod:3088
10041 msgid "\"linuxmint\""
10042 msgstr ""
10043
10044 #. type: textblock
10045 #: ../fish/guestfish-actions.pod:1954 ../src/guestfs-actions.pod:3090
10046 msgid "Linux Mint."
10047 msgstr ""
10048
10049 #. type: =item
10050 #: ../fish/guestfish-actions.pod:1956 ../src/guestfs-actions.pod:3092
10051 msgid "\"mageia\""
10052 msgstr ""
10053
10054 #. type: textblock
10055 #: ../fish/guestfish-actions.pod:1958 ../src/guestfs-actions.pod:3094
10056 msgid "Mageia."
10057 msgstr ""
10058
10059 #. type: =item
10060 #: ../fish/guestfish-actions.pod:1960 ../src/guestfs-actions.pod:3096
10061 msgid "\"mandriva\""
10062 msgstr ""
10063
10064 #. type: textblock
10065 #: ../fish/guestfish-actions.pod:1962 ../src/guestfs-actions.pod:3098
10066 msgid "Mandriva."
10067 msgstr ""
10068
10069 #. type: =item
10070 #: ../fish/guestfish-actions.pod:1964 ../src/guestfs-actions.pod:3100
10071 msgid "\"meego\""
10072 msgstr ""
10073
10074 #. type: textblock
10075 #: ../fish/guestfish-actions.pod:1966 ../src/guestfs-actions.pod:3102
10076 msgid "MeeGo."
10077 msgstr ""
10078
10079 #. type: =item
10080 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:3104
10081 msgid "\"opensuse\""
10082 msgstr ""
10083
10084 #. type: textblock
10085 #: ../fish/guestfish-actions.pod:1970 ../src/guestfs-actions.pod:3106
10086 msgid "OpenSUSE."
10087 msgstr ""
10088
10089 #. type: =item
10090 #: ../fish/guestfish-actions.pod:1972 ../src/guestfs-actions.pod:3108
10091 msgid "\"pardus\""
10092 msgstr ""
10093
10094 #. type: textblock
10095 #: ../fish/guestfish-actions.pod:1974 ../src/guestfs-actions.pod:3110
10096 msgid "Pardus."
10097 msgstr ""
10098
10099 #. type: =item
10100 #: ../fish/guestfish-actions.pod:1976 ../src/guestfs-actions.pod:3112
10101 msgid "\"redhat-based\""
10102 msgstr ""
10103
10104 #. type: textblock
10105 #: ../fish/guestfish-actions.pod:1978 ../src/guestfs-actions.pod:3114
10106 msgid "Some Red Hat-derived distro."
10107 msgstr ""
10108
10109 #. type: =item
10110 #: ../fish/guestfish-actions.pod:1980 ../src/guestfs-actions.pod:3116
10111 msgid "\"rhel\""
10112 msgstr ""
10113
10114 #. type: textblock
10115 #: ../fish/guestfish-actions.pod:1982 ../src/guestfs-actions.pod:3118
10116 msgid "Red Hat Enterprise Linux."
10117 msgstr ""
10118
10119 #. type: =item
10120 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:3120
10121 msgid "\"scientificlinux\""
10122 msgstr ""
10123
10124 #. type: textblock
10125 #: ../fish/guestfish-actions.pod:1986 ../src/guestfs-actions.pod:3122
10126 msgid "Scientific Linux."
10127 msgstr ""
10128
10129 #. type: =item
10130 #: ../fish/guestfish-actions.pod:1988 ../src/guestfs-actions.pod:3124
10131 msgid "\"slackware\""
10132 msgstr ""
10133
10134 #. type: textblock
10135 #: ../fish/guestfish-actions.pod:1990 ../src/guestfs-actions.pod:3126
10136 msgid "Slackware."
10137 msgstr ""
10138
10139 #. type: =item
10140 #: ../fish/guestfish-actions.pod:1992 ../src/guestfs-actions.pod:3128
10141 msgid "\"ttylinux\""
10142 msgstr ""
10143
10144 #. type: textblock
10145 #: ../fish/guestfish-actions.pod:1994 ../src/guestfs-actions.pod:3130
10146 msgid "ttylinux."
10147 msgstr ""
10148
10149 #. type: =item
10150 #: ../fish/guestfish-actions.pod:1996 ../src/guestfs-actions.pod:3132
10151 msgid "\"ubuntu\""
10152 msgstr ""
10153
10154 #. type: textblock
10155 #: ../fish/guestfish-actions.pod:1998 ../src/guestfs-actions.pod:3134
10156 msgid "Ubuntu."
10157 msgstr ""
10158
10159 #. type: =item
10160 #: ../fish/guestfish-actions.pod:2000 ../fish/guestfish-actions.pod:2084 ../fish/guestfish-actions.pod:2353 ../src/guestfs-actions.pod:3136 ../src/guestfs-actions.pod:3245 ../src/guestfs-actions.pod:3625
10161 msgid "\"unknown\""
10162 msgstr ""
10163
10164 #. type: textblock
10165 #: ../fish/guestfish-actions.pod:2002 ../src/guestfs-actions.pod:3138
10166 msgid "The distro could not be determined."
10167 msgstr ""
10168
10169 #. type: =item
10170 #: ../fish/guestfish-actions.pod:2004 ../fish/guestfish-actions.pod:2341 ../src/guestfs-actions.pod:3140 ../src/guestfs-actions.pod:3613
10171 msgid "\"windows\""
10172 msgstr ""
10173
10174 #. type: textblock
10175 #: ../fish/guestfish-actions.pod:2006 ../src/guestfs-actions.pod:3142
10176 msgid ""
10177 "Windows does not have distributions.  This string is returned if the OS type "
10178 "is Windows."
10179 msgstr ""
10180
10181 #. type: textblock
10182 #: ../fish/guestfish-actions.pod:2011 ../fish/guestfish-actions.pod:2090 ../fish/guestfish-actions.pod:2359 ../src/guestfs-actions.pod:3147 ../src/guestfs-actions.pod:3251 ../src/guestfs-actions.pod:3631
10183 msgid ""
10184 "Future versions of libguestfs may return other strings here.  The caller "
10185 "should be prepared to handle any string."
10186 msgstr ""
10187
10188 #. type: =head2
10189 #: ../fish/guestfish-actions.pod:2016
10190 msgid "inspect-get-drive-mappings"
10191 msgstr ""
10192
10193 #. type: verbatim
10194 #: ../fish/guestfish-actions.pod:2018
10195 #, no-wrap
10196 msgid ""
10197 " inspect-get-drive-mappings root\n"
10198 "\n"
10199 msgstr ""
10200
10201 #. type: textblock
10202 #: ../fish/guestfish-actions.pod:2020 ../src/guestfs-actions.pod:3163
10203 msgid ""
10204 "This call is useful for Windows which uses a primitive system of assigning "
10205 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
10206 "Windows Registry to find out how disks/partitions are mapped to drive "
10207 "letters, and returns a hash table as in the example below:"
10208 msgstr ""
10209
10210 #. type: verbatim
10211 #: ../fish/guestfish-actions.pod:2026 ../src/guestfs-actions.pod:3169
10212 #, no-wrap
10213 msgid ""
10214 " C      =>     /dev/vda2\n"
10215 " E      =>     /dev/vdb1\n"
10216 " F      =>     /dev/vdc1\n"
10217 "\n"
10218 msgstr ""
10219
10220 #. type: textblock
10221 #: ../fish/guestfish-actions.pod:2030 ../src/guestfs-actions.pod:3173
10222 msgid ""
10223 "Note that keys are drive letters.  For Windows, the key is case insensitive "
10224 "and just contains the drive letter, without the customary colon separator "
10225 "character."
10226 msgstr ""
10227
10228 #. type: textblock
10229 #: ../fish/guestfish-actions.pod:2034 ../src/guestfs-actions.pod:3177
10230 msgid ""
10231 "In future we may support other operating systems that also used drive "
10232 "letters, but the keys for those might not be case insensitive and might be "
10233 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
10234 "C<h1> etc."
10235 msgstr ""
10236
10237 #. type: textblock
10238 #: ../fish/guestfish-actions.pod:2039 ../src/guestfs-actions.pod:3182
10239 msgid ""
10240 "For Windows guests, currently only hard drive mappings are returned.  "
10241 "Removable disks (eg. DVD-ROMs) are ignored."
10242 msgstr ""
10243
10244 #. type: textblock
10245 #: ../fish/guestfish-actions.pod:2042 ../src/guestfs-actions.pod:3185
10246 msgid ""
10247 "For guests that do not use drive mappings, or if the drive mappings could "
10248 "not be determined, this returns an empty hash table."
10249 msgstr ""
10250
10251 #. type: textblock
10252 #: ../fish/guestfish-actions.pod:2045
10253 msgid ""
10254 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10255 "L</inspect-get-mountpoints>, L</inspect-get-filesystems>."
10256 msgstr ""
10257
10258 #. type: =head2
10259 #: ../fish/guestfish-actions.pod:2049
10260 msgid "inspect-get-filesystems"
10261 msgstr ""
10262
10263 #. type: verbatim
10264 #: ../fish/guestfish-actions.pod:2051
10265 #, no-wrap
10266 msgid ""
10267 " inspect-get-filesystems root\n"
10268 "\n"
10269 msgstr ""
10270
10271 #. type: textblock
10272 #: ../fish/guestfish-actions.pod:2053 ../src/guestfs-actions.pod:3206
10273 msgid ""
10274 "This returns a list of all the filesystems that we think are associated with "
10275 "this operating system.  This includes the root filesystem, other ordinary "
10276 "filesystems, and non-mounted devices like swap partitions."
10277 msgstr ""
10278
10279 #. type: textblock
10280 #: ../fish/guestfish-actions.pod:2058 ../src/guestfs-actions.pod:3211
10281 msgid ""
10282 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
10283 "to be shared between operating systems."
10284 msgstr ""
10285
10286 #. type: textblock
10287 #: ../fish/guestfish-actions.pod:2061
10288 msgid ""
10289 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10290 "L</inspect-get-mountpoints>."
10291 msgstr ""
10292
10293 #. type: =head2
10294 #: ../fish/guestfish-actions.pod:2064
10295 msgid "inspect-get-format"
10296 msgstr ""
10297
10298 #. type: verbatim
10299 #: ../fish/guestfish-actions.pod:2066
10300 #, no-wrap
10301 msgid ""
10302 " inspect-get-format root\n"
10303 "\n"
10304 msgstr ""
10305
10306 #. type: textblock
10307 #: ../fish/guestfish-actions.pod:2068 ../src/guestfs-actions.pod:3229
10308 msgid ""
10309 "This returns the format of the inspected operating system.  You can use it "
10310 "to detect install images, live CDs and similar."
10311 msgstr ""
10312
10313 #. type: textblock
10314 #: ../fish/guestfish-actions.pod:2071 ../src/guestfs-actions.pod:3232
10315 msgid "Currently defined formats are:"
10316 msgstr ""
10317
10318 #. type: =item
10319 #: ../fish/guestfish-actions.pod:2075 ../src/guestfs-actions.pod:3236
10320 msgid "\"installed\""
10321 msgstr ""
10322
10323 #. type: textblock
10324 #: ../fish/guestfish-actions.pod:2077 ../src/guestfs-actions.pod:3238
10325 msgid "This is an installed operating system."
10326 msgstr ""
10327
10328 #. type: =item
10329 #: ../fish/guestfish-actions.pod:2079 ../src/guestfs-actions.pod:3240
10330 msgid "\"installer\""
10331 msgstr ""
10332
10333 #. type: textblock
10334 #: ../fish/guestfish-actions.pod:2081 ../src/guestfs-actions.pod:3242
10335 msgid ""
10336 "The disk image being inspected is not an installed operating system, but a "
10337 "I<bootable> install disk, live CD, or similar."
10338 msgstr ""
10339
10340 #. type: textblock
10341 #: ../fish/guestfish-actions.pod:2086 ../src/guestfs-actions.pod:3247
10342 msgid "The format of this disk image is not known."
10343 msgstr ""
10344
10345 #. type: =head2
10346 #: ../fish/guestfish-actions.pod:2095
10347 msgid "inspect-get-hostname"
10348 msgstr ""
10349
10350 #. type: verbatim
10351 #: ../fish/guestfish-actions.pod:2097
10352 #, no-wrap
10353 msgid ""
10354 " inspect-get-hostname root\n"
10355 "\n"
10356 msgstr ""
10357
10358 #. type: textblock
10359 #: ../fish/guestfish-actions.pod:2099 ../src/guestfs-actions.pod:3267
10360 msgid ""
10361 "This function returns the hostname of the operating system as found by "
10362 "inspection of the guest's configuration files."
10363 msgstr ""
10364
10365 #. type: textblock
10366 #: ../fish/guestfish-actions.pod:2102 ../src/guestfs-actions.pod:3270
10367 msgid ""
10368 "If the hostname could not be determined, then the string C<unknown> is "
10369 "returned."
10370 msgstr ""
10371
10372 #. type: =head2
10373 #: ../fish/guestfish-actions.pod:2107
10374 msgid "inspect-get-icon"
10375 msgstr ""
10376
10377 #. type: verbatim
10378 #: ../fish/guestfish-actions.pod:2109
10379 #, no-wrap
10380 msgid ""
10381 " inspect-get-icon root [favicon:true|false] [highquality:true|false]\n"
10382 "\n"
10383 msgstr ""
10384
10385 #. type: textblock
10386 #: ../fish/guestfish-actions.pod:2111 ../src/guestfs-actions.pod:3296
10387 msgid ""
10388 "This function returns an icon corresponding to the inspected operating "
10389 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
10390 "to PNG if necessary)."
10391 msgstr ""
10392
10393 #. type: textblock
10394 #: ../fish/guestfish-actions.pod:2115 ../src/guestfs-actions.pod:3300
10395 msgid ""
10396 "If it was not possible to get an icon this function returns a zero-length "
10397 "(non-NULL) buffer.  I<Callers must check for this case>."
10398 msgstr ""
10399
10400 #. type: textblock
10401 #: ../fish/guestfish-actions.pod:2118 ../src/guestfs-actions.pod:3303
10402 msgid ""
10403 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
10404 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
10405 "this file will be returned.  You can disable favicons by passing the "
10406 "optional C<favicon> boolean as false (default is true)."
10407 msgstr ""
10408
10409 #. type: textblock
10410 #: ../fish/guestfish-actions.pod:2124 ../src/guestfs-actions.pod:3309
10411 msgid ""
10412 "If finding the favicon fails, then we look in other places in the guest for "
10413 "a suitable icon."
10414 msgstr ""
10415
10416 #. type: textblock
10417 #: ../fish/guestfish-actions.pod:2127 ../src/guestfs-actions.pod:3312
10418 msgid ""
10419 "If the optional C<highquality> boolean is true then only high quality icons "
10420 "are returned, which means only icons of high resolution with an alpha "
10421 "channel.  The default (false) is to return any icon we can, even if it is of "
10422 "substandard quality."
10423 msgstr ""
10424
10425 #. type: textblock
10426 #: ../fish/guestfish-actions.pod:2138 ../src/guestfs-actions.pod:3323
10427 msgid ""
10428 "Unlike most other inspection API calls, the guest's disks must be mounted up "
10429 "before you call this, since it needs to read information from the guest "
10430 "filesystem during the call."
10431 msgstr ""
10432
10433 #. type: textblock
10434 #: ../fish/guestfish-actions.pod:2144 ../src/guestfs-actions.pod:3329
10435 msgid ""
10436 "B<Security:> The icon data comes from the untrusted guest, and should be "
10437 "treated with caution.  PNG files have been known to contain exploits.  "
10438 "Ensure that libpng (or other relevant libraries) are fully up to date before "
10439 "trying to process or display the icon."
10440 msgstr ""
10441
10442 #. type: textblock
10443 #: ../fish/guestfish-actions.pod:2152 ../src/guestfs-actions.pod:3337
10444 msgid ""
10445 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
10446 "tries to return the largest, highest quality icon available.  The "
10447 "application must scale the icon to the required size."
10448 msgstr ""
10449
10450 #. type: textblock
10451 #: ../fish/guestfish-actions.pod:2159 ../src/guestfs-actions.pod:3344
10452 msgid ""
10453 "Extracting icons from Windows guests requires the external C<wrestool> "
10454 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
10455 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
10456 "installed separately."
10457 msgstr ""
10458
10459 #. type: textblock
10460 #: ../fish/guestfish-actions.pod:2166 ../src/guestfs-actions.pod:3351
10461 msgid ""
10462 "Operating system icons are usually trademarks.  Seek legal advice before "
10463 "using trademarks in applications."
10464 msgstr ""
10465
10466 #. type: =head2
10467 #: ../fish/guestfish-actions.pod:2173
10468 msgid "inspect-get-major-version"
10469 msgstr ""
10470
10471 #. type: verbatim
10472 #: ../fish/guestfish-actions.pod:2175
10473 #, no-wrap
10474 msgid ""
10475 " inspect-get-major-version root\n"
10476 "\n"
10477 msgstr ""
10478
10479 #. type: textblock
10480 #: ../fish/guestfish-actions.pod:2177 ../src/guestfs-actions.pod:3392
10481 msgid "This returns the major version number of the inspected operating system."
10482 msgstr ""
10483
10484 #. type: textblock
10485 #: ../fish/guestfish-actions.pod:2180 ../src/guestfs-actions.pod:3395
10486 msgid ""
10487 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
10488 "popular public names used by the operating system.  Notably the operating "
10489 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
10490 "1).  You can find out the real versions corresponding to releases of Windows "
10491 "by consulting Wikipedia or MSDN."
10492 msgstr ""
10493
10494 #. type: textblock
10495 #: ../fish/guestfish-actions.pod:2187 ../fish/guestfish-actions.pod:2198 ../src/guestfs-actions.pod:3402 ../src/guestfs-actions.pod:3419
10496 msgid "If the version could not be determined, then C<0> is returned."
10497 msgstr ""
10498
10499 #. type: =head2
10500 #: ../fish/guestfish-actions.pod:2191
10501 msgid "inspect-get-minor-version"
10502 msgstr ""
10503
10504 #. type: verbatim
10505 #: ../fish/guestfish-actions.pod:2193
10506 #, no-wrap
10507 msgid ""
10508 " inspect-get-minor-version root\n"
10509 "\n"
10510 msgstr ""
10511
10512 #. type: textblock
10513 #: ../fish/guestfish-actions.pod:2195 ../src/guestfs-actions.pod:3416
10514 msgid "This returns the minor version number of the inspected operating system."
10515 msgstr ""
10516
10517 #. type: textblock
10518 #: ../fish/guestfish-actions.pod:2200
10519 msgid ""
10520 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10521 "L</inspect-get-major-version>."
10522 msgstr ""
10523
10524 #. type: =head2
10525 #: ../fish/guestfish-actions.pod:2203
10526 msgid "inspect-get-mountpoints"
10527 msgstr ""
10528
10529 #. type: verbatim
10530 #: ../fish/guestfish-actions.pod:2205
10531 #, no-wrap
10532 msgid ""
10533 " inspect-get-mountpoints root\n"
10534 "\n"
10535 msgstr ""
10536
10537 #. type: textblock
10538 #: ../fish/guestfish-actions.pod:2207 ../src/guestfs-actions.pod:3434
10539 msgid ""
10540 "This returns a hash of where we think the filesystems associated with this "
10541 "operating system should be mounted.  Callers should note that this is at "
10542 "best an educated guess made by reading configuration files such as "
10543 "C</etc/fstab>.  I<In particular note> that this may return filesystems which "
10544 "are non-existent or not mountable and callers should be prepared to handle "
10545 "or ignore failures if they try to mount them."
10546 msgstr ""
10547
10548 #. type: textblock
10549 #: ../fish/guestfish-actions.pod:2216 ../src/guestfs-actions.pod:3443
10550 msgid ""
10551 "Each element in the returned hashtable has a key which is the path of the "
10552 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
10553 "mounted there (eg. C</dev/sda1>)."
10554 msgstr ""
10555
10556 #. type: textblock
10557 #: ../fish/guestfish-actions.pod:2221 ../src/guestfs-actions.pod:3448
10558 msgid "Non-mounted devices such as swap devices are I<not> returned in this list."
10559 msgstr ""
10560
10561 #. type: textblock
10562 #: ../fish/guestfish-actions.pod:2224
10563 msgid ""
10564 "For operating systems like Windows which still use drive letters, this call "
10565 "will only return an entry for the first drive \"mounted on\" C</>.  For "
10566 "information about the mapping of drive letters to partitions, see "
10567 "L</inspect-get-drive-mappings>."
10568 msgstr ""
10569
10570 #. type: textblock
10571 #: ../fish/guestfish-actions.pod:2230
10572 msgid ""
10573 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10574 "L</inspect-get-filesystems>."
10575 msgstr ""
10576
10577 #. type: =head2
10578 #: ../fish/guestfish-actions.pod:2233
10579 msgid "inspect-get-package-format"
10580 msgstr ""
10581
10582 #. type: verbatim
10583 #: ../fish/guestfish-actions.pod:2235
10584 #, no-wrap
10585 msgid ""
10586 " inspect-get-package-format root\n"
10587 "\n"
10588 msgstr ""
10589
10590 #. type: textblock
10591 #: ../fish/guestfish-actions.pod:2237
10592 msgid ""
10593 "This function and L</inspect-get-package-management> return the package "
10594 "format and package management tool used by the inspected operating system.  "
10595 "For example for Fedora these functions would return C<rpm> (package format) "
10596 "and C<yum> (package management)."
10597 msgstr ""
10598
10599 #. type: textblock
10600 #: ../fish/guestfish-actions.pod:2243 ../src/guestfs-actions.pod:3480
10601 msgid ""
10602 "This returns the string C<unknown> if we could not determine the package "
10603 "format I<or> if the operating system does not have a real packaging system "
10604 "(eg. Windows)."
10605 msgstr ""
10606
10607 #. type: textblock
10608 #: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3484
10609 msgid ""
10610 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>, "
10611 "C<pkgsrc>.  Future versions of libguestfs may return other strings."
10612 msgstr ""
10613
10614 #. type: =head2
10615 #: ../fish/guestfish-actions.pod:2253
10616 msgid "inspect-get-package-management"
10617 msgstr ""
10618
10619 #. type: verbatim
10620 #: ../fish/guestfish-actions.pod:2255
10621 #, no-wrap
10622 msgid ""
10623 " inspect-get-package-management root\n"
10624 "\n"
10625 msgstr ""
10626
10627 #. type: textblock
10628 #: ../fish/guestfish-actions.pod:2257
10629 msgid ""
10630 "L</inspect-get-package-format> and this function return the package format "
10631 "and package management tool used by the inspected operating system.  For "
10632 "example for Fedora these functions would return C<rpm> (package format) and "
10633 "C<yum> (package management)."
10634 msgstr ""
10635
10636 #. type: textblock
10637 #: ../fish/guestfish-actions.pod:2263 ../src/guestfs-actions.pod:3507
10638 msgid ""
10639 "This returns the string C<unknown> if we could not determine the package "
10640 "management tool I<or> if the operating system does not have a real packaging "
10641 "system (eg. Windows)."
10642 msgstr ""
10643
10644 #. type: textblock
10645 #: ../fish/guestfish-actions.pod:2267 ../src/guestfs-actions.pod:3511
10646 msgid ""
10647 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
10648 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>, C<zypper>.  Future "
10649 "versions of libguestfs may return other strings."
10650 msgstr ""
10651
10652 #. type: =head2
10653 #: ../fish/guestfish-actions.pod:2274
10654 msgid "inspect-get-product-name"
10655 msgstr ""
10656
10657 #. type: verbatim
10658 #: ../fish/guestfish-actions.pod:2276
10659 #, no-wrap
10660 msgid ""
10661 " inspect-get-product-name root\n"
10662 "\n"
10663 msgstr ""
10664
10665 #. type: textblock
10666 #: ../fish/guestfish-actions.pod:2278 ../src/guestfs-actions.pod:3529
10667 msgid ""
10668 "This returns the product name of the inspected operating system.  The "
10669 "product name is generally some freeform string which can be displayed to the "
10670 "user, but should not be parsed by programs."
10671 msgstr ""
10672
10673 #. type: textblock
10674 #: ../fish/guestfish-actions.pod:2283 ../src/guestfs-actions.pod:3534
10675 msgid ""
10676 "If the product name could not be determined, then the string C<unknown> is "
10677 "returned."
10678 msgstr ""
10679
10680 #. type: =head2
10681 #: ../fish/guestfish-actions.pod:2288
10682 msgid "inspect-get-product-variant"
10683 msgstr ""
10684
10685 #. type: verbatim
10686 #: ../fish/guestfish-actions.pod:2290
10687 #, no-wrap
10688 msgid ""
10689 " inspect-get-product-variant root\n"
10690 "\n"
10691 msgstr ""
10692
10693 #. type: textblock
10694 #: ../fish/guestfish-actions.pod:2292 ../src/guestfs-actions.pod:3550
10695 msgid "This returns the product variant of the inspected operating system."
10696 msgstr ""
10697
10698 #. type: textblock
10699 #: ../fish/guestfish-actions.pod:2295 ../src/guestfs-actions.pod:3553
10700 msgid ""
10701 "For Windows guests, this returns the contents of the Registry key "
10702 "C<HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> "
10703 "which is usually a string such as C<Client> or C<Server> (other values are "
10704 "possible).  This can be used to distinguish consumer and enterprise versions "
10705 "of Windows that have the same version number (for example, Windows 7 and "
10706 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
10707 "the latter is C<Server>)."
10708 msgstr ""
10709
10710 #. type: textblock
10711 #: ../fish/guestfish-actions.pod:2304 ../src/guestfs-actions.pod:3562
10712 msgid ""
10713 "For enterprise Linux guests, in future we intend this to return the product "
10714 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
10715 "implemented at present."
10716 msgstr ""
10717
10718 #. type: textblock
10719 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3566
10720 msgid ""
10721 "If the product variant could not be determined, then the string C<unknown> "
10722 "is returned."
10723 msgstr ""
10724
10725 #. type: textblock
10726 #: ../fish/guestfish-actions.pod:2311
10727 msgid ""
10728 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10729 "L</inspect-get-product-name>, L</inspect-get-major-version>."
10730 msgstr ""
10731
10732 #. type: =head2
10733 #: ../fish/guestfish-actions.pod:2315
10734 msgid "inspect-get-roots"
10735 msgstr ""
10736
10737 #. type: verbatim
10738 #: ../fish/guestfish-actions.pod:2317
10739 #, no-wrap
10740 msgid ""
10741 " inspect-get-roots\n"
10742 "\n"
10743 msgstr ""
10744
10745 #. type: textblock
10746 #: ../fish/guestfish-actions.pod:2319
10747 msgid ""
10748 "This function is a convenient way to get the list of root devices, as "
10749 "returned from a previous call to L</inspect-os>, but without redoing the "
10750 "whole inspection process."
10751 msgstr ""
10752
10753 #. type: textblock
10754 #: ../fish/guestfish-actions.pod:2323
10755 msgid ""
10756 "This returns an empty list if either no root devices were found or the "
10757 "caller has not called L</inspect-os>."
10758 msgstr ""
10759
10760 #. type: =head2
10761 #: ../fish/guestfish-actions.pod:2328
10762 msgid "inspect-get-type"
10763 msgstr ""
10764
10765 #. type: verbatim
10766 #: ../fish/guestfish-actions.pod:2330
10767 #, no-wrap
10768 msgid ""
10769 " inspect-get-type root\n"
10770 "\n"
10771 msgstr ""
10772
10773 #. type: textblock
10774 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3604
10775 msgid ""
10776 "This returns the type of the inspected operating system.  Currently defined "
10777 "types are:"
10778 msgstr ""
10779
10780 #. type: =item
10781 #: ../fish/guestfish-actions.pod:2337 ../src/guestfs-actions.pod:3609
10782 msgid "\"linux\""
10783 msgstr ""
10784
10785 #. type: textblock
10786 #: ../fish/guestfish-actions.pod:2339 ../src/guestfs-actions.pod:3611
10787 msgid "Any Linux-based operating system."
10788 msgstr ""
10789
10790 #. type: textblock
10791 #: ../fish/guestfish-actions.pod:2343 ../src/guestfs-actions.pod:3615
10792 msgid "Any Microsoft Windows operating system."
10793 msgstr ""
10794
10795 #. type: =item
10796 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3617
10797 msgid "\"freebsd\""
10798 msgstr ""
10799
10800 #. type: textblock
10801 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3619
10802 msgid "FreeBSD."
10803 msgstr ""
10804
10805 #. type: =item
10806 #: ../fish/guestfish-actions.pod:2349 ../src/guestfs-actions.pod:3621
10807 msgid "\"netbsd\""
10808 msgstr ""
10809
10810 #. type: textblock
10811 #: ../fish/guestfish-actions.pod:2351 ../src/guestfs-actions.pod:3623
10812 msgid "NetBSD."
10813 msgstr ""
10814
10815 #. type: textblock
10816 #: ../fish/guestfish-actions.pod:2355 ../src/guestfs-actions.pod:3627
10817 msgid "The operating system type could not be determined."
10818 msgstr ""
10819
10820 #. type: =head2
10821 #: ../fish/guestfish-actions.pod:2364
10822 msgid "inspect-get-windows-current-control-set"
10823 msgstr ""
10824
10825 #. type: verbatim
10826 #: ../fish/guestfish-actions.pod:2366
10827 #, no-wrap
10828 msgid ""
10829 " inspect-get-windows-current-control-set root\n"
10830 "\n"
10831 msgstr ""
10832
10833 #. type: textblock
10834 #: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3647
10835 msgid ""
10836 "This returns the Windows CurrentControlSet of the inspected guest.  The "
10837 "CurrentControlSet is a registry key name such as C<ControlSet001>."
10838 msgstr ""
10839
10840 #. type: textblock
10841 #: ../fish/guestfish-actions.pod:2371 ../src/guestfs-actions.pod:3650
10842 msgid ""
10843 "This call assumes that the guest is Windows and that the Registry could be "
10844 "examined by inspection.  If this is not the case then an error is returned."
10845 msgstr ""
10846
10847 #. type: =head2
10848 #: ../fish/guestfish-actions.pod:2377
10849 msgid "inspect-get-windows-systemroot"
10850 msgstr ""
10851
10852 #. type: verbatim
10853 #: ../fish/guestfish-actions.pod:2379
10854 #, no-wrap
10855 msgid ""
10856 " inspect-get-windows-systemroot root\n"
10857 "\n"
10858 msgstr ""
10859
10860 #. type: textblock
10861 #: ../fish/guestfish-actions.pod:2381 ../src/guestfs-actions.pod:3667
10862 msgid ""
10863 "This returns the Windows systemroot of the inspected guest.  The systemroot "
10864 "is a directory path such as C</WINDOWS>."
10865 msgstr ""
10866
10867 #. type: textblock
10868 #: ../fish/guestfish-actions.pod:2384 ../src/guestfs-actions.pod:3670
10869 msgid ""
10870 "This call assumes that the guest is Windows and that the systemroot could be "
10871 "determined by inspection.  If this is not the case then an error is "
10872 "returned."
10873 msgstr ""
10874
10875 #. type: =head2
10876 #: ../fish/guestfish-actions.pod:2390
10877 msgid "inspect-is-live"
10878 msgstr ""
10879
10880 #. type: verbatim
10881 #: ../fish/guestfish-actions.pod:2392
10882 #, no-wrap
10883 msgid ""
10884 " inspect-is-live root\n"
10885 "\n"
10886 msgstr ""
10887
10888 #. type: textblock
10889 #: ../fish/guestfish-actions.pod:2394
10890 msgid ""
10891 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10892 "then this returns true if a live image was detected on the disk."
10893 msgstr ""
10894
10895 #. type: =head2
10896 #: ../fish/guestfish-actions.pod:2400
10897 msgid "inspect-is-multipart"
10898 msgstr ""
10899
10900 #. type: verbatim
10901 #: ../fish/guestfish-actions.pod:2402
10902 #, no-wrap
10903 msgid ""
10904 " inspect-is-multipart root\n"
10905 "\n"
10906 msgstr ""
10907
10908 #. type: textblock
10909 #: ../fish/guestfish-actions.pod:2404
10910 msgid ""
10911 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10912 "then this returns true if the disk is part of a set."
10913 msgstr ""
10914
10915 #. type: =head2
10916 #: ../fish/guestfish-actions.pod:2410
10917 msgid "inspect-is-netinst"
10918 msgstr ""
10919
10920 #. type: verbatim
10921 #: ../fish/guestfish-actions.pod:2412
10922 #, no-wrap
10923 msgid ""
10924 " inspect-is-netinst root\n"
10925 "\n"
10926 msgstr ""
10927
10928 #. type: textblock
10929 #: ../fish/guestfish-actions.pod:2414
10930 msgid ""
10931 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10932 "then this returns true if the disk is a network installer, ie. not a "
10933 "self-contained install CD but one which is likely to require network access "
10934 "to complete the install."
10935 msgstr ""
10936
10937 #. type: =head2
10938 #: ../fish/guestfish-actions.pod:2422
10939 msgid "inspect-list-applications"
10940 msgstr ""
10941
10942 #. type: verbatim
10943 #: ../fish/guestfish-actions.pod:2424
10944 #, no-wrap
10945 msgid ""
10946 " inspect-list-applications root\n"
10947 "\n"
10948 msgstr ""
10949
10950 #. type: textblock
10951 #: ../fish/guestfish-actions.pod:2426 ../src/guestfs-actions.pod:3737
10952 msgid "Return the list of applications installed in the operating system."
10953 msgstr ""
10954
10955 #. type: textblock
10956 #: ../fish/guestfish-actions.pod:2428
10957 msgid ""
10958 "I<Note:> This call works differently from other parts of the inspection "
10959 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
10960 "then mount up the disks, before calling this.  Listing applications is a "
10961 "significantly more difficult operation which requires access to the full "
10962 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
10963 "are just returning data cached in the libguestfs handle, this call actually "
10964 "reads parts of the mounted filesystems during the call."
10965 msgstr ""
10966
10967 #. type: textblock
10968 #: ../fish/guestfish-actions.pod:2438 ../src/guestfs-actions.pod:3749
10969 msgid ""
10970 "This returns an empty list if the inspection code was not able to determine "
10971 "the list of applications."
10972 msgstr ""
10973
10974 #. type: textblock
10975 #: ../fish/guestfish-actions.pod:2441 ../src/guestfs-actions.pod:3752
10976 msgid "The application structure contains the following fields:"
10977 msgstr ""
10978
10979 #. type: =item
10980 #: ../fish/guestfish-actions.pod:2445 ../src/guestfs-actions.pod:3756
10981 msgid "C<app_name>"
10982 msgstr ""
10983
10984 #. type: textblock
10985 #: ../fish/guestfish-actions.pod:2447 ../src/guestfs-actions.pod:3758
10986 msgid ""
10987 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
10988 "guests, this is the package name."
10989 msgstr ""
10990
10991 #. type: =item
10992 #: ../fish/guestfish-actions.pod:2450 ../src/guestfs-actions.pod:3761
10993 msgid "C<app_display_name>"
10994 msgstr ""
10995
10996 #. type: textblock
10997 #: ../fish/guestfish-actions.pod:2452 ../src/guestfs-actions.pod:3763
10998 msgid ""
10999 "The display name of the application, sometimes localized to the install "
11000 "language of the guest operating system."
11001 msgstr ""
11002
11003 #. type: textblock
11004 #: ../fish/guestfish-actions.pod:2455 ../src/guestfs-actions.pod:3766
11005 msgid ""
11006 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
11007 "to display something can use C<app_name> instead."
11008 msgstr ""
11009
11010 #. type: =item
11011 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3769
11012 msgid "C<app_epoch>"
11013 msgstr ""
11014
11015 #. type: textblock
11016 #: ../fish/guestfish-actions.pod:2460 ../src/guestfs-actions.pod:3771
11017 msgid ""
11018 "For package managers which use epochs, this contains the epoch of the "
11019 "package (an integer).  If unavailable, this is returned as C<0>."
11020 msgstr ""
11021
11022 #. type: =item
11023 #: ../fish/guestfish-actions.pod:2463 ../src/guestfs-actions.pod:3774
11024 msgid "C<app_version>"
11025 msgstr ""
11026
11027 #. type: textblock
11028 #: ../fish/guestfish-actions.pod:2465 ../src/guestfs-actions.pod:3776
11029 msgid ""
11030 "The version string of the application or package.  If unavailable this is "
11031 "returned as an empty string C<\"\">."
11032 msgstr ""
11033
11034 #. type: =item
11035 #: ../fish/guestfish-actions.pod:2468 ../src/guestfs-actions.pod:3779
11036 msgid "C<app_release>"
11037 msgstr ""
11038
11039 #. type: textblock
11040 #: ../fish/guestfish-actions.pod:2470 ../src/guestfs-actions.pod:3781
11041 msgid ""
11042 "The release string of the application or package, for package managers that "
11043 "use this.  If unavailable this is returned as an empty string C<\"\">."
11044 msgstr ""
11045
11046 #. type: =item
11047 #: ../fish/guestfish-actions.pod:2474 ../src/guestfs-actions.pod:3785
11048 msgid "C<app_install_path>"
11049 msgstr ""
11050
11051 #. type: textblock
11052 #: ../fish/guestfish-actions.pod:2476 ../src/guestfs-actions.pod:3787
11053 msgid ""
11054 "The installation path of the application (on operating systems such as "
11055 "Windows which use installation paths).  This path is in the format used by "
11056 "the guest operating system, it is not a libguestfs path."
11057 msgstr ""
11058
11059 #. type: textblock
11060 #: ../fish/guestfish-actions.pod:2481 ../src/guestfs-actions.pod:3792
11061 msgid "If unavailable this is returned as an empty string C<\"\">."
11062 msgstr ""
11063
11064 #. type: =item
11065 #: ../fish/guestfish-actions.pod:2483 ../src/guestfs-actions.pod:3794
11066 msgid "C<app_trans_path>"
11067 msgstr ""
11068
11069 #. type: textblock
11070 #: ../fish/guestfish-actions.pod:2485 ../src/guestfs-actions.pod:3796
11071 msgid ""
11072 "The install path translated into a libguestfs path.  If unavailable this is "
11073 "returned as an empty string C<\"\">."
11074 msgstr ""
11075
11076 #. type: =item
11077 #: ../fish/guestfish-actions.pod:2488 ../src/guestfs-actions.pod:3799
11078 msgid "C<app_publisher>"
11079 msgstr ""
11080
11081 #. type: textblock
11082 #: ../fish/guestfish-actions.pod:2490 ../src/guestfs-actions.pod:3801
11083 msgid ""
11084 "The name of the publisher of the application, for package managers that use "
11085 "this.  If unavailable this is returned as an empty string C<\"\">."
11086 msgstr ""
11087
11088 #. type: =item
11089 #: ../fish/guestfish-actions.pod:2494 ../src/guestfs-actions.pod:3805
11090 msgid "C<app_url>"
11091 msgstr ""
11092
11093 #. type: textblock
11094 #: ../fish/guestfish-actions.pod:2496 ../src/guestfs-actions.pod:3807
11095 msgid ""
11096 "The URL (eg. upstream URL) of the application.  If unavailable this is "
11097 "returned as an empty string C<\"\">."
11098 msgstr ""
11099
11100 #. type: =item
11101 #: ../fish/guestfish-actions.pod:2499 ../src/guestfs-actions.pod:3810
11102 msgid "C<app_source_package>"
11103 msgstr ""
11104
11105 #. type: textblock
11106 #: ../fish/guestfish-actions.pod:2501 ../src/guestfs-actions.pod:3812
11107 msgid ""
11108 "For packaging systems which support this, the name of the source package.  "
11109 "If unavailable this is returned as an empty string C<\"\">."
11110 msgstr ""
11111
11112 #. type: =item
11113 #: ../fish/guestfish-actions.pod:2504 ../src/guestfs-actions.pod:3815
11114 msgid "C<app_summary>"
11115 msgstr ""
11116
11117 #. type: textblock
11118 #: ../fish/guestfish-actions.pod:2506 ../src/guestfs-actions.pod:3817
11119 msgid ""
11120 "A short (usually one line) description of the application or package.  If "
11121 "unavailable this is returned as an empty string C<\"\">."
11122 msgstr ""
11123
11124 #. type: =item
11125 #: ../fish/guestfish-actions.pod:2509 ../src/guestfs-actions.pod:3820
11126 msgid "C<app_description>"
11127 msgstr ""
11128
11129 #. type: textblock
11130 #: ../fish/guestfish-actions.pod:2511 ../src/guestfs-actions.pod:3822
11131 msgid ""
11132 "A longer description of the application or package.  If unavailable this is "
11133 "returned as an empty string C<\"\">."
11134 msgstr ""
11135
11136 #. type: =head2
11137 #: ../fish/guestfish-actions.pod:2518
11138 msgid "inspect-os"
11139 msgstr ""
11140
11141 #. type: verbatim
11142 #: ../fish/guestfish-actions.pod:2520
11143 #, no-wrap
11144 msgid ""
11145 " inspect-os\n"
11146 "\n"
11147 msgstr ""
11148
11149 #. type: textblock
11150 #: ../fish/guestfish-actions.pod:2522 ../src/guestfs-actions.pod:3840
11151 msgid ""
11152 "This function uses other libguestfs functions and certain heuristics to "
11153 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
11154 "for operating systems."
11155 msgstr ""
11156
11157 #. type: textblock
11158 #: ../fish/guestfish-actions.pod:2526 ../src/guestfs-actions.pod:3844
11159 msgid "The list returned is empty if no operating systems were found."
11160 msgstr ""
11161
11162 #. type: textblock
11163 #: ../fish/guestfish-actions.pod:2528 ../src/guestfs-actions.pod:3846
11164 msgid ""
11165 "If one operating system was found, then this returns a list with a single "
11166 "element, which is the name of the root filesystem of this operating system.  "
11167 "It is also possible for this function to return a list containing more than "
11168 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
11169 "element being the root filesystem of one of the operating systems."
11170 msgstr ""
11171
11172 #. type: textblock
11173 #: ../fish/guestfish-actions.pod:2535
11174 msgid ""
11175 "You can pass the root string(s) returned to other L</inspect-get-*> "
11176 "functions in order to query further information about each operating system, "
11177 "such as the name and version."
11178 msgstr ""
11179
11180 #. type: textblock
11181 #: ../fish/guestfish-actions.pod:2540
11182 msgid ""
11183 "This function uses other libguestfs features such as L</mount-ro> and "
11184 "L</umount-all> in order to mount and unmount filesystems and look at the "
11185 "contents.  This should be called with no disks currently mounted.  The "
11186 "function may also use Augeas, so any existing Augeas handle will be closed."
11187 msgstr ""
11188
11189 #. type: textblock
11190 #: ../fish/guestfish-actions.pod:2546 ../src/guestfs-actions.pod:3864
11191 msgid ""
11192 "This function cannot decrypt encrypted disks.  The caller must do that first "
11193 "(supplying the necessary keys) if the disk is encrypted."
11194 msgstr ""
11195
11196 #. type: textblock
11197 #: ../fish/guestfish-actions.pod:2552 ../fish/guestfish-actions.pod:2750 ../fish/guestfish-actions.pod:2809
11198 msgid "See also L</list-filesystems>."
11199 msgstr ""
11200
11201 #. type: =head2
11202 #: ../fish/guestfish-actions.pod:2554
11203 msgid "is-blockdev"
11204 msgstr ""
11205
11206 #. type: verbatim
11207 #: ../fish/guestfish-actions.pod:2556
11208 #, no-wrap
11209 msgid ""
11210 " is-blockdev path\n"
11211 "\n"
11212 msgstr ""
11213
11214 #. type: textblock
11215 #: ../fish/guestfish-actions.pod:2558 ../src/guestfs-actions.pod:3884
11216 msgid ""
11217 "This returns C<true> if and only if there is a block device with the given "
11218 "C<path> name."
11219 msgstr ""
11220
11221 #. type: textblock
11222 #: ../fish/guestfish-actions.pod:2561 ../fish/guestfish-actions.pod:2579 ../fish/guestfish-actions.pod:2598 ../fish/guestfish-actions.pod:2607 ../fish/guestfish-actions.pod:2617 ../fish/guestfish-actions.pod:2651 ../fish/guestfish-actions.pod:2660
11223 msgid "See also L</stat>."
11224 msgstr ""
11225
11226 #. type: =head2
11227 #: ../fish/guestfish-actions.pod:2563
11228 msgid "is-busy"
11229 msgstr ""
11230
11231 #. type: verbatim
11232 #: ../fish/guestfish-actions.pod:2565
11233 #, no-wrap
11234 msgid ""
11235 " is-busy\n"
11236 "\n"
11237 msgstr ""
11238
11239 #. type: textblock
11240 #: ../fish/guestfish-actions.pod:2567 ../src/guestfs-actions.pod:3898
11241 msgid ""
11242 "This returns true iff this handle is busy processing a command (in the "
11243 "C<BUSY> state)."
11244 msgstr ""
11245
11246 #. type: =head2
11247 #: ../fish/guestfish-actions.pod:2572
11248 msgid "is-chardev"
11249 msgstr ""
11250
11251 #. type: verbatim
11252 #: ../fish/guestfish-actions.pod:2574
11253 #, no-wrap
11254 msgid ""
11255 " is-chardev path\n"
11256 "\n"
11257 msgstr ""
11258
11259 #. type: textblock
11260 #: ../fish/guestfish-actions.pod:2576 ../src/guestfs-actions.pod:3913
11261 msgid ""
11262 "This returns C<true> if and only if there is a character device with the "
11263 "given C<path> name."
11264 msgstr ""
11265
11266 #. type: =head2
11267 #: ../fish/guestfish-actions.pod:2581
11268 msgid "is-config"
11269 msgstr ""
11270
11271 #. type: verbatim
11272 #: ../fish/guestfish-actions.pod:2583
11273 #, no-wrap
11274 msgid ""
11275 " is-config\n"
11276 "\n"
11277 msgstr ""
11278
11279 #. type: textblock
11280 #: ../fish/guestfish-actions.pod:2585 ../src/guestfs-actions.pod:3927
11281 msgid ""
11282 "This returns true iff this handle is being configured (in the C<CONFIG> "
11283 "state)."
11284 msgstr ""
11285
11286 #. type: =head2
11287 #: ../fish/guestfish-actions.pod:2590
11288 msgid "is-dir"
11289 msgstr ""
11290
11291 #. type: verbatim
11292 #: ../fish/guestfish-actions.pod:2592
11293 #, no-wrap
11294 msgid ""
11295 " is-dir path\n"
11296 "\n"
11297 msgstr ""
11298
11299 #. type: textblock
11300 #: ../fish/guestfish-actions.pod:2594 ../src/guestfs-actions.pod:3942
11301 msgid ""
11302 "This returns C<true> if and only if there is a directory with the given "
11303 "C<path> name.  Note that it returns false for other objects like files."
11304 msgstr ""
11305
11306 #. type: =head2
11307 #: ../fish/guestfish-actions.pod:2600
11308 msgid "is-fifo"
11309 msgstr ""
11310
11311 #. type: verbatim
11312 #: ../fish/guestfish-actions.pod:2602
11313 #, no-wrap
11314 msgid ""
11315 " is-fifo path\n"
11316 "\n"
11317 msgstr ""
11318
11319 #. type: textblock
11320 #: ../fish/guestfish-actions.pod:2604 ../src/guestfs-actions.pod:3958
11321 msgid ""
11322 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
11323 "given C<path> name."
11324 msgstr ""
11325
11326 #. type: =head2
11327 #: ../fish/guestfish-actions.pod:2609
11328 msgid "is-file"
11329 msgstr ""
11330
11331 #. type: verbatim
11332 #: ../fish/guestfish-actions.pod:2611
11333 #, no-wrap
11334 msgid ""
11335 " is-file path\n"
11336 "\n"
11337 msgstr ""
11338
11339 #. type: textblock
11340 #: ../fish/guestfish-actions.pod:2613 ../src/guestfs-actions.pod:3973
11341 msgid ""
11342 "This returns C<true> if and only if there is a regular file with the given "
11343 "C<path> name.  Note that it returns false for other objects like "
11344 "directories."
11345 msgstr ""
11346
11347 #. type: =head2
11348 #: ../fish/guestfish-actions.pod:2619
11349 msgid "is-launching"
11350 msgstr ""
11351
11352 #. type: verbatim
11353 #: ../fish/guestfish-actions.pod:2621
11354 #, no-wrap
11355 msgid ""
11356 " is-launching\n"
11357 "\n"
11358 msgstr ""
11359
11360 #. type: textblock
11361 #: ../fish/guestfish-actions.pod:2623 ../src/guestfs-actions.pod:3988
11362 msgid ""
11363 "This returns true iff this handle is launching the subprocess (in the "
11364 "C<LAUNCHING> state)."
11365 msgstr ""
11366
11367 #. type: =head2
11368 #: ../fish/guestfish-actions.pod:2628
11369 msgid "is-lv"
11370 msgstr ""
11371
11372 #. type: verbatim
11373 #: ../fish/guestfish-actions.pod:2630
11374 #, no-wrap
11375 msgid ""
11376 " is-lv device\n"
11377 "\n"
11378 msgstr ""
11379
11380 #. type: textblock
11381 #: ../fish/guestfish-actions.pod:2632 ../src/guestfs-actions.pod:4003
11382 msgid ""
11383 "This command tests whether C<device> is a logical volume, and returns true "
11384 "iff this is the case."
11385 msgstr ""
11386
11387 #. type: =head2
11388 #: ../fish/guestfish-actions.pod:2635
11389 msgid "is-ready"
11390 msgstr ""
11391
11392 #. type: verbatim
11393 #: ../fish/guestfish-actions.pod:2637
11394 #, no-wrap
11395 msgid ""
11396 " is-ready\n"
11397 "\n"
11398 msgstr ""
11399
11400 #. type: textblock
11401 #: ../fish/guestfish-actions.pod:2639 ../src/guestfs-actions.pod:4015
11402 msgid ""
11403 "This returns true iff this handle is ready to accept commands (in the "
11404 "C<READY> state)."
11405 msgstr ""
11406
11407 #. type: =head2
11408 #: ../fish/guestfish-actions.pod:2644
11409 msgid "is-socket"
11410 msgstr ""
11411
11412 #. type: verbatim
11413 #: ../fish/guestfish-actions.pod:2646
11414 #, no-wrap
11415 msgid ""
11416 " is-socket path\n"
11417 "\n"
11418 msgstr ""
11419
11420 #. type: textblock
11421 #: ../fish/guestfish-actions.pod:2648 ../src/guestfs-actions.pod:4030
11422 msgid ""
11423 "This returns C<true> if and only if there is a Unix domain socket with the "
11424 "given C<path> name."
11425 msgstr ""
11426
11427 #. type: =head2
11428 #: ../fish/guestfish-actions.pod:2653
11429 msgid "is-symlink"
11430 msgstr ""
11431
11432 #. type: verbatim
11433 #: ../fish/guestfish-actions.pod:2655
11434 #, no-wrap
11435 msgid ""
11436 " is-symlink path\n"
11437 "\n"
11438 msgstr ""
11439
11440 #. type: textblock
11441 #: ../fish/guestfish-actions.pod:2657 ../src/guestfs-actions.pod:4045
11442 msgid ""
11443 "This returns C<true> if and only if there is a symbolic link with the given "
11444 "C<path> name."
11445 msgstr ""
11446
11447 #. type: =head2
11448 #: ../fish/guestfish-actions.pod:2662
11449 msgid "is-zero"
11450 msgstr ""
11451
11452 #. type: verbatim
11453 #: ../fish/guestfish-actions.pod:2664
11454 #, no-wrap
11455 msgid ""
11456 " is-zero path\n"
11457 "\n"
11458 msgstr ""
11459
11460 #. type: textblock
11461 #: ../fish/guestfish-actions.pod:2666 ../src/guestfs-actions.pod:4060
11462 msgid ""
11463 "This returns true iff the file exists and the file is empty or it contains "
11464 "all zero bytes."
11465 msgstr ""
11466
11467 #. type: =head2
11468 #: ../fish/guestfish-actions.pod:2669
11469 msgid "is-zero-device"
11470 msgstr ""
11471
11472 #. type: verbatim
11473 #: ../fish/guestfish-actions.pod:2671
11474 #, no-wrap
11475 msgid ""
11476 " is-zero-device device\n"
11477 "\n"
11478 msgstr ""
11479
11480 #. type: textblock
11481 #: ../fish/guestfish-actions.pod:2673 ../src/guestfs-actions.pod:4073
11482 msgid "This returns true iff the device exists and contains all zero bytes."
11483 msgstr ""
11484
11485 #. type: textblock
11486 #: ../fish/guestfish-actions.pod:2675 ../src/guestfs-actions.pod:4075
11487 msgid "Note that for large devices this can take a long time to run."
11488 msgstr ""
11489
11490 #. type: =head2
11491 #: ../fish/guestfish-actions.pod:2677
11492 msgid "kill-subprocess"
11493 msgstr ""
11494
11495 #. type: verbatim
11496 #: ../fish/guestfish-actions.pod:2679
11497 #, no-wrap
11498 msgid ""
11499 " kill-subprocess\n"
11500 "\n"
11501 msgstr ""
11502
11503 #. type: textblock
11504 #: ../fish/guestfish-actions.pod:2681 ../src/guestfs-actions.pod:4086
11505 msgid "This kills the qemu subprocess.  You should never need to call this."
11506 msgstr ""
11507
11508 #. type: =head2
11509 #: ../fish/guestfish-actions.pod:2683
11510 msgid "launch"
11511 msgstr ""
11512
11513 #. type: =head2
11514 #: ../fish/guestfish-actions.pod:2685
11515 msgid "run"
11516 msgstr ""
11517
11518 #. type: verbatim
11519 #: ../fish/guestfish-actions.pod:2687
11520 #, no-wrap
11521 msgid ""
11522 " launch\n"
11523 "\n"
11524 msgstr ""
11525
11526 #. type: textblock
11527 #: ../fish/guestfish-actions.pod:2689 ../src/guestfs-actions.pod:4097
11528 msgid ""
11529 "Internally libguestfs is implemented by running a virtual machine using "
11530 "L<qemu(1)>."
11531 msgstr ""
11532
11533 #. type: textblock
11534 #: ../fish/guestfish-actions.pod:2692 ../src/guestfs-actions.pod:4100
11535 msgid ""
11536 "You should call this after configuring the handle (eg. adding drives) but "
11537 "before performing any actions."
11538 msgstr ""
11539
11540 #. type: =head2
11541 #: ../fish/guestfish-actions.pod:2695
11542 msgid "lchown"
11543 msgstr ""
11544
11545 #. type: verbatim
11546 #: ../fish/guestfish-actions.pod:2697
11547 #, no-wrap
11548 msgid ""
11549 " lchown owner group path\n"
11550 "\n"
11551 msgstr ""
11552
11553 #. type: textblock
11554 #: ../fish/guestfish-actions.pod:2699
11555 msgid ""
11556 "Change the file owner to C<owner> and group to C<group>.  This is like "
11557 "L</chown> but if C<path> is a symlink then the link itself is changed, not "
11558 "the target."
11559 msgstr ""
11560
11561 #. type: =head2
11562 #: ../fish/guestfish-actions.pod:2707
11563 msgid "lgetxattr"
11564 msgstr ""
11565
11566 #. type: verbatim
11567 #: ../fish/guestfish-actions.pod:2709
11568 #, no-wrap
11569 msgid ""
11570 " lgetxattr path name\n"
11571 "\n"
11572 msgstr ""
11573
11574 #. type: textblock
11575 #: ../fish/guestfish-actions.pod:2711 ../src/guestfs-actions.pod:4140
11576 msgid ""
11577 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
11578 "is a symlink, then this call returns an extended attribute from the symlink."
11579 msgstr ""
11580
11581 #. type: textblock
11582 #: ../fish/guestfish-actions.pod:2725
11583 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
11584 msgstr ""
11585
11586 #. type: =head2
11587 #: ../fish/guestfish-actions.pod:2727
11588 msgid "lgetxattrs"
11589 msgstr ""
11590
11591 #. type: verbatim
11592 #: ../fish/guestfish-actions.pod:2729
11593 #, no-wrap
11594 msgid ""
11595 " lgetxattrs path\n"
11596 "\n"
11597 msgstr ""
11598
11599 #. type: textblock
11600 #: ../fish/guestfish-actions.pod:2731
11601 msgid ""
11602 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
11603 "it returns the extended attributes of the link itself."
11604 msgstr ""
11605
11606 #. type: =head2
11607 #: ../fish/guestfish-actions.pod:2735
11608 msgid "list-9p"
11609 msgstr ""
11610
11611 #. type: verbatim
11612 #: ../fish/guestfish-actions.pod:2737
11613 #, no-wrap
11614 msgid ""
11615 " list-9p\n"
11616 "\n"
11617 msgstr ""
11618
11619 #. type: textblock
11620 #: ../fish/guestfish-actions.pod:2739 ../src/guestfs-actions.pod:4183
11621 msgid ""
11622 "List all 9p filesystems attached to the guest.  A list of mount tags is "
11623 "returned."
11624 msgstr ""
11625
11626 #. type: =head2
11627 #: ../fish/guestfish-actions.pod:2742
11628 msgid "list-devices"
11629 msgstr ""
11630
11631 #. type: verbatim
11632 #: ../fish/guestfish-actions.pod:2744
11633 #, no-wrap
11634 msgid ""
11635 " list-devices\n"
11636 "\n"
11637 msgstr ""
11638
11639 #. type: textblock
11640 #: ../fish/guestfish-actions.pod:2746 ../src/guestfs-actions.pod:4197
11641 msgid "List all the block devices."
11642 msgstr ""
11643
11644 #. type: textblock
11645 #: ../fish/guestfish-actions.pod:2748 ../src/guestfs-actions.pod:4199
11646 msgid "The full block device names are returned, eg. C</dev/sda>."
11647 msgstr ""
11648
11649 #. type: =head2
11650 #: ../fish/guestfish-actions.pod:2752
11651 msgid "list-dm-devices"
11652 msgstr ""
11653
11654 #. type: verbatim
11655 #: ../fish/guestfish-actions.pod:2754
11656 #, no-wrap
11657 msgid ""
11658 " list-dm-devices\n"
11659 "\n"
11660 msgstr ""
11661
11662 #. type: textblock
11663 #: ../fish/guestfish-actions.pod:2756 ../src/guestfs-actions.pod:4214
11664 msgid "List all device mapper devices."
11665 msgstr ""
11666
11667 #. type: textblock
11668 #: ../fish/guestfish-actions.pod:2758
11669 msgid ""
11670 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
11671 "previous call to L</luks-open>."
11672 msgstr ""
11673
11674 #. type: textblock
11675 #: ../fish/guestfish-actions.pod:2761
11676 msgid ""
11677 "Device mapper devices which correspond to logical volumes are I<not> "
11678 "returned in this list.  Call L</lvs> if you want to list logical volumes."
11679 msgstr ""
11680
11681 #. type: =head2
11682 #: ../fish/guestfish-actions.pod:2765
11683 msgid "list-filesystems"
11684 msgstr ""
11685
11686 #. type: verbatim
11687 #: ../fish/guestfish-actions.pod:2767
11688 #, no-wrap
11689 msgid ""
11690 " list-filesystems\n"
11691 "\n"
11692 msgstr ""
11693
11694 #. type: textblock
11695 #: ../fish/guestfish-actions.pod:2769 ../src/guestfs-actions.pod:4234
11696 msgid ""
11697 "This inspection command looks for filesystems on partitions, block devices "
11698 "and logical volumes, returning a list of devices containing filesystems and "
11699 "their type."
11700 msgstr ""
11701
11702 #. type: textblock
11703 #: ../fish/guestfish-actions.pod:2773 ../src/guestfs-actions.pod:4238
11704 msgid ""
11705 "The return value is a hash, where the keys are the devices containing "
11706 "filesystems, and the values are the filesystem types.  For example:"
11707 msgstr ""
11708
11709 #. type: verbatim
11710 #: ../fish/guestfish-actions.pod:2777 ../src/guestfs-actions.pod:4242
11711 #, no-wrap
11712 msgid ""
11713 " \"/dev/sda1\" => \"ntfs\"\n"
11714 " \"/dev/sda2\" => \"ext2\"\n"
11715 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
11716 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
11717 "\n"
11718 msgstr ""
11719
11720 #. type: textblock
11721 #: ../fish/guestfish-actions.pod:2782 ../src/guestfs-actions.pod:4247
11722 msgid ""
11723 "The value can have the special value \"unknown\", meaning the content of the "
11724 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
11725 msgstr ""
11726
11727 #. type: textblock
11728 #: ../fish/guestfish-actions.pod:2786
11729 msgid ""
11730 "This command runs other libguestfs commands, which might include L</mount> "
11731 "and L</umount>, and therefore you should use this soon after launch and only "
11732 "when nothing is mounted."
11733 msgstr ""
11734
11735 #. type: textblock
11736 #: ../fish/guestfish-actions.pod:2790
11737 msgid ""
11738 "Not all of the filesystems returned will be mountable.  In particular, swap "
11739 "partitions are returned in the list.  Also this command does not check that "
11740 "each filesystem found is valid and mountable, and some filesystems might be "
11741 "mountable but require special options.  Filesystems may not all belong to a "
11742 "single logical operating system (use L</inspect-os> to look for OSes)."
11743 msgstr ""
11744
11745 #. type: =head2
11746 #: ../fish/guestfish-actions.pod:2798
11747 msgid "list-partitions"
11748 msgstr ""
11749
11750 #. type: verbatim
11751 #: ../fish/guestfish-actions.pod:2800
11752 #, no-wrap
11753 msgid ""
11754 " list-partitions\n"
11755 "\n"
11756 msgstr ""
11757
11758 #. type: textblock
11759 #: ../fish/guestfish-actions.pod:2802 ../src/guestfs-actions.pod:4276
11760 msgid "List all the partitions detected on all block devices."
11761 msgstr ""
11762
11763 #. type: textblock
11764 #: ../fish/guestfish-actions.pod:2804 ../src/guestfs-actions.pod:4278
11765 msgid "The full partition device names are returned, eg. C</dev/sda1>"
11766 msgstr ""
11767
11768 #. type: textblock
11769 #: ../fish/guestfish-actions.pod:2806
11770 msgid ""
11771 "This does not return logical volumes.  For that you will need to call "
11772 "L</lvs>."
11773 msgstr ""
11774
11775 #. type: =head2
11776 #: ../fish/guestfish-actions.pod:2811
11777 msgid "ll"
11778 msgstr ""
11779
11780 #. type: verbatim
11781 #: ../fish/guestfish-actions.pod:2813
11782 #, no-wrap
11783 msgid ""
11784 " ll directory\n"
11785 "\n"
11786 msgstr ""
11787
11788 #. type: textblock
11789 #: ../fish/guestfish-actions.pod:2815 ../src/guestfs-actions.pod:4297
11790 msgid ""
11791 "List the files in C<directory> (relative to the root directory, there is no "
11792 "cwd) in the format of 'ls -la'."
11793 msgstr ""
11794
11795 #. type: textblock
11796 #: ../fish/guestfish-actions.pod:2818 ../src/guestfs-actions.pod:4300
11797 msgid ""
11798 "This command is mostly useful for interactive sessions.  It is I<not> "
11799 "intended that you try to parse the output string."
11800 msgstr ""
11801
11802 #. type: =head2
11803 #: ../fish/guestfish-actions.pod:2821
11804 msgid "ln"
11805 msgstr ""
11806
11807 #. type: verbatim
11808 #: ../fish/guestfish-actions.pod:2823
11809 #, no-wrap
11810 msgid ""
11811 " ln target linkname\n"
11812 "\n"
11813 msgstr ""
11814
11815 #. type: textblock
11816 #: ../fish/guestfish-actions.pod:2825 ../src/guestfs-actions.pod:4315
11817 msgid "This command creates a hard link using the C<ln> command."
11818 msgstr ""
11819
11820 #. type: =head2
11821 #: ../fish/guestfish-actions.pod:2827
11822 msgid "ln-f"
11823 msgstr ""
11824
11825 #. type: verbatim
11826 #: ../fish/guestfish-actions.pod:2829
11827 #, no-wrap
11828 msgid ""
11829 " ln-f target linkname\n"
11830 "\n"
11831 msgstr ""
11832
11833 #. type: textblock
11834 #: ../fish/guestfish-actions.pod:2831 ../src/guestfs-actions.pod:4328
11835 msgid ""
11836 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
11837 "option removes the link (C<linkname>) if it exists already."
11838 msgstr ""
11839
11840 #. type: =head2
11841 #: ../fish/guestfish-actions.pod:2834
11842 msgid "ln-s"
11843 msgstr ""
11844
11845 #. type: verbatim
11846 #: ../fish/guestfish-actions.pod:2836
11847 #, no-wrap
11848 msgid ""
11849 " ln-s target linkname\n"
11850 "\n"
11851 msgstr ""
11852
11853 #. type: textblock
11854 #: ../fish/guestfish-actions.pod:2838 ../src/guestfs-actions.pod:4342
11855 msgid "This command creates a symbolic link using the C<ln -s> command."
11856 msgstr ""
11857
11858 #. type: =head2
11859 #: ../fish/guestfish-actions.pod:2840
11860 msgid "ln-sf"
11861 msgstr ""
11862
11863 #. type: verbatim
11864 #: ../fish/guestfish-actions.pod:2842
11865 #, no-wrap
11866 msgid ""
11867 " ln-sf target linkname\n"
11868 "\n"
11869 msgstr ""
11870
11871 #. type: textblock
11872 #: ../fish/guestfish-actions.pod:2844 ../src/guestfs-actions.pod:4355
11873 msgid ""
11874 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
11875 "option removes the link (C<linkname>) if it exists already."
11876 msgstr ""
11877
11878 #. type: =head2
11879 #: ../fish/guestfish-actions.pod:2847
11880 msgid "lremovexattr"
11881 msgstr ""
11882
11883 #. type: verbatim
11884 #: ../fish/guestfish-actions.pod:2849
11885 #, no-wrap
11886 msgid ""
11887 " lremovexattr xattr path\n"
11888 "\n"
11889 msgstr ""
11890
11891 #. type: textblock
11892 #: ../fish/guestfish-actions.pod:2851
11893 msgid ""
11894 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
11895 "it removes an extended attribute of the link itself."
11896 msgstr ""
11897
11898 #. type: =head2
11899 #: ../fish/guestfish-actions.pod:2855
11900 msgid "ls"
11901 msgstr ""
11902
11903 #. type: verbatim
11904 #: ../fish/guestfish-actions.pod:2857
11905 #, no-wrap
11906 msgid ""
11907 " ls directory\n"
11908 "\n"
11909 msgstr ""
11910
11911 #. type: textblock
11912 #: ../fish/guestfish-actions.pod:2859 ../src/guestfs-actions.pod:4383
11913 msgid ""
11914 "List the files in C<directory> (relative to the root directory, there is no "
11915 "cwd).  The '.' and '..' entries are not returned, but hidden files are "
11916 "shown."
11917 msgstr ""
11918
11919 #. type: textblock
11920 #: ../fish/guestfish-actions.pod:2863
11921 msgid ""
11922 "This command is mostly useful for interactive sessions.  Programs should "
11923 "probably use L</readdir> instead."
11924 msgstr ""
11925
11926 #. type: =head2
11927 #: ../fish/guestfish-actions.pod:2866
11928 msgid "lsetxattr"
11929 msgstr ""
11930
11931 #. type: verbatim
11932 #: ../fish/guestfish-actions.pod:2868
11933 #, no-wrap
11934 msgid ""
11935 " lsetxattr xattr val vallen path\n"
11936 "\n"
11937 msgstr ""
11938
11939 #. type: textblock
11940 #: ../fish/guestfish-actions.pod:2870
11941 msgid ""
11942 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
11943 "sets an extended attribute of the link itself."
11944 msgstr ""
11945
11946 #. type: =head2
11947 #: ../fish/guestfish-actions.pod:2874
11948 msgid "lstat"
11949 msgstr ""
11950
11951 #. type: verbatim
11952 #: ../fish/guestfish-actions.pod:2876
11953 #, no-wrap
11954 msgid ""
11955 " lstat path\n"
11956 "\n"
11957 msgstr ""
11958
11959 #. type: textblock
11960 #: ../fish/guestfish-actions.pod:2878 ../fish/guestfish-actions.pod:4678 ../src/guestfs-actions.pod:4419 ../src/guestfs-actions.pod:7200
11961 msgid "Returns file information for the given C<path>."
11962 msgstr ""
11963
11964 #. type: textblock
11965 #: ../fish/guestfish-actions.pod:2880
11966 msgid ""
11967 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
11968 "the link is stat-ed, not the file it refers to."
11969 msgstr ""
11970
11971 #. type: textblock
11972 #: ../fish/guestfish-actions.pod:2884 ../src/guestfs-actions.pod:4425
11973 msgid "This is the same as the C<lstat(2)> system call."
11974 msgstr ""
11975
11976 #. type: =head2
11977 #: ../fish/guestfish-actions.pod:2886
11978 msgid "lstatlist"
11979 msgstr ""
11980
11981 #. type: verbatim
11982 #: ../fish/guestfish-actions.pod:2888
11983 #, no-wrap
11984 msgid ""
11985 " lstatlist path 'names ...'\n"
11986 "\n"
11987 msgstr ""
11988
11989 #. type: textblock
11990 #: ../fish/guestfish-actions.pod:2890
11991 msgid ""
11992 "This call allows you to perform the L</lstat> operation on multiple files, "
11993 "where all files are in the directory C<path>.  C<names> is the list of files "
11994 "from this directory."
11995 msgstr ""
11996
11997 #. type: textblock
11998 #: ../fish/guestfish-actions.pod:2894 ../src/guestfs-actions.pod:4444
11999 msgid ""
12000 "On return you get a list of stat structs, with a one-to-one correspondence "
12001 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
12002 "then the C<ino> field of that structure is set to C<-1>."
12003 msgstr ""
12004
12005 #. type: textblock
12006 #: ../fish/guestfish-actions.pod:2899
12007 msgid ""
12008 "This call is intended for programs that want to efficiently list a directory "
12009 "contents without making many round-trips.  See also L</lxattrlist> for a "
12010 "similarly efficient call for getting extended attributes.  Very long "
12011 "directory listings might cause the protocol message size to be exceeded, "
12012 "causing this call to fail.  The caller must split up such requests into "
12013 "smaller groups of names."
12014 msgstr ""
12015
12016 #. type: =head2
12017 #: ../fish/guestfish-actions.pod:2907
12018 msgid "luks-add-key"
12019 msgstr ""
12020
12021 #. type: verbatim
12022 #: ../fish/guestfish-actions.pod:2909
12023 #, no-wrap
12024 msgid ""
12025 " luks-add-key device keyslot\n"
12026 "\n"
12027 msgstr ""
12028
12029 #. type: textblock
12030 #: ../fish/guestfish-actions.pod:2911 ../src/guestfs-actions.pod:4472
12031 msgid ""
12032 "This command adds a new key on LUKS device C<device>.  C<key> is any "
12033 "existing key, and is used to access the device.  C<newkey> is the new key to "
12034 "add.  C<keyslot> is the key slot that will be replaced."
12035 msgstr ""
12036
12037 #. type: textblock
12038 #: ../fish/guestfish-actions.pod:2916
12039 msgid ""
12040 "Note that if C<keyslot> already contains a key, then this command will "
12041 "fail.  You have to use L</luks-kill-slot> first to remove that key."
12042 msgstr ""
12043
12044 #. type: textblock
12045 #: ../fish/guestfish-actions.pod:2920 ../fish/guestfish-actions.pod:2942 ../fish/guestfish-actions.pod:2952 ../fish/guestfish-actions.pod:2963 ../fish/guestfish-actions.pod:2989 ../fish/guestfish-actions.pod:2999
12046 msgid ""
12047 "This command has one or more key or passphrase parameters.  Guestfish will "
12048 "prompt for these separately."
12049 msgstr ""
12050
12051 #. type: =head2
12052 #: ../fish/guestfish-actions.pod:2923
12053 msgid "luks-close"
12054 msgstr ""
12055
12056 #. type: verbatim
12057 #: ../fish/guestfish-actions.pod:2925
12058 #, no-wrap
12059 msgid ""
12060 " luks-close device\n"
12061 "\n"
12062 msgstr ""
12063
12064 #. type: textblock
12065 #: ../fish/guestfish-actions.pod:2927
12066 msgid ""
12067 "This closes a LUKS device that was created earlier by L</luks-open> or "
12068 "L</luks-open-ro>.  The C<device> parameter must be the name of the LUKS "
12069 "mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
12070 "underlying block device."
12071 msgstr ""
12072
12073 #. type: =head2
12074 #: ../fish/guestfish-actions.pod:2933
12075 msgid "luks-format"
12076 msgstr ""
12077
12078 #. type: verbatim
12079 #: ../fish/guestfish-actions.pod:2935
12080 #, no-wrap
12081 msgid ""
12082 " luks-format device keyslot\n"
12083 "\n"
12084 msgstr ""
12085
12086 #. type: textblock
12087 #: ../fish/guestfish-actions.pod:2937 ../src/guestfs-actions.pod:4513
12088 msgid ""
12089 "This command erases existing data on C<device> and formats the device as a "
12090 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
12091 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
12092 msgstr ""
12093
12094 #. type: =head2
12095 #: ../fish/guestfish-actions.pod:2945
12096 msgid "luks-format-cipher"
12097 msgstr ""
12098
12099 #. type: verbatim
12100 #: ../fish/guestfish-actions.pod:2947
12101 #, no-wrap
12102 msgid ""
12103 " luks-format-cipher device keyslot cipher\n"
12104 "\n"
12105 msgstr ""
12106
12107 #. type: textblock
12108 #: ../fish/guestfish-actions.pod:2949
12109 msgid ""
12110 "This command is the same as L</luks-format> but it also allows you to set "
12111 "the C<cipher> used."
12112 msgstr ""
12113
12114 #. type: =head2
12115 #: ../fish/guestfish-actions.pod:2955
12116 msgid "luks-kill-slot"
12117 msgstr ""
12118
12119 #. type: verbatim
12120 #: ../fish/guestfish-actions.pod:2957
12121 #, no-wrap
12122 msgid ""
12123 " luks-kill-slot device keyslot\n"
12124 "\n"
12125 msgstr ""
12126
12127 #. type: textblock
12128 #: ../fish/guestfish-actions.pod:2959 ../src/guestfs-actions.pod:4554
12129 msgid ""
12130 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
12131 "device C<device>.  C<key> must be one of the I<other> keys."
12132 msgstr ""
12133
12134 #. type: =head2
12135 #: ../fish/guestfish-actions.pod:2966
12136 msgid "luks-open"
12137 msgstr ""
12138
12139 #. type: verbatim
12140 #: ../fish/guestfish-actions.pod:2968
12141 #, no-wrap
12142 msgid ""
12143 " luks-open device mapname\n"
12144 "\n"
12145 msgstr ""
12146
12147 #. type: textblock
12148 #: ../fish/guestfish-actions.pod:2970 ../src/guestfs-actions.pod:4574
12149 msgid ""
12150 "This command opens a block device which has been encrypted according to the "
12151 "Linux Unified Key Setup (LUKS) standard."
12152 msgstr ""
12153
12154 #. type: textblock
12155 #: ../fish/guestfish-actions.pod:2973 ../src/guestfs-actions.pod:4577
12156 msgid "C<device> is the encrypted block device or partition."
12157 msgstr ""
12158
12159 #. type: textblock
12160 #: ../fish/guestfish-actions.pod:2975 ../src/guestfs-actions.pod:4579
12161 msgid ""
12162 "The caller must supply one of the keys associated with the LUKS block "
12163 "device, in the C<key> parameter."
12164 msgstr ""
12165
12166 #. type: textblock
12167 #: ../fish/guestfish-actions.pod:2978 ../src/guestfs-actions.pod:4582
12168 msgid ""
12169 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
12170 "writes to this block device are decrypted from and encrypted to the "
12171 "underlying C<device> respectively."
12172 msgstr ""
12173
12174 #. type: textblock
12175 #: ../fish/guestfish-actions.pod:2982
12176 msgid ""
12177 "If this block device contains LVM volume groups, then calling L</vgscan> "
12178 "followed by L</vg-activate-all> will make them visible."
12179 msgstr ""
12180
12181 #. type: textblock
12182 #: ../fish/guestfish-actions.pod:2986
12183 msgid "Use L</list-dm-devices> to list all device mapper devices."
12184 msgstr ""
12185
12186 #. type: =head2
12187 #: ../fish/guestfish-actions.pod:2992
12188 msgid "luks-open-ro"
12189 msgstr ""
12190
12191 #. type: verbatim
12192 #: ../fish/guestfish-actions.pod:2994
12193 #, no-wrap
12194 msgid ""
12195 " luks-open-ro device mapname\n"
12196 "\n"
12197 msgstr ""
12198
12199 #. type: textblock
12200 #: ../fish/guestfish-actions.pod:2996
12201 msgid ""
12202 "This is the same as L</luks-open> except that a read-only mapping is "
12203 "created."
12204 msgstr ""
12205
12206 #. type: =head2
12207 #: ../fish/guestfish-actions.pod:3002
12208 msgid "lvcreate"
12209 msgstr ""
12210
12211 #. type: verbatim
12212 #: ../fish/guestfish-actions.pod:3004
12213 #, no-wrap
12214 msgid ""
12215 " lvcreate logvol volgroup mbytes\n"
12216 "\n"
12217 msgstr ""
12218
12219 #. type: textblock
12220 #: ../fish/guestfish-actions.pod:3006 ../src/guestfs-actions.pod:4628
12221 msgid ""
12222 "This creates an LVM logical volume called C<logvol> on the volume group "
12223 "C<volgroup>, with C<size> megabytes."
12224 msgstr ""
12225
12226 #. type: =head2
12227 #: ../fish/guestfish-actions.pod:3009
12228 msgid "lvm-canonical-lv-name"
12229 msgstr ""
12230
12231 #. type: verbatim
12232 #: ../fish/guestfish-actions.pod:3011
12233 #, no-wrap
12234 msgid ""
12235 " lvm-canonical-lv-name lvname\n"
12236 "\n"
12237 msgstr ""
12238
12239 #. type: textblock
12240 #: ../fish/guestfish-actions.pod:3013 ../src/guestfs-actions.pod:4641
12241 msgid ""
12242 "This converts alternative naming schemes for LVs that you might find to the "
12243 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to "
12244 "C</dev/VG/LV>."
12245 msgstr ""
12246
12247 #. type: textblock
12248 #: ../fish/guestfish-actions.pod:3017 ../src/guestfs-actions.pod:4645
12249 msgid ""
12250 "This command returns an error if the C<lvname> parameter does not refer to a "
12251 "logical volume."
12252 msgstr ""
12253
12254 #. type: textblock
12255 #: ../fish/guestfish-actions.pod:3020
12256 msgid "See also L</is-lv>."
12257 msgstr ""
12258
12259 #. type: =head2
12260 #: ../fish/guestfish-actions.pod:3022
12261 msgid "lvm-clear-filter"
12262 msgstr ""
12263
12264 #. type: verbatim
12265 #: ../fish/guestfish-actions.pod:3024
12266 #, no-wrap
12267 msgid ""
12268 " lvm-clear-filter\n"
12269 "\n"
12270 msgstr ""
12271
12272 #. type: textblock
12273 #: ../fish/guestfish-actions.pod:3026
12274 msgid ""
12275 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
12276 "block device."
12277 msgstr ""
12278
12279 #. type: textblock
12280 #: ../fish/guestfish-actions.pod:3029 ../fish/guestfish-actions.pod:3057 ../src/guestfs-actions.pod:4663 ../src/guestfs-actions.pod:4702
12281 msgid "This command also clears the LVM cache and performs a volume group scan."
12282 msgstr ""
12283
12284 #. type: =head2
12285 #: ../fish/guestfish-actions.pod:3032
12286 msgid "lvm-remove-all"
12287 msgstr ""
12288
12289 #. type: verbatim
12290 #: ../fish/guestfish-actions.pod:3034
12291 #, no-wrap
12292 msgid ""
12293 " lvm-remove-all\n"
12294 "\n"
12295 msgstr ""
12296
12297 #. type: textblock
12298 #: ../fish/guestfish-actions.pod:3036 ../src/guestfs-actions.pod:4675
12299 msgid ""
12300 "This command removes all LVM logical volumes, volume groups and physical "
12301 "volumes."
12302 msgstr ""
12303
12304 #. type: =head2
12305 #: ../fish/guestfish-actions.pod:3039
12306 msgid "lvm-set-filter"
12307 msgstr ""
12308
12309 #. type: verbatim
12310 #: ../fish/guestfish-actions.pod:3041
12311 #, no-wrap
12312 msgid ""
12313 " lvm-set-filter 'devices ...'\n"
12314 "\n"
12315 msgstr ""
12316
12317 #. type: textblock
12318 #: ../fish/guestfish-actions.pod:3043 ../src/guestfs-actions.pod:4688
12319 msgid ""
12320 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
12321 "block devices in the list C<devices>, and will ignore all other attached "
12322 "block devices."
12323 msgstr ""
12324
12325 #. type: textblock
12326 #: ../fish/guestfish-actions.pod:3047 ../src/guestfs-actions.pod:4692
12327 msgid ""
12328 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
12329 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
12330 "there are two types of duplication possible: either cloned PVs/VGs which "
12331 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
12332 "same name.  In normal operation you cannot create this situation, but you "
12333 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
12334 "inside the LVM metadata."
12335 msgstr ""
12336
12337 #. type: textblock
12338 #: ../fish/guestfish-actions.pod:3060 ../src/guestfs-actions.pod:4705
12339 msgid "You can filter whole block devices or individual partitions."
12340 msgstr ""
12341
12342 #. type: textblock
12343 #: ../fish/guestfish-actions.pod:3062 ../src/guestfs-actions.pod:4707
12344 msgid ""
12345 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
12346 "filesystem), even if you are not filtering out that VG."
12347 msgstr ""
12348
12349 #. type: =head2
12350 #: ../fish/guestfish-actions.pod:3066
12351 msgid "lvremove"
12352 msgstr ""
12353
12354 #. type: verbatim
12355 #: ../fish/guestfish-actions.pod:3068
12356 #, no-wrap
12357 msgid ""
12358 " lvremove device\n"
12359 "\n"
12360 msgstr ""
12361
12362 #. type: textblock
12363 #: ../fish/guestfish-actions.pod:3070 ../src/guestfs-actions.pod:4721
12364 msgid ""
12365 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
12366 "LV, such as C</dev/VG/LV>."
12367 msgstr ""
12368
12369 #. type: textblock
12370 #: ../fish/guestfish-actions.pod:3073 ../src/guestfs-actions.pod:4724
12371 msgid ""
12372 "You can also remove all LVs in a volume group by specifying the VG name, "
12373 "C</dev/VG>."
12374 msgstr ""
12375
12376 #. type: =head2
12377 #: ../fish/guestfish-actions.pod:3076
12378 msgid "lvrename"
12379 msgstr ""
12380
12381 #. type: verbatim
12382 #: ../fish/guestfish-actions.pod:3078
12383 #, no-wrap
12384 msgid ""
12385 " lvrename logvol newlogvol\n"
12386 "\n"
12387 msgstr ""
12388
12389 #. type: textblock
12390 #: ../fish/guestfish-actions.pod:3080 ../src/guestfs-actions.pod:4738
12391 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
12392 msgstr ""
12393
12394 #. type: =head2
12395 #: ../fish/guestfish-actions.pod:3082
12396 msgid "lvresize"
12397 msgstr ""
12398
12399 #. type: verbatim
12400 #: ../fish/guestfish-actions.pod:3084
12401 #, no-wrap
12402 msgid ""
12403 " lvresize device mbytes\n"
12404 "\n"
12405 msgstr ""
12406
12407 #. type: textblock
12408 #: ../fish/guestfish-actions.pod:3086 ../src/guestfs-actions.pod:4751
12409 msgid ""
12410 "This resizes (expands or shrinks) an existing LVM logical volume to "
12411 "C<mbytes>.  When reducing, data in the reduced part is lost."
12412 msgstr ""
12413
12414 #. type: =head2
12415 #: ../fish/guestfish-actions.pod:3090
12416 msgid "lvresize-free"
12417 msgstr ""
12418
12419 #. type: verbatim
12420 #: ../fish/guestfish-actions.pod:3092
12421 #, no-wrap
12422 msgid ""
12423 " lvresize-free lv percent\n"
12424 "\n"
12425 msgstr ""
12426
12427 #. type: textblock
12428 #: ../fish/guestfish-actions.pod:3094 ../src/guestfs-actions.pod:4766
12429 msgid ""
12430 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
12431 "remaining free space in the volume group.  Commonly you would call this with "
12432 "pc = 100 which expands the logical volume as much as possible, using all "
12433 "remaining free space in the volume group."
12434 msgstr ""
12435
12436 #. type: =head2
12437 #: ../fish/guestfish-actions.pod:3100
12438 msgid "lvs"
12439 msgstr ""
12440
12441 #. type: verbatim
12442 #: ../fish/guestfish-actions.pod:3102
12443 #, no-wrap
12444 msgid ""
12445 " lvs\n"
12446 "\n"
12447 msgstr ""
12448
12449 #. type: textblock
12450 #: ../fish/guestfish-actions.pod:3104 ../src/guestfs-actions.pod:4781
12451 msgid ""
12452 "List all the logical volumes detected.  This is the equivalent of the "
12453 "L<lvs(8)> command."
12454 msgstr ""
12455
12456 #. type: textblock
12457 #: ../fish/guestfish-actions.pod:3107 ../src/guestfs-actions.pod:4784
12458 msgid ""
12459 "This returns a list of the logical volume device names "
12460 "(eg. C</dev/VolGroup00/LogVol00>)."
12461 msgstr ""
12462
12463 #. type: textblock
12464 #: ../fish/guestfish-actions.pod:3110
12465 msgid "See also L</lvs-full>, L</list-filesystems>."
12466 msgstr ""
12467
12468 #. type: =head2
12469 #: ../fish/guestfish-actions.pod:3112
12470 msgid "lvs-full"
12471 msgstr ""
12472
12473 #. type: verbatim
12474 #: ../fish/guestfish-actions.pod:3114
12475 #, no-wrap
12476 msgid ""
12477 " lvs-full\n"
12478 "\n"
12479 msgstr ""
12480
12481 #. type: textblock
12482 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4800
12483 msgid ""
12484 "List all the logical volumes detected.  This is the equivalent of the "
12485 "L<lvs(8)> command.  The \"full\" version includes all fields."
12486 msgstr ""
12487
12488 #. type: =head2
12489 #: ../fish/guestfish-actions.pod:3119
12490 msgid "lvuuid"
12491 msgstr ""
12492
12493 #. type: verbatim
12494 #: ../fish/guestfish-actions.pod:3121
12495 #, no-wrap
12496 msgid ""
12497 " lvuuid device\n"
12498 "\n"
12499 msgstr ""
12500
12501 #. type: textblock
12502 #: ../fish/guestfish-actions.pod:3123 ../src/guestfs-actions.pod:4815
12503 msgid "This command returns the UUID of the LVM LV C<device>."
12504 msgstr ""
12505
12506 #. type: =head2
12507 #: ../fish/guestfish-actions.pod:3125
12508 msgid "lxattrlist"
12509 msgstr ""
12510
12511 #. type: verbatim
12512 #: ../fish/guestfish-actions.pod:3127
12513 #, no-wrap
12514 msgid ""
12515 " lxattrlist path 'names ...'\n"
12516 "\n"
12517 msgstr ""
12518
12519 #. type: textblock
12520 #: ../fish/guestfish-actions.pod:3129 ../src/guestfs-actions.pod:4829
12521 msgid ""
12522 "This call allows you to get the extended attributes of multiple files, where "
12523 "all files are in the directory C<path>.  C<names> is the list of files from "
12524 "this directory."
12525 msgstr ""
12526
12527 #. type: textblock
12528 #: ../fish/guestfish-actions.pod:3133 ../src/guestfs-actions.pod:4833
12529 msgid ""
12530 "On return you get a flat list of xattr structs which must be interpreted "
12531 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
12532 "C<attrval> in this struct is zero-length to indicate there was an error "
12533 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
12534 "number (the number of following attributes for this file, which could be "
12535 "C<\"0\">).  Then after the first xattr struct are the zero or more "
12536 "attributes for the first named file.  This repeats for the second and "
12537 "subsequent files."
12538 msgstr ""
12539
12540 #. type: textblock
12541 #: ../fish/guestfish-actions.pod:3143
12542 msgid ""
12543 "This call is intended for programs that want to efficiently list a directory "
12544 "contents without making many round-trips.  See also L</lstatlist> for a "
12545 "similarly efficient call for getting standard stats.  Very long directory "
12546 "listings might cause the protocol message size to be exceeded, causing this "
12547 "call to fail.  The caller must split up such requests into smaller groups of "
12548 "names."
12549 msgstr ""
12550
12551 #. type: =head2
12552 #: ../fish/guestfish-actions.pod:3151
12553 msgid "mkdir"
12554 msgstr ""
12555
12556 #. type: verbatim
12557 #: ../fish/guestfish-actions.pod:3153
12558 #, no-wrap
12559 msgid ""
12560 " mkdir path\n"
12561 "\n"
12562 msgstr ""
12563
12564 #. type: textblock
12565 #: ../fish/guestfish-actions.pod:3155 ../src/guestfs-actions.pod:4863
12566 msgid "Create a directory named C<path>."
12567 msgstr ""
12568
12569 #. type: =head2
12570 #: ../fish/guestfish-actions.pod:3157
12571 msgid "mkdir-mode"
12572 msgstr ""
12573
12574 #. type: verbatim
12575 #: ../fish/guestfish-actions.pod:3159
12576 #, no-wrap
12577 msgid ""
12578 " mkdir-mode path mode\n"
12579 "\n"
12580 msgstr ""
12581
12582 #. type: textblock
12583 #: ../fish/guestfish-actions.pod:3161 ../src/guestfs-actions.pod:4876
12584 msgid ""
12585 "This command creates a directory, setting the initial permissions of the "
12586 "directory to C<mode>."
12587 msgstr ""
12588
12589 #. type: textblock
12590 #: ../fish/guestfish-actions.pod:3164 ../src/guestfs-actions.pod:4879
12591 msgid ""
12592 "For common Linux filesystems, the actual mode which is set will be C<mode & "
12593 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
12594 "other ways."
12595 msgstr ""
12596
12597 #. type: textblock
12598 #: ../fish/guestfish-actions.pod:3168
12599 msgid "See also L</mkdir>, L</umask>"
12600 msgstr ""
12601
12602 #. type: =head2
12603 #: ../fish/guestfish-actions.pod:3170
12604 msgid "mkdir-p"
12605 msgstr ""
12606
12607 #. type: verbatim
12608 #: ../fish/guestfish-actions.pod:3172
12609 #, no-wrap
12610 msgid ""
12611 " mkdir-p path\n"
12612 "\n"
12613 msgstr ""
12614
12615 #. type: textblock
12616 #: ../fish/guestfish-actions.pod:3174 ../src/guestfs-actions.pod:4895
12617 msgid ""
12618 "Create a directory named C<path>, creating any parent directories as "
12619 "necessary.  This is like the C<mkdir -p> shell command."
12620 msgstr ""
12621
12622 #. type: =head2
12623 #: ../fish/guestfish-actions.pod:3177
12624 msgid "mkdtemp"
12625 msgstr ""
12626
12627 #. type: verbatim
12628 #: ../fish/guestfish-actions.pod:3179
12629 #, no-wrap
12630 msgid ""
12631 " mkdtemp template\n"
12632 "\n"
12633 msgstr ""
12634
12635 #. type: textblock
12636 #: ../fish/guestfish-actions.pod:3181 ../src/guestfs-actions.pod:4908
12637 msgid ""
12638 "This command creates a temporary directory.  The C<template> parameter "
12639 "should be a full pathname for the temporary directory name with the final "
12640 "six characters being \"XXXXXX\"."
12641 msgstr ""
12642
12643 #. type: textblock
12644 #: ../fish/guestfish-actions.pod:3186 ../src/guestfs-actions.pod:4913
12645 msgid ""
12646 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
12647 "being suitable for Windows filesystems."
12648 msgstr ""
12649
12650 #. type: textblock
12651 #: ../fish/guestfish-actions.pod:3189 ../src/guestfs-actions.pod:4916
12652 msgid "The name of the temporary directory that was created is returned."
12653 msgstr ""
12654
12655 #. type: textblock
12656 #: ../fish/guestfish-actions.pod:3192 ../src/guestfs-actions.pod:4919
12657 msgid "The temporary directory is created with mode 0700 and is owned by root."
12658 msgstr ""
12659
12660 #. type: textblock
12661 #: ../fish/guestfish-actions.pod:3195 ../src/guestfs-actions.pod:4922
12662 msgid ""
12663 "The caller is responsible for deleting the temporary directory and its "
12664 "contents after use."
12665 msgstr ""
12666
12667 #. type: textblock
12668 #: ../fish/guestfish-actions.pod:3198 ../src/guestfs-actions.pod:4925
12669 msgid "See also: L<mkdtemp(3)>"
12670 msgstr ""
12671
12672 #. type: =head2
12673 #: ../fish/guestfish-actions.pod:3200
12674 msgid "mke2fs-J"
12675 msgstr ""
12676
12677 #. type: verbatim
12678 #: ../fish/guestfish-actions.pod:3202
12679 #, no-wrap
12680 msgid ""
12681 " mke2fs-J fstype blocksize device journal\n"
12682 "\n"
12683 msgstr ""
12684
12685 #. type: textblock
12686 #: ../fish/guestfish-actions.pod:3204 ../src/guestfs-actions.pod:4941
12687 msgid ""
12688 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12689 "C<journal>.  It is equivalent to the command:"
12690 msgstr ""
12691
12692 #. type: verbatim
12693 #: ../fish/guestfish-actions.pod:3208 ../src/guestfs-actions.pod:4945
12694 #, no-wrap
12695 msgid ""
12696 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
12697 "\n"
12698 msgstr ""
12699
12700 #. type: textblock
12701 #: ../fish/guestfish-actions.pod:3210
12702 msgid "See also L</mke2journal>."
12703 msgstr ""
12704
12705 #. type: =head2
12706 #: ../fish/guestfish-actions.pod:3212
12707 msgid "mke2fs-JL"
12708 msgstr ""
12709
12710 #. type: verbatim
12711 #: ../fish/guestfish-actions.pod:3214
12712 #, no-wrap
12713 msgid ""
12714 " mke2fs-JL fstype blocksize device label\n"
12715 "\n"
12716 msgstr ""
12717
12718 #. type: textblock
12719 #: ../fish/guestfish-actions.pod:3216 ../src/guestfs-actions.pod:4962
12720 msgid ""
12721 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12722 "the journal labeled C<label>."
12723 msgstr ""
12724
12725 #. type: textblock
12726 #: ../fish/guestfish-actions.pod:3219
12727 msgid "See also L</mke2journal-L>."
12728 msgstr ""
12729
12730 #. type: =head2
12731 #: ../fish/guestfish-actions.pod:3221
12732 msgid "mke2fs-JU"
12733 msgstr ""
12734
12735 #. type: verbatim
12736 #: ../fish/guestfish-actions.pod:3223
12737 #, no-wrap
12738 msgid ""
12739 " mke2fs-JU fstype blocksize device uuid\n"
12740 "\n"
12741 msgstr ""
12742
12743 #. type: textblock
12744 #: ../fish/guestfish-actions.pod:3225 ../src/guestfs-actions.pod:4980
12745 msgid ""
12746 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12747 "the journal with UUID C<uuid>."
12748 msgstr ""
12749
12750 #. type: textblock
12751 #: ../fish/guestfish-actions.pod:3228
12752 msgid "See also L</mke2journal-U>."
12753 msgstr ""
12754
12755 #. type: =head2
12756 #: ../fish/guestfish-actions.pod:3230
12757 msgid "mke2journal"
12758 msgstr ""
12759
12760 #. type: verbatim
12761 #: ../fish/guestfish-actions.pod:3232
12762 #, no-wrap
12763 msgid ""
12764 " mke2journal blocksize device\n"
12765 "\n"
12766 msgstr ""
12767
12768 #. type: textblock
12769 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4996
12770 msgid ""
12771 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
12772 "command:"
12773 msgstr ""
12774
12775 #. type: verbatim
12776 #: ../fish/guestfish-actions.pod:3237 ../src/guestfs-actions.pod:4999
12777 #, no-wrap
12778 msgid ""
12779 " mke2fs -O journal_dev -b blocksize device\n"
12780 "\n"
12781 msgstr ""
12782
12783 #. type: =head2
12784 #: ../fish/guestfish-actions.pod:3239
12785 msgid "mke2journal-L"
12786 msgstr ""
12787
12788 #. type: verbatim
12789 #: ../fish/guestfish-actions.pod:3241
12790 #, no-wrap
12791 msgid ""
12792 " mke2journal-L blocksize label device\n"
12793 "\n"
12794 msgstr ""
12795
12796 #. type: textblock
12797 #: ../fish/guestfish-actions.pod:3243 ../src/guestfs-actions.pod:5013
12798 msgid "This creates an ext2 external journal on C<device> with label C<label>."
12799 msgstr ""
12800
12801 #. type: =head2
12802 #: ../fish/guestfish-actions.pod:3245
12803 msgid "mke2journal-U"
12804 msgstr ""
12805
12806 #. type: verbatim
12807 #: ../fish/guestfish-actions.pod:3247
12808 #, no-wrap
12809 msgid ""
12810 " mke2journal-U blocksize uuid device\n"
12811 "\n"
12812 msgstr ""
12813
12814 #. type: textblock
12815 #: ../fish/guestfish-actions.pod:3249 ../src/guestfs-actions.pod:5027
12816 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
12817 msgstr ""
12818
12819 #. type: =head2
12820 #: ../fish/guestfish-actions.pod:3251
12821 msgid "mkfifo"
12822 msgstr ""
12823
12824 #. type: verbatim
12825 #: ../fish/guestfish-actions.pod:3253
12826 #, no-wrap
12827 msgid ""
12828 " mkfifo mode path\n"
12829 "\n"
12830 msgstr ""
12831
12832 #. type: textblock
12833 #: ../fish/guestfish-actions.pod:3255
12834 msgid ""
12835 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
12836 "is just a convenient wrapper around L</mknod>."
12837 msgstr ""
12838
12839 #. type: =head2
12840 #: ../fish/guestfish-actions.pod:3261
12841 msgid "mkfs"
12842 msgstr ""
12843
12844 #. type: verbatim
12845 #: ../fish/guestfish-actions.pod:3263
12846 #, no-wrap
12847 msgid ""
12848 " mkfs fstype device\n"
12849 "\n"
12850 msgstr ""
12851
12852 #. type: textblock
12853 #: ../fish/guestfish-actions.pod:3265 ../src/guestfs-actions.pod:5057
12854 msgid ""
12855 "This creates a filesystem on C<device> (usually a partition or LVM logical "
12856 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
12857 msgstr ""
12858
12859 #. type: =head2
12860 #: ../fish/guestfish-actions.pod:3269
12861 msgid "mkfs-b"
12862 msgstr ""
12863
12864 #. type: verbatim
12865 #: ../fish/guestfish-actions.pod:3271
12866 #, no-wrap
12867 msgid ""
12868 " mkfs-b fstype blocksize device\n"
12869 "\n"
12870 msgstr ""
12871
12872 #. type: textblock
12873 #: ../fish/guestfish-actions.pod:3273
12874 msgid ""
12875 "This call is similar to L</mkfs>, but it allows you to control the block "
12876 "size of the resulting filesystem.  Supported block sizes depend on the "
12877 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
12878 msgstr ""
12879
12880 #. type: textblock
12881 #: ../fish/guestfish-actions.pod:3278 ../fish/guestfish-actions.pod:3305 ../src/guestfs-actions.pod:5085 ../src/guestfs-actions.pod:5123
12882 msgid ""
12883 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
12884 "cluster size."
12885 msgstr ""
12886
12887 #. type: textblock
12888 #: ../fish/guestfish-actions.pod:3281
12889 msgid ""
12890 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
12891 "instead."
12892 msgstr ""
12893
12894 #. type: =head2
12895 #: ../fish/guestfish-actions.pod:3288
12896 msgid "mkfs-opts"
12897 msgstr ""
12898
12899 #. type: verbatim
12900 #: ../fish/guestfish-actions.pod:3290
12901 #, no-wrap
12902 msgid ""
12903 " mkfs-opts fstype device [blocksize:N] [features:..] [inode:N] "
12904 "[sectorsize:N]\n"
12905 "\n"
12906 msgstr ""
12907
12908 #. type: textblock
12909 #: ../fish/guestfish-actions.pod:3292 ../src/guestfs-actions.pod:5110
12910 msgid ""
12911 "This function creates a filesystem on C<device>.  The filesystem type is "
12912 "C<fstype>, for example C<ext3>."
12913 msgstr ""
12914
12915 #. type: =item
12916 #: ../fish/guestfish-actions.pod:3299 ../src/guestfs-actions.pod:5117
12917 msgid "C<blocksize>"
12918 msgstr ""
12919
12920 #. type: textblock
12921 #: ../fish/guestfish-actions.pod:3301 ../src/guestfs-actions.pod:5119
12922 msgid ""
12923 "The filesystem block size.  Supported block sizes depend on the filesystem "
12924 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
12925 "filesystems."
12926 msgstr ""
12927
12928 #. type: textblock
12929 #: ../fish/guestfish-actions.pod:3308 ../src/guestfs-actions.pod:5126
12930 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
12931 msgstr ""
12932
12933 #. type: =item
12934 #: ../fish/guestfish-actions.pod:3310 ../src/guestfs-actions.pod:5128
12935 msgid "C<features>"
12936 msgstr ""
12937
12938 #. type: textblock
12939 #: ../fish/guestfish-actions.pod:3312 ../src/guestfs-actions.pod:5130
12940 msgid "This passes the I<-O> parameter to the external mkfs program."
12941 msgstr ""
12942
12943 #. type: textblock
12944 #: ../fish/guestfish-actions.pod:3314 ../src/guestfs-actions.pod:5132
12945 msgid ""
12946 "For certain filesystem types, this allows extra filesystem features to be "
12947 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
12948 msgstr ""
12949
12950 #. type: textblock
12951 #: ../fish/guestfish-actions.pod:3318 ../src/guestfs-actions.pod:5136
12952 msgid ""
12953 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
12954 "type."
12955 msgstr ""
12956
12957 #. type: =item
12958 #: ../fish/guestfish-actions.pod:3321 ../src/guestfs-actions.pod:5139
12959 msgid "C<inode>"
12960 msgstr ""
12961
12962 #. type: textblock
12963 #: ../fish/guestfish-actions.pod:3323 ../src/guestfs-actions.pod:5141
12964 msgid ""
12965 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
12966 "sets the inode size (only for ext2/3/4 filesystems at present)."
12967 msgstr ""
12968
12969 #. type: =item
12970 #: ../fish/guestfish-actions.pod:3326 ../src/guestfs-actions.pod:5144
12971 msgid "C<sectorsize>"
12972 msgstr ""
12973
12974 #. type: textblock
12975 #: ../fish/guestfish-actions.pod:3328 ../src/guestfs-actions.pod:5146
12976 msgid ""
12977 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
12978 "sets sector size for ufs filesystem."
12979 msgstr ""
12980
12981 #. type: =head2
12982 #: ../fish/guestfish-actions.pod:3335
12983 msgid "mkmountpoint"
12984 msgstr ""
12985
12986 #. type: verbatim
12987 #: ../fish/guestfish-actions.pod:3337
12988 #, no-wrap
12989 msgid ""
12990 " mkmountpoint exemptpath\n"
12991 "\n"
12992 msgstr ""
12993
12994 #. type: textblock
12995 #: ../fish/guestfish-actions.pod:3339
12996 msgid ""
12997 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
12998 "to create extra mountpoints before mounting the first filesystem."
12999 msgstr ""
13000
13001 #. type: textblock
13002 #: ../fish/guestfish-actions.pod:3343 ../src/guestfs-actions.pod:5189
13003 msgid ""
13004 "These calls are I<only> necessary in some very limited circumstances, mainly "
13005 "the case where you want to mount a mix of unrelated and/or read-only "
13006 "filesystems together."
13007 msgstr ""
13008
13009 #. type: textblock
13010 #: ../fish/guestfish-actions.pod:3347 ../src/guestfs-actions.pod:5193
13011 msgid ""
13012 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
13013 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
13014 "inside that.  You can unpack this as follows in guestfish:"
13015 msgstr ""
13016
13017 #. type: verbatim
13018 #: ../fish/guestfish-actions.pod:3352 ../src/guestfs-actions.pod:5198
13019 #, no-wrap
13020 msgid ""
13021 " add-ro Fedora-11-i686-Live.iso\n"
13022 " run\n"
13023 " mkmountpoint /cd\n"
13024 " mkmountpoint /sqsh\n"
13025 " mkmountpoint /ext3fs\n"
13026 " mount /dev/sda /cd\n"
13027 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13028 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13029 "\n"
13030 msgstr ""
13031
13032 #. type: textblock
13033 #: ../fish/guestfish-actions.pod:3361 ../src/guestfs-actions.pod:5207
13034 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
13035 msgstr ""
13036
13037 #. type: textblock
13038 #: ../fish/guestfish-actions.pod:3363
13039 msgid ""
13040 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
13041 "unexpected errors if you try to mix these calls.  It is safest to manually "
13042 "unmount filesystems and remove mountpoints after use."
13043 msgstr ""
13044
13045 #. type: textblock
13046 #: ../fish/guestfish-actions.pod:3367
13047 msgid ""
13048 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
13049 "for this to work for manual mountpoints, you must ensure that the innermost "
13050 "mountpoints have the longest pathnames, as in the example code above."
13051 msgstr ""
13052
13053 #. type: textblock
13054 #: ../fish/guestfish-actions.pod:3372 ../src/guestfs-actions.pod:5218
13055 msgid "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
13056 msgstr ""
13057
13058 #. type: textblock
13059 #: ../fish/guestfish-actions.pod:3374
13060 msgid ""
13061 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
13062 "L</umount-all> to be called when the handle is closed which can also trigger "
13063 "these issues."
13064 msgstr ""
13065
13066 #. type: =head2
13067 #: ../fish/guestfish-actions.pod:3378
13068 msgid "mknod"
13069 msgstr ""
13070
13071 #. type: verbatim
13072 #: ../fish/guestfish-actions.pod:3380
13073 #, no-wrap
13074 msgid ""
13075 " mknod mode devmajor devminor path\n"
13076 "\n"
13077 msgstr ""
13078
13079 #. type: textblock
13080 #: ../fish/guestfish-actions.pod:3382 ../src/guestfs-actions.pod:5237
13081 msgid ""
13082 "This call creates block or character special devices, or named pipes "
13083 "(FIFOs)."
13084 msgstr ""
13085
13086 #. type: textblock
13087 #: ../fish/guestfish-actions.pod:3385 ../src/guestfs-actions.pod:5240
13088 msgid ""
13089 "The C<mode> parameter should be the mode, using the standard constants.  "
13090 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
13091 "used when creating block and character special devices."
13092 msgstr ""
13093
13094 #. type: textblock
13095 #: ../fish/guestfish-actions.pod:3390
13096 msgid ""
13097 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
13098 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
13099 "regular file).  These constants are available in the standard Linux header "
13100 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
13101 "wrappers around this command which bitwise OR in the appropriate constant "
13102 "for you."
13103 msgstr ""
13104
13105 #. type: =head2
13106 #: ../fish/guestfish-actions.pod:3400
13107 msgid "mknod-b"
13108 msgstr ""
13109
13110 #. type: verbatim
13111 #: ../fish/guestfish-actions.pod:3402
13112 #, no-wrap
13113 msgid ""
13114 " mknod-b mode devmajor devminor path\n"
13115 "\n"
13116 msgstr ""
13117
13118 #. type: textblock
13119 #: ../fish/guestfish-actions.pod:3404
13120 msgid ""
13121 "This call creates a block device node called C<path> with mode C<mode> and "
13122 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13123 "wrapper around L</mknod>."
13124 msgstr ""
13125
13126 #. type: =head2
13127 #: ../fish/guestfish-actions.pod:3410
13128 msgid "mknod-c"
13129 msgstr ""
13130
13131 #. type: verbatim
13132 #: ../fish/guestfish-actions.pod:3412
13133 #, no-wrap
13134 msgid ""
13135 " mknod-c mode devmajor devminor path\n"
13136 "\n"
13137 msgstr ""
13138
13139 #. type: textblock
13140 #: ../fish/guestfish-actions.pod:3414
13141 msgid ""
13142 "This call creates a char device node called C<path> with mode C<mode> and "
13143 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13144 "wrapper around L</mknod>."
13145 msgstr ""
13146
13147 #. type: =head2
13148 #: ../fish/guestfish-actions.pod:3420
13149 msgid "mkswap"
13150 msgstr ""
13151
13152 #. type: verbatim
13153 #: ../fish/guestfish-actions.pod:3422
13154 #, no-wrap
13155 msgid ""
13156 " mkswap device\n"
13157 "\n"
13158 msgstr ""
13159
13160 #. type: textblock
13161 #: ../fish/guestfish-actions.pod:3424 ../src/guestfs-actions.pod:5303
13162 msgid "Create a swap partition on C<device>."
13163 msgstr ""
13164
13165 #. type: =head2
13166 #: ../fish/guestfish-actions.pod:3426
13167 msgid "mkswap-L"
13168 msgstr ""
13169
13170 #. type: verbatim
13171 #: ../fish/guestfish-actions.pod:3428
13172 #, no-wrap
13173 msgid ""
13174 " mkswap-L label device\n"
13175 "\n"
13176 msgstr ""
13177
13178 #. type: textblock
13179 #: ../fish/guestfish-actions.pod:3430 ../src/guestfs-actions.pod:5316
13180 msgid "Create a swap partition on C<device> with label C<label>."
13181 msgstr ""
13182
13183 #. type: textblock
13184 #: ../fish/guestfish-actions.pod:3432 ../src/guestfs-actions.pod:5318
13185 msgid ""
13186 "Note that you cannot attach a swap label to a block device "
13187 "(eg. C</dev/sda>), just to a partition.  This appears to be a limitation of "
13188 "the kernel or swap tools."
13189 msgstr ""
13190
13191 #. type: =head2
13192 #: ../fish/guestfish-actions.pod:3436
13193 msgid "mkswap-U"
13194 msgstr ""
13195
13196 #. type: verbatim
13197 #: ../fish/guestfish-actions.pod:3438
13198 #, no-wrap
13199 msgid ""
13200 " mkswap-U uuid device\n"
13201 "\n"
13202 msgstr ""
13203
13204 #. type: textblock
13205 #: ../fish/guestfish-actions.pod:3440 ../src/guestfs-actions.pod:5333
13206 msgid "Create a swap partition on C<device> with UUID C<uuid>."
13207 msgstr ""
13208
13209 #. type: =head2
13210 #: ../fish/guestfish-actions.pod:3442
13211 msgid "mkswap-file"
13212 msgstr ""
13213
13214 #. type: verbatim
13215 #: ../fish/guestfish-actions.pod:3444
13216 #, no-wrap
13217 msgid ""
13218 " mkswap-file path\n"
13219 "\n"
13220 msgstr ""
13221
13222 #. type: textblock
13223 #: ../fish/guestfish-actions.pod:3446 ../src/guestfs-actions.pod:5345
13224 msgid "Create a swap file."
13225 msgstr ""
13226
13227 #. type: textblock
13228 #: ../fish/guestfish-actions.pod:3448
13229 msgid ""
13230 "This command just writes a swap file signature to an existing file.  To "
13231 "create the file itself, use something like L</fallocate>."
13232 msgstr ""
13233
13234 #. type: =head2
13235 #: ../fish/guestfish-actions.pod:3451
13236 msgid "modprobe"
13237 msgstr ""
13238
13239 #. type: verbatim
13240 #: ../fish/guestfish-actions.pod:3453
13241 #, no-wrap
13242 msgid ""
13243 " modprobe modulename\n"
13244 "\n"
13245 msgstr ""
13246
13247 #. type: textblock
13248 #: ../fish/guestfish-actions.pod:3455 ../src/guestfs-actions.pod:5360
13249 msgid "This loads a kernel module in the appliance."
13250 msgstr ""
13251
13252 #. type: textblock
13253 #: ../fish/guestfish-actions.pod:3457 ../src/guestfs-actions.pod:5362
13254 msgid ""
13255 "The kernel module must have been whitelisted when libguestfs was built (see "
13256 "C<appliance/kmod.whitelist.in> in the source)."
13257 msgstr ""
13258
13259 #. type: =head2
13260 #: ../fish/guestfish-actions.pod:3460
13261 msgid "mount"
13262 msgstr ""
13263
13264 #. type: verbatim
13265 #: ../fish/guestfish-actions.pod:3462
13266 #, no-wrap
13267 msgid ""
13268 " mount device mountpoint\n"
13269 "\n"
13270 msgstr ""
13271
13272 #. type: textblock
13273 #: ../fish/guestfish-actions.pod:3464 ../src/guestfs-actions.pod:5376
13274 msgid ""
13275 "Mount a guest disk at a position in the filesystem.  Block devices are named "
13276 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
13277 "those block devices contain partitions, they will have the usual names "
13278 "(eg. C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
13279 msgstr ""
13280
13281 #. type: textblock
13282 #: ../fish/guestfish-actions.pod:3470 ../src/guestfs-actions.pod:5382
13283 msgid ""
13284 "The rules are the same as for L<mount(2)>: A filesystem must first be "
13285 "mounted on C</> before others can be mounted.  Other filesystems can only be "
13286 "mounted on directories which already exist."
13287 msgstr ""
13288
13289 #. type: textblock
13290 #: ../fish/guestfish-actions.pod:3475 ../src/guestfs-actions.pod:5387
13291 msgid ""
13292 "The mounted filesystem is writable, if we have sufficient permissions on the "
13293 "underlying device."
13294 msgstr ""
13295
13296 #. type: textblock
13297 #: ../fish/guestfish-actions.pod:3478
13298 msgid ""
13299 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
13300 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
13301 "problems for users.  If your program might need to work with older versions "
13302 "of libguestfs, use L</mount-options> instead (using an empty string for the "
13303 "first parameter if you don't want any options)."
13304 msgstr ""
13305
13306 #. type: =head2
13307 #: ../fish/guestfish-actions.pod:3485
13308 msgid "mount-9p"
13309 msgstr ""
13310
13311 #. type: verbatim
13312 #: ../fish/guestfish-actions.pod:3487
13313 #, no-wrap
13314 msgid ""
13315 " mount-9p mounttag mountpoint [options:..]\n"
13316 "\n"
13317 msgstr ""
13318
13319 #. type: textblock
13320 #: ../fish/guestfish-actions.pod:3489 ../src/guestfs-actions.pod:5416
13321 msgid ""
13322 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
13323 "C<mountpoint>."
13324 msgstr ""
13325
13326 #. type: textblock
13327 #: ../fish/guestfish-actions.pod:3492 ../src/guestfs-actions.pod:5419
13328 msgid ""
13329 "If required, C<trans=virtio> will be automatically added to the options.  "
13330 "Any other options required can be passed in the optional C<options> "
13331 "parameter."
13332 msgstr ""
13333
13334 #. type: =head2
13335 #: ../fish/guestfish-actions.pod:3498
13336 msgid "mount-loop"
13337 msgstr ""
13338
13339 #. type: verbatim
13340 #: ../fish/guestfish-actions.pod:3500
13341 #, no-wrap
13342 msgid ""
13343 " mount-loop file mountpoint\n"
13344 "\n"
13345 msgstr ""
13346
13347 #. type: textblock
13348 #: ../fish/guestfish-actions.pod:3502 ../src/guestfs-actions.pod:5458
13349 msgid ""
13350 "This command lets you mount C<file> (a filesystem image in a file) on a "
13351 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
13352 "mountpoint>."
13353 msgstr ""
13354
13355 #. type: =head2
13356 #: ../fish/guestfish-actions.pod:3506
13357 msgid "mount-options"
13358 msgstr ""
13359
13360 #. type: verbatim
13361 #: ../fish/guestfish-actions.pod:3508
13362 #, no-wrap
13363 msgid ""
13364 " mount-options options device mountpoint\n"
13365 "\n"
13366 msgstr ""
13367
13368 #. type: textblock
13369 #: ../fish/guestfish-actions.pod:3510
13370 msgid ""
13371 "This is the same as the L</mount> command, but it allows you to set the "
13372 "mount options as for the L<mount(8)> I<-o> flag."
13373 msgstr ""
13374
13375 #. type: textblock
13376 #: ../fish/guestfish-actions.pod:3514 ../src/guestfs-actions.pod:5478
13377 msgid ""
13378 "If the C<options> parameter is an empty string, then no options are passed "
13379 "(all options default to whatever the filesystem uses)."
13380 msgstr ""
13381
13382 #. type: =head2
13383 #: ../fish/guestfish-actions.pod:3518
13384 msgid "mount-ro"
13385 msgstr ""
13386
13387 #. type: verbatim
13388 #: ../fish/guestfish-actions.pod:3520
13389 #, no-wrap
13390 msgid ""
13391 " mount-ro device mountpoint\n"
13392 "\n"
13393 msgstr ""
13394
13395 #. type: textblock
13396 #: ../fish/guestfish-actions.pod:3522
13397 msgid ""
13398 "This is the same as the L</mount> command, but it mounts the filesystem with "
13399 "the read-only (I<-o ro>) flag."
13400 msgstr ""
13401
13402 #. type: =head2
13403 #: ../fish/guestfish-actions.pod:3525
13404 msgid "mount-vfs"
13405 msgstr ""
13406
13407 #. type: verbatim
13408 #: ../fish/guestfish-actions.pod:3527
13409 #, no-wrap
13410 msgid ""
13411 " mount-vfs options vfstype device mountpoint\n"
13412 "\n"
13413 msgstr ""
13414
13415 #. type: textblock
13416 #: ../fish/guestfish-actions.pod:3529
13417 msgid ""
13418 "This is the same as the L</mount> command, but it allows you to set both the "
13419 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
13420 msgstr ""
13421
13422 #. type: =head2
13423 #: ../fish/guestfish-actions.pod:3533
13424 msgid "mountpoints"
13425 msgstr ""
13426
13427 #. type: verbatim
13428 #: ../fish/guestfish-actions.pod:3535
13429 #, no-wrap
13430 msgid ""
13431 " mountpoints\n"
13432 "\n"
13433 msgstr ""
13434
13435 #. type: textblock
13436 #: ../fish/guestfish-actions.pod:3537
13437 msgid ""
13438 "This call is similar to L</mounts>.  That call returns a list of devices.  "
13439 "This one returns a hash table (map) of device name to directory where the "
13440 "device is mounted."
13441 msgstr ""
13442
13443 #. type: =head2
13444 #: ../fish/guestfish-actions.pod:3541
13445 msgid "mounts"
13446 msgstr ""
13447
13448 #. type: verbatim
13449 #: ../fish/guestfish-actions.pod:3543
13450 #, no-wrap
13451 msgid ""
13452 " mounts\n"
13453 "\n"
13454 msgstr ""
13455
13456 #. type: textblock
13457 #: ../fish/guestfish-actions.pod:3545 ../src/guestfs-actions.pod:5539
13458 msgid ""
13459 "This returns the list of currently mounted filesystems.  It returns the list "
13460 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
13461 msgstr ""
13462
13463 #. type: textblock
13464 #: ../fish/guestfish-actions.pod:3548 ../src/guestfs-actions.pod:5542
13465 msgid "Some internal mounts are not shown."
13466 msgstr ""
13467
13468 #. type: textblock
13469 #: ../fish/guestfish-actions.pod:3550
13470 msgid "See also: L</mountpoints>"
13471 msgstr ""
13472
13473 #. type: =head2
13474 #: ../fish/guestfish-actions.pod:3552
13475 msgid "mv"
13476 msgstr ""
13477
13478 #. type: verbatim
13479 #: ../fish/guestfish-actions.pod:3554
13480 #, no-wrap
13481 msgid ""
13482 " mv src dest\n"
13483 "\n"
13484 msgstr ""
13485
13486 #. type: textblock
13487 #: ../fish/guestfish-actions.pod:3556 ../src/guestfs-actions.pod:5559
13488 msgid ""
13489 "This moves a file from C<src> to C<dest> where C<dest> is either a "
13490 "destination filename or destination directory."
13491 msgstr ""
13492
13493 #. type: =head2
13494 #: ../fish/guestfish-actions.pod:3559
13495 msgid "ntfs-3g-probe"
13496 msgstr ""
13497
13498 #. type: verbatim
13499 #: ../fish/guestfish-actions.pod:3561
13500 #, no-wrap
13501 msgid ""
13502 " ntfs-3g-probe true|false device\n"
13503 "\n"
13504 msgstr ""
13505
13506 #. type: textblock
13507 #: ../fish/guestfish-actions.pod:3563 ../src/guestfs-actions.pod:5573
13508 msgid ""
13509 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
13510 "C<device> for mountability.  (Not all NTFS volumes can be mounted "
13511 "read-write, and some cannot be mounted at all)."
13512 msgstr ""
13513
13514 #. type: textblock
13515 #: ../fish/guestfish-actions.pod:3567 ../src/guestfs-actions.pod:5577
13516 msgid ""
13517 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
13518 "can be mounted read-write.  Set it to false if you want to test if the "
13519 "volume can be mounted read-only."
13520 msgstr ""
13521
13522 #. type: textblock
13523 #: ../fish/guestfish-actions.pod:3571 ../src/guestfs-actions.pod:5581
13524 msgid ""
13525 "The return value is an integer which C<0> if the operation would succeed, or "
13526 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
13527 msgstr ""
13528
13529 #. type: =head2
13530 #: ../fish/guestfish-actions.pod:3575
13531 msgid "ntfsresize"
13532 msgstr ""
13533
13534 #. type: verbatim
13535 #: ../fish/guestfish-actions.pod:3577
13536 #, no-wrap
13537 msgid ""
13538 " ntfsresize device\n"
13539 "\n"
13540 msgstr ""
13541
13542 #. type: textblock
13543 #: ../fish/guestfish-actions.pod:3579 ../fish/guestfish-actions.pod:3603 ../src/guestfs-actions.pod:5602 ../src/guestfs-actions.pod:5634
13544 msgid ""
13545 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
13546 "size of the underlying device."
13547 msgstr ""
13548
13549 #. type: textblock
13550 #: ../fish/guestfish-actions.pod:3582 ../src/guestfs-actions.pod:5605
13551 msgid ""
13552 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
13553 "consistency check (for safety).  You have to boot into Windows to perform "
13554 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
13555 "resize filesystems which have been marked in this way.  So in effect it is "
13556 "not possible to call ntfsresize multiple times on a single filesystem "
13557 "without booting into Windows between each resize."
13558 msgstr ""
13559
13560 #. type: textblock
13561 #: ../fish/guestfish-actions.pod:3590 ../fish/guestfish-actions.pod:3629 ../src/guestfs-actions.pod:5613 ../src/guestfs-actions.pod:5660
13562 msgid "See also L<ntfsresize(8)>."
13563 msgstr ""
13564
13565 #. type: textblock
13566 #: ../fish/guestfish-actions.pod:3592 ../fish/guestfish-actions.pod:3640
13567 msgid ""
13568 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
13569 "call instead."
13570 msgstr ""
13571
13572 #. type: =head2
13573 #: ../fish/guestfish-actions.pod:3599
13574 msgid "ntfsresize-opts"
13575 msgstr ""
13576
13577 #. type: verbatim
13578 #: ../fish/guestfish-actions.pod:3601
13579 #, no-wrap
13580 msgid ""
13581 " ntfsresize-opts device [size:N] [force:true|false]\n"
13582 "\n"
13583 msgstr ""
13584
13585 #. type: textblock
13586 #: ../fish/guestfish-actions.pod:3612 ../src/guestfs-actions.pod:5643
13587 msgid ""
13588 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
13589 "resized to fit the container (eg. partition)."
13590 msgstr ""
13591
13592 #. type: =item
13593 #: ../fish/guestfish-actions.pod:3615 ../src/guestfs-actions.pod:5646
13594 msgid "C<force>"
13595 msgstr ""
13596
13597 #. type: textblock
13598 #: ../fish/guestfish-actions.pod:3617 ../src/guestfs-actions.pod:5648
13599 msgid ""
13600 "If this option is true, then force the resize of the filesystem even if the "
13601 "filesystem is marked as requiring a consistency check."
13602 msgstr ""
13603
13604 #. type: textblock
13605 #: ../fish/guestfish-actions.pod:3620
13606 msgid ""
13607 "After the resize operation, the filesystem is always marked as requiring a "
13608 "consistency check (for safety).  You have to boot into Windows to perform "
13609 "this check and clear this condition.  If you I<don't> set the C<force> "
13610 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
13611 "a single filesystem without booting into Windows between each resize."
13612 msgstr ""
13613
13614 #. type: =head2
13615 #: ../fish/guestfish-actions.pod:3633
13616 msgid "ntfsresize-size"
13617 msgstr ""
13618
13619 #. type: verbatim
13620 #: ../fish/guestfish-actions.pod:3635
13621 #, no-wrap
13622 msgid ""
13623 " ntfsresize-size device size\n"
13624 "\n"
13625 msgstr ""
13626
13627 #. type: textblock
13628 #: ../fish/guestfish-actions.pod:3637
13629 msgid ""
13630 "This command is the same as L</ntfsresize> except that it allows you to "
13631 "specify the new size (in bytes) explicitly."
13632 msgstr ""
13633
13634 #. type: =head2
13635 #: ../fish/guestfish-actions.pod:3647
13636 msgid "part-add"
13637 msgstr ""
13638
13639 #. type: verbatim
13640 #: ../fish/guestfish-actions.pod:3649
13641 #, no-wrap
13642 msgid ""
13643 " part-add device prlogex startsect endsect\n"
13644 "\n"
13645 msgstr ""
13646
13647 #. type: textblock
13648 #: ../fish/guestfish-actions.pod:3651
13649 msgid ""
13650 "This command adds a partition to C<device>.  If there is no partition table "
13651 "on the device, call L</part-init> first."
13652 msgstr ""
13653
13654 #. type: textblock
13655 #: ../fish/guestfish-actions.pod:3654 ../src/guestfs-actions.pod:5721
13656 msgid ""
13657 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
13658 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
13659 "C<logical>) and C<e> (or C<extended>) partition types."
13660 msgstr ""
13661
13662 #. type: textblock
13663 #: ../fish/guestfish-actions.pod:3659 ../src/guestfs-actions.pod:5726
13664 msgid ""
13665 "C<startsect> and C<endsect> are the start and end of the partition in "
13666 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
13667 "from the end of the disk (C<-1> is the last sector)."
13668 msgstr ""
13669
13670 #. type: textblock
13671 #: ../fish/guestfish-actions.pod:3663
13672 msgid ""
13673 "Creating a partition which covers the whole disk is not so easy.  Use "
13674 "L</part-disk> to do that."
13675 msgstr ""
13676
13677 #. type: =head2
13678 #: ../fish/guestfish-actions.pod:3666
13679 msgid "part-del"
13680 msgstr ""
13681
13682 #. type: verbatim
13683 #: ../fish/guestfish-actions.pod:3668
13684 #, no-wrap
13685 msgid ""
13686 " part-del device partnum\n"
13687 "\n"
13688 msgstr ""
13689
13690 #. type: textblock
13691 #: ../fish/guestfish-actions.pod:3670 ../src/guestfs-actions.pod:5744
13692 msgid "This command deletes the partition numbered C<partnum> on C<device>."
13693 msgstr ""
13694
13695 #. type: textblock
13696 #: ../fish/guestfish-actions.pod:3672 ../src/guestfs-actions.pod:5746
13697 msgid ""
13698 "Note that in the case of MBR partitioning, deleting an extended partition "
13699 "also deletes any logical partitions it contains."
13700 msgstr ""
13701
13702 #. type: =head2
13703 #: ../fish/guestfish-actions.pod:3676
13704 msgid "part-disk"
13705 msgstr ""
13706
13707 #. type: verbatim
13708 #: ../fish/guestfish-actions.pod:3678
13709 #, no-wrap
13710 msgid ""
13711 " part-disk device parttype\n"
13712 "\n"
13713 msgstr ""
13714
13715 #. type: textblock
13716 #: ../fish/guestfish-actions.pod:3680
13717 msgid ""
13718 "This command is simply a combination of L</part-init> followed by "
13719 "L</part-add> to create a single primary partition covering the whole disk."
13720 msgstr ""
13721
13722 #. type: textblock
13723 #: ../fish/guestfish-actions.pod:3684
13724 msgid ""
13725 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
13726 "possible values are described in L</part-init>."
13727 msgstr ""
13728
13729 #. type: =head2
13730 #: ../fish/guestfish-actions.pod:3687
13731 msgid "part-get-bootable"
13732 msgstr ""
13733
13734 #. type: verbatim
13735 #: ../fish/guestfish-actions.pod:3689
13736 #, no-wrap
13737 msgid ""
13738 " part-get-bootable device partnum\n"
13739 "\n"
13740 msgstr ""
13741
13742 #. type: textblock
13743 #: ../fish/guestfish-actions.pod:3691 ../src/guestfs-actions.pod:5779
13744 msgid ""
13745 "This command returns true if the partition C<partnum> on C<device> has the "
13746 "bootable flag set."
13747 msgstr ""
13748
13749 #. type: textblock
13750 #: ../fish/guestfish-actions.pod:3694
13751 msgid "See also L</part-set-bootable>."
13752 msgstr ""
13753
13754 #. type: =head2
13755 #: ../fish/guestfish-actions.pod:3696
13756 msgid "part-get-mbr-id"
13757 msgstr ""
13758
13759 #. type: verbatim
13760 #: ../fish/guestfish-actions.pod:3698
13761 #, no-wrap
13762 msgid ""
13763 " part-get-mbr-id device partnum\n"
13764 "\n"
13765 msgstr ""
13766
13767 #. type: textblock
13768 #: ../fish/guestfish-actions.pod:3700 ../src/guestfs-actions.pod:5795
13769 msgid ""
13770 "Returns the MBR type byte (also known as the ID byte) from the numbered "
13771 "partition C<partnum>."
13772 msgstr ""
13773
13774 #. type: textblock
13775 #: ../fish/guestfish-actions.pod:3703 ../fish/guestfish-actions.pod:3847
13776 msgid ""
13777 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
13778 "undefined results for other partition table types (see "
13779 "L</part-get-parttype>)."
13780 msgstr ""
13781
13782 #. type: =head2
13783 #: ../fish/guestfish-actions.pod:3707
13784 msgid "part-get-parttype"
13785 msgstr ""
13786
13787 #. type: verbatim
13788 #: ../fish/guestfish-actions.pod:3709
13789 #, no-wrap
13790 msgid ""
13791 " part-get-parttype device\n"
13792 "\n"
13793 msgstr ""
13794
13795 #. type: textblock
13796 #: ../fish/guestfish-actions.pod:3711 ../src/guestfs-actions.pod:5812
13797 msgid ""
13798 "This command examines the partition table on C<device> and returns the "
13799 "partition table type (format) being used."
13800 msgstr ""
13801
13802 #. type: textblock
13803 #: ../fish/guestfish-actions.pod:3714
13804 msgid ""
13805 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
13806 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
13807 "possible, although unusual.  See L</part-init> for a full list."
13808 msgstr ""
13809
13810 #. type: =head2
13811 #: ../fish/guestfish-actions.pod:3719
13812 msgid "part-init"
13813 msgstr ""
13814
13815 #. type: verbatim
13816 #: ../fish/guestfish-actions.pod:3721
13817 #, no-wrap
13818 msgid ""
13819 " part-init device parttype\n"
13820 "\n"
13821 msgstr ""
13822
13823 #. type: textblock
13824 #: ../fish/guestfish-actions.pod:3723 ../src/guestfs-actions.pod:5832
13825 msgid ""
13826 "This creates an empty partition table on C<device> of one of the partition "
13827 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
13828 "(for large disks)."
13829 msgstr ""
13830
13831 #. type: textblock
13832 #: ../fish/guestfish-actions.pod:3727
13833 msgid ""
13834 "Initially there are no partitions.  Following this, you should call "
13835 "L</part-add> for each partition required."
13836 msgstr ""
13837
13838 #. type: textblock
13839 #: ../fish/guestfish-actions.pod:3730 ../src/guestfs-actions.pod:5839
13840 msgid "Possible values for C<parttype> are:"
13841 msgstr ""
13842
13843 #. type: =item
13844 #: ../fish/guestfish-actions.pod:3734 ../src/guestfs-actions.pod:5843
13845 msgid "B<efi>"
13846 msgstr ""
13847
13848 #. type: =item
13849 #: ../fish/guestfish-actions.pod:3736 ../src/guestfs-actions.pod:5845
13850 msgid "B<gpt>"
13851 msgstr ""
13852
13853 #. type: textblock
13854 #: ../fish/guestfish-actions.pod:3738 ../src/guestfs-actions.pod:5847
13855 msgid "Intel EFI / GPT partition table."
13856 msgstr ""
13857
13858 #. type: textblock
13859 #: ../fish/guestfish-actions.pod:3740 ../src/guestfs-actions.pod:5849
13860 msgid ""
13861 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
13862 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
13863 "the C<mbr> format."
13864 msgstr ""
13865
13866 #. type: =item
13867 #: ../fish/guestfish-actions.pod:3744 ../src/guestfs-actions.pod:5853
13868 msgid "B<mbr>"
13869 msgstr ""
13870
13871 #. type: =item
13872 #: ../fish/guestfish-actions.pod:3746 ../src/guestfs-actions.pod:5855
13873 msgid "B<msdos>"
13874 msgstr ""
13875
13876 #. type: textblock
13877 #: ../fish/guestfish-actions.pod:3748 ../src/guestfs-actions.pod:5857
13878 msgid ""
13879 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
13880 "Windows.  This partition type will B<only> work for device sizes up to 2 "
13881 "TB.  For large disks we recommend using C<gpt>."
13882 msgstr ""
13883
13884 #. type: textblock
13885 #: ../fish/guestfish-actions.pod:3755 ../src/guestfs-actions.pod:5864
13886 msgid "Other partition table types that may work but are not supported include:"
13887 msgstr ""
13888
13889 #. type: =item
13890 #: ../fish/guestfish-actions.pod:3760 ../src/guestfs-actions.pod:5869
13891 msgid "B<aix>"
13892 msgstr ""
13893
13894 #. type: textblock
13895 #: ../fish/guestfish-actions.pod:3762 ../src/guestfs-actions.pod:5871
13896 msgid "AIX disk labels."
13897 msgstr ""
13898
13899 #. type: =item
13900 #: ../fish/guestfish-actions.pod:3764 ../src/guestfs-actions.pod:5873
13901 msgid "B<amiga>"
13902 msgstr ""
13903
13904 #. type: =item
13905 #: ../fish/guestfish-actions.pod:3766 ../src/guestfs-actions.pod:5875
13906 msgid "B<rdb>"
13907 msgstr ""
13908
13909 #. type: textblock
13910 #: ../fish/guestfish-actions.pod:3768 ../src/guestfs-actions.pod:5877
13911 msgid "Amiga \"Rigid Disk Block\" format."
13912 msgstr ""
13913
13914 #. type: =item
13915 #: ../fish/guestfish-actions.pod:3770 ../src/guestfs-actions.pod:5879
13916 msgid "B<bsd>"
13917 msgstr ""
13918
13919 #. type: textblock
13920 #: ../fish/guestfish-actions.pod:3772 ../src/guestfs-actions.pod:5881
13921 msgid "BSD disk labels."
13922 msgstr ""
13923
13924 #. type: =item
13925 #: ../fish/guestfish-actions.pod:3774 ../src/guestfs-actions.pod:5883
13926 msgid "B<dasd>"
13927 msgstr ""
13928
13929 #. type: textblock
13930 #: ../fish/guestfish-actions.pod:3776 ../src/guestfs-actions.pod:5885
13931 msgid "DASD, used on IBM mainframes."
13932 msgstr ""
13933
13934 #. type: =item
13935 #: ../fish/guestfish-actions.pod:3778 ../src/guestfs-actions.pod:5887
13936 msgid "B<dvh>"
13937 msgstr ""
13938
13939 #. type: textblock
13940 #: ../fish/guestfish-actions.pod:3780 ../src/guestfs-actions.pod:5889
13941 msgid "MIPS/SGI volumes."
13942 msgstr ""
13943
13944 #. type: =item
13945 #: ../fish/guestfish-actions.pod:3782 ../src/guestfs-actions.pod:5891
13946 msgid "B<mac>"
13947 msgstr ""
13948
13949 #. type: textblock
13950 #: ../fish/guestfish-actions.pod:3784 ../src/guestfs-actions.pod:5893
13951 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
13952 msgstr ""
13953
13954 #. type: =item
13955 #: ../fish/guestfish-actions.pod:3786 ../src/guestfs-actions.pod:5895
13956 msgid "B<pc98>"
13957 msgstr ""
13958
13959 #. type: textblock
13960 #: ../fish/guestfish-actions.pod:3788 ../src/guestfs-actions.pod:5897
13961 msgid "NEC PC-98 format, common in Japan apparently."
13962 msgstr ""
13963
13964 #. type: =item
13965 #: ../fish/guestfish-actions.pod:3790 ../src/guestfs-actions.pod:5899
13966 msgid "B<sun>"
13967 msgstr ""
13968
13969 #. type: textblock
13970 #: ../fish/guestfish-actions.pod:3792 ../src/guestfs-actions.pod:5901
13971 msgid "Sun disk labels."
13972 msgstr ""
13973
13974 #. type: =head2
13975 #: ../fish/guestfish-actions.pod:3796
13976 msgid "part-list"
13977 msgstr ""
13978
13979 #. type: verbatim
13980 #: ../fish/guestfish-actions.pod:3798
13981 #, no-wrap
13982 msgid ""
13983 " part-list device\n"
13984 "\n"
13985 msgstr ""
13986
13987 #. type: textblock
13988 #: ../fish/guestfish-actions.pod:3800 ../src/guestfs-actions.pod:5915
13989 msgid ""
13990 "This command parses the partition table on C<device> and returns the list of "
13991 "partitions found."
13992 msgstr ""
13993
13994 #. type: textblock
13995 #: ../fish/guestfish-actions.pod:3803 ../src/guestfs-actions.pod:5918
13996 msgid "The fields in the returned structure are:"
13997 msgstr ""
13998
13999 #. type: =item
14000 #: ../fish/guestfish-actions.pod:3807 ../src/guestfs-actions.pod:5922
14001 msgid "B<part_num>"
14002 msgstr ""
14003
14004 #. type: textblock
14005 #: ../fish/guestfish-actions.pod:3809 ../src/guestfs-actions.pod:5924
14006 msgid "Partition number, counting from 1."
14007 msgstr ""
14008
14009 #. type: =item
14010 #: ../fish/guestfish-actions.pod:3811 ../src/guestfs-actions.pod:5926
14011 msgid "B<part_start>"
14012 msgstr ""
14013
14014 #. type: textblock
14015 #: ../fish/guestfish-actions.pod:3813
14016 msgid ""
14017 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
14018 "the device's sector size, see L</blockdev-getss>."
14019 msgstr ""
14020
14021 #. type: =item
14022 #: ../fish/guestfish-actions.pod:3816 ../src/guestfs-actions.pod:5931
14023 msgid "B<part_end>"
14024 msgstr ""
14025
14026 #. type: textblock
14027 #: ../fish/guestfish-actions.pod:3818 ../src/guestfs-actions.pod:5933
14028 msgid "End of the partition in bytes."
14029 msgstr ""
14030
14031 #. type: =item
14032 #: ../fish/guestfish-actions.pod:3820 ../src/guestfs-actions.pod:5935
14033 msgid "B<part_size>"
14034 msgstr ""
14035
14036 #. type: textblock
14037 #: ../fish/guestfish-actions.pod:3822 ../src/guestfs-actions.pod:5937
14038 msgid "Size of the partition in bytes."
14039 msgstr ""
14040
14041 #. type: =head2
14042 #: ../fish/guestfish-actions.pod:3826
14043 msgid "part-set-bootable"
14044 msgstr ""
14045
14046 #. type: verbatim
14047 #: ../fish/guestfish-actions.pod:3828
14048 #, no-wrap
14049 msgid ""
14050 " part-set-bootable device partnum true|false\n"
14051 "\n"
14052 msgstr ""
14053
14054 #. type: textblock
14055 #: ../fish/guestfish-actions.pod:3830 ../src/guestfs-actions.pod:5955
14056 msgid ""
14057 "This sets the bootable flag on partition numbered C<partnum> on device "
14058 "C<device>.  Note that partitions are numbered from 1."
14059 msgstr ""
14060
14061 #. type: textblock
14062 #: ../fish/guestfish-actions.pod:3833 ../src/guestfs-actions.pod:5958
14063 msgid ""
14064 "The bootable flag is used by some operating systems (notably Windows) to "
14065 "determine which partition to boot from.  It is by no means universally "
14066 "recognized."
14067 msgstr ""
14068
14069 #. type: =head2
14070 #: ../fish/guestfish-actions.pod:3837
14071 msgid "part-set-mbr-id"
14072 msgstr ""
14073
14074 #. type: verbatim
14075 #: ../fish/guestfish-actions.pod:3839
14076 #, no-wrap
14077 msgid ""
14078 " part-set-mbr-id device partnum idbyte\n"
14079 "\n"
14080 msgstr ""
14081
14082 #. type: textblock
14083 #: ../fish/guestfish-actions.pod:3841 ../src/guestfs-actions.pod:5974
14084 msgid ""
14085 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
14086 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
14087 "documentation are in fact hexadecimal numbers, but usually documented "
14088 "without any leading \"0x\" which might be confusing."
14089 msgstr ""
14090
14091 #. type: =head2
14092 #: ../fish/guestfish-actions.pod:3851
14093 msgid "part-set-name"
14094 msgstr ""
14095
14096 #. type: verbatim
14097 #: ../fish/guestfish-actions.pod:3853
14098 #, no-wrap
14099 msgid ""
14100 " part-set-name device partnum name\n"
14101 "\n"
14102 msgstr ""
14103
14104 #. type: textblock
14105 #: ../fish/guestfish-actions.pod:3855 ../src/guestfs-actions.pod:5996
14106 msgid ""
14107 "This sets the partition name on partition numbered C<partnum> on device "
14108 "C<device>.  Note that partitions are numbered from 1."
14109 msgstr ""
14110
14111 #. type: textblock
14112 #: ../fish/guestfish-actions.pod:3858 ../src/guestfs-actions.pod:5999
14113 msgid ""
14114 "The partition name can only be set on certain types of partition table.  "
14115 "This works on C<gpt> but not on C<mbr> partitions."
14116 msgstr ""
14117
14118 #. type: =head2
14119 #: ../fish/guestfish-actions.pod:3861
14120 msgid "part-to-dev"
14121 msgstr ""
14122
14123 #. type: verbatim
14124 #: ../fish/guestfish-actions.pod:3863
14125 #, no-wrap
14126 msgid ""
14127 " part-to-dev partition\n"
14128 "\n"
14129 msgstr ""
14130
14131 #. type: textblock
14132 #: ../fish/guestfish-actions.pod:3865 ../src/guestfs-actions.pod:6012
14133 msgid ""
14134 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
14135 "partition number, returning the device name (eg. \"/dev/sdb\")."
14136 msgstr ""
14137
14138 #. type: textblock
14139 #: ../fish/guestfish-actions.pod:3869 ../fish/guestfish-actions.pod:3881
14140 msgid ""
14141 "The named partition must exist, for example as a string returned from "
14142 "L</list-partitions>."
14143 msgstr ""
14144
14145 #. type: textblock
14146 #: ../fish/guestfish-actions.pod:3872
14147 msgid "See also L</part-to-partnum>."
14148 msgstr ""
14149
14150 #. type: =head2
14151 #: ../fish/guestfish-actions.pod:3874
14152 msgid "part-to-partnum"
14153 msgstr ""
14154
14155 #. type: verbatim
14156 #: ../fish/guestfish-actions.pod:3876
14157 #, no-wrap
14158 msgid ""
14159 " part-to-partnum partition\n"
14160 "\n"
14161 msgstr ""
14162
14163 #. type: textblock
14164 #: ../fish/guestfish-actions.pod:3878 ../src/guestfs-actions.pod:6032
14165 msgid ""
14166 "This function takes a partition name (eg. \"/dev/sdb1\") and returns the "
14167 "partition number (eg. C<1>)."
14168 msgstr ""
14169
14170 #. type: textblock
14171 #: ../fish/guestfish-actions.pod:3884
14172 msgid "See also L</part-to-dev>."
14173 msgstr ""
14174
14175 #. type: =head2
14176 #: ../fish/guestfish-actions.pod:3886
14177 msgid "ping-daemon"
14178 msgstr ""
14179
14180 #. type: verbatim
14181 #: ../fish/guestfish-actions.pod:3888
14182 #, no-wrap
14183 msgid ""
14184 " ping-daemon\n"
14185 "\n"
14186 msgstr ""
14187
14188 #. type: textblock
14189 #: ../fish/guestfish-actions.pod:3890 ../src/guestfs-actions.pod:6049
14190 msgid ""
14191 "This is a test probe into the guestfs daemon running inside the qemu "
14192 "subprocess.  Calling this function checks that the daemon responds to the "
14193 "ping message, without affecting the daemon or attached block device(s) in "
14194 "any other way."
14195 msgstr ""
14196
14197 #. type: =head2
14198 #: ../fish/guestfish-actions.pod:3895
14199 msgid "pread"
14200 msgstr ""
14201
14202 #. type: verbatim
14203 #: ../fish/guestfish-actions.pod:3897
14204 #, no-wrap
14205 msgid ""
14206 " pread path count offset\n"
14207 "\n"
14208 msgstr ""
14209
14210 #. type: textblock
14211 #: ../fish/guestfish-actions.pod:3899 ../src/guestfs-actions.pod:6067
14212 msgid ""
14213 "This command lets you read part of a file.  It reads C<count> bytes of the "
14214 "file, starting at C<offset>, from file C<path>."
14215 msgstr ""
14216
14217 #. type: textblock
14218 #: ../fish/guestfish-actions.pod:3902 ../fish/guestfish-actions.pod:3917 ../src/guestfs-actions.pod:6070 ../src/guestfs-actions.pod:6096
14219 msgid ""
14220 "This may read fewer bytes than requested.  For further details see the "
14221 "L<pread(2)> system call."
14222 msgstr ""
14223
14224 #. type: textblock
14225 #: ../fish/guestfish-actions.pod:3905
14226 msgid "See also L</pwrite>, L</pread-device>."
14227 msgstr ""
14228
14229 #. type: =head2
14230 #: ../fish/guestfish-actions.pod:3910
14231 msgid "pread-device"
14232 msgstr ""
14233
14234 #. type: verbatim
14235 #: ../fish/guestfish-actions.pod:3912
14236 #, no-wrap
14237 msgid ""
14238 " pread-device device count offset\n"
14239 "\n"
14240 msgstr ""
14241
14242 #. type: textblock
14243 #: ../fish/guestfish-actions.pod:3914 ../src/guestfs-actions.pod:6093
14244 msgid ""
14245 "This command lets you read part of a file.  It reads C<count> bytes of "
14246 "C<device>, starting at C<offset>."
14247 msgstr ""
14248
14249 #. type: textblock
14250 #: ../fish/guestfish-actions.pod:3920
14251 msgid "See also L</pread>."
14252 msgstr ""
14253
14254 #. type: =head2
14255 #: ../fish/guestfish-actions.pod:3925
14256 msgid "pvcreate"
14257 msgstr ""
14258
14259 #. type: verbatim
14260 #: ../fish/guestfish-actions.pod:3927
14261 #, no-wrap
14262 msgid ""
14263 " pvcreate device\n"
14264 "\n"
14265 msgstr ""
14266
14267 #. type: textblock
14268 #: ../fish/guestfish-actions.pod:3929 ../src/guestfs-actions.pod:6116
14269 msgid ""
14270 "This creates an LVM physical volume on the named C<device>, where C<device> "
14271 "should usually be a partition name such as C</dev/sda1>."
14272 msgstr ""
14273
14274 #. type: =head2
14275 #: ../fish/guestfish-actions.pod:3933
14276 msgid "pvremove"
14277 msgstr ""
14278
14279 #. type: verbatim
14280 #: ../fish/guestfish-actions.pod:3935
14281 #, no-wrap
14282 msgid ""
14283 " pvremove device\n"
14284 "\n"
14285 msgstr ""
14286
14287 #. type: textblock
14288 #: ../fish/guestfish-actions.pod:3937 ../src/guestfs-actions.pod:6130
14289 msgid ""
14290 "This wipes a physical volume C<device> so that LVM will no longer recognise "
14291 "it."
14292 msgstr ""
14293
14294 #. type: textblock
14295 #: ../fish/guestfish-actions.pod:3940 ../src/guestfs-actions.pod:6133
14296 msgid ""
14297 "The implementation uses the C<pvremove> command which refuses to wipe "
14298 "physical volumes that contain any volume groups, so you have to remove those "
14299 "first."
14300 msgstr ""
14301
14302 #. type: =head2
14303 #: ../fish/guestfish-actions.pod:3944
14304 msgid "pvresize"
14305 msgstr ""
14306
14307 #. type: verbatim
14308 #: ../fish/guestfish-actions.pod:3946
14309 #, no-wrap
14310 msgid ""
14311 " pvresize device\n"
14312 "\n"
14313 msgstr ""
14314
14315 #. type: textblock
14316 #: ../fish/guestfish-actions.pod:3948 ../src/guestfs-actions.pod:6147
14317 msgid ""
14318 "This resizes (expands or shrinks) an existing LVM physical volume to match "
14319 "the new size of the underlying device."
14320 msgstr ""
14321
14322 #. type: =head2
14323 #: ../fish/guestfish-actions.pod:3951
14324 msgid "pvresize-size"
14325 msgstr ""
14326
14327 #. type: verbatim
14328 #: ../fish/guestfish-actions.pod:3953
14329 #, no-wrap
14330 msgid ""
14331 " pvresize-size device size\n"
14332 "\n"
14333 msgstr ""
14334
14335 #. type: textblock
14336 #: ../fish/guestfish-actions.pod:3955
14337 msgid ""
14338 "This command is the same as L</pvresize> except that it allows you to "
14339 "specify the new size (in bytes) explicitly."
14340 msgstr ""
14341
14342 #. type: =head2
14343 #: ../fish/guestfish-actions.pod:3958
14344 msgid "pvs"
14345 msgstr ""
14346
14347 #. type: verbatim
14348 #: ../fish/guestfish-actions.pod:3960
14349 #, no-wrap
14350 msgid ""
14351 " pvs\n"
14352 "\n"
14353 msgstr ""
14354
14355 #. type: textblock
14356 #: ../fish/guestfish-actions.pod:3962 ../src/guestfs-actions.pod:6173
14357 msgid ""
14358 "List all the physical volumes detected.  This is the equivalent of the "
14359 "L<pvs(8)> command."
14360 msgstr ""
14361
14362 #. type: textblock
14363 #: ../fish/guestfish-actions.pod:3965 ../src/guestfs-actions.pod:6176
14364 msgid ""
14365 "This returns a list of just the device names that contain PVs "
14366 "(eg. C</dev/sda2>)."
14367 msgstr ""
14368
14369 #. type: textblock
14370 #: ../fish/guestfish-actions.pod:3968
14371 msgid "See also L</pvs-full>."
14372 msgstr ""
14373
14374 #. type: =head2
14375 #: ../fish/guestfish-actions.pod:3970
14376 msgid "pvs-full"
14377 msgstr ""
14378
14379 #. type: verbatim
14380 #: ../fish/guestfish-actions.pod:3972
14381 #, no-wrap
14382 msgid ""
14383 " pvs-full\n"
14384 "\n"
14385 msgstr ""
14386
14387 #. type: textblock
14388 #: ../fish/guestfish-actions.pod:3974 ../src/guestfs-actions.pod:6192
14389 msgid ""
14390 "List all the physical volumes detected.  This is the equivalent of the "
14391 "L<pvs(8)> command.  The \"full\" version includes all fields."
14392 msgstr ""
14393
14394 #. type: =head2
14395 #: ../fish/guestfish-actions.pod:3977
14396 msgid "pvuuid"
14397 msgstr ""
14398
14399 #. type: verbatim
14400 #: ../fish/guestfish-actions.pod:3979
14401 #, no-wrap
14402 msgid ""
14403 " pvuuid device\n"
14404 "\n"
14405 msgstr ""
14406
14407 #. type: textblock
14408 #: ../fish/guestfish-actions.pod:3981 ../src/guestfs-actions.pod:6207
14409 msgid "This command returns the UUID of the LVM PV C<device>."
14410 msgstr ""
14411
14412 #. type: =head2
14413 #: ../fish/guestfish-actions.pod:3983
14414 msgid "pwrite"
14415 msgstr ""
14416
14417 #. type: verbatim
14418 #: ../fish/guestfish-actions.pod:3985
14419 #, no-wrap
14420 msgid ""
14421 " pwrite path content offset\n"
14422 "\n"
14423 msgstr ""
14424
14425 #. type: textblock
14426 #: ../fish/guestfish-actions.pod:3987 ../src/guestfs-actions.pod:6223
14427 msgid ""
14428 "This command writes to part of a file.  It writes the data buffer C<content> "
14429 "to the file C<path> starting at offset C<offset>."
14430 msgstr ""
14431
14432 #. type: textblock
14433 #: ../fish/guestfish-actions.pod:3990 ../src/guestfs-actions.pod:6226
14434 msgid ""
14435 "This command implements the L<pwrite(2)> system call, and like that system "
14436 "call it may not write the full data requested.  The return value is the "
14437 "number of bytes that were actually written to the file.  This could even be "
14438 "0, although short writes are unlikely for regular files in ordinary "
14439 "circumstances."
14440 msgstr ""
14441
14442 #. type: textblock
14443 #: ../fish/guestfish-actions.pod:3996
14444 msgid "See also L</pread>, L</pwrite-device>."
14445 msgstr ""
14446
14447 #. type: =head2
14448 #: ../fish/guestfish-actions.pod:4001
14449 msgid "pwrite-device"
14450 msgstr ""
14451
14452 #. type: verbatim
14453 #: ../fish/guestfish-actions.pod:4003
14454 #, no-wrap
14455 msgid ""
14456 " pwrite-device device content offset\n"
14457 "\n"
14458 msgstr ""
14459
14460 #. type: textblock
14461 #: ../fish/guestfish-actions.pod:4005 ../src/guestfs-actions.pod:6250
14462 msgid ""
14463 "This command writes to part of a device.  It writes the data buffer "
14464 "C<content> to C<device> starting at offset C<offset>."
14465 msgstr ""
14466
14467 #. type: textblock
14468 #: ../fish/guestfish-actions.pod:4008 ../src/guestfs-actions.pod:6253
14469 msgid ""
14470 "This command implements the L<pwrite(2)> system call, and like that system "
14471 "call it may not write the full data requested (although short writes to disk "
14472 "devices and partitions are probably impossible with standard Linux kernels)."
14473 msgstr ""
14474
14475 #. type: textblock
14476 #: ../fish/guestfish-actions.pod:4013
14477 msgid "See also L</pwrite>."
14478 msgstr ""
14479
14480 #. type: =head2
14481 #: ../fish/guestfish-actions.pod:4018
14482 msgid "read-file"
14483 msgstr ""
14484
14485 #. type: verbatim
14486 #: ../fish/guestfish-actions.pod:4020
14487 #, no-wrap
14488 msgid ""
14489 " read-file path\n"
14490 "\n"
14491 msgstr ""
14492
14493 #. type: textblock
14494 #: ../fish/guestfish-actions.pod:4022 ../src/guestfs-actions.pod:6274
14495 msgid "This calls returns the contents of the file C<path> as a buffer."
14496 msgstr ""
14497
14498 #. type: textblock
14499 #: ../fish/guestfish-actions.pod:4025
14500 msgid ""
14501 "Unlike L</cat>, this function can correctly handle files that contain "
14502 "embedded ASCII NUL characters.  However unlike L</download>, this function "
14503 "is limited in the total size of file that can be handled."
14504 msgstr ""
14505
14506 #. type: =head2
14507 #: ../fish/guestfish-actions.pod:4033
14508 msgid "read-lines"
14509 msgstr ""
14510
14511 #. type: verbatim
14512 #: ../fish/guestfish-actions.pod:4035
14513 #, no-wrap
14514 msgid ""
14515 " read-lines path\n"
14516 "\n"
14517 msgstr ""
14518
14519 #. type: textblock
14520 #: ../fish/guestfish-actions.pod:4039 ../src/guestfs-actions.pod:6299
14521 msgid ""
14522 "The file contents are returned as a list of lines.  Trailing C<LF> and "
14523 "C<CRLF> character sequences are I<not> returned."
14524 msgstr ""
14525
14526 #. type: textblock
14527 #: ../fish/guestfish-actions.pod:4042
14528 msgid ""
14529 "Note that this function cannot correctly handle binary files (specifically, "
14530 "files containing C<\\0> character which is treated as end of line).  For "
14531 "those you need to use the L</read-file> function which has a more complex "
14532 "interface."
14533 msgstr ""
14534
14535 #. type: =head2
14536 #: ../fish/guestfish-actions.pod:4047
14537 msgid "readdir"
14538 msgstr ""
14539
14540 #. type: verbatim
14541 #: ../fish/guestfish-actions.pod:4049
14542 #, no-wrap
14543 msgid ""
14544 " readdir dir\n"
14545 "\n"
14546 msgstr ""
14547
14548 #. type: textblock
14549 #: ../fish/guestfish-actions.pod:4051 ../src/guestfs-actions.pod:6319
14550 msgid "This returns the list of directory entries in directory C<dir>."
14551 msgstr ""
14552
14553 #. type: textblock
14554 #: ../fish/guestfish-actions.pod:4053 ../src/guestfs-actions.pod:6321
14555 msgid ""
14556 "All entries in the directory are returned, including C<.> and C<..>.  The "
14557 "entries are I<not> sorted, but returned in the same order as the underlying "
14558 "filesystem."
14559 msgstr ""
14560
14561 #. type: textblock
14562 #: ../fish/guestfish-actions.pod:4057 ../src/guestfs-actions.pod:6325
14563 msgid ""
14564 "Also this call returns basic file type information about each file.  The "
14565 "C<ftyp> field will contain one of the following characters:"
14566 msgstr ""
14567
14568 #. type: =item
14569 #: ../fish/guestfish-actions.pod:4062 ../src/guestfs-actions.pod:6330
14570 msgid "'b'"
14571 msgstr ""
14572
14573 #. type: textblock
14574 #: ../fish/guestfish-actions.pod:4064 ../src/guestfs-actions.pod:6332
14575 msgid "Block special"
14576 msgstr ""
14577
14578 #. type: =item
14579 #: ../fish/guestfish-actions.pod:4066 ../src/guestfs-actions.pod:6334
14580 msgid "'c'"
14581 msgstr ""
14582
14583 #. type: textblock
14584 #: ../fish/guestfish-actions.pod:4068 ../src/guestfs-actions.pod:6336
14585 msgid "Char special"
14586 msgstr ""
14587
14588 #. type: =item
14589 #: ../fish/guestfish-actions.pod:4070 ../src/guestfs-actions.pod:6338
14590 msgid "'d'"
14591 msgstr ""
14592
14593 #. type: textblock
14594 #: ../fish/guestfish-actions.pod:4072 ../src/guestfs-actions.pod:6340
14595 msgid "Directory"
14596 msgstr ""
14597
14598 #. type: =item
14599 #: ../fish/guestfish-actions.pod:4074 ../src/guestfs-actions.pod:6342
14600 msgid "'f'"
14601 msgstr ""
14602
14603 #. type: textblock
14604 #: ../fish/guestfish-actions.pod:4076 ../src/guestfs-actions.pod:6344
14605 msgid "FIFO (named pipe)"
14606 msgstr ""
14607
14608 #. type: =item
14609 #: ../fish/guestfish-actions.pod:4078 ../src/guestfs-actions.pod:6346
14610 msgid "'l'"
14611 msgstr ""
14612
14613 #. type: textblock
14614 #: ../fish/guestfish-actions.pod:4080 ../src/guestfs-actions.pod:6348
14615 msgid "Symbolic link"
14616 msgstr ""
14617
14618 #. type: =item
14619 #: ../fish/guestfish-actions.pod:4082 ../src/guestfs-actions.pod:6350
14620 msgid "'r'"
14621 msgstr ""
14622
14623 #. type: textblock
14624 #: ../fish/guestfish-actions.pod:4084 ../src/guestfs-actions.pod:6352
14625 msgid "Regular file"
14626 msgstr ""
14627
14628 #. type: =item
14629 #: ../fish/guestfish-actions.pod:4086 ../src/guestfs-actions.pod:6354
14630 msgid "'s'"
14631 msgstr ""
14632
14633 #. type: textblock
14634 #: ../fish/guestfish-actions.pod:4088 ../src/guestfs-actions.pod:6356
14635 msgid "Socket"
14636 msgstr ""
14637
14638 #. type: =item
14639 #: ../fish/guestfish-actions.pod:4090 ../src/guestfs-actions.pod:6358
14640 msgid "'u'"
14641 msgstr ""
14642
14643 #. type: textblock
14644 #: ../fish/guestfish-actions.pod:4092 ../src/guestfs-actions.pod:6360
14645 msgid "Unknown file type"
14646 msgstr ""
14647
14648 #. type: =item
14649 #: ../fish/guestfish-actions.pod:4094 ../src/guestfs-actions.pod:6362
14650 msgid "'?'"
14651 msgstr ""
14652
14653 #. type: textblock
14654 #: ../fish/guestfish-actions.pod:4096 ../src/guestfs-actions.pod:6364
14655 msgid "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
14656 msgstr ""
14657
14658 #. type: textblock
14659 #: ../fish/guestfish-actions.pod:4101
14660 msgid ""
14661 "This function is primarily intended for use by programs.  To get a simple "
14662 "list of names, use L</ls>.  To get a printable directory for human "
14663 "consumption, use L</ll>."
14664 msgstr ""
14665
14666 #. type: =head2
14667 #: ../fish/guestfish-actions.pod:4105
14668 msgid "readlink"
14669 msgstr ""
14670
14671 #. type: verbatim
14672 #: ../fish/guestfish-actions.pod:4107
14673 #, no-wrap
14674 msgid ""
14675 " readlink path\n"
14676 "\n"
14677 msgstr ""
14678
14679 #. type: textblock
14680 #: ../fish/guestfish-actions.pod:4109 ../src/guestfs-actions.pod:6385
14681 msgid "This command reads the target of a symbolic link."
14682 msgstr ""
14683
14684 #. type: =head2
14685 #: ../fish/guestfish-actions.pod:4111
14686 msgid "readlinklist"
14687 msgstr ""
14688
14689 #. type: verbatim
14690 #: ../fish/guestfish-actions.pod:4113
14691 #, no-wrap
14692 msgid ""
14693 " readlinklist path 'names ...'\n"
14694 "\n"
14695 msgstr ""
14696
14697 #. type: textblock
14698 #: ../fish/guestfish-actions.pod:4115 ../src/guestfs-actions.pod:6399
14699 msgid ""
14700 "This call allows you to do a C<readlink> operation on multiple files, where "
14701 "all files are in the directory C<path>.  C<names> is the list of files from "
14702 "this directory."
14703 msgstr ""
14704
14705 #. type: textblock
14706 #: ../fish/guestfish-actions.pod:4119 ../src/guestfs-actions.pod:6403
14707 msgid ""
14708 "On return you get a list of strings, with a one-to-one correspondence to the "
14709 "C<names> list.  Each string is the value of the symbolic link."
14710 msgstr ""
14711
14712 #. type: textblock
14713 #: ../fish/guestfish-actions.pod:4123 ../src/guestfs-actions.pod:6407
14714 msgid ""
14715 "If the C<readlink(2)> operation fails on any name, then the corresponding "
14716 "result string is the empty string C<\"\">.  However the whole operation is "
14717 "completed even if there were C<readlink(2)> errors, and so you can call this "
14718 "function with names where you don't know if they are symbolic links already "
14719 "(albeit slightly less efficient)."
14720 msgstr ""
14721
14722 #. type: textblock
14723 #: ../fish/guestfish-actions.pod:4130 ../src/guestfs-actions.pod:6414
14724 msgid ""
14725 "This call is intended for programs that want to efficiently list a directory "
14726 "contents without making many round-trips.  Very long directory listings "
14727 "might cause the protocol message size to be exceeded, causing this call to "
14728 "fail.  The caller must split up such requests into smaller groups of names."
14729 msgstr ""
14730
14731 #. type: =head2
14732 #: ../fish/guestfish-actions.pod:4137
14733 msgid "realpath"
14734 msgstr ""
14735
14736 #. type: verbatim
14737 #: ../fish/guestfish-actions.pod:4139
14738 #, no-wrap
14739 msgid ""
14740 " realpath path\n"
14741 "\n"
14742 msgstr ""
14743
14744 #. type: textblock
14745 #: ../fish/guestfish-actions.pod:4141 ../src/guestfs-actions.pod:6433
14746 msgid ""
14747 "Return the canonicalized absolute pathname of C<path>.  The returned path "
14748 "has no C<.>, C<..> or symbolic link path elements."
14749 msgstr ""
14750
14751 #. type: =head2
14752 #: ../fish/guestfish-actions.pod:4144
14753 msgid "removexattr"
14754 msgstr ""
14755
14756 #. type: verbatim
14757 #: ../fish/guestfish-actions.pod:4146
14758 #, no-wrap
14759 msgid ""
14760 " removexattr xattr path\n"
14761 "\n"
14762 msgstr ""
14763
14764 #. type: textblock
14765 #: ../fish/guestfish-actions.pod:4148 ../src/guestfs-actions.pod:6448
14766 msgid "This call removes the extended attribute named C<xattr> of the file C<path>."
14767 msgstr ""
14768
14769 #. type: textblock
14770 #: ../fish/guestfish-actions.pod:4151
14771 msgid "See also: L</lremovexattr>, L<attr(5)>."
14772 msgstr ""
14773
14774 #. type: =head2
14775 #: ../fish/guestfish-actions.pod:4153
14776 msgid "resize2fs"
14777 msgstr ""
14778
14779 #. type: verbatim
14780 #: ../fish/guestfish-actions.pod:4155
14781 #, no-wrap
14782 msgid ""
14783 " resize2fs device\n"
14784 "\n"
14785 msgstr ""
14786
14787 #. type: textblock
14788 #: ../fish/guestfish-actions.pod:4157 ../src/guestfs-actions.pod:6463
14789 msgid ""
14790 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
14791 "underlying device."
14792 msgstr ""
14793
14794 #. type: textblock
14795 #: ../fish/guestfish-actions.pod:4160
14796 msgid ""
14797 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
14798 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
14799 "gives an error about this and sometimes not.  In any case, it is always safe "
14800 "to call L</e2fsck-f> before calling this function."
14801 msgstr ""
14802
14803 #. type: =head2
14804 #: ../fish/guestfish-actions.pod:4166
14805 msgid "resize2fs-M"
14806 msgstr ""
14807
14808 #. type: verbatim
14809 #: ../fish/guestfish-actions.pod:4168
14810 #, no-wrap
14811 msgid ""
14812 " resize2fs-M device\n"
14813 "\n"
14814 msgstr ""
14815
14816 #. type: textblock
14817 #: ../fish/guestfish-actions.pod:4170
14818 msgid ""
14819 "This command is the same as L</resize2fs>, but the filesystem is resized to "
14820 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
14821 "command."
14822 msgstr ""
14823
14824 #. type: textblock
14825 #: ../fish/guestfish-actions.pod:4174
14826 msgid ""
14827 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
14828 "and read the C<Block size> and C<Block count> values.  These two numbers, "
14829 "multiplied together, give the resulting size of the minimal filesystem in "
14830 "bytes."
14831 msgstr ""
14832
14833 #. type: =head2
14834 #: ../fish/guestfish-actions.pod:4179
14835 msgid "resize2fs-size"
14836 msgstr ""
14837
14838 #. type: verbatim
14839 #: ../fish/guestfish-actions.pod:4181
14840 #, no-wrap
14841 msgid ""
14842 " resize2fs-size device size\n"
14843 "\n"
14844 msgstr ""
14845
14846 #. type: textblock
14847 #: ../fish/guestfish-actions.pod:4183
14848 msgid ""
14849 "This command is the same as L</resize2fs> except that it allows you to "
14850 "specify the new size (in bytes) explicitly."
14851 msgstr ""
14852
14853 #. type: =head2
14854 #: ../fish/guestfish-actions.pod:4186
14855 msgid "rm"
14856 msgstr ""
14857
14858 #. type: verbatim
14859 #: ../fish/guestfish-actions.pod:4188
14860 #, no-wrap
14861 msgid ""
14862 " rm path\n"
14863 "\n"
14864 msgstr ""
14865
14866 #. type: textblock
14867 #: ../fish/guestfish-actions.pod:4190 ../src/guestfs-actions.pod:6515
14868 msgid "Remove the single file C<path>."
14869 msgstr ""
14870
14871 #. type: =head2
14872 #: ../fish/guestfish-actions.pod:4192
14873 msgid "rm-rf"
14874 msgstr ""
14875
14876 #. type: verbatim
14877 #: ../fish/guestfish-actions.pod:4194
14878 #, no-wrap
14879 msgid ""
14880 " rm-rf path\n"
14881 "\n"
14882 msgstr ""
14883
14884 #. type: textblock
14885 #: ../fish/guestfish-actions.pod:4196 ../src/guestfs-actions.pod:6527
14886 msgid ""
14887 "Remove the file or directory C<path>, recursively removing the contents if "
14888 "its a directory.  This is like the C<rm -rf> shell command."
14889 msgstr ""
14890
14891 #. type: =head2
14892 #: ../fish/guestfish-actions.pod:4200
14893 msgid "rmdir"
14894 msgstr ""
14895
14896 #. type: verbatim
14897 #: ../fish/guestfish-actions.pod:4202
14898 #, no-wrap
14899 msgid ""
14900 " rmdir path\n"
14901 "\n"
14902 msgstr ""
14903
14904 #. type: textblock
14905 #: ../fish/guestfish-actions.pod:4204 ../src/guestfs-actions.pod:6541
14906 msgid "Remove the single directory C<path>."
14907 msgstr ""
14908
14909 #. type: =head2
14910 #: ../fish/guestfish-actions.pod:4206
14911 msgid "rmmountpoint"
14912 msgstr ""
14913
14914 #. type: verbatim
14915 #: ../fish/guestfish-actions.pod:4208
14916 #, no-wrap
14917 msgid ""
14918 " rmmountpoint exemptpath\n"
14919 "\n"
14920 msgstr ""
14921
14922 #. type: textblock
14923 #: ../fish/guestfish-actions.pod:4210
14924 msgid ""
14925 "This calls removes a mountpoint that was previously created with "
14926 "L</mkmountpoint>.  See L</mkmountpoint> for full details."
14927 msgstr ""
14928
14929 #. type: =head2
14930 #: ../fish/guestfish-actions.pod:4214
14931 msgid "scrub-device"
14932 msgstr ""
14933
14934 #. type: verbatim
14935 #: ../fish/guestfish-actions.pod:4216
14936 #, no-wrap
14937 msgid ""
14938 " scrub-device device\n"
14939 "\n"
14940 msgstr ""
14941
14942 #. type: textblock
14943 #: ../fish/guestfish-actions.pod:4218 ../src/guestfs-actions.pod:6567
14944 msgid ""
14945 "This command writes patterns over C<device> to make data retrieval more "
14946 "difficult."
14947 msgstr ""
14948
14949 #. type: textblock
14950 #: ../fish/guestfish-actions.pod:4221 ../fish/guestfish-actions.pod:4233 ../fish/guestfish-actions.pod:4246 ../src/guestfs-actions.pod:6570 ../src/guestfs-actions.pod:6588 ../src/guestfs-actions.pod:6607
14951 msgid ""
14952 "It is an interface to the L<scrub(1)> program.  See that manual page for "
14953 "more details."
14954 msgstr ""
14955
14956 #. type: =head2
14957 #: ../fish/guestfish-actions.pod:4224
14958 msgid "scrub-file"
14959 msgstr ""
14960
14961 #. type: verbatim
14962 #: ../fish/guestfish-actions.pod:4226
14963 #, no-wrap
14964 msgid ""
14965 " scrub-file file\n"
14966 "\n"
14967 msgstr ""
14968
14969 #. type: textblock
14970 #: ../fish/guestfish-actions.pod:4228 ../src/guestfs-actions.pod:6583
14971 msgid ""
14972 "This command writes patterns over a file to make data retrieval more "
14973 "difficult."
14974 msgstr ""
14975
14976 #. type: textblock
14977 #: ../fish/guestfish-actions.pod:4231 ../src/guestfs-actions.pod:6586
14978 msgid "The file is I<removed> after scrubbing."
14979 msgstr ""
14980
14981 #. type: =head2
14982 #: ../fish/guestfish-actions.pod:4236
14983 msgid "scrub-freespace"
14984 msgstr ""
14985
14986 #. type: verbatim
14987 #: ../fish/guestfish-actions.pod:4238
14988 #, no-wrap
14989 msgid ""
14990 " scrub-freespace dir\n"
14991 "\n"
14992 msgstr ""
14993
14994 #. type: textblock
14995 #: ../fish/guestfish-actions.pod:4240
14996 msgid ""
14997 "This command creates the directory C<dir> and then fills it with files until "
14998 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
14999 "deletes them.  The intention is to scrub any free space on the partition "
15000 "containing C<dir>."
15001 msgstr ""
15002
15003 #. type: =head2
15004 #: ../fish/guestfish-actions.pod:4249
15005 msgid "set-append"
15006 msgstr ""
15007
15008 #. type: =head2
15009 #: ../fish/guestfish-actions.pod:4251
15010 msgid "append"
15011 msgstr ""
15012
15013 #. type: verbatim
15014 #: ../fish/guestfish-actions.pod:4253
15015 #, no-wrap
15016 msgid ""
15017 " set-append append\n"
15018 "\n"
15019 msgstr ""
15020
15021 #. type: textblock
15022 #: ../fish/guestfish-actions.pod:4255 ../src/guestfs-actions.pod:6620
15023 msgid ""
15024 "This function is used to add additional options to the guest kernel command "
15025 "line."
15026 msgstr ""
15027
15028 #. type: textblock
15029 #: ../fish/guestfish-actions.pod:4258 ../src/guestfs-actions.pod:6623
15030 msgid ""
15031 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
15032 "environment variable."
15033 msgstr ""
15034
15035 #. type: textblock
15036 #: ../fish/guestfish-actions.pod:4261 ../src/guestfs-actions.pod:6626
15037 msgid ""
15038 "Setting C<append> to C<NULL> means I<no> additional options are passed "
15039 "(libguestfs always adds a few of its own)."
15040 msgstr ""
15041
15042 #. type: =head2
15043 #: ../fish/guestfish-actions.pod:4264
15044 msgid "set-attach-method"
15045 msgstr ""
15046
15047 #. type: =head2
15048 #: ../fish/guestfish-actions.pod:4266
15049 msgid "attach-method"
15050 msgstr ""
15051
15052 #. type: verbatim
15053 #: ../fish/guestfish-actions.pod:4268
15054 #, no-wrap
15055 msgid ""
15056 " set-attach-method attachmethod\n"
15057 "\n"
15058 msgstr ""
15059
15060 #. type: textblock
15061 #: ../fish/guestfish-actions.pod:4270 ../src/guestfs-actions.pod:6639
15062 msgid ""
15063 "Set the method that libguestfs uses to connect to the back end guestfsd "
15064 "daemon.  Possible methods are:"
15065 msgstr ""
15066
15067 #. type: =item
15068 #: ../fish/guestfish-actions.pod:4275 ../src/guestfs-actions.pod:6644 ../src/guestfs.pod:2916
15069 msgid "C<appliance>"
15070 msgstr ""
15071
15072 #. type: textblock
15073 #: ../fish/guestfish-actions.pod:4277 ../src/guestfs-actions.pod:6646
15074 msgid ""
15075 "Launch an appliance and connect to it.  This is the ordinary method and the "
15076 "default."
15077 msgstr ""
15078
15079 #. type: =item
15080 #: ../fish/guestfish-actions.pod:4280 ../src/guestfs-actions.pod:6649
15081 msgid "C<unix:I<path>>"
15082 msgstr ""
15083
15084 #. type: textblock
15085 #: ../fish/guestfish-actions.pod:4282 ../src/guestfs-actions.pod:6651
15086 msgid "Connect to the Unix domain socket I<path>."
15087 msgstr ""
15088
15089 #. type: textblock
15090 #: ../fish/guestfish-actions.pod:4284 ../src/guestfs-actions.pod:6653
15091 msgid ""
15092 "This method lets you connect to an existing daemon or (using virtio-serial) "
15093 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
15094 "RUNNING DAEMONS>."
15095 msgstr ""
15096
15097 #. type: =head2
15098 #: ../fish/guestfish-actions.pod:4290
15099 msgid "set-autosync"
15100 msgstr ""
15101
15102 #. type: =head2
15103 #: ../fish/guestfish-actions.pod:4292
15104 msgid "autosync"
15105 msgstr ""
15106
15107 #. type: verbatim
15108 #: ../fish/guestfish-actions.pod:4294
15109 #, no-wrap
15110 msgid ""
15111 " set-autosync true|false\n"
15112 "\n"
15113 msgstr ""
15114
15115 #. type: textblock
15116 #: ../fish/guestfish-actions.pod:4296 ../src/guestfs-actions.pod:6669
15117 msgid ""
15118 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
15119 "effort attempt to make filesystems consistent and synchronized when the "
15120 "handle is closed (also if the program exits without closing handles)."
15121 msgstr ""
15122
15123 #. type: textblock
15124 #: ../fish/guestfish-actions.pod:4301 ../src/guestfs-actions.pod:6674
15125 msgid ""
15126 "This is enabled by default (since libguestfs 1.5.24, previously it was "
15127 "disabled by default)."
15128 msgstr ""
15129
15130 #. type: =head2
15131 #: ../fish/guestfish-actions.pod:4304
15132 msgid "set-direct"
15133 msgstr ""
15134
15135 #. type: =head2
15136 #: ../fish/guestfish-actions.pod:4306
15137 msgid "direct"
15138 msgstr ""
15139
15140 #. type: verbatim
15141 #: ../fish/guestfish-actions.pod:4308
15142 #, no-wrap
15143 msgid ""
15144 " set-direct true|false\n"
15145 "\n"
15146 msgstr ""
15147
15148 #. type: textblock
15149 #: ../fish/guestfish-actions.pod:4310 ../src/guestfs-actions.pod:6687
15150 msgid ""
15151 "If the direct appliance mode flag is enabled, then stdin and stdout are "
15152 "passed directly through to the appliance once it is launched."
15153 msgstr ""
15154
15155 #. type: textblock
15156 #: ../fish/guestfish-actions.pod:4314
15157 msgid ""
15158 "One consequence of this is that log messages aren't caught by the library "
15159 "and handled by L</set-log-message-callback>, but go straight to stdout."
15160 msgstr ""
15161
15162 #. type: textblock
15163 #: ../fish/guestfish-actions.pod:4318 ../src/guestfs-actions.pod:6695
15164 msgid "You probably don't want to use this unless you know what you are doing."
15165 msgstr ""
15166
15167 #. type: textblock
15168 #: ../fish/guestfish-actions.pod:4321 ../src/guestfs-actions.pod:6698
15169 msgid "The default is disabled."
15170 msgstr ""
15171
15172 #. type: =head2
15173 #: ../fish/guestfish-actions.pod:4323
15174 msgid "set-e2label"
15175 msgstr ""
15176
15177 #. type: verbatim
15178 #: ../fish/guestfish-actions.pod:4325
15179 #, no-wrap
15180 msgid ""
15181 " set-e2label device label\n"
15182 "\n"
15183 msgstr ""
15184
15185 #. type: textblock
15186 #: ../fish/guestfish-actions.pod:4327 ../src/guestfs-actions.pod:6711
15187 msgid ""
15188 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
15189 "C<label>.  Filesystem labels are limited to 16 characters."
15190 msgstr ""
15191
15192 #. type: textblock
15193 #: ../fish/guestfish-actions.pod:4331
15194 msgid ""
15195 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
15196 "label on a filesystem."
15197 msgstr ""
15198
15199 #. type: =head2
15200 #: ../fish/guestfish-actions.pod:4334
15201 msgid "set-e2uuid"
15202 msgstr ""
15203
15204 #. type: verbatim
15205 #: ../fish/guestfish-actions.pod:4336
15206 #, no-wrap
15207 msgid ""
15208 " set-e2uuid device uuid\n"
15209 "\n"
15210 msgstr ""
15211
15212 #. type: textblock
15213 #: ../fish/guestfish-actions.pod:4338 ../src/guestfs-actions.pod:6729
15214 msgid ""
15215 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
15216 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
15217 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
15218 msgstr ""
15219
15220 #. type: textblock
15221 #: ../fish/guestfish-actions.pod:4343
15222 msgid ""
15223 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
15224 "UUID of a filesystem."
15225 msgstr ""
15226
15227 #. type: =head2
15228 #: ../fish/guestfish-actions.pod:4346
15229 msgid "set-memsize"
15230 msgstr ""
15231
15232 #. type: =head2
15233 #: ../fish/guestfish-actions.pod:4348
15234 msgid "memsize"
15235 msgstr ""
15236
15237 #. type: verbatim
15238 #: ../fish/guestfish-actions.pod:4350
15239 #, no-wrap
15240 msgid ""
15241 " set-memsize memsize\n"
15242 "\n"
15243 msgstr ""
15244
15245 #. type: textblock
15246 #: ../fish/guestfish-actions.pod:4352
15247 msgid ""
15248 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
15249 "This only has any effect if called before L</launch>."
15250 msgstr ""
15251
15252 #. type: textblock
15253 #: ../fish/guestfish-actions.pod:4356 ../src/guestfs-actions.pod:6751
15254 msgid ""
15255 "You can also change this by setting the environment variable "
15256 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
15257 msgstr ""
15258
15259 #. type: =head2
15260 #: ../fish/guestfish-actions.pod:4363
15261 msgid "set-network"
15262 msgstr ""
15263
15264 #. type: =head2
15265 #: ../fish/guestfish-actions.pod:4365
15266 msgid "network"
15267 msgstr ""
15268
15269 #. type: verbatim
15270 #: ../fish/guestfish-actions.pod:4367
15271 #, no-wrap
15272 msgid ""
15273 " set-network true|false\n"
15274 "\n"
15275 msgstr ""
15276
15277 #. type: textblock
15278 #: ../fish/guestfish-actions.pod:4369 ../src/guestfs-actions.pod:6768
15279 msgid ""
15280 "If C<network> is true, then the network is enabled in the libguestfs "
15281 "appliance.  The default is false."
15282 msgstr ""
15283
15284 #. type: textblock
15285 #: ../fish/guestfish-actions.pod:4372 ../src/guestfs-actions.pod:6771
15286 msgid ""
15287 "This affects whether commands are able to access the network (see "
15288 "L<guestfs(3)/RUNNING COMMANDS>)."
15289 msgstr ""
15290
15291 #. type: textblock
15292 #: ../fish/guestfish-actions.pod:4375
15293 msgid "You must call this before calling L</launch>, otherwise it has no effect."
15294 msgstr ""
15295
15296 #. type: =head2
15297 #: ../fish/guestfish-actions.pod:4378
15298 msgid "set-path"
15299 msgstr ""
15300
15301 #. type: verbatim
15302 #: ../fish/guestfish-actions.pod:4382
15303 #, no-wrap
15304 msgid ""
15305 " set-path searchpath\n"
15306 "\n"
15307 msgstr ""
15308
15309 #. type: textblock
15310 #: ../fish/guestfish-actions.pod:4384 ../src/guestfs-actions.pod:6787
15311 msgid "Set the path that libguestfs searches for kernel and initrd.img."
15312 msgstr ""
15313
15314 #. type: textblock
15315 #: ../fish/guestfish-actions.pod:4386 ../src/guestfs-actions.pod:6789
15316 msgid ""
15317 "The default is C<$libdir/guestfs> unless overridden by setting "
15318 "C<LIBGUESTFS_PATH> environment variable."
15319 msgstr ""
15320
15321 #. type: textblock
15322 #: ../fish/guestfish-actions.pod:4389 ../src/guestfs-actions.pod:6792
15323 msgid "Setting C<path> to C<NULL> restores the default path."
15324 msgstr ""
15325
15326 #. type: =head2
15327 #: ../fish/guestfish-actions.pod:4391
15328 msgid "set-pgroup"
15329 msgstr ""
15330
15331 #. type: =head2
15332 #: ../fish/guestfish-actions.pod:4393
15333 msgid "pgroup"
15334 msgstr ""
15335
15336 #. type: verbatim
15337 #: ../fish/guestfish-actions.pod:4395
15338 #, no-wrap
15339 msgid ""
15340 " set-pgroup true|false\n"
15341 "\n"
15342 msgstr ""
15343
15344 #. type: textblock
15345 #: ../fish/guestfish-actions.pod:4397 ../src/guestfs-actions.pod:6804
15346 msgid ""
15347 "If C<pgroup> is true, child processes are placed into their own process "
15348 "group."
15349 msgstr ""
15350
15351 #. type: textblock
15352 #: ../fish/guestfish-actions.pod:4400 ../src/guestfs-actions.pod:6807
15353 msgid ""
15354 "The practical upshot of this is that signals like C<SIGINT> (from users "
15355 "pressing C<^C>) won't be received by the child process."
15356 msgstr ""
15357
15358 #. type: textblock
15359 #: ../fish/guestfish-actions.pod:4403 ../src/guestfs-actions.pod:6810
15360 msgid ""
15361 "The default for this flag is false, because usually you want C<^C> to kill "
15362 "the subprocess."
15363 msgstr ""
15364
15365 #. type: =head2
15366 #: ../fish/guestfish-actions.pod:4406
15367 msgid "set-qemu"
15368 msgstr ""
15369
15370 #. type: =head2
15371 #: ../fish/guestfish-actions.pod:4408
15372 msgid "qemu"
15373 msgstr ""
15374
15375 #. type: verbatim
15376 #: ../fish/guestfish-actions.pod:4410
15377 #, no-wrap
15378 msgid ""
15379 " set-qemu qemu\n"
15380 "\n"
15381 msgstr ""
15382
15383 #. type: textblock
15384 #: ../fish/guestfish-actions.pod:4412 ../src/guestfs-actions.pod:6823
15385 msgid "Set the qemu binary that we will use."
15386 msgstr ""
15387
15388 #. type: textblock
15389 #: ../fish/guestfish-actions.pod:4414 ../src/guestfs-actions.pod:6825
15390 msgid "The default is chosen when the library was compiled by the configure script."
15391 msgstr ""
15392
15393 #. type: textblock
15394 #: ../fish/guestfish-actions.pod:4417 ../src/guestfs-actions.pod:6828
15395 msgid ""
15396 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
15397 "variable."
15398 msgstr ""
15399
15400 #. type: textblock
15401 #: ../fish/guestfish-actions.pod:4420 ../src/guestfs-actions.pod:6831
15402 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
15403 msgstr ""
15404
15405 #. type: textblock
15406 #: ../fish/guestfish-actions.pod:4422 ../src/guestfs-actions.pod:6833
15407 msgid ""
15408 "Note that you should call this function as early as possible after creating "
15409 "the handle.  This is because some pre-launch operations depend on testing "
15410 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
15411 "don't retest features, and so you might see inconsistent results.  Using the "
15412 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
15413 "the qemu binary at the same time as the handle is created."
15414 msgstr ""
15415
15416 #. type: =head2
15417 #: ../fish/guestfish-actions.pod:4430
15418 msgid "set-recovery-proc"
15419 msgstr ""
15420
15421 #. type: =head2
15422 #: ../fish/guestfish-actions.pod:4432
15423 msgid "recovery-proc"
15424 msgstr ""
15425
15426 #. type: verbatim
15427 #: ../fish/guestfish-actions.pod:4434
15428 #, no-wrap
15429 msgid ""
15430 " set-recovery-proc true|false\n"
15431 "\n"
15432 msgstr ""
15433
15434 #. type: textblock
15435 #: ../fish/guestfish-actions.pod:4436
15436 msgid ""
15437 "If this is called with the parameter C<false> then L</launch> does not "
15438 "create a recovery process.  The purpose of the recovery process is to stop "
15439 "runaway qemu processes in the case where the main program aborts abruptly."
15440 msgstr ""
15441
15442 #. type: textblock
15443 #: ../fish/guestfish-actions.pod:4441
15444 msgid ""
15445 "This only has any effect if called before L</launch>, and the default is "
15446 "true."
15447 msgstr ""
15448
15449 #. type: textblock
15450 #: ../fish/guestfish-actions.pod:4444 ../src/guestfs-actions.pod:6859
15451 msgid ""
15452 "About the only time when you would want to disable this is if the main "
15453 "process will fork itself into the background (\"daemonize\" itself).  In "
15454 "this case the recovery process thinks that the main program has disappeared "
15455 "and so kills qemu, which is not very helpful."
15456 msgstr ""
15457
15458 #. type: =head2
15459 #: ../fish/guestfish-actions.pod:4450
15460 msgid "set-selinux"
15461 msgstr ""
15462
15463 #. type: =head2
15464 #: ../fish/guestfish-actions.pod:4452
15465 msgid "selinux"
15466 msgstr ""
15467
15468 #. type: verbatim
15469 #: ../fish/guestfish-actions.pod:4454
15470 #, no-wrap
15471 msgid ""
15472 " set-selinux true|false\n"
15473 "\n"
15474 msgstr ""
15475
15476 #. type: textblock
15477 #: ../fish/guestfish-actions.pod:4456 ../src/guestfs-actions.pod:6875
15478 msgid ""
15479 "This sets the selinux flag that is passed to the appliance at boot time.  "
15480 "The default is C<selinux=0> (disabled)."
15481 msgstr ""
15482
15483 #. type: textblock
15484 #: ../fish/guestfish-actions.pod:4459 ../src/guestfs-actions.pod:6878
15485 msgid ""
15486 "Note that if SELinux is enabled, it is always in Permissive mode "
15487 "(C<enforcing=0>)."
15488 msgstr ""
15489
15490 #. type: =head2
15491 #: ../fish/guestfish-actions.pod:4465
15492 msgid "set-smp"
15493 msgstr ""
15494
15495 #. type: =head2
15496 #: ../fish/guestfish-actions.pod:4467
15497 msgid "smp"
15498 msgstr ""
15499
15500 #. type: verbatim
15501 #: ../fish/guestfish-actions.pod:4469
15502 #, no-wrap
15503 msgid ""
15504 " set-smp smp\n"
15505 "\n"
15506 msgstr ""
15507
15508 #. type: textblock
15509 #: ../fish/guestfish-actions.pod:4471 ../src/guestfs-actions.pod:6894
15510 msgid ""
15511 "Change the number of virtual CPUs assigned to the appliance.  The default is "
15512 "C<1>.  Increasing this may improve performance, though often it has no "
15513 "effect."
15514 msgstr ""
15515
15516 #. type: textblock
15517 #: ../fish/guestfish-actions.pod:4475
15518 msgid "This function must be called before L</launch>."
15519 msgstr ""
15520
15521 #. type: =head2
15522 #: ../fish/guestfish-actions.pod:4477
15523 msgid "set-trace"
15524 msgstr ""
15525
15526 #. type: =head2
15527 #: ../fish/guestfish-actions.pod:4479
15528 msgid "trace"
15529 msgstr ""
15530
15531 #. type: verbatim
15532 #: ../fish/guestfish-actions.pod:4481
15533 #, no-wrap
15534 msgid ""
15535 " set-trace true|false\n"
15536 "\n"
15537 msgstr ""
15538
15539 #. type: textblock
15540 #: ../fish/guestfish-actions.pod:4483 ../src/guestfs-actions.pod:6910
15541 msgid ""
15542 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
15543 "return values are traced."
15544 msgstr ""
15545
15546 #. type: textblock
15547 #: ../fish/guestfish-actions.pod:4486 ../src/guestfs-actions.pod:6913
15548 msgid ""
15549 "If you want to trace C API calls into libguestfs (and other libraries) then "
15550 "possibly a better way is to use the external ltrace(1) command."
15551 msgstr ""
15552
15553 #. type: textblock
15554 #: ../fish/guestfish-actions.pod:4490 ../src/guestfs-actions.pod:6917
15555 msgid ""
15556 "Command traces are disabled unless the environment variable "
15557 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
15558 msgstr ""
15559
15560 #. type: textblock
15561 #: ../fish/guestfish-actions.pod:4493
15562 msgid ""
15563 "Trace messages are normally sent to C<stderr>, unless you register a "
15564 "callback to send them somewhere else (see L</set-event-callback>)."
15565 msgstr ""
15566
15567 #. type: =head2
15568 #: ../fish/guestfish-actions.pod:4497
15569 msgid "set-verbose"
15570 msgstr ""
15571
15572 #. type: =head2
15573 #: ../fish/guestfish-actions.pod:4499
15574 msgid "verbose"
15575 msgstr ""
15576
15577 #. type: verbatim
15578 #: ../fish/guestfish-actions.pod:4501
15579 #, no-wrap
15580 msgid ""
15581 " set-verbose true|false\n"
15582 "\n"
15583 msgstr ""
15584
15585 #. type: textblock
15586 #: ../fish/guestfish-actions.pod:4503 ../src/guestfs-actions.pod:6934
15587 msgid "If C<verbose> is true, this turns on verbose messages."
15588 msgstr ""
15589
15590 #. type: textblock
15591 #: ../fish/guestfish-actions.pod:4505 ../src/guestfs-actions.pod:6936
15592 msgid ""
15593 "Verbose messages are disabled unless the environment variable "
15594 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
15595 msgstr ""
15596
15597 #. type: textblock
15598 #: ../fish/guestfish-actions.pod:4508
15599 msgid ""
15600 "Verbose messages are normally sent to C<stderr>, unless you register a "
15601 "callback to send them somewhere else (see L</set-event-callback>)."
15602 msgstr ""
15603
15604 #. type: =head2
15605 #: ../fish/guestfish-actions.pod:4512
15606 msgid "setcon"
15607 msgstr ""
15608
15609 #. type: verbatim
15610 #: ../fish/guestfish-actions.pod:4514
15611 #, no-wrap
15612 msgid ""
15613 " setcon context\n"
15614 "\n"
15615 msgstr ""
15616
15617 #. type: textblock
15618 #: ../fish/guestfish-actions.pod:4516 ../src/guestfs-actions.pod:6953
15619 msgid ""
15620 "This sets the SELinux security context of the daemon to the string "
15621 "C<context>."
15622 msgstr ""
15623
15624 #. type: textblock
15625 #: ../fish/guestfish-actions.pod:4519 ../src/guestfs-actions.pod:6956
15626 msgid "See the documentation about SELINUX in L<guestfs(3)>."
15627 msgstr ""
15628
15629 #. type: =head2
15630 #: ../fish/guestfish-actions.pod:4521
15631 msgid "setxattr"
15632 msgstr ""
15633
15634 #. type: verbatim
15635 #: ../fish/guestfish-actions.pod:4523
15636 #, no-wrap
15637 msgid ""
15638 " setxattr xattr val vallen path\n"
15639 "\n"
15640 msgstr ""
15641
15642 #. type: textblock
15643 #: ../fish/guestfish-actions.pod:4525 ../src/guestfs-actions.pod:6971
15644 msgid ""
15645 "This call sets the extended attribute named C<xattr> of the file C<path> to "
15646 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
15647 msgstr ""
15648
15649 #. type: textblock
15650 #: ../fish/guestfish-actions.pod:4529
15651 msgid "See also: L</lsetxattr>, L<attr(5)>."
15652 msgstr ""
15653
15654 #. type: =head2
15655 #: ../fish/guestfish-actions.pod:4531
15656 msgid "sfdisk"
15657 msgstr ""
15658
15659 #. type: verbatim
15660 #: ../fish/guestfish-actions.pod:4533
15661 #, no-wrap
15662 msgid ""
15663 " sfdisk device cyls heads sectors 'lines ...'\n"
15664 "\n"
15665 msgstr ""
15666
15667 #. type: textblock
15668 #: ../fish/guestfish-actions.pod:4535 ../src/guestfs-actions.pod:6998
15669 msgid ""
15670 "This is a direct interface to the L<sfdisk(8)> program for creating "
15671 "partitions on block devices."
15672 msgstr ""
15673
15674 #. type: textblock
15675 #: ../fish/guestfish-actions.pod:4538 ../src/guestfs-actions.pod:7001
15676 msgid "C<device> should be a block device, for example C</dev/sda>."
15677 msgstr ""
15678
15679 #. type: textblock
15680 #: ../fish/guestfish-actions.pod:4540 ../src/guestfs-actions.pod:7003
15681 msgid ""
15682 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
15683 "sectors on the device, which are passed directly to sfdisk as the I<-C>, "
15684 "I<-H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
15685 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
15686 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
15687 "the kernel) cannot work out the right geometry and you will need to tell it."
15688 msgstr ""
15689
15690 #. type: textblock
15691 #: ../fish/guestfish-actions.pod:4548 ../src/guestfs-actions.pod:7011
15692 msgid ""
15693 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
15694 "refer to the L<sfdisk(8)> manpage."
15695 msgstr ""
15696
15697 #. type: textblock
15698 #: ../fish/guestfish-actions.pod:4551 ../src/guestfs-actions.pod:7014
15699 msgid ""
15700 "To create a single partition occupying the whole disk, you would pass "
15701 "C<lines> as a single element list, when the single element being the string "
15702 "C<,> (comma)."
15703 msgstr ""
15704
15705 #. type: textblock
15706 #: ../fish/guestfish-actions.pod:4555
15707 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
15708 msgstr ""
15709
15710 #. type: textblock
15711 #: ../fish/guestfish-actions.pod:4558 ../fish/guestfish-actions.pod:4578 ../fish/guestfish-actions.pod:4597
15712 msgid ""
15713 "I<This function is deprecated.> In new code, use the L</part_add> call "
15714 "instead."
15715 msgstr ""
15716
15717 #. type: =head2
15718 #: ../fish/guestfish-actions.pod:4565
15719 msgid "sfdiskM"
15720 msgstr ""
15721
15722 #. type: verbatim
15723 #: ../fish/guestfish-actions.pod:4567
15724 #, no-wrap
15725 msgid ""
15726 " sfdiskM device 'lines ...'\n"
15727 "\n"
15728 msgstr ""
15729
15730 #. type: textblock
15731 #: ../fish/guestfish-actions.pod:4569
15732 msgid ""
15733 "This is a simplified interface to the L</sfdisk> command, where partition "
15734 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
15735 "you don't need to specify the cyls, heads and sectors parameters which were "
15736 "rarely if ever used anyway."
15737 msgstr ""
15738
15739 #. type: textblock
15740 #: ../fish/guestfish-actions.pod:4575
15741 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
15742 msgstr ""
15743
15744 #. type: =head2
15745 #: ../fish/guestfish-actions.pod:4585
15746 msgid "sfdisk-N"
15747 msgstr ""
15748
15749 #. type: verbatim
15750 #: ../fish/guestfish-actions.pod:4587
15751 #, no-wrap
15752 msgid ""
15753 " sfdisk-N device partnum cyls heads sectors line\n"
15754 "\n"
15755 msgstr ""
15756
15757 #. type: textblock
15758 #: ../fish/guestfish-actions.pod:4589 ../src/guestfs-actions.pod:7070
15759 msgid ""
15760 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
15761 "(note: C<n> counts from 1)."
15762 msgstr ""
15763
15764 #. type: textblock
15765 #: ../fish/guestfish-actions.pod:4592
15766 msgid ""
15767 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
15768 "cyls/heads/sectors parameters."
15769 msgstr ""
15770
15771 #. type: textblock
15772 #: ../fish/guestfish-actions.pod:4595
15773 msgid "See also: L</part-add>"
15774 msgstr ""
15775
15776 #. type: =head2
15777 #: ../fish/guestfish-actions.pod:4604
15778 msgid "sfdisk-disk-geometry"
15779 msgstr ""
15780
15781 #. type: verbatim
15782 #: ../fish/guestfish-actions.pod:4606
15783 #, no-wrap
15784 msgid ""
15785 " sfdisk-disk-geometry device\n"
15786 "\n"
15787 msgstr ""
15788
15789 #. type: textblock
15790 #: ../fish/guestfish-actions.pod:4608
15791 msgid ""
15792 "This displays the disk geometry of C<device> read from the partition table.  "
15793 "Especially in the case where the underlying block device has been resized, "
15794 "this can be different from the kernel's idea of the geometry (see "
15795 "L</sfdisk-kernel-geometry>)."
15796 msgstr ""
15797
15798 #. type: textblock
15799 #: ../fish/guestfish-actions.pod:4613 ../fish/guestfish-actions.pod:4622 ../src/guestfs-actions.pod:7093 ../src/guestfs-actions.pod:7109
15800 msgid "The result is in human-readable format, and not designed to be parsed."
15801 msgstr ""
15802
15803 #. type: =head2
15804 #: ../fish/guestfish-actions.pod:4616
15805 msgid "sfdisk-kernel-geometry"
15806 msgstr ""
15807
15808 #. type: verbatim
15809 #: ../fish/guestfish-actions.pod:4618
15810 #, no-wrap
15811 msgid ""
15812 " sfdisk-kernel-geometry device\n"
15813 "\n"
15814 msgstr ""
15815
15816 #. type: textblock
15817 #: ../fish/guestfish-actions.pod:4620 ../src/guestfs-actions.pod:7107
15818 msgid "This displays the kernel's idea of the geometry of C<device>."
15819 msgstr ""
15820
15821 #. type: =head2
15822 #: ../fish/guestfish-actions.pod:4625
15823 msgid "sfdisk-l"
15824 msgstr ""
15825
15826 #. type: verbatim
15827 #: ../fish/guestfish-actions.pod:4627
15828 #, no-wrap
15829 msgid ""
15830 " sfdisk-l device\n"
15831 "\n"
15832 msgstr ""
15833
15834 #. type: textblock
15835 #: ../fish/guestfish-actions.pod:4629 ../src/guestfs-actions.pod:7130
15836 msgid ""
15837 "This displays the partition table on C<device>, in the human-readable output "
15838 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
15839 msgstr ""
15840
15841 #. type: textblock
15842 #: ../fish/guestfish-actions.pod:4633
15843 msgid "See also: L</part-list>"
15844 msgstr ""
15845
15846 #. type: textblock
15847 #: ../fish/guestfish-actions.pod:4635
15848 msgid ""
15849 "I<This function is deprecated.> In new code, use the L</part_list> call "
15850 "instead."
15851 msgstr ""
15852
15853 #. type: =head2
15854 #: ../fish/guestfish-actions.pod:4642
15855 msgid "sh"
15856 msgstr ""
15857
15858 #. type: verbatim
15859 #: ../fish/guestfish-actions.pod:4644
15860 #, no-wrap
15861 msgid ""
15862 " sh command\n"
15863 "\n"
15864 msgstr ""
15865
15866 #. type: textblock
15867 #: ../fish/guestfish-actions.pod:4646 ../src/guestfs-actions.pod:7147
15868 msgid ""
15869 "This call runs a command from the guest filesystem via the guest's "
15870 "C</bin/sh>."
15871 msgstr ""
15872
15873 #. type: textblock
15874 #: ../fish/guestfish-actions.pod:4649
15875 msgid "This is like L</command>, but passes the command to:"
15876 msgstr ""
15877
15878 #. type: verbatim
15879 #: ../fish/guestfish-actions.pod:4651 ../src/guestfs-actions.pod:7152
15880 #, no-wrap
15881 msgid ""
15882 " /bin/sh -c \"command\"\n"
15883 "\n"
15884 msgstr ""
15885
15886 #. type: textblock
15887 #: ../fish/guestfish-actions.pod:4653 ../src/guestfs-actions.pod:7154
15888 msgid ""
15889 "Depending on the guest's shell, this usually results in wildcards being "
15890 "expanded, shell expressions being interpolated and so on."
15891 msgstr ""
15892
15893 #. type: textblock
15894 #: ../fish/guestfish-actions.pod:4657
15895 msgid "All the provisos about L</command> apply to this call."
15896 msgstr ""
15897
15898 #. type: =head2
15899 #: ../fish/guestfish-actions.pod:4659
15900 msgid "sh-lines"
15901 msgstr ""
15902
15903 #. type: verbatim
15904 #: ../fish/guestfish-actions.pod:4661
15905 #, no-wrap
15906 msgid ""
15907 " sh-lines command\n"
15908 "\n"
15909 msgstr ""
15910
15911 #. type: textblock
15912 #: ../fish/guestfish-actions.pod:4663
15913 msgid "This is the same as L</sh>, but splits the result into a list of lines."
15914 msgstr ""
15915
15916 #. type: textblock
15917 #: ../fish/guestfish-actions.pod:4666
15918 msgid "See also: L</command-lines>"
15919 msgstr ""
15920
15921 #. type: =head2
15922 #: ../fish/guestfish-actions.pod:4668
15923 msgid "sleep"
15924 msgstr ""
15925
15926 #. type: verbatim
15927 #: ../fish/guestfish-actions.pod:4670
15928 #, no-wrap
15929 msgid ""
15930 " sleep secs\n"
15931 "\n"
15932 msgstr ""
15933
15934 #. type: textblock
15935 #: ../fish/guestfish-actions.pod:4672 ../src/guestfs-actions.pod:7188
15936 msgid "Sleep for C<secs> seconds."
15937 msgstr ""
15938
15939 #. type: =head2
15940 #: ../fish/guestfish-actions.pod:4674
15941 msgid "stat"
15942 msgstr ""
15943
15944 #. type: verbatim
15945 #: ../fish/guestfish-actions.pod:4676
15946 #, no-wrap
15947 msgid ""
15948 " stat path\n"
15949 "\n"
15950 msgstr ""
15951
15952 #. type: textblock
15953 #: ../fish/guestfish-actions.pod:4680 ../src/guestfs-actions.pod:7202
15954 msgid "This is the same as the C<stat(2)> system call."
15955 msgstr ""
15956
15957 #. type: =head2
15958 #: ../fish/guestfish-actions.pod:4682
15959 msgid "statvfs"
15960 msgstr ""
15961
15962 #. type: verbatim
15963 #: ../fish/guestfish-actions.pod:4684
15964 #, no-wrap
15965 msgid ""
15966 " statvfs path\n"
15967 "\n"
15968 msgstr ""
15969
15970 #. type: textblock
15971 #: ../fish/guestfish-actions.pod:4686 ../src/guestfs-actions.pod:7216
15972 msgid ""
15973 "Returns file system statistics for any mounted file system.  C<path> should "
15974 "be a file or directory in the mounted file system (typically it is the mount "
15975 "point itself, but it doesn't need to be)."
15976 msgstr ""
15977
15978 #. type: textblock
15979 #: ../fish/guestfish-actions.pod:4690 ../src/guestfs-actions.pod:7220
15980 msgid "This is the same as the C<statvfs(2)> system call."
15981 msgstr ""
15982
15983 #. type: =head2
15984 #: ../fish/guestfish-actions.pod:4692
15985 msgid "strings"
15986 msgstr ""
15987
15988 #. type: verbatim
15989 #: ../fish/guestfish-actions.pod:4694
15990 #, no-wrap
15991 msgid ""
15992 " strings path\n"
15993 "\n"
15994 msgstr ""
15995
15996 #. type: textblock
15997 #: ../fish/guestfish-actions.pod:4696 ../src/guestfs-actions.pod:7234
15998 msgid ""
15999 "This runs the L<strings(1)> command on a file and returns the list of "
16000 "printable strings found."
16001 msgstr ""
16002
16003 #. type: =head2
16004 #: ../fish/guestfish-actions.pod:4702
16005 msgid "strings-e"
16006 msgstr ""
16007
16008 #. type: verbatim
16009 #: ../fish/guestfish-actions.pod:4704
16010 #, no-wrap
16011 msgid ""
16012 " strings-e encoding path\n"
16013 "\n"
16014 msgstr ""
16015
16016 #. type: textblock
16017 #: ../fish/guestfish-actions.pod:4706
16018 msgid ""
16019 "This is like the L</strings> command, but allows you to specify the encoding "
16020 "of strings that are looked for in the source file C<path>."
16021 msgstr ""
16022
16023 #. type: textblock
16024 #: ../fish/guestfish-actions.pod:4710 ../src/guestfs-actions.pod:7257
16025 msgid "Allowed encodings are:"
16026 msgstr ""
16027
16028 #. type: =item
16029 #: ../fish/guestfish-actions.pod:4714 ../src/guestfs-actions.pod:7261
16030 msgid "s"
16031 msgstr ""
16032
16033 #. type: textblock
16034 #: ../fish/guestfish-actions.pod:4716
16035 msgid ""
16036 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
16037 "ISO-8859-X (this is what L</strings> uses)."
16038 msgstr ""
16039
16040 #. type: =item
16041 #: ../fish/guestfish-actions.pod:4719 ../src/guestfs-actions.pod:7266
16042 msgid "S"
16043 msgstr ""
16044
16045 #. type: textblock
16046 #: ../fish/guestfish-actions.pod:4721 ../src/guestfs-actions.pod:7268
16047 msgid "Single 8-bit-byte characters."
16048 msgstr ""
16049
16050 #. type: =item
16051 #: ../fish/guestfish-actions.pod:4723 ../src/guestfs-actions.pod:7270
16052 msgid "b"
16053 msgstr ""
16054
16055 #. type: textblock
16056 #: ../fish/guestfish-actions.pod:4725 ../src/guestfs-actions.pod:7272
16057 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
16058 msgstr ""
16059
16060 #. type: =item
16061 #: ../fish/guestfish-actions.pod:4728 ../src/guestfs-actions.pod:7275
16062 msgid "l (lower case letter L)"
16063 msgstr ""
16064
16065 #. type: textblock
16066 #: ../fish/guestfish-actions.pod:4730 ../src/guestfs-actions.pod:7277
16067 msgid ""
16068 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
16069 "examining binaries in Windows guests."
16070 msgstr ""
16071
16072 #. type: =item
16073 #: ../fish/guestfish-actions.pod:4733 ../src/guestfs-actions.pod:7280
16074 msgid "B"
16075 msgstr ""
16076
16077 #. type: textblock
16078 #: ../fish/guestfish-actions.pod:4735 ../src/guestfs-actions.pod:7282
16079 msgid "32-bit big endian such as UCS-4BE."
16080 msgstr ""
16081
16082 #. type: =item
16083 #: ../fish/guestfish-actions.pod:4737 ../src/guestfs-actions.pod:7284
16084 msgid "L"
16085 msgstr ""
16086
16087 #. type: textblock
16088 #: ../fish/guestfish-actions.pod:4739 ../src/guestfs-actions.pod:7286
16089 msgid "32-bit little endian such as UCS-4LE."
16090 msgstr ""
16091
16092 #. type: textblock
16093 #: ../fish/guestfish-actions.pod:4743 ../src/guestfs-actions.pod:7290
16094 msgid "The returned strings are transcoded to UTF-8."
16095 msgstr ""
16096
16097 #. type: =head2
16098 #: ../fish/guestfish-actions.pod:4748
16099 msgid "swapoff-device"
16100 msgstr ""
16101
16102 #. type: verbatim
16103 #: ../fish/guestfish-actions.pod:4750
16104 #, no-wrap
16105 msgid ""
16106 " swapoff-device device\n"
16107 "\n"
16108 msgstr ""
16109
16110 #. type: textblock
16111 #: ../fish/guestfish-actions.pod:4752
16112 msgid ""
16113 "This command disables the libguestfs appliance swap device or partition "
16114 "named C<device>.  See L</swapon-device>."
16115 msgstr ""
16116
16117 #. type: =head2
16118 #: ../fish/guestfish-actions.pod:4756
16119 msgid "swapoff-file"
16120 msgstr ""
16121
16122 #. type: verbatim
16123 #: ../fish/guestfish-actions.pod:4758
16124 #, no-wrap
16125 msgid ""
16126 " swapoff-file file\n"
16127 "\n"
16128 msgstr ""
16129
16130 #. type: textblock
16131 #: ../fish/guestfish-actions.pod:4760 ../src/guestfs-actions.pod:7321
16132 msgid "This command disables the libguestfs appliance swap on file."
16133 msgstr ""
16134
16135 #. type: =head2
16136 #: ../fish/guestfish-actions.pod:4762
16137 msgid "swapoff-label"
16138 msgstr ""
16139
16140 #. type: verbatim
16141 #: ../fish/guestfish-actions.pod:4764
16142 #, no-wrap
16143 msgid ""
16144 " swapoff-label label\n"
16145 "\n"
16146 msgstr ""
16147
16148 #. type: textblock
16149 #: ../fish/guestfish-actions.pod:4766 ../src/guestfs-actions.pod:7333
16150 msgid ""
16151 "This command disables the libguestfs appliance swap on labeled swap "
16152 "partition."
16153 msgstr ""
16154
16155 #. type: =head2
16156 #: ../fish/guestfish-actions.pod:4769
16157 msgid "swapoff-uuid"
16158 msgstr ""
16159
16160 #. type: verbatim
16161 #: ../fish/guestfish-actions.pod:4771
16162 #, no-wrap
16163 msgid ""
16164 " swapoff-uuid uuid\n"
16165 "\n"
16166 msgstr ""
16167
16168 #. type: textblock
16169 #: ../fish/guestfish-actions.pod:4773 ../src/guestfs-actions.pod:7346
16170 msgid ""
16171 "This command disables the libguestfs appliance swap partition with the given "
16172 "UUID."
16173 msgstr ""
16174
16175 #. type: =head2
16176 #: ../fish/guestfish-actions.pod:4776
16177 msgid "swapon-device"
16178 msgstr ""
16179
16180 #. type: verbatim
16181 #: ../fish/guestfish-actions.pod:4778
16182 #, no-wrap
16183 msgid ""
16184 " swapon-device device\n"
16185 "\n"
16186 msgstr ""
16187
16188 #. type: textblock
16189 #: ../fish/guestfish-actions.pod:4780
16190 msgid ""
16191 "This command enables the libguestfs appliance to use the swap device or "
16192 "partition named C<device>.  The increased memory is made available for all "
16193 "commands, for example those run using L</command> or L</sh>."
16194 msgstr ""
16195
16196 #. type: textblock
16197 #: ../fish/guestfish-actions.pod:4785 ../src/guestfs-actions.pod:7364
16198 msgid ""
16199 "Note that you should not swap to existing guest swap partitions unless you "
16200 "know what you are doing.  They may contain hibernation information, or other "
16201 "information that the guest doesn't want you to trash.  You also risk leaking "
16202 "information about the host to the guest this way.  Instead, attach a new "
16203 "host device to the guest and swap on that."
16204 msgstr ""
16205
16206 #. type: =head2
16207 #: ../fish/guestfish-actions.pod:4792
16208 msgid "swapon-file"
16209 msgstr ""
16210
16211 #. type: verbatim
16212 #: ../fish/guestfish-actions.pod:4794
16213 #, no-wrap
16214 msgid ""
16215 " swapon-file file\n"
16216 "\n"
16217 msgstr ""
16218
16219 #. type: textblock
16220 #: ../fish/guestfish-actions.pod:4796
16221 msgid "This command enables swap to a file.  See L</swapon-device> for other notes."
16222 msgstr ""
16223
16224 #. type: =head2
16225 #: ../fish/guestfish-actions.pod:4799
16226 msgid "swapon-label"
16227 msgstr ""
16228
16229 #. type: verbatim
16230 #: ../fish/guestfish-actions.pod:4801
16231 #, no-wrap
16232 msgid ""
16233 " swapon-label label\n"
16234 "\n"
16235 msgstr ""
16236
16237 #. type: textblock
16238 #: ../fish/guestfish-actions.pod:4803
16239 msgid ""
16240 "This command enables swap to a labeled swap partition.  See "
16241 "L</swapon-device> for other notes."
16242 msgstr ""
16243
16244 #. type: =head2
16245 #: ../fish/guestfish-actions.pod:4806
16246 msgid "swapon-uuid"
16247 msgstr ""
16248
16249 #. type: verbatim
16250 #: ../fish/guestfish-actions.pod:4808
16251 #, no-wrap
16252 msgid ""
16253 " swapon-uuid uuid\n"
16254 "\n"
16255 msgstr ""
16256
16257 #. type: textblock
16258 #: ../fish/guestfish-actions.pod:4810
16259 msgid ""
16260 "This command enables swap to a swap partition with the given UUID.  See "
16261 "L</swapon-device> for other notes."
16262 msgstr ""
16263
16264 #. type: =head2
16265 #: ../fish/guestfish-actions.pod:4813
16266 msgid "sync"
16267 msgstr ""
16268
16269 #. type: verbatim
16270 #: ../fish/guestfish-actions.pod:4815
16271 #, no-wrap
16272 msgid ""
16273 " sync\n"
16274 "\n"
16275 msgstr ""
16276
16277 #. type: textblock
16278 #: ../fish/guestfish-actions.pod:4817 ../src/guestfs-actions.pod:7419
16279 msgid ""
16280 "This syncs the disk, so that any writes are flushed through to the "
16281 "underlying disk image."
16282 msgstr ""
16283
16284 #. type: textblock
16285 #: ../fish/guestfish-actions.pod:4820 ../src/guestfs-actions.pod:7422
16286 msgid ""
16287 "You should always call this if you have modified a disk image, before "
16288 "closing the handle."
16289 msgstr ""
16290
16291 #. type: =head2
16292 #: ../fish/guestfish-actions.pod:4823
16293 msgid "tail"
16294 msgstr ""
16295
16296 #. type: verbatim
16297 #: ../fish/guestfish-actions.pod:4825
16298 #, no-wrap
16299 msgid ""
16300 " tail path\n"
16301 "\n"
16302 msgstr ""
16303
16304 #. type: textblock
16305 #: ../fish/guestfish-actions.pod:4827 ../src/guestfs-actions.pod:7435
16306 msgid "This command returns up to the last 10 lines of a file as a list of strings."
16307 msgstr ""
16308
16309 #. type: =head2
16310 #: ../fish/guestfish-actions.pod:4833
16311 msgid "tail-n"
16312 msgstr ""
16313
16314 #. type: verbatim
16315 #: ../fish/guestfish-actions.pod:4835
16316 #, no-wrap
16317 msgid ""
16318 " tail-n nrlines path\n"
16319 "\n"
16320 msgstr ""
16321
16322 #. type: textblock
16323 #: ../fish/guestfish-actions.pod:4837 ../src/guestfs-actions.pod:7454
16324 msgid ""
16325 "If the parameter C<nrlines> is a positive number, this returns the last "
16326 "C<nrlines> lines of the file C<path>."
16327 msgstr ""
16328
16329 #. type: textblock
16330 #: ../fish/guestfish-actions.pod:4840 ../src/guestfs-actions.pod:7457
16331 msgid ""
16332 "If the parameter C<nrlines> is a negative number, this returns lines from "
16333 "the file C<path>, starting with the C<-nrlines>th line."
16334 msgstr ""
16335
16336 #. type: =head2
16337 #: ../fish/guestfish-actions.pod:4848
16338 msgid "tar-in"
16339 msgstr ""
16340
16341 #. type: verbatim
16342 #: ../fish/guestfish-actions.pod:4850
16343 #, no-wrap
16344 msgid ""
16345 " tar-in (tarfile|-) directory\n"
16346 "\n"
16347 msgstr ""
16348
16349 #. type: textblock
16350 #: ../fish/guestfish-actions.pod:4852 ../src/guestfs-actions.pod:7478
16351 msgid ""
16352 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
16353 "tar file) into C<directory>."
16354 msgstr ""
16355
16356 #. type: textblock
16357 #: ../fish/guestfish-actions.pod:4855
16358 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
16359 msgstr ""
16360
16361 #. type: =head2
16362 #: ../fish/guestfish-actions.pod:4860
16363 msgid "tar-out"
16364 msgstr ""
16365
16366 #. type: verbatim
16367 #: ../fish/guestfish-actions.pod:4862
16368 #, no-wrap
16369 msgid ""
16370 " tar-out directory (tarfile|-)\n"
16371 "\n"
16372 msgstr ""
16373
16374 #. type: textblock
16375 #: ../fish/guestfish-actions.pod:4864 ../src/guestfs-actions.pod:7495
16376 msgid ""
16377 "This command packs the contents of C<directory> and downloads it to local "
16378 "file C<tarfile>."
16379 msgstr ""
16380
16381 #. type: textblock
16382 #: ../fish/guestfish-actions.pod:4867
16383 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
16384 msgstr ""
16385
16386 #. type: =head2
16387 #: ../fish/guestfish-actions.pod:4872
16388 msgid "tgz-in"
16389 msgstr ""
16390
16391 #. type: verbatim
16392 #: ../fish/guestfish-actions.pod:4874
16393 #, no-wrap
16394 msgid ""
16395 " tgz-in (tarball|-) directory\n"
16396 "\n"
16397 msgstr ""
16398
16399 #. type: textblock
16400 #: ../fish/guestfish-actions.pod:4876 ../src/guestfs-actions.pod:7512
16401 msgid ""
16402 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
16403 "tar file) into C<directory>."
16404 msgstr ""
16405
16406 #. type: textblock
16407 #: ../fish/guestfish-actions.pod:4879
16408 msgid "To upload an uncompressed tarball, use L</tar-in>."
16409 msgstr ""
16410
16411 #. type: =head2
16412 #: ../fish/guestfish-actions.pod:4883
16413 msgid "tgz-out"
16414 msgstr ""
16415
16416 #. type: verbatim
16417 #: ../fish/guestfish-actions.pod:4885
16418 #, no-wrap
16419 msgid ""
16420 " tgz-out directory (tarball|-)\n"
16421 "\n"
16422 msgstr ""
16423
16424 #. type: textblock
16425 #: ../fish/guestfish-actions.pod:4887 ../src/guestfs-actions.pod:7528
16426 msgid ""
16427 "This command packs the contents of C<directory> and downloads it to local "
16428 "file C<tarball>."
16429 msgstr ""
16430
16431 #. type: textblock
16432 #: ../fish/guestfish-actions.pod:4890
16433 msgid "To download an uncompressed tarball, use L</tar-out>."
16434 msgstr ""
16435
16436 #. type: =head2
16437 #: ../fish/guestfish-actions.pod:4894
16438 msgid "touch"
16439 msgstr ""
16440
16441 #. type: verbatim
16442 #: ../fish/guestfish-actions.pod:4896
16443 #, no-wrap
16444 msgid ""
16445 " touch path\n"
16446 "\n"
16447 msgstr ""
16448
16449 #. type: textblock
16450 #: ../fish/guestfish-actions.pod:4898 ../src/guestfs-actions.pod:7543
16451 msgid ""
16452 "Touch acts like the L<touch(1)> command.  It can be used to update the "
16453 "timestamps on a file, or, if the file does not exist, to create a new "
16454 "zero-length file."
16455 msgstr ""
16456
16457 #. type: textblock
16458 #: ../fish/guestfish-actions.pod:4902 ../src/guestfs-actions.pod:7547
16459 msgid ""
16460 "This command only works on regular files, and will fail on other file types "
16461 "such as directories, symbolic links, block special etc."
16462 msgstr ""
16463
16464 #. type: =head2
16465 #: ../fish/guestfish-actions.pod:4905
16466 msgid "truncate"
16467 msgstr ""
16468
16469 #. type: verbatim
16470 #: ../fish/guestfish-actions.pod:4907
16471 #, no-wrap
16472 msgid ""
16473 " truncate path\n"
16474 "\n"
16475 msgstr ""
16476
16477 #. type: textblock
16478 #: ../fish/guestfish-actions.pod:4909 ../src/guestfs-actions.pod:7560
16479 msgid ""
16480 "This command truncates C<path> to a zero-length file.  The file must exist "
16481 "already."
16482 msgstr ""
16483
16484 #. type: =head2
16485 #: ../fish/guestfish-actions.pod:4912
16486 msgid "truncate-size"
16487 msgstr ""
16488
16489 #. type: verbatim
16490 #: ../fish/guestfish-actions.pod:4914
16491 #, no-wrap
16492 msgid ""
16493 " truncate-size path size\n"
16494 "\n"
16495 msgstr ""
16496
16497 #. type: textblock
16498 #: ../fish/guestfish-actions.pod:4916 ../src/guestfs-actions.pod:7574
16499 msgid ""
16500 "This command truncates C<path> to size C<size> bytes.  The file must exist "
16501 "already."
16502 msgstr ""
16503
16504 #. type: textblock
16505 #: ../fish/guestfish-actions.pod:4919
16506 msgid ""
16507 "If the current file size is less than C<size> then the file is extended to "
16508 "the required size with zero bytes.  This creates a sparse file (ie. disk "
16509 "blocks are not allocated for the file until you write to it).  To create a "
16510 "non-sparse file of zeroes, use L</fallocate64> instead."
16511 msgstr ""
16512
16513 #. type: =head2
16514 #: ../fish/guestfish-actions.pod:4925
16515 msgid "tune2fs-l"
16516 msgstr ""
16517
16518 #. type: verbatim
16519 #: ../fish/guestfish-actions.pod:4927
16520 #, no-wrap
16521 msgid ""
16522 " tune2fs-l device\n"
16523 "\n"
16524 msgstr ""
16525
16526 #. type: textblock
16527 #: ../fish/guestfish-actions.pod:4929 ../src/guestfs-actions.pod:7593
16528 msgid ""
16529 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
16530 "C<device>."
16531 msgstr ""
16532
16533 #. type: textblock
16534 #: ../fish/guestfish-actions.pod:4932 ../src/guestfs-actions.pod:7596
16535 msgid ""
16536 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
16537 "for more details.  The list of fields returned isn't clearly defined, and "
16538 "depends on both the version of C<tune2fs> that libguestfs was built against, "
16539 "and the filesystem itself."
16540 msgstr ""
16541
16542 #. type: =head2
16543 #: ../fish/guestfish-actions.pod:4937
16544 msgid "txz-in"
16545 msgstr ""
16546
16547 #. type: verbatim
16548 #: ../fish/guestfish-actions.pod:4939
16549 #, no-wrap
16550 msgid ""
16551 " txz-in (tarball|-) directory\n"
16552 "\n"
16553 msgstr ""
16554
16555 #. type: textblock
16556 #: ../fish/guestfish-actions.pod:4941 ../src/guestfs-actions.pod:7616
16557 msgid ""
16558 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
16559 "tar file) into C<directory>."
16560 msgstr ""
16561
16562 #. type: =head2
16563 #: ../fish/guestfish-actions.pod:4946
16564 msgid "txz-out"
16565 msgstr ""
16566
16567 #. type: verbatim
16568 #: ../fish/guestfish-actions.pod:4948
16569 #, no-wrap
16570 msgid ""
16571 " txz-out directory (tarball|-)\n"
16572 "\n"
16573 msgstr ""
16574
16575 #. type: textblock
16576 #: ../fish/guestfish-actions.pod:4950 ../src/guestfs-actions.pod:7630
16577 msgid ""
16578 "This command packs the contents of C<directory> and downloads it to local "
16579 "file C<tarball> (as an xz compressed tar archive)."
16580 msgstr ""
16581
16582 #. type: =head2
16583 #: ../fish/guestfish-actions.pod:4955
16584 msgid "umask"
16585 msgstr ""
16586
16587 #. type: verbatim
16588 #: ../fish/guestfish-actions.pod:4957
16589 #, no-wrap
16590 msgid ""
16591 " umask mask\n"
16592 "\n"
16593 msgstr ""
16594
16595 #. type: textblock
16596 #: ../fish/guestfish-actions.pod:4959 ../src/guestfs-actions.pod:7643
16597 msgid ""
16598 "This function sets the mask used for creating new files and device nodes to "
16599 "C<mask & 0777>."
16600 msgstr ""
16601
16602 #. type: textblock
16603 #: ../fish/guestfish-actions.pod:4962 ../src/guestfs-actions.pod:7646
16604 msgid ""
16605 "Typical umask values would be C<022> which creates new files with "
16606 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
16607 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
16608 msgstr ""
16609
16610 #. type: textblock
16611 #: ../fish/guestfish-actions.pod:4967 ../src/guestfs-actions.pod:7651
16612 msgid ""
16613 "The default umask is C<022>.  This is important because it means that "
16614 "directories and device nodes will be created with C<0644> or C<0755> mode "
16615 "even if you specify C<0777>."
16616 msgstr ""
16617
16618 #. type: textblock
16619 #: ../fish/guestfish-actions.pod:4971
16620 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
16621 msgstr ""
16622
16623 #. type: textblock
16624 #: ../fish/guestfish-actions.pod:4974 ../src/guestfs-actions.pod:7658
16625 msgid "This call returns the previous umask."
16626 msgstr ""
16627
16628 #. type: =head2
16629 #: ../fish/guestfish-actions.pod:4976
16630 msgid "umount"
16631 msgstr ""
16632
16633 #. type: =head2
16634 #: ../fish/guestfish-actions.pod:4978
16635 msgid "unmount"
16636 msgstr ""
16637
16638 #. type: verbatim
16639 #: ../fish/guestfish-actions.pod:4980
16640 #, no-wrap
16641 msgid ""
16642 " umount pathordevice\n"
16643 "\n"
16644 msgstr ""
16645
16646 #. type: textblock
16647 #: ../fish/guestfish-actions.pod:4982 ../src/guestfs-actions.pod:7670
16648 msgid ""
16649 "This unmounts the given filesystem.  The filesystem may be specified either "
16650 "by its mountpoint (path) or the device which contains the filesystem."
16651 msgstr ""
16652
16653 #. type: =head2
16654 #: ../fish/guestfish-actions.pod:4986
16655 msgid "umount-all"
16656 msgstr ""
16657
16658 #. type: =head2
16659 #: ../fish/guestfish-actions.pod:4988
16660 msgid "unmount-all"
16661 msgstr ""
16662
16663 #. type: verbatim
16664 #: ../fish/guestfish-actions.pod:4990
16665 #, no-wrap
16666 msgid ""
16667 " umount-all\n"
16668 "\n"
16669 msgstr ""
16670
16671 #. type: textblock
16672 #: ../fish/guestfish-actions.pod:4992 ../src/guestfs-actions.pod:7683
16673 msgid "This unmounts all mounted filesystems."
16674 msgstr ""
16675
16676 #. type: textblock
16677 #: ../fish/guestfish-actions.pod:4994 ../src/guestfs-actions.pod:7685
16678 msgid "Some internal mounts are not unmounted by this call."
16679 msgstr ""
16680
16681 #. type: =head2
16682 #: ../fish/guestfish-actions.pod:4996
16683 msgid "upload"
16684 msgstr ""
16685
16686 #. type: verbatim
16687 #: ../fish/guestfish-actions.pod:4998
16688 #, no-wrap
16689 msgid ""
16690 " upload (filename|-) remotefilename\n"
16691 "\n"
16692 msgstr ""
16693
16694 #. type: textblock
16695 #: ../fish/guestfish-actions.pod:5000 ../fish/guestfish-actions.pod:5013 ../src/guestfs-actions.pod:7698 ../src/guestfs-actions.pod:7722
16696 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
16697 msgstr ""
16698
16699 #. type: textblock
16700 #: ../fish/guestfish-actions.pod:5005
16701 msgid "See also L</download>."
16702 msgstr ""
16703
16704 #. type: =head2
16705 #: ../fish/guestfish-actions.pod:5009
16706 msgid "upload-offset"
16707 msgstr ""
16708
16709 #. type: verbatim
16710 #: ../fish/guestfish-actions.pod:5011
16711 #, no-wrap
16712 msgid ""
16713 " upload-offset (filename|-) remotefilename offset\n"
16714 "\n"
16715 msgstr ""
16716
16717 #. type: textblock
16718 #: ../fish/guestfish-actions.pod:5016 ../src/guestfs-actions.pod:7725
16719 msgid ""
16720 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
16721 "The intention is to overwrite parts of existing files or devices, although "
16722 "if a non-existant file is specified then it is created with a \"hole\" "
16723 "before C<offset>.  The size of the data written is implicit in the size of "
16724 "the source C<filename>."
16725 msgstr ""
16726
16727 #. type: textblock
16728 #: ../fish/guestfish-actions.pod:5023
16729 msgid ""
16730 "Note that there is no limit on the amount of data that can be uploaded with "
16731 "this call, unlike with L</pwrite>, and this call always writes the full "
16732 "amount unless an error occurs."
16733 msgstr ""
16734
16735 #. type: textblock
16736 #: ../fish/guestfish-actions.pod:5028
16737 msgid "See also L</upload>, L</pwrite>."
16738 msgstr ""
16739
16740 #. type: =head2
16741 #: ../fish/guestfish-actions.pod:5032
16742 msgid "utimens"
16743 msgstr ""
16744
16745 #. type: verbatim
16746 #: ../fish/guestfish-actions.pod:5034
16747 #, no-wrap
16748 msgid ""
16749 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
16750 "\n"
16751 msgstr ""
16752
16753 #. type: textblock
16754 #: ../fish/guestfish-actions.pod:5036 ../src/guestfs-actions.pod:7758
16755 msgid "This command sets the timestamps of a file with nanosecond precision."
16756 msgstr ""
16757
16758 #. type: textblock
16759 #: ../fish/guestfish-actions.pod:5039 ../src/guestfs-actions.pod:7761
16760 msgid ""
16761 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
16762 "from the epoch."
16763 msgstr ""
16764
16765 #. type: textblock
16766 #: ../fish/guestfish-actions.pod:5042 ../src/guestfs-actions.pod:7764
16767 msgid ""
16768 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
16769 "nanoseconds from the epoch."
16770 msgstr ""
16771
16772 #. type: textblock
16773 #: ../fish/guestfish-actions.pod:5045 ../src/guestfs-actions.pod:7767
16774 msgid ""
16775 "If the C<*nsecs> field contains the special value C<-1> then the "
16776 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
16777 "ignored in this case)."
16778 msgstr ""
16779
16780 #. type: textblock
16781 #: ../fish/guestfish-actions.pod:5049 ../src/guestfs-actions.pod:7771
16782 msgid ""
16783 "If the C<*nsecs> field contains the special value C<-2> then the "
16784 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
16785 "in this case)."
16786 msgstr ""
16787
16788 #. type: =head2
16789 #: ../fish/guestfish-actions.pod:5053
16790 msgid "version"
16791 msgstr ""
16792
16793 #. type: verbatim
16794 #: ../fish/guestfish-actions.pod:5055
16795 #, no-wrap
16796 msgid ""
16797 " version\n"
16798 "\n"
16799 msgstr ""
16800
16801 #. type: textblock
16802 #: ../fish/guestfish-actions.pod:5057 ../src/guestfs-actions.pod:7784
16803 msgid "Return the libguestfs version number that the program is linked against."
16804 msgstr ""
16805
16806 #. type: textblock
16807 #: ../fish/guestfish-actions.pod:5060 ../src/guestfs-actions.pod:7787
16808 msgid ""
16809 "Note that because of dynamic linking this is not necessarily the version of "
16810 "libguestfs that you compiled against.  You can compile the program, and then "
16811 "at runtime dynamically link against a completely different C<libguestfs.so> "
16812 "library."
16813 msgstr ""
16814
16815 #. type: textblock
16816 #: ../fish/guestfish-actions.pod:5065 ../src/guestfs-actions.pod:7792
16817 msgid ""
16818 "This call was added in version C<1.0.58>.  In previous versions of "
16819 "libguestfs there was no way to get the version number.  From C code you can "
16820 "use dynamic linker functions to find out if this symbol exists (if it "
16821 "doesn't, then it's an earlier version)."
16822 msgstr ""
16823
16824 #. type: textblock
16825 #: ../fish/guestfish-actions.pod:5071 ../src/guestfs-actions.pod:7798
16826 msgid ""
16827 "The call returns a structure with four elements.  The first three (C<major>, "
16828 "C<minor> and C<release>) are numbers and correspond to the usual version "
16829 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
16830 "but may be used for distro-specific information."
16831 msgstr ""
16832
16833 #. type: textblock
16834 #: ../fish/guestfish-actions.pod:5077 ../src/guestfs-actions.pod:7804
16835 msgid "To construct the original version string: C<$major.$minor.$release$extra>"
16836 msgstr ""
16837
16838 #. type: textblock
16839 #: ../fish/guestfish-actions.pod:5080 ../src/guestfs-actions.pod:7807
16840 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
16841 msgstr ""
16842
16843 #. type: textblock
16844 #: ../fish/guestfish-actions.pod:5082
16845 msgid ""
16846 "I<Note:> Don't use this call to test for availability of features.  In "
16847 "enterprise distributions we backport features from later versions into "
16848 "earlier versions, making this an unreliable way to test for features.  Use "
16849 "L</available> instead."
16850 msgstr ""
16851
16852 #. type: =head2
16853 #: ../fish/guestfish-actions.pod:5088
16854 msgid "vfs-label"
16855 msgstr ""
16856
16857 #. type: verbatim
16858 #: ../fish/guestfish-actions.pod:5090
16859 #, no-wrap
16860 msgid ""
16861 " vfs-label device\n"
16862 "\n"
16863 msgstr ""
16864
16865 #. type: textblock
16866 #: ../fish/guestfish-actions.pod:5092 ../src/guestfs-actions.pod:7827
16867 msgid "This returns the filesystem label of the filesystem on C<device>."
16868 msgstr ""
16869
16870 #. type: textblock
16871 #: ../fish/guestfish-actions.pod:5095 ../src/guestfs-actions.pod:7830
16872 msgid "If the filesystem is unlabeled, this returns the empty string."
16873 msgstr ""
16874
16875 #. type: textblock
16876 #: ../fish/guestfish-actions.pod:5097
16877 msgid "To find a filesystem from the label, use L</findfs-label>."
16878 msgstr ""
16879
16880 #. type: =head2
16881 #: ../fish/guestfish-actions.pod:5099
16882 msgid "vfs-type"
16883 msgstr ""
16884
16885 #. type: verbatim
16886 #: ../fish/guestfish-actions.pod:5101
16887 #, no-wrap
16888 msgid ""
16889 " vfs-type device\n"
16890 "\n"
16891 msgstr ""
16892
16893 #. type: textblock
16894 #: ../fish/guestfish-actions.pod:5103 ../src/guestfs-actions.pod:7845
16895 msgid ""
16896 "This command gets the filesystem type corresponding to the filesystem on "
16897 "C<device>."
16898 msgstr ""
16899
16900 #. type: textblock
16901 #: ../fish/guestfish-actions.pod:5106 ../src/guestfs-actions.pod:7848
16902 msgid ""
16903 "For most filesystems, the result is the name of the Linux VFS module which "
16904 "would be used to mount this filesystem if you mounted it without specifying "
16905 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
16906 msgstr ""
16907
16908 #. type: =head2
16909 #: ../fish/guestfish-actions.pod:5111
16910 msgid "vfs-uuid"
16911 msgstr ""
16912
16913 #. type: verbatim
16914 #: ../fish/guestfish-actions.pod:5113
16915 #, no-wrap
16916 msgid ""
16917 " vfs-uuid device\n"
16918 "\n"
16919 msgstr ""
16920
16921 #. type: textblock
16922 #: ../fish/guestfish-actions.pod:5115 ../src/guestfs-actions.pod:7864
16923 msgid "This returns the filesystem UUID of the filesystem on C<device>."
16924 msgstr ""
16925
16926 #. type: textblock
16927 #: ../fish/guestfish-actions.pod:5118 ../src/guestfs-actions.pod:7867
16928 msgid "If the filesystem does not have a UUID, this returns the empty string."
16929 msgstr ""
16930
16931 #. type: textblock
16932 #: ../fish/guestfish-actions.pod:5120
16933 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
16934 msgstr ""
16935
16936 #. type: =head2
16937 #: ../fish/guestfish-actions.pod:5122
16938 msgid "vg-activate"
16939 msgstr ""
16940
16941 #. type: verbatim
16942 #: ../fish/guestfish-actions.pod:5124
16943 #, no-wrap
16944 msgid ""
16945 " vg-activate true|false 'volgroups ...'\n"
16946 "\n"
16947 msgstr ""
16948
16949 #. type: textblock
16950 #: ../fish/guestfish-actions.pod:5126 ../src/guestfs-actions.pod:7883
16951 msgid ""
16952 "This command activates or (if C<activate> is false) deactivates all logical "
16953 "volumes in the listed volume groups C<volgroups>."
16954 msgstr ""
16955
16956 #. type: textblock
16957 #: ../fish/guestfish-actions.pod:5129 ../src/guestfs-actions.pod:7886
16958 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
16959 msgstr ""
16960
16961 #. type: textblock
16962 #: ../fish/guestfish-actions.pod:5131 ../src/guestfs-actions.pod:7888
16963 msgid ""
16964 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
16965 "activated or deactivated."
16966 msgstr ""
16967
16968 #. type: =head2
16969 #: ../fish/guestfish-actions.pod:5134
16970 msgid "vg-activate-all"
16971 msgstr ""
16972
16973 #. type: verbatim
16974 #: ../fish/guestfish-actions.pod:5136
16975 #, no-wrap
16976 msgid ""
16977 " vg-activate-all true|false\n"
16978 "\n"
16979 msgstr ""
16980
16981 #. type: textblock
16982 #: ../fish/guestfish-actions.pod:5138 ../src/guestfs-actions.pod:7901
16983 msgid ""
16984 "This command activates or (if C<activate> is false) deactivates all logical "
16985 "volumes in all volume groups."
16986 msgstr ""
16987
16988 #. type: textblock
16989 #: ../fish/guestfish-actions.pod:5141 ../src/guestfs-actions.pod:7904
16990 msgid "This command is the same as running C<vgchange -a y|n>"
16991 msgstr ""
16992
16993 #. type: =head2
16994 #: ../fish/guestfish-actions.pod:5143
16995 msgid "vgcreate"
16996 msgstr ""
16997
16998 #. type: verbatim
16999 #: ../fish/guestfish-actions.pod:5145
17000 #, no-wrap
17001 msgid ""
17002 " vgcreate volgroup 'physvols ...'\n"
17003 "\n"
17004 msgstr ""
17005
17006 #. type: textblock
17007 #: ../fish/guestfish-actions.pod:5147 ../src/guestfs-actions.pod:7917
17008 msgid ""
17009 "This creates an LVM volume group called C<volgroup> from the non-empty list "
17010 "of physical volumes C<physvols>."
17011 msgstr ""
17012
17013 #. type: =head2
17014 #: ../fish/guestfish-actions.pod:5150
17015 msgid "vglvuuids"
17016 msgstr ""
17017
17018 #. type: verbatim
17019 #: ../fish/guestfish-actions.pod:5152
17020 #, no-wrap
17021 msgid ""
17022 " vglvuuids vgname\n"
17023 "\n"
17024 msgstr ""
17025
17026 #. type: textblock
17027 #: ../fish/guestfish-actions.pod:5154 ../src/guestfs-actions.pod:7930
17028 msgid ""
17029 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
17030 "volumes created in this volume group."
17031 msgstr ""
17032
17033 #. type: textblock
17034 #: ../fish/guestfish-actions.pod:5157
17035 msgid ""
17036 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
17037 "logical volumes and volume groups."
17038 msgstr ""
17039
17040 #. type: textblock
17041 #: ../fish/guestfish-actions.pod:5160
17042 msgid "See also L</vgpvuuids>."
17043 msgstr ""
17044
17045 #. type: =head2
17046 #: ../fish/guestfish-actions.pod:5162
17047 msgid "vgpvuuids"
17048 msgstr ""
17049
17050 #. type: verbatim
17051 #: ../fish/guestfish-actions.pod:5164
17052 #, no-wrap
17053 msgid ""
17054 " vgpvuuids vgname\n"
17055 "\n"
17056 msgstr ""
17057
17058 #. type: textblock
17059 #: ../fish/guestfish-actions.pod:5166 ../src/guestfs-actions.pod:7950
17060 msgid ""
17061 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
17062 "volumes that this volume group resides on."
17063 msgstr ""
17064
17065 #. type: textblock
17066 #: ../fish/guestfish-actions.pod:5169
17067 msgid ""
17068 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
17069 "physical volumes and volume groups."
17070 msgstr ""
17071
17072 #. type: textblock
17073 #: ../fish/guestfish-actions.pod:5172
17074 msgid "See also L</vglvuuids>."
17075 msgstr ""
17076
17077 #. type: =head2
17078 #: ../fish/guestfish-actions.pod:5174
17079 msgid "vgremove"
17080 msgstr ""
17081
17082 #. type: verbatim
17083 #: ../fish/guestfish-actions.pod:5176
17084 #, no-wrap
17085 msgid ""
17086 " vgremove vgname\n"
17087 "\n"
17088 msgstr ""
17089
17090 #. type: textblock
17091 #: ../fish/guestfish-actions.pod:5178 ../src/guestfs-actions.pod:7970
17092 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
17093 msgstr ""
17094
17095 #. type: textblock
17096 #: ../fish/guestfish-actions.pod:5180 ../src/guestfs-actions.pod:7972
17097 msgid "This also forcibly removes all logical volumes in the volume group (if any)."
17098 msgstr ""
17099
17100 #. type: =head2
17101 #: ../fish/guestfish-actions.pod:5183
17102 msgid "vgrename"
17103 msgstr ""
17104
17105 #. type: verbatim
17106 #: ../fish/guestfish-actions.pod:5185
17107 #, no-wrap
17108 msgid ""
17109 " vgrename volgroup newvolgroup\n"
17110 "\n"
17111 msgstr ""
17112
17113 #. type: textblock
17114 #: ../fish/guestfish-actions.pod:5187 ../src/guestfs-actions.pod:7986
17115 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
17116 msgstr ""
17117
17118 #. type: =head2
17119 #: ../fish/guestfish-actions.pod:5189
17120 msgid "vgs"
17121 msgstr ""
17122
17123 #. type: verbatim
17124 #: ../fish/guestfish-actions.pod:5191
17125 #, no-wrap
17126 msgid ""
17127 " vgs\n"
17128 "\n"
17129 msgstr ""
17130
17131 #. type: textblock
17132 #: ../fish/guestfish-actions.pod:5193 ../src/guestfs-actions.pod:7997
17133 msgid ""
17134 "List all the volumes groups detected.  This is the equivalent of the "
17135 "L<vgs(8)> command."
17136 msgstr ""
17137
17138 #. type: textblock
17139 #: ../fish/guestfish-actions.pod:5196 ../src/guestfs-actions.pod:8000
17140 msgid ""
17141 "This returns a list of just the volume group names that were detected "
17142 "(eg. C<VolGroup00>)."
17143 msgstr ""
17144
17145 #. type: textblock
17146 #: ../fish/guestfish-actions.pod:5199
17147 msgid "See also L</vgs-full>."
17148 msgstr ""
17149
17150 #. type: =head2
17151 #: ../fish/guestfish-actions.pod:5201
17152 msgid "vgs-full"
17153 msgstr ""
17154
17155 #. type: verbatim
17156 #: ../fish/guestfish-actions.pod:5203
17157 #, no-wrap
17158 msgid ""
17159 " vgs-full\n"
17160 "\n"
17161 msgstr ""
17162
17163 #. type: textblock
17164 #: ../fish/guestfish-actions.pod:5205 ../src/guestfs-actions.pod:8016
17165 msgid ""
17166 "List all the volumes groups detected.  This is the equivalent of the "
17167 "L<vgs(8)> command.  The \"full\" version includes all fields."
17168 msgstr ""
17169
17170 #. type: =head2
17171 #: ../fish/guestfish-actions.pod:5208
17172 msgid "vgscan"
17173 msgstr ""
17174
17175 #. type: verbatim
17176 #: ../fish/guestfish-actions.pod:5210
17177 #, no-wrap
17178 msgid ""
17179 " vgscan\n"
17180 "\n"
17181 msgstr ""
17182
17183 #. type: textblock
17184 #: ../fish/guestfish-actions.pod:5212 ../src/guestfs-actions.pod:8030
17185 msgid ""
17186 "This rescans all block devices and rebuilds the list of LVM physical "
17187 "volumes, volume groups and logical volumes."
17188 msgstr ""
17189
17190 #. type: =head2
17191 #: ../fish/guestfish-actions.pod:5215
17192 msgid "vguuid"
17193 msgstr ""
17194
17195 #. type: verbatim
17196 #: ../fish/guestfish-actions.pod:5217
17197 #, no-wrap
17198 msgid ""
17199 " vguuid vgname\n"
17200 "\n"
17201 msgstr ""
17202
17203 #. type: textblock
17204 #: ../fish/guestfish-actions.pod:5219 ../src/guestfs-actions.pod:8043
17205 msgid "This command returns the UUID of the LVM VG named C<vgname>."
17206 msgstr ""
17207
17208 #. type: =head2
17209 #: ../fish/guestfish-actions.pod:5221
17210 msgid "wc-c"
17211 msgstr ""
17212
17213 #. type: verbatim
17214 #: ../fish/guestfish-actions.pod:5223
17215 #, no-wrap
17216 msgid ""
17217 " wc-c path\n"
17218 "\n"
17219 msgstr ""
17220
17221 #. type: textblock
17222 #: ../fish/guestfish-actions.pod:5225 ../src/guestfs-actions.pod:8083
17223 msgid ""
17224 "This command counts the characters in a file, using the C<wc -c> external "
17225 "command."
17226 msgstr ""
17227
17228 #. type: =head2
17229 #: ../fish/guestfish-actions.pod:5228
17230 msgid "wc-l"
17231 msgstr ""
17232
17233 #. type: verbatim
17234 #: ../fish/guestfish-actions.pod:5230
17235 #, no-wrap
17236 msgid ""
17237 " wc-l path\n"
17238 "\n"
17239 msgstr ""
17240
17241 #. type: textblock
17242 #: ../fish/guestfish-actions.pod:5232 ../src/guestfs-actions.pod:8096
17243 msgid ""
17244 "This command counts the lines in a file, using the C<wc -l> external "
17245 "command."
17246 msgstr ""
17247
17248 #. type: =head2
17249 #: ../fish/guestfish-actions.pod:5235
17250 msgid "wc-w"
17251 msgstr ""
17252
17253 #. type: verbatim
17254 #: ../fish/guestfish-actions.pod:5237
17255 #, no-wrap
17256 msgid ""
17257 " wc-w path\n"
17258 "\n"
17259 msgstr ""
17260
17261 #. type: textblock
17262 #: ../fish/guestfish-actions.pod:5239 ../src/guestfs-actions.pod:8109
17263 msgid ""
17264 "This command counts the words in a file, using the C<wc -w> external "
17265 "command."
17266 msgstr ""
17267
17268 #. type: =head2
17269 #: ../fish/guestfish-actions.pod:5242
17270 msgid "write"
17271 msgstr ""
17272
17273 #. type: verbatim
17274 #: ../fish/guestfish-actions.pod:5244
17275 #, no-wrap
17276 msgid ""
17277 " write path content\n"
17278 "\n"
17279 msgstr ""
17280
17281 #. type: textblock
17282 #: ../fish/guestfish-actions.pod:5246 ../src/guestfs-actions.pod:8124
17283 msgid ""
17284 "This call creates a file called C<path>.  The content of the file is the "
17285 "string C<content> (which can contain any 8 bit data)."
17286 msgstr ""
17287
17288 #. type: textblock
17289 #: ../fish/guestfish-actions.pod:5249
17290 msgid "See also L</write-append>."
17291 msgstr ""
17292
17293 #. type: =head2
17294 #: ../fish/guestfish-actions.pod:5254
17295 msgid "write-append"
17296 msgstr ""
17297
17298 #. type: verbatim
17299 #: ../fish/guestfish-actions.pod:5256
17300 #, no-wrap
17301 msgid ""
17302 " write-append path content\n"
17303 "\n"
17304 msgstr ""
17305
17306 #. type: textblock
17307 #: ../fish/guestfish-actions.pod:5258 ../src/guestfs-actions.pod:8144
17308 msgid ""
17309 "This call appends C<content> to the end of file C<path>.  If C<path> does "
17310 "not exist, then a new file is created."
17311 msgstr ""
17312
17313 #. type: textblock
17314 #: ../fish/guestfish-actions.pod:5261
17315 msgid "See also L</write>."
17316 msgstr ""
17317
17318 #. type: =head2
17319 #: ../fish/guestfish-actions.pod:5266
17320 msgid "write-file"
17321 msgstr ""
17322
17323 #. type: verbatim
17324 #: ../fish/guestfish-actions.pod:5268
17325 #, no-wrap
17326 msgid ""
17327 " write-file path content size\n"
17328 "\n"
17329 msgstr ""
17330
17331 #. type: textblock
17332 #: ../fish/guestfish-actions.pod:5270 ../src/guestfs-actions.pod:8171
17333 msgid ""
17334 "This call creates a file called C<path>.  The contents of the file is the "
17335 "string C<content> (which can contain any 8 bit data), with length C<size>."
17336 msgstr ""
17337
17338 #. type: textblock
17339 #: ../fish/guestfish-actions.pod:5274 ../src/guestfs-actions.pod:8175
17340 msgid ""
17341 "As a special case, if C<size> is C<0> then the length is calculated using "
17342 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
17343 msgstr ""
17344
17345 #. type: textblock
17346 #: ../fish/guestfish-actions.pod:5278 ../src/guestfs-actions.pod:8179
17347 msgid ""
17348 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
17349 "I<not> work, even if the length is specified."
17350 msgstr ""
17351
17352 #. type: textblock
17353 #: ../fish/guestfish-actions.pod:5284
17354 msgid "I<This function is deprecated.> In new code, use the L</write> call instead."
17355 msgstr ""
17356
17357 #. type: =head2
17358 #: ../fish/guestfish-actions.pod:5291
17359 msgid "zegrep"
17360 msgstr ""
17361
17362 #. type: verbatim
17363 #: ../fish/guestfish-actions.pod:5293
17364 #, no-wrap
17365 msgid ""
17366 " zegrep regex path\n"
17367 "\n"
17368 msgstr ""
17369
17370 #. type: textblock
17371 #: ../fish/guestfish-actions.pod:5295 ../src/guestfs-actions.pod:8196
17372 msgid "This calls the external C<zegrep> program and returns the matching lines."
17373 msgstr ""
17374
17375 #. type: =head2
17376 #: ../fish/guestfish-actions.pod:5301
17377 msgid "zegrepi"
17378 msgstr ""
17379
17380 #. type: verbatim
17381 #: ../fish/guestfish-actions.pod:5303
17382 #, no-wrap
17383 msgid ""
17384 " zegrepi regex path\n"
17385 "\n"
17386 msgstr ""
17387
17388 #. type: textblock
17389 #: ../fish/guestfish-actions.pod:5305 ../src/guestfs-actions.pod:8215
17390 msgid "This calls the external C<zegrep -i> program and returns the matching lines."
17391 msgstr ""
17392
17393 #. type: =head2
17394 #: ../fish/guestfish-actions.pod:5311
17395 msgid "zero"
17396 msgstr ""
17397
17398 #. type: verbatim
17399 #: ../fish/guestfish-actions.pod:5313
17400 #, no-wrap
17401 msgid ""
17402 " zero device\n"
17403 "\n"
17404 msgstr ""
17405
17406 #. type: textblock
17407 #: ../fish/guestfish-actions.pod:5315 ../src/guestfs-actions.pod:8233
17408 msgid "This command writes zeroes over the first few blocks of C<device>."
17409 msgstr ""
17410
17411 #. type: textblock
17412 #: ../fish/guestfish-actions.pod:5317 ../src/guestfs-actions.pod:8235
17413 msgid ""
17414 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
17415 "securely wipe the device).  It should be sufficient to remove any partition "
17416 "tables, filesystem superblocks and so on."
17417 msgstr ""
17418
17419 #. type: textblock
17420 #: ../fish/guestfish-actions.pod:5321 ../fish/guestfish-actions.pod:5336 ../src/guestfs-actions.pod:8239 ../src/guestfs-actions.pod:8265
17421 msgid ""
17422 "If blocks are already zero, then this command avoids writing zeroes.  This "
17423 "prevents the underlying device from becoming non-sparse or growing "
17424 "unnecessarily."
17425 msgstr ""
17426
17427 #. type: textblock
17428 #: ../fish/guestfish-actions.pod:5325
17429 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
17430 msgstr ""
17431
17432 #. type: =head2
17433 #: ../fish/guestfish-actions.pod:5328
17434 msgid "zero-device"
17435 msgstr ""
17436
17437 #. type: verbatim
17438 #: ../fish/guestfish-actions.pod:5330
17439 #, no-wrap
17440 msgid ""
17441 " zero-device device\n"
17442 "\n"
17443 msgstr ""
17444
17445 #. type: textblock
17446 #: ../fish/guestfish-actions.pod:5332
17447 msgid ""
17448 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
17449 "which just zeroes the first few blocks of a device."
17450 msgstr ""
17451
17452 #. type: =head2
17453 #: ../fish/guestfish-actions.pod:5340
17454 msgid "zerofree"
17455 msgstr ""
17456
17457 #. type: verbatim
17458 #: ../fish/guestfish-actions.pod:5342
17459 #, no-wrap
17460 msgid ""
17461 " zerofree device\n"
17462 "\n"
17463 msgstr ""
17464
17465 #. type: textblock
17466 #: ../fish/guestfish-actions.pod:5344 ../src/guestfs-actions.pod:8284
17467 msgid ""
17468 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
17469 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
17470 "possible to compress the filesystem more effectively."
17471 msgstr ""
17472
17473 #. type: textblock
17474 #: ../fish/guestfish-actions.pod:5349 ../src/guestfs-actions.pod:8289
17475 msgid "You should B<not> run this program if the filesystem is mounted."
17476 msgstr ""
17477
17478 #. type: textblock
17479 #: ../fish/guestfish-actions.pod:5352 ../src/guestfs-actions.pod:8292
17480 msgid ""
17481 "It is possible that using this program can damage the filesystem or data on "
17482 "the filesystem."
17483 msgstr ""
17484
17485 #. type: =head2
17486 #: ../fish/guestfish-actions.pod:5355
17487 msgid "zfgrep"
17488 msgstr ""
17489
17490 #. type: verbatim
17491 #: ../fish/guestfish-actions.pod:5357
17492 #, no-wrap
17493 msgid ""
17494 " zfgrep pattern path\n"
17495 "\n"
17496 msgstr ""
17497
17498 #. type: textblock
17499 #: ../fish/guestfish-actions.pod:5359 ../src/guestfs-actions.pod:8306
17500 msgid "This calls the external C<zfgrep> program and returns the matching lines."
17501 msgstr ""
17502
17503 #. type: =head2
17504 #: ../fish/guestfish-actions.pod:5365
17505 msgid "zfgrepi"
17506 msgstr ""
17507
17508 #. type: verbatim
17509 #: ../fish/guestfish-actions.pod:5367
17510 #, no-wrap
17511 msgid ""
17512 " zfgrepi pattern path\n"
17513 "\n"
17514 msgstr ""
17515
17516 #. type: textblock
17517 #: ../fish/guestfish-actions.pod:5369 ../src/guestfs-actions.pod:8325
17518 msgid "This calls the external C<zfgrep -i> program and returns the matching lines."
17519 msgstr ""
17520
17521 #. type: =head2
17522 #: ../fish/guestfish-actions.pod:5375
17523 msgid "zfile"
17524 msgstr ""
17525
17526 #. type: verbatim
17527 #: ../fish/guestfish-actions.pod:5377
17528 #, no-wrap
17529 msgid ""
17530 " zfile meth path\n"
17531 "\n"
17532 msgstr ""
17533
17534 #. type: textblock
17535 #: ../fish/guestfish-actions.pod:5379 ../src/guestfs-actions.pod:8351
17536 msgid "This command runs C<file> after first decompressing C<path> using C<method>."
17537 msgstr ""
17538
17539 #. type: textblock
17540 #: ../fish/guestfish-actions.pod:5382 ../src/guestfs-actions.pod:8354
17541 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
17542 msgstr ""
17543
17544 #. type: textblock
17545 #: ../fish/guestfish-actions.pod:5384
17546 msgid "Since 1.0.63, use L</file> instead which can now process compressed files."
17547 msgstr ""
17548
17549 #. type: textblock
17550 #: ../fish/guestfish-actions.pod:5387
17551 msgid "I<This function is deprecated.> In new code, use the L</file> call instead."
17552 msgstr ""
17553
17554 #. type: =head2
17555 #: ../fish/guestfish-actions.pod:5394
17556 msgid "zgrep"
17557 msgstr ""
17558
17559 #. type: verbatim
17560 #: ../fish/guestfish-actions.pod:5396
17561 #, no-wrap
17562 msgid ""
17563 " zgrep regex path\n"
17564 "\n"
17565 msgstr ""
17566
17567 #. type: textblock
17568 #: ../fish/guestfish-actions.pod:5398 ../src/guestfs-actions.pod:8371
17569 msgid "This calls the external C<zgrep> program and returns the matching lines."
17570 msgstr ""
17571
17572 #. type: =head2
17573 #: ../fish/guestfish-actions.pod:5404
17574 msgid "zgrepi"
17575 msgstr ""
17576
17577 #. type: verbatim
17578 #: ../fish/guestfish-actions.pod:5406
17579 #, no-wrap
17580 msgid ""
17581 " zgrepi regex path\n"
17582 "\n"
17583 msgstr ""
17584
17585 #. type: textblock
17586 #: ../fish/guestfish-actions.pod:5408 ../src/guestfs-actions.pod:8390
17587 msgid "This calls the external C<zgrep -i> program and returns the matching lines."
17588 msgstr ""
17589
17590 #. type: =head2
17591 #: ../fish/guestfish-commands.pod:1
17592 msgid "alloc"
17593 msgstr ""
17594
17595 #. type: =head2
17596 #: ../fish/guestfish-commands.pod:3
17597 msgid "allocate"
17598 msgstr ""
17599
17600 #. type: verbatim
17601 #: ../fish/guestfish-commands.pod:5
17602 #, no-wrap
17603 msgid ""
17604 " alloc filename size\n"
17605 "\n"
17606 msgstr ""
17607
17608 #. type: textblock
17609 #: ../fish/guestfish-commands.pod:7
17610 msgid ""
17611 "This creates an empty (zeroed) file of the given size, and then adds so it "
17612 "can be further examined."
17613 msgstr ""
17614
17615 #. type: textblock
17616 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
17617 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
17618 msgstr ""
17619
17620 #. type: textblock
17621 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
17622 msgid "Size can be specified using standard suffixes, eg. C<1M>."
17623 msgstr ""
17624
17625 #. type: textblock
17626 #: ../fish/guestfish-commands.pod:14
17627 msgid ""
17628 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
17629 "image, see L</PREPARED DISK IMAGES>."
17630 msgstr ""
17631
17632 #. type: =head2
17633 #: ../fish/guestfish-commands.pod:17
17634 msgid "copy-in"
17635 msgstr ""
17636
17637 #. type: verbatim
17638 #: ../fish/guestfish-commands.pod:19
17639 #, no-wrap
17640 msgid ""
17641 " copy-in local [local ...] /remotedir\n"
17642 "\n"
17643 msgstr ""
17644
17645 #. type: textblock
17646 #: ../fish/guestfish-commands.pod:21
17647 msgid ""
17648 "C<copy-in> copies local files or directories recursively into the disk "
17649 "image, placing them in the directory called C</remotedir> (which must "
17650 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
17651 "other commands as necessary."
17652 msgstr ""
17653
17654 #. type: textblock
17655 #: ../fish/guestfish-commands.pod:26
17656 msgid ""
17657 "Multiple local files and directories can be specified, but the last "
17658 "parameter must always be a remote directory.  Wildcards cannot be used."
17659 msgstr ""
17660
17661 #. type: =head2
17662 #: ../fish/guestfish-commands.pod:30
17663 msgid "copy-out"
17664 msgstr ""
17665
17666 #. type: verbatim
17667 #: ../fish/guestfish-commands.pod:32
17668 #, no-wrap
17669 msgid ""
17670 " copy-out remote [remote ...] localdir\n"
17671 "\n"
17672 msgstr ""
17673
17674 #. type: textblock
17675 #: ../fish/guestfish-commands.pod:34
17676 msgid ""
17677 "C<copy-out> copies remote files or directories recursively out of the disk "
17678 "image, placing them on the host disk in a local directory called C<localdir> "
17679 "(which must exist).  This guestfish meta-command turns into a sequence of "
17680 "L</download>, L</tar-out> and other commands as necessary."
17681 msgstr ""
17682
17683 #. type: textblock
17684 #: ../fish/guestfish-commands.pod:40
17685 msgid ""
17686 "Multiple remote files and directories can be specified, but the last "
17687 "parameter must always be a local directory.  To download to the current "
17688 "directory, use C<.> as in:"
17689 msgstr ""
17690
17691 #. type: verbatim
17692 #: ../fish/guestfish-commands.pod:44
17693 #, no-wrap
17694 msgid ""
17695 " copy-out /home .\n"
17696 "\n"
17697 msgstr ""
17698
17699 #. type: textblock
17700 #: ../fish/guestfish-commands.pod:46
17701 msgid ""
17702 "Wildcards cannot be used in the ordinary command, but you can use them with "
17703 "the help of L</glob> like this:"
17704 msgstr ""
17705
17706 #. type: verbatim
17707 #: ../fish/guestfish-commands.pod:49
17708 #, no-wrap
17709 msgid ""
17710 " glob copy-out /home/* .\n"
17711 "\n"
17712 msgstr ""
17713
17714 #. type: =head2
17715 #: ../fish/guestfish-commands.pod:51
17716 msgid "display"
17717 msgstr ""
17718
17719 #. type: verbatim
17720 #: ../fish/guestfish-commands.pod:53
17721 #, no-wrap
17722 msgid ""
17723 " display filename\n"
17724 "\n"
17725 msgstr ""
17726
17727 #. type: textblock
17728 #: ../fish/guestfish-commands.pod:55
17729 msgid ""
17730 "Use C<display> (a graphical display program) to display an image file.  It "
17731 "downloads the file, and runs C<display> on it."
17732 msgstr ""
17733
17734 #. type: textblock
17735 #: ../fish/guestfish-commands.pod:58
17736 msgid ""
17737 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
17738 "environment variable.  For example to use the GNOME display program:"
17739 msgstr ""
17740
17741 #. type: verbatim
17742 #: ../fish/guestfish-commands.pod:61
17743 #, no-wrap
17744 msgid ""
17745 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
17746 "\n"
17747 msgstr ""
17748
17749 #. type: textblock
17750 #: ../fish/guestfish-commands.pod:63
17751 msgid "See also L<display(1)>."
17752 msgstr ""
17753
17754 #. type: =head2
17755 #: ../fish/guestfish-commands.pod:65
17756 msgid "echo"
17757 msgstr ""
17758
17759 #. type: verbatim
17760 #: ../fish/guestfish-commands.pod:67
17761 #, no-wrap
17762 msgid ""
17763 " echo [params ...]\n"
17764 "\n"
17765 msgstr ""
17766
17767 #. type: textblock
17768 #: ../fish/guestfish-commands.pod:69
17769 msgid "This echos the parameters to the terminal."
17770 msgstr ""
17771
17772 #. type: =head2
17773 #: ../fish/guestfish-commands.pod:71
17774 msgid "edit"
17775 msgstr ""
17776
17777 #. type: =head2
17778 #: ../fish/guestfish-commands.pod:73
17779 msgid "vi"
17780 msgstr ""
17781
17782 #. type: =head2
17783 #: ../fish/guestfish-commands.pod:75
17784 msgid "emacs"
17785 msgstr ""
17786
17787 #. type: verbatim
17788 #: ../fish/guestfish-commands.pod:77
17789 #, no-wrap
17790 msgid ""
17791 " edit filename\n"
17792 "\n"
17793 msgstr ""
17794
17795 #. type: textblock
17796 #: ../fish/guestfish-commands.pod:79
17797 msgid ""
17798 "This is used to edit a file.  It downloads the file, edits it locally using "
17799 "your editor, then uploads the result."
17800 msgstr ""
17801
17802 #. type: textblock
17803 #: ../fish/guestfish-commands.pod:82
17804 msgid ""
17805 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
17806 "or C<emacs> you will get those corresponding editors."
17807 msgstr ""
17808
17809 #. type: =head2
17810 #: ../fish/guestfish-commands.pod:86
17811 msgid "glob"
17812 msgstr ""
17813
17814 #. type: verbatim
17815 #: ../fish/guestfish-commands.pod:88
17816 #, no-wrap
17817 msgid ""
17818 " glob command args...\n"
17819 "\n"
17820 msgstr ""
17821
17822 #. type: textblock
17823 #: ../fish/guestfish-commands.pod:90
17824 msgid ""
17825 "Expand wildcards in any paths in the args list, and run C<command> "
17826 "repeatedly on each matching path."
17827 msgstr ""
17828
17829 #. type: textblock
17830 #: ../fish/guestfish-commands.pod:93
17831 msgid "See L</WILDCARDS AND GLOBBING>."
17832 msgstr ""
17833
17834 #. type: =head2
17835 #: ../fish/guestfish-commands.pod:95
17836 msgid "hexedit"
17837 msgstr ""
17838
17839 #. type: verbatim
17840 #: ../fish/guestfish-commands.pod:97
17841 #, no-wrap
17842 msgid ""
17843 " hexedit <filename|device>\n"
17844 " hexedit <filename|device> <max>\n"
17845 " hexedit <filename|device> <start> <max>\n"
17846 "\n"
17847 msgstr ""
17848
17849 #. type: textblock
17850 #: ../fish/guestfish-commands.pod:101
17851 msgid ""
17852 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
17853 "device."
17854 msgstr ""
17855
17856 #. type: textblock
17857 #: ../fish/guestfish-commands.pod:104
17858 msgid ""
17859 "This command works by downloading potentially the whole file or device, "
17860 "editing it locally, then uploading it.  If the file or device is large, you "
17861 "have to specify which part you wish to edit by using C<max> and/or C<start> "
17862 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
17863 "usual modifiers allowed such as C<1M> (1 megabyte)."
17864 msgstr ""
17865
17866 #. type: textblock
17867 #: ../fish/guestfish-commands.pod:111
17868 msgid "For example to edit the first few sectors of a disk you might do:"
17869 msgstr ""
17870
17871 #. type: verbatim
17872 #: ../fish/guestfish-commands.pod:114
17873 #, no-wrap
17874 msgid ""
17875 " hexedit /dev/sda 1M\n"
17876 "\n"
17877 msgstr ""
17878
17879 #. type: textblock
17880 #: ../fish/guestfish-commands.pod:116
17881 msgid ""
17882 "which would allow you to edit anywhere within the first megabyte of the "
17883 "disk."
17884 msgstr ""
17885
17886 #. type: textblock
17887 #: ../fish/guestfish-commands.pod:119
17888 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
17889 msgstr ""
17890
17891 #. type: verbatim
17892 #: ../fish/guestfish-commands.pod:121
17893 #, no-wrap
17894 msgid ""
17895 " hexedit /dev/sda1 0x400 0x400\n"
17896 "\n"
17897 msgstr ""
17898
17899 #. type: textblock
17900 #: ../fish/guestfish-commands.pod:123
17901 msgid "(assuming the superblock is in the standard location)."
17902 msgstr ""
17903
17904 #. type: textblock
17905 #: ../fish/guestfish-commands.pod:125
17906 msgid ""
17907 "This command requires the external L<hexedit(1)> program.  You can specify "
17908 "another program to use by setting the C<HEXEDITOR> environment variable."
17909 msgstr ""
17910
17911 #. type: textblock
17912 #: ../fish/guestfish-commands.pod:129
17913 msgid "See also L</hexdump>."
17914 msgstr ""
17915
17916 #. type: =head2
17917 #: ../fish/guestfish-commands.pod:131
17918 msgid "lcd"
17919 msgstr ""
17920
17921 #. type: verbatim
17922 #: ../fish/guestfish-commands.pod:133
17923 #, no-wrap
17924 msgid ""
17925 " lcd directory\n"
17926 "\n"
17927 msgstr ""
17928
17929 #. type: textblock
17930 #: ../fish/guestfish-commands.pod:135
17931 msgid "Change the local directory, ie. the current directory of guestfish itself."
17932 msgstr ""
17933
17934 #. type: textblock
17935 #: ../fish/guestfish-commands.pod:138
17936 msgid "Note that C<!cd> won't do what you might expect."
17937 msgstr ""
17938
17939 #. type: =head2
17940 #: ../fish/guestfish-commands.pod:140
17941 msgid "man"
17942 msgstr ""
17943
17944 #. type: =head2
17945 #: ../fish/guestfish-commands.pod:142
17946 msgid "manual"
17947 msgstr ""
17948
17949 #. type: verbatim
17950 #: ../fish/guestfish-commands.pod:144
17951 #, no-wrap
17952 msgid ""
17953 "  man\n"
17954 "\n"
17955 msgstr ""
17956
17957 #. type: textblock
17958 #: ../fish/guestfish-commands.pod:146
17959 msgid "Opens the manual page for guestfish."
17960 msgstr ""
17961
17962 #. type: =head2
17963 #: ../fish/guestfish-commands.pod:148
17964 msgid "more"
17965 msgstr ""
17966
17967 #. type: =head2
17968 #: ../fish/guestfish-commands.pod:150
17969 msgid "less"
17970 msgstr ""
17971
17972 #. type: verbatim
17973 #: ../fish/guestfish-commands.pod:152
17974 #, no-wrap
17975 msgid ""
17976 " more filename\n"
17977 "\n"
17978 msgstr ""
17979
17980 #. type: verbatim
17981 #: ../fish/guestfish-commands.pod:154
17982 #, no-wrap
17983 msgid ""
17984 " less filename\n"
17985 "\n"
17986 msgstr ""
17987
17988 #. type: textblock
17989 #: ../fish/guestfish-commands.pod:156
17990 msgid "This is used to view a file."
17991 msgstr ""
17992
17993 #. type: textblock
17994 #: ../fish/guestfish-commands.pod:158
17995 msgid ""
17996 "The default viewer is C<$PAGER>.  However if you use the alternate command "
17997 "C<less> you will get the C<less> command specifically."
17998 msgstr ""
17999
18000 #. type: =head2
18001 #: ../fish/guestfish-commands.pod:161
18002 msgid "reopen"
18003 msgstr ""
18004
18005 #. type: verbatim
18006 #: ../fish/guestfish-commands.pod:163
18007 #, no-wrap
18008 msgid ""
18009 "  reopen\n"
18010 "\n"
18011 msgstr ""
18012
18013 #. type: textblock
18014 #: ../fish/guestfish-commands.pod:165
18015 msgid ""
18016 "Close and reopen the libguestfs handle.  It is not necessary to use this "
18017 "normally, because the handle is closed properly when guestfish exits.  "
18018 "However this is occasionally useful for testing."
18019 msgstr ""
18020
18021 #. type: =head2
18022 #: ../fish/guestfish-commands.pod:169
18023 msgid "setenv"
18024 msgstr ""
18025
18026 #. type: verbatim
18027 #: ../fish/guestfish-commands.pod:171
18028 #, no-wrap
18029 msgid ""
18030 "  setenv VAR value\n"
18031 "\n"
18032 msgstr ""
18033
18034 #. type: textblock
18035 #: ../fish/guestfish-commands.pod:173
18036 msgid "Set the environment variable C<VAR> to the string C<value>."
18037 msgstr ""
18038
18039 #. type: textblock
18040 #: ../fish/guestfish-commands.pod:175
18041 msgid "To print the value of an environment variable use a shell command such as:"
18042 msgstr ""
18043
18044 #. type: verbatim
18045 #: ../fish/guestfish-commands.pod:178
18046 #, no-wrap
18047 msgid ""
18048 " !echo $VAR\n"
18049 "\n"
18050 msgstr ""
18051
18052 #. type: =head2
18053 #: ../fish/guestfish-commands.pod:180
18054 msgid "sparse"
18055 msgstr ""
18056
18057 #. type: verbatim
18058 #: ../fish/guestfish-commands.pod:182
18059 #, no-wrap
18060 msgid ""
18061 " sparse filename size\n"
18062 "\n"
18063 msgstr ""
18064
18065 #. type: textblock
18066 #: ../fish/guestfish-commands.pod:184
18067 msgid ""
18068 "This creates an empty sparse file of the given size, and then adds so it can "
18069 "be further examined."
18070 msgstr ""
18071
18072 #. type: textblock
18073 #: ../fish/guestfish-commands.pod:187
18074 msgid ""
18075 "In all respects it works the same as the L</alloc> command, except that the "
18076 "image file is allocated sparsely, which means that disk blocks are not "
18077 "assigned to the file until they are needed.  Sparse disk files only use "
18078 "space when written to, but they are slower and there is a danger you could "
18079 "run out of real disk space during a write operation."
18080 msgstr ""
18081
18082 #. type: =head2
18083 #: ../fish/guestfish-commands.pod:197
18084 msgid "supported"
18085 msgstr ""
18086
18087 #. type: verbatim
18088 #: ../fish/guestfish-commands.pod:199
18089 #, no-wrap
18090 msgid ""
18091 " supported\n"
18092 "\n"
18093 msgstr ""
18094
18095 #. type: textblock
18096 #: ../fish/guestfish-commands.pod:201
18097 msgid ""
18098 "This command returns a list of the optional groups known to the daemon, and "
18099 "indicates which ones are supported by this build of the libguestfs "
18100 "appliance."
18101 msgstr ""
18102
18103 #. type: textblock
18104 #: ../fish/guestfish-commands.pod:205
18105 msgid "See also L<guestfs(3)/AVAILABILITY>."
18106 msgstr ""
18107
18108 #. type: =head2
18109 #: ../fish/guestfish-commands.pod:207
18110 msgid "time"
18111 msgstr ""
18112
18113 #. type: verbatim
18114 #: ../fish/guestfish-commands.pod:209
18115 #, no-wrap
18116 msgid ""
18117 " time command args...\n"
18118 "\n"
18119 msgstr ""
18120
18121 #. type: textblock
18122 #: ../fish/guestfish-commands.pod:211
18123 msgid ""
18124 "Run the command as usual, but print the elapsed time afterwards.  This can "
18125 "be useful for benchmarking operations."
18126 msgstr ""
18127
18128 #. type: =head2
18129 #: ../fish/guestfish-commands.pod:214
18130 msgid "unsetenv"
18131 msgstr ""
18132
18133 #. type: verbatim
18134 #: ../fish/guestfish-commands.pod:216
18135 #, no-wrap
18136 msgid ""
18137 "  unsetenv VAR\n"
18138 "\n"
18139 msgstr ""
18140
18141 #. type: textblock
18142 #: ../fish/guestfish-commands.pod:218
18143 msgid "Remove C<VAR> from the environment."
18144 msgstr ""
18145
18146 #. type: textblock
18147 #: ../fish/guestfish.pod:5
18148 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
18149 msgstr ""
18150
18151 #. type: verbatim
18152 #: ../fish/guestfish.pod:9
18153 #, no-wrap
18154 msgid ""
18155 " guestfish [--options] [commands]\n"
18156 "\n"
18157 msgstr ""
18158
18159 #. type: verbatim
18160 #: ../fish/guestfish.pod:11
18161 #, no-wrap
18162 msgid ""
18163 " guestfish\n"
18164 "\n"
18165 msgstr ""
18166
18167 #. type: verbatim
18168 #: ../fish/guestfish.pod:13
18169 #, no-wrap
18170 msgid ""
18171 " guestfish [--ro|--rw] -a disk.img\n"
18172 "\n"
18173 msgstr ""
18174
18175 #. type: verbatim
18176 #: ../fish/guestfish.pod:15
18177 #, no-wrap
18178 msgid ""
18179 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
18180 "\n"
18181 msgstr ""
18182
18183 #. type: verbatim
18184 #: ../fish/guestfish.pod:17
18185 #, no-wrap
18186 msgid ""
18187 " guestfish -d libvirt-domain\n"
18188 "\n"
18189 msgstr ""
18190
18191 #. type: verbatim
18192 #: ../fish/guestfish.pod:19
18193 #, no-wrap
18194 msgid ""
18195 " guestfish [--ro|--rw] -a disk.img -i\n"
18196 "\n"
18197 msgstr ""
18198
18199 #. type: verbatim
18200 #: ../fish/guestfish.pod:21
18201 #, no-wrap
18202 msgid ""
18203 " guestfish -d libvirt-domain -i\n"
18204 "\n"
18205 msgstr ""
18206
18207 #. type: textblock
18208 #: ../fish/guestfish.pod:25
18209 msgid ""
18210 "Using guestfish in read/write mode on live virtual machines can be "
18211 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
18212 "option to use guestfish safely if the disk image or virtual machine might be "
18213 "live."
18214 msgstr ""
18215
18216 #. type: textblock
18217 #: ../fish/guestfish.pod:32
18218 msgid ""
18219 "Guestfish is a shell and command-line tool for examining and modifying "
18220 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
18221 "functionality of the guestfs API, see L<guestfs(3)>."
18222 msgstr ""
18223
18224 #. type: textblock
18225 #: ../fish/guestfish.pod:36
18226 msgid ""
18227 "Guestfish gives you structured access to the libguestfs API, from shell "
18228 "scripts or the command line or interactively.  If you want to rescue a "
18229 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
18230 "command."
18231 msgstr ""
18232
18233 #. type: =head2
18234 #: ../fish/guestfish.pod:43
18235 msgid "As an interactive shell"
18236 msgstr ""
18237
18238 #. type: verbatim
18239 #: ../fish/guestfish.pod:45
18240 #, no-wrap
18241 msgid ""
18242 " $ guestfish\n"
18243 " \n"
18244 msgstr ""
18245
18246 #. type: verbatim
18247 #: ../fish/guestfish.pod:47
18248 #, no-wrap
18249 msgid ""
18250 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
18251 " editing virtual machine filesystems.\n"
18252 " \n"
18253 msgstr ""
18254
18255 #. type: verbatim
18256 #: ../fish/guestfish.pod:50
18257 #, no-wrap
18258 msgid ""
18259 " Type: 'help' for a list of commands\n"
18260 "       'man' to read the manual\n"
18261 "       'quit' to quit the shell\n"
18262 " \n"
18263 msgstr ""
18264
18265 #. type: verbatim
18266 #: ../fish/guestfish.pod:54
18267 #, no-wrap
18268 msgid ""
18269 " ><fs> add-ro disk.img\n"
18270 " ><fs> run\n"
18271 " ><fs> list-filesystems\n"
18272 " /dev/sda1: ext4\n"
18273 " /dev/vg_guest/lv_root: ext4\n"
18274 " /dev/vg_guest/lv_swap: swap\n"
18275 " ><fs> mount /dev/vg_guest/lv_root /\n"
18276 " ><fs> cat /etc/fstab\n"
18277 " # /etc/fstab\n"
18278 " # Created by anaconda\n"
18279 " [...]\n"
18280 " ><fs> exit\n"
18281 "\n"
18282 msgstr ""
18283
18284 #. type: =head2
18285 #: ../fish/guestfish.pod:67
18286 msgid "From shell scripts"
18287 msgstr ""
18288
18289 #. type: textblock
18290 #: ../fish/guestfish.pod:69
18291 msgid "Create a new C</etc/motd> file in a guest or disk image:"
18292 msgstr ""
18293
18294 #. type: verbatim
18295 #: ../fish/guestfish.pod:71
18296 #, no-wrap
18297 msgid ""
18298 " guestfish <<_EOF_\n"
18299 " add disk.img\n"
18300 " run\n"
18301 " mount /dev/vg_guest/lv_root /\n"
18302 " write /etc/motd \"Welcome, new users\"\n"
18303 " _EOF_\n"
18304 "\n"
18305 msgstr ""
18306
18307 #. type: textblock
18308 #: ../fish/guestfish.pod:78
18309 msgid "List the LVM logical volumes in a disk image:"
18310 msgstr ""
18311
18312 #. type: verbatim
18313 #: ../fish/guestfish.pod:80
18314 #, no-wrap
18315 msgid ""
18316 " guestfish -a disk.img --ro <<_EOF_\n"
18317 " run\n"
18318 " lvs\n"
18319 " _EOF_\n"
18320 "\n"
18321 msgstr ""
18322
18323 #. type: textblock
18324 #: ../fish/guestfish.pod:85
18325 msgid "List all the filesystems in a disk image:"
18326 msgstr ""
18327
18328 #. type: verbatim
18329 #: ../fish/guestfish.pod:87
18330 #, no-wrap
18331 msgid ""
18332 " guestfish -a disk.img --ro <<_EOF_\n"
18333 " run\n"
18334 " list-filesystems\n"
18335 " _EOF_\n"
18336 "\n"
18337 msgstr ""
18338
18339 #. type: =head2
18340 #: ../fish/guestfish.pod:92
18341 msgid "On one command line"
18342 msgstr ""
18343
18344 #. type: textblock
18345 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
18346 msgid "Update C</etc/resolv.conf> in a guest:"
18347 msgstr ""
18348
18349 #. type: verbatim
18350 #: ../fish/guestfish.pod:96
18351 #, no-wrap
18352 msgid ""
18353 " guestfish \\\n"
18354 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
18355 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
18356 "\n"
18357 msgstr ""
18358
18359 #. type: textblock
18360 #: ../fish/guestfish.pod:100
18361 msgid "Edit C</boot/grub/grub.conf> interactively:"
18362 msgstr ""
18363
18364 #. type: verbatim
18365 #: ../fish/guestfish.pod:102
18366 #, no-wrap
18367 msgid ""
18368 " guestfish --rw --add disk.img \\\n"
18369 "   --mount /dev/vg_guest/lv_root \\\n"
18370 "   --mount /dev/sda1:/boot \\\n"
18371 "   edit /boot/grub/grub.conf\n"
18372 "\n"
18373 msgstr ""
18374
18375 #. type: =head2
18376 #: ../fish/guestfish.pod:107
18377 msgid "Mount disks automatically"
18378 msgstr ""
18379
18380 #. type: textblock
18381 #: ../fish/guestfish.pod:109
18382 msgid ""
18383 "Use the I<-i> option to automatically mount the disks from a virtual "
18384 "machine:"
18385 msgstr ""
18386
18387 #. type: verbatim
18388 #: ../fish/guestfish.pod:112
18389 #, no-wrap
18390 msgid ""
18391 " guestfish --ro -a disk.img -i cat /etc/group\n"
18392 "\n"
18393 msgstr ""
18394
18395 #. type: verbatim
18396 #: ../fish/guestfish.pod:114
18397 #, no-wrap
18398 msgid ""
18399 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
18400 "\n"
18401 msgstr ""
18402
18403 #. type: textblock
18404 #: ../fish/guestfish.pod:116
18405 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
18406 msgstr ""
18407
18408 #. type: verbatim
18409 #: ../fish/guestfish.pod:118
18410 #, no-wrap
18411 msgid ""
18412 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
18413 "\n"
18414 msgstr ""
18415
18416 #. type: =head2
18417 #: ../fish/guestfish.pod:120
18418 msgid "As a script interpreter"
18419 msgstr ""
18420
18421 #. type: textblock
18422 #: ../fish/guestfish.pod:122
18423 msgid "Create a 100MB disk containing an ext2-formatted partition:"
18424 msgstr ""
18425
18426 #. type: verbatim
18427 #: ../fish/guestfish.pod:124
18428 #, no-wrap
18429 msgid ""
18430 " #!/usr/bin/guestfish -f\n"
18431 " sparse test1.img 100M\n"
18432 " run\n"
18433 " part-disk /dev/sda mbr\n"
18434 " mkfs ext2 /dev/sda1\n"
18435 "\n"
18436 msgstr ""
18437
18438 #. type: =head2
18439 #: ../fish/guestfish.pod:130
18440 msgid "Start with a prepared disk"
18441 msgstr ""
18442
18443 #. type: textblock
18444 #: ../fish/guestfish.pod:132
18445 msgid ""
18446 "An alternate way to create a 100MB disk called C<test1.img> containing a "
18447 "single ext2-formatted partition:"
18448 msgstr ""
18449
18450 #. type: verbatim
18451 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2243
18452 #, no-wrap
18453 msgid ""
18454 " guestfish -N fs\n"
18455 "\n"
18456 msgstr ""
18457
18458 #. type: textblock
18459 #: ../fish/guestfish.pod:137
18460 msgid "To list what is available do:"
18461 msgstr ""
18462
18463 #. type: verbatim
18464 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
18465 #, no-wrap
18466 msgid ""
18467 " guestfish -N help | less\n"
18468 "\n"
18469 msgstr ""
18470
18471 #. type: =head2
18472 #: ../fish/guestfish.pod:141
18473 msgid "Remote control"
18474 msgstr ""
18475
18476 #. type: verbatim
18477 #: ../fish/guestfish.pod:143
18478 #, no-wrap
18479 msgid ""
18480 " eval \"`guestfish --listen`\"\n"
18481 " guestfish --remote add-ro disk.img\n"
18482 " guestfish --remote run\n"
18483 " guestfish --remote lvs\n"
18484 "\n"
18485 msgstr ""
18486
18487 #. type: textblock
18488 #: ../fish/guestfish.pod:154
18489 msgid "Displays general help on options."
18490 msgstr ""
18491
18492 #. type: =item
18493 #: ../fish/guestfish.pod:158
18494 msgid "B<--cmd-help>"
18495 msgstr ""
18496
18497 #. type: textblock
18498 #: ../fish/guestfish.pod:160
18499 msgid "Lists all available guestfish commands."
18500 msgstr ""
18501
18502 #. type: =item
18503 #: ../fish/guestfish.pod:162
18504 msgid "B<-h cmd>"
18505 msgstr ""
18506
18507 #. type: =item
18508 #: ../fish/guestfish.pod:164
18509 msgid "B<--cmd-help cmd>"
18510 msgstr ""
18511
18512 #. type: textblock
18513 #: ../fish/guestfish.pod:166
18514 msgid "Displays detailed help on a single command C<cmd>."
18515 msgstr ""
18516
18517 #. type: =item
18518 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
18519 msgid "B<-a image>"
18520 msgstr ""
18521
18522 #. type: =item
18523 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
18524 msgid "B<--add image>"
18525 msgstr ""
18526
18527 #. type: textblock
18528 #: ../fish/guestfish.pod:172
18529 msgid "Add a block device or virtual machine image to the shell."
18530 msgstr ""
18531
18532 #. type: textblock
18533 #: ../fish/guestfish.pod:177
18534 msgid ""
18535 "Using this flag is mostly equivalent to using the C<add> command, with "
18536 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
18537 "the I<--format=...> flag was given."
18538 msgstr ""
18539
18540 #. type: textblock
18541 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
18542 msgid ""
18543 "When used in conjunction with the I<-d> option, this specifies the libvirt "
18544 "URI to use.  The default is to use the default libvirt connection."
18545 msgstr ""
18546
18547 #. type: =item
18548 #: ../fish/guestfish.pod:189
18549 msgid "B<--csh>"
18550 msgstr ""
18551
18552 #. type: textblock
18553 #: ../fish/guestfish.pod:191
18554 msgid ""
18555 "If using the I<--listen> option and a csh-like shell, use this option.  See "
18556 "section L</REMOTE CONTROL AND CSH> below."
18557 msgstr ""
18558
18559 #. type: =item
18560 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
18561 msgid "B<-d libvirt-domain>"
18562 msgstr ""
18563
18564 #. type: =item
18565 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
18566 msgid "B<--domain libvirt-domain>"
18567 msgstr ""
18568
18569 #. type: textblock
18570 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
18571 msgid ""
18572 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
18573 "used, then any libvirt domain can be used.  However in write mode, only "
18574 "libvirt domains which are shut down can be named here."
18575 msgstr ""
18576
18577 #. type: textblock
18578 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
18579 msgid "Domain UUIDs can be used instead of names."
18580 msgstr ""
18581
18582 #. type: textblock
18583 #: ../fish/guestfish.pod:204
18584 msgid ""
18585 "Using this flag is mostly equivalent to using the C<add-domain> command, "
18586 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
18587 "if the I<--format:...> flag was given."
18588 msgstr ""
18589
18590 #. type: =item
18591 #: ../fish/guestfish.pod:208
18592 msgid "B<-D>"
18593 msgstr ""
18594
18595 #. type: =item
18596 #: ../fish/guestfish.pod:210
18597 msgid "B<--no-dest-paths>"
18598 msgstr ""
18599
18600 #. type: textblock
18601 #: ../fish/guestfish.pod:212
18602 msgid ""
18603 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
18604 "to hit the tab key to complete paths on the guest filesystem, but this "
18605 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
18606 "allow this feature to be disabled."
18607 msgstr ""
18608
18609 #. type: textblock
18610 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
18611 msgid ""
18612 "When prompting for keys and passphrases, guestfish normally turns echoing "
18613 "off so you cannot see what you are typing.  If you are not worried about "
18614 "Tempest attacks and there is no one else in the room you can specify this "
18615 "flag to see what you are typing."
18616 msgstr ""
18617
18618 #. type: =item
18619 #: ../fish/guestfish.pod:224
18620 msgid "B<-f file>"
18621 msgstr ""
18622
18623 #. type: =item
18624 #: ../fish/guestfish.pod:226
18625 msgid "B<--file file>"
18626 msgstr ""
18627
18628 #. type: textblock
18629 #: ../fish/guestfish.pod:228
18630 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
18631 msgstr ""
18632
18633 #. type: verbatim
18634 #: ../fish/guestfish.pod:231
18635 #, no-wrap
18636 msgid ""
18637 " #!/usr/bin/guestfish -f\n"
18638 "\n"
18639 msgstr ""
18640
18641 #. type: verbatim
18642 #: ../fish/guestfish.pod:244
18643 #, no-wrap
18644 msgid ""
18645 " guestfish --format=raw -a disk.img\n"
18646 "\n"
18647 msgstr ""
18648
18649 #. type: verbatim
18650 #: ../fish/guestfish.pod:248
18651 #, no-wrap
18652 msgid ""
18653 " guestfish --format=raw -a disk.img --format -a another.img\n"
18654 "\n"
18655 msgstr ""
18656
18657 #. type: textblock
18658 #: ../fish/guestfish.pod:253
18659 msgid ""
18660 "If you have untrusted raw-format guest disk images, you should use this "
18661 "option to specify the disk format.  This avoids a possible security problem "
18662 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
18663 msgstr ""
18664
18665 #. type: =item
18666 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
18667 msgid "B<--inspector>"
18668 msgstr ""
18669
18670 #. type: textblock
18671 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
18672 msgid ""
18673 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
18674 "system and mount filesystems as they would be mounted on the real virtual "
18675 "machine."
18676 msgstr ""
18677
18678 #. type: textblock
18679 #: ../fish/guestfish.pod:266
18680 msgid "Typical usage is either:"
18681 msgstr ""
18682
18683 #. type: verbatim
18684 #: ../fish/guestfish.pod:268
18685 #, no-wrap
18686 msgid ""
18687 " guestfish -d myguest -i\n"
18688 "\n"
18689 msgstr ""
18690
18691 #. type: textblock
18692 #: ../fish/guestfish.pod:270
18693 msgid "(for an inactive libvirt domain called I<myguest>), or:"
18694 msgstr ""
18695
18696 #. type: verbatim
18697 #: ../fish/guestfish.pod:272
18698 #, no-wrap
18699 msgid ""
18700 " guestfish --ro -d myguest -i\n"
18701 "\n"
18702 msgstr ""
18703
18704 #. type: textblock
18705 #: ../fish/guestfish.pod:274
18706 msgid "(for active domains, readonly), or specify the block device directly:"
18707 msgstr ""
18708
18709 #. type: verbatim
18710 #: ../fish/guestfish.pod:276
18711 #, no-wrap
18712 msgid ""
18713 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
18714 "\n"
18715 msgstr ""
18716
18717 #. type: textblock
18718 #: ../fish/guestfish.pod:278
18719 msgid ""
18720 "Note that the command line syntax changed slightly over older versions of "
18721 "guestfish.  You can still use the old syntax:"
18722 msgstr ""
18723
18724 #. type: verbatim
18725 #: ../fish/guestfish.pod:281
18726 #, no-wrap
18727 msgid ""
18728 " guestfish [--ro] -i disk.img\n"
18729 "\n"
18730 msgstr ""
18731
18732 #. type: verbatim
18733 #: ../fish/guestfish.pod:283
18734 #, no-wrap
18735 msgid ""
18736 " guestfish [--ro] -i libvirt-domain\n"
18737 "\n"
18738 msgstr ""
18739
18740 #. type: textblock
18741 #: ../fish/guestfish.pod:285
18742 msgid ""
18743 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
18744 "then using other commands to mount the filesystems that were found."
18745 msgstr ""
18746
18747 #. type: =item
18748 #: ../fish/guestfish.pod:294
18749 msgid "B<--listen>"
18750 msgstr ""
18751
18752 #. type: textblock
18753 #: ../fish/guestfish.pod:296
18754 msgid ""
18755 "Fork into the background and listen for remote commands.  See section "
18756 "L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
18757 msgstr ""
18758
18759 #. type: =item
18760 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
18761 msgid "B<--live>"
18762 msgstr ""
18763
18764 #. type: textblock
18765 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
18766 msgid ""
18767 "Connect to a live virtual machine.  (Experimental, see "
18768 "L<guestfs(3)/ATTACHING TO RUNNING DAEMONS>)."
18769 msgstr ""
18770
18771 #. type: =item
18772 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
18773 msgid "B<-m dev[:mountpoint[:options]]>"
18774 msgstr ""
18775
18776 #. type: =item
18777 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
18778 msgid "B<--mount dev[:mountpoint[:options]]>"
18779 msgstr ""
18780
18781 #. type: textblock
18782 #: ../fish/guestfish.pod:308
18783 msgid "Mount the named partition or logical volume on the given mountpoint."
18784 msgstr ""
18785
18786 #. type: textblock
18787 #: ../fish/guestfish.pod:310
18788 msgid "If the mountpoint is omitted, it defaults to C</>."
18789 msgstr ""
18790
18791 #. type: textblock
18792 #: ../fish/guestfish.pod:312
18793 msgid "You have to mount something on C</> before most commands will work."
18794 msgstr ""
18795
18796 #. type: textblock
18797 #: ../fish/guestfish.pod:314
18798 msgid ""
18799 "If any I<-m> or I<--mount> options are given, the guest is automatically "
18800 "launched."
18801 msgstr ""
18802
18803 #. type: textblock
18804 #: ../fish/guestfish.pod:317
18805 msgid ""
18806 "If you don't know what filesystems a disk image contains, you can either run "
18807 "guestfish without this option, then list the partitions, filesystems and LVs "
18808 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
18809 "commands), or you can use the L<virt-filesystems(1)> program."
18810 msgstr ""
18811
18812 #. type: textblock
18813 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
18814 msgid ""
18815 "The third (and rarely used) part of the mount parameter is the list of mount "
18816 "options used to mount the underlying filesystem.  If this is not given, then "
18817 "the mount options are either the empty string or C<ro> (the latter if the "
18818 "I<--ro> flag is used).  By specifying the mount options, you override this "
18819 "default choice.  Probably the only time you would use this is to enable ACLs "
18820 "and/or extended attributes if the filesystem can support them:"
18821 msgstr ""
18822
18823 #. type: verbatim
18824 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
18825 #, no-wrap
18826 msgid ""
18827 " -m /dev/sda1:/:acl,user_xattr\n"
18828 "\n"
18829 msgstr ""
18830
18831 #. type: textblock
18832 #: ../fish/guestfish.pod:333
18833 msgid "Using this flag is equivalent to using the C<mount-options> command."
18834 msgstr ""
18835
18836 #. type: =item
18837 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202 ../resize/virt-resize.pod:435
18838 msgid "B<-n>"
18839 msgstr ""
18840
18841 #. type: =item
18842 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
18843 msgid "B<--no-sync>"
18844 msgstr ""
18845
18846 #. type: textblock
18847 #: ../fish/guestfish.pod:339
18848 msgid ""
18849 "Disable autosync.  This is enabled by default.  See the discussion of "
18850 "autosync in the L<guestfs(3)> manpage."
18851 msgstr ""
18852
18853 #. type: =item
18854 #: ../fish/guestfish.pod:342
18855 msgid "B<-N type>"
18856 msgstr ""
18857
18858 #. type: =item
18859 #: ../fish/guestfish.pod:344
18860 msgid "B<--new type>"
18861 msgstr ""
18862
18863 #. type: =item
18864 #: ../fish/guestfish.pod:346
18865 msgid "B<-N help>"
18866 msgstr ""
18867
18868 #. type: textblock
18869 #: ../fish/guestfish.pod:348
18870 msgid ""
18871 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
18872 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
18873 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
18874 "IMAGES> below."
18875 msgstr ""
18876
18877 #. type: =item
18878 #: ../fish/guestfish.pod:353
18879 msgid "B<--progress-bars>"
18880 msgstr ""
18881
18882 #. type: textblock
18883 #: ../fish/guestfish.pod:355
18884 msgid "Enable progress bars, even when guestfish is used non-interactively."
18885 msgstr ""
18886
18887 #. type: textblock
18888 #: ../fish/guestfish.pod:357
18889 msgid ""
18890 "Progress bars are enabled by default when guestfish is used as an "
18891 "interactive shell."
18892 msgstr ""
18893
18894 #. type: =item
18895 #: ../fish/guestfish.pod:360
18896 msgid "B<--no-progress-bars>"
18897 msgstr ""
18898
18899 #. type: textblock
18900 #: ../fish/guestfish.pod:362
18901 msgid "Disable progress bars."
18902 msgstr ""
18903
18904 #. type: =item
18905 #: ../fish/guestfish.pod:364
18906 msgid "B<--remote[=pid]>"
18907 msgstr ""
18908
18909 #. type: textblock
18910 #: ../fish/guestfish.pod:366
18911 msgid ""
18912 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
18913 "CONTROL GUESTFISH OVER A SOCKET> below."
18914 msgstr ""
18915
18916 #. type: =item
18917 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248 ../rescue/virt-rescue.pod:161
18918 msgid "B<-r>"
18919 msgstr ""
18920
18921 #. type: =item
18922 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250 ../rescue/virt-rescue.pod:163
18923 msgid "B<--ro>"
18924 msgstr ""
18925
18926 #. type: textblock
18927 #: ../fish/guestfish.pod:373
18928 msgid ""
18929 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
18930 "mounts are done read-only."
18931 msgstr ""
18932
18933 #. type: textblock
18934 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
18935 msgid ""
18936 "The option must always be used if the disk image or virtual machine might be "
18937 "running, and is generally recommended in cases where you don't need write "
18938 "access to the disk."
18939 msgstr ""
18940
18941 #. type: textblock
18942 #: ../fish/guestfish.pod:380
18943 msgid ""
18944 "Note that prepared disk images created with I<-N> are not affected by this "
18945 "option.  Also commands like C<add> are not affected - you have to specify "
18946 "the C<readonly:true> option explicitly if you need it."
18947 msgstr ""
18948
18949 #. type: textblock
18950 #: ../fish/guestfish.pod:384
18951 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
18952 msgstr ""
18953
18954 #. type: =item
18955 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262 ../rescue/virt-rescue.pod:173
18956 msgid "B<--selinux>"
18957 msgstr ""
18958
18959 #. type: textblock
18960 #: ../fish/guestfish.pod:388
18961 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
18962 msgstr ""
18963
18964 #. type: textblock
18965 #: ../fish/guestfish.pod:394
18966 msgid ""
18967 "Enable very verbose messages.  This is particularly useful if you find a "
18968 "bug."
18969 msgstr ""
18970
18971 #. type: textblock
18972 #: ../fish/guestfish.pod:401
18973 msgid "Display the guestfish / libguestfs version number and exit."
18974 msgstr ""
18975
18976 #. type: =item
18977 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278 ../rescue/virt-rescue.pod:194
18978 msgid "B<-w>"
18979 msgstr ""
18980
18981 #. type: =item
18982 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280 ../rescue/virt-rescue.pod:196
18983 msgid "B<--rw>"
18984 msgstr ""
18985
18986 #. type: textblock
18987 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
18988 msgid ""
18989 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
18990 "mounts are done read-write."
18991 msgstr ""
18992
18993 #. type: textblock
18994 #: ../fish/guestfish.pod:410
18995 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
18996 msgstr ""
18997
18998 #. type: textblock
18999 #: ../fish/guestfish.pod:414
19000 msgid "Echo each command before executing it."
19001 msgstr ""
19002
19003 #. type: =head1
19004 #: ../fish/guestfish.pod:418
19005 msgid "COMMANDS ON COMMAND LINE"
19006 msgstr ""
19007
19008 #. type: textblock
19009 #: ../fish/guestfish.pod:420
19010 msgid "Any additional (non-option) arguments are treated as commands to execute."
19011 msgstr ""
19012
19013 #. type: textblock
19014 #: ../fish/guestfish.pod:423
19015 msgid ""
19016 "Commands to execute should be separated by a colon (C<:>), where the colon "
19017 "is a separate parameter.  Thus:"
19018 msgstr ""
19019
19020 #. type: verbatim
19021 #: ../fish/guestfish.pod:426
19022 #, no-wrap
19023 msgid ""
19024 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
19025 "\n"
19026 msgstr ""
19027
19028 #. type: textblock
19029 #: ../fish/guestfish.pod:428
19030 msgid ""
19031 "If there are no additional arguments, then we enter a shell, either an "
19032 "interactive shell with a prompt (if the input is a terminal) or a "
19033 "non-interactive shell."
19034 msgstr ""
19035
19036 #. type: textblock
19037 #: ../fish/guestfish.pod:432
19038 msgid ""
19039 "In either command line mode or non-interactive shell, the first command that "
19040 "gives an error causes the whole shell to exit.  In interactive mode (with a "
19041 "prompt) if a command fails, you can continue to enter commands."
19042 msgstr ""
19043
19044 #. type: =head1
19045 #: ../fish/guestfish.pod:437
19046 msgid "USING launch (OR run)"
19047 msgstr ""
19048
19049 #. type: textblock
19050 #: ../fish/guestfish.pod:439
19051 msgid ""
19052 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
19053 "then launch it, then mount any disks you need, and finally issue "
19054 "actions/commands.  So the general order of the day is:"
19055 msgstr ""
19056
19057 #. type: textblock
19058 #: ../fish/guestfish.pod:447
19059 msgid "add or -a/--add"
19060 msgstr ""
19061
19062 #. type: textblock
19063 #: ../fish/guestfish.pod:451
19064 msgid "launch (aka run)"
19065 msgstr ""
19066
19067 #. type: textblock
19068 #: ../fish/guestfish.pod:455
19069 msgid "mount or -m/--mount"
19070 msgstr ""
19071
19072 #. type: textblock
19073 #: ../fish/guestfish.pod:459
19074 msgid "any other commands"
19075 msgstr ""
19076
19077 #. type: textblock
19078 #: ../fish/guestfish.pod:463
19079 msgid ""
19080 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
19081 "guest before mounting or performing any other commands."
19082 msgstr ""
19083
19084 #. type: textblock
19085 #: ../fish/guestfish.pod:466
19086 msgid ""
19087 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
19088 "I<--new> options were given then C<run> is done automatically, simply "
19089 "because guestfish can't perform the action you asked for without doing this."
19090 msgstr ""
19091
19092 #. type: =head1
19093 #: ../fish/guestfish.pod:471
19094 msgid "OPENING DISKS FOR READ AND WRITE"
19095 msgstr ""
19096
19097 #. type: textblock
19098 #: ../fish/guestfish.pod:473
19099 msgid ""
19100 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
19101 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
19102 "I<-i> and I<-m> open disk images read-only or for writing."
19103 msgstr ""
19104
19105 #. type: textblock
19106 #: ../fish/guestfish.pod:478
19107 msgid ""
19108 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
19109 "opening disk images supplied on the command line for write.  To open a disk "
19110 "image read-only you have to do I<-a image --ro>."
19111 msgstr ""
19112
19113 #. type: textblock
19114 #: ../fish/guestfish.pod:482
19115 msgid ""
19116 "This matters: If you accidentally open a live VM disk image writable then "
19117 "you will cause irreversible disk corruption."
19118 msgstr ""
19119
19120 #. type: textblock
19121 #: ../fish/guestfish.pod:485
19122 msgid ""
19123 "In a future libguestfs we intend to change the default the other way.  Disk "
19124 "images will be opened read-only.  You will have to either specify "
19125 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
19126 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
19127 "access for disk images specified by those other command line options."
19128 msgstr ""
19129
19130 #. type: textblock
19131 #: ../fish/guestfish.pod:492
19132 msgid ""
19133 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
19134 "which does nothing (it is already the default).  However it is highly "
19135 "recommended that you use this option to indicate that you need write access, "
19136 "and prepare your scripts for the day when this option will be required for "
19137 "write access."
19138 msgstr ""
19139
19140 #. type: textblock
19141 #: ../fish/guestfish.pod:498
19142 msgid ""
19143 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
19144 "other libguestfs program apart from guestfish and guestmount."
19145 msgstr ""
19146
19147 #. type: =head1
19148 #: ../fish/guestfish.pod:501
19149 msgid "QUOTING"
19150 msgstr ""
19151
19152 #. type: textblock
19153 #: ../fish/guestfish.pod:503
19154 msgid ""
19155 "You can quote ordinary parameters using either single or double quotes.  For "
19156 "example:"
19157 msgstr ""
19158
19159 #. type: verbatim
19160 #: ../fish/guestfish.pod:506
19161 #, no-wrap
19162 msgid ""
19163 " add \"file with a space.img\"\n"
19164 "\n"
19165 msgstr ""
19166
19167 #. type: verbatim
19168 #: ../fish/guestfish.pod:508
19169 #, no-wrap
19170 msgid ""
19171 " rm '/file name'\n"
19172 "\n"
19173 msgstr ""
19174
19175 #. type: verbatim
19176 #: ../fish/guestfish.pod:510
19177 #, no-wrap
19178 msgid ""
19179 " rm '/\"'\n"
19180 "\n"
19181 msgstr ""
19182
19183 #. type: textblock
19184 #: ../fish/guestfish.pod:512
19185 msgid ""
19186 "A few commands require a list of strings to be passed.  For these, use a "
19187 "whitespace-separated list, enclosed in quotes.  Strings containing "
19188 "whitespace to be passed through must be enclosed in single quotes.  A "
19189 "literal single quote must be escaped with a backslash."
19190 msgstr ""
19191
19192 #. type: verbatim
19193 #: ../fish/guestfish.pod:517
19194 #, no-wrap
19195 msgid ""
19196 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
19197 " command \"/bin/echo 'foo      bar'\"\n"
19198 " command \"/bin/echo \\'foo\\'\"\n"
19199 "\n"
19200 msgstr ""
19201
19202 #. type: =head2
19203 #: ../fish/guestfish.pod:521
19204 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
19205 msgstr ""
19206
19207 #. type: textblock
19208 #: ../fish/guestfish.pod:523
19209 msgid ""
19210 "In double-quoted arguments (only) use backslash to insert special "
19211 "characters:"
19212 msgstr ""
19213
19214 #. type: =item
19215 #: ../fish/guestfish.pod:528
19216 msgid "C<\\a>"
19217 msgstr ""
19218
19219 #. type: textblock
19220 #: ../fish/guestfish.pod:530
19221 msgid "Alert (bell) character."
19222 msgstr ""
19223
19224 #. type: =item
19225 #: ../fish/guestfish.pod:532
19226 msgid "C<\\b>"
19227 msgstr ""
19228
19229 #. type: textblock
19230 #: ../fish/guestfish.pod:534
19231 msgid "Backspace character."
19232 msgstr ""
19233
19234 #. type: =item
19235 #: ../fish/guestfish.pod:536
19236 msgid "C<\\f>"
19237 msgstr ""
19238
19239 #. type: textblock
19240 #: ../fish/guestfish.pod:538
19241 msgid "Form feed character."
19242 msgstr ""
19243
19244 #. type: =item
19245 #: ../fish/guestfish.pod:540
19246 msgid "C<\\n>"
19247 msgstr ""
19248
19249 #. type: textblock
19250 #: ../fish/guestfish.pod:542
19251 msgid "Newline character."
19252 msgstr ""
19253
19254 #. type: =item
19255 #: ../fish/guestfish.pod:544
19256 msgid "C<\\r>"
19257 msgstr ""
19258
19259 #. type: textblock
19260 #: ../fish/guestfish.pod:546
19261 msgid "Carriage return character."
19262 msgstr ""
19263
19264 #. type: =item
19265 #: ../fish/guestfish.pod:548
19266 msgid "C<\\t>"
19267 msgstr ""
19268
19269 #. type: textblock
19270 #: ../fish/guestfish.pod:550
19271 msgid "Horizontal tab character."
19272 msgstr ""
19273
19274 #. type: =item
19275 #: ../fish/guestfish.pod:552
19276 msgid "C<\\v>"
19277 msgstr ""
19278
19279 #. type: textblock
19280 #: ../fish/guestfish.pod:554
19281 msgid "Vertical tab character."
19282 msgstr ""
19283
19284 #. type: =item
19285 #: ../fish/guestfish.pod:556
19286 msgid "C<\\\">"
19287 msgstr ""
19288
19289 #. type: textblock
19290 #: ../fish/guestfish.pod:558
19291 msgid "A literal double quote character."
19292 msgstr ""
19293
19294 #. type: =item
19295 #: ../fish/guestfish.pod:560
19296 msgid "C<\\ooo>"
19297 msgstr ""
19298
19299 #. type: textblock
19300 #: ../fish/guestfish.pod:562
19301 msgid ""
19302 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
19303 "(unlike C)."
19304 msgstr ""
19305
19306 #. type: =item
19307 #: ../fish/guestfish.pod:565
19308 msgid "C<\\xhh>"
19309 msgstr ""
19310
19311 #. type: textblock
19312 #: ../fish/guestfish.pod:567
19313 msgid "A character with hex value I<hh>.  There must be precisely 2 hex digits."
19314 msgstr ""
19315
19316 #. type: textblock
19317 #: ../fish/guestfish.pod:570
19318 msgid ""
19319 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
19320 "strings."
19321 msgstr ""
19322
19323 #. type: =item
19324 #: ../fish/guestfish.pod:573
19325 msgid "C<\\\\>"
19326 msgstr ""
19327
19328 #. type: textblock
19329 #: ../fish/guestfish.pod:575
19330 msgid "A literal backslash character."
19331 msgstr ""
19332
19333 #. type: =head1
19334 #: ../fish/guestfish.pod:579
19335 msgid "OPTIONAL ARGUMENTS"
19336 msgstr ""
19337
19338 #. type: textblock
19339 #: ../fish/guestfish.pod:581
19340 msgid ""
19341 "Some commands take optional arguments.  These arguments appear in this "
19342 "documentation as C<[argname:..]>.  You can use them as in these examples:"
19343 msgstr ""
19344
19345 #. type: verbatim
19346 #: ../fish/guestfish.pod:585
19347 #, no-wrap
19348 msgid ""
19349 " add-drive-opts filename\n"
19350 "\n"
19351 msgstr ""
19352
19353 #. type: verbatim
19354 #: ../fish/guestfish.pod:587
19355 #, no-wrap
19356 msgid ""
19357 " add-drive-opts filename readonly:true\n"
19358 "\n"
19359 msgstr ""
19360
19361 #. type: verbatim
19362 #: ../fish/guestfish.pod:589
19363 #, no-wrap
19364 msgid ""
19365 " add-drive-opts filename format:qcow2 readonly:false\n"
19366 "\n"
19367 msgstr ""
19368
19369 #. type: textblock
19370 #: ../fish/guestfish.pod:591
19371 msgid ""
19372 "Each optional argument can appear at most once.  All optional arguments must "
19373 "appear after the required ones."
19374 msgstr ""
19375
19376 #. type: =head1
19377 #: ../fish/guestfish.pod:594
19378 msgid "NUMBERS"
19379 msgstr ""
19380
19381 #. type: textblock
19382 #: ../fish/guestfish.pod:596
19383 msgid "This section applies to all commands which can take integers as parameters."
19384 msgstr ""
19385
19386 #. type: =head2
19387 #: ../fish/guestfish.pod:599
19388 msgid "SIZE SUFFIX"
19389 msgstr ""
19390
19391 #. type: textblock
19392 #: ../fish/guestfish.pod:601
19393 msgid ""
19394 "When the command takes a parameter measured in bytes, you can use one of the "
19395 "following suffixes to specify kilobytes, megabytes and larger sizes:"
19396 msgstr ""
19397
19398 #. type: =item
19399 #: ../fish/guestfish.pod:607
19400 msgid "B<k> or B<K> or B<KiB>"
19401 msgstr ""
19402
19403 #. type: textblock
19404 #: ../fish/guestfish.pod:609
19405 msgid "The size in kilobytes (multiplied by 1024)."
19406 msgstr ""
19407
19408 #. type: =item
19409 #: ../fish/guestfish.pod:611
19410 msgid "B<KB>"
19411 msgstr ""
19412
19413 #. type: textblock
19414 #: ../fish/guestfish.pod:613
19415 msgid "The size in SI 1000 byte units."
19416 msgstr ""
19417
19418 #. type: =item
19419 #: ../fish/guestfish.pod:615
19420 msgid "B<M> or B<MiB>"
19421 msgstr ""
19422
19423 #. type: textblock
19424 #: ../fish/guestfish.pod:617
19425 msgid "The size in megabytes (multiplied by 1048576)."
19426 msgstr ""
19427
19428 #. type: =item
19429 #: ../fish/guestfish.pod:619
19430 msgid "B<MB>"
19431 msgstr ""
19432
19433 #. type: textblock
19434 #: ../fish/guestfish.pod:621
19435 msgid "The size in SI 1000000 byte units."
19436 msgstr ""
19437
19438 #. type: =item
19439 #: ../fish/guestfish.pod:623
19440 msgid "B<G> or B<GiB>"
19441 msgstr ""
19442
19443 #. type: textblock
19444 #: ../fish/guestfish.pod:625
19445 msgid "The size in gigabytes (multiplied by 2**30)."
19446 msgstr ""
19447
19448 #. type: =item
19449 #: ../fish/guestfish.pod:627
19450 msgid "B<GB>"
19451 msgstr ""
19452
19453 #. type: textblock
19454 #: ../fish/guestfish.pod:629
19455 msgid "The size in SI 10**9 byte units."
19456 msgstr ""
19457
19458 #. type: =item
19459 #: ../fish/guestfish.pod:631
19460 msgid "B<T> or B<TiB>"
19461 msgstr ""
19462
19463 #. type: textblock
19464 #: ../fish/guestfish.pod:633
19465 msgid "The size in terabytes (multiplied by 2**40)."
19466 msgstr ""
19467
19468 #. type: =item
19469 #: ../fish/guestfish.pod:635
19470 msgid "B<TB>"
19471 msgstr ""
19472
19473 #. type: textblock
19474 #: ../fish/guestfish.pod:637
19475 msgid "The size in SI 10**12 byte units."
19476 msgstr ""
19477
19478 #. type: =item
19479 #: ../fish/guestfish.pod:639
19480 msgid "B<P> or B<PiB>"
19481 msgstr ""
19482
19483 #. type: textblock
19484 #: ../fish/guestfish.pod:641
19485 msgid "The size in petabytes (multiplied by 2**50)."
19486 msgstr ""
19487
19488 #. type: =item
19489 #: ../fish/guestfish.pod:643
19490 msgid "B<PB>"
19491 msgstr ""
19492
19493 #. type: textblock
19494 #: ../fish/guestfish.pod:645
19495 msgid "The size in SI 10**15 byte units."
19496 msgstr ""
19497
19498 #. type: =item
19499 #: ../fish/guestfish.pod:647
19500 msgid "B<E> or B<EiB>"
19501 msgstr ""
19502
19503 #. type: textblock
19504 #: ../fish/guestfish.pod:649
19505 msgid "The size in exabytes (multiplied by 2**60)."
19506 msgstr ""
19507
19508 #. type: =item
19509 #: ../fish/guestfish.pod:651
19510 msgid "B<EB>"
19511 msgstr ""
19512
19513 #. type: textblock
19514 #: ../fish/guestfish.pod:653
19515 msgid "The size in SI 10**18 byte units."
19516 msgstr ""
19517
19518 #. type: =item
19519 #: ../fish/guestfish.pod:655
19520 msgid "B<Z> or B<ZiB>"
19521 msgstr ""
19522
19523 #. type: textblock
19524 #: ../fish/guestfish.pod:657
19525 msgid "The size in zettabytes (multiplied by 2**70)."
19526 msgstr ""
19527
19528 #. type: =item
19529 #: ../fish/guestfish.pod:659
19530 msgid "B<ZB>"
19531 msgstr ""
19532
19533 #. type: textblock
19534 #: ../fish/guestfish.pod:661
19535 msgid "The size in SI 10**21 byte units."
19536 msgstr ""
19537
19538 #. type: =item
19539 #: ../fish/guestfish.pod:663
19540 msgid "B<Y> or B<YiB>"
19541 msgstr ""
19542
19543 #. type: textblock
19544 #: ../fish/guestfish.pod:665
19545 msgid "The size in yottabytes (multiplied by 2**80)."
19546 msgstr ""
19547
19548 #. type: =item
19549 #: ../fish/guestfish.pod:667
19550 msgid "B<YB>"
19551 msgstr ""
19552
19553 #. type: textblock
19554 #: ../fish/guestfish.pod:669
19555 msgid "The size in SI 10**24 byte units."
19556 msgstr ""
19557
19558 #. type: verbatim
19559 #: ../fish/guestfish.pod:675
19560 #, no-wrap
19561 msgid ""
19562 " truncate-size /file 1G\n"
19563 "\n"
19564 msgstr ""
19565
19566 #. type: textblock
19567 #: ../fish/guestfish.pod:677
19568 msgid "would truncate the file to 1 gigabyte."
19569 msgstr ""
19570
19571 #. type: textblock
19572 #: ../fish/guestfish.pod:679
19573 msgid ""
19574 "Be careful because a few commands take sizes in kilobytes or megabytes "
19575 "(eg. the parameter to L</memsize> is specified in megabytes already).  "
19576 "Adding a suffix will probably not do what you expect."
19577 msgstr ""
19578
19579 #. type: =head2
19580 #: ../fish/guestfish.pod:683
19581 msgid "OCTAL AND HEXADECIMAL NUMBERS"
19582 msgstr ""
19583
19584 #. type: textblock
19585 #: ../fish/guestfish.pod:685
19586 msgid ""
19587 "For specifying the radix (base) use the C convention: C<0> to prefix an "
19588 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
19589 msgstr ""
19590
19591 #. type: verbatim
19592 #: ../fish/guestfish.pod:688
19593 #, no-wrap
19594 msgid ""
19595 " 1234      decimal number 1234\n"
19596 " 02322     octal number, equivalent to decimal 1234\n"
19597 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
19598 "\n"
19599 msgstr ""
19600
19601 #. type: textblock
19602 #: ../fish/guestfish.pod:692
19603 msgid ""
19604 "When using the C<chmod> command, you almost always want to specify an octal "
19605 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
19606 "L<chmod(1)> program):"
19607 msgstr ""
19608
19609 #. type: verbatim
19610 #: ../fish/guestfish.pod:696
19611 #, no-wrap
19612 msgid ""
19613 " chmod 0777 /public  # OK\n"
19614 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
19615 "\n"
19616 msgstr ""
19617
19618 #. type: textblock
19619 #: ../fish/guestfish.pod:699
19620 msgid ""
19621 "Commands that return numbers usually print them in decimal, but some "
19622 "commands print numbers in other radices (eg. C<umask> prints the mode in "
19623 "octal, preceeded by C<0>)."
19624 msgstr ""
19625
19626 #. type: =head1
19627 #: ../fish/guestfish.pod:703
19628 msgid "WILDCARDS AND GLOBBING"
19629 msgstr ""
19630
19631 #. type: textblock
19632 #: ../fish/guestfish.pod:705
19633 msgid ""
19634 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
19635 "(globbing) by default.  So for example the following will not do what you "
19636 "expect:"
19637 msgstr ""
19638
19639 #. type: verbatim
19640 #: ../fish/guestfish.pod:709
19641 #, no-wrap
19642 msgid ""
19643 " rm-rf /home/*\n"
19644 "\n"
19645 msgstr ""
19646
19647 #. type: textblock
19648 #: ../fish/guestfish.pod:711
19649 msgid ""
19650 "Assuming you don't have a directory called literally C</home/*> then the "
19651 "above command will return an error."
19652 msgstr ""
19653
19654 #. type: textblock
19655 #: ../fish/guestfish.pod:714
19656 msgid "To perform wildcard expansion, use the C<glob> command."
19657 msgstr ""
19658
19659 #. type: verbatim
19660 #: ../fish/guestfish.pod:716
19661 #, no-wrap
19662 msgid ""
19663 " glob rm-rf /home/*\n"
19664 "\n"
19665 msgstr ""
19666
19667 #. type: textblock
19668 #: ../fish/guestfish.pod:718
19669 msgid ""
19670 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
19671 "many times), equivalent to:"
19672 msgstr ""
19673
19674 #. type: verbatim
19675 #: ../fish/guestfish.pod:721
19676 #, no-wrap
19677 msgid ""
19678 " rm-rf /home/jim\n"
19679 " rm-rf /home/joe\n"
19680 " rm-rf /home/mary\n"
19681 "\n"
19682 msgstr ""
19683
19684 #. type: textblock
19685 #: ../fish/guestfish.pod:725
19686 msgid "C<glob> only works on simple guest paths and not on device names."
19687 msgstr ""
19688
19689 #. type: textblock
19690 #: ../fish/guestfish.pod:727
19691 msgid ""
19692 "If you have several parameters, each containing a wildcard, then glob will "
19693 "perform a Cartesian product."
19694 msgstr ""
19695
19696 #. type: =head1
19697 #: ../fish/guestfish.pod:730
19698 msgid "COMMENTS"
19699 msgstr ""
19700
19701 #. type: textblock
19702 #: ../fish/guestfish.pod:732
19703 msgid ""
19704 "Any line which starts with a I<#> character is treated as a comment and "
19705 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
19706 "a command.  For example:"
19707 msgstr ""
19708
19709 #. type: verbatim
19710 #: ../fish/guestfish.pod:736
19711 #, no-wrap
19712 msgid ""
19713 " # this is a comment\n"
19714 "         # this is a comment\n"
19715 " foo # NOT a comment\n"
19716 "\n"
19717 msgstr ""
19718
19719 #. type: textblock
19720 #: ../fish/guestfish.pod:740
19721 msgid "Blank lines are also ignored."
19722 msgstr ""
19723
19724 #. type: =head1
19725 #: ../fish/guestfish.pod:742
19726 msgid "RUNNING COMMANDS LOCALLY"
19727 msgstr ""
19728
19729 #. type: textblock
19730 #: ../fish/guestfish.pod:744
19731 msgid ""
19732 "Any line which starts with a I<!> character is treated as a command sent to "
19733 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
19734 msgstr ""
19735
19736 #. type: verbatim
19737 #: ../fish/guestfish.pod:748
19738 #, no-wrap
19739 msgid ""
19740 " !mkdir local\n"
19741 " tgz-out /remote local/remote-data.tar.gz\n"
19742 "\n"
19743 msgstr ""
19744
19745 #. type: textblock
19746 #: ../fish/guestfish.pod:751
19747 msgid ""
19748 "will create a directory C<local> on the host, and then export the contents "
19749 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
19750 "(See C<tgz-out>)."
19751 msgstr ""
19752
19753 #. type: textblock
19754 #: ../fish/guestfish.pod:755
19755 msgid ""
19756 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
19757 "effect, due to the way that subprocesses work in Unix."
19758 msgstr ""
19759
19760 #. type: =head2
19761 #: ../fish/guestfish.pod:758
19762 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
19763 msgstr ""
19764
19765 #. type: textblock
19766 #: ../fish/guestfish.pod:760
19767 msgid ""
19768 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
19769 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
19770 "and executed as guestfish commands."
19771 msgstr ""
19772
19773 #. type: textblock
19774 #: ../fish/guestfish.pod:764
19775 msgid ""
19776 "Thus you can use shell script to construct arbitrary guestfish commands "
19777 "which are then parsed by guestfish."
19778 msgstr ""
19779
19780 #. type: textblock
19781 #: ../fish/guestfish.pod:767
19782 msgid ""
19783 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
19784 "through C</foo.100>) using guestfish commands alone.  However this is simple "
19785 "if we use a shell script to create the guestfish commands for us:"
19786 msgstr ""
19787
19788 #. type: verbatim
19789 #: ../fish/guestfish.pod:772
19790 #, no-wrap
19791 msgid ""
19792 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
19793 "\n"
19794 msgstr ""
19795
19796 #. type: textblock
19797 #: ../fish/guestfish.pod:774
19798 msgid "or with names like C</foo.001>:"
19799 msgstr ""
19800
19801 #. type: verbatim
19802 #: ../fish/guestfish.pod:776
19803 #, no-wrap
19804 msgid ""
19805 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
19806 "\n"
19807 msgstr ""
19808
19809 #. type: textblock
19810 #: ../fish/guestfish.pod:778
19811 msgid ""
19812 "When using guestfish interactively it can be helpful to just run the shell "
19813 "script first (ie. remove the initial C<E<lt>> character so it is just an "
19814 "ordinary I<!> local command), see what guestfish commands it would run, and "
19815 "when you are happy with those prepend the C<E<lt>> character to run the "
19816 "guestfish commands for real."
19817 msgstr ""
19818
19819 #. type: =head1
19820 #: ../fish/guestfish.pod:784
19821 msgid "PIPES"
19822 msgstr ""
19823
19824 #. type: textblock
19825 #: ../fish/guestfish.pod:786
19826 msgid ""
19827 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
19828 "command (a guestfish command) to the second command (any host command).  For "
19829 "example:"
19830 msgstr ""
19831
19832 #. type: verbatim
19833 #: ../fish/guestfish.pod:790
19834 #, no-wrap
19835 msgid ""
19836 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
19837 "\n"
19838 msgstr ""
19839
19840 #. type: textblock
19841 #: ../fish/guestfish.pod:792
19842 msgid ""
19843 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
19844 "program).  The above command would list all accounts in the guest filesystem "
19845 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
19846 msgstr ""
19847
19848 #. type: verbatim
19849 #: ../fish/guestfish.pod:797
19850 #, no-wrap
19851 msgid ""
19852 " hexdump /bin/ls | head\n"
19853 " list-devices | tail -1\n"
19854 " tgz-out / - | tar ztf -\n"
19855 "\n"
19856 msgstr ""
19857
19858 #. type: textblock
19859 #: ../fish/guestfish.pod:801
19860 msgid ""
19861 "The space before the pipe symbol is required, any space after the pipe "
19862 "symbol is optional.  Everything after the pipe symbol is just passed "
19863 "straight to the host shell, so it can contain redirections, globs and "
19864 "anything else that makes sense on the host side."
19865 msgstr ""
19866
19867 #. type: textblock
19868 #: ../fish/guestfish.pod:806
19869 msgid ""
19870 "To use a literal argument which begins with a pipe symbol, you have to quote "
19871 "it, eg:"
19872 msgstr ""
19873
19874 #. type: verbatim
19875 #: ../fish/guestfish.pod:809
19876 #, no-wrap
19877 msgid ""
19878 " echo \"|\"\n"
19879 "\n"
19880 msgstr ""
19881
19882 #. type: =head1
19883 #: ../fish/guestfish.pod:811
19884 msgid "HOME DIRECTORIES"
19885 msgstr ""
19886
19887 #. type: textblock
19888 #: ../fish/guestfish.pod:813
19889 msgid ""
19890 "If a parameter starts with the character C<~> then the tilde may be expanded "
19891 "as a home directory path (either C<~> for the current user's home directory, "
19892 "or C<~user> for another user)."
19893 msgstr ""
19894
19895 #. type: textblock
19896 #: ../fish/guestfish.pod:817
19897 msgid ""
19898 "Note that home directory expansion happens for users known I<on the host>, "
19899 "not in the guest filesystem."
19900 msgstr ""
19901
19902 #. type: textblock
19903 #: ../fish/guestfish.pod:820
19904 msgid ""
19905 "To use a literal argument which begins with a tilde, you have to quote it, "
19906 "eg:"
19907 msgstr ""
19908
19909 #. type: verbatim
19910 #: ../fish/guestfish.pod:823
19911 #, no-wrap
19912 msgid ""
19913 " echo \"~\"\n"
19914 "\n"
19915 msgstr ""
19916
19917 #. type: =head2
19918 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:534
19919 msgid "ENCRYPTED DISKS"
19920 msgstr ""
19921
19922 #. type: textblock
19923 #: ../fish/guestfish.pod:827
19924 msgid ""
19925 "Libguestfs has some support for Linux guests encrypted according to the "
19926 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
19927 "disk encryption systems used by modern Linux guests.  Currently only "
19928 "LVM-on-LUKS is supported."
19929 msgstr ""
19930
19931 #. type: textblock
19932 #: ../fish/guestfish.pod:832
19933 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
19934 msgstr ""
19935
19936 #. type: verbatim
19937 #: ../fish/guestfish.pod:834
19938 #, no-wrap
19939 msgid ""
19940 " ><fs> vfs-type /dev/sda2\n"
19941 " crypto_LUKS\n"
19942 "\n"
19943 msgstr ""
19944
19945 #. type: textblock
19946 #: ../fish/guestfish.pod:837
19947 msgid ""
19948 "Then open those devices using L</luks-open>.  This creates a device-mapper "
19949 "device called C</dev/mapper/luksdev>."
19950 msgstr ""
19951
19952 #. type: verbatim
19953 #: ../fish/guestfish.pod:840
19954 #, no-wrap
19955 msgid ""
19956 " ><fs> luks-open /dev/sda2 luksdev\n"
19957 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
19958 "\n"
19959 msgstr ""
19960
19961 #. type: textblock
19962 #: ../fish/guestfish.pod:843
19963 msgid ""
19964 "Finally you have to tell LVM to scan for volume groups on the newly created "
19965 "mapper device:"
19966 msgstr ""
19967
19968 #. type: verbatim
19969 #: ../fish/guestfish.pod:846
19970 #, no-wrap
19971 msgid ""
19972 " vgscan\n"
19973 " vg-activate-all true\n"
19974 "\n"
19975 msgstr ""
19976
19977 #. type: textblock
19978 #: ../fish/guestfish.pod:849
19979 msgid "The logical volume(s) can now be mounted in the usual way."
19980 msgstr ""
19981
19982 #. type: textblock
19983 #: ../fish/guestfish.pod:851
19984 msgid ""
19985 "Before closing a LUKS device you must unmount any logical volumes on it and "
19986 "deactivate the volume groups by calling C<vg-activate false VG> on each "
19987 "one.  Then you can close the mapper device:"
19988 msgstr ""
19989
19990 #. type: verbatim
19991 #: ../fish/guestfish.pod:855
19992 #, no-wrap
19993 msgid ""
19994 " vg-activate false /dev/VG\n"
19995 " luks-close /dev/mapper/luksdev\n"
19996 "\n"
19997 msgstr ""
19998
19999 #. type: textblock
20000 #: ../fish/guestfish.pod:860
20001 msgid ""
20002 "If a path is prefixed with C<win:> then you can use Windows-style drive "
20003 "letters and paths (with some limitations).  The following commands are "
20004 "equivalent:"
20005 msgstr ""
20006
20007 #. type: verbatim
20008 #: ../fish/guestfish.pod:864
20009 #, no-wrap
20010 msgid ""
20011 " file /WINDOWS/system32/config/system.LOG\n"
20012 "\n"
20013 msgstr ""
20014
20015 #. type: verbatim
20016 #: ../fish/guestfish.pod:866
20017 #, no-wrap
20018 msgid ""
20019 " file win:\\windows\\system32\\config\\system.log\n"
20020 "\n"
20021 msgstr ""
20022
20023 #. type: verbatim
20024 #: ../fish/guestfish.pod:868
20025 #, no-wrap
20026 msgid ""
20027 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
20028 "\n"
20029 msgstr ""
20030
20031 #. type: textblock
20032 #: ../fish/guestfish.pod:870
20033 msgid ""
20034 "The parameter is rewritten \"behind the scenes\" by looking up the position "
20035 "where the drive is mounted, prepending that to the path, changing all "
20036 "backslash characters to forward slash, then resolving the result using "
20037 "L</case-sensitive-path>.  For example if the E: drive was mounted on C</e> "
20038 "then the parameter might be rewritten like this:"
20039 msgstr ""
20040
20041 #. type: verbatim
20042 #: ../fish/guestfish.pod:876
20043 #, no-wrap
20044 msgid ""
20045 " win:e:\\foo\\bar => /e/FOO/bar\n"
20046 "\n"
20047 msgstr ""
20048
20049 #. type: textblock
20050 #: ../fish/guestfish.pod:878
20051 msgid "This only works in argument positions that expect a path."
20052 msgstr ""
20053
20054 #. type: =head1
20055 #: ../fish/guestfish.pod:880
20056 msgid "UPLOADING AND DOWNLOADING FILES"
20057 msgstr ""
20058
20059 #. type: textblock
20060 #: ../fish/guestfish.pod:882
20061 msgid ""
20062 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
20063 "others which upload from or download to a local file, you can use the "
20064 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
20065 msgstr ""
20066
20067 #. type: verbatim
20068 #: ../fish/guestfish.pod:886
20069 #, no-wrap
20070 msgid ""
20071 " upload - /foo\n"
20072 "\n"
20073 msgstr ""
20074
20075 #. type: textblock
20076 #: ../fish/guestfish.pod:888
20077 msgid "reads stdin and creates from that a file C</foo> in the disk image, and:"
20078 msgstr ""
20079
20080 #. type: verbatim
20081 #: ../fish/guestfish.pod:891
20082 #, no-wrap
20083 msgid ""
20084 " tar-out /etc - | tar tf -\n"
20085 "\n"
20086 msgstr ""
20087
20088 #. type: textblock
20089 #: ../fish/guestfish.pod:893
20090 msgid ""
20091 "writes the tarball to stdout and then pipes that into the external \"tar\" "
20092 "command (see L</PIPES>)."
20093 msgstr ""
20094
20095 #. type: textblock
20096 #: ../fish/guestfish.pod:896
20097 msgid ""
20098 "When using C<-> to read from stdin, the input is read up to the end of "
20099 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
20100 "some arbitrary end marker:"
20101 msgstr ""
20102
20103 #. type: verbatim
20104 #: ../fish/guestfish.pod:900
20105 #, no-wrap
20106 msgid ""
20107 " upload -<<END /foo\n"
20108 " input line 1\n"
20109 " input line 2\n"
20110 " input line 3\n"
20111 " END\n"
20112 "\n"
20113 msgstr ""
20114
20115 #. type: textblock
20116 #: ../fish/guestfish.pod:906
20117 msgid ""
20118 "Any string of characters can be used instead of C<END>.  The end marker must "
20119 "appear on a line of its own, without any preceeding or following characters "
20120 "(not even spaces)."
20121 msgstr ""
20122
20123 #. type: textblock
20124 #: ../fish/guestfish.pod:910
20125 msgid ""
20126 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
20127 "upload local files (so-called \"FileIn\" parameters in the generator)."
20128 msgstr ""
20129
20130 #. type: =head1
20131 #: ../fish/guestfish.pod:913
20132 msgid "EXIT ON ERROR BEHAVIOUR"
20133 msgstr ""
20134
20135 #. type: textblock
20136 #: ../fish/guestfish.pod:915
20137 msgid ""
20138 "By default, guestfish will ignore any errors when in interactive mode "
20139 "(ie. taking commands from a human over a tty), and will exit on the first "
20140 "error in non-interactive mode (scripts, commands given on the command line)."
20141 msgstr ""
20142
20143 #. type: textblock
20144 #: ../fish/guestfish.pod:920
20145 msgid ""
20146 "If you prefix a command with a I<-> character, then that command will not "
20147 "cause guestfish to exit, even if that (one) command returns an error."
20148 msgstr ""
20149
20150 #. type: =head1
20151 #: ../fish/guestfish.pod:924
20152 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
20153 msgstr ""
20154
20155 #. type: textblock
20156 #: ../fish/guestfish.pod:926
20157 msgid ""
20158 "Guestfish can be remote-controlled over a socket.  This is useful "
20159 "particularly in shell scripts where you want to make several different "
20160 "changes to a filesystem, but you don't want the overhead of starting up a "
20161 "guestfish process each time."
20162 msgstr ""
20163
20164 #. type: textblock
20165 #: ../fish/guestfish.pod:931
20166 msgid "Start a guestfish server process using:"
20167 msgstr ""
20168
20169 #. type: verbatim
20170 #: ../fish/guestfish.pod:933
20171 #, no-wrap
20172 msgid ""
20173 " eval \"`guestfish --listen`\"\n"
20174 "\n"
20175 msgstr ""
20176
20177 #. type: textblock
20178 #: ../fish/guestfish.pod:935
20179 msgid "and then send it commands by doing:"
20180 msgstr ""
20181
20182 #. type: verbatim
20183 #: ../fish/guestfish.pod:937
20184 #, no-wrap
20185 msgid ""
20186 " guestfish --remote cmd [...]\n"
20187 "\n"
20188 msgstr ""
20189
20190 #. type: textblock
20191 #: ../fish/guestfish.pod:939
20192 msgid "To cause the server to exit, send it the exit command:"
20193 msgstr ""
20194
20195 #. type: textblock
20196 #: ../fish/guestfish.pod:943
20197 msgid ""
20198 "Note that the server will normally exit if there is an error in a command.  "
20199 "You can change this in the usual way.  See section L</EXIT ON ERROR "
20200 "BEHAVIOUR>."
20201 msgstr ""
20202
20203 #. type: =head2
20204 #: ../fish/guestfish.pod:947
20205 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
20206 msgstr ""
20207
20208 #. type: textblock
20209 #: ../fish/guestfish.pod:949
20210 msgid ""
20211 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
20212 "is how the I<--remote> option knows where to send the commands.  You can "
20213 "have several guestfish listener processes running using:"
20214 msgstr ""
20215
20216 #. type: verbatim
20217 #: ../fish/guestfish.pod:953
20218 #, no-wrap
20219 msgid ""
20220 " eval \"`guestfish --listen`\"\n"
20221 " pid1=$GUESTFISH_PID\n"
20222 " eval \"`guestfish --listen`\"\n"
20223 " pid2=$GUESTFISH_PID\n"
20224 " ...\n"
20225 " guestfish --remote=$pid1 cmd\n"
20226 " guestfish --remote=$pid2 cmd\n"
20227 "\n"
20228 msgstr ""
20229
20230 #. type: =head2
20231 #: ../fish/guestfish.pod:961
20232 msgid "REMOTE CONTROL AND CSH"
20233 msgstr ""
20234
20235 #. type: textblock
20236 #: ../fish/guestfish.pod:963
20237 msgid ""
20238 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
20239 "option:"
20240 msgstr ""
20241
20242 #. type: verbatim
20243 #: ../fish/guestfish.pod:966
20244 #, no-wrap
20245 msgid ""
20246 " eval \"`guestfish --listen --csh`\"\n"
20247 "\n"
20248 msgstr ""
20249
20250 #. type: =head2
20251 #: ../fish/guestfish.pod:968
20252 msgid "REMOTE CONTROL DETAILS"
20253 msgstr ""
20254
20255 #. type: textblock
20256 #: ../fish/guestfish.pod:970
20257 msgid ""
20258 "Remote control happens over a Unix domain socket called "
20259 "C</tmp/.guestfish-$UID/socket-$PID>, where C<$UID> is the effective user ID "
20260 "of the process, and C<$PID> is the process ID of the server."
20261 msgstr ""
20262
20263 #. type: textblock
20264 #: ../fish/guestfish.pod:974
20265 msgid "Guestfish client and server versions must match exactly."
20266 msgstr ""
20267
20268 #. type: =head2
20269 #: ../fish/guestfish.pod:976
20270 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
20271 msgstr ""
20272
20273 #. type: textblock
20274 #: ../fish/guestfish.pod:978
20275 msgid ""
20276 "From Bash, you can use the following code which creates a guestfish "
20277 "instance, correctly quotes the command line, handles failure to start, and "
20278 "cleans up guestfish when the script exits:"
20279 msgstr ""
20280
20281 #. type: verbatim
20282 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:980
20283 #, no-wrap
20284 msgid ""
20285 " #!/bin/bash -\n"
20286 " \n"
20287 msgstr ""
20288
20289 #. type: verbatim
20290 #: ../fish/guestfish.pod:986
20291 #, no-wrap
20292 msgid ""
20293 " guestfish[0]=\"guestfish\"\n"
20294 " guestfish[1]=\"--listen\"\n"
20295 " guestfish[2]=\"--ro\"\n"
20296 " guestfish[3]=\"-a\"\n"
20297 " guestfish[4]=\"disk.img\"\n"
20298 " \n"
20299 msgstr ""
20300
20301 #. type: verbatim
20302 #: ../fish/guestfish.pod:992
20303 #, no-wrap
20304 msgid ""
20305 " GUESTFISH_PID=\n"
20306 " eval $(\"${guestfish[@]}\")\n"
20307 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
20308 "     echo \"error: guestfish didn't start up, see error messages above\"\n"
20309 "     exit 1\n"
20310 " fi\n"
20311 " \n"
20312 msgstr ""
20313
20314 #. type: verbatim
20315 #: ../fish/guestfish.pod:999
20316 #, no-wrap
20317 msgid ""
20318 " cleanup_guestfish ()\n"
20319 " {\n"
20320 "     guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
20321 " }\n"
20322 " trap cleanup_guestfish EXIT ERR\n"
20323 " \n"
20324 msgstr ""
20325
20326 #. type: verbatim
20327 #: ../fish/guestfish.pod:1005
20328 #, no-wrap
20329 msgid ""
20330 " guestfish --remote -- run\n"
20331 " \n"
20332 msgstr ""
20333
20334 #. type: verbatim
20335 #: ../fish/guestfish.pod:1007
20336 #, no-wrap
20337 msgid ""
20338 " # ...\n"
20339 "\n"
20340 msgstr ""
20341
20342 #. type: =head2
20343 #: ../fish/guestfish.pod:1009
20344 msgid "REMOTE CONTROL RUN COMMAND HANGING"
20345 msgstr ""
20346
20347 #. type: textblock
20348 #: ../fish/guestfish.pod:1011
20349 msgid ""
20350 "Using the C<run> (or C<launch>) command remotely in a command substitution "
20351 "context hangs, ie. don't do (note the backquotes):"
20352 msgstr ""
20353
20354 #. type: verbatim
20355 #: ../fish/guestfish.pod:1014
20356 #, no-wrap
20357 msgid ""
20358 " a=`guestfish --remote run`\n"
20359 "\n"
20360 msgstr ""
20361
20362 #. type: textblock
20363 #: ../fish/guestfish.pod:1016
20364 msgid ""
20365 "Since the C<run> command produces no output on stdout, this is not useful "
20366 "anyway.  For further information see "
20367 "L<https://bugzilla.redhat.com/show_bug.cgi?id=592910>."
20368 msgstr ""
20369
20370 #. type: =head1
20371 #: ../fish/guestfish.pod:1020
20372 msgid "PREPARED DISK IMAGES"
20373 msgstr ""
20374
20375 #. type: textblock
20376 #: ../fish/guestfish.pod:1022
20377 msgid ""
20378 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
20379 "preformatted disk images that guestfish can make for you to save typing.  "
20380 "This is particularly useful for testing purposes.  This option is used "
20381 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
20382 "can be mixed with I<-a>)."
20383 msgstr ""
20384
20385 #. type: textblock
20386 #: ../fish/guestfish.pod:1028
20387 msgid ""
20388 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
20389 "the second and so on.  Existing files in the current directory are "
20390 "I<overwritten>."
20391 msgstr ""
20392
20393 #. type: textblock
20394 #: ../fish/guestfish.pod:1032
20395 msgid ""
20396 "The type briefly describes how the disk should be sized, partitioned, how "
20397 "filesystem(s) should be created, and how content should be added.  "
20398 "Optionally the type can be followed by extra parameters, separated by C<:> "
20399 "(colon) characters.  For example, I<-N fs> creates a default 100MB, "
20400 "sparsely-allocated disk, containing a single partition, with the partition "
20401 "formatted as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem "
20402 "on a 1GB disk instead."
20403 msgstr ""
20404
20405 #. type: textblock
20406 #: ../fish/guestfish.pod:1040
20407 msgid "To list the available types and any extra parameters they take, run:"
20408 msgstr ""
20409
20410 #. type: textblock
20411 #: ../fish/guestfish.pod:1044
20412 msgid ""
20413 "Note that the prepared filesystem is not mounted.  You would usually have to "
20414 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
20415 msgstr ""
20416
20417 #. type: textblock
20418 #: ../fish/guestfish.pod:1048
20419 msgid ""
20420 "If any I<-N> or I<--new> options are given, the guest is automatically "
20421 "launched."
20422 msgstr ""
20423
20424 #. type: textblock
20425 #: ../fish/guestfish.pod:1053
20426 msgid "Create a 100MB disk with an ext4-formatted partition:"
20427 msgstr ""
20428
20429 #. type: verbatim
20430 #: ../fish/guestfish.pod:1055
20431 #, no-wrap
20432 msgid ""
20433 " guestfish -N fs:ext4\n"
20434 "\n"
20435 msgstr ""
20436
20437 #. type: textblock
20438 #: ../fish/guestfish.pod:1057
20439 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
20440 msgstr ""
20441
20442 #. type: verbatim
20443 #: ../fish/guestfish.pod:1059
20444 #, no-wrap
20445 msgid ""
20446 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
20447 "\n"
20448 msgstr ""
20449
20450 #. type: textblock
20451 #: ../fish/guestfish.pod:1061
20452 msgid "Create a blank 200MB disk:"
20453 msgstr ""
20454
20455 #. type: verbatim
20456 #: ../fish/guestfish.pod:1063
20457 #, no-wrap
20458 msgid ""
20459 " guestfish -N disk:200M\n"
20460 "\n"
20461 msgstr ""
20462
20463 #. type: =head1
20464 #: ../fish/guestfish.pod:1065
20465 msgid "PROGRESS BARS"
20466 msgstr ""
20467
20468 #. type: textblock
20469 #: ../fish/guestfish.pod:1067
20470 msgid ""
20471 "Some (not all) long-running commands send progress notification messages as "
20472 "they are running.  Guestfish turns these messages into progress bars."
20473 msgstr ""
20474
20475 #. type: textblock
20476 #: ../fish/guestfish.pod:1071
20477 msgid ""
20478 "When a command that supports progress bars takes longer than two seconds to "
20479 "run, and if progress bars are enabled, then you will see one appearing below "
20480 "the command:"
20481 msgstr ""
20482
20483 #. type: verbatim
20484 #: ../fish/guestfish.pod:1075
20485 #, no-wrap
20486 msgid ""
20487 " ><fs> copy-size /large-file /another-file 2048M\n"
20488 " / 10% [#####-----------------------------------------] 00:30\n"
20489 "\n"
20490 msgstr ""
20491
20492 #. type: textblock
20493 #: ../fish/guestfish.pod:1078
20494 msgid ""
20495 "The spinner on the left hand side moves round once for every progress "
20496 "notification received from the backend.  This is a (reasonably) golden "
20497 "assurance that the command is \"doing something\" even if the progress bar "
20498 "is not moving, because the command is able to send the progress "
20499 "notifications.  When the bar reaches 100% and the command finishes, the "
20500 "spinner disappears."
20501 msgstr ""
20502
20503 #. type: textblock
20504 #: ../fish/guestfish.pod:1085
20505 msgid ""
20506 "Progress bars are enabled by default when guestfish is used interactively.  "
20507 "You can enable them even for non-interactive modes using I<--progress-bars>, "
20508 "and you can disable them completely using I<--no-progress-bars>."
20509 msgstr ""
20510
20511 #. type: =head1
20512 #: ../fish/guestfish.pod:1090
20513 msgid "GUESTFISH COMMANDS"
20514 msgstr ""
20515
20516 #. type: textblock
20517 #: ../fish/guestfish.pod:1092
20518 msgid ""
20519 "The commands in this section are guestfish convenience commands, in other "
20520 "words, they are not part of the L<guestfs(3)> API."
20521 msgstr ""
20522
20523 #. type: =head2
20524 #: ../fish/guestfish.pod:1095
20525 msgid "help"
20526 msgstr ""
20527
20528 #. type: verbatim
20529 #: ../fish/guestfish.pod:1097
20530 #, no-wrap
20531 msgid ""
20532 " help\n"
20533 " help cmd\n"
20534 "\n"
20535 msgstr ""
20536
20537 #. type: textblock
20538 #: ../fish/guestfish.pod:1100
20539 msgid "Without any parameter, this provides general help."
20540 msgstr ""
20541
20542 #. type: textblock
20543 #: ../fish/guestfish.pod:1102
20544 msgid "With a C<cmd> parameter, this displays detailed help for that command."
20545 msgstr ""
20546
20547 #. type: =head2
20548 #: ../fish/guestfish.pod:1104
20549 msgid "quit | exit"
20550 msgstr ""
20551
20552 #. type: textblock
20553 #: ../fish/guestfish.pod:1106
20554 msgid "This exits guestfish.  You can also use C<^D> key."
20555 msgstr ""
20556
20557 #. type: textblock
20558 #: ../fish/guestfish.pod:1108
20559 msgid "@FISH_COMMANDS@"
20560 msgstr ""
20561
20562 #. type: =head1
20563 #: ../fish/guestfish.pod:1110
20564 msgid "COMMANDS"
20565 msgstr ""
20566
20567 #. type: textblock
20568 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1520
20569 msgid "@ACTIONS@"
20570 msgstr ""
20571
20572 #. type: textblock
20573 #: ../fish/guestfish.pod:1116
20574 msgid ""
20575 "guestfish returns 0 if the commands completed without error, or 1 if there "
20576 "was an error."
20577 msgstr ""
20578
20579 #. type: =item
20580 #: ../fish/guestfish.pod:1123
20581 msgid "EDITOR"
20582 msgstr ""
20583
20584 #. type: textblock
20585 #: ../fish/guestfish.pod:1125
20586 msgid ""
20587 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
20588 "C<vi>."
20589 msgstr ""
20590
20591 #. type: =item
20592 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3213
20593 msgid "FEBOOTSTRAP_KERNEL"
20594 msgstr ""
20595
20596 #. type: =item
20597 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3215
20598 msgid "FEBOOTSTRAP_MODULES"
20599 msgstr ""
20600
20601 #. type: textblock
20602 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3217
20603 msgid ""
20604 "These two environment variables allow the kernel that libguestfs uses in the "
20605 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
20606 "most recent host kernel is chosen.  For more information about kernel "
20607 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
20608 "available in febootstrap E<ge> 3.8."
20609 msgstr ""
20610
20611 #. type: =item
20612 #: ../fish/guestfish.pod:1138
20613 msgid "GUESTFISH_DISPLAY_IMAGE"
20614 msgstr ""
20615
20616 #. type: textblock
20617 #: ../fish/guestfish.pod:1140
20618 msgid ""
20619 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
20620 "If not set, it uses L<display(1)>."
20621 msgstr ""
20622
20623 #. type: =item
20624 #: ../fish/guestfish.pod:1143
20625 msgid "GUESTFISH_PID"
20626 msgstr ""
20627
20628 #. type: textblock
20629 #: ../fish/guestfish.pod:1145
20630 msgid ""
20631 "Used with the I<--remote> option to specify the remote guestfish process to "
20632 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
20633 msgstr ""
20634
20635 #. type: =item
20636 #: ../fish/guestfish.pod:1149
20637 msgid "HEXEDITOR"
20638 msgstr ""
20639
20640 #. type: textblock
20641 #: ../fish/guestfish.pod:1151
20642 msgid ""
20643 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
20644 "not specified, the external L<hexedit(1)> program is used."
20645 msgstr ""
20646
20647 #. type: =item
20648 #: ../fish/guestfish.pod:1155
20649 msgid "HOME"
20650 msgstr ""
20651
20652 #. type: textblock
20653 #: ../fish/guestfish.pod:1157
20654 msgid ""
20655 "If compiled with GNU readline support, various files in the home directory "
20656 "can be used.  See L</FILES>."
20657 msgstr ""
20658
20659 #. type: =item
20660 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3223
20661 msgid "LIBGUESTFS_APPEND"
20662 msgstr ""
20663
20664 #. type: textblock
20665 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3225
20666 msgid "Pass additional options to the guest kernel."
20667 msgstr ""
20668
20669 #. type: =item
20670 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3227
20671 msgid "LIBGUESTFS_DEBUG"
20672 msgstr ""
20673
20674 #. type: textblock
20675 #: ../fish/guestfish.pod:1166
20676 msgid ""
20677 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
20678 "effect as using the B<-v> option."
20679 msgstr ""
20680
20681 #. type: =item
20682 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3232
20683 msgid "LIBGUESTFS_MEMSIZE"
20684 msgstr ""
20685
20686 #. type: textblock
20687 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3234
20688 msgid "Set the memory allocated to the qemu process, in megabytes.  For example:"
20689 msgstr ""
20690
20691 #. type: verbatim
20692 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3237
20693 #, no-wrap
20694 msgid ""
20695 " LIBGUESTFS_MEMSIZE=700\n"
20696 "\n"
20697 msgstr ""
20698
20699 #. type: =item
20700 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3239
20701 msgid "LIBGUESTFS_PATH"
20702 msgstr ""
20703
20704 #. type: textblock
20705 #: ../fish/guestfish.pod:1178
20706 msgid ""
20707 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
20708 "the discussion of paths in L<guestfs(3)>."
20709 msgstr ""
20710
20711 #. type: =item
20712 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3244
20713 msgid "LIBGUESTFS_QEMU"
20714 msgstr ""
20715
20716 #. type: textblock
20717 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3246
20718 msgid ""
20719 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
20720 "which was found at compile time by the configure script is used."
20721 msgstr ""
20722
20723 #. type: =item
20724 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3252
20725 msgid "LIBGUESTFS_TRACE"
20726 msgstr ""
20727
20728 #. type: textblock
20729 #: ../fish/guestfish.pod:1189
20730 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
20731 msgstr ""
20732
20733 #. type: =item
20734 #: ../fish/guestfish.pod:1191
20735 msgid "PAGER"
20736 msgstr ""
20737
20738 #. type: textblock
20739 #: ../fish/guestfish.pod:1193
20740 msgid ""
20741 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
20742 "C<more>."
20743 msgstr ""
20744
20745 #. type: =item
20746 #: ../fish/guestfish.pod:1196 ../sparsify/virt-sparsify.pod:235 ../src/guestfs.pod:3257
20747 msgid "TMPDIR"
20748 msgstr ""
20749
20750 #. type: textblock
20751 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3259
20752 msgid ""
20753 "Location of temporary directory, defaults to C</tmp> except for the cached "
20754 "supermin appliance which defaults to C</var/tmp>."
20755 msgstr ""
20756
20757 #. type: textblock
20758 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3262
20759 msgid ""
20760 "If libguestfs was compiled to use the supermin appliance then the real "
20761 "appliance is cached in this directory, shared between all handles belonging "
20762 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
20763 "use in case C</var/tmp> is not large enough."
20764 msgstr ""
20765
20766 #. type: =head1
20767 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297 ../rescue/virt-rescue.pod:273
20768 msgid "FILES"
20769 msgstr ""
20770
20771 #. type: =item
20772 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301 ../rescue/virt-rescue.pod:277
20773 msgid "$HOME/.libguestfs-tools.rc"
20774 msgstr ""
20775
20776 #. type: =item
20777 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303 ../rescue/virt-rescue.pod:279
20778 msgid "/etc/libguestfs-tools.conf"
20779 msgstr ""
20780
20781 #. type: textblock
20782 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305 ../rescue/virt-rescue.pod:281
20783 msgid ""
20784 "This configuration file controls the default read-only or read-write mode "
20785 "(I<--ro> or I<--rw>)."
20786 msgstr ""
20787
20788 #. type: textblock
20789 #: ../fish/guestfish.pod:1220
20790 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
20791 msgstr ""
20792
20793 #. type: =item
20794 #: ../fish/guestfish.pod:1222
20795 msgid "$HOME/.guestfish"
20796 msgstr ""
20797
20798 #. type: textblock
20799 #: ../fish/guestfish.pod:1224
20800 msgid ""
20801 "If compiled with GNU readline support, then the command history is saved in "
20802 "this file."
20803 msgstr ""
20804
20805 #. type: =item
20806 #: ../fish/guestfish.pod:1227
20807 msgid "$HOME/.inputrc"
20808 msgstr ""
20809
20810 #. type: =item
20811 #: ../fish/guestfish.pod:1229
20812 msgid "/etc/inputrc"
20813 msgstr ""
20814
20815 #. type: textblock
20816 #: ../fish/guestfish.pod:1231
20817 msgid ""
20818 "If compiled with GNU readline support, then these files can be used to "
20819 "configure readline.  For further information, please see "
20820 "L<readline(3)/INITIALIZATION FILE>."
20821 msgstr ""
20822
20823 #. type: textblock
20824 #: ../fish/guestfish.pod:1235
20825 msgid "To write rules which only apply to guestfish, use:"
20826 msgstr ""
20827
20828 #. type: verbatim
20829 #: ../fish/guestfish.pod:1237
20830 #, no-wrap
20831 msgid ""
20832 " $if guestfish\n"
20833 " ...\n"
20834 " $endif\n"
20835 "\n"
20836 msgstr ""
20837
20838 #. type: textblock
20839 #: ../fish/guestfish.pod:1241
20840 msgid ""
20841 "Variables that you can set in inputrc that change the behaviour of guestfish "
20842 "in useful ways include:"
20843 msgstr ""
20844
20845 #. type: =item
20846 #: ../fish/guestfish.pod:1246
20847 msgid "completion-ignore-case (default: on)"
20848 msgstr ""
20849
20850 #. type: textblock
20851 #: ../fish/guestfish.pod:1248
20852 msgid ""
20853 "By default, guestfish will ignore case when tab-completing paths on the "
20854 "disk.  Use:"
20855 msgstr ""
20856
20857 #. type: verbatim
20858 #: ../fish/guestfish.pod:1251
20859 #, no-wrap
20860 msgid ""
20861 " set completion-ignore-case off\n"
20862 "\n"
20863 msgstr ""
20864
20865 #. type: textblock
20866 #: ../fish/guestfish.pod:1253
20867 msgid "to make guestfish case sensitive."
20868 msgstr ""
20869
20870 #. type: =item
20871 #: ../fish/guestfish.pod:1257
20872 msgid "test1.img"
20873 msgstr ""
20874
20875 #. type: =item
20876 #: ../fish/guestfish.pod:1259
20877 msgid "test2.img (etc)"
20878 msgstr ""
20879
20880 #. type: textblock
20881 #: ../fish/guestfish.pod:1261
20882 msgid ""
20883 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
20884 "will be created in the file C<test1.img> in the current directory.  The "
20885 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
20886 "the same name will be overwritten."
20887 msgstr ""
20888
20889 #. type: textblock
20890 #: ../fish/guestfish.pod:1270
20891 msgid ""
20892 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, "
20893 "L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, "
20894 "L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, "
20895 "L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, "
20896 "L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, "
20897 "L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, "
20898 "L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<display(1)>, L<hexedit(1)>, "
20899 "L<febootstrap-supermin-helper(8)>."
20900 msgstr ""
20901
20902 #. type: textblock
20903 #: ../fish/guestfish.pod:1302 ../src/guestfs.pod:3355 ../test-tool/libguestfs-test-tool.pod:112
20904 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
20905 msgstr ""
20906
20907 #. type: textblock
20908 #: ../fish/virt-copy-in.pod:5
20909 msgid "virt-copy-in - Copy files and directories into a virtual machine disk image."
20910 msgstr ""
20911
20912 #. type: verbatim
20913 #: ../fish/virt-copy-in.pod:9
20914 #, no-wrap
20915 msgid ""
20916 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
20917 "\n"
20918 msgstr ""
20919
20920 #. type: verbatim
20921 #: ../fish/virt-copy-in.pod:11
20922 #, no-wrap
20923 msgid ""
20924 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
20925 "\n"
20926 msgstr ""
20927
20928 #. type: textblock
20929 #: ../fish/virt-copy-in.pod:15
20930 msgid ""
20931 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
20932 "causing disk corruption.  The virtual machine must be shut down before you "
20933 "use this command."
20934 msgstr ""
20935
20936 #. type: textblock
20937 #: ../fish/virt-copy-in.pod:21
20938 msgid ""
20939 "C<virt-copy-in> copies files and directories from the local disk into a "
20940 "virtual machine disk image or named libvirt domain."
20941 msgstr ""
20942
20943 #. type: textblock
20944 #: ../fish/virt-copy-in.pod:24
20945 msgid ""
20946 "You can give one of more filenames and directories on the command line.  "
20947 "Directories are copied in recursively.  The final parameter must be the "
20948 "destination directory in the disk image which must be an absolute path "
20949 "starting with a C</> character."
20950 msgstr ""
20951
20952 #. type: verbatim
20953 #: ../fish/virt-copy-in.pod:33
20954 #, no-wrap
20955 msgid ""
20956 " virt-copy-in -d MyGuest resolv.conf /etc\n"
20957 "\n"
20958 msgstr ""
20959
20960 #. type: textblock
20961 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
20962 msgid "Upload a home directory to a guest:"
20963 msgstr ""
20964
20965 #. type: verbatim
20966 #: ../fish/virt-copy-in.pod:37
20967 #, no-wrap
20968 msgid ""
20969 " virt-copy-in -d MyGuest skel /home\n"
20970 "\n"
20971 msgstr ""
20972
20973 #. type: =head1
20974 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28 ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
20975 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
20976 msgstr ""
20977
20978 #. type: textblock
20979 #: ../fish/virt-copy-in.pod:41
20980 msgid ""
20981 "This command is just a simple shell script wrapper around the "
20982 "L<guestfish(1)> C<copy-in> command.  For anything more complex than a "
20983 "trivial copy, you are probably better off using guestfish directly."
20984 msgstr ""
20985
20986 #. type: textblock
20987 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36 ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
20988 msgid ""
20989 "Since the shell script just passes options straight to guestfish, read "
20990 "L<guestfish(1)> to see the full list of options."
20991 msgstr ""
20992
20993 #. type: textblock
20994 #: ../fish/virt-copy-in.pod:52
20995 msgid ""
20996 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
20997 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
20998 msgstr ""
20999
21000 #. type: textblock
21001 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55 ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
21002 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
21003 msgstr ""
21004
21005 #. type: textblock
21006 #: ../fish/virt-copy-out.pod:5
21007 msgid ""
21008 "virt-copy-out - Copy files and directories out of a virtual machine disk "
21009 "image."
21010 msgstr ""
21011
21012 #. type: verbatim
21013 #: ../fish/virt-copy-out.pod:9
21014 #, no-wrap
21015 msgid ""
21016 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
21017 "\n"
21018 msgstr ""
21019
21020 #. type: verbatim
21021 #: ../fish/virt-copy-out.pod:11
21022 #, no-wrap
21023 msgid ""
21024 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
21025 "\n"
21026 msgstr ""
21027
21028 #. type: textblock
21029 #: ../fish/virt-copy-out.pod:15
21030 msgid ""
21031 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
21032 "image or named libvirt domain."
21033 msgstr ""
21034
21035 #. type: textblock
21036 #: ../fish/virt-copy-out.pod:18
21037 msgid ""
21038 "You can give one of more filenames and directories on the command line.  "
21039 "Directories are copied out recursively."
21040 msgstr ""
21041
21042 #. type: textblock
21043 #: ../fish/virt-copy-out.pod:23
21044 msgid "Download the home directories from a virtual machine:"
21045 msgstr ""
21046
21047 #. type: verbatim
21048 #: ../fish/virt-copy-out.pod:25
21049 #, no-wrap
21050 msgid ""
21051 " mkdir homes\n"
21052 " virt-copy-out -d MyGuest /home homes\n"
21053 "\n"
21054 msgstr ""
21055
21056 #. type: textblock
21057 #: ../fish/virt-copy-out.pod:30
21058 msgid ""
21059 "This command is just a simple shell script wrapper around the "
21060 "L<guestfish(1)> C<copy-out> command.  For anything more complex than a "
21061 "trivial copy, you are probably better off using guestfish directly."
21062 msgstr ""
21063
21064 #. type: textblock
21065 #: ../fish/virt-copy-out.pod:41
21066 msgid ""
21067 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, "
21068 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21069 msgstr ""
21070
21071 #. type: textblock
21072 #: ../fish/virt-tar-in.pod:5
21073 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
21074 msgstr ""
21075
21076 #. type: verbatim
21077 #: ../fish/virt-tar-in.pod:9
21078 #, no-wrap
21079 msgid ""
21080 " virt-tar-in -a disk.img data.tar /destination\n"
21081 "\n"
21082 msgstr ""
21083
21084 #. type: verbatim
21085 #: ../fish/virt-tar-in.pod:11
21086 #, no-wrap
21087 msgid ""
21088 " virt-tar-in -d domain data.tar /destination\n"
21089 "\n"
21090 msgstr ""
21091
21092 #. type: verbatim
21093 #: ../fish/virt-tar-in.pod:13
21094 #, no-wrap
21095 msgid ""
21096 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
21097 "\n"
21098 msgstr ""
21099
21100 #. type: textblock
21101 #: ../fish/virt-tar-in.pod:17
21102 msgid ""
21103 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
21104 "causing disk corruption.  The virtual machine must be shut down before you "
21105 "use this command."
21106 msgstr ""
21107
21108 #. type: textblock
21109 #: ../fish/virt-tar-in.pod:23
21110 msgid ""
21111 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
21112 "image or named libvirt domain."
21113 msgstr ""
21114
21115 #. type: textblock
21116 #: ../fish/virt-tar-in.pod:26
21117 msgid ""
21118 "The first parameter is the tar file.  Use C<-> to read the tar file from "
21119 "standard input.  The second parameter is the absolute target directory to "
21120 "unpack into."
21121 msgstr ""
21122
21123 #. type: verbatim
21124 #: ../fish/virt-tar-in.pod:34
21125 #, no-wrap
21126 msgid ""
21127 " virt-tar-in -d MyGuest homes.tar /home\n"
21128 "\n"
21129 msgstr ""
21130
21131 #. type: textblock
21132 #: ../fish/virt-tar-in.pod:38
21133 msgid ""
21134 "This command is just a simple shell script wrapper around the "
21135 "L<guestfish(1)> C<tar-in> command.  For anything more complex than a trivial "
21136 "copy, you are probably better off using guestfish directly."
21137 msgstr ""
21138
21139 #. type: textblock
21140 #: ../fish/virt-tar-in.pod:49
21141 msgid ""
21142 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21143 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, "
21144 "L<http://libguestfs.org/>."
21145 msgstr ""
21146
21147 #. type: textblock
21148 #: ../fish/virt-tar-out.pod:5
21149 msgid "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
21150 msgstr ""
21151
21152 #. type: verbatim
21153 #: ../fish/virt-tar-out.pod:9
21154 #, no-wrap
21155 msgid ""
21156 " virt-tar-out -a disk.img /dir files.tar\n"
21157 "\n"
21158 msgstr ""
21159
21160 #. type: verbatim
21161 #: ../fish/virt-tar-out.pod:11
21162 #, no-wrap
21163 msgid ""
21164 " virt-tar-out -d domain /dir files.tar\n"
21165 "\n"
21166 msgstr ""
21167
21168 #. type: verbatim
21169 #: ../fish/virt-tar-out.pod:13
21170 #, no-wrap
21171 msgid ""
21172 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
21173 "\n"
21174 msgstr ""
21175
21176 #. type: textblock
21177 #: ../fish/virt-tar-out.pod:17
21178 msgid "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
21179 msgstr ""
21180
21181 #. type: textblock
21182 #: ../fish/virt-tar-out.pod:20
21183 msgid ""
21184 "The first parameter is the absolute path of the virtual machine directory.  "
21185 "The second parameter is the tar file to write.  Use C<-> to write to "
21186 "standard output."
21187 msgstr ""
21188
21189 #. type: textblock
21190 #: ../fish/virt-tar-out.pod:26
21191 msgid "Download the home directories from a guest:"
21192 msgstr ""
21193
21194 #. type: verbatim
21195 #: ../fish/virt-tar-out.pod:28
21196 #, no-wrap
21197 msgid ""
21198 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
21199 "\n"
21200 msgstr ""
21201
21202 #. type: textblock
21203 #: ../fish/virt-tar-out.pod:32
21204 msgid ""
21205 "This command is just a simple shell script wrapper around the "
21206 "L<guestfish(1)> C<tar-out> command.  For anything more complex than a "
21207 "trivial copy, you are probably better off using guestfish directly."
21208 msgstr ""
21209
21210 #. type: textblock
21211 #: ../fish/virt-tar-out.pod:43
21212 msgid ""
21213 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21214 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
21215 msgstr ""
21216
21217 #. type: textblock
21218 #: ../fuse/guestmount.pod:5
21219 msgid "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
21220 msgstr ""
21221
21222 #. type: verbatim
21223 #: ../fuse/guestmount.pod:9
21224 #, no-wrap
21225 msgid ""
21226 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
21227 "\n"
21228 msgstr ""
21229
21230 #. type: verbatim
21231 #: ../fuse/guestmount.pod:11
21232 #, no-wrap
21233 msgid ""
21234 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
21235 "\n"
21236 msgstr ""
21237
21238 #. type: verbatim
21239 #: ../fuse/guestmount.pod:13
21240 #, no-wrap
21241 msgid ""
21242 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
21243 "\n"
21244 msgstr ""
21245
21246 #. type: textblock
21247 #: ../fuse/guestmount.pod:17
21248 msgid ""
21249 "You must I<not> use C<guestmount> in read-write mode on live virtual "
21250 "machines.  If you do this, you risk disk corruption in the VM."
21251 msgstr ""
21252
21253 #. type: textblock
21254 #: ../fuse/guestmount.pod:22
21255 msgid ""
21256 "The guestmount program can be used to mount virtual machine filesystems and "
21257 "other disk images on the host.  It uses libguestfs for access to the guest "
21258 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
21259 "a mountable device."
21260 msgstr ""
21261
21262 #. type: textblock
21263 #: ../fuse/guestmount.pod:27
21264 msgid ""
21265 "Along with other options, you have to give at least one device (I<-a> "
21266 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
21267 "option) or use the I<-i> inspection option or the I<--live> option.  How "
21268 "this works is better explained in the L<guestfish(1)> manual page, or by "
21269 "looking at the examples below."
21270 msgstr ""
21271
21272 #. type: textblock
21273 #: ../fuse/guestmount.pod:33
21274 msgid ""
21275 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
21276 "by you, and the filesystem will not be visible to any other users unless you "
21277 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
21278 "the filesystem, use the C<fusermount -u> command."
21279 msgstr ""
21280
21281 #. type: textblock
21282 #: ../fuse/guestmount.pod:41
21283 msgid ""
21284 "For a typical Windows guest which has its main filesystem on the first "
21285 "partition:"
21286 msgstr ""
21287
21288 #. type: verbatim
21289 #: ../fuse/guestmount.pod:44
21290 #, no-wrap
21291 msgid ""
21292 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
21293 "\n"
21294 msgstr ""
21295
21296 #. type: textblock
21297 #: ../fuse/guestmount.pod:46
21298 msgid ""
21299 "For a typical Linux guest which has a /boot filesystem on the first "
21300 "partition, and the root filesystem on a logical volume:"
21301 msgstr ""
21302
21303 #. type: verbatim
21304 #: ../fuse/guestmount.pod:49
21305 #, no-wrap
21306 msgid ""
21307 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
21308 "\n"
21309 msgstr ""
21310
21311 #. type: textblock
21312 #: ../fuse/guestmount.pod:51
21313 msgid "To get libguestfs to detect guest mountpoints for you:"
21314 msgstr ""
21315
21316 #. type: verbatim
21317 #: ../fuse/guestmount.pod:53
21318 #, no-wrap
21319 msgid ""
21320 " guestmount -a guest.img -i --ro /mnt\n"
21321 "\n"
21322 msgstr ""
21323
21324 #. type: textblock
21325 #: ../fuse/guestmount.pod:55
21326 msgid "For a libvirt guest called \"Guest\" you could do:"
21327 msgstr ""
21328
21329 #. type: verbatim
21330 #: ../fuse/guestmount.pod:57
21331 #, no-wrap
21332 msgid ""
21333 " guestmount -d Guest -i --ro /mnt\n"
21334 "\n"
21335 msgstr ""
21336
21337 #. type: textblock
21338 #: ../fuse/guestmount.pod:59
21339 msgid ""
21340 "If you don't know what filesystems are contained in a guest or disk image, "
21341 "use L<virt-filesystems(1)> first:"
21342 msgstr ""
21343
21344 #. type: verbatim
21345 #: ../fuse/guestmount.pod:62
21346 #, no-wrap
21347 msgid ""
21348 " virt-filesystems MyGuest\n"
21349 "\n"
21350 msgstr ""
21351
21352 #. type: textblock
21353 #: ../fuse/guestmount.pod:64
21354 msgid ""
21355 "If you want to trace the libguestfs calls but without excessive debugging "
21356 "information, we recommend:"
21357 msgstr ""
21358
21359 #. type: verbatim
21360 #: ../fuse/guestmount.pod:67
21361 #, no-wrap
21362 msgid ""
21363 " guestmount [...] --trace /mnt\n"
21364 "\n"
21365 msgstr ""
21366
21367 #. type: textblock
21368 #: ../fuse/guestmount.pod:69
21369 msgid "If you want to debug the program, we recommend:"
21370 msgstr ""
21371
21372 #. type: verbatim
21373 #: ../fuse/guestmount.pod:71
21374 #, no-wrap
21375 msgid ""
21376 " guestmount [...] --trace --verbose /mnt\n"
21377 "\n"
21378 msgstr ""
21379
21380 #. type: =head1
21381 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68 ../resize/virt-resize.pod:621
21382 msgid "NOTES"
21383 msgstr ""
21384
21385 #. type: =head2
21386 #: ../fuse/guestmount.pod:75
21387 msgid "Other users cannot see the filesystem by default"
21388 msgstr ""
21389
21390 #. type: textblock
21391 #: ../fuse/guestmount.pod:77
21392 msgid ""
21393 "If you mount a filesystem as one user (eg. root), then other users will not "
21394 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
21395 "option when mounting:"
21396 msgstr ""
21397
21398 #. type: verbatim
21399 #: ../fuse/guestmount.pod:81
21400 #, no-wrap
21401 msgid ""
21402 " sudo guestmount [...] -o allow_other /mnt\n"
21403 "\n"
21404 msgstr ""
21405
21406 #. type: =head2
21407 #: ../fuse/guestmount.pod:83
21408 msgid "Enabling FUSE"
21409 msgstr ""
21410
21411 #. type: textblock
21412 #: ../fuse/guestmount.pod:85
21413 msgid ""
21414 "On some distros, you may need to add yourself to a special group "
21415 "(eg. C<fuse>) before you can use any FUSE filesystem.  This is necessary on "
21416 "Debian and derivatives."
21417 msgstr ""
21418
21419 #. type: textblock
21420 #: ../fuse/guestmount.pod:89
21421 msgid ""
21422 "On other distros, no special group is required.  It is not necessary on "
21423 "Fedora or Red Hat Enterprise Linux."
21424 msgstr ""
21425
21426 #. type: textblock
21427 #: ../fuse/guestmount.pod:100
21428 msgid "Add a block device or virtual machine image."
21429 msgstr ""
21430
21431 #. type: =item
21432 #: ../fuse/guestmount.pod:123
21433 msgid "B<--dir-cache-timeout N>"
21434 msgstr ""
21435
21436 #. type: textblock
21437 #: ../fuse/guestmount.pod:125
21438 msgid ""
21439 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
21440 "seconds.  The readdir cache [actually, there are several semi-independent "
21441 "caches] is populated after a readdir(2) call with the stat and extended "
21442 "attributes of the files in the directory, in anticipation that they will be "
21443 "requested soon after."
21444 msgstr ""
21445
21446 #. type: textblock
21447 #: ../fuse/guestmount.pod:131
21448 msgid ""
21449 "There is also a different attribute cache implemented by FUSE (see the FUSE "
21450 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
21451 "requests, only cache existing ones."
21452 msgstr ""
21453
21454 #. type: textblock
21455 #: ../fuse/guestmount.pod:151
21456 msgid ""
21457 "If you have untrusted raw-format guest disk images, you should use this "
21458 "option to specify the disk format.  This avoids a possible security problem "
21459 "with malicious guests (CVE-2010-3851).  See also "
21460 "L<guestfs(3)/guestfs_add_drive_opts>."
21461 msgstr ""
21462
21463 #. type: =item
21464 #: ../fuse/guestmount.pod:156
21465 msgid "B<--fuse-help>"
21466 msgstr ""
21467
21468 #. type: textblock
21469 #: ../fuse/guestmount.pod:158
21470 msgid "Display help on special FUSE options (see I<-o> below)."
21471 msgstr ""
21472
21473 #. type: textblock
21474 #: ../fuse/guestmount.pod:162
21475 msgid "Display brief help and exit."
21476 msgstr ""
21477
21478 #. type: textblock
21479 #: ../fuse/guestmount.pod:186
21480 msgid ""
21481 "Mount the named partition or logical volume on the given mountpoint B<in the "
21482 "guest> (this has nothing to do with mountpoints in the host)."
21483 msgstr ""
21484
21485 #. type: textblock
21486 #: ../fuse/guestmount.pod:189
21487 msgid ""
21488 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
21489 "something on C</>."
21490 msgstr ""
21491
21492 #. type: textblock
21493 #: ../fuse/guestmount.pod:206
21494 msgid ""
21495 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
21496 "unmounted.  If you specify this option, then we don't attempt to sync the "
21497 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
21498 msgstr ""
21499
21500 #. type: =item
21501 #: ../fuse/guestmount.pod:211
21502 msgid "B<-o option>"
21503 msgstr ""
21504
21505 #. type: =item
21506 #: ../fuse/guestmount.pod:213
21507 msgid "B<--option option>"
21508 msgstr ""
21509
21510 #. type: textblock
21511 #: ../fuse/guestmount.pod:215
21512 msgid "Pass extra options to FUSE."
21513 msgstr ""
21514
21515 #. type: textblock
21516 #: ../fuse/guestmount.pod:217
21517 msgid ""
21518 "To get a list of all the extra options supported by FUSE, use the command "
21519 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
21520 "of them are a good idea."
21521 msgstr ""
21522
21523 #. type: verbatim
21524 #: ../fuse/guestmount.pod:221
21525 #, no-wrap
21526 msgid ""
21527 " guestmount --fuse-help\n"
21528 "\n"
21529 msgstr ""
21530
21531 #. type: textblock
21532 #: ../fuse/guestmount.pod:223
21533 msgid "Some potentially useful FUSE options:"
21534 msgstr ""
21535
21536 #. type: =item
21537 #: ../fuse/guestmount.pod:227
21538 msgid "B<-o allow_other>"
21539 msgstr ""
21540
21541 #. type: textblock
21542 #: ../fuse/guestmount.pod:229
21543 msgid "Allow other users to see the filesystem."
21544 msgstr ""
21545
21546 #. type: =item
21547 #: ../fuse/guestmount.pod:231
21548 msgid "B<-o attr_timeout=N>"
21549 msgstr ""
21550
21551 #. type: textblock
21552 #: ../fuse/guestmount.pod:233
21553 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
21554 msgstr ""
21555
21556 #. type: =item
21557 #: ../fuse/guestmount.pod:235
21558 msgid "B<-o kernel_cache>"
21559 msgstr ""
21560
21561 #. type: textblock
21562 #: ../fuse/guestmount.pod:237
21563 msgid ""
21564 "Allow the kernel to cache files (reduces the number of reads that have to go "
21565 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
21566 "afford the extra memory usage."
21567 msgstr ""
21568
21569 #. type: =item
21570 #: ../fuse/guestmount.pod:241
21571 msgid "B<-o uid=N> B<-o gid=N>"
21572 msgstr ""
21573
21574 #. type: textblock
21575 #: ../fuse/guestmount.pod:243
21576 msgid ""
21577 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
21578 "the chosen values."
21579 msgstr ""
21580
21581 #. type: textblock
21582 #: ../fuse/guestmount.pod:252
21583 msgid ""
21584 "Add devices and mount everything read-only.  Also disallow writes and make "
21585 "the disk appear read-only to FUSE."
21586 msgstr ""
21587
21588 #. type: textblock
21589 #: ../fuse/guestmount.pod:255
21590 msgid ""
21591 "This is highly recommended if you are not going to edit the guest disk.  If "
21592 "the guest is running and this option is I<not> supplied, then there is a "
21593 "strong risk of disk corruption in the guest.  We try to prevent this from "
21594 "happening, but it is not always possible."
21595 msgstr ""
21596
21597 #. type: textblock
21598 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:171
21599 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21600 msgstr ""
21601
21602 #. type: textblock
21603 #: ../fuse/guestmount.pod:264
21604 msgid "Enable SELinux support for the guest."
21605 msgstr ""
21606
21607 #. type: textblock
21608 #: ../fuse/guestmount.pod:270
21609 msgid "Enable verbose messages from underlying libguestfs."
21610 msgstr ""
21611
21612 #. type: textblock
21613 #: ../fuse/guestmount.pod:276
21614 msgid "Display the program version and exit."
21615 msgstr ""
21616
21617 #. type: textblock
21618 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308 ../rescue/virt-rescue.pod:201 ../rescue/virt-rescue.pod:284
21619 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21620 msgstr ""
21621
21622 #. type: =item
21623 #: ../fuse/guestmount.pod:289
21624 msgid "B<--trace>"
21625 msgstr ""
21626
21627 #. type: textblock
21628 #: ../fuse/guestmount.pod:291
21629 msgid "Trace libguestfs calls and entry into each FUSE function."
21630 msgstr ""
21631
21632 #. type: textblock
21633 #: ../fuse/guestmount.pod:293
21634 msgid "This also stops the daemon from forking into the background."
21635 msgstr ""
21636
21637 #. type: textblock
21638 #: ../fuse/guestmount.pod:319
21639 msgid ""
21640 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
21641 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, "
21642 "L<http://fuse.sf.net/>."
21643 msgstr ""
21644
21645 #. type: textblock
21646 #: ../fuse/guestmount.pod:334
21647 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
21648 msgstr ""
21649
21650 #. type: textblock
21651 #: ../inspector/virt-inspector.pod:5
21652 msgid ""
21653 "virt-inspector - Display operating system version and other information "
21654 "about a virtual machine"
21655 msgstr ""
21656
21657 #. type: verbatim
21658 #: ../inspector/virt-inspector.pod:9
21659 #, no-wrap
21660 msgid ""
21661 " virt-inspector [--options] -d domname\n"
21662 "\n"
21663 msgstr ""
21664
21665 #. type: verbatim
21666 #: ../inspector/virt-inspector.pod:11
21667 #, no-wrap
21668 msgid ""
21669 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
21670 "\n"
21671 msgstr ""
21672
21673 #. type: verbatim
21674 #: ../inspector/virt-inspector.pod:15
21675 #, no-wrap
21676 msgid ""
21677 " virt-inspector domname\n"
21678 "\n"
21679 msgstr ""
21680
21681 #. type: verbatim
21682 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:148
21683 #, no-wrap
21684 msgid ""
21685 " virt-inspector disk.img [disk.img ...]\n"
21686 "\n"
21687 msgstr ""
21688
21689 #. type: textblock
21690 #: ../inspector/virt-inspector.pod:21
21691 msgid ""
21692 "B<virt-inspector> examines a virtual machine or disk image and tries to "
21693 "determine the version of the operating system and other information about "
21694 "the virtual machine."
21695 msgstr ""
21696
21697 #. type: textblock
21698 #: ../inspector/virt-inspector.pod:25
21699 msgid "Virt-inspector produces XML output for feeding into other programs."
21700 msgstr ""
21701
21702 #. type: textblock
21703 #: ../inspector/virt-inspector.pod:27
21704 msgid ""
21705 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
21706 "the libvirt domain (see: C<virsh list --all>)."
21707 msgstr ""
21708
21709 #. type: textblock
21710 #: ../inspector/virt-inspector.pod:30
21711 msgid ""
21712 "You can also run virt-inspector directly on disk images from a single "
21713 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
21714 "has several block devices, in which case you should list several I<-a> "
21715 "options one after another, with the first corresponding to the guest's "
21716 "C</dev/sda>, the second to the guest's C</dev/sdb> and so on."
21717 msgstr ""
21718
21719 #. type: textblock
21720 #: ../inspector/virt-inspector.pod:37
21721 msgid ""
21722 "You can also run virt-inspector on install disks, live CDs, bootable USB "
21723 "keys and similar."
21724 msgstr ""
21725
21726 #. type: textblock
21727 #: ../inspector/virt-inspector.pod:40
21728 msgid ""
21729 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
21730 "inspect several virtual machines, you have to run virt-inspector several "
21731 "times (for example, from a shell script for-loop)."
21732 msgstr ""
21733
21734 #. type: textblock
21735 #: ../inspector/virt-inspector.pod:45
21736 msgid ""
21737 "Because virt-inspector needs direct access to guest images, it won't "
21738 "normally work over remote libvirt connections."
21739 msgstr ""
21740
21741 #. type: textblock
21742 #: ../inspector/virt-inspector.pod:48
21743 msgid ""
21744 "All of the information available from virt-inspector is also available "
21745 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
21746 "The same information can also be fetched using guestfish or via libguestfs "
21747 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
21748 "WITH OTHER PROGRAMMING LANGUAGES>)."
21749 msgstr ""
21750
21751 #. type: textblock
21752 #: ../inspector/virt-inspector.pod:81
21753 msgid ""
21754 "Libvirt is only used if you specify a C<domname> on the command line.  If "
21755 "you specify guest block devices directly (I<-a>), then libvirt is not used "
21756 "at all."
21757 msgstr ""
21758
21759 #. type: textblock
21760 #: ../inspector/virt-inspector.pod:94
21761 msgid ""
21762 "When prompting for keys and passphrases, virt-inspector normally turns "
21763 "echoing off so you cannot see what you are typing.  If you are not worried "
21764 "about Tempest attacks and there is no one else in the room you can specify "
21765 "this flag to see what you are typing."
21766 msgstr ""
21767
21768 #. type: textblock
21769 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93 ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143 ../tools/virt-win-reg.pl:144
21770 msgid ""
21771 "Specify the format of disk images given on the command line.  If this is "
21772 "omitted then the format is autodetected from the content of the disk image."
21773 msgstr ""
21774
21775 #. type: textblock
21776 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97 ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147 ../tools/virt-win-reg.pl:148
21777 msgid ""
21778 "If disk images are requested from libvirt, then this program asks libvirt "
21779 "for this information.  In this case, the value of the format parameter is "
21780 "ignored."
21781 msgstr ""
21782
21783 #. type: textblock
21784 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:391 ../resize/virt-resize.pod:483 ../sparsify/virt-sparsify.pod:131 ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102 ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
21785 msgid ""
21786 "If working with untrusted raw-format guest disk images, you should ensure "
21787 "the format is always specified."
21788 msgstr ""
21789
21790 #. type: =item
21791 #: ../inspector/virt-inspector.pod:135
21792 msgid "B<--xpath> query"
21793 msgstr ""
21794
21795 #. type: textblock
21796 #: ../inspector/virt-inspector.pod:137
21797 msgid ""
21798 "Perform an XPath query on the XML on stdin, and print the result on stdout.  "
21799 "In this mode virt-inspector simply runs an XPath query; all other inspection "
21800 "functions are disabled.  See L</XPATH QUERIES> below for some examples."
21801 msgstr ""
21802
21803 #. type: textblock
21804 #: ../inspector/virt-inspector.pod:146
21805 msgid "Previous versions of virt-inspector allowed you to write either:"
21806 msgstr ""
21807
21808 #. type: verbatim
21809 #: ../inspector/virt-inspector.pod:152
21810 #, no-wrap
21811 msgid ""
21812 " virt-inspector guestname\n"
21813 "\n"
21814 msgstr ""
21815
21816 #. type: =head1
21817 #: ../inspector/virt-inspector.pod:160
21818 msgid "XML FORMAT"
21819 msgstr ""
21820
21821 #. type: textblock
21822 #: ../inspector/virt-inspector.pod:162
21823 msgid ""
21824 "The virt-inspector XML is described precisely in a RELAX NG schema file "
21825 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
21826 "just an overview."
21827 msgstr ""
21828
21829 #. type: textblock
21830 #: ../inspector/virt-inspector.pod:166
21831 msgid ""
21832 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
21833 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
21834 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
21835 "which is vanishingly rare in real world VMs."
21836 msgstr ""
21837
21838 #. type: =head2
21839 #: ../inspector/virt-inspector.pod:171
21840 msgid "E<lt>operatingsystemE<gt>"
21841 msgstr ""
21842
21843 #. type: textblock
21844 #: ../inspector/virt-inspector.pod:173
21845 msgid ""
21846 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
21847 "describe the operating system, its architecture, the descriptive \"product "
21848 "name\" string, the type of OS and so on, as in this example:"
21849 msgstr ""
21850
21851 #. type: verbatim
21852 #: ../inspector/virt-inspector.pod:177
21853 #, no-wrap
21854 msgid ""
21855 " <operatingsystems>\n"
21856 "   <operatingsystem>\n"
21857 "     <root>/dev/sda2</root>\n"
21858 "     <name>windows</name>\n"
21859 "     <arch>i386</arch>\n"
21860 "     <distro>windows</distro>\n"
21861 "     <product_name>Windows 7 Enterprise</product_name>\n"
21862 "     <product_variant>Client</product_variant>\n"
21863 "     <major_version>6</major_version>\n"
21864 "     <minor_version>1</minor_version>\n"
21865 "     <windows_systemroot>/Windows</windows_systemroot>\n"
21866 "     <format>installed</format>\n"
21867 "\n"
21868 msgstr ""
21869
21870 #. type: textblock
21871 #: ../inspector/virt-inspector.pod:190
21872 msgid ""
21873 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
21874 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
21875 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
21876 "architecture.  The other fields are fairly self-explanatory, but because "
21877 "these fields are taken directly from the libguestfs inspection API you can "
21878 "find precise information from L<guestfs(3)/INSPECTION>."
21879 msgstr ""
21880
21881 #. type: textblock
21882 #: ../inspector/virt-inspector.pod:198
21883 msgid ""
21884 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
21885 "of view of libguestfs (block devices may have completely different names "
21886 "inside the VM itself)."
21887 msgstr ""
21888
21889 #. type: =head2
21890 #: ../inspector/virt-inspector.pod:202
21891 msgid "E<lt>mountpointsE<gt>"
21892 msgstr ""
21893
21894 #. type: textblock
21895 #: ../inspector/virt-inspector.pod:204
21896 msgid ""
21897 "Un*x-like guests typically have multiple filesystems which are mounted at "
21898 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
21899 "element which looks like this:"
21900 msgstr ""
21901
21902 #. type: verbatim
21903 #: ../inspector/virt-inspector.pod:208
21904 #, no-wrap
21905 msgid ""
21906 " <operatingsystems>\n"
21907 "   <operatingsystem>\n"
21908 "     ...\n"
21909 "     <mountpoints>\n"
21910 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
21911 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
21912 "     </mountpoints>\n"
21913 "\n"
21914 msgstr ""
21915
21916 #. type: textblock
21917 #: ../inspector/virt-inspector.pod:216
21918 msgid ""
21919 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
21920 "and may have completely different names inside the guest.  Only mountable "
21921 "filesystems appear in this list, not things like swap devices."
21922 msgstr ""
21923
21924 #. type: =head2
21925 #: ../inspector/virt-inspector.pod:221
21926 msgid "E<lt>filesystemsE<gt>"
21927 msgstr ""
21928
21929 #. type: textblock
21930 #: ../inspector/virt-inspector.pod:223
21931 msgid ""
21932 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
21933 "filesystems belonging to the guest, including swap and empty partitions.  "
21934 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
21935 "this OS or shared with this OS and other OSes)."
21936 msgstr ""
21937
21938 #. type: textblock
21939 #: ../inspector/virt-inspector.pod:229
21940 msgid "You might see something like this:"
21941 msgstr ""
21942
21943 #. type: verbatim
21944 #: ../inspector/virt-inspector.pod:231
21945 #, no-wrap
21946 msgid ""
21947 " <operatingsystems>\n"
21948 "   <operatingsystem>\n"
21949 "     ...\n"
21950 "     <filesystems>\n"
21951 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
21952 "         <type>ext4</type>\n"
21953 "         <label>Fedora-13-x86_64</label>\n"
21954 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
21955 "       </filesystem>\n"
21956 "\n"
21957 msgstr ""
21958
21959 #. type: textblock
21960 #: ../inspector/virt-inspector.pod:241
21961 msgid ""
21962 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
21963 "the label, and the UUID."
21964 msgstr ""
21965
21966 #. type: =head2
21967 #: ../inspector/virt-inspector.pod:244
21968 msgid "E<lt>applicationsE<gt>"
21969 msgstr ""
21970
21971 #. type: textblock
21972 #: ../inspector/virt-inspector.pod:246
21973 msgid ""
21974 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
21975 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
21976 "machine."
21977 msgstr ""
21978
21979 #. type: textblock
21980 #: ../inspector/virt-inspector.pod:250
21981 msgid ""
21982 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
21983 "Typical values would be C<rpm> and C<deb>."
21984 msgstr ""
21985
21986 #. type: textblock
21987 #: ../inspector/virt-inspector.pod:253
21988 msgid ""
21989 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
21990 "Typical values include C<yum>, C<up2date> and C<apt>"
21991 msgstr ""
21992
21993 #. type: textblock
21994 #: ../inspector/virt-inspector.pod:256
21995 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
21996 msgstr ""
21997
21998 #. type: verbatim
21999 #: ../inspector/virt-inspector.pod:259
22000 #, no-wrap
22001 msgid ""
22002 " <operatingsystems>\n"
22003 "   <operatingsystem>\n"
22004 "     ...\n"
22005 "     <applications>\n"
22006 "       <application>\n"
22007 "         <name>coreutils</name>\n"
22008 "         <version>8.5</version>\n"
22009 "         <release>1</release>\n"
22010 "       </application>\n"
22011 "\n"
22012 msgstr ""
22013
22014 #. type: textblock
22015 #: ../inspector/virt-inspector.pod:269
22016 msgid ""
22017 "The version and release fields may not be available for some types guests.  "
22018 "Other fields are possible, see "
22019 "L<guestfs(3)/guestfs_inspect_list_applications>."
22020 msgstr ""
22021
22022 #. type: =head2
22023 #: ../inspector/virt-inspector.pod:273
22024 msgid "E<lt>drive_mappingsE<gt>"
22025 msgstr ""
22026
22027 #. type: textblock
22028 #: ../inspector/virt-inspector.pod:275
22029 msgid ""
22030 "For operating systems like Windows which use drive letters, virt-inspector "
22031 "is able to find out how drive letters map to filesystems."
22032 msgstr ""
22033
22034 #. type: verbatim
22035 #: ../inspector/virt-inspector.pod:279
22036 #, no-wrap
22037 msgid ""
22038 " <operatingsystems>\n"
22039 "   <operatingsystem>\n"
22040 "     ...\n"
22041 "     <drive_mappings>\n"
22042 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
22043 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
22044 "     </drive_mappings>\n"
22045 "\n"
22046 msgstr ""
22047
22048 #. type: textblock
22049 #: ../inspector/virt-inspector.pod:287
22050 msgid ""
22051 "In the example above, drive C maps to the filesystem on the second partition "
22052 "on the first disk, and drive E maps to the filesystem on the first partition "
22053 "on the second disk."
22054 msgstr ""
22055
22056 #. type: textblock
22057 #: ../inspector/virt-inspector.pod:291
22058 msgid ""
22059 "Note that this only covers permanent local filesystem mappings, not things "
22060 "like network shares.  Furthermore NTFS volume mount points may not be listed "
22061 "here."
22062 msgstr ""
22063
22064 #. type: =head2
22065 #: ../inspector/virt-inspector.pod:295
22066 msgid "E<lt>iconE<gt>"
22067 msgstr ""
22068
22069 #. type: textblock
22070 #: ../inspector/virt-inspector.pod:297
22071 msgid ""
22072 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
22073 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
22074 "very large and high quality."
22075 msgstr ""
22076
22077 #. type: verbatim
22078 #: ../inspector/virt-inspector.pod:301
22079 #, no-wrap
22080 msgid ""
22081 " <operatingsystems>\n"
22082 "   <operatingsystem>\n"
22083 "     ...\n"
22084 "     <icon>\n"
22085 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
22086 "       [... many lines of base64 data ...]\n"
22087 "     </icon>\n"
22088 "\n"
22089 msgstr ""
22090
22091 #. type: textblock
22092 #: ../inspector/virt-inspector.pod:309
22093 msgid ""
22094 "To display the icon, you have to extract it and convert the base64 data back "
22095 "to a binary file.  Use an XPath query or simply an editor to extract the "
22096 "data, then use the coreutils L<base64(1)> program to do the conversion back "
22097 "to a PNG file:"
22098 msgstr ""
22099
22100 #. type: verbatim
22101 #: ../inspector/virt-inspector.pod:314
22102 #, no-wrap
22103 msgid ""
22104 " base64 -i -d < icon.data > icon.png\n"
22105 "\n"
22106 msgstr ""
22107
22108 #. type: =head2
22109 #: ../inspector/virt-inspector.pod:316
22110 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
22111 msgstr ""
22112
22113 #. type: textblock
22114 #: ../inspector/virt-inspector.pod:318
22115 msgid ""
22116 "Virt-inspector can detect some operating system installers on install disks, "
22117 "live CDs, bootable USB keys and more."
22118 msgstr ""
22119
22120 #. type: textblock
22121 #: ../inspector/virt-inspector.pod:321
22122 msgid ""
22123 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
22124 "fields may be present to indicate a live CD, network installer, or one part "
22125 "of a multipart CD.  For example:"
22126 msgstr ""
22127
22128 #. type: verbatim
22129 #: ../inspector/virt-inspector.pod:325
22130 #, no-wrap
22131 msgid ""
22132 " <operatingsystems>\n"
22133 "   <operatingsystem>\n"
22134 "     <root>/dev/sda</root>\n"
22135 "     <name>linux</name>\n"
22136 "     <arch>i386</arch>\n"
22137 "     <distro>ubuntu</distro>\n"
22138 "     <product_name>Ubuntu 10.10 &quot;Maverick "
22139 "Meerkat&quot;</product_name>\n"
22140 "     <major_version>10</major_version>\n"
22141 "     <minor_version>10</minor_version>\n"
22142 "     <format>installer</format>\n"
22143 "     <live/>\n"
22144 "\n"
22145 msgstr ""
22146
22147 #. type: =head1
22148 #: ../inspector/virt-inspector.pod:337
22149 msgid "XPATH QUERIES"
22150 msgstr ""
22151
22152 #. type: textblock
22153 #: ../inspector/virt-inspector.pod:339
22154 msgid ""
22155 "Virt-inspector includes built in support for running XPath queries.  The "
22156 "reason for including XPath support directly in virt-inspector is simply that "
22157 "there are no good and widely available command line programs that can do "
22158 "XPath queries.  The only good one is L<xmlstarlet(1)> and that is not "
22159 "available on Red Hat Enterprise Linux."
22160 msgstr ""
22161
22162 #. type: textblock
22163 #: ../inspector/virt-inspector.pod:346
22164 msgid ""
22165 "To perform an XPath query, use the I<--xpath> option.  Note that in this "
22166 "mode, virt-inspector simply reads XML from stdin and outputs the query "
22167 "result on stdout.  All other inspection features are disabled in this mode."
22168 msgstr ""
22169
22170 #. type: verbatim
22171 #: ../inspector/virt-inspector.pod:353
22172 #, no-wrap
22173 msgid ""
22174 " $ virt-inspector -d Guest | virt-inspector --xpath '//filesystems'\n"
22175 " <filesystems>\n"
22176 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22177 "        <type>ext4</type>\n"
22178 " [...]\n"
22179 "\n"
22180 msgstr ""
22181
22182 #. type: verbatim
22183 #: ../inspector/virt-inspector.pod:359
22184 #, no-wrap
22185 msgid ""
22186 " $ virt-inspector -d Guest | \\\n"
22187 "     virt-inspector --xpath "
22188 "\"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
22189 " ext4\n"
22190 "\n"
22191 msgstr ""
22192
22193 #. type: verbatim
22194 #: ../inspector/virt-inspector.pod:363
22195 #, no-wrap
22196 msgid ""
22197 " $ virt-inspector -d Guest | \\\n"
22198 "     virt-inspector --xpath 'string(//icon)' | base64 -i -d | display -\n"
22199 " [displays the guest icon, if there is one]\n"
22200 "\n"
22201 msgstr ""
22202
22203 #. type: =head1
22204 #: ../inspector/virt-inspector.pod:374
22205 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
22206 msgstr ""
22207
22208 #. type: textblock
22209 #: ../inspector/virt-inspector.pod:376
22210 msgid ""
22211 "Early versions of libguestfs shipped with a different virt-inspector program "
22212 "written in Perl (the current version is written in C).  The XML output of "
22213 "the Perl virt-inspector was different and it could also output in other "
22214 "formats like text."
22215 msgstr ""
22216
22217 #. type: textblock
22218 #: ../inspector/virt-inspector.pod:381
22219 msgid "The old virt-inspector is no longer supported or shipped with libguestfs."
22220 msgstr ""
22221
22222 #. type: textblock
22223 #: ../inspector/virt-inspector.pod:384
22224 msgid ""
22225 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
22226 "versions of virt-inspector with different names:"
22227 msgstr ""
22228
22229 #. type: verbatim
22230 #: ../inspector/virt-inspector.pod:387
22231 #, no-wrap
22232 msgid ""
22233 " virt-inspector     Old Perl version.\n"
22234 " virt-inspector2    New C version.\n"
22235 "\n"
22236 msgstr ""
22237
22238 #. type: textblock
22239 #: ../inspector/virt-inspector.pod:397
22240 msgid ""
22241 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, "
22242 "L<base64(1)>, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
22243 msgstr ""
22244
22245 #. type: textblock
22246 #: ../inspector/virt-inspector.pod:414
22247 msgid "Matthew Booth L<mbooth@redhat.com>"
22248 msgstr ""
22249
22250 #. type: textblock
22251 #: ../java/examples/guestfs-java.pod:5
22252 msgid "guestfs-java - How to use libguestfs from Java"
22253 msgstr ""
22254
22255 #. type: verbatim
22256 #: ../java/examples/guestfs-java.pod:9
22257 #, no-wrap
22258 msgid ""
22259 " import com.redhat.et.libguestfs.*;\n"
22260 " \n"
22261 msgstr ""
22262
22263 #. type: verbatim
22264 #: ../java/examples/guestfs-java.pod:11
22265 #, no-wrap
22266 msgid ""
22267 " GuestFS g = new GuestFS ();\n"
22268 " g.add_drive_opts (\"disk.img\", null);\n"
22269 " g.launch ();\n"
22270 "\n"
22271 msgstr ""
22272
22273 #. type: textblock
22274 #: ../java/examples/guestfs-java.pod:17
22275 msgid ""
22276 "This manual page documents how to call libguestfs from the Java programming "
22277 "language.  This page just documents the differences from the C API and gives "
22278 "some examples.  If you are not familiar with using libguestfs, you also need "
22279 "to read L<guestfs(3)>."
22280 msgstr ""
22281
22282 #. type: =head2
22283 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
22284 msgid "CLOSING THE HANDLE"
22285 msgstr ""
22286
22287 #. type: textblock
22288 #: ../java/examples/guestfs-java.pod:24
22289 msgid ""
22290 "The handle is closed when it is reaped by the garbage collector.  Because "
22291 "libguestfs handles include a lot of state, it is also possible to close (and "
22292 "hence free) them explicitly by calling the C<close> method."
22293 msgstr ""
22294
22295 #. type: =head2
22296 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60 ../python/examples/guestfs-python.pod:21 ../ruby/examples/guestfs-ruby.pod:22
22297 msgid "EXCEPTIONS"
22298 msgstr ""
22299
22300 #. type: textblock
22301 #: ../java/examples/guestfs-java.pod:31
22302 msgid ""
22303 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
22304 "exception.  This has a single parameter which is the error message (a "
22305 "C<String>)."
22306 msgstr ""
22307
22308 #. type: textblock
22309 #: ../java/examples/guestfs-java.pod:35
22310 msgid "Calling any method on a closed handle raises the same exception."
22311 msgstr ""
22312
22313 #. type: textblock
22314 #: ../java/examples/guestfs-java.pod:47
22315 msgid ""
22316 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
22317 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
22318 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>, "
22319 "L<http://caml.inria.fr/>."
22320 msgstr ""
22321
22322 #. type: textblock
22323 #: ../ocaml/examples/guestfs-ocaml.pod:5
22324 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
22325 msgstr ""
22326
22327 #. type: textblock
22328 #: ../ocaml/examples/guestfs-ocaml.pod:9
22329 msgid "Module style:"
22330 msgstr ""
22331
22332 #. type: verbatim
22333 #: ../ocaml/examples/guestfs-ocaml.pod:11
22334 #, no-wrap
22335 msgid ""
22336 " let g = Guestfs.create () in\n"
22337 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22338 " Guestfs.launch g;\n"
22339 "\n"
22340 msgstr ""
22341
22342 #. type: textblock
22343 #: ../ocaml/examples/guestfs-ocaml.pod:15
22344 msgid "Object-oriented style:"
22345 msgstr ""
22346
22347 #. type: verbatim
22348 #: ../ocaml/examples/guestfs-ocaml.pod:17
22349 #, no-wrap
22350 msgid ""
22351 " let g = new Guestfs.guestfs () in\n"
22352 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22353 " g#launch ();\n"
22354 "\n"
22355 msgstr ""
22356
22357 #. type: verbatim
22358 #: ../ocaml/examples/guestfs-ocaml.pod:21
22359 #, no-wrap
22360 msgid ""
22361 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
22362 "or:\n"
22363 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
22364 "\n"
22365 msgstr ""
22366
22367 #. type: textblock
22368 #: ../ocaml/examples/guestfs-ocaml.pod:27
22369 msgid ""
22370 "This manual page documents how to call libguestfs from the OCaml programming "
22371 "language.  This page just documents the differences from the C API and gives "
22372 "some examples.  If you are not familiar with using libguestfs, you also need "
22373 "to read L<guestfs(3)>."
22374 msgstr ""
22375
22376 #. type: =head2
22377 #: ../ocaml/examples/guestfs-ocaml.pod:32
22378 msgid "PROGRAMMING STYLES"
22379 msgstr ""
22380
22381 #. type: textblock
22382 #: ../ocaml/examples/guestfs-ocaml.pod:34
22383 msgid ""
22384 "There are two different programming styles supported by the OCaml bindings.  "
22385 "You can use a module style, with each C function mapped to an OCaml "
22386 "function:"
22387 msgstr ""
22388
22389 #. type: verbatim
22390 #: ../ocaml/examples/guestfs-ocaml.pod:38
22391 #, no-wrap
22392 msgid ""
22393 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
22394 "\n"
22395 msgstr ""
22396
22397 #. type: textblock
22398 #: ../ocaml/examples/guestfs-ocaml.pod:40
22399 msgid "becomes:"
22400 msgstr ""
22401
22402 #. type: verbatim
22403 #: ../ocaml/examples/guestfs-ocaml.pod:42
22404 #, no-wrap
22405 msgid ""
22406 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
22407 "\n"
22408 msgstr ""
22409
22410 #. type: textblock
22411 #: ../ocaml/examples/guestfs-ocaml.pod:44
22412 msgid ""
22413 "Alternately you can use an object-oriented style, calling methods on the "
22414 "class C<Guestfs.guestfs>:"
22415 msgstr ""
22416
22417 #. type: verbatim
22418 #: ../ocaml/examples/guestfs-ocaml.pod:47
22419 #, no-wrap
22420 msgid ""
22421 " method set_verbose : bool -> unit\n"
22422 "\n"
22423 msgstr ""
22424
22425 #. type: textblock
22426 #: ../ocaml/examples/guestfs-ocaml.pod:49
22427 msgid ""
22428 "The object-oriented style is usually briefer, and the minor performance "
22429 "penalty isn't noticable in the general overhead of performing libguestfs "
22430 "functions."
22431 msgstr ""
22432
22433 #. type: textblock
22434 #: ../ocaml/examples/guestfs-ocaml.pod:55
22435 msgid ""
22436 "The handle is closed when it is reaped by the garbage collector.  Because "
22437 "libguestfs handles include a lot of state, it is also possible to close (and "
22438 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
22439 "method."
22440 msgstr ""
22441
22442 #. type: textblock
22443 #: ../ocaml/examples/guestfs-ocaml.pod:62
22444 msgid ""
22445 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
22446 "exception.  This has a single parameter which is the error message (a "
22447 "string)."
22448 msgstr ""
22449
22450 #. type: textblock
22451 #: ../ocaml/examples/guestfs-ocaml.pod:66
22452 msgid ""
22453 "Calling any function/method on a closed handle raises "
22454 "C<Guestfs.Handle_closed>.  The single parameter is the name of the function "
22455 "that you called."
22456 msgstr ""
22457
22458 #. type: textblock
22459 #: ../ocaml/examples/guestfs-ocaml.pod:80
22460 msgid ""
22461 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
22462 "L<guestfs-java(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
22463 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>, "
22464 "L<http://caml.inria.fr/>."
22465 msgstr ""
22466
22467 #. type: textblock
22468 #: ../perl/examples/guestfs-perl.pod:5
22469 msgid "guestfs-perl - How to use libguestfs from Perl"
22470 msgstr ""
22471
22472 #. type: verbatim
22473 #: ../perl/examples/guestfs-perl.pod:9
22474 #, no-wrap
22475 msgid ""
22476 " use Sys::Guestfs;\n"
22477 " \n"
22478 msgstr ""
22479
22480 #. type: verbatim
22481 #: ../perl/examples/guestfs-perl.pod:11
22482 #, no-wrap
22483 msgid ""
22484 " my $h = Sys::Guestfs->new ();\n"
22485 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
22486 " $h->launch ();\n"
22487 " $h->mount_options ('', '/dev/sda1', '/');\n"
22488 " $h->touch ('/hello');\n"
22489 " $h->sync ();\n"
22490 "\n"
22491 msgstr ""
22492
22493 #. type: textblock
22494 #: ../perl/examples/guestfs-perl.pod:20
22495 msgid ""
22496 "This manual page documents how to call libguestfs from the Perl programming "
22497 "language.  This page just documents the differences from the C API and gives "
22498 "some examples.  If you are not familiar with using libguestfs, you also need "
22499 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
22500 msgstr ""
22501
22502 #. type: =head2
22503 #: ../perl/examples/guestfs-perl.pod:26
22504 msgid "ERRORS"
22505 msgstr ""
22506
22507 #. type: textblock
22508 #: ../perl/examples/guestfs-perl.pod:28
22509 msgid ""
22510 "Errors from libguestfs functions turn into calls to C<croak> (see "
22511 "L<Carp(3)>)."
22512 msgstr ""
22513
22514 #. type: textblock
22515 #: ../perl/examples/guestfs-perl.pod:41
22516 msgid ""
22517 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, "
22518 "L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, "
22519 "L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, "
22520 "L<http://libguestfs.org/>."
22521 msgstr ""
22522
22523 #. type: textblock
22524 #: ../python/examples/guestfs-python.pod:5
22525 msgid "guestfs-python - How to use libguestfs from Python"
22526 msgstr ""
22527
22528 #. type: verbatim
22529 #: ../python/examples/guestfs-python.pod:9
22530 #, no-wrap
22531 msgid ""
22532 " import guestfs\n"
22533 " g = guestfs.GuestFS ()\n"
22534 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
22535 " g.launch\n"
22536 "\n"
22537 msgstr ""
22538
22539 #. type: textblock
22540 #: ../python/examples/guestfs-python.pod:16
22541 msgid ""
22542 "This manual page documents how to call libguestfs from the Python "
22543 "programming language.  This page just documents the differences from the C "
22544 "API and gives some examples.  If you are not familiar with using libguestfs, "
22545 "you also need to read L<guestfs(3)>."
22546 msgstr ""
22547
22548 #. type: textblock
22549 #: ../python/examples/guestfs-python.pod:23
22550 msgid ""
22551 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
22552 "single string argument which is the error message."
22553 msgstr ""
22554
22555 #. type: =head2
22556 #: ../python/examples/guestfs-python.pod:26
22557 msgid "MORE DOCUMENTATION"
22558 msgstr ""
22559
22560 #. type: textblock
22561 #: ../python/examples/guestfs-python.pod:28
22562 msgid "Type:"
22563 msgstr ""
22564
22565 #. type: verbatim
22566 #: ../python/examples/guestfs-python.pod:30
22567 #, no-wrap
22568 msgid ""
22569 " $ python\n"
22570 " >>> import guestfs\n"
22571 " >>> help (guestfs)\n"
22572 "\n"
22573 msgstr ""
22574
22575 #. type: textblock
22576 #: ../python/examples/guestfs-python.pod:44
22577 msgid ""
22578 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
22579 "L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
22580 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
22581 msgstr ""
22582
22583 #. type: textblock
22584 #: ../rescue/virt-rescue.pod:5
22585 msgid "virt-rescue - Run a rescue shell on a virtual machine"
22586 msgstr ""
22587
22588 #. type: verbatim
22589 #: ../rescue/virt-rescue.pod:9
22590 #, no-wrap
22591 msgid ""
22592 " virt-rescue [--options] -d domname\n"
22593 "\n"
22594 msgstr ""
22595
22596 #. type: verbatim
22597 #: ../rescue/virt-rescue.pod:11
22598 #, no-wrap
22599 msgid ""
22600 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
22601 "\n"
22602 msgstr ""
22603
22604 #. type: verbatim
22605 #: ../rescue/virt-rescue.pod:15
22606 #, no-wrap
22607 msgid ""
22608 " virt-rescue [--options] domname\n"
22609 "\n"
22610 msgstr ""
22611
22612 #. type: verbatim
22613 #: ../rescue/virt-rescue.pod:17
22614 #, no-wrap
22615 msgid ""
22616 " virt-rescue [--options] disk.img [disk.img ...]\n"
22617 "\n"
22618 msgstr ""
22619
22620 #. type: textblock
22621 #: ../rescue/virt-rescue.pod:21
22622 msgid ""
22623 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
22624 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
22625 "you from doing this, but doesn't catch all cases."
22626 msgstr ""
22627
22628 #. type: textblock
22629 #: ../rescue/virt-rescue.pod:25
22630 msgid ""
22631 "However if you use the I<--ro> (read only) option, then you can attach a "
22632 "shell to a live virtual machine.  The results might be strange or "
22633 "inconsistent at times but you won't get disk corruption."
22634 msgstr ""
22635
22636 #. type: textblock
22637 #: ../rescue/virt-rescue.pod:31
22638 msgid ""
22639 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
22640 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
22641 "recovery tools which you can use to examine or rescue a virtual machine or "
22642 "disk image."
22643 msgstr ""
22644
22645 #. type: textblock
22646 #: ../rescue/virt-rescue.pod:36
22647 msgid ""
22648 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
22649 "on disk image(s):"
22650 msgstr ""
22651
22652 #. type: verbatim
22653 #: ../rescue/virt-rescue.pod:39
22654 #, no-wrap
22655 msgid ""
22656 " virt-rescue -d GuestName\n"
22657 "\n"
22658 msgstr ""
22659
22660 #. type: verbatim
22661 #: ../rescue/virt-rescue.pod:41
22662 #, no-wrap
22663 msgid ""
22664 " virt-rescue --ro -a /path/to/disk.img\n"
22665 "\n"
22666 msgstr ""
22667
22668 #. type: verbatim
22669 #: ../rescue/virt-rescue.pod:43
22670 #, no-wrap
22671 msgid ""
22672 " virt-rescue -a /dev/sdc\n"
22673 "\n"
22674 msgstr ""
22675
22676 #. type: textblock
22677 #: ../rescue/virt-rescue.pod:45
22678 msgid "For live VMs you I<must> use the --ro option."
22679 msgstr ""
22680
22681 #. type: textblock
22682 #: ../rescue/virt-rescue.pod:47
22683 msgid ""
22684 "When you run virt-rescue on a virtual machine or disk image, you are placed "
22685 "in an interactive bash shell where you can use many ordinary Linux "
22686 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
22687 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
22688 "is an empty directory called C</sysroot> where you can mount filesystems."
22689 msgstr ""
22690
22691 #. type: textblock
22692 #: ../rescue/virt-rescue.pod:54
22693 msgid ""
22694 "In the example below, we list logical volumes, then choose one to mount "
22695 "under C</sysroot>:"
22696 msgstr ""
22697
22698 #. type: verbatim
22699 #: ../rescue/virt-rescue.pod:57
22700 #, no-wrap
22701 msgid ""
22702 " ><rescue> lvs\n"
22703 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
22704 " lv_root vg_f11x64 -wi-a-   8.83G\n"
22705 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
22706 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
22707 " ><rescue> ls /sysroot\n"
22708 "\n"
22709 msgstr ""
22710
22711 #. type: textblock
22712 #: ../rescue/virt-rescue.pod:64
22713 msgid ""
22714 "If you don't know what filesystems are available on the virtual machine then "
22715 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
22716 msgstr ""
22717
22718 #. type: textblock
22719 #: ../rescue/virt-rescue.pod:70
22720 msgid ""
22721 "Virt-rescue can be used on I<any> disk image file or device, not just a "
22722 "virtual machine.  For example you can use it on a blank file if you want to "
22723 "partition that file (although we would recommend using L<guestfish(1)> "
22724 "instead as it is more suitable for this purpose).  You can even use "
22725 "virt-rescue on things like SD cards."
22726 msgstr ""
22727
22728 #. type: textblock
22729 #: ../rescue/virt-rescue.pod:76
22730 msgid ""
22731 "Virt-rescue does not require root.  You only need to run it as root if you "
22732 "need root to open the disk image."
22733 msgstr ""
22734
22735 #. type: textblock
22736 #: ../rescue/virt-rescue.pod:79
22737 msgid ""
22738 "This tool is just designed for quick interactive hacking on a virtual "
22739 "machine.  For more structured access to a virtual machine disk image, you "
22740 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
22741 "make scripted changes to guests, use L<guestfish(1)>."
22742 msgstr ""
22743
22744 #. type: =item
22745 #: ../rescue/virt-rescue.pod:103
22746 msgid "B<--append kernelopts>"
22747 msgstr ""
22748
22749 #. type: textblock
22750 #: ../rescue/virt-rescue.pod:105
22751 msgid "Pass additional options to the rescue kernel."
22752 msgstr ""
22753
22754 #. type: verbatim
22755 #: ../rescue/virt-rescue.pod:135
22756 #, no-wrap
22757 msgid ""
22758 " virt-rescue --format=raw -a disk.img\n"
22759 "\n"
22760 msgstr ""
22761
22762 #. type: verbatim
22763 #: ../rescue/virt-rescue.pod:139
22764 #, no-wrap
22765 msgid ""
22766 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
22767 "\n"
22768 msgstr ""
22769
22770 #. type: =item
22771 #: ../rescue/virt-rescue.pod:148
22772 msgid "B<-m MB>"
22773 msgstr ""
22774
22775 #. type: =item
22776 #: ../rescue/virt-rescue.pod:150
22777 msgid "B<--memsize MB>"
22778 msgstr ""
22779
22780 #. type: textblock
22781 #: ../rescue/virt-rescue.pod:152
22782 msgid ""
22783 "Change the amount of memory allocated to the rescue system.  The default is "
22784 "set by libguestfs and is small but adequate for running system tools.  The "
22785 "occasional program might need more memory.  The parameter is specified in "
22786 "megabytes."
22787 msgstr ""
22788
22789 #. type: =item
22790 #: ../rescue/virt-rescue.pod:157
22791 msgid "B<--network>"
22792 msgstr ""
22793
22794 #. type: textblock
22795 #: ../rescue/virt-rescue.pod:159
22796 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
22797 msgstr ""
22798
22799 #. type: textblock
22800 #: ../rescue/virt-rescue.pod:165
22801 msgid "Open the image read-only."
22802 msgstr ""
22803
22804 #. type: textblock
22805 #: ../rescue/virt-rescue.pod:175
22806 msgid ""
22807 "Enable SELinux in the rescue appliance.  You should read "
22808 "L<guestfs(3)/SELINUX> before using this option."
22809 msgstr ""
22810
22811 #. type: =item
22812 #: ../rescue/virt-rescue.pod:178
22813 msgid "B<--smp> N"
22814 msgstr ""
22815
22816 #. type: textblock
22817 #: ../rescue/virt-rescue.pod:180
22818 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
22819 msgstr ""
22820
22821 #. type: textblock
22822 #: ../rescue/virt-rescue.pod:198
22823 msgid ""
22824 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
22825 "are done read-write."
22826 msgstr ""
22827
22828 #. type: textblock
22829 #: ../rescue/virt-rescue.pod:211
22830 msgid "Previous versions of virt-rescue allowed you to write either:"
22831 msgstr ""
22832
22833 #. type: verbatim
22834 #: ../rescue/virt-rescue.pod:213
22835 #, no-wrap
22836 msgid ""
22837 " virt-rescue disk.img [disk.img ...]\n"
22838 "\n"
22839 msgstr ""
22840
22841 #. type: verbatim
22842 #: ../rescue/virt-rescue.pod:217
22843 #, no-wrap
22844 msgid ""
22845 " virt-rescue guestname\n"
22846 "\n"
22847 msgstr ""
22848
22849 #. type: =head1
22850 #: ../rescue/virt-rescue.pod:225
22851 msgid "NETWORK"
22852 msgstr ""
22853
22854 #. type: textblock
22855 #: ../rescue/virt-rescue.pod:227
22856 msgid ""
22857 "Adding the I<--network> option enables QEMU user networking in the rescue "
22858 "appliance.  There are some differences between user networking and ordinary "
22859 "networking:"
22860 msgstr ""
22861
22862 #. type: =item
22863 #: ../rescue/virt-rescue.pod:233
22864 msgid "ping does not work"
22865 msgstr ""
22866
22867 #. type: textblock
22868 #: ../rescue/virt-rescue.pod:235
22869 msgid ""
22870 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
22871 "send the ping packets, and because virt-rescue must be able to run as "
22872 "non-root, QEMU user networking is not able to emulate the L<ping(8)> "
22873 "command.  The ping command will appear to resolve addresses but will not be "
22874 "able to send or receive any packets.  This does not mean that the network is "
22875 "not working."
22876 msgstr ""
22877
22878 #. type: =item
22879 #: ../rescue/virt-rescue.pod:242
22880 msgid "cannot receive connections"
22881 msgstr ""
22882
22883 #. type: textblock
22884 #: ../rescue/virt-rescue.pod:244
22885 msgid "QEMU user networking cannot receive incoming connections."
22886 msgstr ""
22887
22888 #. type: =item
22889 #: ../rescue/virt-rescue.pod:246
22890 msgid "making TCP connections"
22891 msgstr ""
22892
22893 #. type: textblock
22894 #: ../rescue/virt-rescue.pod:248
22895 msgid ""
22896 "The virt-rescue appliance needs to be small and so does not include many "
22897 "network tools.  In particular there is no L<telnet(1)> command.  You can "
22898 "make TCP connections from the shell using the magical "
22899 "C</dev/tcp/E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
22900 msgstr ""
22901
22902 #. type: verbatim
22903 #: ../rescue/virt-rescue.pod:253
22904 #, no-wrap
22905 msgid ""
22906 " exec 3<>/dev/tcp/redhat.com/80\n"
22907 " echo \"GET /\" >&3\n"
22908 " cat <&3\n"
22909 "\n"
22910 msgstr ""
22911
22912 #. type: textblock
22913 #: ../rescue/virt-rescue.pod:257
22914 msgid "See L<bash(1)> for more details."
22915 msgstr ""
22916
22917 #. type: textblock
22918 #: ../rescue/virt-rescue.pod:263
22919 msgid ""
22920 "Several environment variables affect virt-rescue.  See "
22921 "L<guestfs(3)/ENVIRONMENT VARIABLES> for the complete list."
22922 msgstr ""
22923
22924 #. type: textblock
22925 #: ../rescue/virt-rescue.pod:290
22926 msgid ""
22927 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
22928 "L<http://libguestfs.org/>."
22929 msgstr ""
22930
22931 #. type: textblock
22932 #: ../resize/virt-resize.pod:5
22933 msgid "virt-resize - Resize a virtual machine disk"
22934 msgstr ""
22935
22936 #. type: verbatim
22937 #: ../resize/virt-resize.pod:9
22938 #, no-wrap
22939 msgid ""
22940 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
22941 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
22942 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
22943 "\n"
22944 msgstr ""
22945
22946 #. type: textblock
22947 #: ../resize/virt-resize.pod:15
22948 msgid ""
22949 "Virt-resize is a tool which can resize a virtual machine disk, making it "
22950 "larger or smaller overall, and resizing or deleting any partitions contained "
22951 "within."
22952 msgstr ""
22953
22954 #. type: textblock
22955 #: ../resize/virt-resize.pod:19
22956 msgid ""
22957 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
22958 "not> be used on live virtual machines - for consistent results, shut the "
22959 "virtual machine down before resizing it."
22960 msgstr ""
22961
22962 #. type: textblock
22963 #: ../resize/virt-resize.pod:23
22964 msgid ""
22965 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
22966 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
22967 msgstr ""
22968
22969 #. type: =item
22970 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:597 ../sparsify/virt-sparsify.pod:202 ../src/guestfs.pod:484 ../src/guestfs.pod:1302 ../src/guestfs.pod:1441 ../src/guestfs.pod:2690
22971 msgid "1."
22972 msgstr ""
22973
22974 #. type: textblock
22975 #: ../resize/virt-resize.pod:33
22976 msgid ""
22977 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
22978 "fill the extra 5GB of space."
22979 msgstr ""
22980
22981 #. type: verbatim
22982 #: ../resize/virt-resize.pod:36
22983 #, no-wrap
22984 msgid ""
22985 " virt-filesystems --long -h --all -a olddisk\n"
22986 " \n"
22987 msgstr ""
22988
22989 #. type: verbatim
22990 #: ../resize/virt-resize.pod:38
22991 #, no-wrap
22992 msgid ""
22993 " truncate -r olddisk newdisk\n"
22994 " truncate -s +5G newdisk\n"
22995 " \n"
22996 msgstr ""
22997
22998 #. type: verbatim
22999 #: ../resize/virt-resize.pod:41
23000 #, no-wrap
23001 msgid ""
23002 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
23003 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
23004 "\n"
23005 msgstr ""
23006
23007 #. type: =item
23008 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:604 ../sparsify/virt-sparsify.pod:209 ../src/guestfs.pod:490 ../src/guestfs.pod:1306 ../src/guestfs.pod:1445 ../src/guestfs.pod:2715
23009 msgid "2."
23010 msgstr ""
23011
23012 #. type: textblock
23013 #: ../resize/virt-resize.pod:46
23014 msgid ""
23015 "As above, but make the /boot partition 200MB bigger, while giving the "
23016 "remaining space to /dev/sda2:"
23017 msgstr ""
23018
23019 #. type: verbatim
23020 #: ../resize/virt-resize.pod:49
23021 #, no-wrap
23022 msgid ""
23023 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23024 "   olddisk newdisk\n"
23025 "\n"
23026 msgstr ""
23027
23028 #. type: =item
23029 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:610 ../sparsify/virt-sparsify.pod:215 ../src/guestfs.pod:501 ../src/guestfs.pod:1451
23030 msgid "3."
23031 msgstr ""
23032
23033 #. type: textblock
23034 #: ../resize/virt-resize.pod:54
23035 msgid ""
23036 "As in the first example, but expand a logical volume as the final step.  "
23037 "This is what you would typically use for Linux guests that use LVM:"
23038 msgstr ""
23039
23040 #. type: verbatim
23041 #: ../resize/virt-resize.pod:58
23042 #, no-wrap
23043 msgid ""
23044 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
23045 "   olddisk newdisk\n"
23046 "\n"
23047 msgstr ""
23048
23049 #. type: =item
23050 #: ../resize/virt-resize.pod:61
23051 msgid "4."
23052 msgstr ""
23053
23054 #. type: textblock
23055 #: ../resize/virt-resize.pod:63
23056 msgid ""
23057 "As in the first example, but the output format will be qcow2 instead of a "
23058 "raw disk:"
23059 msgstr ""
23060
23061 #. type: verbatim
23062 #: ../resize/virt-resize.pod:66
23063 #, no-wrap
23064 msgid ""
23065 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
23066 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
23067 "\n"
23068 msgstr ""
23069
23070 #. type: =head1
23071 #: ../resize/virt-resize.pod:71
23072 msgid "DETAILED USAGE"
23073 msgstr ""
23074
23075 #. type: =head2
23076 #: ../resize/virt-resize.pod:73
23077 msgid "EXPANDING A VIRTUAL MACHINE DISK"
23078 msgstr ""
23079
23080 #. type: =item
23081 #: ../resize/virt-resize.pod:77
23082 msgid "1. Shut down the virtual machine"
23083 msgstr ""
23084
23085 #. type: =item
23086 #: ../resize/virt-resize.pod:79
23087 msgid "2. Locate input disk image"
23088 msgstr ""
23089
23090 #. type: textblock
23091 #: ../resize/virt-resize.pod:81
23092 msgid ""
23093 "Locate the input disk image (ie. the file or device on the host containing "
23094 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
23095 "dumpxml> like this to find the disk image name:"
23096 msgstr ""
23097
23098 #. type: verbatim
23099 #: ../resize/virt-resize.pod:85
23100 #, no-wrap
23101 msgid ""
23102 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
23103 " Found 1 nodes:\n"
23104 " -- NODE --\n"
23105 " <source dev=\"/dev/vg/lv_guest\" />\n"
23106 "\n"
23107 msgstr ""
23108
23109 #. type: =item
23110 #: ../resize/virt-resize.pod:90
23111 msgid "3. Look at current sizing"
23112 msgstr ""
23113
23114 #. type: textblock
23115 #: ../resize/virt-resize.pod:92
23116 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
23117 msgstr ""
23118
23119 #. type: verbatim
23120 #: ../resize/virt-resize.pod:95
23121 #, no-wrap
23122 msgid ""
23123 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
23124 " Name       Type       Size  Parent\n"
23125 " /dev/sda1  partition  101M  /dev/sda\n"
23126 " /dev/sda2  partition  7.9G  /dev/sda\n"
23127 " /dev/sda   device     8.0G  -\n"
23128 "\n"
23129 msgstr ""
23130
23131 #. type: textblock
23132 #: ../resize/virt-resize.pod:101
23133 msgid ""
23134 "(This example is a virtual machine with an 8 GB disk which we would like to "
23135 "expand up to 10 GB)."
23136 msgstr ""
23137
23138 #. type: =item
23139 #: ../resize/virt-resize.pod:104
23140 msgid "4. Create output disk"
23141 msgstr ""
23142
23143 #. type: textblock
23144 #: ../resize/virt-resize.pod:106
23145 msgid ""
23146 "Virt-resize cannot do in-place disk modifications.  You have to have space "
23147 "to store the resized output disk."
23148 msgstr ""
23149
23150 #. type: textblock
23151 #: ../resize/virt-resize.pod:109
23152 msgid "To store the resized disk image in a file, create a file of a suitable size:"
23153 msgstr ""
23154
23155 #. type: verbatim
23156 #: ../resize/virt-resize.pod:112
23157 #, no-wrap
23158 msgid ""
23159 " # rm -f outdisk\n"
23160 " # truncate -s 10G outdisk\n"
23161 "\n"
23162 msgstr ""
23163
23164 #. type: textblock
23165 #: ../resize/virt-resize.pod:115
23166 msgid "Or use L<lvcreate(1)> to create a logical volume:"
23167 msgstr ""
23168
23169 #. type: verbatim
23170 #: ../resize/virt-resize.pod:117
23171 #, no-wrap
23172 msgid ""
23173 " # lvcreate -L 10G -n lv_name vg_name\n"
23174 "\n"
23175 msgstr ""
23176
23177 #. type: textblock
23178 #: ../resize/virt-resize.pod:119
23179 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
23180 msgstr ""
23181
23182 #. type: verbatim
23183 #: ../resize/virt-resize.pod:121
23184 #, no-wrap
23185 msgid ""
23186 " # virsh pool-list\n"
23187 " # virsh vol-create-as poolname newvol 10G\n"
23188 "\n"
23189 msgstr ""
23190
23191 #. type: =item
23192 #: ../resize/virt-resize.pod:124
23193 msgid "5. Resize"
23194 msgstr ""
23195
23196 #. type: textblock
23197 #: ../resize/virt-resize.pod:126
23198 msgid ""
23199 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
23200 "file) and the output disk.  The output disk is the one created in the "
23201 "previous step."
23202 msgstr ""
23203
23204 #. type: verbatim
23205 #: ../resize/virt-resize.pod:130
23206 #, no-wrap
23207 msgid ""
23208 " # virt-resize indisk outdisk\n"
23209 "\n"
23210 msgstr ""
23211
23212 #. type: textblock
23213 #: ../resize/virt-resize.pod:132
23214 msgid ""
23215 "This command just copies disk image C<indisk> to disk image C<outdisk> "
23216 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
23217 "larger, then an extra, empty partition is created at the end of the disk "
23218 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
23219 "error."
23220 msgstr ""
23221
23222 #. type: textblock
23223 #: ../resize/virt-resize.pod:138
23224 msgid ""
23225 "More realistically you'd want to expand existing partitions in the disk "
23226 "image by passing extra options (for the full list see the L</OPTIONS> "
23227 "section below)."
23228 msgstr ""
23229
23230 #. type: textblock
23231 #: ../resize/virt-resize.pod:142
23232 msgid ""
23233 "L</--expand> is the most useful option.  It expands the named partition "
23234 "within the disk to fill any extra space:"
23235 msgstr ""
23236
23237 #. type: verbatim
23238 #: ../resize/virt-resize.pod:145
23239 #, no-wrap
23240 msgid ""
23241 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
23242 "\n"
23243 msgstr ""
23244
23245 #. type: textblock
23246 #: ../resize/virt-resize.pod:147
23247 msgid ""
23248 "(In this case, an extra partition is I<not> created at the end of the disk, "
23249 "because there will be no unused space)."
23250 msgstr ""
23251
23252 #. type: textblock
23253 #: ../resize/virt-resize.pod:150
23254 msgid ""
23255 "L</--resize> is the other commonly used option.  The following would "
23256 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
23257 "rest of the available space:"
23258 msgstr ""
23259
23260 #. type: verbatim
23261 #: ../resize/virt-resize.pod:154
23262 #, no-wrap
23263 msgid ""
23264 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23265 "     indisk outdisk\n"
23266 "\n"
23267 msgstr ""
23268
23269 #. type: textblock
23270 #: ../resize/virt-resize.pod:157
23271 msgid ""
23272 "If the expanded partition in the image contains a filesystem or LVM PV, then "
23273 "if virt-resize knows how, it will resize the contents, the equivalent of "
23274 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
23275 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
23276 "filesystems, so you would have to online resize them after booting the "
23277 "guest."
23278 msgstr ""
23279
23280 #. type: textblock
23281 #: ../resize/virt-resize.pod:164
23282 msgid "Other options are covered below."
23283 msgstr ""
23284
23285 #. type: =item
23286 #: ../resize/virt-resize.pod:166
23287 msgid "6. Test"
23288 msgstr ""
23289
23290 #. type: textblock
23291 #: ../resize/virt-resize.pod:168
23292 msgid "Thoroughly test the new disk image I<before> discarding the old one."
23293 msgstr ""
23294
23295 #. type: textblock
23296 #: ../resize/virt-resize.pod:170
23297 msgid "If you are using libvirt, edit the XML to point at the new disk:"
23298 msgstr ""
23299
23300 #. type: verbatim
23301 #: ../resize/virt-resize.pod:172
23302 #, no-wrap
23303 msgid ""
23304 " # virsh edit guestname\n"
23305 "\n"
23306 msgstr ""
23307
23308 #. type: textblock
23309 #: ../resize/virt-resize.pod:174
23310 msgid ""
23311 "Change E<lt>source ...E<gt>, see "
23312 "L<http://libvirt.org/formatdomain.html#elementsDisks>"
23313 msgstr ""
23314
23315 #. type: textblock
23316 #: ../resize/virt-resize.pod:177
23317 msgid "Then start up the domain with the new, resized disk:"
23318 msgstr ""
23319
23320 #. type: verbatim
23321 #: ../resize/virt-resize.pod:179
23322 #, no-wrap
23323 msgid ""
23324 " # virsh start guestname\n"
23325 "\n"
23326 msgstr ""
23327
23328 #. type: textblock
23329 #: ../resize/virt-resize.pod:181
23330 msgid ""
23331 "and check that it still works.  See also the L</NOTES> section below for "
23332 "additional information."
23333 msgstr ""
23334
23335 #. type: =item
23336 #: ../resize/virt-resize.pod:184
23337 msgid "7. Resize LVs etc inside the guest"
23338 msgstr ""
23339
23340 #. type: textblock
23341 #: ../resize/virt-resize.pod:186
23342 msgid "(This can also be done offline using L<guestfish(1)>)"
23343 msgstr ""
23344
23345 #. type: textblock
23346 #: ../resize/virt-resize.pod:188
23347 msgid ""
23348 "Once the guest has booted you should see the new space available, at least "
23349 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
23350 "may need to resize LVs inside PVs, and also resize filesystem types that "
23351 "virt-resize does not know how to expand."
23352 msgstr ""
23353
23354 #. type: =head2
23355 #: ../resize/virt-resize.pod:195
23356 msgid "SHRINKING A VIRTUAL MACHINE DISK"
23357 msgstr ""
23358
23359 #. type: textblock
23360 #: ../resize/virt-resize.pod:197
23361 msgid ""
23362 "Shrinking is somewhat more complex than expanding, and only an overview is "
23363 "given here."
23364 msgstr ""
23365
23366 #. type: textblock
23367 #: ../resize/virt-resize.pod:200
23368 msgid ""
23369 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
23370 "filesystems).  The user has to shrink content before passing the disk image "
23371 "to virt-resize, and virt-resize will check that the content has been shrunk "
23372 "properly."
23373 msgstr ""
23374
23375 #. type: textblock
23376 #: ../resize/virt-resize.pod:205
23377 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
23378 msgstr ""
23379
23380 #. type: textblock
23381 #: ../resize/virt-resize.pod:207
23382 msgid ""
23383 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
23384 "steps 3 and 4 above to allocate a new disk image."
23385 msgstr ""
23386
23387 #. type: textblock
23388 #: ../resize/virt-resize.pod:210
23389 msgid "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
23390 msgstr ""
23391
23392 #. type: =head2
23393 #: ../resize/virt-resize.pod:213
23394 msgid "IGNORING OR DELETING PARTITIONS"
23395 msgstr ""
23396
23397 #. type: textblock
23398 #: ../resize/virt-resize.pod:215
23399 msgid ""
23400 "virt-resize also gives a convenient way to ignore or delete partitions when "
23401 "copying from the input disk to the output disk.  Ignoring a partition speeds "
23402 "up the copy where you don't care about the existing contents of a "
23403 "partition.  Deleting a partition removes it completely, but note that it "
23404 "also renumbers any partitions after the one which is deleted, which can "
23405 "leave some guests unbootable."
23406 msgstr ""
23407
23408 #. type: =head2
23409 #: ../resize/virt-resize.pod:222
23410 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
23411 msgstr ""
23412
23413 #. type: textblock
23414 #: ../resize/virt-resize.pod:224
23415 msgid ""
23416 "If the input disk is in qcow2 format, then you may prefer that the output is "
23417 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
23418 "the fly.  The output format is simply determined by the format of the empty "
23419 "output container that you provide.  Thus to create qcow2 output, use:"
23420 msgstr ""
23421
23422 #. type: verbatim
23423 #: ../resize/virt-resize.pod:230
23424 #, no-wrap
23425 msgid ""
23426 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
23427 "\n"
23428 msgstr ""
23429
23430 #. type: textblock
23431 #: ../resize/virt-resize.pod:232
23432 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
23433 msgstr ""
23434
23435 #. type: textblock
23436 #: ../resize/virt-resize.pod:234
23437 msgid "Similarly, to get non-sparse raw output use:"
23438 msgstr ""
23439
23440 #. type: verbatim
23441 #: ../resize/virt-resize.pod:236
23442 #, no-wrap
23443 msgid ""
23444 " fallocate -l size outdisk\n"
23445 "\n"
23446 msgstr ""
23447
23448 #. type: textblock
23449 #: ../resize/virt-resize.pod:238
23450 msgid ""
23451 "(on older systems that don't have the L<fallocate(1)> command use C<dd "
23452 "if=/dev/zero of=outdisk bs=1M count=..>)"
23453 msgstr ""
23454
23455 #. type: =head2
23456 #: ../resize/virt-resize.pod:241
23457 msgid "LOGICAL PARTITIONS"
23458 msgstr ""
23459
23460 #. type: textblock
23461 #: ../resize/virt-resize.pod:243
23462 msgid ""
23463 "Logical partitions (a.k.a. C</dev/sda5+> on disks using DOS partition "
23464 "tables) cannot be resized."
23465 msgstr ""
23466
23467 #. type: textblock
23468 #: ../resize/virt-resize.pod:246
23469 msgid ""
23470 "To understand what is going on, firstly one of the four partitions "
23471 "C</dev/sda1-4> will have MBR partition type C<05> or C<0f>.  This is called "
23472 "the B<extended partition>.  Use L<virt-filesystems(1)> to see the MBR "
23473 "partition type."
23474 msgstr ""
23475
23476 #. type: textblock
23477 #: ../resize/virt-resize.pod:251
23478 msgid "Logical partitions live inside the extended partition."
23479 msgstr ""
23480
23481 #. type: textblock
23482 #: ../resize/virt-resize.pod:253
23483 msgid ""
23484 "The extended partition can be expanded, but not shrunk (unless you force it, "
23485 "which is not advisable).  When the extended partition is copied across, all "
23486 "the logical partitions contained inside are copied over implicitly.  "
23487 "Virt-resize does not look inside the extended partition, so it copies the "
23488 "logical partitions blindly."
23489 msgstr ""
23490
23491 #. type: textblock
23492 #: ../resize/virt-resize.pod:259
23493 msgid ""
23494 "You cannot specify a logical partition (C</dev/sda5+>) at all on the command "
23495 "line.  Doing so will give an error."
23496 msgstr ""
23497
23498 #. type: textblock
23499 #: ../resize/virt-resize.pod:268 ../sparsify/virt-sparsify.pod:105
23500 msgid "Display help."
23501 msgstr ""
23502
23503 #. type: =item
23504 #: ../resize/virt-resize.pod:270
23505 msgid "B<--align-first auto>"
23506 msgstr ""
23507
23508 #. type: =item
23509 #: ../resize/virt-resize.pod:272
23510 msgid "B<--align-first never>"
23511 msgstr ""
23512
23513 #. type: =item
23514 #: ../resize/virt-resize.pod:274
23515 msgid "B<--align-first always>"
23516 msgstr ""
23517
23518 #. type: textblock
23519 #: ../resize/virt-resize.pod:276
23520 msgid ""
23521 "Align the first partition for improved performance (see also the "
23522 "I<--alignment> option)."
23523 msgstr ""
23524
23525 #. type: textblock
23526 #: ../resize/virt-resize.pod:279
23527 msgid ""
23528 "The default is I<--align-first auto> which only aligns the first partition "
23529 "if it is safe to do so.  That is, only when we know how to fix the "
23530 "bootloader automatically, and at the moment that can only be done for "
23531 "Windows guests."
23532 msgstr ""
23533
23534 #. type: textblock
23535 #: ../resize/virt-resize.pod:284
23536 msgid ""
23537 "I<--align-first never> means we never move the first partition.  This is the "
23538 "safest option.  Try this if the guest does not boot after resizing."
23539 msgstr ""
23540
23541 #. type: textblock
23542 #: ../resize/virt-resize.pod:288
23543 msgid ""
23544 "I<--align-first always> means we always align the first partition (if it "
23545 "needs to be aligned).  For some guests this will break the bootloader, "
23546 "making the guest unbootable."
23547 msgstr ""
23548
23549 #. type: =item
23550 #: ../resize/virt-resize.pod:292
23551 msgid "B<--alignment N>"
23552 msgstr ""
23553
23554 #. type: textblock
23555 #: ../resize/virt-resize.pod:294
23556 msgid ""
23557 "Set the alignment of partitions to C<N> sectors.  The default in virt-resize "
23558 "E<lt> 1.13.19 was 64 sectors, and after that is 128 sectors."
23559 msgstr ""
23560
23561 #. type: textblock
23562 #: ../resize/virt-resize.pod:298
23563 msgid ""
23564 "Assuming 512 byte sector size inside the guest, here are some suitable "
23565 "values for this:"
23566 msgstr ""
23567
23568 #. type: =item
23569 #: ../resize/virt-resize.pod:303
23570 msgid "I<--alignment 1> (512 bytes)"
23571 msgstr ""
23572
23573 #. type: textblock
23574 #: ../resize/virt-resize.pod:305
23575 msgid ""
23576 "The partitions would be packed together as closely as possible, but would be "
23577 "completely unaligned.  In some cases this can cause very poor performance.  "
23578 "See L<virt-alignment-scan(1)> for further details."
23579 msgstr ""
23580
23581 #. type: =item
23582 #: ../resize/virt-resize.pod:309
23583 msgid "I<--alignment 8> (4K)"
23584 msgstr ""
23585
23586 #. type: textblock
23587 #: ../resize/virt-resize.pod:311
23588 msgid ""
23589 "This would be the minimum acceptable alignment for reasonable performance on "
23590 "modern hosts."
23591 msgstr ""
23592
23593 #. type: =item
23594 #: ../resize/virt-resize.pod:314
23595 msgid "I<--alignment 128> (64K)"
23596 msgstr ""
23597
23598 #. type: textblock
23599 #: ../resize/virt-resize.pod:316
23600 msgid ""
23601 "This alignment provides good performance when the host is using high end "
23602 "network storage."
23603 msgstr ""
23604
23605 #. type: =item
23606 #: ../resize/virt-resize.pod:319
23607 msgid "I<--alignment 2048> (1M)"
23608 msgstr ""
23609
23610 #. type: textblock
23611 #: ../resize/virt-resize.pod:321
23612 msgid ""
23613 "This is the standard alignment used by all newly installed guests since "
23614 "around 2008."
23615 msgstr ""
23616
23617 #. type: =item
23618 #: ../resize/virt-resize.pod:326
23619 msgid "B<-d>"
23620 msgstr ""
23621
23622 #. type: =item
23623 #: ../resize/virt-resize.pod:328 ../tools/virt-make-fs.pl:177 ../tools/virt-win-reg.pl:120
23624 msgid "B<--debug>"
23625 msgstr ""
23626
23627 #. type: textblock
23628 #: ../resize/virt-resize.pod:330 ../tools/virt-win-reg.pl:122
23629 msgid "Enable debugging messages."
23630 msgstr ""
23631
23632 #. type: =item
23633 #: ../resize/virt-resize.pod:332
23634 msgid "B<--delete part>"
23635 msgstr ""
23636
23637 #. type: textblock
23638 #: ../resize/virt-resize.pod:334
23639 msgid ""
23640 "Delete the named partition.  It would be more accurate to describe this as "
23641 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
23642 "the original disk image is left intact."
23643 msgstr ""
23644
23645 #. type: textblock
23646 #: ../resize/virt-resize.pod:338
23647 msgid ""
23648 "Note that when you delete a partition, then anything contained in the "
23649 "partition is also deleted.  Furthermore, this causes any partitions that "
23650 "come after to be I<renumbered>, which can easily make your guest unbootable."
23651 msgstr ""
23652
23653 #. type: textblock
23654 #: ../resize/virt-resize.pod:343 ../resize/virt-resize.pod:404 ../resize/virt-resize.pod:531 ../sparsify/virt-sparsify.pod:144
23655 msgid "You can give this option multiple times."
23656 msgstr ""
23657
23658 #. type: =item
23659 #: ../resize/virt-resize.pod:345
23660 msgid "B<--expand part>"
23661 msgstr ""
23662
23663 #. type: textblock
23664 #: ../resize/virt-resize.pod:347
23665 msgid ""
23666 "Expand the named partition so it uses up all extra space (space left over "
23667 "after any other resize changes that you request have been done)."
23668 msgstr ""
23669
23670 #. type: textblock
23671 #: ../resize/virt-resize.pod:350
23672 msgid ""
23673 "If virt-resize knows how, it will expand the direct content of the "
23674 "partition.  For example, if the partition is an LVM PV, it will expand the "
23675 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
23676 "content it doesn't know about alone."
23677 msgstr ""
23678
23679 #. type: textblock
23680 #: ../resize/virt-resize.pod:355
23681 msgid "Currently virt-resize can resize:"
23682 msgstr ""
23683
23684 #. type: textblock
23685 #: ../resize/virt-resize.pod:361
23686 msgid "ext2, ext3 and ext4 filesystems."
23687 msgstr ""
23688
23689 #. type: textblock
23690 #: ../resize/virt-resize.pod:365
23691 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
23692 msgstr ""
23693
23694 #. type: textblock
23695 #: ../resize/virt-resize.pod:367
23696 msgid ""
23697 "The filesystem must have been shut down consistently last time it was used.  "
23698 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
23699 "consistency check, so at the first boot after resizing Windows will check "
23700 "the disk."
23701 msgstr ""
23702
23703 #. type: textblock
23704 #: ../resize/virt-resize.pod:374
23705 msgid ""
23706 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
23707 "inside the PV, but see the I<--LV-expand> option.  The user could also "
23708 "resize LVs as desired after boot."
23709 msgstr ""
23710
23711 #. type: textblock
23712 #: ../resize/virt-resize.pod:380
23713 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
23714 msgstr ""
23715
23716 #. type: textblock
23717 #: ../resize/virt-resize.pod:384 ../resize/virt-resize.pod:559
23718 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
23719 msgstr ""
23720
23721 #. type: =item
23722 #: ../resize/virt-resize.pod:386 ../sparsify/virt-sparsify.pod:124 ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92 ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
23723 msgid "B<--format> raw"
23724 msgstr ""
23725
23726 #. type: textblock
23727 #: ../resize/virt-resize.pod:388 ../sparsify/virt-sparsify.pod:128
23728 msgid ""
23729 "Specify the format of the input disk image.  If this flag is not given then "
23730 "it is auto-detected from the image itself."
23731 msgstr ""
23732
23733 #. type: textblock
23734 #: ../resize/virt-resize.pod:394
23735 msgid ""
23736 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
23737 "AND NON-SPARSE RAW FORMATS>."
23738 msgstr ""
23739
23740 #. type: =item
23741 #: ../resize/virt-resize.pod:397
23742 msgid "B<--ignore part>"
23743 msgstr ""
23744
23745 #. type: textblock
23746 #: ../resize/virt-resize.pod:399
23747 msgid ""
23748 "Ignore the named partition.  Effectively this means the partition is "
23749 "allocated on the destination disk, but the content is not copied across from "
23750 "the source disk.  The content of the partition will be blank (all zero "
23751 "bytes)."
23752 msgstr ""
23753
23754 #. type: =item
23755 #: ../resize/virt-resize.pod:406
23756 msgid "B<--LV-expand logvol>"
23757 msgstr ""
23758
23759 #. type: textblock
23760 #: ../resize/virt-resize.pod:408
23761 msgid ""
23762 "This takes the logical volume and, as a final step, expands it to fill all "
23763 "the space available in its volume group.  A typical usage, assuming a Linux "
23764 "guest with a single PV C</dev/sda2> and a root device called "
23765 "C</dev/vg_guest/lv_root> would be:"
23766 msgstr ""
23767
23768 #. type: verbatim
23769 #: ../resize/virt-resize.pod:413
23770 #, no-wrap
23771 msgid ""
23772 " virt-resize indisk outdisk \\\n"
23773 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
23774 "\n"
23775 msgstr ""
23776
23777 #. type: textblock
23778 #: ../resize/virt-resize.pod:416
23779 msgid ""
23780 "This would first expand the partition (and PV), and then expand the root "
23781 "device to fill the extra space in the PV."
23782 msgstr ""
23783
23784 #. type: textblock
23785 #: ../resize/virt-resize.pod:419
23786 msgid ""
23787 "The contents of the LV are also resized if virt-resize knows how to do "
23788 "that.  You can stop virt-resize from trying to expand the content by using "
23789 "the option I<--no-expand-content>."
23790 msgstr ""
23791
23792 #. type: textblock
23793 #: ../resize/virt-resize.pod:423
23794 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
23795 msgstr ""
23796
23797 #. type: textblock
23798 #: ../resize/virt-resize.pod:425
23799 msgid ""
23800 "You can give this option multiple times, I<but> it doesn't make sense to do "
23801 "this unless the logical volumes you specify are all in different volume "
23802 "groups."
23803 msgstr ""
23804
23805 #. type: =item
23806 #: ../resize/virt-resize.pod:429 ../sparsify/virt-sparsify.pod:146
23807 msgid "B<--machine-readable>"
23808 msgstr ""
23809
23810 #. type: textblock
23811 #: ../resize/virt-resize.pod:431 ../sparsify/virt-sparsify.pod:148
23812 msgid ""
23813 "This option is used to make the output more machine friendly when being "
23814 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
23815 msgstr ""
23816
23817 #. type: =item
23818 #: ../resize/virt-resize.pod:437
23819 msgid "B<--dryrun>"
23820 msgstr ""
23821
23822 #. type: textblock
23823 #: ../resize/virt-resize.pod:439
23824 msgid "Print a summary of what would be done, but don't do anything."
23825 msgstr ""
23826
23827 #. type: =item
23828 #: ../resize/virt-resize.pod:441
23829 msgid "B<--no-copy-boot-loader>"
23830 msgstr ""
23831
23832 #. type: textblock
23833 #: ../resize/virt-resize.pod:443
23834 msgid ""
23835 "By default, virt-resize copies over some sectors at the start of the disk "
23836 "(up to the beginning of the first partition).  Commonly these sectors "
23837 "contain the Master Boot Record (MBR) and the boot loader, and are required "
23838 "in order for the guest to boot correctly."
23839 msgstr ""
23840
23841 #. type: textblock
23842 #: ../resize/virt-resize.pod:448
23843 msgid ""
23844 "If you specify this flag, then this initial copy is not done.  You may need "
23845 "to reinstall the boot loader in this case."
23846 msgstr ""
23847
23848 #. type: =item
23849 #: ../resize/virt-resize.pod:451
23850 msgid "B<--no-extra-partition>"
23851 msgstr ""
23852
23853 #. type: textblock
23854 #: ../resize/virt-resize.pod:453
23855 msgid ""
23856 "By default, virt-resize creates an extra partition if there is any extra, "
23857 "unused space after all resizing has happened.  Use this option to prevent "
23858 "the extra partition from being created.  If you do this then the extra space "
23859 "will be inaccessible until you run fdisk, parted, or some other partitioning "
23860 "tool in the guest."
23861 msgstr ""
23862
23863 #. type: textblock
23864 #: ../resize/virt-resize.pod:459
23865 msgid ""
23866 "Note that if the surplus space is smaller than 10 MB, no extra partition "
23867 "will be created."
23868 msgstr ""
23869
23870 #. type: =item
23871 #: ../resize/virt-resize.pod:462
23872 msgid "B<--no-expand-content>"
23873 msgstr ""
23874
23875 #. type: textblock
23876 #: ../resize/virt-resize.pod:464
23877 msgid ""
23878 "By default, virt-resize will try to expand the direct contents of "
23879 "partitions, if it knows how (see I<--expand> option above)."
23880 msgstr ""
23881
23882 #. type: textblock
23883 #: ../resize/virt-resize.pod:467
23884 msgid ""
23885 "If you give the I<--no-expand-content> option then virt-resize will not "
23886 "attempt this."
23887 msgstr ""
23888
23889 #. type: =item
23890 #: ../resize/virt-resize.pod:470
23891 msgid "B<--ntfsresize-force>"
23892 msgstr ""
23893
23894 #. type: textblock
23895 #: ../resize/virt-resize.pod:472
23896 msgid ""
23897 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
23898 "the NTFS disk is marked as needing a consistency check.  You have to use "
23899 "this option if you want to resize a Windows guest multiple times without "
23900 "booting into Windows between each resize."
23901 msgstr ""
23902
23903 #. type: =item
23904 #: ../resize/virt-resize.pod:478
23905 msgid "B<--output-format> raw"
23906 msgstr ""
23907
23908 #. type: textblock
23909 #: ../resize/virt-resize.pod:480
23910 msgid ""
23911 "Specify the format of the output disk image.  If this flag is not given then "
23912 "it is auto-detected from the image itself."
23913 msgstr ""
23914
23915 #. type: textblock
23916 #: ../resize/virt-resize.pod:486
23917 msgid ""
23918 "Note that this option I<does not create> the output format.  This option "
23919 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
23920 "need to create the output disk with the right format.  See L</QCOW2 AND "
23921 "NON-SPARSE RAW FORMATS>."
23922 msgstr ""
23923
23924 #. type: textblock
23925 #: ../resize/virt-resize.pod:495
23926 msgid "Don't print the summary."
23927 msgstr ""
23928
23929 #. type: =item
23930 #: ../resize/virt-resize.pod:497
23931 msgid "B<--resize part=size>"
23932 msgstr ""
23933
23934 #. type: textblock
23935 #: ../resize/virt-resize.pod:499
23936 msgid ""
23937 "Resize the named partition (expanding or shrinking it) so that it has the "
23938 "given size."
23939 msgstr ""
23940
23941 #. type: textblock
23942 #: ../resize/virt-resize.pod:502
23943 msgid ""
23944 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
23945 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
23946 "size; or as a relative number or percentage.  For example:"
23947 msgstr ""
23948
23949 #. type: verbatim
23950 #: ../resize/virt-resize.pod:508
23951 #, no-wrap
23952 msgid ""
23953 " --resize /dev/sda2=10G\n"
23954 "\n"
23955 msgstr ""
23956
23957 #. type: verbatim
23958 #: ../resize/virt-resize.pod:510
23959 #, no-wrap
23960 msgid ""
23961 " --resize /dev/sda4=90%\n"
23962 "\n"
23963 msgstr ""
23964
23965 #. type: verbatim
23966 #: ../resize/virt-resize.pod:512
23967 #, no-wrap
23968 msgid ""
23969 " --resize /dev/sda2=+1G\n"
23970 "\n"
23971 msgstr ""
23972
23973 #. type: verbatim
23974 #: ../resize/virt-resize.pod:514
23975 #, no-wrap
23976 msgid ""
23977 " --resize /dev/sda2=-200M\n"
23978 "\n"
23979 msgstr ""
23980
23981 #. type: verbatim
23982 #: ../resize/virt-resize.pod:516
23983 #, no-wrap
23984 msgid ""
23985 " --resize /dev/sda1=+128K\n"
23986 "\n"
23987 msgstr ""
23988
23989 #. type: verbatim
23990 #: ../resize/virt-resize.pod:518
23991 #, no-wrap
23992 msgid ""
23993 " --resize /dev/sda1=+10%\n"
23994 "\n"
23995 msgstr ""
23996
23997 #. type: verbatim
23998 #: ../resize/virt-resize.pod:520
23999 #, no-wrap
24000 msgid ""
24001 " --resize /dev/sda1=-10%\n"
24002 "\n"
24003 msgstr ""
24004
24005 #. type: textblock
24006 #: ../resize/virt-resize.pod:522
24007 msgid ""
24008 "You can increase the size of any partition.  Virt-resize will expand the "
24009 "direct content of the partition if it knows how (see I<--expand> below)."
24010 msgstr ""
24011
24012 #. type: textblock
24013 #: ../resize/virt-resize.pod:526
24014 msgid ""
24015 "You can only I<decrease> the size of partitions that contain filesystems or "
24016 "PVs which have already been shrunk.  Virt-resize will check this has been "
24017 "done before proceeding, or else will print an error (see also "
24018 "I<--resize-force>)."
24019 msgstr ""
24020
24021 #. type: =item
24022 #: ../resize/virt-resize.pod:533
24023 msgid "B<--resize-force part=size>"
24024 msgstr ""
24025
24026 #. type: textblock
24027 #: ../resize/virt-resize.pod:535
24028 msgid ""
24029 "This is the same as I<--resize> except that it will let you decrease the "
24030 "size of any partition.  Generally this means you will lose any data which "
24031 "was at the end of the partition you shrink, but you may not care about that "
24032 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
24033 "as a swap partition)."
24034 msgstr ""
24035
24036 #. type: textblock
24037 #: ../resize/virt-resize.pod:541
24038 msgid "See also the I<--ignore> option."
24039 msgstr ""
24040
24041 #. type: =item
24042 #: ../resize/virt-resize.pod:543
24043 msgid "B<--shrink part>"
24044 msgstr ""
24045
24046 #. type: textblock
24047 #: ../resize/virt-resize.pod:545
24048 msgid ""
24049 "Shrink the named partition until the overall disk image fits in the "
24050 "destination.  The named partition B<must> contain a filesystem or PV which "
24051 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
24052 "online tools).  Virt-resize will check this and give an error if it has not "
24053 "been done."
24054 msgstr ""
24055
24056 #. type: textblock
24057 #: ../resize/virt-resize.pod:551
24058 msgid ""
24059 "The amount by which the overall disk must be shrunk (after carrying out all "
24060 "other operations requested by the user) is called the \"deficit\".  For "
24061 "example, a straight copy (assume no other operations)  from a 5GB disk image "
24062 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
24063 "would give an error unless the user specified a partition to shrink and that "
24064 "partition had more than a gigabyte of free space."
24065 msgstr ""
24066
24067 #. type: =head1
24068 #: ../resize/virt-resize.pod:569 ../sparsify/virt-sparsify.pod:176
24069 msgid "MACHINE READABLE OUTPUT"
24070 msgstr ""
24071
24072 #. type: textblock
24073 #: ../resize/virt-resize.pod:571
24074 msgid ""
24075 "The I<--machine-readable> option can be used to make the output more machine "
24076 "friendly, which is useful when calling virt-resize from other programs, GUIs "
24077 "etc."
24078 msgstr ""
24079
24080 #. type: textblock
24081 #: ../resize/virt-resize.pod:575 ../sparsify/virt-sparsify.pod:182
24082 msgid "There are two ways to use this option."
24083 msgstr ""
24084
24085 #. type: textblock
24086 #: ../resize/virt-resize.pod:577
24087 msgid ""
24088 "Firstly use the option on its own to query the capabilities of the "
24089 "virt-resize binary.  Typical output looks like this:"
24090 msgstr ""
24091
24092 #. type: verbatim
24093 #: ../resize/virt-resize.pod:580
24094 #, no-wrap
24095 msgid ""
24096 " $ virt-resize --machine-readable\n"
24097 " virt-resize\n"
24098 " ntfsresize-force\n"
24099 " 32bitok\n"
24100 " ntfs\n"
24101 " btrfs\n"
24102 "\n"
24103 msgstr ""
24104
24105 #. type: textblock
24106 #: ../resize/virt-resize.pod:587 ../sparsify/virt-sparsify.pod:192
24107 msgid ""
24108 "A list of features is printed, one per line, and the program exits with "
24109 "status 0."
24110 msgstr ""
24111
24112 #. type: textblock
24113 #: ../resize/virt-resize.pod:590 ../sparsify/virt-sparsify.pod:195
24114 msgid ""
24115 "Secondly use the option in conjunction with other options to make the "
24116 "regular program output more machine friendly."
24117 msgstr ""
24118
24119 #. type: textblock
24120 #: ../resize/virt-resize.pod:593 ../sparsify/virt-sparsify.pod:198
24121 msgid "At the moment this means:"
24122 msgstr ""
24123
24124 #. type: textblock
24125 #: ../resize/virt-resize.pod:599 ../sparsify/virt-sparsify.pod:204
24126 msgid ""
24127 "Progress bar messages can be parsed from stdout by looking for this regular "
24128 "expression:"
24129 msgstr ""
24130
24131 #. type: verbatim
24132 #: ../resize/virt-resize.pod:602 ../sparsify/virt-sparsify.pod:207
24133 #, no-wrap
24134 msgid ""
24135 " ^[0-9]+/[0-9]+$\n"
24136 "\n"
24137 msgstr ""
24138
24139 #. type: textblock
24140 #: ../resize/virt-resize.pod:606 ../sparsify/virt-sparsify.pod:211
24141 msgid ""
24142 "The calling program should treat messages sent to stdout (except for "
24143 "progress bar messages) as status messages.  They can be logged and/or "
24144 "displayed to the user."
24145 msgstr ""
24146
24147 #. type: textblock
24148 #: ../resize/virt-resize.pod:612
24149 msgid ""
24150 "The calling program should treat messages sent to stderr as error messages.  "
24151 "In addition, virt-resize exits with a non-zero status code if there was a "
24152 "fatal error."
24153 msgstr ""
24154
24155 #. type: textblock
24156 #: ../resize/virt-resize.pod:618
24157 msgid ""
24158 "Versions of the program prior to 1.13.9 did not support the "
24159 "I<--machine-readable> option and will return an error."
24160 msgstr ""
24161
24162 #. type: =head2
24163 #: ../resize/virt-resize.pod:623
24164 msgid "\"Partition 1 does not end on cylinder boundary.\""
24165 msgstr ""
24166
24167 #. type: textblock
24168 #: ../resize/virt-resize.pod:625
24169 msgid ""
24170 "Virt-resize aligns partitions to multiples of 128 sectors (see the "
24171 "I<--alignment> parameter).  Usually this means the partitions will not be "
24172 "aligned to the ancient CHS geometry.  However CHS geometry is meaningless "
24173 "for disks manufactured since the early 1990s, and doubly so for virtual hard "
24174 "drives.  Alignment of partitions to cylinders is not required by any modern "
24175 "operating system."
24176 msgstr ""
24177
24178 #. type: =head2
24179 #: ../resize/virt-resize.pod:632
24180 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
24181 msgstr ""
24182
24183 #. type: textblock
24184 #: ../resize/virt-resize.pod:634
24185 msgid ""
24186 "In Windows Vista and later versions, Microsoft switched to using a separate "
24187 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
24188 "and C</dev/sda2> is the main (C:) drive.  Resizing the first (boot) "
24189 "partition causes the bootloader to fail with C<0xC0000225> error.  Resizing "
24190 "the second partition (ie. C: drive)  should work."
24191 msgstr ""
24192
24193 #. type: textblock
24194 #: ../resize/virt-resize.pod:641
24195 msgid ""
24196 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
24197 "NTFS partitions have been expanded.  This is just a safety check and (unless "
24198 "it find errors) is nothing to worry about."
24199 msgstr ""
24200
24201 #. type: =head2
24202 #: ../resize/virt-resize.pod:645
24203 msgid "GUEST BOOT STUCK AT \"GRUB\""
24204 msgstr ""
24205
24206 #. type: textblock
24207 #: ../resize/virt-resize.pod:647
24208 msgid ""
24209 "If a Linux guest does not boot after resizing, and the boot is stuck after "
24210 "printing C<GRUB> on the console, try reinstalling grub."
24211 msgstr ""
24212
24213 #. type: verbatim
24214 #: ../resize/virt-resize.pod:650
24215 #, no-wrap
24216 msgid ""
24217 " guestfish -i -a newdisk\n"
24218 " ><fs> cat /boot/grub/device.map\n"
24219 " # check the contents of this file are sensible or\n"
24220 " # edit the file if necessary\n"
24221 " ><fs> grub-install / /dev/vda\n"
24222 " ><fs> exit\n"
24223 "\n"
24224 msgstr ""
24225
24226 #. type: textblock
24227 #: ../resize/virt-resize.pod:657
24228 msgid ""
24229 "For more flexible guest reconfiguration, including if you need to specify "
24230 "other parameters to grub-install, use L<virt-rescue(1)>."
24231 msgstr ""
24232
24233 #. type: =head1
24234 #: ../resize/virt-resize.pod:660
24235 msgid "ALTERNATIVE TOOLS"
24236 msgstr ""
24237
24238 #. type: textblock
24239 #: ../resize/virt-resize.pod:662
24240 msgid ""
24241 "There are several proprietary tools for resizing partitions.  We won't "
24242 "mention any here."
24243 msgstr ""
24244
24245 #. type: textblock
24246 #: ../resize/virt-resize.pod:665
24247 msgid ""
24248 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
24249 "operations on disk images.  They can resize and move partitions, but I don't "
24250 "think they can do anything with the contents, and they certainly don't "
24251 "understand LVM."
24252 msgstr ""
24253
24254 #. type: textblock
24255 #: ../resize/virt-resize.pod:670
24256 msgid ""
24257 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
24258 "but at a much lower level.  You will probably end up hand-calculating sector "
24259 "offsets, which is something that virt-resize was designed to avoid.  If you "
24260 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
24261 "I<--debug> flag."
24262 msgstr ""
24263
24264 #. type: textblock
24265 #: ../resize/virt-resize.pod:690
24266 msgid ""
24267 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, "
24268 "L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, "
24269 "L<ntfsresize(8)>, L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, "
24270 "L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, "
24271 "L<virt-sparsify(1)>, L<virt-alignment-scan(1)>, L<http://libguestfs.org/>."
24272 msgstr ""
24273
24274 #. type: textblock
24275 #: ../ruby/examples/guestfs-ruby.pod:5
24276 msgid "guestfs-ruby - How to use libguestfs from Ruby"
24277 msgstr ""
24278
24279 #. type: verbatim
24280 #: ../ruby/examples/guestfs-ruby.pod:9
24281 #, no-wrap
24282 msgid ""
24283 " require 'guestfs'\n"
24284 " g = Guestfs::Guestfs.new()\n"
24285 " g.add_drive_opts(\"disk.img\",\n"
24286 "                  :readonly => 1, :format => \"raw\")\n"
24287 " g.launch()\n"
24288 "\n"
24289 msgstr ""
24290
24291 #. type: textblock
24292 #: ../ruby/examples/guestfs-ruby.pod:17
24293 msgid ""
24294 "This manual page documents how to call libguestfs from the Ruby programming "
24295 "language.  This page just documents the differences from the C API and gives "
24296 "some examples.  If you are not familiar with using libguestfs, you also need "
24297 "to read L<guestfs(3)>."
24298 msgstr ""
24299
24300 #. type: textblock
24301 #: ../ruby/examples/guestfs-ruby.pod:24
24302 msgid ""
24303 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
24304 "This has a single parameter which is the error message (a string)."
24305 msgstr ""
24306
24307 #. type: textblock
24308 #: ../ruby/examples/guestfs-ruby.pod:38
24309 msgid ""
24310 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
24311 "L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
24312 "L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
24313 msgstr ""
24314
24315 #. type: textblock
24316 #: ../sparsify/virt-sparsify.pod:5
24317 msgid "virt-sparsify - Make a virtual machine disk sparse"
24318 msgstr ""
24319
24320 #. type: verbatim
24321 #: ../sparsify/virt-sparsify.pod:9
24322 #, no-wrap
24323 msgid ""
24324 " virt-sparsify [--options] indisk outdisk\n"
24325 "\n"
24326 msgstr ""
24327
24328 #. type: textblock
24329 #: ../sparsify/virt-sparsify.pod:13
24330 msgid ""
24331 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
24332 "image) sparse a.k.a. thin-provisioned.  This means that free space within "
24333 "the disk image can be converted back to free space on the host."
24334 msgstr ""
24335
24336 #. type: textblock
24337 #: ../sparsify/virt-sparsify.pod:18
24338 msgid ""
24339 "Virt-sparsify can locate and sparsify free space in most filesystems "
24340 "(eg. ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
24341 msgstr ""
24342
24343 #. type: textblock
24344 #: ../sparsify/virt-sparsify.pod:21
24345 msgid ""
24346 "Virt-sparsify can also convert between some disk formats, for example "
24347 "converting a raw disk image to a thin-provisioned qcow2 image."
24348 msgstr ""
24349
24350 #. type: textblock
24351 #: ../sparsify/virt-sparsify.pod:24
24352 msgid ""
24353 "Virt-sparsify can operate on any disk image, not just ones from virtual "
24354 "machines.  If a virtual machine has more than one attached disk, you must "
24355 "sparsify each one separately."
24356 msgstr ""
24357
24358 #. type: =head2
24359 #: ../sparsify/virt-sparsify.pod:28
24360 msgid "IMPORTANT LIMITATIONS"
24361 msgstr ""
24362
24363 #. type: textblock
24364 #: ../sparsify/virt-sparsify.pod:34
24365 msgid ""
24366 "Virt-sparsify does not do in-place modifications.  It copies from a source "
24367 "image to a destination image, leaving the source unchanged.  I<Check that "
24368 "the sparsification was successful before deleting the source image>."
24369 msgstr ""
24370
24371 #. type: textblock
24372 #: ../sparsify/virt-sparsify.pod:41
24373 msgid "The virtual machine I<must be shut down> before using this tool."
24374 msgstr ""
24375
24376 #. type: textblock
24377 #: ../sparsify/virt-sparsify.pod:45
24378 msgid ""
24379 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
24380 "(1 temporary copy + 1 destination image).  This is in the worst case and "
24381 "usually much less space is required."
24382 msgstr ""
24383
24384 #. type: textblock
24385 #: ../sparsify/virt-sparsify.pod:51
24386 msgid "Virt-sparsify cannot resize disk images.  To do that, use L<virt-resize(1)>."
24387 msgstr ""
24388
24389 #. type: textblock
24390 #: ../sparsify/virt-sparsify.pod:56
24391 msgid "Virt-sparsify cannot handle encrypted disks."
24392 msgstr ""
24393
24394 #. type: textblock
24395 #: ../sparsify/virt-sparsify.pod:60
24396 msgid ""
24397 "Virt-sparsify cannot yet sparsify the space between partitions.  Note that "
24398 "this space is often used for critical items like bootloaders so it's not "
24399 "really unused."
24400 msgstr ""
24401
24402 #. type: textblock
24403 #: ../sparsify/virt-sparsify.pod:66
24404 msgid ""
24405 "Virt-sparsify does not yet know how to sparsify swapspace.  It is not safe "
24406 "to do this unless we can be sure there is no hibernation data, so at the "
24407 "moment swap partitions are ignored."
24408 msgstr ""
24409
24410 #. type: textblock
24411 #: ../sparsify/virt-sparsify.pod:72
24412 msgid ""
24413 "You may also want to read the manual pages for the associated tools "
24414 "L<virt-filesystems(1)> and L<virt-df(1)> before starting."
24415 msgstr ""
24416
24417 #. type: textblock
24418 #: ../sparsify/virt-sparsify.pod:77
24419 msgid "Typical usage is:"
24420 msgstr ""
24421
24422 #. type: verbatim
24423 #: ../sparsify/virt-sparsify.pod:79
24424 #, no-wrap
24425 msgid ""
24426 " virt-sparsify indisk outdisk\n"
24427 "\n"
24428 msgstr ""
24429
24430 #. type: textblock
24431 #: ../sparsify/virt-sparsify.pod:81
24432 msgid ""
24433 "which copies C<indisk> to C<outdisk>, making the output sparse.  C<outdisk> "
24434 "is created, or overwritten if it already exists.  The format of the input "
24435 "disk is detected (eg. qcow2) and the same format is used for the output "
24436 "disk."
24437 msgstr ""
24438
24439 #. type: textblock
24440 #: ../sparsify/virt-sparsify.pod:86
24441 msgid "To convert between formats, use the I<--convert> option:"
24442 msgstr ""
24443
24444 #. type: verbatim
24445 #: ../sparsify/virt-sparsify.pod:88
24446 #, no-wrap
24447 msgid ""
24448 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
24449 "\n"
24450 msgstr ""
24451
24452 #. type: textblock
24453 #: ../sparsify/virt-sparsify.pod:90
24454 msgid ""
24455 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
24456 "can find within the source disk image.  You can get it to ignore (don't zero "
24457 "free space on) certain filesystems by doing:"
24458 msgstr ""
24459
24460 #. type: verbatim
24461 #: ../sparsify/virt-sparsify.pod:94
24462 #, no-wrap
24463 msgid ""
24464 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
24465 "\n"
24466 msgstr ""
24467
24468 #. type: textblock
24469 #: ../sparsify/virt-sparsify.pod:96
24470 msgid "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
24471 msgstr ""
24472
24473 #. type: =item
24474 #: ../sparsify/virt-sparsify.pod:107
24475 msgid "B<--convert> raw"
24476 msgstr ""
24477
24478 #. type: =item
24479 #: ../sparsify/virt-sparsify.pod:109
24480 msgid "B<--convert> qcow2"
24481 msgstr ""
24482
24483 #. type: =item
24484 #: ../sparsify/virt-sparsify.pod:111
24485 msgid "B<--convert> [other formats]"
24486 msgstr ""
24487
24488 #. type: textblock
24489 #: ../sparsify/virt-sparsify.pod:113
24490 msgid ""
24491 "Use C<output-format> as the format for the destination image.  If this is "
24492 "not specified, then the input format is used."
24493 msgstr ""
24494
24495 #. type: textblock
24496 #: ../sparsify/virt-sparsify.pod:116
24497 msgid "Supported and known-working output formats are: C<raw>, C<qcow2>, C<vdi>."
24498 msgstr ""
24499
24500 #. type: textblock
24501 #: ../sparsify/virt-sparsify.pod:118
24502 msgid ""
24503 "You can also use any format supported by the L<qemu-img(1)> program, "
24504 "eg. C<vmdk>, but support for other formats is reliant on qemu."
24505 msgstr ""
24506
24507 #. type: textblock
24508 #: ../sparsify/virt-sparsify.pod:121
24509 msgid ""
24510 "Specifying the I<--convert> option is usually a good idea, because then "
24511 "virt-sparsify doesn't need to try to guess the input format."
24512 msgstr ""
24513
24514 #. type: =item
24515 #: ../sparsify/virt-sparsify.pod:126
24516 msgid "B<--format> qcow2"
24517 msgstr ""
24518
24519 #. type: =item
24520 #: ../sparsify/virt-sparsify.pod:134
24521 msgid "B<--ignore> filesystem"
24522 msgstr ""
24523
24524 #. type: =item
24525 #: ../sparsify/virt-sparsify.pod:136
24526 msgid "B<--ignore> volgroup"
24527 msgstr ""
24528
24529 #. type: textblock
24530 #: ../sparsify/virt-sparsify.pod:138
24531 msgid ""
24532 "Ignore the named filesystem.  Free space on the filesystem will not be "
24533 "zeroed, but existing blocks of zeroes will still be sparsified."
24534 msgstr ""
24535
24536 #. type: textblock
24537 #: ../sparsify/virt-sparsify.pod:141
24538 msgid ""
24539 "In the second form, this ignores the named volume group.  Use the volume "
24540 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
24541 msgstr ""
24542
24543 #. type: textblock
24544 #: ../sparsify/virt-sparsify.pod:156
24545 msgid "This disables progress bars and other unnecessary output."
24546 msgstr ""
24547
24548 #. type: textblock
24549 #: ../sparsify/virt-sparsify.pod:178
24550 msgid ""
24551 "The I<--machine-readable> option can be used to make the output more machine "
24552 "friendly, which is useful when calling virt-sparsify from other programs, "
24553 "GUIs etc."
24554 msgstr ""
24555
24556 #. type: textblock
24557 #: ../sparsify/virt-sparsify.pod:184
24558 msgid ""
24559 "Firstly use the option on its own to query the capabilities of the "
24560 "virt-sparsify binary.  Typical output looks like this:"
24561 msgstr ""
24562
24563 #. type: verbatim
24564 #: ../sparsify/virt-sparsify.pod:187
24565 #, no-wrap
24566 msgid ""
24567 " $ virt-sparsify --machine-readable\n"
24568 " virt-sparsify\n"
24569 " ntfs\n"
24570 " btrfs\n"
24571 "\n"
24572 msgstr ""
24573
24574 #. type: textblock
24575 #: ../sparsify/virt-sparsify.pod:217
24576 msgid ""
24577 "The calling program should treat messages sent to stderr as error messages.  "
24578 "In addition, virt-sparsify exits with a non-zero status code if there was a "
24579 "fatal error."
24580 msgstr ""
24581
24582 #. type: textblock
24583 #: ../sparsify/virt-sparsify.pod:223
24584 msgid ""
24585 "All versions of virt-sparsify have supported the I<--machine-readable> "
24586 "option."
24587 msgstr ""
24588
24589 #. type: textblock
24590 #: ../sparsify/virt-sparsify.pod:237
24591 msgid ""
24592 "Location of the temporary directory used for the potentially large temporary "
24593 "overlay file."
24594 msgstr ""
24595
24596 #. type: textblock
24597 #: ../sparsify/virt-sparsify.pod:240
24598 msgid ""
24599 "You should ensure there is enough free space in the worst case for a full "
24600 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
24601 "to another directory that has enough space."
24602 msgstr ""
24603
24604 #. type: textblock
24605 #: ../sparsify/virt-sparsify.pod:244
24606 msgid "This defaults to C</tmp>."
24607 msgstr ""
24608
24609 #. type: textblock
24610 #: ../sparsify/virt-sparsify.pod:248
24611 msgid "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
24612 msgstr ""
24613
24614 #. type: textblock
24615 #: ../sparsify/virt-sparsify.pod:252
24616 msgid ""
24617 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
24618 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, "
24619 "L<qemu-img(1)>, L<http://libguestfs.org/>."
24620 msgstr ""
24621
24622 #. type: =head2
24623 #: ../src/guestfs-actions.pod:1
24624 msgid "guestfs_add_cdrom"
24625 msgstr ""
24626
24627 #. type: verbatim
24628 #: ../src/guestfs-actions.pod:3
24629 #, no-wrap
24630 msgid ""
24631 " int\n"
24632 " guestfs_add_cdrom (guestfs_h *g,\n"
24633 "                    const char *filename);\n"
24634 "\n"
24635 msgstr ""
24636
24637 #. type: textblock
24638 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:302 ../src/guestfs-actions.pod:323
24639 msgid ""
24640 "I<This function is deprecated.> In new code, use the "
24641 "L</guestfs_add_drive_opts> call instead."
24642 msgstr ""
24643
24644 #. type: textblock
24645 #: ../src/guestfs-actions.pod:24
24646 msgid ""
24647 "This call checks for the existence of C<filename>.  This stops you from "
24648 "specifying other types of drive which are supported by qemu such as C<nbd:> "
24649 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
24650 "instead."
24651 msgstr ""
24652
24653 #. type: textblock
24654 #: ../src/guestfs-actions.pod:31
24655 msgid ""
24656 "If you just want to add an ISO file (often you use this as an efficient way "
24657 "to transfer large files into the guest), then you should probably use "
24658 "C<guestfs_add_drive_ro> instead."
24659 msgstr ""
24660
24661 #. type: textblock
24662 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:187 ../src/guestfs-actions.pod:254 ../src/guestfs-actions.pod:291 ../src/guestfs-actions.pod:312 ../src/guestfs-actions.pod:333 ../src/guestfs-actions.pod:346 ../src/guestfs-actions.pod:360 ../src/guestfs-actions.pod:480 ../src/guestfs-actions.pod:500 ../src/guestfs-actions.pod:514 ../src/guestfs-actions.pod:559 ../src/guestfs-actions.pod:587 ../src/guestfs-actions.pod:605 ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:705 ../src/guestfs-actions.pod:719 ../src/guestfs-actions.pod:734 ../src/guestfs-actions.pod:833 ../src/guestfs-actions.pod:851 ../src/guestfs-actions.pod:865 ../src/guestfs-actions.pod:879 ../src/guestfs-actions.pod:916 ../src/guestfs-actions.pod:1099 ../src/guestfs-actions.pod:1119 ../src/guestfs-actions.pod:1137 ../src/guestfs-actions.pod:1227 ../src/guestfs-actions.pod:1286 ../src/guestfs-actions.pod:1332 ../src/guestfs-actions.pod:1372 ../src/guestfs-actions.pod:1425 ../src/guestfs-actions.pod:1478 ../src/guestfs-actions.pod:1536 ../src/guestfs-actions.pod:1590 ../src/guestfs-actions.pod:1609 ../src/guestfs-actions.pod:1623 ../src/guestfs-actions.pod:1651 ../src/guestfs-actions.pod:1721 ../src/guestfs-actions.pod:1752 ../src/guestfs-actions.pod:1777 ../src/guestfs-actions.pod:1819 ../src/guestfs-actions.pod:1932 ../src/guestfs-actions.pod:1959 ../src/guestfs-actions.pod:2174 ../src/guestfs-actions.pod:2196 ../src/guestfs-actions.pod:2283 ../src/guestfs-actions.pod:2791 ../src/guestfs-actions.pod:2935 ../src/guestfs-actions.pod:2996 ../src/guestfs-actions.pod:3031 ../src/guestfs-actions.pod:4088 ../src/guestfs-actions.pod:4103 ../src/guestfs-actions.pod:4128 ../src/guestfs-actions.pod:4317 ../src/guestfs-actions.pod:4331 ../src/guestfs-actions.pod:4344 ../src/guestfs-actions.pod:4358 ../src/guestfs-actions.pod:4373 ../src/guestfs-actions.pod:4409 ../src/guestfs-actions.pod:4481 ../src/guestfs-actions.pod:4501 ../src/guestfs-actions.pod:4518 ../src/guestfs-actions.pod:4538 ../src/guestfs-actions.pod:4558 ../src/guestfs-actions.pod:4593 ../src/guestfs-actions.pod:4612 ../src/guestfs-actions.pod:4631 ../src/guestfs-actions.pod:4666 ../src/guestfs-actions.pod:4678 ../src/guestfs-actions.pod:4711 ../src/guestfs-actions.pod:4727 ../src/guestfs-actions.pod:4740 ../src/guestfs-actions.pod:4755 ../src/guestfs-actions.pod:4772 ../src/guestfs-actions.pod:4865 ../src/guestfs-actions.pod:4885 ../src/guestfs-actions.pod:4898 ../src/guestfs-actions.pod:4949 ../src/guestfs-actions.pod:4967 ../src/guestfs-actions.pod:4985 ../src/guestfs-actions.pod:5001 ../src/guestfs-actions.pod:5015 ../src/guestfs-actions.pod:5029 ../src/guestfs-actions.pod:5046 ../src/guestfs-actions.pod:5061 ../src/guestfs-actions.pod:5088 ../src/guestfs-actions.pod:5151 ../src/guestfs-actions.pod:5224 ../src/guestfs-actions.pod:5255 ../src/guestfs-actions.pod:5274 ../src/guestfs-actions.pod:5293 ../src/guestfs-actions.pod:5305 ../src/guestfs-actions.pod:5322 ../src/guestfs-actions.pod:5335 ../src/guestfs-actions.pod:5350 ../src/guestfs-actions.pod:5365 ../src/guestfs-actions.pod:5397 ../src/guestfs-actions.pod:5423 ../src/guestfs-actions.pod:5462 ../src/guestfs-actions.pod:5482 ../src/guestfs-actions.pod:5496 ../src/guestfs-actions.pod:5513 ../src/guestfs-actions.pod:5562 ../src/guestfs-actions.pod:5615 ../src/guestfs-actions.pod:5662 ../src/guestfs-actions.pod:5705 ../src/guestfs-actions.pod:5733 ../src/guestfs-actions.pod:5750 ../src/guestfs-actions.pod:5768 ../src/guestfs-actions.pod:5905 ../src/guestfs-actions.pod:5962 ../src/guestfs-actions.pod:5984 ../src/guestfs-actions.pod:6002 ../src/guestfs-actions.pod:6054 ../src/guestfs-actions.pod:6120 ../src/guestfs-actions.pod:6137 ../src/guestfs-actions.pod:6150 ../src/guestfs-actions.pod:6164 ../src/guestfs-actions.pod:6453 ../src/guestfs-actions.pod:6472 ../src/guestfs-actions.pod:6491 ../src/guestfs-actions.pod:6505 ../src/guestfs-actions.pod:6517 ../src/guestfs-actions.pod:6531 ../src/guestfs-actions.pod:6543 ../src/guestfs-actions.pod:6557 ../src/guestfs-actions.pod:6573 ../src/guestfs-actions.pod:6591 ../src/guestfs-actions.pod:6610 ../src/guestfs-actions.pod:6629 ../src/guestfs-actions.pod:6659 ../src/guestfs-actions.pod:6677 ../src/guestfs-actions.pod:6700 ../src/guestfs-actions.pod:6718 ../src/guestfs-actions.pod:6737 ../src/guestfs-actions.pod:6758 ../src/guestfs-actions.pod:6777 ../src/guestfs-actions.pod:6794 ../src/guestfs-actions.pod:6813 ../src/guestfs-actions.pod:6841 ../src/guestfs-actions.pod:6865 ../src/guestfs-actions.pod:6884 ../src/guestfs-actions.pod:6900 ../src/guestfs-actions.pod:6924 ../src/guestfs-actions.pod:6943 ../src/guestfs-actions.pod:6958 ../src/guestfs-actions.pod:6977 ../src/guestfs-actions.pod:7021 ../src/guestfs-actions.pod:7048 ../src/guestfs-actions.pod:7078 ../src/guestfs-actions.pod:7190 ../src/guestfs-actions.pod:7311 ../src/guestfs-actions.pod:7323 ../src/guestfs-actions.pod:7336 ../src/guestfs-actions.pod:7349 ../src/guestfs-actions.pod:7371 ../src/guestfs-actions.pod:7384 ../src/guestfs-actions.pod:7397 ../src/guestfs-actions.pod:7410 ../src/guestfs-actions.pod:7425 ../src/guestfs-actions.pod:7484 ../src/guestfs-actions.pod:7501 ../src/guestfs-actions.pod:7517 ../src/guestfs-actions.pod:7533 ../src/guestfs-actions.pod:7550 ../src/guestfs-actions.pod:7563 ../src/guestfs-actions.pod:7583 ../src/guestfs-actions.pod:7619 ../src/guestfs-actions.pod:7633 ../src/guestfs-actions.pod:7674 ../src/guestfs-actions.pod:7687 ../src/guestfs-actions.pod:7705 ../src/guestfs-actions.pod:7739 ../src/guestfs-actions.pod:7775 ../src/guestfs-actions.pod:7891 ../src/guestfs-actions.pod:7906 ../src/guestfs-actions.pod:7920 ../src/guestfs-actions.pod:7975 ../src/guestfs-actions.pod:7988 ../src/guestfs-actions.pod:8033 ../src/guestfs-actions.pod:8073 ../src/guestfs-actions.pod:8129 ../src/guestfs-actions.pod:8149 ../src/guestfs-actions.pod:8182 ../src/guestfs-actions.pod:8246 ../src/guestfs-actions.pod:8269 ../src/guestfs-actions.pod:8295
24663 msgid "This function returns 0 on success or -1 on error."
24664 msgstr ""
24665
24666 #. type: textblock
24667 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:189 ../src/guestfs-actions.pod:1334 ../src/guestfs-actions.pod:2397 ../src/guestfs-actions.pod:2495 ../src/guestfs-actions.pod:2620 ../src/guestfs-actions.pod:4090 ../src/guestfs-actions.pod:4110 ../src/guestfs-actions.pod:5399 ../src/guestfs-actions.pod:6679 ../src/guestfs-actions.pod:6796 ../src/guestfs-actions.pod:6945 ../src/guestfs-actions.pod:7427 ../src/guestfs-actions.pod:7552 ../src/guestfs-actions.pod:8075
24668 msgid "(Added in 0.3)"
24669 msgstr ""
24670
24671 #. type: =head2
24672 #: ../src/guestfs-actions.pod:41
24673 msgid "guestfs_add_domain"
24674 msgstr ""
24675
24676 #. type: verbatim
24677 #: ../src/guestfs-actions.pod:43
24678 #, no-wrap
24679 msgid ""
24680 " int\n"
24681 " guestfs_add_domain (guestfs_h *g,\n"
24682 "                     const char *dom,\n"
24683 "                     ...);\n"
24684 "\n"
24685 msgstr ""
24686
24687 #. type: textblock
24688 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:198 ../src/guestfs-actions.pod:890 ../src/guestfs-actions.pod:1214 ../src/guestfs-actions.pod:1266 ../src/guestfs-actions.pod:1344 ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:1466 ../src/guestfs-actions.pod:1519 ../src/guestfs-actions.pod:3288 ../src/guestfs-actions.pod:5100 ../src/guestfs-actions.pod:5409 ../src/guestfs-actions.pod:5626
24689 msgid ""
24690 "You may supply a list of optional arguments to this call.  Use zero or more "
24691 "of the following pairs of parameters, and terminate the list with C<-1> on "
24692 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
24693 msgstr ""
24694
24695 #. type: verbatim
24696 #: ../src/guestfs-actions.pod:53
24697 #, no-wrap
24698 msgid ""
24699 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
24700 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
24701 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
24702 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
24703 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
24704 " GUESTFS_ADD_DOMAIN_READONLYDISK, const char *readonlydisk,\n"
24705 "\n"
24706 msgstr ""
24707
24708 #. type: textblock
24709 #: ../src/guestfs-actions.pod:60
24710 msgid ""
24711 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
24712 "It works by connecting to libvirt, requesting the domain and domain XML from "
24713 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
24714 "one."
24715 msgstr ""
24716
24717 #. type: textblock
24718 #: ../src/guestfs-actions.pod:141
24719 msgid ""
24720 "The other optional parameters are passed directly through to "
24721 "C<guestfs_add_drive_opts>."
24722 msgstr ""
24723
24724 #. type: textblock
24725 #: ../src/guestfs-actions.pod:144 ../src/guestfs-actions.pod:403 ../src/guestfs-actions.pod:573 ../src/guestfs-actions.pod:751 ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800 ../src/guestfs-actions.pod:819 ../src/guestfs-actions.pod:1797 ../src/guestfs-actions.pod:2153 ../src/guestfs-actions.pod:2356 ../src/guestfs-actions.pod:2467 ../src/guestfs-actions.pod:2518 ../src/guestfs-actions.pod:2570 ../src/guestfs-actions.pod:2584 ../src/guestfs-actions.pod:2607 ../src/guestfs-actions.pod:2922 ../src/guestfs-actions.pod:3406 ../src/guestfs-actions.pod:3424 ../src/guestfs-actions.pod:5585 ../src/guestfs-actions.pod:5802 ../src/guestfs-actions.pod:6040 ../src/guestfs-actions.pod:6234 ../src/guestfs-actions.pod:6260 ../src/guestfs-actions.pod:7660 ../src/guestfs-actions.pod:8086 ../src/guestfs-actions.pod:8099 ../src/guestfs-actions.pod:8112
24726 msgid "On error this function returns -1."
24727 msgstr ""
24728
24729 #. type: textblock
24730 #: ../src/guestfs-actions.pod:146
24731 msgid "(Added in 1.7.4)"
24732 msgstr ""
24733
24734 #. type: =head2
24735 #: ../src/guestfs-actions.pod:148
24736 msgid "guestfs_add_domain_va"
24737 msgstr ""
24738
24739 #. type: verbatim
24740 #: ../src/guestfs-actions.pod:150
24741 #, no-wrap
24742 msgid ""
24743 " int\n"
24744 " guestfs_add_domain_va (guestfs_h *g,\n"
24745 "                        const char *dom,\n"
24746 "                        va_list args);\n"
24747 "\n"
24748 msgstr ""
24749
24750 #. type: textblock
24751 #: ../src/guestfs-actions.pod:155
24752 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
24753 msgstr ""
24754
24755 #. type: textblock
24756 #: ../src/guestfs-actions.pod:157 ../src/guestfs-actions.pod:168 ../src/guestfs-actions.pod:267 ../src/guestfs-actions.pod:278 ../src/guestfs-actions.pod:929 ../src/guestfs-actions.pod:940 ../src/guestfs-actions.pod:1242 ../src/guestfs-actions.pod:1255 ../src/guestfs-actions.pod:1301 ../src/guestfs-actions.pod:1314 ../src/guestfs-actions.pod:1391 ../src/guestfs-actions.pod:1403 ../src/guestfs-actions.pod:1444 ../src/guestfs-actions.pod:1456 ../src/guestfs-actions.pod:1497 ../src/guestfs-actions.pod:1509 ../src/guestfs-actions.pod:1555 ../src/guestfs-actions.pod:1567 ../src/guestfs-actions.pod:3372 ../src/guestfs-actions.pod:3384 ../src/guestfs-actions.pod:5165 ../src/guestfs-actions.pod:5177 ../src/guestfs-actions.pod:5437 ../src/guestfs-actions.pod:5449 ../src/guestfs-actions.pod:5675 ../src/guestfs-actions.pod:5686
24757 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
24758 msgstr ""
24759
24760 #. type: =head2
24761 #: ../src/guestfs-actions.pod:159
24762 msgid "guestfs_add_domain_argv"
24763 msgstr ""
24764
24765 #. type: verbatim
24766 #: ../src/guestfs-actions.pod:161
24767 #, no-wrap
24768 msgid ""
24769 " int\n"
24770 " guestfs_add_domain_argv (guestfs_h *g,\n"
24771 "                          const char *dom,\n"
24772 "                          const struct guestfs_add_domain_argv *optargs);\n"
24773 "\n"
24774 msgstr ""
24775
24776 #. type: textblock
24777 #: ../src/guestfs-actions.pod:166
24778 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
24779 msgstr ""
24780
24781 #. type: =head2
24782 #: ../src/guestfs-actions.pod:170
24783 msgid "guestfs_add_drive"
24784 msgstr ""
24785
24786 #. type: verbatim
24787 #: ../src/guestfs-actions.pod:172
24788 #, no-wrap
24789 msgid ""
24790 " int\n"
24791 " guestfs_add_drive (guestfs_h *g,\n"
24792 "                    const char *filename);\n"
24793 "\n"
24794 msgstr ""
24795
24796 #. type: textblock
24797 #: ../src/guestfs-actions.pod:176
24798 msgid ""
24799 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
24800 "optional parameters, so the disk is added writable, with the format being "
24801 "detected automatically."
24802 msgstr ""
24803
24804 #. type: textblock
24805 #: ../src/guestfs-actions.pod:180
24806 msgid ""
24807 "Automatic detection of the format opens you up to a potential security hole "
24808 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
24809 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
24810 "you should think about replacing calls to this function with calls to "
24811 "C<guestfs_add_drive_opts>, and specifying the format."
24812 msgstr ""
24813
24814 #. type: =head2
24815 #: ../src/guestfs-actions.pod:191
24816 msgid "guestfs_add_drive_opts"
24817 msgstr ""
24818
24819 #. type: verbatim
24820 #: ../src/guestfs-actions.pod:193
24821 #, no-wrap
24822 msgid ""
24823 " int\n"
24824 " guestfs_add_drive_opts (guestfs_h *g,\n"
24825 "                         const char *filename,\n"
24826 "                         ...);\n"
24827 "\n"
24828 msgstr ""
24829
24830 #. type: verbatim
24831 #: ../src/guestfs-actions.pod:203
24832 #, no-wrap
24833 msgid ""
24834 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
24835 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
24836 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
24837 " GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
24838 "\n"
24839 msgstr ""
24840
24841 #. type: textblock
24842 #: ../src/guestfs-actions.pod:233
24843 msgid ""
24844 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
24845 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
24846 "Possible formats include C<raw> and C<qcow2>."
24847 msgstr ""
24848
24849 #. type: textblock
24850 #: ../src/guestfs-actions.pod:244
24851 msgid ""
24852 "This rarely-used option lets you emulate the behaviour of the deprecated "
24853 "C<guestfs_add_drive_with_if> call (q.v.)"
24854 msgstr ""
24855
24856 #. type: textblock
24857 #: ../src/guestfs-actions.pod:256
24858 msgid "(Added in 1.5.23)"
24859 msgstr ""
24860
24861 #. type: =head2
24862 #: ../src/guestfs-actions.pod:258
24863 msgid "guestfs_add_drive_opts_va"
24864 msgstr ""
24865
24866 #. type: verbatim
24867 #: ../src/guestfs-actions.pod:260
24868 #, no-wrap
24869 msgid ""
24870 " int\n"
24871 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
24872 "                            const char *filename,\n"
24873 "                            va_list args);\n"
24874 "\n"
24875 msgstr ""
24876
24877 #. type: textblock
24878 #: ../src/guestfs-actions.pod:265
24879 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
24880 msgstr ""
24881
24882 #. type: =head2
24883 #: ../src/guestfs-actions.pod:269
24884 msgid "guestfs_add_drive_opts_argv"
24885 msgstr ""
24886
24887 #. type: verbatim
24888 #: ../src/guestfs-actions.pod:271
24889 #, no-wrap
24890 msgid ""
24891 " int\n"
24892 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
24893 "                              const char *filename,\n"
24894 "                              const struct guestfs_add_drive_opts_argv "
24895 "*optargs);\n"
24896 "\n"
24897 msgstr ""
24898
24899 #. type: textblock
24900 #: ../src/guestfs-actions.pod:276
24901 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
24902 msgstr ""
24903
24904 #. type: =head2
24905 #: ../src/guestfs-actions.pod:280
24906 msgid "guestfs_add_drive_ro"
24907 msgstr ""
24908
24909 #. type: verbatim
24910 #: ../src/guestfs-actions.pod:282
24911 #, no-wrap
24912 msgid ""
24913 " int\n"
24914 " guestfs_add_drive_ro (guestfs_h *g,\n"
24915 "                       const char *filename);\n"
24916 "\n"
24917 msgstr ""
24918
24919 #. type: textblock
24920 #: ../src/guestfs-actions.pod:286
24921 msgid ""
24922 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
24923 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
24924 "disk is added read-only, with the format being detected automatically."
24925 msgstr ""
24926
24927 #. type: textblock
24928 #: ../src/guestfs-actions.pod:293
24929 msgid "(Added in 1.0.38)"
24930 msgstr ""
24931
24932 #. type: =head2
24933 #: ../src/guestfs-actions.pod:295
24934 msgid "guestfs_add_drive_ro_with_if"
24935 msgstr ""
24936
24937 #. type: verbatim
24938 #: ../src/guestfs-actions.pod:297
24939 #, no-wrap
24940 msgid ""
24941 " int\n"
24942 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
24943 "                               const char *filename,\n"
24944 "                               const char *iface);\n"
24945 "\n"
24946 msgstr ""
24947
24948 #. type: textblock
24949 #: ../src/guestfs-actions.pod:309
24950 msgid ""
24951 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
24952 "QEMU interface emulation to use at run time."
24953 msgstr ""
24954
24955 #. type: textblock
24956 #: ../src/guestfs-actions.pod:314 ../src/guestfs-actions.pod:335 ../src/guestfs-actions.pod:2881
24957 msgid "(Added in 1.0.84)"
24958 msgstr ""
24959
24960 #. type: =head2
24961 #: ../src/guestfs-actions.pod:316
24962 msgid "guestfs_add_drive_with_if"
24963 msgstr ""
24964
24965 #. type: verbatim
24966 #: ../src/guestfs-actions.pod:318
24967 #, no-wrap
24968 msgid ""
24969 " int\n"
24970 " guestfs_add_drive_with_if (guestfs_h *g,\n"
24971 "                            const char *filename,\n"
24972 "                            const char *iface);\n"
24973 "\n"
24974 msgstr ""
24975
24976 #. type: textblock
24977 #: ../src/guestfs-actions.pod:330
24978 msgid ""
24979 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
24980 "QEMU interface emulation to use at run time."
24981 msgstr ""
24982
24983 #. type: =head2
24984 #: ../src/guestfs-actions.pod:337
24985 msgid "guestfs_aug_clear"
24986 msgstr ""
24987
24988 #. type: verbatim
24989 #: ../src/guestfs-actions.pod:339
24990 #, no-wrap
24991 msgid ""
24992 " int\n"
24993 " guestfs_aug_clear (guestfs_h *g,\n"
24994 "                    const char *augpath);\n"
24995 "\n"
24996 msgstr ""
24997
24998 #. type: textblock
24999 #: ../src/guestfs-actions.pod:348 ../src/guestfs-actions.pod:2609
25000 msgid "(Added in 1.3.4)"
25001 msgstr ""
25002
25003 #. type: =head2
25004 #: ../src/guestfs-actions.pod:350
25005 msgid "guestfs_aug_close"
25006 msgstr ""
25007
25008 #. type: verbatim
25009 #: ../src/guestfs-actions.pod:352
25010 #, no-wrap
25011 msgid ""
25012 " int\n"
25013 " guestfs_aug_close (guestfs_h *g);\n"
25014 "\n"
25015 msgstr ""
25016
25017 #. type: textblock
25018 #: ../src/guestfs-actions.pod:355
25019 msgid ""
25020 "Close the current Augeas handle and free up any resources used by it.  After "
25021 "calling this, you have to call C<guestfs_aug_init> again before you can use "
25022 "any other Augeas functions."
25023 msgstr ""
25024
25025 #. type: textblock
25026 #: ../src/guestfs-actions.pod:362 ../src/guestfs-actions.pod:387 ../src/guestfs-actions.pod:405 ../src/guestfs-actions.pod:419 ../src/guestfs-actions.pod:482 ../src/guestfs-actions.pod:502 ../src/guestfs-actions.pod:516 ../src/guestfs-actions.pod:547 ../src/guestfs-actions.pod:561 ../src/guestfs-actions.pod:575 ../src/guestfs-actions.pod:589 ../src/guestfs-actions.pod:607 ../src/guestfs-actions.pod:6311
25027 msgid "(Added in 0.7)"
25028 msgstr ""
25029
25030 #. type: =head2
25031 #: ../src/guestfs-actions.pod:364
25032 msgid "guestfs_aug_defnode"
25033 msgstr ""
25034
25035 #. type: verbatim
25036 #: ../src/guestfs-actions.pod:366
25037 #, no-wrap
25038 msgid ""
25039 " struct guestfs_int_bool *\n"
25040 " guestfs_aug_defnode (guestfs_h *g,\n"
25041 "                      const char *name,\n"
25042 "                      const char *expr,\n"
25043 "                      const char *val);\n"
25044 "\n"
25045 msgstr ""
25046
25047 #. type: textblock
25048 #: ../src/guestfs-actions.pod:375
25049 msgid ""
25050 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
25051 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
25052 "containing that single node."
25053 msgstr ""
25054
25055 #. type: textblock
25056 #: ../src/guestfs-actions.pod:383
25057 msgid ""
25058 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
25059 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
25060 msgstr ""
25061
25062 #. type: =head2
25063 #: ../src/guestfs-actions.pod:389
25064 msgid "guestfs_aug_defvar"
25065 msgstr ""
25066
25067 #. type: verbatim
25068 #: ../src/guestfs-actions.pod:391
25069 #, no-wrap
25070 msgid ""
25071 " int\n"
25072 " guestfs_aug_defvar (guestfs_h *g,\n"
25073 "                     const char *name,\n"
25074 "                     const char *expr);\n"
25075 "\n"
25076 msgstr ""
25077
25078 #. type: =head2
25079 #: ../src/guestfs-actions.pod:407
25080 msgid "guestfs_aug_get"
25081 msgstr ""
25082
25083 #. type: verbatim
25084 #: ../src/guestfs-actions.pod:409
25085 #, no-wrap
25086 msgid ""
25087 " char *\n"
25088 " guestfs_aug_get (guestfs_h *g,\n"
25089 "                  const char *augpath);\n"
25090 "\n"
25091 msgstr ""
25092
25093 #. type: textblock
25094 #: ../src/guestfs-actions.pod:416 ../src/guestfs-actions.pod:980 ../src/guestfs-actions.pod:998 ../src/guestfs-actions.pod:1058 ../src/guestfs-actions.pod:1074 ../src/guestfs-actions.pod:1177 ../src/guestfs-actions.pod:1666 ../src/guestfs-actions.pod:1683 ../src/guestfs-actions.pod:1702 ../src/guestfs-actions.pod:1836 ../src/guestfs-actions.pod:2024 ../src/guestfs-actions.pod:2136 ../src/guestfs-actions.pod:2299 ../src/guestfs-actions.pod:2316 ../src/guestfs-actions.pod:2383 ../src/guestfs-actions.pod:2426 ../src/guestfs-actions.pod:2447 ../src/guestfs-actions.pod:2632 ../src/guestfs-actions.pod:2846 ../src/guestfs-actions.pod:3050 ../src/guestfs-actions.pod:3152 ../src/guestfs-actions.pod:3256 ../src/guestfs-actions.pod:3275 ../src/guestfs-actions.pod:3490 ../src/guestfs-actions.pod:3518 ../src/guestfs-actions.pod:3539 ../src/guestfs-actions.pod:3573 ../src/guestfs-actions.pod:3636 ../src/guestfs-actions.pod:3656 ../src/guestfs-actions.pod:3676 ../src/guestfs-actions.pod:4303 ../src/guestfs-actions.pod:4650 ../src/guestfs-actions.pod:4817 ../src/guestfs-actions.pod:4927 ../src/guestfs-actions.pod:5820 ../src/guestfs-actions.pod:6021 ../src/guestfs-actions.pod:6209 ../src/guestfs-actions.pod:6387 ../src/guestfs-actions.pod:6436 ../src/guestfs-actions.pod:7096 ../src/guestfs-actions.pod:7112 ../src/guestfs-actions.pod:7136 ../src/guestfs-actions.pod:7160 ../src/guestfs-actions.pod:7834 ../src/guestfs-actions.pod:7853 ../src/guestfs-actions.pod:7871 ../src/guestfs-actions.pod:8045 ../src/guestfs-actions.pod:8359
25095 msgid ""
25096 "This function returns a string, or NULL on error.  I<The caller must free "
25097 "the returned string after use>."
25098 msgstr ""
25099
25100 #. type: =head2
25101 #: ../src/guestfs-actions.pod:421
25102 msgid "guestfs_aug_init"
25103 msgstr ""
25104
25105 #. type: verbatim
25106 #: ../src/guestfs-actions.pod:423
25107 #, no-wrap
25108 msgid ""
25109 " int\n"
25110 " guestfs_aug_init (guestfs_h *g,\n"
25111 "                   const char *root,\n"
25112 "                   int flags);\n"
25113 "\n"
25114 msgstr ""
25115
25116 #. type: textblock
25117 #: ../src/guestfs-actions.pod:432
25118 msgid "You must call this before using any other C<guestfs_aug_*> commands."
25119 msgstr ""
25120
25121 #. type: textblock
25122 #: ../src/guestfs-actions.pod:457
25123 msgid ""
25124 "This option is only useful when debugging Augeas lenses.  Use of this option "
25125 "may require additional memory for the libguestfs appliance.  You may need to "
25126 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
25127 "C<guestfs_set_memsize>."
25128 msgstr ""
25129
25130 #. type: textblock
25131 #: ../src/guestfs-actions.pod:472
25132 msgid "Do not load the tree in C<guestfs_aug_init>."
25133 msgstr ""
25134
25135 #. type: textblock
25136 #: ../src/guestfs-actions.pod:476
25137 msgid "To close the handle, you can call C<guestfs_aug_close>."
25138 msgstr ""
25139
25140 #. type: =head2
25141 #: ../src/guestfs-actions.pod:484
25142 msgid "guestfs_aug_insert"
25143 msgstr ""
25144
25145 #. type: verbatim
25146 #: ../src/guestfs-actions.pod:486
25147 #, no-wrap
25148 msgid ""
25149 " int\n"
25150 " guestfs_aug_insert (guestfs_h *g,\n"
25151 "                     const char *augpath,\n"
25152 "                     const char *label,\n"
25153 "                     int before);\n"
25154 "\n"
25155 msgstr ""
25156
25157 #. type: =head2
25158 #: ../src/guestfs-actions.pod:504
25159 msgid "guestfs_aug_load"
25160 msgstr ""
25161
25162 #. type: verbatim
25163 #: ../src/guestfs-actions.pod:506
25164 #, no-wrap
25165 msgid ""
25166 " int\n"
25167 " guestfs_aug_load (guestfs_h *g);\n"
25168 "\n"
25169 msgstr ""
25170
25171 #. type: =head2
25172 #: ../src/guestfs-actions.pod:518
25173 msgid "guestfs_aug_ls"
25174 msgstr ""
25175
25176 #. type: verbatim
25177 #: ../src/guestfs-actions.pod:520
25178 #, no-wrap
25179 msgid ""
25180 " char **\n"
25181 " guestfs_aug_ls (guestfs_h *g,\n"
25182 "                 const char *augpath);\n"
25183 "\n"
25184 msgstr ""
25185
25186 #. type: textblock
25187 #: ../src/guestfs-actions.pod:524
25188 msgid ""
25189 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
25190 "sorting the resulting nodes into alphabetical order."
25191 msgstr ""
25192
25193 #. type: textblock
25194 #: ../src/guestfs-actions.pod:527 ../src/guestfs-actions.pod:543 ../src/guestfs-actions.pod:689 ../src/guestfs-actions.pod:1196 ../src/guestfs-actions.pod:1851 ../src/guestfs-actions.pod:1870 ../src/guestfs-actions.pod:1973 ../src/guestfs-actions.pod:1992 ../src/guestfs-actions.pod:2238 ../src/guestfs-actions.pod:2704 ../src/guestfs-actions.pod:2720 ../src/guestfs-actions.pod:2739 ../src/guestfs-actions.pod:2804 ../src/guestfs-actions.pod:2828 ../src/guestfs-actions.pod:2899 ../src/guestfs-actions.pod:2948 ../src/guestfs-actions.pod:3217 ../src/guestfs-actions.pod:3592 ../src/guestfs-actions.pod:3872 ../src/guestfs-actions.pod:4186 ../src/guestfs-actions.pod:4203 ../src/guestfs-actions.pod:4223 ../src/guestfs-actions.pod:4285 ../src/guestfs-actions.pod:4390 ../src/guestfs-actions.pod:4789 ../src/guestfs-actions.pod:5546 ../src/guestfs-actions.pod:6181 ../src/guestfs-actions.pod:6307 ../src/guestfs-actions.pod:6421 ../src/guestfs-actions.pod:7176 ../src/guestfs-actions.pod:7237 ../src/guestfs-actions.pod:7292 ../src/guestfs-actions.pod:7438 ../src/guestfs-actions.pod:7462 ../src/guestfs-actions.pod:7938 ../src/guestfs-actions.pod:7958 ../src/guestfs-actions.pod:8005 ../src/guestfs-actions.pod:8199 ../src/guestfs-actions.pod:8218 ../src/guestfs-actions.pod:8309 ../src/guestfs-actions.pod:8328 ../src/guestfs-actions.pod:8374 ../src/guestfs-actions.pod:8393
25195 msgid ""
25196 "This function returns a NULL-terminated array of strings (like "
25197 "L<environ(3)>), or NULL if there was an error.  I<The caller must free the "
25198 "strings and the array after use>."
25199 msgstr ""
25200
25201 #. type: textblock
25202 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:1121 ../src/guestfs-actions.pod:1139 ../src/guestfs-actions.pod:1908 ../src/guestfs-actions.pod:3950 ../src/guestfs-actions.pod:3981 ../src/guestfs-actions.pod:4633 ../src/guestfs-actions.pod:4680 ../src/guestfs-actions.pod:4867 ../src/guestfs-actions.pod:4900 ../src/guestfs-actions.pod:5063 ../src/guestfs-actions.pod:5550 ../src/guestfs-actions.pod:6122 ../src/guestfs-actions.pod:6519 ../src/guestfs-actions.pod:6533 ../src/guestfs-actions.pod:6545 ../src/guestfs-actions.pod:7023 ../src/guestfs-actions.pod:7676 ../src/guestfs-actions.pod:7689 ../src/guestfs-actions.pod:7922 ../src/guestfs-actions.pod:8187
25203 msgid "(Added in 0.8)"
25204 msgstr ""
25205
25206 #. type: =head2
25207 #: ../src/guestfs-actions.pod:533
25208 msgid "guestfs_aug_match"
25209 msgstr ""
25210
25211 #. type: verbatim
25212 #: ../src/guestfs-actions.pod:535
25213 #, no-wrap
25214 msgid ""
25215 " char **\n"
25216 " guestfs_aug_match (guestfs_h *g,\n"
25217 "                    const char *augpath);\n"
25218 "\n"
25219 msgstr ""
25220
25221 #. type: =head2
25222 #: ../src/guestfs-actions.pod:549
25223 msgid "guestfs_aug_mv"
25224 msgstr ""
25225
25226 #. type: verbatim
25227 #: ../src/guestfs-actions.pod:551
25228 #, no-wrap
25229 msgid ""
25230 " int\n"
25231 " guestfs_aug_mv (guestfs_h *g,\n"
25232 "                 const char *src,\n"
25233 "                 const char *dest);\n"
25234 "\n"
25235 msgstr ""
25236
25237 #. type: =head2
25238 #: ../src/guestfs-actions.pod:563
25239 msgid "guestfs_aug_rm"
25240 msgstr ""
25241
25242 #. type: verbatim
25243 #: ../src/guestfs-actions.pod:565
25244 #, no-wrap
25245 msgid ""
25246 " int\n"
25247 " guestfs_aug_rm (guestfs_h *g,\n"
25248 "                 const char *augpath);\n"
25249 "\n"
25250 msgstr ""
25251
25252 #. type: =head2
25253 #: ../src/guestfs-actions.pod:577
25254 msgid "guestfs_aug_save"
25255 msgstr ""
25256
25257 #. type: verbatim
25258 #: ../src/guestfs-actions.pod:579
25259 #, no-wrap
25260 msgid ""
25261 " int\n"
25262 " guestfs_aug_save (guestfs_h *g);\n"
25263 "\n"
25264 msgstr ""
25265
25266 #. type: textblock
25267 #: ../src/guestfs-actions.pod:584
25268 msgid ""
25269 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
25270 "are saved."
25271 msgstr ""
25272
25273 #. type: =head2
25274 #: ../src/guestfs-actions.pod:591
25275 msgid "guestfs_aug_set"
25276 msgstr ""
25277
25278 #. type: verbatim
25279 #: ../src/guestfs-actions.pod:593
25280 #, no-wrap
25281 msgid ""
25282 " int\n"
25283 " guestfs_aug_set (guestfs_h *g,\n"
25284 "                  const char *augpath,\n"
25285 "                  const char *val);\n"
25286 "\n"
25287 msgstr ""
25288
25289 #. type: textblock
25290 #: ../src/guestfs-actions.pod:600
25291 msgid ""
25292 "In the Augeas API, it is possible to clear a node by setting the value to "
25293 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
25294 "this call.  Instead you must use the C<guestfs_aug_clear> call."
25295 msgstr ""
25296
25297 #. type: =head2
25298 #: ../src/guestfs-actions.pod:609
25299 msgid "guestfs_available"
25300 msgstr ""
25301
25302 #. type: verbatim
25303 #: ../src/guestfs-actions.pod:611
25304 #, no-wrap
25305 msgid ""
25306 " int\n"
25307 " guestfs_available (guestfs_h *g,\n"
25308 "                    char *const *groups);\n"
25309 "\n"
25310 msgstr ""
25311
25312 #. type: textblock
25313 #: ../src/guestfs-actions.pod:619
25314 msgid ""
25315 "The libguestfs groups, and the functions that those groups correspond to, "
25316 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
25317 "runtime by calling C<guestfs_available_all_groups>."
25318 msgstr ""
25319
25320 #. type: textblock
25321 #: ../src/guestfs-actions.pod:643
25322 msgid "You must call C<guestfs_launch> before calling this function."
25323 msgstr ""
25324
25325 #. type: textblock
25326 #: ../src/guestfs-actions.pod:665
25327 msgid ""
25328 "This call was added in version C<1.0.80>.  In previous versions of "
25329 "libguestfs all you could do would be to speculatively execute a command to "
25330 "find out if the daemon implemented it.  See also C<guestfs_version>."
25331 msgstr ""
25332
25333 #. type: textblock
25334 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:1653
25335 msgid "(Added in 1.0.80)"
25336 msgstr ""
25337
25338 #. type: =head2
25339 #: ../src/guestfs-actions.pod:676
25340 msgid "guestfs_available_all_groups"
25341 msgstr ""
25342
25343 #. type: verbatim
25344 #: ../src/guestfs-actions.pod:678
25345 #, no-wrap
25346 msgid ""
25347 " char **\n"
25348 " guestfs_available_all_groups (guestfs_h *g);\n"
25349 "\n"
25350 msgstr ""
25351
25352 #. type: textblock
25353 #: ../src/guestfs-actions.pod:681
25354 msgid ""
25355 "This command returns a list of all optional groups that this daemon knows "
25356 "about.  Note this returns both supported and unsupported groups.  To find "
25357 "out which ones the daemon can actually support you have to call "
25358 "C<guestfs_available> on each member of the returned list."
25359 msgstr ""
25360
25361 #. type: textblock
25362 #: ../src/guestfs-actions.pod:687
25363 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
25364 msgstr ""
25365
25366 #. type: textblock
25367 #: ../src/guestfs-actions.pod:693
25368 msgid "(Added in 1.3.15)"
25369 msgstr ""
25370
25371 #. type: =head2
25372 #: ../src/guestfs-actions.pod:695
25373 msgid "guestfs_base64_in"
25374 msgstr ""
25375
25376 #. type: verbatim
25377 #: ../src/guestfs-actions.pod:697
25378 #, no-wrap
25379 msgid ""
25380 " int\n"
25381 " guestfs_base64_in (guestfs_h *g,\n"
25382 "                    const char *base64file,\n"
25383 "                    const char *filename);\n"
25384 "\n"
25385 msgstr ""
25386
25387 #. type: textblock
25388 #: ../src/guestfs-actions.pod:707 ../src/guestfs-actions.pod:721
25389 msgid "(Added in 1.3.5)"
25390 msgstr ""
25391
25392 #. type: =head2
25393 #: ../src/guestfs-actions.pod:709
25394 msgid "guestfs_base64_out"
25395 msgstr ""
25396
25397 #. type: verbatim
25398 #: ../src/guestfs-actions.pod:711
25399 #, no-wrap
25400 msgid ""
25401 " int\n"
25402 " guestfs_base64_out (guestfs_h *g,\n"
25403 "                     const char *filename,\n"
25404 "                     const char *base64file);\n"
25405 "\n"
25406 msgstr ""
25407
25408 #. type: =head2
25409 #: ../src/guestfs-actions.pod:723
25410 msgid "guestfs_blockdev_flushbufs"
25411 msgstr ""
25412
25413 #. type: verbatim
25414 #: ../src/guestfs-actions.pod:725
25415 #, no-wrap
25416 msgid ""
25417 " int\n"
25418 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
25419 "                             const char *device);\n"
25420 "\n"
25421 msgstr ""
25422
25423 #. type: textblock
25424 #: ../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
25425 msgid "(Added in 0.9.3)"
25426 msgstr ""
25427
25428 #. type: =head2
25429 #: ../src/guestfs-actions.pod:738
25430 msgid "guestfs_blockdev_getbsz"
25431 msgstr ""
25432
25433 #. type: verbatim
25434 #: ../src/guestfs-actions.pod:740
25435 #, no-wrap
25436 msgid ""
25437 " int\n"
25438 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
25439 "                          const char *device);\n"
25440 "\n"
25441 msgstr ""
25442
25443 #. type: =head2
25444 #: ../src/guestfs-actions.pod:755
25445 msgid "guestfs_blockdev_getro"
25446 msgstr ""
25447
25448 #. type: verbatim
25449 #: ../src/guestfs-actions.pod:757
25450 #, no-wrap
25451 msgid ""
25452 " int\n"
25453 " guestfs_blockdev_getro (guestfs_h *g,\n"
25454 "                         const char *device);\n"
25455 "\n"
25456 msgstr ""
25457
25458 #. type: textblock
25459 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1891 ../src/guestfs-actions.pod:1906 ../src/guestfs-actions.pod:2395 ../src/guestfs-actions.pod:2406 ../src/guestfs-actions.pod:2478 ../src/guestfs-actions.pod:2504 ../src/guestfs-actions.pod:2544 ../src/guestfs-actions.pod:2559 ../src/guestfs-actions.pod:2595 ../src/guestfs-actions.pod:2618 ../src/guestfs-actions.pod:3693 ../src/guestfs-actions.pod:3709 ../src/guestfs-actions.pod:3727 ../src/guestfs-actions.pod:3889 ../src/guestfs-actions.pod:3903 ../src/guestfs-actions.pod:3918 ../src/guestfs-actions.pod:3932 ../src/guestfs-actions.pod:3948 ../src/guestfs-actions.pod:3963 ../src/guestfs-actions.pod:3979 ../src/guestfs-actions.pod:3993 ../src/guestfs-actions.pod:4006 ../src/guestfs-actions.pod:4020 ../src/guestfs-actions.pod:4035 ../src/guestfs-actions.pod:4050 ../src/guestfs-actions.pod:4063 ../src/guestfs-actions.pod:4077 ../src/guestfs-actions.pod:5784
25460 msgid "This function returns a C truth value on success or -1 on error."
25461 msgstr ""
25462
25463 #. type: =head2
25464 #: ../src/guestfs-actions.pod:770
25465 msgid "guestfs_blockdev_getsize64"
25466 msgstr ""
25467
25468 #. type: verbatim
25469 #: ../src/guestfs-actions.pod:772
25470 #, no-wrap
25471 msgid ""
25472 " int64_t\n"
25473 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
25474 "                             const char *device);\n"
25475 "\n"
25476 msgstr ""
25477
25478 #. type: textblock
25479 #: ../src/guestfs-actions.pod:778
25480 msgid "See also C<guestfs_blockdev_getsz>."
25481 msgstr ""
25482
25483 #. type: =head2
25484 #: ../src/guestfs-actions.pod:786
25485 msgid "guestfs_blockdev_getss"
25486 msgstr ""
25487
25488 #. type: verbatim
25489 #: ../src/guestfs-actions.pod:788
25490 #, no-wrap
25491 msgid ""
25492 " int\n"
25493 " guestfs_blockdev_getss (guestfs_h *g,\n"
25494 "                         const char *device);\n"
25495 "\n"
25496 msgstr ""
25497
25498 #. type: textblock
25499 #: ../src/guestfs-actions.pod:795
25500 msgid ""
25501 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
25502 "that)."
25503 msgstr ""
25504
25505 #. type: =head2
25506 #: ../src/guestfs-actions.pod:804
25507 msgid "guestfs_blockdev_getsz"
25508 msgstr ""
25509
25510 #. type: verbatim
25511 #: ../src/guestfs-actions.pod:806
25512 #, no-wrap
25513 msgid ""
25514 " int64_t\n"
25515 " guestfs_blockdev_getsz (guestfs_h *g,\n"
25516 "                         const char *device);\n"
25517 "\n"
25518 msgstr ""
25519
25520 #. type: textblock
25521 #: ../src/guestfs-actions.pod:813
25522 msgid ""
25523 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
25524 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
25525 msgstr ""
25526
25527 #. type: =head2
25528 #: ../src/guestfs-actions.pod:823
25529 msgid "guestfs_blockdev_rereadpt"
25530 msgstr ""
25531
25532 #. type: verbatim
25533 #: ../src/guestfs-actions.pod:825
25534 #, no-wrap
25535 msgid ""
25536 " int\n"
25537 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
25538 "                            const char *device);\n"
25539 "\n"
25540 msgstr ""
25541
25542 #. type: =head2
25543 #: ../src/guestfs-actions.pod:837
25544 msgid "guestfs_blockdev_setbsz"
25545 msgstr ""
25546
25547 #. type: verbatim
25548 #: ../src/guestfs-actions.pod:839
25549 #, no-wrap
25550 msgid ""
25551 " int\n"
25552 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
25553 "                          const char *device,\n"
25554 "                          int blocksize);\n"
25555 "\n"
25556 msgstr ""
25557
25558 #. type: =head2
25559 #: ../src/guestfs-actions.pod:855
25560 msgid "guestfs_blockdev_setro"
25561 msgstr ""
25562
25563 #. type: verbatim
25564 #: ../src/guestfs-actions.pod:857
25565 #, no-wrap
25566 msgid ""
25567 " int\n"
25568 " guestfs_blockdev_setro (guestfs_h *g,\n"
25569 "                         const char *device);\n"
25570 "\n"
25571 msgstr ""
25572
25573 #. type: =head2
25574 #: ../src/guestfs-actions.pod:869
25575 msgid "guestfs_blockdev_setrw"
25576 msgstr ""
25577
25578 #. type: verbatim
25579 #: ../src/guestfs-actions.pod:871
25580 #, no-wrap
25581 msgid ""
25582 " int\n"
25583 " guestfs_blockdev_setrw (guestfs_h *g,\n"
25584 "                         const char *device);\n"
25585 "\n"
25586 msgstr ""
25587
25588 #. type: =head2
25589 #: ../src/guestfs-actions.pod:883
25590 msgid "guestfs_btrfs_filesystem_resize"
25591 msgstr ""
25592
25593 #. type: verbatim
25594 #: ../src/guestfs-actions.pod:885
25595 #, no-wrap
25596 msgid ""
25597 " int\n"
25598 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
25599 "                                  const char *mountpoint,\n"
25600 "                                  ...);\n"
25601 "\n"
25602 msgstr ""
25603
25604 #. type: verbatim
25605 #: ../src/guestfs-actions.pod:895
25606 #, no-wrap
25607 msgid ""
25608 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
25609 "\n"
25610 msgstr ""
25611
25612 #. type: textblock
25613 #: ../src/guestfs-actions.pod:918
25614 msgid "(Added in 1.11.17)"
25615 msgstr ""
25616
25617 #. type: =head2
25618 #: ../src/guestfs-actions.pod:920
25619 msgid "guestfs_btrfs_filesystem_resize_va"
25620 msgstr ""
25621
25622 #. type: verbatim
25623 #: ../src/guestfs-actions.pod:922
25624 #, no-wrap
25625 msgid ""
25626 " int\n"
25627 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
25628 "                                     const char *mountpoint,\n"
25629 "                                     va_list args);\n"
25630 "\n"
25631 msgstr ""
25632
25633 #. type: textblock
25634 #: ../src/guestfs-actions.pod:927
25635 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
25636 msgstr ""
25637
25638 #. type: =head2
25639 #: ../src/guestfs-actions.pod:931
25640 msgid "guestfs_btrfs_filesystem_resize_argv"
25641 msgstr ""
25642
25643 #. type: verbatim
25644 #: ../src/guestfs-actions.pod:933
25645 #, no-wrap
25646 msgid ""
25647 " int\n"
25648 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
25649 "                                       const char *mountpoint,\n"
25650 "                                       const struct "
25651 "guestfs_btrfs_filesystem_resize_argv *optargs);\n"
25652 "\n"
25653 msgstr ""
25654
25655 #. type: textblock
25656 #: ../src/guestfs-actions.pod:938
25657 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
25658 msgstr ""
25659
25660 #. type: =head2
25661 #: ../src/guestfs-actions.pod:942
25662 msgid "guestfs_case_sensitive_path"
25663 msgstr ""
25664
25665 #. type: verbatim
25666 #: ../src/guestfs-actions.pod:944
25667 #, no-wrap
25668 msgid ""
25669 " char *\n"
25670 " guestfs_case_sensitive_path (guestfs_h *g,\n"
25671 "                              const char *path);\n"
25672 "\n"
25673 msgstr ""
25674
25675 #. type: textblock
25676 #: ../src/guestfs-actions.pod:970
25677 msgid ""
25678 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return "
25679 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
25680 "how the directories were originally created under Windows)."
25681 msgstr ""
25682
25683 #. type: textblock
25684 #: ../src/guestfs-actions.pod:978
25685 msgid "See also C<guestfs_realpath>."
25686 msgstr ""
25687
25688 #. type: textblock
25689 #: ../src/guestfs-actions.pod:983 ../src/guestfs-actions.pod:7856
25690 msgid "(Added in 1.0.75)"
25691 msgstr ""
25692
25693 #. type: =head2
25694 #: ../src/guestfs-actions.pod:985
25695 msgid "guestfs_cat"
25696 msgstr ""
25697
25698 #. type: verbatim
25699 #: ../src/guestfs-actions.pod:987
25700 #, no-wrap
25701 msgid ""
25702 " char *\n"
25703 " guestfs_cat (guestfs_h *g,\n"
25704 "              const char *path);\n"
25705 "\n"
25706 msgstr ""
25707
25708 #. type: textblock
25709 #: ../src/guestfs-actions.pod:993
25710 msgid ""
25711 "Note that this function cannot correctly handle binary files (specifically, "
25712 "files containing C<\\0> character which is treated as end of string).  For "
25713 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
25714 "functions which have a more complex interface."
25715 msgstr ""
25716
25717 #. type: textblock
25718 #: ../src/guestfs-actions.pod:1004 ../src/guestfs-actions.pod:4207 ../src/guestfs-actions.pod:4289 ../src/guestfs-actions.pod:4306 ../src/guestfs-actions.pod:4394 ../src/guestfs-actions.pod:4793 ../src/guestfs-actions.pod:4807 ../src/guestfs-actions.pod:6185 ../src/guestfs-actions.pod:6199 ../src/guestfs-actions.pod:8009 ../src/guestfs-actions.pod:8023
25719 msgid "(Added in 0.4)"
25720 msgstr ""
25721
25722 #. type: =head2
25723 #: ../src/guestfs-actions.pod:1006
25724 msgid "guestfs_checksum"
25725 msgstr ""
25726
25727 #. type: verbatim
25728 #: ../src/guestfs-actions.pod:1008
25729 #, no-wrap
25730 msgid ""
25731 " char *\n"
25732 " guestfs_checksum (guestfs_h *g,\n"
25733 "                   const char *csumtype,\n"
25734 "                   const char *path);\n"
25735 "\n"
25736 msgstr ""
25737
25738 #. type: textblock
25739 #: ../src/guestfs-actions.pod:1054
25740 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
25741 msgstr ""
25742
25743 #. type: textblock
25744 #: ../src/guestfs-actions.pod:1056
25745 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
25746 msgstr ""
25747
25748 #. type: textblock
25749 #: ../src/guestfs-actions.pod:1061 ../src/guestfs-actions.pod:1728 ../src/guestfs-actions.pod:2586 ../src/guestfs-actions.pod:3905 ../src/guestfs-actions.pod:3934 ../src/guestfs-actions.pod:3995 ../src/guestfs-actions.pod:4022 ../src/guestfs-actions.pod:7712
25750 msgid "(Added in 1.0.2)"
25751 msgstr ""
25752
25753 #. type: =head2
25754 #: ../src/guestfs-actions.pod:1063
25755 msgid "guestfs_checksum_device"
25756 msgstr ""
25757
25758 #. type: verbatim
25759 #: ../src/guestfs-actions.pod:1065
25760 #, no-wrap
25761 msgid ""
25762 " char *\n"
25763 " guestfs_checksum_device (guestfs_h *g,\n"
25764 "                          const char *csumtype,\n"
25765 "                          const char *device);\n"
25766 "\n"
25767 msgstr ""
25768
25769 #. type: textblock
25770 #: ../src/guestfs-actions.pod:1070
25771 msgid ""
25772 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
25773 "device named C<device>.  For the types of checksums supported see the "
25774 "C<guestfs_checksum> command."
25775 msgstr ""
25776
25777 #. type: textblock
25778 #: ../src/guestfs-actions.pod:1077 ../src/guestfs-actions.pod:5617 ../src/guestfs-actions.pod:5752 ../src/guestfs-actions.pod:5786 ../src/guestfs-actions.pod:5804 ../src/guestfs-actions.pod:5986 ../src/guestfs-actions.pod:7621 ../src/guestfs-actions.pod:7635 ../src/guestfs-actions.pod:8035
25779 msgid "(Added in 1.3.2)"
25780 msgstr ""
25781
25782 #. type: =head2
25783 #: ../src/guestfs-actions.pod:1079
25784 msgid "guestfs_checksums_out"
25785 msgstr ""
25786
25787 #. type: verbatim
25788 #: ../src/guestfs-actions.pod:1081
25789 #, no-wrap
25790 msgid ""
25791 " int\n"
25792 " guestfs_checksums_out (guestfs_h *g,\n"
25793 "                        const char *csumtype,\n"
25794 "                        const char *directory,\n"
25795 "                        const char *sumsfile);\n"
25796 "\n"
25797 msgstr ""
25798
25799 #. type: textblock
25800 #: ../src/guestfs-actions.pod:1101
25801 msgid "(Added in 1.3.7)"
25802 msgstr ""
25803
25804 #. type: =head2
25805 #: ../src/guestfs-actions.pod:1103
25806 msgid "guestfs_chmod"
25807 msgstr ""
25808
25809 #. type: verbatim
25810 #: ../src/guestfs-actions.pod:1105
25811 #, no-wrap
25812 msgid ""
25813 " int\n"
25814 " guestfs_chmod (guestfs_h *g,\n"
25815 "                int mode,\n"
25816 "                const char *path);\n"
25817 "\n"
25818 msgstr ""
25819
25820 #. type: =head2
25821 #: ../src/guestfs-actions.pod:1123
25822 msgid "guestfs_chown"
25823 msgstr ""
25824
25825 #. type: verbatim
25826 #: ../src/guestfs-actions.pod:1125
25827 #, no-wrap
25828 msgid ""
25829 " int\n"
25830 " guestfs_chown (guestfs_h *g,\n"
25831 "                int owner,\n"
25832 "                int group,\n"
25833 "                const char *path);\n"
25834 "\n"
25835 msgstr ""
25836
25837 #. type: =head2
25838 #: ../src/guestfs-actions.pod:1141
25839 msgid "guestfs_command"
25840 msgstr ""
25841
25842 #. type: verbatim
25843 #: ../src/guestfs-actions.pod:1143
25844 #, no-wrap
25845 msgid ""
25846 " char *\n"
25847 " guestfs_command (guestfs_h *g,\n"
25848 "                  char *const *arguments);\n"
25849 "\n"
25850 msgstr ""
25851
25852 #. type: textblock
25853 #: ../src/guestfs-actions.pod:1152
25854 msgid ""
25855 "The single parameter is an argv-style list of arguments.  The first element "
25856 "is the name of the program to run.  Subsequent elements are parameters.  The "
25857 "list must be non-empty (ie. must contain a program name).  Note that the "
25858 "command runs directly, and is I<not> invoked via the shell (see "
25859 "C<guestfs_sh>)."
25860 msgstr ""
25861
25862 #. type: textblock
25863 #: ../src/guestfs-actions.pod:1183 ../src/guestfs-actions.pod:1203 ../src/guestfs-actions.pod:2027
25864 msgid "(Added in 0.9.1)"
25865 msgstr ""
25866
25867 #. type: =head2
25868 #: ../src/guestfs-actions.pod:1185
25869 msgid "guestfs_command_lines"
25870 msgstr ""
25871
25872 #. type: verbatim
25873 #: ../src/guestfs-actions.pod:1187
25874 #, no-wrap
25875 msgid ""
25876 " char **\n"
25877 " guestfs_command_lines (guestfs_h *g,\n"
25878 "                        char *const *arguments);\n"
25879 "\n"
25880 msgstr ""
25881
25882 #. type: textblock
25883 #: ../src/guestfs-actions.pod:1191
25884 msgid ""
25885 "This is the same as C<guestfs_command>, but splits the result into a list of "
25886 "lines."
25887 msgstr ""
25888
25889 #. type: textblock
25890 #: ../src/guestfs-actions.pod:1194
25891 msgid "See also: C<guestfs_sh_lines>"
25892 msgstr ""
25893
25894 #. type: =head2
25895 #: ../src/guestfs-actions.pod:1205
25896 msgid "guestfs_compress_device_out"
25897 msgstr ""
25898
25899 #. type: verbatim
25900 #: ../src/guestfs-actions.pod:1207
25901 #, no-wrap
25902 msgid ""
25903 " int\n"
25904 " guestfs_compress_device_out (guestfs_h *g,\n"
25905 "                              const char *ctype,\n"
25906 "                              const char *device,\n"
25907 "                              const char *zdevice,\n"
25908 "                              ...);\n"
25909 "\n"
25910 msgstr ""
25911
25912 #. type: verbatim
25913 #: ../src/guestfs-actions.pod:1219
25914 #, no-wrap
25915 msgid ""
25916 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
25917 "\n"
25918 msgstr ""
25919
25920 #. type: textblock
25921 #: ../src/guestfs-actions.pod:1224
25922 msgid ""
25923 "The C<ctype> and optional C<level> parameters have the same meaning as in "
25924 "C<guestfs_compress_out>."
25925 msgstr ""
25926
25927 #. type: textblock
25928 #: ../src/guestfs-actions.pod:1229 ../src/guestfs-actions.pod:1288 ../src/guestfs-actions.pod:2572 ../src/guestfs-actions.pod:6902
25929 msgid "(Added in 1.13.15)"
25930 msgstr ""
25931
25932 #. type: =head2
25933 #: ../src/guestfs-actions.pod:1231
25934 msgid "guestfs_compress_device_out_va"
25935 msgstr ""
25936
25937 #. type: verbatim
25938 #: ../src/guestfs-actions.pod:1233
25939 #, no-wrap
25940 msgid ""
25941 " int\n"
25942 " guestfs_compress_device_out_va (guestfs_h *g,\n"
25943 "                                 const char *ctype,\n"
25944 "                                 const char *device,\n"
25945 "                                 const char *zdevice,\n"
25946 "                                 va_list args);\n"
25947 "\n"
25948 msgstr ""
25949
25950 #. type: textblock
25951 #: ../src/guestfs-actions.pod:1240
25952 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
25953 msgstr ""
25954
25955 #. type: =head2
25956 #: ../src/guestfs-actions.pod:1244
25957 msgid "guestfs_compress_device_out_argv"
25958 msgstr ""
25959
25960 #. type: verbatim
25961 #: ../src/guestfs-actions.pod:1246
25962 #, no-wrap
25963 msgid ""
25964 " int\n"
25965 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
25966 "                                   const char *ctype,\n"
25967 "                                   const char *device,\n"
25968 "                                   const char *zdevice,\n"
25969 "                                   const struct "
25970 "guestfs_compress_device_out_argv *optargs);\n"
25971 "\n"
25972 msgstr ""
25973
25974 #. type: textblock
25975 #: ../src/guestfs-actions.pod:1253
25976 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
25977 msgstr ""
25978
25979 #. type: =head2
25980 #: ../src/guestfs-actions.pod:1257
25981 msgid "guestfs_compress_out"
25982 msgstr ""
25983
25984 #. type: verbatim
25985 #: ../src/guestfs-actions.pod:1259
25986 #, no-wrap
25987 msgid ""
25988 " int\n"
25989 " guestfs_compress_out (guestfs_h *g,\n"
25990 "                       const char *ctype,\n"
25991 "                       const char *file,\n"
25992 "                       const char *zfile,\n"
25993 "                       ...);\n"
25994 "\n"
25995 msgstr ""
25996
25997 #. type: verbatim
25998 #: ../src/guestfs-actions.pod:1271
25999 #, no-wrap
26000 msgid ""
26001 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
26002 "\n"
26003 msgstr ""
26004
26005 #. type: =head2
26006 #: ../src/guestfs-actions.pod:1290
26007 msgid "guestfs_compress_out_va"
26008 msgstr ""
26009
26010 #. type: verbatim
26011 #: ../src/guestfs-actions.pod:1292
26012 #, no-wrap
26013 msgid ""
26014 " int\n"
26015 " guestfs_compress_out_va (guestfs_h *g,\n"
26016 "                          const char *ctype,\n"
26017 "                          const char *file,\n"
26018 "                          const char *zfile,\n"
26019 "                          va_list args);\n"
26020 "\n"
26021 msgstr ""
26022
26023 #. type: textblock
26024 #: ../src/guestfs-actions.pod:1299
26025 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
26026 msgstr ""
26027
26028 #. type: =head2
26029 #: ../src/guestfs-actions.pod:1303
26030 msgid "guestfs_compress_out_argv"
26031 msgstr ""
26032
26033 #. type: verbatim
26034 #: ../src/guestfs-actions.pod:1305
26035 #, no-wrap
26036 msgid ""
26037 " int\n"
26038 " guestfs_compress_out_argv (guestfs_h *g,\n"
26039 "                            const char *ctype,\n"
26040 "                            const char *file,\n"
26041 "                            const char *zfile,\n"
26042 "                            const struct guestfs_compress_out_argv "
26043 "*optargs);\n"
26044 "\n"
26045 msgstr ""
26046
26047 #. type: textblock
26048 #: ../src/guestfs-actions.pod:1312
26049 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
26050 msgstr ""
26051
26052 #. type: =head2
26053 #: ../src/guestfs-actions.pod:1316
26054 msgid "guestfs_config"
26055 msgstr ""
26056
26057 #. type: verbatim
26058 #: ../src/guestfs-actions.pod:1318
26059 #, no-wrap
26060 msgid ""
26061 " int\n"
26062 " guestfs_config (guestfs_h *g,\n"
26063 "                 const char *qemuparam,\n"
26064 "                 const char *qemuvalue);\n"
26065 "\n"
26066 msgstr ""
26067
26068 #. type: =head2
26069 #: ../src/guestfs-actions.pod:1336
26070 msgid "guestfs_copy_device_to_device"
26071 msgstr ""
26072
26073 #. type: verbatim
26074 #: ../src/guestfs-actions.pod:1338
26075 #, no-wrap
26076 msgid ""
26077 " int\n"
26078 " guestfs_copy_device_to_device (guestfs_h *g,\n"
26079 "                                const char *src,\n"
26080 "                                const char *dest,\n"
26081 "                                ...);\n"
26082 "\n"
26083 msgstr ""
26084
26085 #. type: verbatim
26086 #: ../src/guestfs-actions.pod:1349
26087 #, no-wrap
26088 msgid ""
26089 " GUESTFS_COPY_DEVICE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
26090 " GUESTFS_COPY_DEVICE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
26091 " GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, int64_t size,\n"
26092 "\n"
26093 msgstr ""
26094
26095 #. type: textblock
26096 #: ../src/guestfs-actions.pod:1353
26097 msgid ""
26098 "The four calls C<guestfs_copy_device_to_device>, "
26099 "C<guestfs_copy_device_to_file>, C<guestfs_copy_file_to_device>, and "
26100 "C<guestfs_copy_file_to_file> let you copy from a source (device|file) to a "
26101 "destination (device|file)."
26102 msgstr ""
26103
26104 #. type: textblock
26105 #: ../src/guestfs-actions.pod:1374 ../src/guestfs-actions.pod:1427 ../src/guestfs-actions.pod:1480 ../src/guestfs-actions.pod:1538 ../src/guestfs-actions.pod:1592 ../src/guestfs-actions.pod:1723 ../src/guestfs-actions.pod:1754 ../src/guestfs-actions.pod:1799 ../src/guestfs-actions.pod:2176 ../src/guestfs-actions.pod:2198 ../src/guestfs-actions.pod:4105 ../src/guestfs-actions.pod:7707 ../src/guestfs-actions.pod:7741 ../src/guestfs-actions.pod:8248 ../src/guestfs-actions.pod:8271
26106 msgid ""
26107 "This long-running command can generate progress notification messages so "
26108 "that the caller can display a progress bar or indicator.  To receive these "
26109 "messages, the caller must register a progress event callback.  See "
26110 "L<guestfs(3)/GUESTFS_EVENT_PROGRESS>."
26111 msgstr ""
26112
26113 #. type: textblock
26114 #: ../src/guestfs-actions.pod:1379 ../src/guestfs-actions.pod:1432 ../src/guestfs-actions.pod:1485 ../src/guestfs-actions.pod:1543 ../src/guestfs-actions.pod:6042
26115 msgid "(Added in 1.13.25)"
26116 msgstr ""
26117
26118 #. type: =head2
26119 #: ../src/guestfs-actions.pod:1381
26120 msgid "guestfs_copy_device_to_device_va"
26121 msgstr ""
26122
26123 #. type: verbatim
26124 #: ../src/guestfs-actions.pod:1383
26125 #, no-wrap
26126 msgid ""
26127 " int\n"
26128 " guestfs_copy_device_to_device_va (guestfs_h *g,\n"
26129 "                                   const char *src,\n"
26130 "                                   const char *dest,\n"
26131 "                                   va_list args);\n"
26132 "\n"
26133 msgstr ""
26134
26135 #. type: textblock
26136 #: ../src/guestfs-actions.pod:1389
26137 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_device>."
26138 msgstr ""
26139
26140 #. type: =head2
26141 #: ../src/guestfs-actions.pod:1393
26142 msgid "guestfs_copy_device_to_device_argv"
26143 msgstr ""
26144
26145 #. type: verbatim
26146 #: ../src/guestfs-actions.pod:1395
26147 #, no-wrap
26148 msgid ""
26149 " int\n"
26150 " guestfs_copy_device_to_device_argv (guestfs_h *g,\n"
26151 "                                     const char *src,\n"
26152 "                                     const char *dest,\n"
26153 "                                     const struct "
26154 "guestfs_copy_device_to_device_argv *optargs);\n"
26155 "\n"
26156 msgstr ""
26157
26158 #. type: textblock
26159 #: ../src/guestfs-actions.pod:1401
26160 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_device>."
26161 msgstr ""
26162
26163 #. type: =head2
26164 #: ../src/guestfs-actions.pod:1405
26165 msgid "guestfs_copy_device_to_file"
26166 msgstr ""
26167
26168 #. type: verbatim
26169 #: ../src/guestfs-actions.pod:1407
26170 #, no-wrap
26171 msgid ""
26172 " int\n"
26173 " guestfs_copy_device_to_file (guestfs_h *g,\n"
26174 "                              const char *src,\n"
26175 "                              const char *dest,\n"
26176 "                              ...);\n"
26177 "\n"
26178 msgstr ""
26179
26180 #. type: verbatim
26181 #: ../src/guestfs-actions.pod:1418
26182 #, no-wrap
26183 msgid ""
26184 " GUESTFS_COPY_DEVICE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
26185 " GUESTFS_COPY_DEVICE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
26186 " GUESTFS_COPY_DEVICE_TO_FILE_SIZE, int64_t size,\n"
26187 "\n"
26188 msgstr ""
26189
26190 #. type: textblock
26191 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1475 ../src/guestfs-actions.pod:1528
26192 msgid "See C<guestfs_copy_device_to_device> for a general overview of this call."
26193 msgstr ""
26194
26195 #. type: =head2
26196 #: ../src/guestfs-actions.pod:1434
26197 msgid "guestfs_copy_device_to_file_va"
26198 msgstr ""
26199
26200 #. type: verbatim
26201 #: ../src/guestfs-actions.pod:1436
26202 #, no-wrap
26203 msgid ""
26204 " int\n"
26205 " guestfs_copy_device_to_file_va (guestfs_h *g,\n"
26206 "                                 const char *src,\n"
26207 "                                 const char *dest,\n"
26208 "                                 va_list args);\n"
26209 "\n"
26210 msgstr ""
26211
26212 #. type: textblock
26213 #: ../src/guestfs-actions.pod:1442
26214 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_file>."
26215 msgstr ""
26216
26217 #. type: =head2
26218 #: ../src/guestfs-actions.pod:1446
26219 msgid "guestfs_copy_device_to_file_argv"
26220 msgstr ""
26221
26222 #. type: verbatim
26223 #: ../src/guestfs-actions.pod:1448
26224 #, no-wrap
26225 msgid ""
26226 " int\n"
26227 " guestfs_copy_device_to_file_argv (guestfs_h *g,\n"
26228 "                                   const char *src,\n"
26229 "                                   const char *dest,\n"
26230 "                                   const struct "
26231 "guestfs_copy_device_to_file_argv *optargs);\n"
26232 "\n"
26233 msgstr ""
26234
26235 #. type: textblock
26236 #: ../src/guestfs-actions.pod:1454
26237 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_file>."
26238 msgstr ""
26239
26240 #. type: =head2
26241 #: ../src/guestfs-actions.pod:1458
26242 msgid "guestfs_copy_file_to_device"
26243 msgstr ""
26244
26245 #. type: verbatim
26246 #: ../src/guestfs-actions.pod:1460
26247 #, no-wrap
26248 msgid ""
26249 " int\n"
26250 " guestfs_copy_file_to_device (guestfs_h *g,\n"
26251 "                              const char *src,\n"
26252 "                              const char *dest,\n"
26253 "                              ...);\n"
26254 "\n"
26255 msgstr ""
26256
26257 #. type: verbatim
26258 #: ../src/guestfs-actions.pod:1471
26259 #, no-wrap
26260 msgid ""
26261 " GUESTFS_COPY_FILE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
26262 " GUESTFS_COPY_FILE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
26263 " GUESTFS_COPY_FILE_TO_DEVICE_SIZE, int64_t size,\n"
26264 "\n"
26265 msgstr ""
26266
26267 #. type: =head2
26268 #: ../src/guestfs-actions.pod:1487
26269 msgid "guestfs_copy_file_to_device_va"
26270 msgstr ""
26271
26272 #. type: verbatim
26273 #: ../src/guestfs-actions.pod:1489
26274 #, no-wrap
26275 msgid ""
26276 " int\n"
26277 " guestfs_copy_file_to_device_va (guestfs_h *g,\n"
26278 "                                 const char *src,\n"
26279 "                                 const char *dest,\n"
26280 "                                 va_list args);\n"
26281 "\n"
26282 msgstr ""
26283
26284 #. type: textblock
26285 #: ../src/guestfs-actions.pod:1495
26286 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_device>."
26287 msgstr ""
26288
26289 #. type: =head2
26290 #: ../src/guestfs-actions.pod:1499
26291 msgid "guestfs_copy_file_to_device_argv"
26292 msgstr ""
26293
26294 #. type: verbatim
26295 #: ../src/guestfs-actions.pod:1501
26296 #, no-wrap
26297 msgid ""
26298 " int\n"
26299 " guestfs_copy_file_to_device_argv (guestfs_h *g,\n"
26300 "                                   const char *src,\n"
26301 "                                   const char *dest,\n"
26302 "                                   const struct "
26303 "guestfs_copy_file_to_device_argv *optargs);\n"
26304 "\n"
26305 msgstr ""
26306
26307 #. type: textblock
26308 #: ../src/guestfs-actions.pod:1507
26309 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_device>."
26310 msgstr ""
26311
26312 #. type: =head2
26313 #: ../src/guestfs-actions.pod:1511
26314 msgid "guestfs_copy_file_to_file"
26315 msgstr ""
26316
26317 #. type: verbatim
26318 #: ../src/guestfs-actions.pod:1513
26319 #, no-wrap
26320 msgid ""
26321 " int\n"
26322 " guestfs_copy_file_to_file (guestfs_h *g,\n"
26323 "                            const char *src,\n"
26324 "                            const char *dest,\n"
26325 "                            ...);\n"
26326 "\n"
26327 msgstr ""
26328
26329 #. type: verbatim
26330 #: ../src/guestfs-actions.pod:1524
26331 #, no-wrap
26332 msgid ""
26333 " GUESTFS_COPY_FILE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
26334 " GUESTFS_COPY_FILE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
26335 " GUESTFS_COPY_FILE_TO_FILE_SIZE, int64_t size,\n"
26336 "\n"
26337 msgstr ""
26338
26339 #. type: textblock
26340 #: ../src/guestfs-actions.pod:1531
26341 msgid ""
26342 "This is B<not> the function you want for copying files.  This is for copying "
26343 "blocks within existing files.  See C<guestfs_cp>, C<guestfs_cp_a> and "
26344 "C<guestfs_mv> for general file copying and moving functions."
26345 msgstr ""
26346
26347 #. type: =head2
26348 #: ../src/guestfs-actions.pod:1545
26349 msgid "guestfs_copy_file_to_file_va"
26350 msgstr ""
26351
26352 #. type: verbatim
26353 #: ../src/guestfs-actions.pod:1547
26354 #, no-wrap
26355 msgid ""
26356 " int\n"
26357 " guestfs_copy_file_to_file_va (guestfs_h *g,\n"
26358 "                               const char *src,\n"
26359 "                               const char *dest,\n"
26360 "                               va_list args);\n"
26361 "\n"
26362 msgstr ""
26363
26364 #. type: textblock
26365 #: ../src/guestfs-actions.pod:1553
26366 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_file>."
26367 msgstr ""
26368
26369 #. type: =head2
26370 #: ../src/guestfs-actions.pod:1557
26371 msgid "guestfs_copy_file_to_file_argv"
26372 msgstr ""
26373
26374 #. type: verbatim
26375 #: ../src/guestfs-actions.pod:1559
26376 #, no-wrap
26377 msgid ""
26378 " int\n"
26379 " guestfs_copy_file_to_file_argv (guestfs_h *g,\n"
26380 "                                 const char *src,\n"
26381 "                                 const char *dest,\n"
26382 "                                 const struct guestfs_copy_file_to_file_argv "
26383 "*optargs);\n"
26384 "\n"
26385 msgstr ""
26386
26387 #. type: textblock
26388 #: ../src/guestfs-actions.pod:1565
26389 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_file>."
26390 msgstr ""
26391
26392 #. type: =head2
26393 #: ../src/guestfs-actions.pod:1569
26394 msgid "guestfs_copy_size"
26395 msgstr ""
26396
26397 #. type: verbatim
26398 #: ../src/guestfs-actions.pod:1571
26399 #, no-wrap
26400 msgid ""
26401 " int\n"
26402 " guestfs_copy_size (guestfs_h *g,\n"
26403 "                    const char *src,\n"
26404 "                    const char *dest,\n"
26405 "                    int64_t size);\n"
26406 "\n"
26407 msgstr ""
26408
26409 #. type: textblock
26410 #: ../src/guestfs-actions.pod:1577 ../src/guestfs-actions.pod:1634
26411 msgid ""
26412 "I<This function is deprecated.> In new code, use the "
26413 "L</guestfs_copy_device_to_device> call instead."
26414 msgstr ""
26415
26416 #. type: textblock
26417 #: ../src/guestfs-actions.pod:1597 ../src/guestfs-actions.pod:4820 ../src/guestfs-actions.pod:6212 ../src/guestfs-actions.pod:7942 ../src/guestfs-actions.pod:7962 ../src/guestfs-actions.pod:8048
26418 msgid "(Added in 1.0.87)"
26419 msgstr ""
26420
26421 #. type: =head2
26422 #: ../src/guestfs-actions.pod:1599
26423 msgid "guestfs_cp"
26424 msgstr ""
26425
26426 #. type: verbatim
26427 #: ../src/guestfs-actions.pod:1601
26428 #, no-wrap
26429 msgid ""
26430 " int\n"
26431 " guestfs_cp (guestfs_h *g,\n"
26432 "             const char *src,\n"
26433 "             const char *dest);\n"
26434 "\n"
26435 msgstr ""
26436
26437 #. type: textblock
26438 #: ../src/guestfs-actions.pod:1611 ../src/guestfs-actions.pod:1625 ../src/guestfs-actions.pod:1705 ../src/guestfs-actions.pod:1779 ../src/guestfs-actions.pod:1893 ../src/guestfs-actions.pod:5564 ../src/guestfs-actions.pod:6056
26439 msgid "(Added in 1.0.18)"
26440 msgstr ""
26441
26442 #. type: =head2
26443 #: ../src/guestfs-actions.pod:1613
26444 msgid "guestfs_cp_a"
26445 msgstr ""
26446
26447 #. type: verbatim
26448 #: ../src/guestfs-actions.pod:1615
26449 #, no-wrap
26450 msgid ""
26451 " int\n"
26452 " guestfs_cp_a (guestfs_h *g,\n"
26453 "               const char *src,\n"
26454 "               const char *dest);\n"
26455 "\n"
26456 msgstr ""
26457
26458 #. type: =head2
26459 #: ../src/guestfs-actions.pod:1627
26460 msgid "guestfs_dd"
26461 msgstr ""
26462
26463 #. type: verbatim
26464 #: ../src/guestfs-actions.pod:1629
26465 #, no-wrap
26466 msgid ""
26467 " int\n"
26468 " guestfs_dd (guestfs_h *g,\n"
26469 "             const char *src,\n"
26470 "             const char *dest);\n"
26471 "\n"
26472 msgstr ""
26473
26474 #. type: textblock
26475 #: ../src/guestfs-actions.pod:1646
26476 msgid ""
26477 "If the destination is a device, it must be as large or larger than the "
26478 "source file or device, otherwise the copy will fail.  This command cannot do "
26479 "partial copies (see C<guestfs_copy_device_to_device>)."
26480 msgstr ""
26481
26482 #. type: =head2
26483 #: ../src/guestfs-actions.pod:1655
26484 msgid "guestfs_df"
26485 msgstr ""
26486
26487 #. type: verbatim
26488 #: ../src/guestfs-actions.pod:1657
26489 #, no-wrap
26490 msgid ""
26491 " char *\n"
26492 " guestfs_df (guestfs_h *g);\n"
26493 "\n"
26494 msgstr ""
26495
26496 #. type: textblock
26497 #: ../src/guestfs-actions.pod:1662 ../src/guestfs-actions.pod:1679
26498 msgid ""
26499 "This command is mostly useful for interactive sessions.  It is I<not> "
26500 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
26501 "from programs."
26502 msgstr ""
26503
26504 #. type: textblock
26505 #: ../src/guestfs-actions.pod:1669 ../src/guestfs-actions.pod:1686 ../src/guestfs-actions.pod:1804 ../src/guestfs-actions.pod:2811 ../src/guestfs-actions.pod:2835 ../src/guestfs-actions.pod:2903 ../src/guestfs-actions.pod:4930 ../src/guestfs-actions.pod:5464 ../src/guestfs-actions.pod:7445 ../src/guestfs-actions.pod:7469 ../src/guestfs-actions.pod:8088 ../src/guestfs-actions.pod:8101 ../src/guestfs-actions.pod:8114
26506 msgid "(Added in 1.0.54)"
26507 msgstr ""
26508
26509 #. type: =head2
26510 #: ../src/guestfs-actions.pod:1671
26511 msgid "guestfs_df_h"
26512 msgstr ""
26513
26514 #. type: verbatim
26515 #: ../src/guestfs-actions.pod:1673
26516 #, no-wrap
26517 msgid ""
26518 " char *\n"
26519 " guestfs_df_h (guestfs_h *g);\n"
26520 "\n"
26521 msgstr ""
26522
26523 #. type: =head2
26524 #: ../src/guestfs-actions.pod:1688
26525 msgid "guestfs_dmesg"
26526 msgstr ""
26527
26528 #. type: verbatim
26529 #: ../src/guestfs-actions.pod:1690
26530 #, no-wrap
26531 msgid ""
26532 " char *\n"
26533 " guestfs_dmesg (guestfs_h *g);\n"
26534 "\n"
26535 msgstr ""
26536
26537 #. type: textblock
26538 #: ../src/guestfs-actions.pod:1697
26539 msgid ""
26540 "Another way to get the same information is to enable verbose messages with "
26541 "C<guestfs_set_verbose> or by setting the environment variable "
26542 "C<LIBGUESTFS_DEBUG=1> before running the program."
26543 msgstr ""
26544
26545 #. type: =head2
26546 #: ../src/guestfs-actions.pod:1707
26547 msgid "guestfs_download"
26548 msgstr ""
26549
26550 #. type: verbatim
26551 #: ../src/guestfs-actions.pod:1709
26552 #, no-wrap
26553 msgid ""
26554 " int\n"
26555 " guestfs_download (guestfs_h *g,\n"
26556 "                   const char *remotefilename,\n"
26557 "                   const char *filename);\n"
26558 "\n"
26559 msgstr ""
26560
26561 #. type: textblock
26562 #: ../src/guestfs-actions.pod:1719
26563 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
26564 msgstr ""
26565
26566 #. type: =head2
26567 #: ../src/guestfs-actions.pod:1730
26568 msgid "guestfs_download_offset"
26569 msgstr ""
26570
26571 #. type: verbatim
26572 #: ../src/guestfs-actions.pod:1732
26573 #, no-wrap
26574 msgid ""
26575 " int\n"
26576 " guestfs_download_offset (guestfs_h *g,\n"
26577 "                          const char *remotefilename,\n"
26578 "                          const char *filename,\n"
26579 "                          int64_t offset,\n"
26580 "                          int64_t size);\n"
26581 "\n"
26582 msgstr ""
26583
26584 #. type: textblock
26585 #: ../src/guestfs-actions.pod:1745
26586 msgid ""
26587 "Note that there is no limit on the amount of data that can be downloaded "
26588 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
26589 "full amount unless an error occurs."
26590 msgstr ""
26591
26592 #. type: textblock
26593 #: ../src/guestfs-actions.pod:1750
26594 msgid "See also C<guestfs_download>, C<guestfs_pread>."
26595 msgstr ""
26596
26597 #. type: textblock
26598 #: ../src/guestfs-actions.pod:1759 ../src/guestfs-actions.pod:7746
26599 msgid "(Added in 1.5.17)"
26600 msgstr ""
26601
26602 #. type: =head2
26603 #: ../src/guestfs-actions.pod:1761
26604 msgid "guestfs_drop_caches"
26605 msgstr ""
26606
26607 #. type: verbatim
26608 #: ../src/guestfs-actions.pod:1763
26609 #, no-wrap
26610 msgid ""
26611 " int\n"
26612 " guestfs_drop_caches (guestfs_h *g,\n"
26613 "                      int whattodrop);\n"
26614 "\n"
26615 msgstr ""
26616
26617 #. type: =head2
26618 #: ../src/guestfs-actions.pod:1781
26619 msgid "guestfs_du"
26620 msgstr ""
26621
26622 #. type: verbatim
26623 #: ../src/guestfs-actions.pod:1783
26624 #, no-wrap
26625 msgid ""
26626 " int64_t\n"
26627 " guestfs_du (guestfs_h *g,\n"
26628 "             const char *path);\n"
26629 "\n"
26630 msgstr ""
26631
26632 #. type: =head2
26633 #: ../src/guestfs-actions.pod:1806
26634 msgid "guestfs_e2fsck_f"
26635 msgstr ""
26636
26637 #. type: verbatim
26638 #: ../src/guestfs-actions.pod:1808
26639 #, no-wrap
26640 msgid ""
26641 " int\n"
26642 " guestfs_e2fsck_f (guestfs_h *g,\n"
26643 "                   const char *device);\n"
26644 "\n"
26645 msgstr ""
26646
26647 #. type: textblock
26648 #: ../src/guestfs-actions.pod:1816
26649 msgid ""
26650 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
26651 "Normally you should use C<guestfs_fsck>."
26652 msgstr ""
26653
26654 #. type: textblock
26655 #: ../src/guestfs-actions.pod:1821
26656 msgid "(Added in 1.0.29)"
26657 msgstr ""
26658
26659 #. type: =head2
26660 #: ../src/guestfs-actions.pod:1823
26661 msgid "guestfs_echo_daemon"
26662 msgstr ""
26663
26664 #. type: verbatim
26665 #: ../src/guestfs-actions.pod:1825
26666 #, no-wrap
26667 msgid ""
26668 " char *\n"
26669 " guestfs_echo_daemon (guestfs_h *g,\n"
26670 "                      char *const *words);\n"
26671 "\n"
26672 msgstr ""
26673
26674 #. type: textblock
26675 #: ../src/guestfs-actions.pod:1834
26676 msgid "See also C<guestfs_ping_daemon>."
26677 msgstr ""
26678
26679 #. type: textblock
26680 #: ../src/guestfs-actions.pod:1839 ../src/guestfs-actions.pod:2597 ../src/guestfs-actions.pod:6926
26681 msgid "(Added in 1.0.69)"
26682 msgstr ""
26683
26684 #. type: =head2
26685 #: ../src/guestfs-actions.pod:1841
26686 msgid "guestfs_egrep"
26687 msgstr ""
26688
26689 #. type: verbatim
26690 #: ../src/guestfs-actions.pod:1843
26691 #, no-wrap
26692 msgid ""
26693 " char **\n"
26694 " guestfs_egrep (guestfs_h *g,\n"
26695 "                const char *regex,\n"
26696 "                const char *path);\n"
26697 "\n"
26698 msgstr ""
26699
26700 #. type: textblock
26701 #: ../src/guestfs-actions.pod:1858 ../src/guestfs-actions.pod:1877 ../src/guestfs-actions.pod:1934 ../src/guestfs-actions.pod:1980 ../src/guestfs-actions.pod:1999 ../src/guestfs-actions.pod:2727 ../src/guestfs-actions.pod:2746 ../src/guestfs-actions.pod:2924 ../src/guestfs-actions.pod:2937 ../src/guestfs-actions.pod:2952 ../src/guestfs-actions.pod:2998 ../src/guestfs-actions.pod:3020 ../src/guestfs-actions.pod:3033 ../src/guestfs-actions.pod:4319 ../src/guestfs-actions.pod:4333 ../src/guestfs-actions.pod:4346 ../src/guestfs-actions.pod:4360 ../src/guestfs-actions.pod:5352 ../src/guestfs-actions.pod:6390 ../src/guestfs-actions.pod:6439 ../src/guestfs-actions.pod:7313 ../src/guestfs-actions.pod:7325 ../src/guestfs-actions.pod:7338 ../src/guestfs-actions.pod:7351 ../src/guestfs-actions.pod:7373 ../src/guestfs-actions.pod:7386 ../src/guestfs-actions.pod:7399 ../src/guestfs-actions.pod:7412 ../src/guestfs-actions.pod:8206 ../src/guestfs-actions.pod:8225 ../src/guestfs-actions.pod:8316 ../src/guestfs-actions.pod:8335 ../src/guestfs-actions.pod:8381 ../src/guestfs-actions.pod:8400
26702 msgid "(Added in 1.0.66)"
26703 msgstr ""
26704
26705 #. type: =head2
26706 #: ../src/guestfs-actions.pod:1860
26707 msgid "guestfs_egrepi"
26708 msgstr ""
26709
26710 #. type: verbatim
26711 #: ../src/guestfs-actions.pod:1862
26712 #, no-wrap
26713 msgid ""
26714 " char **\n"
26715 " guestfs_egrepi (guestfs_h *g,\n"
26716 "                 const char *regex,\n"
26717 "                 const char *path);\n"
26718 "\n"
26719 msgstr ""
26720
26721 #. type: =head2
26722 #: ../src/guestfs-actions.pod:1879
26723 msgid "guestfs_equal"
26724 msgstr ""
26725
26726 #. type: verbatim
26727 #: ../src/guestfs-actions.pod:1881
26728 #, no-wrap
26729 msgid ""
26730 " int\n"
26731 " guestfs_equal (guestfs_h *g,\n"
26732 "                const char *file1,\n"
26733 "                const char *file2);\n"
26734 "\n"
26735 msgstr ""
26736
26737 #. type: =head2
26738 #: ../src/guestfs-actions.pod:1895
26739 msgid "guestfs_exists"
26740 msgstr ""
26741
26742 #. type: verbatim
26743 #: ../src/guestfs-actions.pod:1897
26744 #, no-wrap
26745 msgid ""
26746 " int\n"
26747 " guestfs_exists (guestfs_h *g,\n"
26748 "                 const char *path);\n"
26749 "\n"
26750 msgstr ""
26751
26752 #. type: textblock
26753 #: ../src/guestfs-actions.pod:1904
26754 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
26755 msgstr ""
26756
26757 #. type: =head2
26758 #: ../src/guestfs-actions.pod:1910
26759 msgid "guestfs_fallocate"
26760 msgstr ""
26761
26762 #. type: verbatim
26763 #: ../src/guestfs-actions.pod:1912
26764 #, no-wrap
26765 msgid ""
26766 " int\n"
26767 " guestfs_fallocate (guestfs_h *g,\n"
26768 "                    const char *path,\n"
26769 "                    int len);\n"
26770 "\n"
26771 msgstr ""
26772
26773 #. type: textblock
26774 #: ../src/guestfs-actions.pod:1917
26775 msgid ""
26776 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
26777 "call instead."
26778 msgstr ""
26779
26780 #. type: =head2
26781 #: ../src/guestfs-actions.pod:1936
26782 msgid "guestfs_fallocate64"
26783 msgstr ""
26784
26785 #. type: verbatim
26786 #: ../src/guestfs-actions.pod:1938
26787 #, no-wrap
26788 msgid ""
26789 " int\n"
26790 " guestfs_fallocate64 (guestfs_h *g,\n"
26791 "                      const char *path,\n"
26792 "                      int64_t len);\n"
26793 "\n"
26794 msgstr ""
26795
26796 #. type: textblock
26797 #: ../src/guestfs-actions.pod:1947
26798 msgid ""
26799 "Note that this call allocates disk blocks for the file.  To create a sparse "
26800 "file use C<guestfs_truncate_size> instead."
26801 msgstr ""
26802
26803 #. type: textblock
26804 #: ../src/guestfs-actions.pod:1950
26805 msgid ""
26806 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
26807 "oversight it only allowed 30 bit lengths to be specified, effectively "
26808 "limiting the maximum size of files created through that call to 1GB."
26809 msgstr ""
26810
26811 #. type: textblock
26812 #: ../src/guestfs-actions.pod:1961
26813 msgid "(Added in 1.3.17)"
26814 msgstr ""
26815
26816 #. type: =head2
26817 #: ../src/guestfs-actions.pod:1963
26818 msgid "guestfs_fgrep"
26819 msgstr ""
26820
26821 #. type: verbatim
26822 #: ../src/guestfs-actions.pod:1965
26823 #, no-wrap
26824 msgid ""
26825 " char **\n"
26826 " guestfs_fgrep (guestfs_h *g,\n"
26827 "                const char *pattern,\n"
26828 "                const char *path);\n"
26829 "\n"
26830 msgstr ""
26831
26832 #. type: =head2
26833 #: ../src/guestfs-actions.pod:1982
26834 msgid "guestfs_fgrepi"
26835 msgstr ""
26836
26837 #. type: verbatim
26838 #: ../src/guestfs-actions.pod:1984
26839 #, no-wrap
26840 msgid ""
26841 " char **\n"
26842 " guestfs_fgrepi (guestfs_h *g,\n"
26843 "                 const char *pattern,\n"
26844 "                 const char *path);\n"
26845 "\n"
26846 msgstr ""
26847
26848 #. type: =head2
26849 #: ../src/guestfs-actions.pod:2001
26850 msgid "guestfs_file"
26851 msgstr ""
26852
26853 #. type: verbatim
26854 #: ../src/guestfs-actions.pod:2003
26855 #, no-wrap
26856 msgid ""
26857 " char *\n"
26858 " guestfs_file (guestfs_h *g,\n"
26859 "               const char *path);\n"
26860 "\n"
26861 msgstr ""
26862
26863 #. type: textblock
26864 #: ../src/guestfs-actions.pod:2021
26865 msgid ""
26866 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
26867 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
26868 msgstr ""
26869
26870 #. type: =head2
26871 #: ../src/guestfs-actions.pod:2029
26872 msgid "guestfs_file_architecture"
26873 msgstr ""
26874
26875 #. type: verbatim
26876 #: ../src/guestfs-actions.pod:2031
26877 #, no-wrap
26878 msgid ""
26879 " char *\n"
26880 " guestfs_file_architecture (guestfs_h *g,\n"
26881 "                            const char *filename);\n"
26882 "\n"
26883 msgstr ""
26884
26885 #. type: textblock
26886 #: ../src/guestfs-actions.pod:2139 ../src/guestfs-actions.pod:2302 ../src/guestfs-actions.pod:2319 ../src/guestfs-actions.pod:3053 ../src/guestfs-actions.pod:3155 ../src/guestfs-actions.pod:3221 ../src/guestfs-actions.pod:3408 ../src/guestfs-actions.pod:3426 ../src/guestfs-actions.pod:3466 ../src/guestfs-actions.pod:3542 ../src/guestfs-actions.pod:3639 ../src/guestfs-actions.pod:3876 ../src/guestfs-actions.pod:4008
26887 msgid "(Added in 1.5.3)"
26888 msgstr ""
26889
26890 #. type: =head2
26891 #: ../src/guestfs-actions.pod:2141
26892 msgid "guestfs_filesize"
26893 msgstr ""
26894
26895 #. type: verbatim
26896 #: ../src/guestfs-actions.pod:2143
26897 #, no-wrap
26898 msgid ""
26899 " int64_t\n"
26900 " guestfs_filesize (guestfs_h *g,\n"
26901 "                   const char *file);\n"
26902 "\n"
26903 msgstr ""
26904
26905 #. type: textblock
26906 #: ../src/guestfs-actions.pod:2149
26907 msgid ""
26908 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
26909 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
26910 "devices, use C<guestfs_blockdev_getsize64>."
26911 msgstr ""
26912
26913 #. type: textblock
26914 #: ../src/guestfs-actions.pod:2155
26915 msgid "(Added in 1.0.82)"
26916 msgstr ""
26917
26918 #. type: =head2
26919 #: ../src/guestfs-actions.pod:2157
26920 msgid "guestfs_fill"
26921 msgstr ""
26922
26923 #. type: verbatim
26924 #: ../src/guestfs-actions.pod:2159
26925 #, no-wrap
26926 msgid ""
26927 " int\n"
26928 " guestfs_fill (guestfs_h *g,\n"
26929 "               int c,\n"
26930 "               int len,\n"
26931 "               const char *path);\n"
26932 "\n"
26933 msgstr ""
26934
26935 #. type: textblock
26936 #: ../src/guestfs-actions.pod:2169
26937 msgid ""
26938 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
26939 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
26940 "bytes use C<guestfs_fill_pattern>."
26941 msgstr ""
26942
26943 #. type: textblock
26944 #: ../src/guestfs-actions.pod:2181
26945 msgid "(Added in 1.0.79)"
26946 msgstr ""
26947
26948 #. type: =head2
26949 #: ../src/guestfs-actions.pod:2183
26950 msgid "guestfs_fill_pattern"
26951 msgstr ""
26952
26953 #. type: verbatim
26954 #: ../src/guestfs-actions.pod:2185
26955 #, no-wrap
26956 msgid ""
26957 " int\n"
26958 " guestfs_fill_pattern (guestfs_h *g,\n"
26959 "                       const char *pattern,\n"
26960 "                       int len,\n"
26961 "                       const char *path);\n"
26962 "\n"
26963 msgstr ""
26964
26965 #. type: textblock
26966 #: ../src/guestfs-actions.pod:2191
26967 msgid ""
26968 "This function is like C<guestfs_fill> except that it creates a new file of "
26969 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
26970 "pattern is truncated if necessary to ensure the length of the file is "
26971 "exactly C<len> bytes."
26972 msgstr ""
26973
26974 #. type: textblock
26975 #: ../src/guestfs-actions.pod:2203
26976 msgid "(Added in 1.3.12)"
26977 msgstr ""
26978
26979 #. type: =head2
26980 #: ../src/guestfs-actions.pod:2205
26981 msgid "guestfs_find"
26982 msgstr ""
26983
26984 #. type: verbatim
26985 #: ../src/guestfs-actions.pod:2207
26986 #, no-wrap
26987 msgid ""
26988 " char **\n"
26989 " guestfs_find (guestfs_h *g,\n"
26990 "               const char *directory);\n"
26991 "\n"
26992 msgstr ""
26993
26994 #. type: textblock
26995 #: ../src/guestfs-actions.pod:2223
26996 msgid "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
26997 msgstr ""
26998
26999 #. type: textblock
27000 #: ../src/guestfs-actions.pod:2236
27001 msgid "See also C<guestfs_find0>."
27002 msgstr ""
27003
27004 #. type: textblock
27005 #: ../src/guestfs-actions.pod:2245 ../src/guestfs-actions.pod:4757 ../src/guestfs-actions.pod:6474
27006 msgid "(Added in 1.0.27)"
27007 msgstr ""
27008
27009 #. type: =head2
27010 #: ../src/guestfs-actions.pod:2247
27011 msgid "guestfs_find0"
27012 msgstr ""
27013
27014 #. type: verbatim
27015 #: ../src/guestfs-actions.pod:2249
27016 #, no-wrap
27017 msgid ""
27018 " int\n"
27019 " guestfs_find0 (guestfs_h *g,\n"
27020 "                const char *directory,\n"
27021 "                const char *files);\n"
27022 "\n"
27023 msgstr ""
27024
27025 #. type: textblock
27026 #: ../src/guestfs-actions.pod:2258
27027 msgid ""
27028 "This command works the same way as C<guestfs_find> with the following "
27029 "exceptions:"
27030 msgstr ""
27031
27032 #. type: textblock
27033 #: ../src/guestfs-actions.pod:2285
27034 msgid "(Added in 1.0.74)"
27035 msgstr ""
27036
27037 #. type: =head2
27038 #: ../src/guestfs-actions.pod:2287
27039 msgid "guestfs_findfs_label"
27040 msgstr ""
27041
27042 #. type: verbatim
27043 #: ../src/guestfs-actions.pod:2289
27044 #, no-wrap
27045 msgid ""
27046 " char *\n"
27047 " guestfs_findfs_label (guestfs_h *g,\n"
27048 "                       const char *label);\n"
27049 "\n"
27050 msgstr ""
27051
27052 #. type: textblock
27053 #: ../src/guestfs-actions.pod:2297
27054 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
27055 msgstr ""
27056
27057 #. type: =head2
27058 #: ../src/guestfs-actions.pod:2304
27059 msgid "guestfs_findfs_uuid"
27060 msgstr ""
27061
27062 #. type: verbatim
27063 #: ../src/guestfs-actions.pod:2306
27064 #, no-wrap
27065 msgid ""
27066 " char *\n"
27067 " guestfs_findfs_uuid (guestfs_h *g,\n"
27068 "                      const char *uuid);\n"
27069 "\n"
27070 msgstr ""
27071
27072 #. type: textblock
27073 #: ../src/guestfs-actions.pod:2314
27074 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
27075 msgstr ""
27076
27077 #. type: =head2
27078 #: ../src/guestfs-actions.pod:2321
27079 msgid "guestfs_fsck"
27080 msgstr ""
27081
27082 #. type: verbatim
27083 #: ../src/guestfs-actions.pod:2323
27084 #, no-wrap
27085 msgid ""
27086 " int\n"
27087 " guestfs_fsck (guestfs_h *g,\n"
27088 "               const char *fstype,\n"
27089 "               const char *device);\n"
27090 "\n"
27091 msgstr ""
27092
27093 #. type: textblock
27094 #: ../src/guestfs-actions.pod:2358 ../src/guestfs-actions.pod:8253
27095 msgid "(Added in 1.0.16)"
27096 msgstr ""
27097
27098 #. type: =head2
27099 #: ../src/guestfs-actions.pod:2360
27100 msgid "guestfs_get_append"
27101 msgstr ""
27102
27103 #. type: verbatim
27104 #: ../src/guestfs-actions.pod:2362
27105 #, no-wrap
27106 msgid ""
27107 " const char *\n"
27108 " guestfs_get_append (guestfs_h *g);\n"
27109 "\n"
27110 msgstr ""
27111
27112 #. type: textblock
27113 #: ../src/guestfs-actions.pod:2370
27114 msgid ""
27115 "This function returns a string which may be NULL.  There is no way to return "
27116 "an error from this function.  The string is owned by the guest handle and "
27117 "must I<not> be freed."
27118 msgstr ""
27119
27120 #. type: textblock
27121 #: ../src/guestfs-actions.pod:2374 ../src/guestfs-actions.pod:6152 ../src/guestfs-actions.pod:6631 ../src/guestfs-actions.pod:7080 ../src/guestfs-actions.pod:7099 ../src/guestfs-actions.pod:7115 ../src/guestfs-actions.pod:7139 ../src/guestfs-actions.pod:7893 ../src/guestfs-actions.pod:7908 ../src/guestfs-actions.pod:8297
27122 msgid "(Added in 1.0.26)"
27123 msgstr ""
27124
27125 #. type: =head2
27126 #: ../src/guestfs-actions.pod:2376
27127 msgid "guestfs_get_attach_method"
27128 msgstr ""
27129
27130 #. type: verbatim
27131 #: ../src/guestfs-actions.pod:2378
27132 #, no-wrap
27133 msgid ""
27134 " char *\n"
27135 " guestfs_get_attach_method (guestfs_h *g);\n"
27136 "\n"
27137 msgstr ""
27138
27139 #. type: textblock
27140 #: ../src/guestfs-actions.pod:2381
27141 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
27142 msgstr ""
27143
27144 #. type: textblock
27145 #: ../src/guestfs-actions.pod:2386 ../src/guestfs-actions.pod:6661
27146 msgid "(Added in 1.9.8)"
27147 msgstr ""
27148
27149 #. type: =head2
27150 #: ../src/guestfs-actions.pod:2388
27151 msgid "guestfs_get_autosync"
27152 msgstr ""
27153
27154 #. type: verbatim
27155 #: ../src/guestfs-actions.pod:2390
27156 #, no-wrap
27157 msgid ""
27158 " int\n"
27159 " guestfs_get_autosync (guestfs_h *g);\n"
27160 "\n"
27161 msgstr ""
27162
27163 #. type: =head2
27164 #: ../src/guestfs-actions.pod:2399
27165 msgid "guestfs_get_direct"
27166 msgstr ""
27167
27168 #. type: verbatim
27169 #: ../src/guestfs-actions.pod:2401
27170 #, no-wrap
27171 msgid ""
27172 " int\n"
27173 " guestfs_get_direct (guestfs_h *g);\n"
27174 "\n"
27175 msgstr ""
27176
27177 #. type: textblock
27178 #: ../src/guestfs-actions.pod:2408 ../src/guestfs-actions.pod:6702
27179 msgid "(Added in 1.0.72)"
27180 msgstr ""
27181
27182 #. type: =head2
27183 #: ../src/guestfs-actions.pod:2410
27184 msgid "guestfs_get_e2label"
27185 msgstr ""
27186
27187 #. type: verbatim
27188 #: ../src/guestfs-actions.pod:2412
27189 #, no-wrap
27190 msgid ""
27191 " char *\n"
27192 " guestfs_get_e2label (guestfs_h *g,\n"
27193 "                      const char *device);\n"
27194 "\n"
27195 msgstr ""
27196
27197 #. type: textblock
27198 #: ../src/guestfs-actions.pod:2416
27199 msgid ""
27200 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
27201 "call instead."
27202 msgstr ""
27203
27204 #. type: textblock
27205 #: ../src/guestfs-actions.pod:2429 ../src/guestfs-actions.pod:2450 ../src/guestfs-actions.pod:6720 ../src/guestfs-actions.pod:6739
27206 msgid "(Added in 1.0.15)"
27207 msgstr ""
27208
27209 #. type: =head2
27210 #: ../src/guestfs-actions.pod:2431
27211 msgid "guestfs_get_e2uuid"
27212 msgstr ""
27213
27214 #. type: verbatim
27215 #: ../src/guestfs-actions.pod:2433
27216 #, no-wrap
27217 msgid ""
27218 " char *\n"
27219 " guestfs_get_e2uuid (guestfs_h *g,\n"
27220 "                     const char *device);\n"
27221 "\n"
27222 msgstr ""
27223
27224 #. type: textblock
27225 #: ../src/guestfs-actions.pod:2437
27226 msgid ""
27227 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
27228 "call instead."
27229 msgstr ""
27230
27231 #. type: =head2
27232 #: ../src/guestfs-actions.pod:2452
27233 msgid "guestfs_get_memsize"
27234 msgstr ""
27235
27236 #. type: verbatim
27237 #: ../src/guestfs-actions.pod:2454
27238 #, no-wrap
27239 msgid ""
27240 " int\n"
27241 " guestfs_get_memsize (guestfs_h *g);\n"
27242 "\n"
27243 msgstr ""
27244
27245 #. type: textblock
27246 #: ../src/guestfs-actions.pod:2460
27247 msgid ""
27248 "If C<guestfs_set_memsize> was not called on this handle, and if "
27249 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
27250 "value for memsize."
27251 msgstr ""
27252
27253 #. type: textblock
27254 #: ../src/guestfs-actions.pod:2469 ../src/guestfs-actions.pod:5048 ../src/guestfs-actions.pod:5257 ../src/guestfs-actions.pod:5276 ../src/guestfs-actions.pod:5295 ../src/guestfs-actions.pod:5307 ../src/guestfs-actions.pod:5324 ../src/guestfs-actions.pod:5337 ../src/guestfs-actions.pod:6377 ../src/guestfs-actions.pod:6760 ../src/guestfs-actions.pod:7050 ../src/guestfs-actions.pod:7662
27255 msgid "(Added in 1.0.55)"
27256 msgstr ""
27257
27258 #. type: =head2
27259 #: ../src/guestfs-actions.pod:2471
27260 msgid "guestfs_get_network"
27261 msgstr ""
27262
27263 #. type: verbatim
27264 #: ../src/guestfs-actions.pod:2473
27265 #, no-wrap
27266 msgid ""
27267 " int\n"
27268 " guestfs_get_network (guestfs_h *g);\n"
27269 "\n"
27270 msgstr ""
27271
27272 #. type: textblock
27273 #: ../src/guestfs-actions.pod:2480 ../src/guestfs-actions.pod:6779
27274 msgid "(Added in 1.5.4)"
27275 msgstr ""
27276
27277 #. type: =head2
27278 #: ../src/guestfs-actions.pod:2482
27279 msgid "guestfs_get_path"
27280 msgstr ""
27281
27282 #. type: verbatim
27283 #: ../src/guestfs-actions.pod:2484
27284 #, no-wrap
27285 msgid ""
27286 " const char *\n"
27287 " guestfs_get_path (guestfs_h *g);\n"
27288 "\n"
27289 msgstr ""
27290
27291 #. type: textblock
27292 #: ../src/guestfs-actions.pod:2492 ../src/guestfs-actions.pod:2532
27293 msgid ""
27294 "This function returns a string, or NULL on error.  The string is owned by "
27295 "the guest handle and must I<not> be freed."
27296 msgstr ""
27297
27298 #. type: =head2
27299 #: ../src/guestfs-actions.pod:2497
27300 msgid "guestfs_get_pgroup"
27301 msgstr ""
27302
27303 #. type: verbatim
27304 #: ../src/guestfs-actions.pod:2499
27305 #, no-wrap
27306 msgid ""
27307 " int\n"
27308 " guestfs_get_pgroup (guestfs_h *g);\n"
27309 "\n"
27310 msgstr ""
27311
27312 #. type: textblock
27313 #: ../src/guestfs-actions.pod:2506 ../src/guestfs-actions.pod:6815 ../src/guestfs-actions.pod:8154
27314 msgid "(Added in 1.11.18)"
27315 msgstr ""
27316
27317 #. type: =head2
27318 #: ../src/guestfs-actions.pod:2508
27319 msgid "guestfs_get_pid"
27320 msgstr ""
27321
27322 #. type: verbatim
27323 #: ../src/guestfs-actions.pod:2510
27324 #, no-wrap
27325 msgid ""
27326 " int\n"
27327 " guestfs_get_pid (guestfs_h *g);\n"
27328 "\n"
27329 msgstr ""
27330
27331 #. type: textblock
27332 #: ../src/guestfs-actions.pod:2520
27333 msgid "(Added in 1.0.56)"
27334 msgstr ""
27335
27336 #. type: =head2
27337 #: ../src/guestfs-actions.pod:2522
27338 msgid "guestfs_get_qemu"
27339 msgstr ""
27340
27341 #. type: verbatim
27342 #: ../src/guestfs-actions.pod:2524
27343 #, no-wrap
27344 msgid ""
27345 " const char *\n"
27346 " guestfs_get_qemu (guestfs_h *g);\n"
27347 "\n"
27348 msgstr ""
27349
27350 #. type: textblock
27351 #: ../src/guestfs-actions.pod:2535 ../src/guestfs-actions.pod:6843
27352 msgid "(Added in 1.0.6)"
27353 msgstr ""
27354
27355 #. type: =head2
27356 #: ../src/guestfs-actions.pod:2537
27357 msgid "guestfs_get_recovery_proc"
27358 msgstr ""
27359
27360 #. type: verbatim
27361 #: ../src/guestfs-actions.pod:2539
27362 #, no-wrap
27363 msgid ""
27364 " int\n"
27365 " guestfs_get_recovery_proc (guestfs_h *g);\n"
27366 "\n"
27367 msgstr ""
27368
27369 #. type: textblock
27370 #: ../src/guestfs-actions.pod:2546 ../src/guestfs-actions.pod:4130 ../src/guestfs-actions.pod:4461 ../src/guestfs-actions.pod:4855 ../src/guestfs-actions.pod:4887 ../src/guestfs-actions.pod:6082 ../src/guestfs-actions.pod:6425 ../src/guestfs-actions.pod:6867 ../src/guestfs-actions.pod:7565 ../src/guestfs-actions.pod:7585 ../src/guestfs-actions.pod:7777
27371 msgid "(Added in 1.0.77)"
27372 msgstr ""
27373
27374 #. type: =head2
27375 #: ../src/guestfs-actions.pod:2548
27376 msgid "guestfs_get_selinux"
27377 msgstr ""
27378
27379 #. type: verbatim
27380 #: ../src/guestfs-actions.pod:2550
27381 #, no-wrap
27382 msgid ""
27383 " int\n"
27384 " guestfs_get_selinux (guestfs_h *g);\n"
27385 "\n"
27386 msgstr ""
27387
27388 #. type: textblock
27389 #: ../src/guestfs-actions.pod:2553
27390 msgid ""
27391 "This returns the current setting of the selinux flag which is passed to the "
27392 "appliance at boot time.  See C<guestfs_set_selinux>."
27393 msgstr ""
27394
27395 #. type: textblock
27396 #: ../src/guestfs-actions.pod:2561 ../src/guestfs-actions.pod:2635 ../src/guestfs-actions.pod:6886 ../src/guestfs-actions.pod:6960
27397 msgid "(Added in 1.0.67)"
27398 msgstr ""
27399
27400 #. type: =head2
27401 #: ../src/guestfs-actions.pod:2563
27402 msgid "guestfs_get_smp"
27403 msgstr ""
27404
27405 #. type: verbatim
27406 #: ../src/guestfs-actions.pod:2565
27407 #, no-wrap
27408 msgid ""
27409 " int\n"
27410 " guestfs_get_smp (guestfs_h *g);\n"
27411 "\n"
27412 msgstr ""
27413
27414 #. type: =head2
27415 #: ../src/guestfs-actions.pod:2574
27416 msgid "guestfs_get_state"
27417 msgstr ""
27418
27419 #. type: verbatim
27420 #: ../src/guestfs-actions.pod:2576
27421 #, no-wrap
27422 msgid ""
27423 " int\n"
27424 " guestfs_get_state (guestfs_h *g);\n"
27425 "\n"
27426 msgstr ""
27427
27428 #. type: =head2
27429 #: ../src/guestfs-actions.pod:2588
27430 msgid "guestfs_get_trace"
27431 msgstr ""
27432
27433 #. type: verbatim
27434 #: ../src/guestfs-actions.pod:2590
27435 #, no-wrap
27436 msgid ""
27437 " int\n"
27438 " guestfs_get_trace (guestfs_h *g);\n"
27439 "\n"
27440 msgstr ""
27441
27442 #. type: =head2
27443 #: ../src/guestfs-actions.pod:2599
27444 msgid "guestfs_get_umask"
27445 msgstr ""
27446
27447 #. type: verbatim
27448 #: ../src/guestfs-actions.pod:2601
27449 #, no-wrap
27450 msgid ""
27451 " int\n"
27452 " guestfs_get_umask (guestfs_h *g);\n"
27453 "\n"
27454 msgstr ""
27455
27456 #. type: textblock
27457 #: ../src/guestfs-actions.pod:2604
27458 msgid ""
27459 "Return the current umask.  By default the umask is C<022> unless it has been "
27460 "set by calling C<guestfs_umask>."
27461 msgstr ""
27462
27463 #. type: =head2
27464 #: ../src/guestfs-actions.pod:2611
27465 msgid "guestfs_get_verbose"
27466 msgstr ""
27467
27468 #. type: verbatim
27469 #: ../src/guestfs-actions.pod:2613
27470 #, no-wrap
27471 msgid ""
27472 " int\n"
27473 " guestfs_get_verbose (guestfs_h *g);\n"
27474 "\n"
27475 msgstr ""
27476
27477 #. type: =head2
27478 #: ../src/guestfs-actions.pod:2622
27479 msgid "guestfs_getcon"
27480 msgstr ""
27481
27482 #. type: verbatim
27483 #: ../src/guestfs-actions.pod:2624
27484 #, no-wrap
27485 msgid ""
27486 " char *\n"
27487 " guestfs_getcon (guestfs_h *g);\n"
27488 "\n"
27489 msgstr ""
27490
27491 #. type: textblock
27492 #: ../src/guestfs-actions.pod:2629
27493 msgid "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
27494 msgstr ""
27495
27496 #. type: =head2
27497 #: ../src/guestfs-actions.pod:2637
27498 msgid "guestfs_getxattr"
27499 msgstr ""
27500
27501 #. type: verbatim
27502 #: ../src/guestfs-actions.pod:2639
27503 #, no-wrap
27504 msgid ""
27505 " char *\n"
27506 " guestfs_getxattr (guestfs_h *g,\n"
27507 "                   const char *path,\n"
27508 "                   const char *name,\n"
27509 "                   size_t *size_r);\n"
27510 "\n"
27511 msgstr ""
27512
27513 #. type: textblock
27514 #: ../src/guestfs-actions.pod:2645
27515 msgid ""
27516 "Get a single extended attribute from file C<path> named C<name>.  This call "
27517 "follows symlinks.  If you want to lookup an extended attribute for the "
27518 "symlink itself, use C<guestfs_lgetxattr>."
27519 msgstr ""
27520
27521 #. type: textblock
27522 #: ../src/guestfs-actions.pod:2649 ../src/guestfs-actions.pod:4144
27523 msgid ""
27524 "Normally it is better to get all extended attributes from a file in one go "
27525 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
27526 "implementations are buggy and do not provide a way to list out attributes.  "
27527 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
27528 "extended attributes you want in advance and call this function."
27529 msgstr ""
27530
27531 #. type: textblock
27532 #: ../src/guestfs-actions.pod:2659
27533 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
27534 msgstr ""
27535
27536 #. type: textblock
27537 #: ../src/guestfs-actions.pod:2661 ../src/guestfs-actions.pod:2874 ../src/guestfs-actions.pod:3356 ../src/guestfs-actions.pod:4156 ../src/guestfs-actions.pod:6075 ../src/guestfs-actions.pod:6101 ../src/guestfs-actions.pod:6282
27538 msgid ""
27539 "This function returns a buffer, or NULL on error.  The size of the returned "
27540 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
27541 "after use>."
27542 msgstr ""
27543
27544 #. type: textblock
27545 #: ../src/guestfs-actions.pod:2665 ../src/guestfs-actions.pod:4160
27546 msgid "(Added in 1.7.24)"
27547 msgstr ""
27548
27549 #. type: =head2
27550 #: ../src/guestfs-actions.pod:2667
27551 msgid "guestfs_getxattrs"
27552 msgstr ""
27553
27554 #. type: verbatim
27555 #: ../src/guestfs-actions.pod:2669
27556 #, no-wrap
27557 msgid ""
27558 " struct guestfs_xattr_list *\n"
27559 " guestfs_getxattrs (guestfs_h *g,\n"
27560 "                    const char *path);\n"
27561 "\n"
27562 msgstr ""
27563
27564 #. type: textblock
27565 #: ../src/guestfs-actions.pod:2679
27566 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
27567 msgstr ""
27568
27569 #. type: textblock
27570 #: ../src/guestfs-actions.pod:2681 ../src/guestfs-actions.pod:4172 ../src/guestfs-actions.pod:4851
27571 msgid ""
27572 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
27573 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
27574 msgstr ""
27575
27576 #. type: textblock
27577 #: ../src/guestfs-actions.pod:2685 ../src/guestfs-actions.pod:4176 ../src/guestfs-actions.pod:4375 ../src/guestfs-actions.pod:4411 ../src/guestfs-actions.pod:6455 ../src/guestfs-actions.pod:6979 ../src/guestfs-actions.pod:8362
27578 msgid "(Added in 1.0.59)"
27579 msgstr ""
27580
27581 #. type: =head2
27582 #: ../src/guestfs-actions.pod:2687
27583 msgid "guestfs_glob_expand"
27584 msgstr ""
27585
27586 #. type: verbatim
27587 #: ../src/guestfs-actions.pod:2689
27588 #, no-wrap
27589 msgid ""
27590 " char **\n"
27591 " guestfs_glob_expand (guestfs_h *g,\n"
27592 "                      const char *pattern);\n"
27593 "\n"
27594 msgstr ""
27595
27596 #. type: textblock
27597 #: ../src/guestfs-actions.pod:2708 ../src/guestfs-actions.pod:7163 ../src/guestfs-actions.pod:7180
27598 msgid "(Added in 1.0.50)"
27599 msgstr ""
27600
27601 #. type: =head2
27602 #: ../src/guestfs-actions.pod:2710
27603 msgid "guestfs_grep"
27604 msgstr ""
27605
27606 #. type: verbatim
27607 #: ../src/guestfs-actions.pod:2712
27608 #, no-wrap
27609 msgid ""
27610 " char **\n"
27611 " guestfs_grep (guestfs_h *g,\n"
27612 "               const char *regex,\n"
27613 "               const char *path);\n"
27614 "\n"
27615 msgstr ""
27616
27617 #. type: =head2
27618 #: ../src/guestfs-actions.pod:2729
27619 msgid "guestfs_grepi"
27620 msgstr ""
27621
27622 #. type: verbatim
27623 #: ../src/guestfs-actions.pod:2731
27624 #, no-wrap
27625 msgid ""
27626 " char **\n"
27627 " guestfs_grepi (guestfs_h *g,\n"
27628 "                const char *regex,\n"
27629 "                const char *path);\n"
27630 "\n"
27631 msgstr ""
27632
27633 #. type: =head2
27634 #: ../src/guestfs-actions.pod:2748
27635 msgid "guestfs_grub_install"
27636 msgstr ""
27637
27638 #. type: verbatim
27639 #: ../src/guestfs-actions.pod:2750
27640 #, no-wrap
27641 msgid ""
27642 " int\n"
27643 " guestfs_grub_install (guestfs_h *g,\n"
27644 "                       const char *root,\n"
27645 "                       const char *device);\n"
27646 "\n"
27647 msgstr ""
27648
27649 #. type: textblock
27650 #: ../src/guestfs-actions.pod:2793
27651 msgid "(Added in 1.0.17)"
27652 msgstr ""
27653
27654 #. type: =head2
27655 #: ../src/guestfs-actions.pod:2795
27656 msgid "guestfs_head"
27657 msgstr ""
27658
27659 #. type: verbatim
27660 #: ../src/guestfs-actions.pod:2797
27661 #, no-wrap
27662 msgid ""
27663 " char **\n"
27664 " guestfs_head (guestfs_h *g,\n"
27665 "               const char *path);\n"
27666 "\n"
27667 msgstr ""
27668
27669 #. type: =head2
27670 #: ../src/guestfs-actions.pod:2813
27671 msgid "guestfs_head_n"
27672 msgstr ""
27673
27674 #. type: verbatim
27675 #: ../src/guestfs-actions.pod:2815
27676 #, no-wrap
27677 msgid ""
27678 " char **\n"
27679 " guestfs_head_n (guestfs_h *g,\n"
27680 "                 int nrlines,\n"
27681 "                 const char *path);\n"
27682 "\n"
27683 msgstr ""
27684
27685 #. type: =head2
27686 #: ../src/guestfs-actions.pod:2837
27687 msgid "guestfs_hexdump"
27688 msgstr ""
27689
27690 #. type: verbatim
27691 #: ../src/guestfs-actions.pod:2839
27692 #, no-wrap
27693 msgid ""
27694 " char *\n"
27695 " guestfs_hexdump (guestfs_h *g,\n"
27696 "                  const char *path);\n"
27697 "\n"
27698 msgstr ""
27699
27700 #. type: textblock
27701 #: ../src/guestfs-actions.pod:2852 ../src/guestfs-actions.pod:7244 ../src/guestfs-actions.pod:7299
27702 msgid "(Added in 1.0.22)"
27703 msgstr ""
27704
27705 #. type: =head2
27706 #: ../src/guestfs-actions.pod:2854
27707 msgid "guestfs_initrd_cat"
27708 msgstr ""
27709
27710 #. type: verbatim
27711 #: ../src/guestfs-actions.pod:2856
27712 #, no-wrap
27713 msgid ""
27714 " char *\n"
27715 " guestfs_initrd_cat (guestfs_h *g,\n"
27716 "                     const char *initrdpath,\n"
27717 "                     const char *filename,\n"
27718 "                     size_t *size_r);\n"
27719 "\n"
27720 msgstr ""
27721
27722 #. type: textblock
27723 #: ../src/guestfs-actions.pod:2872
27724 msgid "See also C<guestfs_initrd_list>."
27725 msgstr ""
27726
27727 #. type: =head2
27728 #: ../src/guestfs-actions.pod:2883
27729 msgid "guestfs_initrd_list"
27730 msgstr ""
27731
27732 #. type: verbatim
27733 #: ../src/guestfs-actions.pod:2885
27734 #, no-wrap
27735 msgid ""
27736 " char **\n"
27737 " guestfs_initrd_list (guestfs_h *g,\n"
27738 "                      const char *path);\n"
27739 "\n"
27740 msgstr ""
27741
27742 #. type: =head2
27743 #: ../src/guestfs-actions.pod:2905
27744 msgid "guestfs_inotify_add_watch"
27745 msgstr ""
27746
27747 #. type: verbatim
27748 #: ../src/guestfs-actions.pod:2907
27749 #, no-wrap
27750 msgid ""
27751 " int64_t\n"
27752 " guestfs_inotify_add_watch (guestfs_h *g,\n"
27753 "                            const char *path,\n"
27754 "                            int mask);\n"
27755 "\n"
27756 msgstr ""
27757
27758 #. type: =head2
27759 #: ../src/guestfs-actions.pod:2926
27760 msgid "guestfs_inotify_close"
27761 msgstr ""
27762
27763 #. type: verbatim
27764 #: ../src/guestfs-actions.pod:2928
27765 #, no-wrap
27766 msgid ""
27767 " int\n"
27768 " guestfs_inotify_close (guestfs_h *g);\n"
27769 "\n"
27770 msgstr ""
27771
27772 #. type: =head2
27773 #: ../src/guestfs-actions.pod:2939
27774 msgid "guestfs_inotify_files"
27775 msgstr ""
27776
27777 #. type: verbatim
27778 #: ../src/guestfs-actions.pod:2941
27779 #, no-wrap
27780 msgid ""
27781 " char **\n"
27782 " guestfs_inotify_files (guestfs_h *g);\n"
27783 "\n"
27784 msgstr ""
27785
27786 #. type: textblock
27787 #: ../src/guestfs-actions.pod:2944
27788 msgid ""
27789 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
27790 "returns a list of pathnames of objects that were touched.  The returned "
27791 "pathnames are sorted and deduplicated."
27792 msgstr ""
27793
27794 #. type: =head2
27795 #: ../src/guestfs-actions.pod:2954
27796 msgid "guestfs_inotify_init"
27797 msgstr ""
27798
27799 #. type: verbatim
27800 #: ../src/guestfs-actions.pod:2956
27801 #, no-wrap
27802 msgid ""
27803 " int\n"
27804 " guestfs_inotify_init (guestfs_h *g,\n"
27805 "                       int maxevents);\n"
27806 "\n"
27807 msgstr ""
27808
27809 #. type: textblock
27810 #: ../src/guestfs-actions.pod:2964
27811 msgid ""
27812 "C<maxevents> is the maximum number of events which will be queued up between "
27813 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
27814 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
27815 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
27816 "throws away events, but records the fact that it threw them away by setting "
27817 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
27818 "C<guestfs_inotify_read>)."
27819 msgstr ""
27820
27821 #. type: textblock
27822 #: ../src/guestfs-actions.pod:2974
27823 msgid ""
27824 "Before any events are generated, you have to add some watches to the "
27825 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
27826 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
27827 msgstr ""
27828
27829 #. type: textblock
27830 #: ../src/guestfs-actions.pod:2980
27831 msgid ""
27832 "Queued up events should be read periodically by calling "
27833 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
27834 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
27835 "often enough then you risk the internal queue overflowing."
27836 msgstr ""
27837
27838 #. type: textblock
27839 #: ../src/guestfs-actions.pod:2987
27840 msgid ""
27841 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
27842 "This also removes any watches automatically."
27843 msgstr ""
27844
27845 #. type: =head2
27846 #: ../src/guestfs-actions.pod:3000
27847 msgid "guestfs_inotify_read"
27848 msgstr ""
27849
27850 #. type: verbatim
27851 #: ../src/guestfs-actions.pod:3002
27852 #, no-wrap
27853 msgid ""
27854 " struct guestfs_inotify_event_list *\n"
27855 " guestfs_inotify_read (guestfs_h *g);\n"
27856 "\n"
27857 msgstr ""
27858
27859 #. type: textblock
27860 #: ../src/guestfs-actions.pod:3016
27861 msgid ""
27862 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
27863 "there was an error.  I<The caller must call "
27864 "C<guestfs_free_inotify_event_list> after use>."
27865 msgstr ""
27866
27867 #. type: =head2
27868 #: ../src/guestfs-actions.pod:3022
27869 msgid "guestfs_inotify_rm_watch"
27870 msgstr ""
27871
27872 #. type: verbatim
27873 #: ../src/guestfs-actions.pod:3024
27874 #, no-wrap
27875 msgid ""
27876 " int\n"
27877 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
27878 "                           int wd);\n"
27879 "\n"
27880 msgstr ""
27881
27882 #. type: textblock
27883 #: ../src/guestfs-actions.pod:3028
27884 msgid ""
27885 "Remove a previously defined inotify watch.  See "
27886 "C<guestfs_inotify_add_watch>."
27887 msgstr ""
27888
27889 #. type: =head2
27890 #: ../src/guestfs-actions.pod:3035
27891 msgid "guestfs_inspect_get_arch"
27892 msgstr ""
27893
27894 #. type: verbatim
27895 #: ../src/guestfs-actions.pod:3037
27896 #, no-wrap
27897 msgid ""
27898 " char *\n"
27899 " guestfs_inspect_get_arch (guestfs_h *g,\n"
27900 "                           const char *root);\n"
27901 "\n"
27902 msgstr ""
27903
27904 #. type: textblock
27905 #: ../src/guestfs-actions.pod:3041
27906 msgid ""
27907 "This returns the architecture of the inspected operating system.  The "
27908 "possible return values are listed under C<guestfs_file_architecture>."
27909 msgstr ""
27910
27911 #. type: =head2
27912 #: ../src/guestfs-actions.pod:3055
27913 msgid "guestfs_inspect_get_distro"
27914 msgstr ""
27915
27916 #. type: verbatim
27917 #: ../src/guestfs-actions.pod:3057
27918 #, no-wrap
27919 msgid ""
27920 " char *\n"
27921 " guestfs_inspect_get_distro (guestfs_h *g,\n"
27922 "                             const char *root);\n"
27923 "\n"
27924 msgstr ""
27925
27926 #. type: =head2
27927 #: ../src/guestfs-actions.pod:3157
27928 msgid "guestfs_inspect_get_drive_mappings"
27929 msgstr ""
27930
27931 #. type: verbatim
27932 #: ../src/guestfs-actions.pod:3159
27933 #, no-wrap
27934 msgid ""
27935 " char **\n"
27936 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
27937 "                                     const char *root);\n"
27938 "\n"
27939 msgstr ""
27940
27941 #. type: textblock
27942 #: ../src/guestfs-actions.pod:3188
27943 msgid ""
27944 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
27945 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
27946 msgstr ""
27947
27948 #. type: textblock
27949 #: ../src/guestfs-actions.pod:3192 ../src/guestfs-actions.pod:3460 ../src/guestfs-actions.pod:4263 ../src/guestfs-actions.pod:5526 ../src/guestfs-actions.pod:7601
27950 msgid ""
27951 "This function returns a NULL-terminated array of strings, or NULL if there "
27952 "was an error.  The array of strings will always have length C<2n+1>, where "
27953 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
27954 "caller must free the strings and the array after use>."
27955 msgstr ""
27956
27957 #. type: textblock
27958 #: ../src/guestfs-actions.pod:3198 ../src/guestfs-actions.pod:3659
27959 msgid "(Added in 1.9.17)"
27960 msgstr ""
27961
27962 #. type: =head2
27963 #: ../src/guestfs-actions.pod:3200
27964 msgid "guestfs_inspect_get_filesystems"
27965 msgstr ""
27966
27967 #. type: verbatim
27968 #: ../src/guestfs-actions.pod:3202
27969 #, no-wrap
27970 msgid ""
27971 " char **\n"
27972 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
27973 "                                  const char *root);\n"
27974 "\n"
27975 msgstr ""
27976
27977 #. type: textblock
27978 #: ../src/guestfs-actions.pod:3214
27979 msgid ""
27980 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
27981 "C<guestfs_inspect_get_mountpoints>."
27982 msgstr ""
27983
27984 #. type: =head2
27985 #: ../src/guestfs-actions.pod:3223
27986 msgid "guestfs_inspect_get_format"
27987 msgstr ""
27988
27989 #. type: verbatim
27990 #: ../src/guestfs-actions.pod:3225
27991 #, no-wrap
27992 msgid ""
27993 " char *\n"
27994 " guestfs_inspect_get_format (guestfs_h *g,\n"
27995 "                             const char *root);\n"
27996 "\n"
27997 msgstr ""
27998
27999 #. type: textblock
28000 #: ../src/guestfs-actions.pod:3259 ../src/guestfs-actions.pod:3695 ../src/guestfs-actions.pod:3711 ../src/guestfs-actions.pod:3729 ../src/guestfs-actions.pod:6493
28001 msgid "(Added in 1.9.4)"
28002 msgstr ""
28003
28004 #. type: =head2
28005 #: ../src/guestfs-actions.pod:3261
28006 msgid "guestfs_inspect_get_hostname"
28007 msgstr ""
28008
28009 #. type: verbatim
28010 #: ../src/guestfs-actions.pod:3263
28011 #, no-wrap
28012 msgid ""
28013 " char *\n"
28014 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
28015 "                               const char *root);\n"
28016 "\n"
28017 msgstr ""
28018
28019 #. type: textblock
28020 #: ../src/guestfs-actions.pod:3278
28021 msgid "(Added in 1.7.9)"
28022 msgstr ""
28023
28024 #. type: =head2
28025 #: ../src/guestfs-actions.pod:3280
28026 msgid "guestfs_inspect_get_icon"
28027 msgstr ""
28028
28029 #. type: verbatim
28030 #: ../src/guestfs-actions.pod:3282
28031 #, no-wrap
28032 msgid ""
28033 " char *\n"
28034 " guestfs_inspect_get_icon (guestfs_h *g,\n"
28035 "                           const char *root,\n"
28036 "                           size_t *size_r,\n"
28037 "                           ...);\n"
28038 "\n"
28039 msgstr ""
28040
28041 #. type: verbatim
28042 #: ../src/guestfs-actions.pod:3293
28043 #, no-wrap
28044 msgid ""
28045 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
28046 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
28047 "\n"
28048 msgstr ""
28049
28050 #. type: textblock
28051 #: ../src/guestfs-actions.pod:3360 ../src/guestfs-actions.pod:4190 ../src/guestfs-actions.pod:5425
28052 msgid "(Added in 1.11.12)"
28053 msgstr ""
28054
28055 #. type: =head2
28056 #: ../src/guestfs-actions.pod:3362
28057 msgid "guestfs_inspect_get_icon_va"
28058 msgstr ""
28059
28060 #. type: verbatim
28061 #: ../src/guestfs-actions.pod:3364
28062 #, no-wrap
28063 msgid ""
28064 " char *\n"
28065 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
28066 "                              const char *root,\n"
28067 "                              size_t *size_r,\n"
28068 "                              va_list args);\n"
28069 "\n"
28070 msgstr ""
28071
28072 #. type: textblock
28073 #: ../src/guestfs-actions.pod:3370
28074 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
28075 msgstr ""
28076
28077 #. type: =head2
28078 #: ../src/guestfs-actions.pod:3374
28079 msgid "guestfs_inspect_get_icon_argv"
28080 msgstr ""
28081
28082 #. type: verbatim
28083 #: ../src/guestfs-actions.pod:3376
28084 #, no-wrap
28085 msgid ""
28086 " char *\n"
28087 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
28088 "                                const char *root,\n"
28089 "                                size_t *size_r,\n"
28090 "                                const struct guestfs_inspect_get_icon_argv "
28091 "*optargs);\n"
28092 "\n"
28093 msgstr ""
28094
28095 #. type: textblock
28096 #: ../src/guestfs-actions.pod:3382
28097 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
28098 msgstr ""
28099
28100 #. type: =head2
28101 #: ../src/guestfs-actions.pod:3386
28102 msgid "guestfs_inspect_get_major_version"
28103 msgstr ""
28104
28105 #. type: verbatim
28106 #: ../src/guestfs-actions.pod:3388
28107 #, no-wrap
28108 msgid ""
28109 " int\n"
28110 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
28111 "                                    const char *root);\n"
28112 "\n"
28113 msgstr ""
28114
28115 #. type: =head2
28116 #: ../src/guestfs-actions.pod:3410
28117 msgid "guestfs_inspect_get_minor_version"
28118 msgstr ""
28119
28120 #. type: verbatim
28121 #: ../src/guestfs-actions.pod:3412
28122 #, no-wrap
28123 msgid ""
28124 " int\n"
28125 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
28126 "                                    const char *root);\n"
28127 "\n"
28128 msgstr ""
28129
28130 #. type: textblock
28131 #: ../src/guestfs-actions.pod:3421
28132 msgid ""
28133 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28134 "C<guestfs_inspect_get_major_version>."
28135 msgstr ""
28136
28137 #. type: =head2
28138 #: ../src/guestfs-actions.pod:3428
28139 msgid "guestfs_inspect_get_mountpoints"
28140 msgstr ""
28141
28142 #. type: verbatim
28143 #: ../src/guestfs-actions.pod:3430
28144 #, no-wrap
28145 msgid ""
28146 " char **\n"
28147 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
28148 "                                  const char *root);\n"
28149 "\n"
28150 msgstr ""
28151
28152 #. type: textblock
28153 #: ../src/guestfs-actions.pod:3451
28154 msgid ""
28155 "For operating systems like Windows which still use drive letters, this call "
28156 "will only return an entry for the first drive \"mounted on\" C</>.  For "
28157 "information about the mapping of drive letters to partitions, see "
28158 "C<guestfs_inspect_get_drive_mappings>."
28159 msgstr ""
28160
28161 #. type: textblock
28162 #: ../src/guestfs-actions.pod:3457
28163 msgid ""
28164 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28165 "C<guestfs_inspect_get_filesystems>."
28166 msgstr ""
28167
28168 #. type: =head2
28169 #: ../src/guestfs-actions.pod:3468
28170 msgid "guestfs_inspect_get_package_format"
28171 msgstr ""
28172
28173 #. type: verbatim
28174 #: ../src/guestfs-actions.pod:3470
28175 #, no-wrap
28176 msgid ""
28177 " char *\n"
28178 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
28179 "                                     const char *root);\n"
28180 "\n"
28181 msgstr ""
28182
28183 #. type: textblock
28184 #: ../src/guestfs-actions.pod:3474
28185 msgid ""
28186 "This function and C<guestfs_inspect_get_package_management> return the "
28187 "package format and package management tool used by the inspected operating "
28188 "system.  For example for Fedora these functions would return C<rpm> (package "
28189 "format) and C<yum> (package management)."
28190 msgstr ""
28191
28192 #. type: textblock
28193 #: ../src/guestfs-actions.pod:3493 ../src/guestfs-actions.pod:3521
28194 msgid "(Added in 1.7.5)"
28195 msgstr ""
28196
28197 #. type: =head2
28198 #: ../src/guestfs-actions.pod:3495
28199 msgid "guestfs_inspect_get_package_management"
28200 msgstr ""
28201
28202 #. type: verbatim
28203 #: ../src/guestfs-actions.pod:3497
28204 #, no-wrap
28205 msgid ""
28206 " char *\n"
28207 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
28208 "                                         const char *root);\n"
28209 "\n"
28210 msgstr ""
28211
28212 #. type: textblock
28213 #: ../src/guestfs-actions.pod:3501
28214 msgid ""
28215 "C<guestfs_inspect_get_package_format> and this function return the package "
28216 "format and package management tool used by the inspected operating system.  "
28217 "For example for Fedora these functions would return C<rpm> (package format) "
28218 "and C<yum> (package management)."
28219 msgstr ""
28220
28221 #. type: =head2
28222 #: ../src/guestfs-actions.pod:3523
28223 msgid "guestfs_inspect_get_product_name"
28224 msgstr ""
28225
28226 #. type: verbatim
28227 #: ../src/guestfs-actions.pod:3525
28228 #, no-wrap
28229 msgid ""
28230 " char *\n"
28231 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
28232 "                                   const char *root);\n"
28233 "\n"
28234 msgstr ""
28235
28236 #. type: =head2
28237 #: ../src/guestfs-actions.pod:3544
28238 msgid "guestfs_inspect_get_product_variant"
28239 msgstr ""
28240
28241 #. type: verbatim
28242 #: ../src/guestfs-actions.pod:3546
28243 #, no-wrap
28244 msgid ""
28245 " char *\n"
28246 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
28247 "                                      const char *root);\n"
28248 "\n"
28249 msgstr ""
28250
28251 #. type: textblock
28252 #: ../src/guestfs-actions.pod:3569
28253 msgid ""
28254 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28255 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
28256 msgstr ""
28257
28258 #. type: textblock
28259 #: ../src/guestfs-actions.pod:3576
28260 msgid "(Added in 1.9.13)"
28261 msgstr ""
28262
28263 #. type: =head2
28264 #: ../src/guestfs-actions.pod:3578
28265 msgid "guestfs_inspect_get_roots"
28266 msgstr ""
28267
28268 #. type: verbatim
28269 #: ../src/guestfs-actions.pod:3580
28270 #, no-wrap
28271 msgid ""
28272 " char **\n"
28273 " guestfs_inspect_get_roots (guestfs_h *g);\n"
28274 "\n"
28275 msgstr ""
28276
28277 #. type: textblock
28278 #: ../src/guestfs-actions.pod:3583
28279 msgid ""
28280 "This function is a convenient way to get the list of root devices, as "
28281 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
28282 "the whole inspection process."
28283 msgstr ""
28284
28285 #. type: textblock
28286 #: ../src/guestfs-actions.pod:3587
28287 msgid ""
28288 "This returns an empty list if either no root devices were found or the "
28289 "caller has not called C<guestfs_inspect_os>."
28290 msgstr ""
28291
28292 #. type: textblock
28293 #: ../src/guestfs-actions.pod:3596
28294 msgid "(Added in 1.7.3)"
28295 msgstr ""
28296
28297 #. type: =head2
28298 #: ../src/guestfs-actions.pod:3598
28299 msgid "guestfs_inspect_get_type"
28300 msgstr ""
28301
28302 #. type: verbatim
28303 #: ../src/guestfs-actions.pod:3600
28304 #, no-wrap
28305 msgid ""
28306 " char *\n"
28307 " guestfs_inspect_get_type (guestfs_h *g,\n"
28308 "                           const char *root);\n"
28309 "\n"
28310 msgstr ""
28311
28312 #. type: =head2
28313 #: ../src/guestfs-actions.pod:3641
28314 msgid "guestfs_inspect_get_windows_current_control_set"
28315 msgstr ""
28316
28317 #. type: verbatim
28318 #: ../src/guestfs-actions.pod:3643
28319 #, no-wrap
28320 msgid ""
28321 " char *\n"
28322 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
28323 "                                                  const char *root);\n"
28324 "\n"
28325 msgstr ""
28326
28327 #. type: =head2
28328 #: ../src/guestfs-actions.pod:3661
28329 msgid "guestfs_inspect_get_windows_systemroot"
28330 msgstr ""
28331
28332 #. type: verbatim
28333 #: ../src/guestfs-actions.pod:3663
28334 #, no-wrap
28335 msgid ""
28336 " char *\n"
28337 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
28338 "                                         const char *root);\n"
28339 "\n"
28340 msgstr ""
28341
28342 #. type: textblock
28343 #: ../src/guestfs-actions.pod:3679
28344 msgid "(Added in 1.5.25)"
28345 msgstr ""
28346
28347 #. type: =head2
28348 #: ../src/guestfs-actions.pod:3681
28349 msgid "guestfs_inspect_is_live"
28350 msgstr ""
28351
28352 #. type: verbatim
28353 #: ../src/guestfs-actions.pod:3683
28354 #, no-wrap
28355 msgid ""
28356 " int\n"
28357 " guestfs_inspect_is_live (guestfs_h *g,\n"
28358 "                          const char *root);\n"
28359 "\n"
28360 msgstr ""
28361
28362 #. type: textblock
28363 #: ../src/guestfs-actions.pod:3687
28364 msgid ""
28365 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28366 "disk), then this returns true if a live image was detected on the disk."
28367 msgstr ""
28368
28369 #. type: =head2
28370 #: ../src/guestfs-actions.pod:3697
28371 msgid "guestfs_inspect_is_multipart"
28372 msgstr ""
28373
28374 #. type: verbatim
28375 #: ../src/guestfs-actions.pod:3699
28376 #, no-wrap
28377 msgid ""
28378 " int\n"
28379 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
28380 "                               const char *root);\n"
28381 "\n"
28382 msgstr ""
28383
28384 #. type: textblock
28385 #: ../src/guestfs-actions.pod:3703
28386 msgid ""
28387 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28388 "disk), then this returns true if the disk is part of a set."
28389 msgstr ""
28390
28391 #. type: =head2
28392 #: ../src/guestfs-actions.pod:3713
28393 msgid "guestfs_inspect_is_netinst"
28394 msgstr ""
28395
28396 #. type: verbatim
28397 #: ../src/guestfs-actions.pod:3715
28398 #, no-wrap
28399 msgid ""
28400 " int\n"
28401 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
28402 "                             const char *root);\n"
28403 "\n"
28404 msgstr ""
28405
28406 #. type: textblock
28407 #: ../src/guestfs-actions.pod:3719
28408 msgid ""
28409 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28410 "disk), then this returns true if the disk is a network installer, ie. not a "
28411 "self-contained install CD but one which is likely to require network access "
28412 "to complete the install."
28413 msgstr ""
28414
28415 #. type: =head2
28416 #: ../src/guestfs-actions.pod:3731
28417 msgid "guestfs_inspect_list_applications"
28418 msgstr ""
28419
28420 #. type: verbatim
28421 #: ../src/guestfs-actions.pod:3733
28422 #, no-wrap
28423 msgid ""
28424 " struct guestfs_application_list *\n"
28425 " guestfs_inspect_list_applications (guestfs_h *g,\n"
28426 "                                    const char *root);\n"
28427 "\n"
28428 msgstr ""
28429
28430 #. type: textblock
28431 #: ../src/guestfs-actions.pod:3739
28432 msgid ""
28433 "I<Note:> This call works differently from other parts of the inspection "
28434 "API.  You have to call C<guestfs_inspect_os>, then "
28435 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
28436 "this.  Listing applications is a significantly more difficult operation "
28437 "which requires access to the full filesystem.  Also note that unlike the "
28438 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
28439 "the libguestfs handle, this call actually reads parts of the mounted "
28440 "filesystems during the call."
28441 msgstr ""
28442
28443 #. type: textblock
28444 #: ../src/guestfs-actions.pod:3829
28445 msgid ""
28446 "This function returns a C<struct guestfs_application_list *>, or NULL if "
28447 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
28448 "after use>."
28449 msgstr ""
28450
28451 #. type: textblock
28452 #: ../src/guestfs-actions.pod:3833
28453 msgid "(Added in 1.7.8)"
28454 msgstr ""
28455
28456 #. type: =head2
28457 #: ../src/guestfs-actions.pod:3835
28458 msgid "guestfs_inspect_os"
28459 msgstr ""
28460
28461 #. type: verbatim
28462 #: ../src/guestfs-actions.pod:3837
28463 #, no-wrap
28464 msgid ""
28465 " char **\n"
28466 " guestfs_inspect_os (guestfs_h *g);\n"
28467 "\n"
28468 msgstr ""
28469
28470 #. type: textblock
28471 #: ../src/guestfs-actions.pod:3853
28472 msgid ""
28473 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
28474 "functions in order to query further information about each operating system, "
28475 "such as the name and version."
28476 msgstr ""
28477
28478 #. type: textblock
28479 #: ../src/guestfs-actions.pod:3858
28480 msgid ""
28481 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
28482 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
28483 "the contents.  This should be called with no disks currently mounted.  The "
28484 "function may also use Augeas, so any existing Augeas handle will be closed."
28485 msgstr ""
28486
28487 #. type: textblock
28488 #: ../src/guestfs-actions.pod:3870 ../src/guestfs-actions.pod:4201 ../src/guestfs-actions.pod:4283
28489 msgid "See also C<guestfs_list_filesystems>."
28490 msgstr ""
28491
28492 #. type: =head2
28493 #: ../src/guestfs-actions.pod:3878
28494 msgid "guestfs_is_blockdev"
28495 msgstr ""
28496
28497 #. type: verbatim
28498 #: ../src/guestfs-actions.pod:3880
28499 #, no-wrap
28500 msgid ""
28501 " int\n"
28502 " guestfs_is_blockdev (guestfs_h *g,\n"
28503 "                      const char *path);\n"
28504 "\n"
28505 msgstr ""
28506
28507 #. type: textblock
28508 #: ../src/guestfs-actions.pod:3887 ../src/guestfs-actions.pod:3916 ../src/guestfs-actions.pod:3946 ../src/guestfs-actions.pod:3961 ../src/guestfs-actions.pod:3977 ../src/guestfs-actions.pod:4033 ../src/guestfs-actions.pod:4048
28509 msgid "See also C<guestfs_stat>."
28510 msgstr ""
28511
28512 #. type: textblock
28513 #: ../src/guestfs-actions.pod:3891 ../src/guestfs-actions.pod:3920 ../src/guestfs-actions.pod:3965 ../src/guestfs-actions.pod:4037 ../src/guestfs-actions.pod:4052
28514 msgid "(Added in 1.5.10)"
28515 msgstr ""
28516
28517 #. type: =head2
28518 #: ../src/guestfs-actions.pod:3893
28519 msgid "guestfs_is_busy"
28520 msgstr ""
28521
28522 #. type: verbatim
28523 #: ../src/guestfs-actions.pod:3895
28524 #, no-wrap
28525 msgid ""
28526 " int\n"
28527 " guestfs_is_busy (guestfs_h *g);\n"
28528 "\n"
28529 msgstr ""
28530
28531 #. type: =head2
28532 #: ../src/guestfs-actions.pod:3907
28533 msgid "guestfs_is_chardev"
28534 msgstr ""
28535
28536 #. type: verbatim
28537 #: ../src/guestfs-actions.pod:3909
28538 #, no-wrap
28539 msgid ""
28540 " int\n"
28541 " guestfs_is_chardev (guestfs_h *g,\n"
28542 "                     const char *path);\n"
28543 "\n"
28544 msgstr ""
28545
28546 #. type: =head2
28547 #: ../src/guestfs-actions.pod:3922
28548 msgid "guestfs_is_config"
28549 msgstr ""
28550
28551 #. type: verbatim
28552 #: ../src/guestfs-actions.pod:3924
28553 #, no-wrap
28554 msgid ""
28555 " int\n"
28556 " guestfs_is_config (guestfs_h *g);\n"
28557 "\n"
28558 msgstr ""
28559
28560 #. type: =head2
28561 #: ../src/guestfs-actions.pod:3936
28562 msgid "guestfs_is_dir"
28563 msgstr ""
28564
28565 #. type: verbatim
28566 #: ../src/guestfs-actions.pod:3938
28567 #, no-wrap
28568 msgid ""
28569 " int\n"
28570 " guestfs_is_dir (guestfs_h *g,\n"
28571 "                 const char *path);\n"
28572 "\n"
28573 msgstr ""
28574
28575 #. type: =head2
28576 #: ../src/guestfs-actions.pod:3952
28577 msgid "guestfs_is_fifo"
28578 msgstr ""
28579
28580 #. type: verbatim
28581 #: ../src/guestfs-actions.pod:3954
28582 #, no-wrap
28583 msgid ""
28584 " int\n"
28585 " guestfs_is_fifo (guestfs_h *g,\n"
28586 "                  const char *path);\n"
28587 "\n"
28588 msgstr ""
28589
28590 #. type: =head2
28591 #: ../src/guestfs-actions.pod:3967
28592 msgid "guestfs_is_file"
28593 msgstr ""
28594
28595 #. type: verbatim
28596 #: ../src/guestfs-actions.pod:3969
28597 #, no-wrap
28598 msgid ""
28599 " int\n"
28600 " guestfs_is_file (guestfs_h *g,\n"
28601 "                  const char *path);\n"
28602 "\n"
28603 msgstr ""
28604
28605 #. type: =head2
28606 #: ../src/guestfs-actions.pod:3983
28607 msgid "guestfs_is_launching"
28608 msgstr ""
28609
28610 #. type: verbatim
28611 #: ../src/guestfs-actions.pod:3985
28612 #, no-wrap
28613 msgid ""
28614 " int\n"
28615 " guestfs_is_launching (guestfs_h *g);\n"
28616 "\n"
28617 msgstr ""
28618
28619 #. type: =head2
28620 #: ../src/guestfs-actions.pod:3997
28621 msgid "guestfs_is_lv"
28622 msgstr ""
28623
28624 #. type: verbatim
28625 #: ../src/guestfs-actions.pod:3999
28626 #, no-wrap
28627 msgid ""
28628 " int\n"
28629 " guestfs_is_lv (guestfs_h *g,\n"
28630 "                const char *device);\n"
28631 "\n"
28632 msgstr ""
28633
28634 #. type: =head2
28635 #: ../src/guestfs-actions.pod:4010
28636 msgid "guestfs_is_ready"
28637 msgstr ""
28638
28639 #. type: verbatim
28640 #: ../src/guestfs-actions.pod:4012
28641 #, no-wrap
28642 msgid ""
28643 " int\n"
28644 " guestfs_is_ready (guestfs_h *g);\n"
28645 "\n"
28646 msgstr ""
28647
28648 #. type: =head2
28649 #: ../src/guestfs-actions.pod:4024
28650 msgid "guestfs_is_socket"
28651 msgstr ""
28652
28653 #. type: verbatim
28654 #: ../src/guestfs-actions.pod:4026
28655 #, no-wrap
28656 msgid ""
28657 " int\n"
28658 " guestfs_is_socket (guestfs_h *g,\n"
28659 "                    const char *path);\n"
28660 "\n"
28661 msgstr ""
28662
28663 #. type: =head2
28664 #: ../src/guestfs-actions.pod:4039
28665 msgid "guestfs_is_symlink"
28666 msgstr ""
28667
28668 #. type: verbatim
28669 #: ../src/guestfs-actions.pod:4041
28670 #, no-wrap
28671 msgid ""
28672 " int\n"
28673 " guestfs_is_symlink (guestfs_h *g,\n"
28674 "                     const char *path);\n"
28675 "\n"
28676 msgstr ""
28677
28678 #. type: =head2
28679 #: ../src/guestfs-actions.pod:4054
28680 msgid "guestfs_is_zero"
28681 msgstr ""
28682
28683 #. type: verbatim
28684 #: ../src/guestfs-actions.pod:4056
28685 #, no-wrap
28686 msgid ""
28687 " int\n"
28688 " guestfs_is_zero (guestfs_h *g,\n"
28689 "                  const char *path);\n"
28690 "\n"
28691 msgstr ""
28692
28693 #. type: textblock
28694 #: ../src/guestfs-actions.pod:4065 ../src/guestfs-actions.pod:4079
28695 msgid "(Added in 1.11.8)"
28696 msgstr ""
28697
28698 #. type: =head2
28699 #: ../src/guestfs-actions.pod:4067
28700 msgid "guestfs_is_zero_device"
28701 msgstr ""
28702
28703 #. type: verbatim
28704 #: ../src/guestfs-actions.pod:4069
28705 #, no-wrap
28706 msgid ""
28707 " int\n"
28708 " guestfs_is_zero_device (guestfs_h *g,\n"
28709 "                         const char *device);\n"
28710 "\n"
28711 msgstr ""
28712
28713 #. type: =head2
28714 #: ../src/guestfs-actions.pod:4081
28715 msgid "guestfs_kill_subprocess"
28716 msgstr ""
28717
28718 #. type: verbatim
28719 #: ../src/guestfs-actions.pod:4083
28720 #, no-wrap
28721 msgid ""
28722 " int\n"
28723 " guestfs_kill_subprocess (guestfs_h *g);\n"
28724 "\n"
28725 msgstr ""
28726
28727 #. type: =head2
28728 #: ../src/guestfs-actions.pod:4092
28729 msgid "guestfs_launch"
28730 msgstr ""
28731
28732 #. type: verbatim
28733 #: ../src/guestfs-actions.pod:4094
28734 #, no-wrap
28735 msgid ""
28736 " int\n"
28737 " guestfs_launch (guestfs_h *g);\n"
28738 "\n"
28739 msgstr ""
28740
28741 #. type: =head2
28742 #: ../src/guestfs-actions.pod:4112
28743 msgid "guestfs_lchown"
28744 msgstr ""
28745
28746 #. type: verbatim
28747 #: ../src/guestfs-actions.pod:4114
28748 #, no-wrap
28749 msgid ""
28750 " int\n"
28751 " guestfs_lchown (guestfs_h *g,\n"
28752 "                 int owner,\n"
28753 "                 int group,\n"
28754 "                 const char *path);\n"
28755 "\n"
28756 msgstr ""
28757
28758 #. type: textblock
28759 #: ../src/guestfs-actions.pod:4120
28760 msgid ""
28761 "Change the file owner to C<owner> and group to C<group>.  This is like "
28762 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
28763 "changed, not the target."
28764 msgstr ""
28765
28766 #. type: =head2
28767 #: ../src/guestfs-actions.pod:4132
28768 msgid "guestfs_lgetxattr"
28769 msgstr ""
28770
28771 #. type: verbatim
28772 #: ../src/guestfs-actions.pod:4134
28773 #, no-wrap
28774 msgid ""
28775 " char *\n"
28776 " guestfs_lgetxattr (guestfs_h *g,\n"
28777 "                    const char *path,\n"
28778 "                    const char *name,\n"
28779 "                    size_t *size_r);\n"
28780 "\n"
28781 msgstr ""
28782
28783 #. type: textblock
28784 #: ../src/guestfs-actions.pod:4154
28785 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
28786 msgstr ""
28787
28788 #. type: =head2
28789 #: ../src/guestfs-actions.pod:4162
28790 msgid "guestfs_lgetxattrs"
28791 msgstr ""
28792
28793 #. type: verbatim
28794 #: ../src/guestfs-actions.pod:4164
28795 #, no-wrap
28796 msgid ""
28797 " struct guestfs_xattr_list *\n"
28798 " guestfs_lgetxattrs (guestfs_h *g,\n"
28799 "                     const char *path);\n"
28800 "\n"
28801 msgstr ""
28802
28803 #. type: textblock
28804 #: ../src/guestfs-actions.pod:4168
28805 msgid ""
28806 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
28807 "then it returns the extended attributes of the link itself."
28808 msgstr ""
28809
28810 #. type: =head2
28811 #: ../src/guestfs-actions.pod:4178
28812 msgid "guestfs_list_9p"
28813 msgstr ""
28814
28815 #. type: verbatim
28816 #: ../src/guestfs-actions.pod:4180
28817 #, no-wrap
28818 msgid ""
28819 " char **\n"
28820 " guestfs_list_9p (guestfs_h *g);\n"
28821 "\n"
28822 msgstr ""
28823
28824 #. type: =head2
28825 #: ../src/guestfs-actions.pod:4192
28826 msgid "guestfs_list_devices"
28827 msgstr ""
28828
28829 #. type: verbatim
28830 #: ../src/guestfs-actions.pod:4194
28831 #, no-wrap
28832 msgid ""
28833 " char **\n"
28834 " guestfs_list_devices (guestfs_h *g);\n"
28835 "\n"
28836 msgstr ""
28837
28838 #. type: =head2
28839 #: ../src/guestfs-actions.pod:4209
28840 msgid "guestfs_list_dm_devices"
28841 msgstr ""
28842
28843 #. type: verbatim
28844 #: ../src/guestfs-actions.pod:4211
28845 #, no-wrap
28846 msgid ""
28847 " char **\n"
28848 " guestfs_list_dm_devices (guestfs_h *g);\n"
28849 "\n"
28850 msgstr ""
28851
28852 #. type: textblock
28853 #: ../src/guestfs-actions.pod:4216
28854 msgid ""
28855 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
28856 "previous call to C<guestfs_luks_open>."
28857 msgstr ""
28858
28859 #. type: textblock
28860 #: ../src/guestfs-actions.pod:4219
28861 msgid ""
28862 "Device mapper devices which correspond to logical volumes are I<not> "
28863 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
28864 "volumes."
28865 msgstr ""
28866
28867 #. type: textblock
28868 #: ../src/guestfs-actions.pod:4227 ../src/guestfs-actions.pod:5664
28869 msgid "(Added in 1.11.15)"
28870 msgstr ""
28871
28872 #. type: =head2
28873 #: ../src/guestfs-actions.pod:4229
28874 msgid "guestfs_list_filesystems"
28875 msgstr ""
28876
28877 #. type: verbatim
28878 #: ../src/guestfs-actions.pod:4231
28879 #, no-wrap
28880 msgid ""
28881 " char **\n"
28882 " guestfs_list_filesystems (guestfs_h *g);\n"
28883 "\n"
28884 msgstr ""
28885
28886 #. type: textblock
28887 #: ../src/guestfs-actions.pod:4251
28888 msgid ""
28889 "This command runs other libguestfs commands, which might include "
28890 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
28891 "soon after launch and only when nothing is mounted."
28892 msgstr ""
28893
28894 #. type: textblock
28895 #: ../src/guestfs-actions.pod:4255
28896 msgid ""
28897 "Not all of the filesystems returned will be mountable.  In particular, swap "
28898 "partitions are returned in the list.  Also this command does not check that "
28899 "each filesystem found is valid and mountable, and some filesystems might be "
28900 "mountable but require special options.  Filesystems may not all belong to a "
28901 "single logical operating system (use C<guestfs_inspect_os> to look for "
28902 "OSes)."
28903 msgstr ""
28904
28905 #. type: textblock
28906 #: ../src/guestfs-actions.pod:4269 ../src/guestfs-actions.pod:6024
28907 msgid "(Added in 1.5.15)"
28908 msgstr ""
28909
28910 #. type: =head2
28911 #: ../src/guestfs-actions.pod:4271
28912 msgid "guestfs_list_partitions"
28913 msgstr ""
28914
28915 #. type: verbatim
28916 #: ../src/guestfs-actions.pod:4273
28917 #, no-wrap
28918 msgid ""
28919 " char **\n"
28920 " guestfs_list_partitions (guestfs_h *g);\n"
28921 "\n"
28922 msgstr ""
28923
28924 #. type: textblock
28925 #: ../src/guestfs-actions.pod:4280
28926 msgid ""
28927 "This does not return logical volumes.  For that you will need to call "
28928 "C<guestfs_lvs>."
28929 msgstr ""
28930
28931 #. type: =head2
28932 #: ../src/guestfs-actions.pod:4291
28933 msgid "guestfs_ll"
28934 msgstr ""
28935
28936 #. type: verbatim
28937 #: ../src/guestfs-actions.pod:4293
28938 #, no-wrap
28939 msgid ""
28940 " char *\n"
28941 " guestfs_ll (guestfs_h *g,\n"
28942 "             const char *directory);\n"
28943 "\n"
28944 msgstr ""
28945
28946 #. type: =head2
28947 #: ../src/guestfs-actions.pod:4308
28948 msgid "guestfs_ln"
28949 msgstr ""
28950
28951 #. type: verbatim
28952 #: ../src/guestfs-actions.pod:4310
28953 #, no-wrap
28954 msgid ""
28955 " int\n"
28956 " guestfs_ln (guestfs_h *g,\n"
28957 "             const char *target,\n"
28958 "             const char *linkname);\n"
28959 "\n"
28960 msgstr ""
28961
28962 #. type: =head2
28963 #: ../src/guestfs-actions.pod:4321
28964 msgid "guestfs_ln_f"
28965 msgstr ""
28966
28967 #. type: verbatim
28968 #: ../src/guestfs-actions.pod:4323
28969 #, no-wrap
28970 msgid ""
28971 " int\n"
28972 " guestfs_ln_f (guestfs_h *g,\n"
28973 "               const char *target,\n"
28974 "               const char *linkname);\n"
28975 "\n"
28976 msgstr ""
28977
28978 #. type: =head2
28979 #: ../src/guestfs-actions.pod:4335
28980 msgid "guestfs_ln_s"
28981 msgstr ""
28982
28983 #. type: verbatim
28984 #: ../src/guestfs-actions.pod:4337
28985 #, no-wrap
28986 msgid ""
28987 " int\n"
28988 " guestfs_ln_s (guestfs_h *g,\n"
28989 "               const char *target,\n"
28990 "               const char *linkname);\n"
28991 "\n"
28992 msgstr ""
28993
28994 #. type: =head2
28995 #: ../src/guestfs-actions.pod:4348
28996 msgid "guestfs_ln_sf"
28997 msgstr ""
28998
28999 #. type: verbatim
29000 #: ../src/guestfs-actions.pod:4350
29001 #, no-wrap
29002 msgid ""
29003 " int\n"
29004 " guestfs_ln_sf (guestfs_h *g,\n"
29005 "                const char *target,\n"
29006 "                const char *linkname);\n"
29007 "\n"
29008 msgstr ""
29009
29010 #. type: =head2
29011 #: ../src/guestfs-actions.pod:4362
29012 msgid "guestfs_lremovexattr"
29013 msgstr ""
29014
29015 #. type: verbatim
29016 #: ../src/guestfs-actions.pod:4364
29017 #, no-wrap
29018 msgid ""
29019 " int\n"
29020 " guestfs_lremovexattr (guestfs_h *g,\n"
29021 "                       const char *xattr,\n"
29022 "                       const char *path);\n"
29023 "\n"
29024 msgstr ""
29025
29026 #. type: textblock
29027 #: ../src/guestfs-actions.pod:4369
29028 msgid ""
29029 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
29030 "link, then it removes an extended attribute of the link itself."
29031 msgstr ""
29032
29033 #. type: =head2
29034 #: ../src/guestfs-actions.pod:4377
29035 msgid "guestfs_ls"
29036 msgstr ""
29037
29038 #. type: verbatim
29039 #: ../src/guestfs-actions.pod:4379
29040 #, no-wrap
29041 msgid ""
29042 " char **\n"
29043 " guestfs_ls (guestfs_h *g,\n"
29044 "             const char *directory);\n"
29045 "\n"
29046 msgstr ""
29047
29048 #. type: textblock
29049 #: ../src/guestfs-actions.pod:4387
29050 msgid ""
29051 "This command is mostly useful for interactive sessions.  Programs should "
29052 "probably use C<guestfs_readdir> instead."
29053 msgstr ""
29054
29055 #. type: =head2
29056 #: ../src/guestfs-actions.pod:4396
29057 msgid "guestfs_lsetxattr"
29058 msgstr ""
29059
29060 #. type: verbatim
29061 #: ../src/guestfs-actions.pod:4398
29062 #, no-wrap
29063 msgid ""
29064 " int\n"
29065 " guestfs_lsetxattr (guestfs_h *g,\n"
29066 "                    const char *xattr,\n"
29067 "                    const char *val,\n"
29068 "                    int vallen,\n"
29069 "                    const char *path);\n"
29070 "\n"
29071 msgstr ""
29072
29073 #. type: textblock
29074 #: ../src/guestfs-actions.pod:4405
29075 msgid ""
29076 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
29077 "then it sets an extended attribute of the link itself."
29078 msgstr ""
29079
29080 #. type: =head2
29081 #: ../src/guestfs-actions.pod:4413
29082 msgid "guestfs_lstat"
29083 msgstr ""
29084
29085 #. type: verbatim
29086 #: ../src/guestfs-actions.pod:4415
29087 #, no-wrap
29088 msgid ""
29089 " struct guestfs_stat *\n"
29090 " guestfs_lstat (guestfs_h *g,\n"
29091 "                const char *path);\n"
29092 "\n"
29093 msgstr ""
29094
29095 #. type: textblock
29096 #: ../src/guestfs-actions.pod:4421
29097 msgid ""
29098 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
29099 "link, then the link is stat-ed, not the file it refers to."
29100 msgstr ""
29101
29102 #. type: textblock
29103 #: ../src/guestfs-actions.pod:4427 ../src/guestfs-actions.pod:7204
29104 msgid ""
29105 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
29106 "error.  I<The caller must call C<guestfs_free_stat> after use>."
29107 msgstr ""
29108
29109 #. type: textblock
29110 #: ../src/guestfs-actions.pod:4431 ../src/guestfs-actions.pod:7208 ../src/guestfs-actions.pod:7226 ../src/guestfs-actions.pod:7607
29111 msgid "(Added in 0.9.2)"
29112 msgstr ""
29113
29114 #. type: =head2
29115 #: ../src/guestfs-actions.pod:4433
29116 msgid "guestfs_lstatlist"
29117 msgstr ""
29118
29119 #. type: verbatim
29120 #: ../src/guestfs-actions.pod:4435
29121 #, no-wrap
29122 msgid ""
29123 " struct guestfs_stat_list *\n"
29124 " guestfs_lstatlist (guestfs_h *g,\n"
29125 "                    const char *path,\n"
29126 "                    char *const *names);\n"
29127 "\n"
29128 msgstr ""
29129
29130 #. type: textblock
29131 #: ../src/guestfs-actions.pod:4440
29132 msgid ""
29133 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
29134 "files, where all files are in the directory C<path>.  C<names> is the list "
29135 "of files from this directory."
29136 msgstr ""
29137
29138 #. type: textblock
29139 #: ../src/guestfs-actions.pod:4449
29140 msgid ""
29141 "This call is intended for programs that want to efficiently list a directory "
29142 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
29143 "for a similarly efficient call for getting extended attributes.  Very long "
29144 "directory listings might cause the protocol message size to be exceeded, "
29145 "causing this call to fail.  The caller must split up such requests into "
29146 "smaller groups of names."
29147 msgstr ""
29148
29149 #. type: textblock
29150 #: ../src/guestfs-actions.pod:4457
29151 msgid ""
29152 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
29153 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
29154 msgstr ""
29155
29156 #. type: =head2
29157 #: ../src/guestfs-actions.pod:4463
29158 msgid "guestfs_luks_add_key"
29159 msgstr ""
29160
29161 #. type: verbatim
29162 #: ../src/guestfs-actions.pod:4465
29163 #, no-wrap
29164 msgid ""
29165 " int\n"
29166 " guestfs_luks_add_key (guestfs_h *g,\n"
29167 "                       const char *device,\n"
29168 "                       const char *key,\n"
29169 "                       const char *newkey,\n"
29170 "                       int keyslot);\n"
29171 "\n"
29172 msgstr ""
29173
29174 #. type: textblock
29175 #: ../src/guestfs-actions.pod:4477
29176 msgid ""
29177 "Note that if C<keyslot> already contains a key, then this command will "
29178 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
29179 msgstr ""
29180
29181 #. type: textblock
29182 #: ../src/guestfs-actions.pod:4483 ../src/guestfs-actions.pod:4520 ../src/guestfs-actions.pod:4540 ../src/guestfs-actions.pod:4560 ../src/guestfs-actions.pod:4595 ../src/guestfs-actions.pod:4614
29183 msgid ""
29184 "This function takes a key or passphrase parameter which could contain "
29185 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
29186 "information."
29187 msgstr ""
29188
29189 #. type: textblock
29190 #: ../src/guestfs-actions.pod:4487 ../src/guestfs-actions.pod:4524 ../src/guestfs-actions.pod:4544 ../src/guestfs-actions.pod:4564
29191 msgid "(Added in 1.5.2)"
29192 msgstr ""
29193
29194 #. type: =head2
29195 #: ../src/guestfs-actions.pod:4489
29196 msgid "guestfs_luks_close"
29197 msgstr ""
29198
29199 #. type: verbatim
29200 #: ../src/guestfs-actions.pod:4491
29201 #, no-wrap
29202 msgid ""
29203 " int\n"
29204 " guestfs_luks_close (guestfs_h *g,\n"
29205 "                     const char *device);\n"
29206 "\n"
29207 msgstr ""
29208
29209 #. type: textblock
29210 #: ../src/guestfs-actions.pod:4495
29211 msgid ""
29212 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
29213 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
29214 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
29215 "underlying block device."
29216 msgstr ""
29217
29218 #. type: textblock
29219 #: ../src/guestfs-actions.pod:4503 ../src/guestfs-actions.pod:4599 ../src/guestfs-actions.pod:4618 ../src/guestfs-actions.pod:4668 ../src/guestfs-actions.pod:4713
29220 msgid "(Added in 1.5.1)"
29221 msgstr ""
29222
29223 #. type: =head2
29224 #: ../src/guestfs-actions.pod:4505
29225 msgid "guestfs_luks_format"
29226 msgstr ""
29227
29228 #. type: verbatim
29229 #: ../src/guestfs-actions.pod:4507
29230 #, no-wrap
29231 msgid ""
29232 " int\n"
29233 " guestfs_luks_format (guestfs_h *g,\n"
29234 "                      const char *device,\n"
29235 "                      const char *key,\n"
29236 "                      int keyslot);\n"
29237 "\n"
29238 msgstr ""
29239
29240 #. type: =head2
29241 #: ../src/guestfs-actions.pod:4526
29242 msgid "guestfs_luks_format_cipher"
29243 msgstr ""
29244
29245 #. type: verbatim
29246 #: ../src/guestfs-actions.pod:4528
29247 #, no-wrap
29248 msgid ""
29249 " int\n"
29250 " guestfs_luks_format_cipher (guestfs_h *g,\n"
29251 "                             const char *device,\n"
29252 "                             const char *key,\n"
29253 "                             int keyslot,\n"
29254 "                             const char *cipher);\n"
29255 "\n"
29256 msgstr ""
29257
29258 #. type: textblock
29259 #: ../src/guestfs-actions.pod:4535
29260 msgid ""
29261 "This command is the same as C<guestfs_luks_format> but it also allows you to "
29262 "set the C<cipher> used."
29263 msgstr ""
29264
29265 #. type: =head2
29266 #: ../src/guestfs-actions.pod:4546
29267 msgid "guestfs_luks_kill_slot"
29268 msgstr ""
29269
29270 #. type: verbatim
29271 #: ../src/guestfs-actions.pod:4548
29272 #, no-wrap
29273 msgid ""
29274 " int\n"
29275 " guestfs_luks_kill_slot (guestfs_h *g,\n"
29276 "                         const char *device,\n"
29277 "                         const char *key,\n"
29278 "                         int keyslot);\n"
29279 "\n"
29280 msgstr ""
29281
29282 #. type: =head2
29283 #: ../src/guestfs-actions.pod:4566
29284 msgid "guestfs_luks_open"
29285 msgstr ""
29286
29287 #. type: verbatim
29288 #: ../src/guestfs-actions.pod:4568
29289 #, no-wrap
29290 msgid ""
29291 " int\n"
29292 " guestfs_luks_open (guestfs_h *g,\n"
29293 "                    const char *device,\n"
29294 "                    const char *key,\n"
29295 "                    const char *mapname);\n"
29296 "\n"
29297 msgstr ""
29298
29299 #. type: textblock
29300 #: ../src/guestfs-actions.pod:4586
29301 msgid ""
29302 "If this block device contains LVM volume groups, then calling "
29303 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
29304 "visible."
29305 msgstr ""
29306
29307 #. type: textblock
29308 #: ../src/guestfs-actions.pod:4590
29309 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
29310 msgstr ""
29311
29312 #. type: =head2
29313 #: ../src/guestfs-actions.pod:4601
29314 msgid "guestfs_luks_open_ro"
29315 msgstr ""
29316
29317 #. type: verbatim
29318 #: ../src/guestfs-actions.pod:4603
29319 #, no-wrap
29320 msgid ""
29321 " int\n"
29322 " guestfs_luks_open_ro (guestfs_h *g,\n"
29323 "                       const char *device,\n"
29324 "                       const char *key,\n"
29325 "                       const char *mapname);\n"
29326 "\n"
29327 msgstr ""
29328
29329 #. type: textblock
29330 #: ../src/guestfs-actions.pod:4609
29331 msgid ""
29332 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
29333 "created."
29334 msgstr ""
29335
29336 #. type: =head2
29337 #: ../src/guestfs-actions.pod:4620
29338 msgid "guestfs_lvcreate"
29339 msgstr ""
29340
29341 #. type: verbatim
29342 #: ../src/guestfs-actions.pod:4622
29343 #, no-wrap
29344 msgid ""
29345 " int\n"
29346 " guestfs_lvcreate (guestfs_h *g,\n"
29347 "                   const char *logvol,\n"
29348 "                   const char *volgroup,\n"
29349 "                   int mbytes);\n"
29350 "\n"
29351 msgstr ""
29352
29353 #. type: =head2
29354 #: ../src/guestfs-actions.pod:4635
29355 msgid "guestfs_lvm_canonical_lv_name"
29356 msgstr ""
29357
29358 #. type: verbatim
29359 #: ../src/guestfs-actions.pod:4637
29360 #, no-wrap
29361 msgid ""
29362 " char *\n"
29363 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
29364 "                                const char *lvname);\n"
29365 "\n"
29366 msgstr ""
29367
29368 #. type: textblock
29369 #: ../src/guestfs-actions.pod:4648
29370 msgid "See also C<guestfs_is_lv>."
29371 msgstr ""
29372
29373 #. type: textblock
29374 #: ../src/guestfs-actions.pod:4653
29375 msgid "(Added in 1.5.24)"
29376 msgstr ""
29377
29378 #. type: =head2
29379 #: ../src/guestfs-actions.pod:4655
29380 msgid "guestfs_lvm_clear_filter"
29381 msgstr ""
29382
29383 #. type: verbatim
29384 #: ../src/guestfs-actions.pod:4657
29385 #, no-wrap
29386 msgid ""
29387 " int\n"
29388 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
29389 "\n"
29390 msgstr ""
29391
29392 #. type: textblock
29393 #: ../src/guestfs-actions.pod:4660
29394 msgid ""
29395 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
29396 "see every block device."
29397 msgstr ""
29398
29399 #. type: =head2
29400 #: ../src/guestfs-actions.pod:4670
29401 msgid "guestfs_lvm_remove_all"
29402 msgstr ""
29403
29404 #. type: verbatim
29405 #: ../src/guestfs-actions.pod:4672
29406 #, no-wrap
29407 msgid ""
29408 " int\n"
29409 " guestfs_lvm_remove_all (guestfs_h *g);\n"
29410 "\n"
29411 msgstr ""
29412
29413 #. type: =head2
29414 #: ../src/guestfs-actions.pod:4682
29415 msgid "guestfs_lvm_set_filter"
29416 msgstr ""
29417
29418 #. type: verbatim
29419 #: ../src/guestfs-actions.pod:4684
29420 #, no-wrap
29421 msgid ""
29422 " int\n"
29423 " guestfs_lvm_set_filter (guestfs_h *g,\n"
29424 "                         char *const *devices);\n"
29425 "\n"
29426 msgstr ""
29427
29428 #. type: =head2
29429 #: ../src/guestfs-actions.pod:4715
29430 msgid "guestfs_lvremove"
29431 msgstr ""
29432
29433 #. type: verbatim
29434 #: ../src/guestfs-actions.pod:4717
29435 #, no-wrap
29436 msgid ""
29437 " int\n"
29438 " guestfs_lvremove (guestfs_h *g,\n"
29439 "                   const char *device);\n"
29440 "\n"
29441 msgstr ""
29442
29443 #. type: textblock
29444 #: ../src/guestfs-actions.pod:4729 ../src/guestfs-actions.pod:6139 ../src/guestfs-actions.pod:7977
29445 msgid "(Added in 1.0.13)"
29446 msgstr ""
29447
29448 #. type: =head2
29449 #: ../src/guestfs-actions.pod:4731
29450 msgid "guestfs_lvrename"
29451 msgstr ""
29452
29453 #. type: verbatim
29454 #: ../src/guestfs-actions.pod:4733
29455 #, no-wrap
29456 msgid ""
29457 " int\n"
29458 " guestfs_lvrename (guestfs_h *g,\n"
29459 "                   const char *logvol,\n"
29460 "                   const char *newlogvol);\n"
29461 "\n"
29462 msgstr ""
29463
29464 #. type: textblock
29465 #: ../src/guestfs-actions.pod:4742 ../src/guestfs-actions.pod:7990
29466 msgid "(Added in 1.0.83)"
29467 msgstr ""
29468
29469 #. type: =head2
29470 #: ../src/guestfs-actions.pod:4744
29471 msgid "guestfs_lvresize"
29472 msgstr ""
29473
29474 #. type: verbatim
29475 #: ../src/guestfs-actions.pod:4746
29476 #, no-wrap
29477 msgid ""
29478 " int\n"
29479 " guestfs_lvresize (guestfs_h *g,\n"
29480 "                   const char *device,\n"
29481 "                   int mbytes);\n"
29482 "\n"
29483 msgstr ""
29484
29485 #. type: =head2
29486 #: ../src/guestfs-actions.pod:4759
29487 msgid "guestfs_lvresize_free"
29488 msgstr ""
29489
29490 #. type: verbatim
29491 #: ../src/guestfs-actions.pod:4761
29492 #, no-wrap
29493 msgid ""
29494 " int\n"
29495 " guestfs_lvresize_free (guestfs_h *g,\n"
29496 "                        const char *lv,\n"
29497 "                        int percent);\n"
29498 "\n"
29499 msgstr ""
29500
29501 #. type: textblock
29502 #: ../src/guestfs-actions.pod:4774
29503 msgid "(Added in 1.3.3)"
29504 msgstr ""
29505
29506 #. type: =head2
29507 #: ../src/guestfs-actions.pod:4776
29508 msgid "guestfs_lvs"
29509 msgstr ""
29510
29511 #. type: verbatim
29512 #: ../src/guestfs-actions.pod:4778
29513 #, no-wrap
29514 msgid ""
29515 " char **\n"
29516 " guestfs_lvs (guestfs_h *g);\n"
29517 "\n"
29518 msgstr ""
29519
29520 #. type: textblock
29521 #: ../src/guestfs-actions.pod:4787
29522 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
29523 msgstr ""
29524
29525 #. type: =head2
29526 #: ../src/guestfs-actions.pod:4795
29527 msgid "guestfs_lvs_full"
29528 msgstr ""
29529
29530 #. type: verbatim
29531 #: ../src/guestfs-actions.pod:4797
29532 #, no-wrap
29533 msgid ""
29534 " struct guestfs_lvm_lv_list *\n"
29535 " guestfs_lvs_full (guestfs_h *g);\n"
29536 "\n"
29537 msgstr ""
29538
29539 #. type: textblock
29540 #: ../src/guestfs-actions.pod:4803
29541 msgid ""
29542 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
29543 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after "
29544 "use>."
29545 msgstr ""
29546
29547 #. type: =head2
29548 #: ../src/guestfs-actions.pod:4809
29549 msgid "guestfs_lvuuid"
29550 msgstr ""
29551
29552 #. type: verbatim
29553 #: ../src/guestfs-actions.pod:4811
29554 #, no-wrap
29555 msgid ""
29556 " char *\n"
29557 " guestfs_lvuuid (guestfs_h *g,\n"
29558 "                 const char *device);\n"
29559 "\n"
29560 msgstr ""
29561
29562 #. type: =head2
29563 #: ../src/guestfs-actions.pod:4822
29564 msgid "guestfs_lxattrlist"
29565 msgstr ""
29566
29567 #. type: verbatim
29568 #: ../src/guestfs-actions.pod:4824
29569 #, no-wrap
29570 msgid ""
29571 " struct guestfs_xattr_list *\n"
29572 " guestfs_lxattrlist (guestfs_h *g,\n"
29573 "                     const char *path,\n"
29574 "                     char *const *names);\n"
29575 "\n"
29576 msgstr ""
29577
29578 #. type: textblock
29579 #: ../src/guestfs-actions.pod:4843
29580 msgid ""
29581 "This call is intended for programs that want to efficiently list a directory "
29582 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
29583 "a similarly efficient call for getting standard stats.  Very long directory "
29584 "listings might cause the protocol message size to be exceeded, causing this "
29585 "call to fail.  The caller must split up such requests into smaller groups of "
29586 "names."
29587 msgstr ""
29588
29589 #. type: =head2
29590 #: ../src/guestfs-actions.pod:4857
29591 msgid "guestfs_mkdir"
29592 msgstr ""
29593
29594 #. type: verbatim
29595 #: ../src/guestfs-actions.pod:4859
29596 #, no-wrap
29597 msgid ""
29598 " int\n"
29599 " guestfs_mkdir (guestfs_h *g,\n"
29600 "                const char *path);\n"
29601 "\n"
29602 msgstr ""
29603
29604 #. type: =head2
29605 #: ../src/guestfs-actions.pod:4869
29606 msgid "guestfs_mkdir_mode"
29607 msgstr ""
29608
29609 #. type: verbatim
29610 #: ../src/guestfs-actions.pod:4871
29611 #, no-wrap
29612 msgid ""
29613 " int\n"
29614 " guestfs_mkdir_mode (guestfs_h *g,\n"
29615 "                     const char *path,\n"
29616 "                     int mode);\n"
29617 "\n"
29618 msgstr ""
29619
29620 #. type: textblock
29621 #: ../src/guestfs-actions.pod:4883
29622 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
29623 msgstr ""
29624
29625 #. type: =head2
29626 #: ../src/guestfs-actions.pod:4889
29627 msgid "guestfs_mkdir_p"
29628 msgstr ""
29629
29630 #. type: verbatim
29631 #: ../src/guestfs-actions.pod:4891
29632 #, no-wrap
29633 msgid ""
29634 " int\n"
29635 " guestfs_mkdir_p (guestfs_h *g,\n"
29636 "                  const char *path);\n"
29637 "\n"
29638 msgstr ""
29639
29640 #. type: =head2
29641 #: ../src/guestfs-actions.pod:4902
29642 msgid "guestfs_mkdtemp"
29643 msgstr ""
29644
29645 #. type: verbatim
29646 #: ../src/guestfs-actions.pod:4904
29647 #, no-wrap
29648 msgid ""
29649 " char *\n"
29650 " guestfs_mkdtemp (guestfs_h *g,\n"
29651 "                  const char *template);\n"
29652 "\n"
29653 msgstr ""
29654
29655 #. type: =head2
29656 #: ../src/guestfs-actions.pod:4932
29657 msgid "guestfs_mke2fs_J"
29658 msgstr ""
29659
29660 #. type: verbatim
29661 #: ../src/guestfs-actions.pod:4934
29662 #, no-wrap
29663 msgid ""
29664 " int\n"
29665 " guestfs_mke2fs_J (guestfs_h *g,\n"
29666 "                   const char *fstype,\n"
29667 "                   int blocksize,\n"
29668 "                   const char *device,\n"
29669 "                   const char *journal);\n"
29670 "\n"
29671 msgstr ""
29672
29673 #. type: textblock
29674 #: ../src/guestfs-actions.pod:4947
29675 msgid "See also C<guestfs_mke2journal>."
29676 msgstr ""
29677
29678 #. type: textblock
29679 #: ../src/guestfs-actions.pod:4951 ../src/guestfs-actions.pod:4969 ../src/guestfs-actions.pod:4987 ../src/guestfs-actions.pod:5003 ../src/guestfs-actions.pod:5017 ../src/guestfs-actions.pod:5031 ../src/guestfs-actions.pod:5090 ../src/guestfs-actions.pod:5367
29680 msgid "(Added in 1.0.68)"
29681 msgstr ""
29682
29683 #. type: =head2
29684 #: ../src/guestfs-actions.pod:4953
29685 msgid "guestfs_mke2fs_JL"
29686 msgstr ""
29687
29688 #. type: verbatim
29689 #: ../src/guestfs-actions.pod:4955
29690 #, no-wrap
29691 msgid ""
29692 " int\n"
29693 " guestfs_mke2fs_JL (guestfs_h *g,\n"
29694 "                    const char *fstype,\n"
29695 "                    int blocksize,\n"
29696 "                    const char *device,\n"
29697 "                    const char *label);\n"
29698 "\n"
29699 msgstr ""
29700
29701 #. type: textblock
29702 #: ../src/guestfs-actions.pod:4965
29703 msgid "See also C<guestfs_mke2journal_L>."
29704 msgstr ""
29705
29706 #. type: =head2
29707 #: ../src/guestfs-actions.pod:4971
29708 msgid "guestfs_mke2fs_JU"
29709 msgstr ""
29710
29711 #. type: verbatim
29712 #: ../src/guestfs-actions.pod:4973
29713 #, no-wrap
29714 msgid ""
29715 " int\n"
29716 " guestfs_mke2fs_JU (guestfs_h *g,\n"
29717 "                    const char *fstype,\n"
29718 "                    int blocksize,\n"
29719 "                    const char *device,\n"
29720 "                    const char *uuid);\n"
29721 "\n"
29722 msgstr ""
29723
29724 #. type: textblock
29725 #: ../src/guestfs-actions.pod:4983
29726 msgid "See also C<guestfs_mke2journal_U>."
29727 msgstr ""
29728
29729 #. type: =head2
29730 #: ../src/guestfs-actions.pod:4989
29731 msgid "guestfs_mke2journal"
29732 msgstr ""
29733
29734 #. type: verbatim
29735 #: ../src/guestfs-actions.pod:4991
29736 #, no-wrap
29737 msgid ""
29738 " int\n"
29739 " guestfs_mke2journal (guestfs_h *g,\n"
29740 "                      int blocksize,\n"
29741 "                      const char *device);\n"
29742 "\n"
29743 msgstr ""
29744
29745 #. type: =head2
29746 #: ../src/guestfs-actions.pod:5005
29747 msgid "guestfs_mke2journal_L"
29748 msgstr ""
29749
29750 #. type: verbatim
29751 #: ../src/guestfs-actions.pod:5007
29752 #, no-wrap
29753 msgid ""
29754 " int\n"
29755 " guestfs_mke2journal_L (guestfs_h *g,\n"
29756 "                        int blocksize,\n"
29757 "                        const char *label,\n"
29758 "                        const char *device);\n"
29759 "\n"
29760 msgstr ""
29761
29762 #. type: =head2
29763 #: ../src/guestfs-actions.pod:5019
29764 msgid "guestfs_mke2journal_U"
29765 msgstr ""
29766
29767 #. type: verbatim
29768 #: ../src/guestfs-actions.pod:5021
29769 #, no-wrap
29770 msgid ""
29771 " int\n"
29772 " guestfs_mke2journal_U (guestfs_h *g,\n"
29773 "                        int blocksize,\n"
29774 "                        const char *uuid,\n"
29775 "                        const char *device);\n"
29776 "\n"
29777 msgstr ""
29778
29779 #. type: =head2
29780 #: ../src/guestfs-actions.pod:5033
29781 msgid "guestfs_mkfifo"
29782 msgstr ""
29783
29784 #. type: verbatim
29785 #: ../src/guestfs-actions.pod:5035
29786 #, no-wrap
29787 msgid ""
29788 " int\n"
29789 " guestfs_mkfifo (guestfs_h *g,\n"
29790 "                 int mode,\n"
29791 "                 const char *path);\n"
29792 "\n"
29793 msgstr ""
29794
29795 #. type: textblock
29796 #: ../src/guestfs-actions.pod:5040
29797 msgid ""
29798 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
29799 "is just a convenient wrapper around C<guestfs_mknod>."
29800 msgstr ""
29801
29802 #. type: =head2
29803 #: ../src/guestfs-actions.pod:5050
29804 msgid "guestfs_mkfs"
29805 msgstr ""
29806
29807 #. type: verbatim
29808 #: ../src/guestfs-actions.pod:5052
29809 #, no-wrap
29810 msgid ""
29811 " int\n"
29812 " guestfs_mkfs (guestfs_h *g,\n"
29813 "               const char *fstype,\n"
29814 "               const char *device);\n"
29815 "\n"
29816 msgstr ""
29817
29818 #. type: =head2
29819 #: ../src/guestfs-actions.pod:5065
29820 msgid "guestfs_mkfs_b"
29821 msgstr ""
29822
29823 #. type: verbatim
29824 #: ../src/guestfs-actions.pod:5067
29825 #, no-wrap
29826 msgid ""
29827 " int\n"
29828 " guestfs_mkfs_b (guestfs_h *g,\n"
29829 "                 const char *fstype,\n"
29830 "                 int blocksize,\n"
29831 "                 const char *device);\n"
29832 "\n"
29833 msgstr ""
29834
29835 #. type: textblock
29836 #: ../src/guestfs-actions.pod:5073
29837 msgid ""
29838 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
29839 "call instead."
29840 msgstr ""
29841
29842 #. type: textblock
29843 #: ../src/guestfs-actions.pod:5080
29844 msgid ""
29845 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
29846 "block size of the resulting filesystem.  Supported block sizes depend on the "
29847 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
29848 msgstr ""
29849
29850 #. type: =head2
29851 #: ../src/guestfs-actions.pod:5092
29852 msgid "guestfs_mkfs_opts"
29853 msgstr ""
29854
29855 #. type: verbatim
29856 #: ../src/guestfs-actions.pod:5094
29857 #, no-wrap
29858 msgid ""
29859 " int\n"
29860 " guestfs_mkfs_opts (guestfs_h *g,\n"
29861 "                    const char *fstype,\n"
29862 "                    const char *device,\n"
29863 "                    ...);\n"
29864 "\n"
29865 msgstr ""
29866
29867 #. type: verbatim
29868 #: ../src/guestfs-actions.pod:5105
29869 #, no-wrap
29870 msgid ""
29871 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
29872 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
29873 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
29874 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
29875 "\n"
29876 msgstr ""
29877
29878 #. type: textblock
29879 #: ../src/guestfs-actions.pod:5153
29880 msgid "(Added in 1.7.19)"
29881 msgstr ""
29882
29883 #. type: =head2
29884 #: ../src/guestfs-actions.pod:5155
29885 msgid "guestfs_mkfs_opts_va"
29886 msgstr ""
29887
29888 #. type: verbatim
29889 #: ../src/guestfs-actions.pod:5157
29890 #, no-wrap
29891 msgid ""
29892 " int\n"
29893 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
29894 "                       const char *fstype,\n"
29895 "                       const char *device,\n"
29896 "                       va_list args);\n"
29897 "\n"
29898 msgstr ""
29899
29900 #. type: textblock
29901 #: ../src/guestfs-actions.pod:5163
29902 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
29903 msgstr ""
29904
29905 #. type: =head2
29906 #: ../src/guestfs-actions.pod:5167
29907 msgid "guestfs_mkfs_opts_argv"
29908 msgstr ""
29909
29910 #. type: verbatim
29911 #: ../src/guestfs-actions.pod:5169
29912 #, no-wrap
29913 msgid ""
29914 " int\n"
29915 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
29916 "                         const char *fstype,\n"
29917 "                         const char *device,\n"
29918 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
29919 "\n"
29920 msgstr ""
29921
29922 #. type: textblock
29923 #: ../src/guestfs-actions.pod:5175
29924 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
29925 msgstr ""
29926
29927 #. type: =head2
29928 #: ../src/guestfs-actions.pod:5179
29929 msgid "guestfs_mkmountpoint"
29930 msgstr ""
29931
29932 #. type: verbatim
29933 #: ../src/guestfs-actions.pod:5181
29934 #, no-wrap
29935 msgid ""
29936 " int\n"
29937 " guestfs_mkmountpoint (guestfs_h *g,\n"
29938 "                       const char *exemptpath);\n"
29939 "\n"
29940 msgstr ""
29941
29942 #. type: textblock
29943 #: ../src/guestfs-actions.pod:5185
29944 msgid ""
29945 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
29946 "that can be used to create extra mountpoints before mounting the first "
29947 "filesystem."
29948 msgstr ""
29949
29950 #. type: textblock
29951 #: ../src/guestfs-actions.pod:5209
29952 msgid ""
29953 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
29954 "may get unexpected errors if you try to mix these calls.  It is safest to "
29955 "manually unmount filesystems and remove mountpoints after use."
29956 msgstr ""
29957
29958 #. type: textblock
29959 #: ../src/guestfs-actions.pod:5213
29960 msgid ""
29961 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
29962 "first, so for this to work for manual mountpoints, you must ensure that the "
29963 "innermost mountpoints have the longest pathnames, as in the example code "
29964 "above."
29965 msgstr ""
29966
29967 #. type: textblock
29968 #: ../src/guestfs-actions.pod:5220
29969 msgid ""
29970 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
29971 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
29972 "can also trigger these issues."
29973 msgstr ""
29974
29975 #. type: textblock
29976 #: ../src/guestfs-actions.pod:5226 ../src/guestfs-actions.pod:5532 ../src/guestfs-actions.pod:6559
29977 msgid "(Added in 1.0.62)"
29978 msgstr ""
29979
29980 #. type: =head2
29981 #: ../src/guestfs-actions.pod:5228
29982 msgid "guestfs_mknod"
29983 msgstr ""
29984
29985 #. type: verbatim
29986 #: ../src/guestfs-actions.pod:5230
29987 #, no-wrap
29988 msgid ""
29989 " int\n"
29990 " guestfs_mknod (guestfs_h *g,\n"
29991 "                int mode,\n"
29992 "                int devmajor,\n"
29993 "                int devminor,\n"
29994 "                const char *path);\n"
29995 "\n"
29996 msgstr ""
29997
29998 #. type: textblock
29999 #: ../src/guestfs-actions.pod:5245
30000 msgid ""
30001 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
30002 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
30003 "regular file).  These constants are available in the standard Linux header "
30004 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
30005 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
30006 "the appropriate constant for you."
30007 msgstr ""
30008
30009 #. type: =head2
30010 #: ../src/guestfs-actions.pod:5259
30011 msgid "guestfs_mknod_b"
30012 msgstr ""
30013
30014 #. type: verbatim
30015 #: ../src/guestfs-actions.pod:5261
30016 #, no-wrap
30017 msgid ""
30018 " int\n"
30019 " guestfs_mknod_b (guestfs_h *g,\n"
30020 "                  int mode,\n"
30021 "                  int devmajor,\n"
30022 "                  int devminor,\n"
30023 "                  const char *path);\n"
30024 "\n"
30025 msgstr ""
30026
30027 #. type: textblock
30028 #: ../src/guestfs-actions.pod:5268
30029 msgid ""
30030 "This call creates a block device node called C<path> with mode C<mode> and "
30031 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
30032 "wrapper around C<guestfs_mknod>."
30033 msgstr ""
30034
30035 #. type: =head2
30036 #: ../src/guestfs-actions.pod:5278
30037 msgid "guestfs_mknod_c"
30038 msgstr ""
30039
30040 #. type: verbatim
30041 #: ../src/guestfs-actions.pod:5280
30042 #, no-wrap
30043 msgid ""
30044 " int\n"
30045 " guestfs_mknod_c (guestfs_h *g,\n"
30046 "                  int mode,\n"
30047 "                  int devmajor,\n"
30048 "                  int devminor,\n"
30049 "                  const char *path);\n"
30050 "\n"
30051 msgstr ""
30052
30053 #. type: textblock
30054 #: ../src/guestfs-actions.pod:5287
30055 msgid ""
30056 "This call creates a char device node called C<path> with mode C<mode> and "
30057 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
30058 "wrapper around C<guestfs_mknod>."
30059 msgstr ""
30060
30061 #. type: =head2
30062 #: ../src/guestfs-actions.pod:5297
30063 msgid "guestfs_mkswap"
30064 msgstr ""
30065
30066 #. type: verbatim
30067 #: ../src/guestfs-actions.pod:5299
30068 #, no-wrap
30069 msgid ""
30070 " int\n"
30071 " guestfs_mkswap (guestfs_h *g,\n"
30072 "                 const char *device);\n"
30073 "\n"
30074 msgstr ""
30075
30076 #. type: =head2
30077 #: ../src/guestfs-actions.pod:5309
30078 msgid "guestfs_mkswap_L"
30079 msgstr ""
30080
30081 #. type: verbatim
30082 #: ../src/guestfs-actions.pod:5311
30083 #, no-wrap
30084 msgid ""
30085 " int\n"
30086 " guestfs_mkswap_L (guestfs_h *g,\n"
30087 "                   const char *label,\n"
30088 "                   const char *device);\n"
30089 "\n"
30090 msgstr ""
30091
30092 #. type: =head2
30093 #: ../src/guestfs-actions.pod:5326
30094 msgid "guestfs_mkswap_U"
30095 msgstr ""
30096
30097 #. type: verbatim
30098 #: ../src/guestfs-actions.pod:5328
30099 #, no-wrap
30100 msgid ""
30101 " int\n"
30102 " guestfs_mkswap_U (guestfs_h *g,\n"
30103 "                   const char *uuid,\n"
30104 "                   const char *device);\n"
30105 "\n"
30106 msgstr ""
30107
30108 #. type: =head2
30109 #: ../src/guestfs-actions.pod:5339
30110 msgid "guestfs_mkswap_file"
30111 msgstr ""
30112
30113 #. type: verbatim
30114 #: ../src/guestfs-actions.pod:5341
30115 #, no-wrap
30116 msgid ""
30117 " int\n"
30118 " guestfs_mkswap_file (guestfs_h *g,\n"
30119 "                      const char *path);\n"
30120 "\n"
30121 msgstr ""
30122
30123 #. type: textblock
30124 #: ../src/guestfs-actions.pod:5347
30125 msgid ""
30126 "This command just writes a swap file signature to an existing file.  To "
30127 "create the file itself, use something like C<guestfs_fallocate>."
30128 msgstr ""
30129
30130 #. type: =head2
30131 #: ../src/guestfs-actions.pod:5354
30132 msgid "guestfs_modprobe"
30133 msgstr ""
30134
30135 #. type: verbatim
30136 #: ../src/guestfs-actions.pod:5356
30137 #, no-wrap
30138 msgid ""
30139 " int\n"
30140 " guestfs_modprobe (guestfs_h *g,\n"
30141 "                   const char *modulename);\n"
30142 "\n"
30143 msgstr ""
30144
30145 #. type: =head2
30146 #: ../src/guestfs-actions.pod:5369
30147 msgid "guestfs_mount"
30148 msgstr ""
30149
30150 #. type: verbatim
30151 #: ../src/guestfs-actions.pod:5371
30152 #, no-wrap
30153 msgid ""
30154 " int\n"
30155 " guestfs_mount (guestfs_h *g,\n"
30156 "                const char *device,\n"
30157 "                const char *mountpoint);\n"
30158 "\n"
30159 msgstr ""
30160
30161 #. type: textblock
30162 #: ../src/guestfs-actions.pod:5390
30163 msgid ""
30164 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
30165 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
30166 "problems for users.  If your program might need to work with older versions "
30167 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
30168 "for the first parameter if you don't want any options)."
30169 msgstr ""
30170
30171 #. type: =head2
30172 #: ../src/guestfs-actions.pod:5401
30173 msgid "guestfs_mount_9p"
30174 msgstr ""
30175
30176 #. type: verbatim
30177 #: ../src/guestfs-actions.pod:5403
30178 #, no-wrap
30179 msgid ""
30180 " int\n"
30181 " guestfs_mount_9p (guestfs_h *g,\n"
30182 "                   const char *mounttag,\n"
30183 "                   const char *mountpoint,\n"
30184 "                   ...);\n"
30185 "\n"
30186 msgstr ""
30187
30188 #. type: verbatim
30189 #: ../src/guestfs-actions.pod:5414
30190 #, no-wrap
30191 msgid ""
30192 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
30193 "\n"
30194 msgstr ""
30195
30196 #. type: =head2
30197 #: ../src/guestfs-actions.pod:5427
30198 msgid "guestfs_mount_9p_va"
30199 msgstr ""
30200
30201 #. type: verbatim
30202 #: ../src/guestfs-actions.pod:5429
30203 #, no-wrap
30204 msgid ""
30205 " int\n"
30206 " guestfs_mount_9p_va (guestfs_h *g,\n"
30207 "                      const char *mounttag,\n"
30208 "                      const char *mountpoint,\n"
30209 "                      va_list args);\n"
30210 "\n"
30211 msgstr ""
30212
30213 #. type: textblock
30214 #: ../src/guestfs-actions.pod:5435
30215 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
30216 msgstr ""
30217
30218 #. type: =head2
30219 #: ../src/guestfs-actions.pod:5439
30220 msgid "guestfs_mount_9p_argv"
30221 msgstr ""
30222
30223 #. type: verbatim
30224 #: ../src/guestfs-actions.pod:5441
30225 #, no-wrap
30226 msgid ""
30227 " int\n"
30228 " guestfs_mount_9p_argv (guestfs_h *g,\n"
30229 "                        const char *mounttag,\n"
30230 "                        const char *mountpoint,\n"
30231 "                        const struct guestfs_mount_9p_argv *optargs);\n"
30232 "\n"
30233 msgstr ""
30234
30235 #. type: textblock
30236 #: ../src/guestfs-actions.pod:5447
30237 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
30238 msgstr ""
30239
30240 #. type: =head2
30241 #: ../src/guestfs-actions.pod:5451
30242 msgid "guestfs_mount_loop"
30243 msgstr ""
30244
30245 #. type: verbatim
30246 #: ../src/guestfs-actions.pod:5453
30247 #, no-wrap
30248 msgid ""
30249 " int\n"
30250 " guestfs_mount_loop (guestfs_h *g,\n"
30251 "                     const char *file,\n"
30252 "                     const char *mountpoint);\n"
30253 "\n"
30254 msgstr ""
30255
30256 #. type: =head2
30257 #: ../src/guestfs-actions.pod:5466
30258 msgid "guestfs_mount_options"
30259 msgstr ""
30260
30261 #. type: verbatim
30262 #: ../src/guestfs-actions.pod:5468
30263 #, no-wrap
30264 msgid ""
30265 " int\n"
30266 " guestfs_mount_options (guestfs_h *g,\n"
30267 "                        const char *options,\n"
30268 "                        const char *device,\n"
30269 "                        const char *mountpoint);\n"
30270 "\n"
30271 msgstr ""
30272
30273 #. type: textblock
30274 #: ../src/guestfs-actions.pod:5474
30275 msgid ""
30276 "This is the same as the C<guestfs_mount> command, but it allows you to set "
30277 "the mount options as for the L<mount(8)> I<-o> flag."
30278 msgstr ""
30279
30280 #. type: textblock
30281 #: ../src/guestfs-actions.pod:5484 ../src/guestfs-actions.pod:5498 ../src/guestfs-actions.pod:5515
30282 msgid "(Added in 1.0.10)"
30283 msgstr ""
30284
30285 #. type: =head2
30286 #: ../src/guestfs-actions.pod:5486
30287 msgid "guestfs_mount_ro"
30288 msgstr ""
30289
30290 #. type: verbatim
30291 #: ../src/guestfs-actions.pod:5488
30292 #, no-wrap
30293 msgid ""
30294 " int\n"
30295 " guestfs_mount_ro (guestfs_h *g,\n"
30296 "                   const char *device,\n"
30297 "                   const char *mountpoint);\n"
30298 "\n"
30299 msgstr ""
30300
30301 #. type: textblock
30302 #: ../src/guestfs-actions.pod:5493
30303 msgid ""
30304 "This is the same as the C<guestfs_mount> command, but it mounts the "
30305 "filesystem with the read-only (I<-o ro>) flag."
30306 msgstr ""
30307
30308 #. type: =head2
30309 #: ../src/guestfs-actions.pod:5500
30310 msgid "guestfs_mount_vfs"
30311 msgstr ""
30312
30313 #. type: verbatim
30314 #: ../src/guestfs-actions.pod:5502
30315 #, no-wrap
30316 msgid ""
30317 " int\n"
30318 " guestfs_mount_vfs (guestfs_h *g,\n"
30319 "                    const char *options,\n"
30320 "                    const char *vfstype,\n"
30321 "                    const char *device,\n"
30322 "                    const char *mountpoint);\n"
30323 "\n"
30324 msgstr ""
30325
30326 #. type: textblock
30327 #: ../src/guestfs-actions.pod:5509
30328 msgid ""
30329 "This is the same as the C<guestfs_mount> command, but it allows you to set "
30330 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and "
30331 "I<-t> flags."
30332 msgstr ""
30333
30334 #. type: =head2
30335 #: ../src/guestfs-actions.pod:5517
30336 msgid "guestfs_mountpoints"
30337 msgstr ""
30338
30339 #. type: verbatim
30340 #: ../src/guestfs-actions.pod:5519
30341 #, no-wrap
30342 msgid ""
30343 " char **\n"
30344 " guestfs_mountpoints (guestfs_h *g);\n"
30345 "\n"
30346 msgstr ""
30347
30348 #. type: textblock
30349 #: ../src/guestfs-actions.pod:5522
30350 msgid ""
30351 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
30352 "devices.  This one returns a hash table (map) of device name to directory "
30353 "where the device is mounted."
30354 msgstr ""
30355
30356 #. type: =head2
30357 #: ../src/guestfs-actions.pod:5534
30358 msgid "guestfs_mounts"
30359 msgstr ""
30360
30361 #. type: verbatim
30362 #: ../src/guestfs-actions.pod:5536
30363 #, no-wrap
30364 msgid ""
30365 " char **\n"
30366 " guestfs_mounts (guestfs_h *g);\n"
30367 "\n"
30368 msgstr ""
30369
30370 #. type: textblock
30371 #: ../src/guestfs-actions.pod:5544
30372 msgid "See also: C<guestfs_mountpoints>"
30373 msgstr ""
30374
30375 #. type: =head2
30376 #: ../src/guestfs-actions.pod:5552
30377 msgid "guestfs_mv"
30378 msgstr ""
30379
30380 #. type: verbatim
30381 #: ../src/guestfs-actions.pod:5554
30382 #, no-wrap
30383 msgid ""
30384 " int\n"
30385 " guestfs_mv (guestfs_h *g,\n"
30386 "             const char *src,\n"
30387 "             const char *dest);\n"
30388 "\n"
30389 msgstr ""
30390
30391 #. type: =head2
30392 #: ../src/guestfs-actions.pod:5566
30393 msgid "guestfs_ntfs_3g_probe"
30394 msgstr ""
30395
30396 #. type: verbatim
30397 #: ../src/guestfs-actions.pod:5568
30398 #, no-wrap
30399 msgid ""
30400 " int\n"
30401 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
30402 "                        int rw,\n"
30403 "                        const char *device);\n"
30404 "\n"
30405 msgstr ""
30406
30407 #. type: textblock
30408 #: ../src/guestfs-actions.pod:5587
30409 msgid "(Added in 1.0.43)"
30410 msgstr ""
30411
30412 #. type: =head2
30413 #: ../src/guestfs-actions.pod:5589
30414 msgid "guestfs_ntfsresize"
30415 msgstr ""
30416
30417 #. type: verbatim
30418 #: ../src/guestfs-actions.pod:5591
30419 #, no-wrap
30420 msgid ""
30421 " int\n"
30422 " guestfs_ntfsresize (guestfs_h *g,\n"
30423 "                     const char *device);\n"
30424 "\n"
30425 msgstr ""
30426
30427 #. type: textblock
30428 #: ../src/guestfs-actions.pod:5595 ../src/guestfs-actions.pod:5695
30429 msgid ""
30430 "I<This function is deprecated.> In new code, use the "
30431 "L</guestfs_ntfsresize_opts> call instead."
30432 msgstr ""
30433
30434 #. type: =head2
30435 #: ../src/guestfs-actions.pod:5619
30436 msgid "guestfs_ntfsresize_opts"
30437 msgstr ""
30438
30439 #. type: verbatim
30440 #: ../src/guestfs-actions.pod:5621
30441 #, no-wrap
30442 msgid ""
30443 " int\n"
30444 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
30445 "                          const char *device,\n"
30446 "                          ...);\n"
30447 "\n"
30448 msgstr ""
30449
30450 #. type: verbatim
30451 #: ../src/guestfs-actions.pod:5631
30452 #, no-wrap
30453 msgid ""
30454 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
30455 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
30456 "\n"
30457 msgstr ""
30458
30459 #. type: textblock
30460 #: ../src/guestfs-actions.pod:5651
30461 msgid ""
30462 "After the resize operation, the filesystem is always marked as requiring a "
30463 "consistency check (for safety).  You have to boot into Windows to perform "
30464 "this check and clear this condition.  If you I<don't> set the C<force> "
30465 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
30466 "times on a single filesystem without booting into Windows between each "
30467 "resize."
30468 msgstr ""
30469
30470 #. type: =head2
30471 #: ../src/guestfs-actions.pod:5666
30472 msgid "guestfs_ntfsresize_opts_va"
30473 msgstr ""
30474
30475 #. type: verbatim
30476 #: ../src/guestfs-actions.pod:5668
30477 #, no-wrap
30478 msgid ""
30479 " int\n"
30480 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
30481 "                             const char *device,\n"
30482 "                             va_list args);\n"
30483 "\n"
30484 msgstr ""
30485
30486 #. type: textblock
30487 #: ../src/guestfs-actions.pod:5673
30488 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
30489 msgstr ""
30490
30491 #. type: =head2
30492 #: ../src/guestfs-actions.pod:5677
30493 msgid "guestfs_ntfsresize_opts_argv"
30494 msgstr ""
30495
30496 #. type: verbatim
30497 #: ../src/guestfs-actions.pod:5679
30498 #, no-wrap
30499 msgid ""
30500 " int\n"
30501 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
30502 "                               const char *device,\n"
30503 "                               const struct guestfs_ntfsresize_opts_argv "
30504 "*optargs);\n"
30505 "\n"
30506 msgstr ""
30507
30508 #. type: textblock
30509 #: ../src/guestfs-actions.pod:5684
30510 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
30511 msgstr ""
30512
30513 #. type: =head2
30514 #: ../src/guestfs-actions.pod:5688
30515 msgid "guestfs_ntfsresize_size"
30516 msgstr ""
30517
30518 #. type: verbatim
30519 #: ../src/guestfs-actions.pod:5690
30520 #, no-wrap
30521 msgid ""
30522 " int\n"
30523 " guestfs_ntfsresize_size (guestfs_h *g,\n"
30524 "                          const char *device,\n"
30525 "                          int64_t size);\n"
30526 "\n"
30527 msgstr ""
30528
30529 #. type: textblock
30530 #: ../src/guestfs-actions.pod:5702
30531 msgid ""
30532 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
30533 "to specify the new size (in bytes) explicitly."
30534 msgstr ""
30535
30536 #. type: textblock
30537 #: ../src/guestfs-actions.pod:5707 ../src/guestfs-actions.pod:6166 ../src/guestfs-actions.pod:6239 ../src/guestfs-actions.pod:6507 ../src/guestfs-actions.pod:8134
30538 msgid "(Added in 1.3.14)"
30539 msgstr ""
30540
30541 #. type: =head2
30542 #: ../src/guestfs-actions.pod:5709
30543 msgid "guestfs_part_add"
30544 msgstr ""
30545
30546 #. type: verbatim
30547 #: ../src/guestfs-actions.pod:5711
30548 #, no-wrap
30549 msgid ""
30550 " int\n"
30551 " guestfs_part_add (guestfs_h *g,\n"
30552 "                   const char *device,\n"
30553 "                   const char *prlogex,\n"
30554 "                   int64_t startsect,\n"
30555 "                   int64_t endsect);\n"
30556 "\n"
30557 msgstr ""
30558
30559 #. type: textblock
30560 #: ../src/guestfs-actions.pod:5718
30561 msgid ""
30562 "This command adds a partition to C<device>.  If there is no partition table "
30563 "on the device, call C<guestfs_part_init> first."
30564 msgstr ""
30565
30566 #. type: textblock
30567 #: ../src/guestfs-actions.pod:5730
30568 msgid ""
30569 "Creating a partition which covers the whole disk is not so easy.  Use "
30570 "C<guestfs_part_disk> to do that."
30571 msgstr ""
30572
30573 #. type: textblock
30574 #: ../src/guestfs-actions.pod:5735 ../src/guestfs-actions.pod:5770 ../src/guestfs-actions.pod:5823 ../src/guestfs-actions.pod:5907 ../src/guestfs-actions.pod:5945 ../src/guestfs-actions.pod:5964 ../src/guestfs-actions.pod:6004
30575 msgid "(Added in 1.0.78)"
30576 msgstr ""
30577
30578 #. type: =head2
30579 #: ../src/guestfs-actions.pod:5737
30580 msgid "guestfs_part_del"
30581 msgstr ""
30582
30583 #. type: verbatim
30584 #: ../src/guestfs-actions.pod:5739
30585 #, no-wrap
30586 msgid ""
30587 " int\n"
30588 " guestfs_part_del (guestfs_h *g,\n"
30589 "                   const char *device,\n"
30590 "                   int partnum);\n"
30591 "\n"
30592 msgstr ""
30593
30594 #. type: =head2
30595 #: ../src/guestfs-actions.pod:5754
30596 msgid "guestfs_part_disk"
30597 msgstr ""
30598
30599 #. type: verbatim
30600 #: ../src/guestfs-actions.pod:5756
30601 #, no-wrap
30602 msgid ""
30603 " int\n"
30604 " guestfs_part_disk (guestfs_h *g,\n"
30605 "                    const char *device,\n"
30606 "                    const char *parttype);\n"
30607 "\n"
30608 msgstr ""
30609
30610 #. type: textblock
30611 #: ../src/guestfs-actions.pod:5761
30612 msgid ""
30613 "This command is simply a combination of C<guestfs_part_init> followed by "
30614 "C<guestfs_part_add> to create a single primary partition covering the whole "
30615 "disk."
30616 msgstr ""
30617
30618 #. type: textblock
30619 #: ../src/guestfs-actions.pod:5765
30620 msgid ""
30621 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
30622 "possible values are described in C<guestfs_part_init>."
30623 msgstr ""
30624
30625 #. type: =head2
30626 #: ../src/guestfs-actions.pod:5772
30627 msgid "guestfs_part_get_bootable"
30628 msgstr ""
30629
30630 #. type: verbatim
30631 #: ../src/guestfs-actions.pod:5774
30632 #, no-wrap
30633 msgid ""
30634 " int\n"
30635 " guestfs_part_get_bootable (guestfs_h *g,\n"
30636 "                            const char *device,\n"
30637 "                            int partnum);\n"
30638 "\n"
30639 msgstr ""
30640
30641 #. type: textblock
30642 #: ../src/guestfs-actions.pod:5782
30643 msgid "See also C<guestfs_part_set_bootable>."
30644 msgstr ""
30645
30646 #. type: =head2
30647 #: ../src/guestfs-actions.pod:5788
30648 msgid "guestfs_part_get_mbr_id"
30649 msgstr ""
30650
30651 #. type: verbatim
30652 #: ../src/guestfs-actions.pod:5790
30653 #, no-wrap
30654 msgid ""
30655 " int\n"
30656 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
30657 "                          const char *device,\n"
30658 "                          int partnum);\n"
30659 "\n"
30660 msgstr ""
30661
30662 #. type: textblock
30663 #: ../src/guestfs-actions.pod:5798 ../src/guestfs-actions.pod:5980
30664 msgid ""
30665 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
30666 "undefined results for other partition table types (see "
30667 "C<guestfs_part_get_parttype>)."
30668 msgstr ""
30669
30670 #. type: =head2
30671 #: ../src/guestfs-actions.pod:5806
30672 msgid "guestfs_part_get_parttype"
30673 msgstr ""
30674
30675 #. type: verbatim
30676 #: ../src/guestfs-actions.pod:5808
30677 #, no-wrap
30678 msgid ""
30679 " char *\n"
30680 " guestfs_part_get_parttype (guestfs_h *g,\n"
30681 "                            const char *device);\n"
30682 "\n"
30683 msgstr ""
30684
30685 #. type: textblock
30686 #: ../src/guestfs-actions.pod:5815
30687 msgid ""
30688 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
30689 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
30690 "possible, although unusual.  See C<guestfs_part_init> for a full list."
30691 msgstr ""
30692
30693 #. type: =head2
30694 #: ../src/guestfs-actions.pod:5825
30695 msgid "guestfs_part_init"
30696 msgstr ""
30697
30698 #. type: verbatim
30699 #: ../src/guestfs-actions.pod:5827
30700 #, no-wrap
30701 msgid ""
30702 " int\n"
30703 " guestfs_part_init (guestfs_h *g,\n"
30704 "                    const char *device,\n"
30705 "                    const char *parttype);\n"
30706 "\n"
30707 msgstr ""
30708
30709 #. type: textblock
30710 #: ../src/guestfs-actions.pod:5836
30711 msgid ""
30712 "Initially there are no partitions.  Following this, you should call "
30713 "C<guestfs_part_add> for each partition required."
30714 msgstr ""
30715
30716 #. type: =head2
30717 #: ../src/guestfs-actions.pod:5909
30718 msgid "guestfs_part_list"
30719 msgstr ""
30720
30721 #. type: verbatim
30722 #: ../src/guestfs-actions.pod:5911
30723 #, no-wrap
30724 msgid ""
30725 " struct guestfs_partition_list *\n"
30726 " guestfs_part_list (guestfs_h *g,\n"
30727 "                    const char *device);\n"
30728 "\n"
30729 msgstr ""
30730
30731 #. type: textblock
30732 #: ../src/guestfs-actions.pod:5928
30733 msgid ""
30734 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
30735 "the device's sector size, see C<guestfs_blockdev_getss>."
30736 msgstr ""
30737
30738 #. type: textblock
30739 #: ../src/guestfs-actions.pod:5941
30740 msgid ""
30741 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
30742 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
30743 "use>."
30744 msgstr ""
30745
30746 #. type: =head2
30747 #: ../src/guestfs-actions.pod:5947
30748 msgid "guestfs_part_set_bootable"
30749 msgstr ""
30750
30751 #. type: verbatim
30752 #: ../src/guestfs-actions.pod:5949
30753 #, no-wrap
30754 msgid ""
30755 " int\n"
30756 " guestfs_part_set_bootable (guestfs_h *g,\n"
30757 "                            const char *device,\n"
30758 "                            int partnum,\n"
30759 "                            int bootable);\n"
30760 "\n"
30761 msgstr ""
30762
30763 #. type: =head2
30764 #: ../src/guestfs-actions.pod:5966
30765 msgid "guestfs_part_set_mbr_id"
30766 msgstr ""
30767
30768 #. type: verbatim
30769 #: ../src/guestfs-actions.pod:5968
30770 #, no-wrap
30771 msgid ""
30772 " int\n"
30773 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
30774 "                          const char *device,\n"
30775 "                          int partnum,\n"
30776 "                          int idbyte);\n"
30777 "\n"
30778 msgstr ""
30779
30780 #. type: =head2
30781 #: ../src/guestfs-actions.pod:5988
30782 msgid "guestfs_part_set_name"
30783 msgstr ""
30784
30785 #. type: verbatim
30786 #: ../src/guestfs-actions.pod:5990
30787 #, no-wrap
30788 msgid ""
30789 " int\n"
30790 " guestfs_part_set_name (guestfs_h *g,\n"
30791 "                        const char *device,\n"
30792 "                        int partnum,\n"
30793 "                        const char *name);\n"
30794 "\n"
30795 msgstr ""
30796
30797 #. type: =head2
30798 #: ../src/guestfs-actions.pod:6006
30799 msgid "guestfs_part_to_dev"
30800 msgstr ""
30801
30802 #. type: verbatim
30803 #: ../src/guestfs-actions.pod:6008
30804 #, no-wrap
30805 msgid ""
30806 " char *\n"
30807 " guestfs_part_to_dev (guestfs_h *g,\n"
30808 "                      const char *partition);\n"
30809 "\n"
30810 msgstr ""
30811
30812 #. type: textblock
30813 #: ../src/guestfs-actions.pod:6016 ../src/guestfs-actions.pod:6035
30814 msgid ""
30815 "The named partition must exist, for example as a string returned from "
30816 "C<guestfs_list_partitions>."
30817 msgstr ""
30818
30819 #. type: textblock
30820 #: ../src/guestfs-actions.pod:6019
30821 msgid "See also C<guestfs_part_to_partnum>."
30822 msgstr ""
30823
30824 #. type: =head2
30825 #: ../src/guestfs-actions.pod:6026
30826 msgid "guestfs_part_to_partnum"
30827 msgstr ""
30828
30829 #. type: verbatim
30830 #: ../src/guestfs-actions.pod:6028
30831 #, no-wrap
30832 msgid ""
30833 " int\n"
30834 " guestfs_part_to_partnum (guestfs_h *g,\n"
30835 "                          const char *partition);\n"
30836 "\n"
30837 msgstr ""
30838
30839 #. type: textblock
30840 #: ../src/guestfs-actions.pod:6038
30841 msgid "See also C<guestfs_part_to_dev>."
30842 msgstr ""
30843
30844 #. type: =head2
30845 #: ../src/guestfs-actions.pod:6044
30846 msgid "guestfs_ping_daemon"
30847 msgstr ""
30848
30849 #. type: verbatim
30850 #: ../src/guestfs-actions.pod:6046
30851 #, no-wrap
30852 msgid ""
30853 " int\n"
30854 " guestfs_ping_daemon (guestfs_h *g);\n"
30855 "\n"
30856 msgstr ""
30857
30858 #. type: =head2
30859 #: ../src/guestfs-actions.pod:6058
30860 msgid "guestfs_pread"
30861 msgstr ""
30862
30863 #. type: verbatim
30864 #: ../src/guestfs-actions.pod:6060
30865 #, no-wrap
30866 msgid ""
30867 " char *\n"
30868 " guestfs_pread (guestfs_h *g,\n"
30869 "                const char *path,\n"
30870 "                int count,\n"
30871 "                int64_t offset,\n"
30872 "                size_t *size_r);\n"
30873 "\n"
30874 msgstr ""
30875
30876 #. type: textblock
30877 #: ../src/guestfs-actions.pod:6073
30878 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
30879 msgstr ""
30880
30881 #. type: =head2
30882 #: ../src/guestfs-actions.pod:6084
30883 msgid "guestfs_pread_device"
30884 msgstr ""
30885
30886 #. type: verbatim
30887 #: ../src/guestfs-actions.pod:6086
30888 #, no-wrap
30889 msgid ""
30890 " char *\n"
30891 " guestfs_pread_device (guestfs_h *g,\n"
30892 "                       const char *device,\n"
30893 "                       int count,\n"
30894 "                       int64_t offset,\n"
30895 "                       size_t *size_r);\n"
30896 "\n"
30897 msgstr ""
30898
30899 #. type: textblock
30900 #: ../src/guestfs-actions.pod:6099
30901 msgid "See also C<guestfs_pread>."
30902 msgstr ""
30903
30904 #. type: textblock
30905 #: ../src/guestfs-actions.pod:6108
30906 msgid "(Added in 1.5.21)"
30907 msgstr ""
30908
30909 #. type: =head2
30910 #: ../src/guestfs-actions.pod:6110
30911 msgid "guestfs_pvcreate"
30912 msgstr ""
30913
30914 #. type: verbatim
30915 #: ../src/guestfs-actions.pod:6112
30916 #, no-wrap
30917 msgid ""
30918 " int\n"
30919 " guestfs_pvcreate (guestfs_h *g,\n"
30920 "                   const char *device);\n"
30921 "\n"
30922 msgstr ""
30923
30924 #. type: =head2
30925 #: ../src/guestfs-actions.pod:6124
30926 msgid "guestfs_pvremove"
30927 msgstr ""
30928
30929 #. type: verbatim
30930 #: ../src/guestfs-actions.pod:6126
30931 #, no-wrap
30932 msgid ""
30933 " int\n"
30934 " guestfs_pvremove (guestfs_h *g,\n"
30935 "                   const char *device);\n"
30936 "\n"
30937 msgstr ""
30938
30939 #. type: =head2
30940 #: ../src/guestfs-actions.pod:6141
30941 msgid "guestfs_pvresize"
30942 msgstr ""
30943
30944 #. type: verbatim
30945 #: ../src/guestfs-actions.pod:6143
30946 #, no-wrap
30947 msgid ""
30948 " int\n"
30949 " guestfs_pvresize (guestfs_h *g,\n"
30950 "                   const char *device);\n"
30951 "\n"
30952 msgstr ""
30953
30954 #. type: =head2
30955 #: ../src/guestfs-actions.pod:6154
30956 msgid "guestfs_pvresize_size"
30957 msgstr ""
30958
30959 #. type: verbatim
30960 #: ../src/guestfs-actions.pod:6156
30961 #, no-wrap
30962 msgid ""
30963 " int\n"
30964 " guestfs_pvresize_size (guestfs_h *g,\n"
30965 "                        const char *device,\n"
30966 "                        int64_t size);\n"
30967 "\n"
30968 msgstr ""
30969
30970 #. type: textblock
30971 #: ../src/guestfs-actions.pod:6161
30972 msgid ""
30973 "This command is the same as C<guestfs_pvresize> except that it allows you to "
30974 "specify the new size (in bytes) explicitly."
30975 msgstr ""
30976
30977 #. type: =head2
30978 #: ../src/guestfs-actions.pod:6168
30979 msgid "guestfs_pvs"
30980 msgstr ""
30981
30982 #. type: verbatim
30983 #: ../src/guestfs-actions.pod:6170
30984 #, no-wrap
30985 msgid ""
30986 " char **\n"
30987 " guestfs_pvs (guestfs_h *g);\n"
30988 "\n"
30989 msgstr ""
30990
30991 #. type: textblock
30992 #: ../src/guestfs-actions.pod:6179
30993 msgid "See also C<guestfs_pvs_full>."
30994 msgstr ""
30995
30996 #. type: =head2
30997 #: ../src/guestfs-actions.pod:6187
30998 msgid "guestfs_pvs_full"
30999 msgstr ""
31000
31001 #. type: verbatim
31002 #: ../src/guestfs-actions.pod:6189
31003 #, no-wrap
31004 msgid ""
31005 " struct guestfs_lvm_pv_list *\n"
31006 " guestfs_pvs_full (guestfs_h *g);\n"
31007 "\n"
31008 msgstr ""
31009
31010 #. type: textblock
31011 #: ../src/guestfs-actions.pod:6195
31012 msgid ""
31013 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
31014 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after "
31015 "use>."
31016 msgstr ""
31017
31018 #. type: =head2
31019 #: ../src/guestfs-actions.pod:6201
31020 msgid "guestfs_pvuuid"
31021 msgstr ""
31022
31023 #. type: verbatim
31024 #: ../src/guestfs-actions.pod:6203
31025 #, no-wrap
31026 msgid ""
31027 " char *\n"
31028 " guestfs_pvuuid (guestfs_h *g,\n"
31029 "                 const char *device);\n"
31030 "\n"
31031 msgstr ""
31032
31033 #. type: =head2
31034 #: ../src/guestfs-actions.pod:6214
31035 msgid "guestfs_pwrite"
31036 msgstr ""
31037
31038 #. type: verbatim
31039 #: ../src/guestfs-actions.pod:6216
31040 #, no-wrap
31041 msgid ""
31042 " int\n"
31043 " guestfs_pwrite (guestfs_h *g,\n"
31044 "                 const char *path,\n"
31045 "                 const char *content,\n"
31046 "                 size_t content_size,\n"
31047 "                 int64_t offset);\n"
31048 "\n"
31049 msgstr ""
31050
31051 #. type: textblock
31052 #: ../src/guestfs-actions.pod:6232
31053 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
31054 msgstr ""
31055
31056 #. type: =head2
31057 #: ../src/guestfs-actions.pod:6241
31058 msgid "guestfs_pwrite_device"
31059 msgstr ""
31060
31061 #. type: verbatim
31062 #: ../src/guestfs-actions.pod:6243
31063 #, no-wrap
31064 msgid ""
31065 " int\n"
31066 " guestfs_pwrite_device (guestfs_h *g,\n"
31067 "                        const char *device,\n"
31068 "                        const char *content,\n"
31069 "                        size_t content_size,\n"
31070 "                        int64_t offset);\n"
31071 "\n"
31072 msgstr ""
31073
31074 #. type: textblock
31075 #: ../src/guestfs-actions.pod:6258
31076 msgid "See also C<guestfs_pwrite>."
31077 msgstr ""
31078
31079 #. type: textblock
31080 #: ../src/guestfs-actions.pod:6265
31081 msgid "(Added in 1.5.20)"
31082 msgstr ""
31083
31084 #. type: =head2
31085 #: ../src/guestfs-actions.pod:6267
31086 msgid "guestfs_read_file"
31087 msgstr ""
31088
31089 #. type: verbatim
31090 #: ../src/guestfs-actions.pod:6269
31091 #, no-wrap
31092 msgid ""
31093 " char *\n"
31094 " guestfs_read_file (guestfs_h *g,\n"
31095 "                    const char *path,\n"
31096 "                    size_t *size_r);\n"
31097 "\n"
31098 msgstr ""
31099
31100 #. type: textblock
31101 #: ../src/guestfs-actions.pod:6277
31102 msgid ""
31103 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
31104 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
31105 "function is limited in the total size of file that can be handled."
31106 msgstr ""
31107
31108 #. type: textblock
31109 #: ../src/guestfs-actions.pod:6289
31110 msgid "(Added in 1.0.63)"
31111 msgstr ""
31112
31113 #. type: =head2
31114 #: ../src/guestfs-actions.pod:6291
31115 msgid "guestfs_read_lines"
31116 msgstr ""
31117
31118 #. type: verbatim
31119 #: ../src/guestfs-actions.pod:6293
31120 #, no-wrap
31121 msgid ""
31122 " char **\n"
31123 " guestfs_read_lines (guestfs_h *g,\n"
31124 "                     const char *path);\n"
31125 "\n"
31126 msgstr ""
31127
31128 #. type: textblock
31129 #: ../src/guestfs-actions.pod:6302
31130 msgid ""
31131 "Note that this function cannot correctly handle binary files (specifically, "
31132 "files containing C<\\0> character which is treated as end of line).  For "
31133 "those you need to use the C<guestfs_read_file> function which has a more "
31134 "complex interface."
31135 msgstr ""
31136
31137 #. type: =head2
31138 #: ../src/guestfs-actions.pod:6313
31139 msgid "guestfs_readdir"
31140 msgstr ""
31141
31142 #. type: verbatim
31143 #: ../src/guestfs-actions.pod:6315
31144 #, no-wrap
31145 msgid ""
31146 " struct guestfs_dirent_list *\n"
31147 " guestfs_readdir (guestfs_h *g,\n"
31148 "                  const char *dir);\n"
31149 "\n"
31150 msgstr ""
31151
31152 #. type: textblock
31153 #: ../src/guestfs-actions.pod:6369
31154 msgid ""
31155 "This function is primarily intended for use by programs.  To get a simple "
31156 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
31157 "consumption, use C<guestfs_ll>."
31158 msgstr ""
31159
31160 #. type: textblock
31161 #: ../src/guestfs-actions.pod:6373
31162 msgid ""
31163 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
31164 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after "
31165 "use>."
31166 msgstr ""
31167
31168 #. type: =head2
31169 #: ../src/guestfs-actions.pod:6379
31170 msgid "guestfs_readlink"
31171 msgstr ""
31172
31173 #. type: verbatim
31174 #: ../src/guestfs-actions.pod:6381
31175 #, no-wrap
31176 msgid ""
31177 " char *\n"
31178 " guestfs_readlink (guestfs_h *g,\n"
31179 "                   const char *path);\n"
31180 "\n"
31181 msgstr ""
31182
31183 #. type: =head2
31184 #: ../src/guestfs-actions.pod:6392
31185 msgid "guestfs_readlinklist"
31186 msgstr ""
31187
31188 #. type: verbatim
31189 #: ../src/guestfs-actions.pod:6394
31190 #, no-wrap
31191 msgid ""
31192 " char **\n"
31193 " guestfs_readlinklist (guestfs_h *g,\n"
31194 "                       const char *path,\n"
31195 "                       char *const *names);\n"
31196 "\n"
31197 msgstr ""
31198
31199 #. type: =head2
31200 #: ../src/guestfs-actions.pod:6427
31201 msgid "guestfs_realpath"
31202 msgstr ""
31203
31204 #. type: verbatim
31205 #: ../src/guestfs-actions.pod:6429
31206 #, no-wrap
31207 msgid ""
31208 " char *\n"
31209 " guestfs_realpath (guestfs_h *g,\n"
31210 "                   const char *path);\n"
31211 "\n"
31212 msgstr ""
31213
31214 #. type: =head2
31215 #: ../src/guestfs-actions.pod:6441
31216 msgid "guestfs_removexattr"
31217 msgstr ""
31218
31219 #. type: verbatim
31220 #: ../src/guestfs-actions.pod:6443
31221 #, no-wrap
31222 msgid ""
31223 " int\n"
31224 " guestfs_removexattr (guestfs_h *g,\n"
31225 "                      const char *xattr,\n"
31226 "                      const char *path);\n"
31227 "\n"
31228 msgstr ""
31229
31230 #. type: textblock
31231 #: ../src/guestfs-actions.pod:6451
31232 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
31233 msgstr ""
31234
31235 #. type: =head2
31236 #: ../src/guestfs-actions.pod:6457
31237 msgid "guestfs_resize2fs"
31238 msgstr ""
31239
31240 #. type: verbatim
31241 #: ../src/guestfs-actions.pod:6459
31242 #, no-wrap
31243 msgid ""
31244 " int\n"
31245 " guestfs_resize2fs (guestfs_h *g,\n"
31246 "                    const char *device);\n"
31247 "\n"
31248 msgstr ""
31249
31250 #. type: textblock
31251 #: ../src/guestfs-actions.pod:6466
31252 msgid ""
31253 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
31254 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
31255 "sometimes gives an error about this and sometimes not.  In any case, it is "
31256 "always safe to call C<guestfs_e2fsck_f> before calling this function."
31257 msgstr ""
31258
31259 #. type: =head2
31260 #: ../src/guestfs-actions.pod:6476
31261 msgid "guestfs_resize2fs_M"
31262 msgstr ""
31263
31264 #. type: verbatim
31265 #: ../src/guestfs-actions.pod:6478
31266 #, no-wrap
31267 msgid ""
31268 " int\n"
31269 " guestfs_resize2fs_M (guestfs_h *g,\n"
31270 "                      const char *device);\n"
31271 "\n"
31272 msgstr ""
31273
31274 #. type: textblock
31275 #: ../src/guestfs-actions.pod:6482
31276 msgid ""
31277 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
31278 "resized to its minimum size.  This works like the I<-M> option to the "
31279 "C<resize2fs> command."
31280 msgstr ""
31281
31282 #. type: textblock
31283 #: ../src/guestfs-actions.pod:6486
31284 msgid ""
31285 "To get the resulting size of the filesystem you should call "
31286 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
31287 "These two numbers, multiplied together, give the resulting size of the "
31288 "minimal filesystem in bytes."
31289 msgstr ""
31290
31291 #. type: =head2
31292 #: ../src/guestfs-actions.pod:6495
31293 msgid "guestfs_resize2fs_size"
31294 msgstr ""
31295
31296 #. type: verbatim
31297 #: ../src/guestfs-actions.pod:6497
31298 #, no-wrap
31299 msgid ""
31300 " int\n"
31301 " guestfs_resize2fs_size (guestfs_h *g,\n"
31302 "                         const char *device,\n"
31303 "                         int64_t size);\n"
31304 "\n"
31305 msgstr ""
31306
31307 #. type: textblock
31308 #: ../src/guestfs-actions.pod:6502
31309 msgid ""
31310 "This command is the same as C<guestfs_resize2fs> except that it allows you "
31311 "to specify the new size (in bytes) explicitly."
31312 msgstr ""
31313
31314 #. type: =head2
31315 #: ../src/guestfs-actions.pod:6509
31316 msgid "guestfs_rm"
31317 msgstr ""
31318
31319 #. type: verbatim
31320 #: ../src/guestfs-actions.pod:6511
31321 #, no-wrap
31322 msgid ""
31323 " int\n"
31324 " guestfs_rm (guestfs_h *g,\n"
31325 "             const char *path);\n"
31326 "\n"
31327 msgstr ""
31328
31329 #. type: =head2
31330 #: ../src/guestfs-actions.pod:6521
31331 msgid "guestfs_rm_rf"
31332 msgstr ""
31333
31334 #. type: verbatim
31335 #: ../src/guestfs-actions.pod:6523
31336 #, no-wrap
31337 msgid ""
31338 " int\n"
31339 " guestfs_rm_rf (guestfs_h *g,\n"
31340 "                const char *path);\n"
31341 "\n"
31342 msgstr ""
31343
31344 #. type: =head2
31345 #: ../src/guestfs-actions.pod:6535
31346 msgid "guestfs_rmdir"
31347 msgstr ""
31348
31349 #. type: verbatim
31350 #: ../src/guestfs-actions.pod:6537
31351 #, no-wrap
31352 msgid ""
31353 " int\n"
31354 " guestfs_rmdir (guestfs_h *g,\n"
31355 "                const char *path);\n"
31356 "\n"
31357 msgstr ""
31358
31359 #. type: =head2
31360 #: ../src/guestfs-actions.pod:6547
31361 msgid "guestfs_rmmountpoint"
31362 msgstr ""
31363
31364 #. type: verbatim
31365 #: ../src/guestfs-actions.pod:6549
31366 #, no-wrap
31367 msgid ""
31368 " int\n"
31369 " guestfs_rmmountpoint (guestfs_h *g,\n"
31370 "                       const char *exemptpath);\n"
31371 "\n"
31372 msgstr ""
31373
31374 #. type: textblock
31375 #: ../src/guestfs-actions.pod:6553
31376 msgid ""
31377 "This calls removes a mountpoint that was previously created with "
31378 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
31379 msgstr ""
31380
31381 #. type: =head2
31382 #: ../src/guestfs-actions.pod:6561
31383 msgid "guestfs_scrub_device"
31384 msgstr ""
31385
31386 #. type: verbatim
31387 #: ../src/guestfs-actions.pod:6563
31388 #, no-wrap
31389 msgid ""
31390 " int\n"
31391 " guestfs_scrub_device (guestfs_h *g,\n"
31392 "                       const char *device);\n"
31393 "\n"
31394 msgstr ""
31395
31396 #. type: textblock
31397 #: ../src/guestfs-actions.pod:6575 ../src/guestfs-actions.pod:6593 ../src/guestfs-actions.pod:6612
31398 msgid "(Added in 1.0.52)"
31399 msgstr ""
31400
31401 #. type: =head2
31402 #: ../src/guestfs-actions.pod:6577
31403 msgid "guestfs_scrub_file"
31404 msgstr ""
31405
31406 #. type: verbatim
31407 #: ../src/guestfs-actions.pod:6579
31408 #, no-wrap
31409 msgid ""
31410 " int\n"
31411 " guestfs_scrub_file (guestfs_h *g,\n"
31412 "                     const char *file);\n"
31413 "\n"
31414 msgstr ""
31415
31416 #. type: =head2
31417 #: ../src/guestfs-actions.pod:6595
31418 msgid "guestfs_scrub_freespace"
31419 msgstr ""
31420
31421 #. type: verbatim
31422 #: ../src/guestfs-actions.pod:6597
31423 #, no-wrap
31424 msgid ""
31425 " int\n"
31426 " guestfs_scrub_freespace (guestfs_h *g,\n"
31427 "                          const char *dir);\n"
31428 "\n"
31429 msgstr ""
31430
31431 #. type: textblock
31432 #: ../src/guestfs-actions.pod:6601
31433 msgid ""
31434 "This command creates the directory C<dir> and then fills it with files until "
31435 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
31436 "and deletes them.  The intention is to scrub any free space on the partition "
31437 "containing C<dir>."
31438 msgstr ""
31439
31440 #. type: =head2
31441 #: ../src/guestfs-actions.pod:6614
31442 msgid "guestfs_set_append"
31443 msgstr ""
31444
31445 #. type: verbatim
31446 #: ../src/guestfs-actions.pod:6616
31447 #, no-wrap
31448 msgid ""
31449 " int\n"
31450 " guestfs_set_append (guestfs_h *g,\n"
31451 "                     const char *append);\n"
31452 "\n"
31453 msgstr ""
31454
31455 #. type: =head2
31456 #: ../src/guestfs-actions.pod:6633
31457 msgid "guestfs_set_attach_method"
31458 msgstr ""
31459
31460 #. type: verbatim
31461 #: ../src/guestfs-actions.pod:6635
31462 #, no-wrap
31463 msgid ""
31464 " int\n"
31465 " guestfs_set_attach_method (guestfs_h *g,\n"
31466 "                            const char *attachmethod);\n"
31467 "\n"
31468 msgstr ""
31469
31470 #. type: =head2
31471 #: ../src/guestfs-actions.pod:6663
31472 msgid "guestfs_set_autosync"
31473 msgstr ""
31474
31475 #. type: verbatim
31476 #: ../src/guestfs-actions.pod:6665
31477 #, no-wrap
31478 msgid ""
31479 " int\n"
31480 " guestfs_set_autosync (guestfs_h *g,\n"
31481 "                       int autosync);\n"
31482 "\n"
31483 msgstr ""
31484
31485 #. type: =head2
31486 #: ../src/guestfs-actions.pod:6681
31487 msgid "guestfs_set_direct"
31488 msgstr ""
31489
31490 #. type: verbatim
31491 #: ../src/guestfs-actions.pod:6683
31492 #, no-wrap
31493 msgid ""
31494 " int\n"
31495 " guestfs_set_direct (guestfs_h *g,\n"
31496 "                     int direct);\n"
31497 "\n"
31498 msgstr ""
31499
31500 #. type: textblock
31501 #: ../src/guestfs-actions.pod:6691
31502 msgid ""
31503 "One consequence of this is that log messages aren't caught by the library "
31504 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
31505 "stdout."
31506 msgstr ""
31507
31508 #. type: =head2
31509 #: ../src/guestfs-actions.pod:6704
31510 msgid "guestfs_set_e2label"
31511 msgstr ""
31512
31513 #. type: verbatim
31514 #: ../src/guestfs-actions.pod:6706
31515 #, no-wrap
31516 msgid ""
31517 " int\n"
31518 " guestfs_set_e2label (guestfs_h *g,\n"
31519 "                      const char *device,\n"
31520 "                      const char *label);\n"
31521 "\n"
31522 msgstr ""
31523
31524 #. type: textblock
31525 #: ../src/guestfs-actions.pod:6715
31526 msgid ""
31527 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
31528 "the existing label on a filesystem."
31529 msgstr ""
31530
31531 #. type: =head2
31532 #: ../src/guestfs-actions.pod:6722
31533 msgid "guestfs_set_e2uuid"
31534 msgstr ""
31535
31536 #. type: verbatim
31537 #: ../src/guestfs-actions.pod:6724
31538 #, no-wrap
31539 msgid ""
31540 " int\n"
31541 " guestfs_set_e2uuid (guestfs_h *g,\n"
31542 "                     const char *device,\n"
31543 "                     const char *uuid);\n"
31544 "\n"
31545 msgstr ""
31546
31547 #. type: textblock
31548 #: ../src/guestfs-actions.pod:6734
31549 msgid ""
31550 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
31551 "the existing UUID of a filesystem."
31552 msgstr ""
31553
31554 #. type: =head2
31555 #: ../src/guestfs-actions.pod:6741
31556 msgid "guestfs_set_memsize"
31557 msgstr ""
31558
31559 #. type: verbatim
31560 #: ../src/guestfs-actions.pod:6743
31561 #, no-wrap
31562 msgid ""
31563 " int\n"
31564 " guestfs_set_memsize (guestfs_h *g,\n"
31565 "                      int memsize);\n"
31566 "\n"
31567 msgstr ""
31568
31569 #. type: textblock
31570 #: ../src/guestfs-actions.pod:6747
31571 msgid ""
31572 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
31573 "This only has any effect if called before C<guestfs_launch>."
31574 msgstr ""
31575
31576 #. type: =head2
31577 #: ../src/guestfs-actions.pod:6762
31578 msgid "guestfs_set_network"
31579 msgstr ""
31580
31581 #. type: verbatim
31582 #: ../src/guestfs-actions.pod:6764
31583 #, no-wrap
31584 msgid ""
31585 " int\n"
31586 " guestfs_set_network (guestfs_h *g,\n"
31587 "                      int network);\n"
31588 "\n"
31589 msgstr ""
31590
31591 #. type: textblock
31592 #: ../src/guestfs-actions.pod:6774
31593 msgid ""
31594 "You must call this before calling C<guestfs_launch>, otherwise it has no "
31595 "effect."
31596 msgstr ""
31597
31598 #. type: =head2
31599 #: ../src/guestfs-actions.pod:6781
31600 msgid "guestfs_set_path"
31601 msgstr ""
31602
31603 #. type: verbatim
31604 #: ../src/guestfs-actions.pod:6783
31605 #, no-wrap
31606 msgid ""
31607 " int\n"
31608 " guestfs_set_path (guestfs_h *g,\n"
31609 "                   const char *searchpath);\n"
31610 "\n"
31611 msgstr ""
31612
31613 #. type: =head2
31614 #: ../src/guestfs-actions.pod:6798
31615 msgid "guestfs_set_pgroup"
31616 msgstr ""
31617
31618 #. type: verbatim
31619 #: ../src/guestfs-actions.pod:6800
31620 #, no-wrap
31621 msgid ""
31622 " int\n"
31623 " guestfs_set_pgroup (guestfs_h *g,\n"
31624 "                     int pgroup);\n"
31625 "\n"
31626 msgstr ""
31627
31628 #. type: =head2
31629 #: ../src/guestfs-actions.pod:6817
31630 msgid "guestfs_set_qemu"
31631 msgstr ""
31632
31633 #. type: verbatim
31634 #: ../src/guestfs-actions.pod:6819
31635 #, no-wrap
31636 msgid ""
31637 " int\n"
31638 " guestfs_set_qemu (guestfs_h *g,\n"
31639 "                   const char *qemu);\n"
31640 "\n"
31641 msgstr ""
31642
31643 #. type: =head2
31644 #: ../src/guestfs-actions.pod:6845
31645 msgid "guestfs_set_recovery_proc"
31646 msgstr ""
31647
31648 #. type: verbatim
31649 #: ../src/guestfs-actions.pod:6847
31650 #, no-wrap
31651 msgid ""
31652 " int\n"
31653 " guestfs_set_recovery_proc (guestfs_h *g,\n"
31654 "                            int recoveryproc);\n"
31655 "\n"
31656 msgstr ""
31657
31658 #. type: textblock
31659 #: ../src/guestfs-actions.pod:6851
31660 msgid ""
31661 "If this is called with the parameter C<false> then C<guestfs_launch> does "
31662 "not create a recovery process.  The purpose of the recovery process is to "
31663 "stop runaway qemu processes in the case where the main program aborts "
31664 "abruptly."
31665 msgstr ""
31666
31667 #. type: textblock
31668 #: ../src/guestfs-actions.pod:6856
31669 msgid ""
31670 "This only has any effect if called before C<guestfs_launch>, and the default "
31671 "is true."
31672 msgstr ""
31673
31674 #. type: =head2
31675 #: ../src/guestfs-actions.pod:6869
31676 msgid "guestfs_set_selinux"
31677 msgstr ""
31678
31679 #. type: verbatim
31680 #: ../src/guestfs-actions.pod:6871
31681 #, no-wrap
31682 msgid ""
31683 " int\n"
31684 " guestfs_set_selinux (guestfs_h *g,\n"
31685 "                      int selinux);\n"
31686 "\n"
31687 msgstr ""
31688
31689 #. type: =head2
31690 #: ../src/guestfs-actions.pod:6888
31691 msgid "guestfs_set_smp"
31692 msgstr ""
31693
31694 #. type: verbatim
31695 #: ../src/guestfs-actions.pod:6890
31696 #, no-wrap
31697 msgid ""
31698 " int\n"
31699 " guestfs_set_smp (guestfs_h *g,\n"
31700 "                  int smp);\n"
31701 "\n"
31702 msgstr ""
31703
31704 #. type: textblock
31705 #: ../src/guestfs-actions.pod:6898
31706 msgid "This function must be called before C<guestfs_launch>."
31707 msgstr ""
31708
31709 #. type: =head2
31710 #: ../src/guestfs-actions.pod:6904
31711 msgid "guestfs_set_trace"
31712 msgstr ""
31713
31714 #. type: verbatim
31715 #: ../src/guestfs-actions.pod:6906
31716 #, no-wrap
31717 msgid ""
31718 " int\n"
31719 " guestfs_set_trace (guestfs_h *g,\n"
31720 "                    int trace);\n"
31721 "\n"
31722 msgstr ""
31723
31724 #. type: textblock
31725 #: ../src/guestfs-actions.pod:6920
31726 msgid ""
31727 "Trace messages are normally sent to C<stderr>, unless you register a "
31728 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
31729 msgstr ""
31730
31731 #. type: =head2
31732 #: ../src/guestfs-actions.pod:6928
31733 msgid "guestfs_set_verbose"
31734 msgstr ""
31735
31736 #. type: verbatim
31737 #: ../src/guestfs-actions.pod:6930
31738 #, no-wrap
31739 msgid ""
31740 " int\n"
31741 " guestfs_set_verbose (guestfs_h *g,\n"
31742 "                      int verbose);\n"
31743 "\n"
31744 msgstr ""
31745
31746 #. type: textblock
31747 #: ../src/guestfs-actions.pod:6939
31748 msgid ""
31749 "Verbose messages are normally sent to C<stderr>, unless you register a "
31750 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
31751 msgstr ""
31752
31753 #. type: =head2
31754 #: ../src/guestfs-actions.pod:6947
31755 msgid "guestfs_setcon"
31756 msgstr ""
31757
31758 #. type: verbatim
31759 #: ../src/guestfs-actions.pod:6949
31760 #, no-wrap
31761 msgid ""
31762 " int\n"
31763 " guestfs_setcon (guestfs_h *g,\n"
31764 "                 const char *context);\n"
31765 "\n"
31766 msgstr ""
31767
31768 #. type: =head2
31769 #: ../src/guestfs-actions.pod:6962
31770 msgid "guestfs_setxattr"
31771 msgstr ""
31772
31773 #. type: verbatim
31774 #: ../src/guestfs-actions.pod:6964
31775 #, no-wrap
31776 msgid ""
31777 " int\n"
31778 " guestfs_setxattr (guestfs_h *g,\n"
31779 "                   const char *xattr,\n"
31780 "                   const char *val,\n"
31781 "                   int vallen,\n"
31782 "                   const char *path);\n"
31783 "\n"
31784 msgstr ""
31785
31786 #. type: textblock
31787 #: ../src/guestfs-actions.pod:6975
31788 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
31789 msgstr ""
31790
31791 #. type: =head2
31792 #: ../src/guestfs-actions.pod:6981
31793 msgid "guestfs_sfdisk"
31794 msgstr ""
31795
31796 #. type: verbatim
31797 #: ../src/guestfs-actions.pod:6983
31798 #, no-wrap
31799 msgid ""
31800 " int\n"
31801 " guestfs_sfdisk (guestfs_h *g,\n"
31802 "                 const char *device,\n"
31803 "                 int cyls,\n"
31804 "                 int heads,\n"
31805 "                 int sectors,\n"
31806 "                 char *const *lines);\n"
31807 "\n"
31808 msgstr ""
31809
31810 #. type: textblock
31811 #: ../src/guestfs-actions.pod:6991 ../src/guestfs-actions.pod:7032 ../src/guestfs-actions.pod:7063
31812 msgid ""
31813 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
31814 "call instead."
31815 msgstr ""
31816
31817 #. type: textblock
31818 #: ../src/guestfs-actions.pod:7018
31819 msgid "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
31820 msgstr ""
31821
31822 #. type: =head2
31823 #: ../src/guestfs-actions.pod:7025
31824 msgid "guestfs_sfdiskM"
31825 msgstr ""
31826
31827 #. type: verbatim
31828 #: ../src/guestfs-actions.pod:7027
31829 #, no-wrap
31830 msgid ""
31831 " int\n"
31832 " guestfs_sfdiskM (guestfs_h *g,\n"
31833 "                  const char *device,\n"
31834 "                  char *const *lines);\n"
31835 "\n"
31836 msgstr ""
31837
31838 #. type: textblock
31839 #: ../src/guestfs-actions.pod:7039
31840 msgid ""
31841 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
31842 "partition sizes are specified in megabytes only (rounded to the nearest "
31843 "cylinder) and you don't need to specify the cyls, heads and sectors "
31844 "parameters which were rarely if ever used anyway."
31845 msgstr ""
31846
31847 #. type: textblock
31848 #: ../src/guestfs-actions.pod:7045
31849 msgid ""
31850 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
31851 "C<guestfs_part_disk>"
31852 msgstr ""
31853
31854 #. type: =head2
31855 #: ../src/guestfs-actions.pod:7052
31856 msgid "guestfs_sfdisk_N"
31857 msgstr ""
31858
31859 #. type: verbatim
31860 #: ../src/guestfs-actions.pod:7054
31861 #, no-wrap
31862 msgid ""
31863 " int\n"
31864 " guestfs_sfdisk_N (guestfs_h *g,\n"
31865 "                   const char *device,\n"
31866 "                   int partnum,\n"
31867 "                   int cyls,\n"
31868 "                   int heads,\n"
31869 "                   int sectors,\n"
31870 "                   const char *line);\n"
31871 "\n"
31872 msgstr ""
31873
31874 #. type: textblock
31875 #: ../src/guestfs-actions.pod:7073
31876 msgid ""
31877 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
31878 "for the cyls/heads/sectors parameters."
31879 msgstr ""
31880
31881 #. type: textblock
31882 #: ../src/guestfs-actions.pod:7076
31883 msgid "See also: C<guestfs_part_add>"
31884 msgstr ""
31885
31886 #. type: =head2
31887 #: ../src/guestfs-actions.pod:7082
31888 msgid "guestfs_sfdisk_disk_geometry"
31889 msgstr ""
31890
31891 #. type: verbatim
31892 #: ../src/guestfs-actions.pod:7084
31893 #, no-wrap
31894 msgid ""
31895 " char *\n"
31896 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
31897 "                               const char *device);\n"
31898 "\n"
31899 msgstr ""
31900
31901 #. type: textblock
31902 #: ../src/guestfs-actions.pod:7088
31903 msgid ""
31904 "This displays the disk geometry of C<device> read from the partition table.  "
31905 "Especially in the case where the underlying block device has been resized, "
31906 "this can be different from the kernel's idea of the geometry (see "
31907 "C<guestfs_sfdisk_kernel_geometry>)."
31908 msgstr ""
31909
31910 #. type: =head2
31911 #: ../src/guestfs-actions.pod:7101
31912 msgid "guestfs_sfdisk_kernel_geometry"
31913 msgstr ""
31914
31915 #. type: verbatim
31916 #: ../src/guestfs-actions.pod:7103
31917 #, no-wrap
31918 msgid ""
31919 " char *\n"
31920 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
31921 "                                 const char *device);\n"
31922 "\n"
31923 msgstr ""
31924
31925 #. type: =head2
31926 #: ../src/guestfs-actions.pod:7117
31927 msgid "guestfs_sfdisk_l"
31928 msgstr ""
31929
31930 #. type: verbatim
31931 #: ../src/guestfs-actions.pod:7119
31932 #, no-wrap
31933 msgid ""
31934 " char *\n"
31935 " guestfs_sfdisk_l (guestfs_h *g,\n"
31936 "                   const char *device);\n"
31937 "\n"
31938 msgstr ""
31939
31940 #. type: textblock
31941 #: ../src/guestfs-actions.pod:7123
31942 msgid ""
31943 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
31944 "call instead."
31945 msgstr ""
31946
31947 #. type: textblock
31948 #: ../src/guestfs-actions.pod:7134
31949 msgid "See also: C<guestfs_part_list>"
31950 msgstr ""
31951
31952 #. type: =head2
31953 #: ../src/guestfs-actions.pod:7141
31954 msgid "guestfs_sh"
31955 msgstr ""
31956
31957 #. type: verbatim
31958 #: ../src/guestfs-actions.pod:7143
31959 #, no-wrap
31960 msgid ""
31961 " char *\n"
31962 " guestfs_sh (guestfs_h *g,\n"
31963 "             const char *command);\n"
31964 "\n"
31965 msgstr ""
31966
31967 #. type: textblock
31968 #: ../src/guestfs-actions.pod:7150
31969 msgid "This is like C<guestfs_command>, but passes the command to:"
31970 msgstr ""
31971
31972 #. type: textblock
31973 #: ../src/guestfs-actions.pod:7158
31974 msgid "All the provisos about C<guestfs_command> apply to this call."
31975 msgstr ""
31976
31977 #. type: =head2
31978 #: ../src/guestfs-actions.pod:7165
31979 msgid "guestfs_sh_lines"
31980 msgstr ""
31981
31982 #. type: verbatim
31983 #: ../src/guestfs-actions.pod:7167
31984 #, no-wrap
31985 msgid ""
31986 " char **\n"
31987 " guestfs_sh_lines (guestfs_h *g,\n"
31988 "                   const char *command);\n"
31989 "\n"
31990 msgstr ""
31991
31992 #. type: textblock
31993 #: ../src/guestfs-actions.pod:7171
31994 msgid ""
31995 "This is the same as C<guestfs_sh>, but splits the result into a list of "
31996 "lines."
31997 msgstr ""
31998
31999 #. type: textblock
32000 #: ../src/guestfs-actions.pod:7174
32001 msgid "See also: C<guestfs_command_lines>"
32002 msgstr ""
32003
32004 #. type: =head2
32005 #: ../src/guestfs-actions.pod:7182
32006 msgid "guestfs_sleep"
32007 msgstr ""
32008
32009 #. type: verbatim
32010 #: ../src/guestfs-actions.pod:7184
32011 #, no-wrap
32012 msgid ""
32013 " int\n"
32014 " guestfs_sleep (guestfs_h *g,\n"
32015 "                int secs);\n"
32016 "\n"
32017 msgstr ""
32018
32019 #. type: textblock
32020 #: ../src/guestfs-actions.pod:7192
32021 msgid "(Added in 1.0.41)"
32022 msgstr ""
32023
32024 #. type: =head2
32025 #: ../src/guestfs-actions.pod:7194 ../src/guestfs-structs.pod:109
32026 msgid "guestfs_stat"
32027 msgstr ""
32028
32029 #. type: verbatim
32030 #: ../src/guestfs-actions.pod:7196
32031 #, no-wrap
32032 msgid ""
32033 " struct guestfs_stat *\n"
32034 " guestfs_stat (guestfs_h *g,\n"
32035 "               const char *path);\n"
32036 "\n"
32037 msgstr ""
32038
32039 #. type: =head2
32040 #: ../src/guestfs-actions.pod:7210 ../src/guestfs-structs.pod:135
32041 msgid "guestfs_statvfs"
32042 msgstr ""
32043
32044 #. type: verbatim
32045 #: ../src/guestfs-actions.pod:7212
32046 #, no-wrap
32047 msgid ""
32048 " struct guestfs_statvfs *\n"
32049 " guestfs_statvfs (guestfs_h *g,\n"
32050 "                  const char *path);\n"
32051 "\n"
32052 msgstr ""
32053
32054 #. type: textblock
32055 #: ../src/guestfs-actions.pod:7222
32056 msgid ""
32057 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
32058 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
32059 msgstr ""
32060
32061 #. type: =head2
32062 #: ../src/guestfs-actions.pod:7228
32063 msgid "guestfs_strings"
32064 msgstr ""
32065
32066 #. type: verbatim
32067 #: ../src/guestfs-actions.pod:7230
32068 #, no-wrap
32069 msgid ""
32070 " char **\n"
32071 " guestfs_strings (guestfs_h *g,\n"
32072 "                  const char *path);\n"
32073 "\n"
32074 msgstr ""
32075
32076 #. type: =head2
32077 #: ../src/guestfs-actions.pod:7246
32078 msgid "guestfs_strings_e"
32079 msgstr ""
32080
32081 #. type: verbatim
32082 #: ../src/guestfs-actions.pod:7248
32083 #, no-wrap
32084 msgid ""
32085 " char **\n"
32086 " guestfs_strings_e (guestfs_h *g,\n"
32087 "                    const char *encoding,\n"
32088 "                    const char *path);\n"
32089 "\n"
32090 msgstr ""
32091
32092 #. type: textblock
32093 #: ../src/guestfs-actions.pod:7253
32094 msgid ""
32095 "This is like the C<guestfs_strings> command, but allows you to specify the "
32096 "encoding of strings that are looked for in the source file C<path>."
32097 msgstr ""
32098
32099 #. type: textblock
32100 #: ../src/guestfs-actions.pod:7263
32101 msgid ""
32102 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
32103 "ISO-8859-X (this is what C<guestfs_strings> uses)."
32104 msgstr ""
32105
32106 #. type: =head2
32107 #: ../src/guestfs-actions.pod:7301
32108 msgid "guestfs_swapoff_device"
32109 msgstr ""
32110
32111 #. type: verbatim
32112 #: ../src/guestfs-actions.pod:7303
32113 #, no-wrap
32114 msgid ""
32115 " int\n"
32116 " guestfs_swapoff_device (guestfs_h *g,\n"
32117 "                         const char *device);\n"
32118 "\n"
32119 msgstr ""
32120
32121 #. type: textblock
32122 #: ../src/guestfs-actions.pod:7307
32123 msgid ""
32124 "This command disables the libguestfs appliance swap device or partition "
32125 "named C<device>.  See C<guestfs_swapon_device>."
32126 msgstr ""
32127
32128 #. type: =head2
32129 #: ../src/guestfs-actions.pod:7315
32130 msgid "guestfs_swapoff_file"
32131 msgstr ""
32132
32133 #. type: verbatim
32134 #: ../src/guestfs-actions.pod:7317
32135 #, no-wrap
32136 msgid ""
32137 " int\n"
32138 " guestfs_swapoff_file (guestfs_h *g,\n"
32139 "                       const char *file);\n"
32140 "\n"
32141 msgstr ""
32142
32143 #. type: =head2
32144 #: ../src/guestfs-actions.pod:7327
32145 msgid "guestfs_swapoff_label"
32146 msgstr ""
32147
32148 #. type: verbatim
32149 #: ../src/guestfs-actions.pod:7329
32150 #, no-wrap
32151 msgid ""
32152 " int\n"
32153 " guestfs_swapoff_label (guestfs_h *g,\n"
32154 "                        const char *label);\n"
32155 "\n"
32156 msgstr ""
32157
32158 #. type: =head2
32159 #: ../src/guestfs-actions.pod:7340
32160 msgid "guestfs_swapoff_uuid"
32161 msgstr ""
32162
32163 #. type: verbatim
32164 #: ../src/guestfs-actions.pod:7342
32165 #, no-wrap
32166 msgid ""
32167 " int\n"
32168 " guestfs_swapoff_uuid (guestfs_h *g,\n"
32169 "                       const char *uuid);\n"
32170 "\n"
32171 msgstr ""
32172
32173 #. type: =head2
32174 #: ../src/guestfs-actions.pod:7353
32175 msgid "guestfs_swapon_device"
32176 msgstr ""
32177
32178 #. type: verbatim
32179 #: ../src/guestfs-actions.pod:7355
32180 #, no-wrap
32181 msgid ""
32182 " int\n"
32183 " guestfs_swapon_device (guestfs_h *g,\n"
32184 "                        const char *device);\n"
32185 "\n"
32186 msgstr ""
32187
32188 #. type: textblock
32189 #: ../src/guestfs-actions.pod:7359
32190 msgid ""
32191 "This command enables the libguestfs appliance to use the swap device or "
32192 "partition named C<device>.  The increased memory is made available for all "
32193 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
32194 msgstr ""
32195
32196 #. type: =head2
32197 #: ../src/guestfs-actions.pod:7375
32198 msgid "guestfs_swapon_file"
32199 msgstr ""
32200
32201 #. type: verbatim
32202 #: ../src/guestfs-actions.pod:7377
32203 #, no-wrap
32204 msgid ""
32205 " int\n"
32206 " guestfs_swapon_file (guestfs_h *g,\n"
32207 "                      const char *file);\n"
32208 "\n"
32209 msgstr ""
32210
32211 #. type: textblock
32212 #: ../src/guestfs-actions.pod:7381
32213 msgid ""
32214 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
32215 "notes."
32216 msgstr ""
32217
32218 #. type: =head2
32219 #: ../src/guestfs-actions.pod:7388
32220 msgid "guestfs_swapon_label"
32221 msgstr ""
32222
32223 #. type: verbatim
32224 #: ../src/guestfs-actions.pod:7390
32225 #, no-wrap
32226 msgid ""
32227 " int\n"
32228 " guestfs_swapon_label (guestfs_h *g,\n"
32229 "                       const char *label);\n"
32230 "\n"
32231 msgstr ""
32232
32233 #. type: textblock
32234 #: ../src/guestfs-actions.pod:7394
32235 msgid ""
32236 "This command enables swap to a labeled swap partition.  See "
32237 "C<guestfs_swapon_device> for other notes."
32238 msgstr ""
32239
32240 #. type: =head2
32241 #: ../src/guestfs-actions.pod:7401
32242 msgid "guestfs_swapon_uuid"
32243 msgstr ""
32244
32245 #. type: verbatim
32246 #: ../src/guestfs-actions.pod:7403
32247 #, no-wrap
32248 msgid ""
32249 " int\n"
32250 " guestfs_swapon_uuid (guestfs_h *g,\n"
32251 "                      const char *uuid);\n"
32252 "\n"
32253 msgstr ""
32254
32255 #. type: textblock
32256 #: ../src/guestfs-actions.pod:7407
32257 msgid ""
32258 "This command enables swap to a swap partition with the given UUID.  See "
32259 "C<guestfs_swapon_device> for other notes."
32260 msgstr ""
32261
32262 #. type: =head2
32263 #: ../src/guestfs-actions.pod:7414
32264 msgid "guestfs_sync"
32265 msgstr ""
32266
32267 #. type: verbatim
32268 #: ../src/guestfs-actions.pod:7416
32269 #, no-wrap
32270 msgid ""
32271 " int\n"
32272 " guestfs_sync (guestfs_h *g);\n"
32273 "\n"
32274 msgstr ""
32275
32276 #. type: =head2
32277 #: ../src/guestfs-actions.pod:7429
32278 msgid "guestfs_tail"
32279 msgstr ""
32280
32281 #. type: verbatim
32282 #: ../src/guestfs-actions.pod:7431
32283 #, no-wrap
32284 msgid ""
32285 " char **\n"
32286 " guestfs_tail (guestfs_h *g,\n"
32287 "               const char *path);\n"
32288 "\n"
32289 msgstr ""
32290
32291 #. type: =head2
32292 #: ../src/guestfs-actions.pod:7447
32293 msgid "guestfs_tail_n"
32294 msgstr ""
32295
32296 #. type: verbatim
32297 #: ../src/guestfs-actions.pod:7449
32298 #, no-wrap
32299 msgid ""
32300 " char **\n"
32301 " guestfs_tail_n (guestfs_h *g,\n"
32302 "                 int nrlines,\n"
32303 "                 const char *path);\n"
32304 "\n"
32305 msgstr ""
32306
32307 #. type: =head2
32308 #: ../src/guestfs-actions.pod:7471
32309 msgid "guestfs_tar_in"
32310 msgstr ""
32311
32312 #. type: verbatim
32313 #: ../src/guestfs-actions.pod:7473
32314 #, no-wrap
32315 msgid ""
32316 " int\n"
32317 " guestfs_tar_in (guestfs_h *g,\n"
32318 "                 const char *tarfile,\n"
32319 "                 const char *directory);\n"
32320 "\n"
32321 msgstr ""
32322
32323 #. type: textblock
32324 #: ../src/guestfs-actions.pod:7481
32325 msgid "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
32326 msgstr ""
32327
32328 #. type: textblock
32329 #: ../src/guestfs-actions.pod:7486 ../src/guestfs-actions.pod:7503 ../src/guestfs-actions.pod:7519 ../src/guestfs-actions.pod:7535
32330 msgid "(Added in 1.0.3)"
32331 msgstr ""
32332
32333 #. type: =head2
32334 #: ../src/guestfs-actions.pod:7488
32335 msgid "guestfs_tar_out"
32336 msgstr ""
32337
32338 #. type: verbatim
32339 #: ../src/guestfs-actions.pod:7490
32340 #, no-wrap
32341 msgid ""
32342 " int\n"
32343 " guestfs_tar_out (guestfs_h *g,\n"
32344 "                  const char *directory,\n"
32345 "                  const char *tarfile);\n"
32346 "\n"
32347 msgstr ""
32348
32349 #. type: textblock
32350 #: ../src/guestfs-actions.pod:7498
32351 msgid ""
32352 "To download a compressed tarball, use C<guestfs_tgz_out> or "
32353 "C<guestfs_txz_out>."
32354 msgstr ""
32355
32356 #. type: =head2
32357 #: ../src/guestfs-actions.pod:7505
32358 msgid "guestfs_tgz_in"
32359 msgstr ""
32360
32361 #. type: verbatim
32362 #: ../src/guestfs-actions.pod:7507
32363 #, no-wrap
32364 msgid ""
32365 " int\n"
32366 " guestfs_tgz_in (guestfs_h *g,\n"
32367 "                 const char *tarball,\n"
32368 "                 const char *directory);\n"
32369 "\n"
32370 msgstr ""
32371
32372 #. type: textblock
32373 #: ../src/guestfs-actions.pod:7515
32374 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
32375 msgstr ""
32376
32377 #. type: =head2
32378 #: ../src/guestfs-actions.pod:7521
32379 msgid "guestfs_tgz_out"
32380 msgstr ""
32381
32382 #. type: verbatim
32383 #: ../src/guestfs-actions.pod:7523
32384 #, no-wrap
32385 msgid ""
32386 " int\n"
32387 " guestfs_tgz_out (guestfs_h *g,\n"
32388 "                  const char *directory,\n"
32389 "                  const char *tarball);\n"
32390 "\n"
32391 msgstr ""
32392
32393 #. type: textblock
32394 #: ../src/guestfs-actions.pod:7531
32395 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
32396 msgstr ""
32397
32398 #. type: =head2
32399 #: ../src/guestfs-actions.pod:7537
32400 msgid "guestfs_touch"
32401 msgstr ""
32402
32403 #. type: verbatim
32404 #: ../src/guestfs-actions.pod:7539
32405 #, no-wrap
32406 msgid ""
32407 " int\n"
32408 " guestfs_touch (guestfs_h *g,\n"
32409 "                const char *path);\n"
32410 "\n"
32411 msgstr ""
32412
32413 #. type: =head2
32414 #: ../src/guestfs-actions.pod:7554
32415 msgid "guestfs_truncate"
32416 msgstr ""
32417
32418 #. type: verbatim
32419 #: ../src/guestfs-actions.pod:7556
32420 #, no-wrap
32421 msgid ""
32422 " int\n"
32423 " guestfs_truncate (guestfs_h *g,\n"
32424 "                   const char *path);\n"
32425 "\n"
32426 msgstr ""
32427
32428 #. type: =head2
32429 #: ../src/guestfs-actions.pod:7567
32430 msgid "guestfs_truncate_size"
32431 msgstr ""
32432
32433 #. type: verbatim
32434 #: ../src/guestfs-actions.pod:7569
32435 #, no-wrap
32436 msgid ""
32437 " int\n"
32438 " guestfs_truncate_size (guestfs_h *g,\n"
32439 "                        const char *path,\n"
32440 "                        int64_t size);\n"
32441 "\n"
32442 msgstr ""
32443
32444 #. type: textblock
32445 #: ../src/guestfs-actions.pod:7577
32446 msgid ""
32447 "If the current file size is less than C<size> then the file is extended to "
32448 "the required size with zero bytes.  This creates a sparse file (ie. disk "
32449 "blocks are not allocated for the file until you write to it).  To create a "
32450 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
32451 msgstr ""
32452
32453 #. type: =head2
32454 #: ../src/guestfs-actions.pod:7587
32455 msgid "guestfs_tune2fs_l"
32456 msgstr ""
32457
32458 #. type: verbatim
32459 #: ../src/guestfs-actions.pod:7589
32460 #, no-wrap
32461 msgid ""
32462 " char **\n"
32463 " guestfs_tune2fs_l (guestfs_h *g,\n"
32464 "                    const char *device);\n"
32465 "\n"
32466 msgstr ""
32467
32468 #. type: =head2
32469 #: ../src/guestfs-actions.pod:7609
32470 msgid "guestfs_txz_in"
32471 msgstr ""
32472
32473 #. type: verbatim
32474 #: ../src/guestfs-actions.pod:7611
32475 #, no-wrap
32476 msgid ""
32477 " int\n"
32478 " guestfs_txz_in (guestfs_h *g,\n"
32479 "                 const char *tarball,\n"
32480 "                 const char *directory);\n"
32481 "\n"
32482 msgstr ""
32483
32484 #. type: =head2
32485 #: ../src/guestfs-actions.pod:7623
32486 msgid "guestfs_txz_out"
32487 msgstr ""
32488
32489 #. type: verbatim
32490 #: ../src/guestfs-actions.pod:7625
32491 #, no-wrap
32492 msgid ""
32493 " int\n"
32494 " guestfs_txz_out (guestfs_h *g,\n"
32495 "                  const char *directory,\n"
32496 "                  const char *tarball);\n"
32497 "\n"
32498 msgstr ""
32499
32500 #. type: =head2
32501 #: ../src/guestfs-actions.pod:7637
32502 msgid "guestfs_umask"
32503 msgstr ""
32504
32505 #. type: verbatim
32506 #: ../src/guestfs-actions.pod:7639
32507 #, no-wrap
32508 msgid ""
32509 " int\n"
32510 " guestfs_umask (guestfs_h *g,\n"
32511 "                int mask);\n"
32512 "\n"
32513 msgstr ""
32514
32515 #. type: textblock
32516 #: ../src/guestfs-actions.pod:7655
32517 msgid ""
32518 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
32519 "C<guestfs_mkdir>."
32520 msgstr ""
32521
32522 #. type: =head2
32523 #: ../src/guestfs-actions.pod:7664
32524 msgid "guestfs_umount"
32525 msgstr ""
32526
32527 #. type: verbatim
32528 #: ../src/guestfs-actions.pod:7666
32529 #, no-wrap
32530 msgid ""
32531 " int\n"
32532 " guestfs_umount (guestfs_h *g,\n"
32533 "                 const char *pathordevice);\n"
32534 "\n"
32535 msgstr ""
32536
32537 #. type: =head2
32538 #: ../src/guestfs-actions.pod:7678
32539 msgid "guestfs_umount_all"
32540 msgstr ""
32541
32542 #. type: verbatim
32543 #: ../src/guestfs-actions.pod:7680
32544 #, no-wrap
32545 msgid ""
32546 " int\n"
32547 " guestfs_umount_all (guestfs_h *g);\n"
32548 "\n"
32549 msgstr ""
32550
32551 #. type: =head2
32552 #: ../src/guestfs-actions.pod:7691
32553 msgid "guestfs_upload"
32554 msgstr ""
32555
32556 #. type: verbatim
32557 #: ../src/guestfs-actions.pod:7693
32558 #, no-wrap
32559 msgid ""
32560 " int\n"
32561 " guestfs_upload (guestfs_h *g,\n"
32562 "                 const char *filename,\n"
32563 "                 const char *remotefilename);\n"
32564 "\n"
32565 msgstr ""
32566
32567 #. type: textblock
32568 #: ../src/guestfs-actions.pod:7703
32569 msgid "See also C<guestfs_download>."
32570 msgstr ""
32571
32572 #. type: =head2
32573 #: ../src/guestfs-actions.pod:7714
32574 msgid "guestfs_upload_offset"
32575 msgstr ""
32576
32577 #. type: verbatim
32578 #: ../src/guestfs-actions.pod:7716
32579 #, no-wrap
32580 msgid ""
32581 " int\n"
32582 " guestfs_upload_offset (guestfs_h *g,\n"
32583 "                        const char *filename,\n"
32584 "                        const char *remotefilename,\n"
32585 "                        int64_t offset);\n"
32586 "\n"
32587 msgstr ""
32588
32589 #. type: textblock
32590 #: ../src/guestfs-actions.pod:7732
32591 msgid ""
32592 "Note that there is no limit on the amount of data that can be uploaded with "
32593 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
32594 "full amount unless an error occurs."
32595 msgstr ""
32596
32597 #. type: textblock
32598 #: ../src/guestfs-actions.pod:7737
32599 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
32600 msgstr ""
32601
32602 #. type: =head2
32603 #: ../src/guestfs-actions.pod:7748
32604 msgid "guestfs_utimens"
32605 msgstr ""
32606
32607 #. type: verbatim
32608 #: ../src/guestfs-actions.pod:7750
32609 #, no-wrap
32610 msgid ""
32611 " int\n"
32612 " guestfs_utimens (guestfs_h *g,\n"
32613 "                  const char *path,\n"
32614 "                  int64_t atsecs,\n"
32615 "                  int64_t atnsecs,\n"
32616 "                  int64_t mtsecs,\n"
32617 "                  int64_t mtnsecs);\n"
32618 "\n"
32619 msgstr ""
32620
32621 #. type: =head2
32622 #: ../src/guestfs-actions.pod:7779 ../src/guestfs-structs.pod:175
32623 msgid "guestfs_version"
32624 msgstr ""
32625
32626 #. type: verbatim
32627 #: ../src/guestfs-actions.pod:7781
32628 #, no-wrap
32629 msgid ""
32630 " struct guestfs_version *\n"
32631 " guestfs_version (guestfs_h *g);\n"
32632 "\n"
32633 msgstr ""
32634
32635 #. type: textblock
32636 #: ../src/guestfs-actions.pod:7809
32637 msgid ""
32638 "I<Note:> Don't use this call to test for availability of features.  In "
32639 "enterprise distributions we backport features from later versions into "
32640 "earlier versions, making this an unreliable way to test for features.  Use "
32641 "C<guestfs_available> instead."
32642 msgstr ""
32643
32644 #. type: textblock
32645 #: ../src/guestfs-actions.pod:7815
32646 msgid ""
32647 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
32648 "error.  I<The caller must call C<guestfs_free_version> after use>."
32649 msgstr ""
32650
32651 #. type: textblock
32652 #: ../src/guestfs-actions.pod:7819
32653 msgid "(Added in 1.0.58)"
32654 msgstr ""
32655
32656 #. type: =head2
32657 #: ../src/guestfs-actions.pod:7821
32658 msgid "guestfs_vfs_label"
32659 msgstr ""
32660
32661 #. type: verbatim
32662 #: ../src/guestfs-actions.pod:7823
32663 #, no-wrap
32664 msgid ""
32665 " char *\n"
32666 " guestfs_vfs_label (guestfs_h *g,\n"
32667 "                    const char *device);\n"
32668 "\n"
32669 msgstr ""
32670
32671 #. type: textblock
32672 #: ../src/guestfs-actions.pod:7832
32673 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
32674 msgstr ""
32675
32676 #. type: textblock
32677 #: ../src/guestfs-actions.pod:7837 ../src/guestfs-actions.pod:7874
32678 msgid "(Added in 1.3.18)"
32679 msgstr ""
32680
32681 #. type: =head2
32682 #: ../src/guestfs-actions.pod:7839
32683 msgid "guestfs_vfs_type"
32684 msgstr ""
32685
32686 #. type: verbatim
32687 #: ../src/guestfs-actions.pod:7841
32688 #, no-wrap
32689 msgid ""
32690 " char *\n"
32691 " guestfs_vfs_type (guestfs_h *g,\n"
32692 "                   const char *device);\n"
32693 "\n"
32694 msgstr ""
32695
32696 #. type: =head2
32697 #: ../src/guestfs-actions.pod:7858
32698 msgid "guestfs_vfs_uuid"
32699 msgstr ""
32700
32701 #. type: verbatim
32702 #: ../src/guestfs-actions.pod:7860
32703 #, no-wrap
32704 msgid ""
32705 " char *\n"
32706 " guestfs_vfs_uuid (guestfs_h *g,\n"
32707 "                   const char *device);\n"
32708 "\n"
32709 msgstr ""
32710
32711 #. type: textblock
32712 #: ../src/guestfs-actions.pod:7869
32713 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
32714 msgstr ""
32715
32716 #. type: =head2
32717 #: ../src/guestfs-actions.pod:7876
32718 msgid "guestfs_vg_activate"
32719 msgstr ""
32720
32721 #. type: verbatim
32722 #: ../src/guestfs-actions.pod:7878
32723 #, no-wrap
32724 msgid ""
32725 " int\n"
32726 " guestfs_vg_activate (guestfs_h *g,\n"
32727 "                      int activate,\n"
32728 "                      char *const *volgroups);\n"
32729 "\n"
32730 msgstr ""
32731
32732 #. type: =head2
32733 #: ../src/guestfs-actions.pod:7895
32734 msgid "guestfs_vg_activate_all"
32735 msgstr ""
32736
32737 #. type: verbatim
32738 #: ../src/guestfs-actions.pod:7897
32739 #, no-wrap
32740 msgid ""
32741 " int\n"
32742 " guestfs_vg_activate_all (guestfs_h *g,\n"
32743 "                          int activate);\n"
32744 "\n"
32745 msgstr ""
32746
32747 #. type: =head2
32748 #: ../src/guestfs-actions.pod:7910
32749 msgid "guestfs_vgcreate"
32750 msgstr ""
32751
32752 #. type: verbatim
32753 #: ../src/guestfs-actions.pod:7912
32754 #, no-wrap
32755 msgid ""
32756 " int\n"
32757 " guestfs_vgcreate (guestfs_h *g,\n"
32758 "                   const char *volgroup,\n"
32759 "                   char *const *physvols);\n"
32760 "\n"
32761 msgstr ""
32762
32763 #. type: =head2
32764 #: ../src/guestfs-actions.pod:7924
32765 msgid "guestfs_vglvuuids"
32766 msgstr ""
32767
32768 #. type: verbatim
32769 #: ../src/guestfs-actions.pod:7926
32770 #, no-wrap
32771 msgid ""
32772 " char **\n"
32773 " guestfs_vglvuuids (guestfs_h *g,\n"
32774 "                    const char *vgname);\n"
32775 "\n"
32776 msgstr ""
32777
32778 #. type: textblock
32779 #: ../src/guestfs-actions.pod:7933
32780 msgid ""
32781 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
32782 "associate logical volumes and volume groups."
32783 msgstr ""
32784
32785 #. type: textblock
32786 #: ../src/guestfs-actions.pod:7936
32787 msgid "See also C<guestfs_vgpvuuids>."
32788 msgstr ""
32789
32790 #. type: =head2
32791 #: ../src/guestfs-actions.pod:7944
32792 msgid "guestfs_vgpvuuids"
32793 msgstr ""
32794
32795 #. type: verbatim
32796 #: ../src/guestfs-actions.pod:7946
32797 #, no-wrap
32798 msgid ""
32799 " char **\n"
32800 " guestfs_vgpvuuids (guestfs_h *g,\n"
32801 "                    const char *vgname);\n"
32802 "\n"
32803 msgstr ""
32804
32805 #. type: textblock
32806 #: ../src/guestfs-actions.pod:7953
32807 msgid ""
32808 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
32809 "associate physical volumes and volume groups."
32810 msgstr ""
32811
32812 #. type: textblock
32813 #: ../src/guestfs-actions.pod:7956
32814 msgid "See also C<guestfs_vglvuuids>."
32815 msgstr ""
32816
32817 #. type: =head2
32818 #: ../src/guestfs-actions.pod:7964
32819 msgid "guestfs_vgremove"
32820 msgstr ""
32821
32822 #. type: verbatim
32823 #: ../src/guestfs-actions.pod:7966
32824 #, no-wrap
32825 msgid ""
32826 " int\n"
32827 " guestfs_vgremove (guestfs_h *g,\n"
32828 "                   const char *vgname);\n"
32829 "\n"
32830 msgstr ""
32831
32832 #. type: =head2
32833 #: ../src/guestfs-actions.pod:7979
32834 msgid "guestfs_vgrename"
32835 msgstr ""
32836
32837 #. type: verbatim
32838 #: ../src/guestfs-actions.pod:7981
32839 #, no-wrap
32840 msgid ""
32841 " int\n"
32842 " guestfs_vgrename (guestfs_h *g,\n"
32843 "                   const char *volgroup,\n"
32844 "                   const char *newvolgroup);\n"
32845 "\n"
32846 msgstr ""
32847
32848 #. type: =head2
32849 #: ../src/guestfs-actions.pod:7992
32850 msgid "guestfs_vgs"
32851 msgstr ""
32852
32853 #. type: verbatim
32854 #: ../src/guestfs-actions.pod:7994
32855 #, no-wrap
32856 msgid ""
32857 " char **\n"
32858 " guestfs_vgs (guestfs_h *g);\n"
32859 "\n"
32860 msgstr ""
32861
32862 #. type: textblock
32863 #: ../src/guestfs-actions.pod:8003
32864 msgid "See also C<guestfs_vgs_full>."
32865 msgstr ""
32866
32867 #. type: =head2
32868 #: ../src/guestfs-actions.pod:8011
32869 msgid "guestfs_vgs_full"
32870 msgstr ""
32871
32872 #. type: verbatim
32873 #: ../src/guestfs-actions.pod:8013
32874 #, no-wrap
32875 msgid ""
32876 " struct guestfs_lvm_vg_list *\n"
32877 " guestfs_vgs_full (guestfs_h *g);\n"
32878 "\n"
32879 msgstr ""
32880
32881 #. type: textblock
32882 #: ../src/guestfs-actions.pod:8019
32883 msgid ""
32884 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
32885 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after "
32886 "use>."
32887 msgstr ""
32888
32889 #. type: =head2
32890 #: ../src/guestfs-actions.pod:8025
32891 msgid "guestfs_vgscan"
32892 msgstr ""
32893
32894 #. type: verbatim
32895 #: ../src/guestfs-actions.pod:8027
32896 #, no-wrap
32897 msgid ""
32898 " int\n"
32899 " guestfs_vgscan (guestfs_h *g);\n"
32900 "\n"
32901 msgstr ""
32902
32903 #. type: =head2
32904 #: ../src/guestfs-actions.pod:8037
32905 msgid "guestfs_vguuid"
32906 msgstr ""
32907
32908 #. type: verbatim
32909 #: ../src/guestfs-actions.pod:8039
32910 #, no-wrap
32911 msgid ""
32912 " char *\n"
32913 " guestfs_vguuid (guestfs_h *g,\n"
32914 "                 const char *vgname);\n"
32915 "\n"
32916 msgstr ""
32917
32918 #. type: =head2
32919 #: ../src/guestfs-actions.pod:8050
32920 msgid "guestfs_wait_ready"
32921 msgstr ""
32922
32923 #. type: verbatim
32924 #: ../src/guestfs-actions.pod:8052
32925 #, no-wrap
32926 msgid ""
32927 " int\n"
32928 " guestfs_wait_ready (guestfs_h *g);\n"
32929 "\n"
32930 msgstr ""
32931
32932 #. type: textblock
32933 #: ../src/guestfs-actions.pod:8055
32934 msgid ""
32935 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
32936 "instead."
32937 msgstr ""
32938
32939 #. type: textblock
32940 #: ../src/guestfs-actions.pod:8062
32941 msgid "This function is a no op."
32942 msgstr ""
32943
32944 #. type: textblock
32945 #: ../src/guestfs-actions.pod:8064
32946 msgid ""
32947 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
32948 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
32949 "is no longer necessary because C<guestfs_launch> now does the waiting."
32950 msgstr ""
32951
32952 #. type: textblock
32953 #: ../src/guestfs-actions.pod:8069
32954 msgid ""
32955 "If you see any calls to this function in code then you can just remove them, "
32956 "unless you want to retain compatibility with older versions of the API."
32957 msgstr ""
32958
32959 #. type: =head2
32960 #: ../src/guestfs-actions.pod:8077
32961 msgid "guestfs_wc_c"
32962 msgstr ""
32963
32964 #. type: verbatim
32965 #: ../src/guestfs-actions.pod:8079
32966 #, no-wrap
32967 msgid ""
32968 " int\n"
32969 " guestfs_wc_c (guestfs_h *g,\n"
32970 "               const char *path);\n"
32971 "\n"
32972 msgstr ""
32973
32974 #. type: =head2
32975 #: ../src/guestfs-actions.pod:8090
32976 msgid "guestfs_wc_l"
32977 msgstr ""
32978
32979 #. type: verbatim
32980 #: ../src/guestfs-actions.pod:8092
32981 #, no-wrap
32982 msgid ""
32983 " int\n"
32984 " guestfs_wc_l (guestfs_h *g,\n"
32985 "               const char *path);\n"
32986 "\n"
32987 msgstr ""
32988
32989 #. type: =head2
32990 #: ../src/guestfs-actions.pod:8103
32991 msgid "guestfs_wc_w"
32992 msgstr ""
32993
32994 #. type: verbatim
32995 #: ../src/guestfs-actions.pod:8105
32996 #, no-wrap
32997 msgid ""
32998 " int\n"
32999 " guestfs_wc_w (guestfs_h *g,\n"
33000 "               const char *path);\n"
33001 "\n"
33002 msgstr ""
33003
33004 #. type: =head2
33005 #: ../src/guestfs-actions.pod:8116
33006 msgid "guestfs_write"
33007 msgstr ""
33008
33009 #. type: verbatim
33010 #: ../src/guestfs-actions.pod:8118
33011 #, no-wrap
33012 msgid ""
33013 " int\n"
33014 " guestfs_write (guestfs_h *g,\n"
33015 "                const char *path,\n"
33016 "                const char *content,\n"
33017 "                size_t content_size);\n"
33018 "\n"
33019 msgstr ""
33020
33021 #. type: textblock
33022 #: ../src/guestfs-actions.pod:8127
33023 msgid "See also C<guestfs_write_append>."
33024 msgstr ""
33025
33026 #. type: =head2
33027 #: ../src/guestfs-actions.pod:8136
33028 msgid "guestfs_write_append"
33029 msgstr ""
33030
33031 #. type: verbatim
33032 #: ../src/guestfs-actions.pod:8138
33033 #, no-wrap
33034 msgid ""
33035 " int\n"
33036 " guestfs_write_append (guestfs_h *g,\n"
33037 "                       const char *path,\n"
33038 "                       const char *content,\n"
33039 "                       size_t content_size);\n"
33040 "\n"
33041 msgstr ""
33042
33043 #. type: textblock
33044 #: ../src/guestfs-actions.pod:8147
33045 msgid "See also C<guestfs_write>."
33046 msgstr ""
33047
33048 #. type: =head2
33049 #: ../src/guestfs-actions.pod:8156
33050 msgid "guestfs_write_file"
33051 msgstr ""
33052
33053 #. type: verbatim
33054 #: ../src/guestfs-actions.pod:8158
33055 #, no-wrap
33056 msgid ""
33057 " int\n"
33058 " guestfs_write_file (guestfs_h *g,\n"
33059 "                     const char *path,\n"
33060 "                     const char *content,\n"
33061 "                     int size);\n"
33062 "\n"
33063 msgstr ""
33064
33065 #. type: textblock
33066 #: ../src/guestfs-actions.pod:8164
33067 msgid ""
33068 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
33069 "instead."
33070 msgstr ""
33071
33072 #. type: =head2
33073 #: ../src/guestfs-actions.pod:8189
33074 msgid "guestfs_zegrep"
33075 msgstr ""
33076
33077 #. type: verbatim
33078 #: ../src/guestfs-actions.pod:8191
33079 #, no-wrap
33080 msgid ""
33081 " char **\n"
33082 " guestfs_zegrep (guestfs_h *g,\n"
33083 "                 const char *regex,\n"
33084 "                 const char *path);\n"
33085 "\n"
33086 msgstr ""
33087
33088 #. type: =head2
33089 #: ../src/guestfs-actions.pod:8208
33090 msgid "guestfs_zegrepi"
33091 msgstr ""
33092
33093 #. type: verbatim
33094 #: ../src/guestfs-actions.pod:8210
33095 #, no-wrap
33096 msgid ""
33097 " char **\n"
33098 " guestfs_zegrepi (guestfs_h *g,\n"
33099 "                  const char *regex,\n"
33100 "                  const char *path);\n"
33101 "\n"
33102 msgstr ""
33103
33104 #. type: =head2
33105 #: ../src/guestfs-actions.pod:8227
33106 msgid "guestfs_zero"
33107 msgstr ""
33108
33109 #. type: verbatim
33110 #: ../src/guestfs-actions.pod:8229
33111 #, no-wrap
33112 msgid ""
33113 " int\n"
33114 " guestfs_zero (guestfs_h *g,\n"
33115 "               const char *device);\n"
33116 "\n"
33117 msgstr ""
33118
33119 #. type: textblock
33120 #: ../src/guestfs-actions.pod:8243
33121 msgid ""
33122 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
33123 "C<guestfs_is_zero_device>"
33124 msgstr ""
33125
33126 #. type: =head2
33127 #: ../src/guestfs-actions.pod:8255
33128 msgid "guestfs_zero_device"
33129 msgstr ""
33130
33131 #. type: verbatim
33132 #: ../src/guestfs-actions.pod:8257
33133 #, no-wrap
33134 msgid ""
33135 " int\n"
33136 " guestfs_zero_device (guestfs_h *g,\n"
33137 "                      const char *device);\n"
33138 "\n"
33139 msgstr ""
33140
33141 #. type: textblock
33142 #: ../src/guestfs-actions.pod:8261
33143 msgid ""
33144 "This command writes zeroes over the entire C<device>.  Compare with "
33145 "C<guestfs_zero> which just zeroes the first few blocks of a device."
33146 msgstr ""
33147
33148 #. type: textblock
33149 #: ../src/guestfs-actions.pod:8276
33150 msgid "(Added in 1.3.1)"
33151 msgstr ""
33152
33153 #. type: =head2
33154 #: ../src/guestfs-actions.pod:8278
33155 msgid "guestfs_zerofree"
33156 msgstr ""
33157
33158 #. type: verbatim
33159 #: ../src/guestfs-actions.pod:8280
33160 #, no-wrap
33161 msgid ""
33162 " int\n"
33163 " guestfs_zerofree (guestfs_h *g,\n"
33164 "                   const char *device);\n"
33165 "\n"
33166 msgstr ""
33167
33168 #. type: =head2
33169 #: ../src/guestfs-actions.pod:8299
33170 msgid "guestfs_zfgrep"
33171 msgstr ""
33172
33173 #. type: verbatim
33174 #: ../src/guestfs-actions.pod:8301
33175 #, no-wrap
33176 msgid ""
33177 " char **\n"
33178 " guestfs_zfgrep (guestfs_h *g,\n"
33179 "                 const char *pattern,\n"
33180 "                 const char *path);\n"
33181 "\n"
33182 msgstr ""
33183
33184 #. type: =head2
33185 #: ../src/guestfs-actions.pod:8318
33186 msgid "guestfs_zfgrepi"
33187 msgstr ""
33188
33189 #. type: verbatim
33190 #: ../src/guestfs-actions.pod:8320
33191 #, no-wrap
33192 msgid ""
33193 " char **\n"
33194 " guestfs_zfgrepi (guestfs_h *g,\n"
33195 "                  const char *pattern,\n"
33196 "                  const char *path);\n"
33197 "\n"
33198 msgstr ""
33199
33200 #. type: =head2
33201 #: ../src/guestfs-actions.pod:8337
33202 msgid "guestfs_zfile"
33203 msgstr ""
33204
33205 #. type: verbatim
33206 #: ../src/guestfs-actions.pod:8339
33207 #, no-wrap
33208 msgid ""
33209 " char *\n"
33210 " guestfs_zfile (guestfs_h *g,\n"
33211 "                const char *meth,\n"
33212 "                const char *path);\n"
33213 "\n"
33214 msgstr ""
33215
33216 #. type: textblock
33217 #: ../src/guestfs-actions.pod:8344
33218 msgid ""
33219 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
33220 "instead."
33221 msgstr ""
33222
33223 #. type: textblock
33224 #: ../src/guestfs-actions.pod:8356
33225 msgid ""
33226 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
33227 "files."
33228 msgstr ""
33229
33230 #. type: =head2
33231 #: ../src/guestfs-actions.pod:8364
33232 msgid "guestfs_zgrep"
33233 msgstr ""
33234
33235 #. type: verbatim
33236 #: ../src/guestfs-actions.pod:8366
33237 #, no-wrap
33238 msgid ""
33239 " char **\n"
33240 " guestfs_zgrep (guestfs_h *g,\n"
33241 "                const char *regex,\n"
33242 "                const char *path);\n"
33243 "\n"
33244 msgstr ""
33245
33246 #. type: =head2
33247 #: ../src/guestfs-actions.pod:8383
33248 msgid "guestfs_zgrepi"
33249 msgstr ""
33250
33251 #. type: verbatim
33252 #: ../src/guestfs-actions.pod:8385
33253 #, no-wrap
33254 msgid ""
33255 " char **\n"
33256 " guestfs_zgrepi (guestfs_h *g,\n"
33257 "                 const char *regex,\n"
33258 "                 const char *path);\n"
33259 "\n"
33260 msgstr ""
33261
33262 #. type: =item
33263 #: ../src/guestfs-availability.pod:3
33264 msgid "B<augeas>"
33265 msgstr ""
33266
33267 #. type: textblock
33268 #: ../src/guestfs-availability.pod:5
33269 msgid ""
33270 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> "
33271 "L</guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> "
33272 "L</guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> "
33273 "L</guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> "
33274 "L</guestfs_aug_rm> L</guestfs_aug_save> L</guestfs_aug_set>"
33275 msgstr ""
33276
33277 #. type: =item
33278 #: ../src/guestfs-availability.pod:21
33279 msgid "B<btrfs>"
33280 msgstr ""
33281
33282 #. type: textblock
33283 #: ../src/guestfs-availability.pod:23
33284 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
33285 msgstr ""
33286
33287 #. type: =item
33288 #: ../src/guestfs-availability.pod:26
33289 msgid "B<grub>"
33290 msgstr ""
33291
33292 #. type: textblock
33293 #: ../src/guestfs-availability.pod:28
33294 msgid "The following functions: L</guestfs_grub_install>"
33295 msgstr ""
33296
33297 #. type: =item
33298 #: ../src/guestfs-availability.pod:31
33299 msgid "B<inotify>"
33300 msgstr ""
33301
33302 #. type: textblock
33303 #: ../src/guestfs-availability.pod:33
33304 msgid ""
33305 "The following functions: L</guestfs_inotify_add_watch> "
33306 "L</guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> "
33307 "L</guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
33308 msgstr ""
33309
33310 #. type: =item
33311 #: ../src/guestfs-availability.pod:41
33312 msgid "B<linuxfsuuid>"
33313 msgstr ""
33314
33315 #. type: textblock
33316 #: ../src/guestfs-availability.pod:43
33317 msgid ""
33318 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> "
33319 "L</guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
33320 msgstr ""
33321
33322 #. type: =item
33323 #: ../src/guestfs-availability.pod:50
33324 msgid "B<linuxmodules>"
33325 msgstr ""
33326
33327 #. type: textblock
33328 #: ../src/guestfs-availability.pod:52
33329 msgid "The following functions: L</guestfs_modprobe>"
33330 msgstr ""
33331
33332 #. type: =item
33333 #: ../src/guestfs-availability.pod:55
33334 msgid "B<linuxxattrs>"
33335 msgstr ""
33336
33337 #. type: textblock
33338 #: ../src/guestfs-availability.pod:57
33339 msgid ""
33340 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> "
33341 "L</guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> "
33342 "L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> "
33343 "L</guestfs_setxattr>"
33344 msgstr ""
33345
33346 #. type: =item
33347 #: ../src/guestfs-availability.pod:68
33348 msgid "B<luks>"
33349 msgstr ""
33350
33351 #. type: textblock
33352 #: ../src/guestfs-availability.pod:70
33353 msgid ""
33354 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> "
33355 "L</guestfs_luks_format> L</guestfs_luks_format_cipher> "
33356 "L</guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
33357 msgstr ""
33358
33359 #. type: =item
33360 #: ../src/guestfs-availability.pod:79
33361 msgid "B<lvm2>"
33362 msgstr ""
33363
33364 #. type: textblock
33365 #: ../src/guestfs-availability.pod:81
33366 msgid ""
33367 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> "
33368 "L</guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> "
33369 "L</guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> "
33370 "L</guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> "
33371 "L</guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> "
33372 "L</guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> "
33373 "L</guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> "
33374 "L</guestfs_vgs_full>"
33375 msgstr ""
33376
33377 #. type: =item
33378 #: ../src/guestfs-availability.pod:104
33379 msgid "B<mknod>"
33380 msgstr ""
33381
33382 #. type: textblock
33383 #: ../src/guestfs-availability.pod:106
33384 msgid ""
33385 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> "
33386 "L</guestfs_mknod_b> L</guestfs_mknod_c>"
33387 msgstr ""
33388
33389 #. type: =item
33390 #: ../src/guestfs-availability.pod:112
33391 msgid "B<ntfs3g>"
33392 msgstr ""
33393
33394 #. type: textblock
33395 #: ../src/guestfs-availability.pod:114
33396 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
33397 msgstr ""
33398
33399 #. type: =item
33400 #: ../src/guestfs-availability.pod:117
33401 msgid "B<ntfsprogs>"
33402 msgstr ""
33403
33404 #. type: textblock
33405 #: ../src/guestfs-availability.pod:119
33406 msgid ""
33407 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
33408 "L</guestfs_ntfsresize_size>"
33409 msgstr ""
33410
33411 #. type: =item
33412 #: ../src/guestfs-availability.pod:124
33413 msgid "B<realpath>"
33414 msgstr ""
33415
33416 #. type: textblock
33417 #: ../src/guestfs-availability.pod:126
33418 msgid "The following functions: L</guestfs_realpath>"
33419 msgstr ""
33420
33421 #. type: =item
33422 #: ../src/guestfs-availability.pod:129
33423 msgid "B<scrub>"
33424 msgstr ""
33425
33426 #. type: textblock
33427 #: ../src/guestfs-availability.pod:131
33428 msgid ""
33429 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> "
33430 "L</guestfs_scrub_freespace>"
33431 msgstr ""
33432
33433 #. type: =item
33434 #: ../src/guestfs-availability.pod:136
33435 msgid "B<selinux>"
33436 msgstr ""
33437
33438 #. type: textblock
33439 #: ../src/guestfs-availability.pod:138
33440 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
33441 msgstr ""
33442
33443 #. type: =item
33444 #: ../src/guestfs-availability.pod:142
33445 msgid "B<xz>"
33446 msgstr ""
33447
33448 #. type: textblock
33449 #: ../src/guestfs-availability.pod:144
33450 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
33451 msgstr ""
33452
33453 #. type: =item
33454 #: ../src/guestfs-availability.pod:148
33455 msgid "B<zerofree>"
33456 msgstr ""
33457
33458 #. type: textblock
33459 #: ../src/guestfs-availability.pod:150
33460 msgid "The following functions: L</guestfs_zerofree>"
33461 msgstr ""
33462
33463 #. type: =head2
33464 #: ../src/guestfs-structs.pod:1
33465 msgid "guestfs_int_bool"
33466 msgstr ""
33467
33468 #. type: verbatim
33469 #: ../src/guestfs-structs.pod:3
33470 #, no-wrap
33471 msgid ""
33472 " struct guestfs_int_bool {\n"
33473 "   int32_t i;\n"
33474 "   int32_t b;\n"
33475 " };\n"
33476 " \n"
33477 msgstr ""
33478
33479 #. type: verbatim
33480 #: ../src/guestfs-structs.pod:8
33481 #, no-wrap
33482 msgid ""
33483 " struct guestfs_int_bool_list {\n"
33484 "   uint32_t len; /* Number of elements in list. */\n"
33485 "   struct guestfs_int_bool *val; /* Elements. */\n"
33486 " };\n"
33487 " \n"
33488 msgstr ""
33489
33490 #. type: verbatim
33491 #: ../src/guestfs-structs.pod:13
33492 #, no-wrap
33493 msgid ""
33494 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
33495 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
33496 "\n"
33497 msgstr ""
33498
33499 #. type: =head2
33500 #: ../src/guestfs-structs.pod:16
33501 msgid "guestfs_lvm_pv"
33502 msgstr ""
33503
33504 #. type: verbatim
33505 #: ../src/guestfs-structs.pod:18
33506 #, no-wrap
33507 msgid ""
33508 " struct guestfs_lvm_pv {\n"
33509 "   char *pv_name;\n"
33510 "   /* The next field is NOT nul-terminated, be careful when printing it: "
33511 "*/\n"
33512 "   char pv_uuid[32];\n"
33513 "   char *pv_fmt;\n"
33514 "   uint64_t pv_size;\n"
33515 "   uint64_t dev_size;\n"
33516 "   uint64_t pv_free;\n"
33517 "   uint64_t pv_used;\n"
33518 "   char *pv_attr;\n"
33519 "   int64_t pv_pe_count;\n"
33520 "   int64_t pv_pe_alloc_count;\n"
33521 "   char *pv_tags;\n"
33522 "   uint64_t pe_start;\n"
33523 "   int64_t pv_mda_count;\n"
33524 "   uint64_t pv_mda_free;\n"
33525 " };\n"
33526 " \n"
33527 msgstr ""
33528
33529 #. type: verbatim
33530 #: ../src/guestfs-structs.pod:36
33531 #, no-wrap
33532 msgid ""
33533 " struct guestfs_lvm_pv_list {\n"
33534 "   uint32_t len; /* Number of elements in list. */\n"
33535 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
33536 " };\n"
33537 " \n"
33538 msgstr ""
33539
33540 #. type: verbatim
33541 #: ../src/guestfs-structs.pod:41
33542 #, no-wrap
33543 msgid ""
33544 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
33545 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
33546 "\n"
33547 msgstr ""
33548
33549 #. type: =head2
33550 #: ../src/guestfs-structs.pod:44
33551 msgid "guestfs_lvm_vg"
33552 msgstr ""
33553
33554 #. type: verbatim
33555 #: ../src/guestfs-structs.pod:46
33556 #, no-wrap
33557 msgid ""
33558 " struct guestfs_lvm_vg {\n"
33559 "   char *vg_name;\n"
33560 "   /* The next field is NOT nul-terminated, be careful when printing it: "
33561 "*/\n"
33562 "   char vg_uuid[32];\n"
33563 "   char *vg_fmt;\n"
33564 "   char *vg_attr;\n"
33565 "   uint64_t vg_size;\n"
33566 "   uint64_t vg_free;\n"
33567 "   char *vg_sysid;\n"
33568 "   uint64_t vg_extent_size;\n"
33569 "   int64_t vg_extent_count;\n"
33570 "   int64_t vg_free_count;\n"
33571 "   int64_t max_lv;\n"
33572 "   int64_t max_pv;\n"
33573 "   int64_t pv_count;\n"
33574 "   int64_t lv_count;\n"
33575 "   int64_t snap_count;\n"
33576 "   int64_t vg_seqno;\n"
33577 "   char *vg_tags;\n"
33578 "   int64_t vg_mda_count;\n"
33579 "   uint64_t vg_mda_free;\n"
33580 " };\n"
33581 " \n"
33582 msgstr ""
33583
33584 #. type: verbatim
33585 #: ../src/guestfs-structs.pod:69
33586 #, no-wrap
33587 msgid ""
33588 " struct guestfs_lvm_vg_list {\n"
33589 "   uint32_t len; /* Number of elements in list. */\n"
33590 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
33591 " };\n"
33592 " \n"
33593 msgstr ""
33594
33595 #. type: verbatim
33596 #: ../src/guestfs-structs.pod:74
33597 #, no-wrap
33598 msgid ""
33599 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
33600 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
33601 "\n"
33602 msgstr ""
33603
33604 #. type: =head2
33605 #: ../src/guestfs-structs.pod:77
33606 msgid "guestfs_lvm_lv"
33607 msgstr ""
33608
33609 #. type: verbatim
33610 #: ../src/guestfs-structs.pod:79
33611 #, no-wrap
33612 msgid ""
33613 " struct guestfs_lvm_lv {\n"
33614 "   char *lv_name;\n"
33615 "   /* The next field is NOT nul-terminated, be careful when printing it: "
33616 "*/\n"
33617 "   char lv_uuid[32];\n"
33618 "   char *lv_attr;\n"
33619 "   int64_t lv_major;\n"
33620 "   int64_t lv_minor;\n"
33621 "   int64_t lv_kernel_major;\n"
33622 "   int64_t lv_kernel_minor;\n"
33623 "   uint64_t lv_size;\n"
33624 "   int64_t seg_count;\n"
33625 "   char *origin;\n"
33626 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
33627 "   float snap_percent;\n"
33628 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
33629 "   float copy_percent;\n"
33630 "   char *move_pv;\n"
33631 "   char *lv_tags;\n"
33632 "   char *mirror_log;\n"
33633 "   char *modules;\n"
33634 " };\n"
33635 " \n"
33636 msgstr ""
33637
33638 #. type: verbatim
33639 #: ../src/guestfs-structs.pod:101
33640 #, no-wrap
33641 msgid ""
33642 " struct guestfs_lvm_lv_list {\n"
33643 "   uint32_t len; /* Number of elements in list. */\n"
33644 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
33645 " };\n"
33646 " \n"
33647 msgstr ""
33648
33649 #. type: verbatim
33650 #: ../src/guestfs-structs.pod:106
33651 #, no-wrap
33652 msgid ""
33653 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
33654 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
33655 "\n"
33656 msgstr ""
33657
33658 #. type: verbatim
33659 #: ../src/guestfs-structs.pod:111
33660 #, no-wrap
33661 msgid ""
33662 " struct guestfs_stat {\n"
33663 "   int64_t dev;\n"
33664 "   int64_t ino;\n"
33665 "   int64_t mode;\n"
33666 "   int64_t nlink;\n"
33667 "   int64_t uid;\n"
33668 "   int64_t gid;\n"
33669 "   int64_t rdev;\n"
33670 "   int64_t size;\n"
33671 "   int64_t blksize;\n"
33672 "   int64_t blocks;\n"
33673 "   int64_t atime;\n"
33674 "   int64_t mtime;\n"
33675 "   int64_t ctime;\n"
33676 " };\n"
33677 " \n"
33678 msgstr ""
33679
33680 #. type: verbatim
33681 #: ../src/guestfs-structs.pod:127
33682 #, no-wrap
33683 msgid ""
33684 " struct guestfs_stat_list {\n"
33685 "   uint32_t len; /* Number of elements in list. */\n"
33686 "   struct guestfs_stat *val; /* Elements. */\n"
33687 " };\n"
33688 " \n"
33689 msgstr ""
33690
33691 #. type: verbatim
33692 #: ../src/guestfs-structs.pod:132
33693 #, no-wrap
33694 msgid ""
33695 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
33696 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
33697 "\n"
33698 msgstr ""
33699
33700 #. type: verbatim
33701 #: ../src/guestfs-structs.pod:137
33702 #, no-wrap
33703 msgid ""
33704 " struct guestfs_statvfs {\n"
33705 "   int64_t bsize;\n"
33706 "   int64_t frsize;\n"
33707 "   int64_t blocks;\n"
33708 "   int64_t bfree;\n"
33709 "   int64_t bavail;\n"
33710 "   int64_t files;\n"
33711 "   int64_t ffree;\n"
33712 "   int64_t favail;\n"
33713 "   int64_t fsid;\n"
33714 "   int64_t flag;\n"
33715 "   int64_t namemax;\n"
33716 " };\n"
33717 " \n"
33718 msgstr ""
33719
33720 #. type: verbatim
33721 #: ../src/guestfs-structs.pod:151
33722 #, no-wrap
33723 msgid ""
33724 " struct guestfs_statvfs_list {\n"
33725 "   uint32_t len; /* Number of elements in list. */\n"
33726 "   struct guestfs_statvfs *val; /* Elements. */\n"
33727 " };\n"
33728 " \n"
33729 msgstr ""
33730
33731 #. type: verbatim
33732 #: ../src/guestfs-structs.pod:156
33733 #, no-wrap
33734 msgid ""
33735 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
33736 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
33737 "\n"
33738 msgstr ""
33739
33740 #. type: =head2
33741 #: ../src/guestfs-structs.pod:159
33742 msgid "guestfs_dirent"
33743 msgstr ""
33744
33745 #. type: verbatim
33746 #: ../src/guestfs-structs.pod:161
33747 #, no-wrap
33748 msgid ""
33749 " struct guestfs_dirent {\n"
33750 "   int64_t ino;\n"
33751 "   char ftyp;\n"
33752 "   char *name;\n"
33753 " };\n"
33754 " \n"
33755 msgstr ""
33756
33757 #. type: verbatim
33758 #: ../src/guestfs-structs.pod:167
33759 #, no-wrap
33760 msgid ""
33761 " struct guestfs_dirent_list {\n"
33762 "   uint32_t len; /* Number of elements in list. */\n"
33763 "   struct guestfs_dirent *val; /* Elements. */\n"
33764 " };\n"
33765 " \n"
33766 msgstr ""
33767
33768 #. type: verbatim
33769 #: ../src/guestfs-structs.pod:172
33770 #, no-wrap
33771 msgid ""
33772 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
33773 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
33774 "\n"
33775 msgstr ""
33776
33777 #. type: verbatim
33778 #: ../src/guestfs-structs.pod:177
33779 #, no-wrap
33780 msgid ""
33781 " struct guestfs_version {\n"
33782 "   int64_t major;\n"
33783 "   int64_t minor;\n"
33784 "   int64_t release;\n"
33785 "   char *extra;\n"
33786 " };\n"
33787 " \n"
33788 msgstr ""
33789
33790 #. type: verbatim
33791 #: ../src/guestfs-structs.pod:184
33792 #, no-wrap
33793 msgid ""
33794 " struct guestfs_version_list {\n"
33795 "   uint32_t len; /* Number of elements in list. */\n"
33796 "   struct guestfs_version *val; /* Elements. */\n"
33797 " };\n"
33798 " \n"
33799 msgstr ""
33800
33801 #. type: verbatim
33802 #: ../src/guestfs-structs.pod:189
33803 #, no-wrap
33804 msgid ""
33805 " void guestfs_free_version (struct guestfs_free_version *);\n"
33806 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
33807 "\n"
33808 msgstr ""
33809
33810 #. type: =head2
33811 #: ../src/guestfs-structs.pod:192
33812 msgid "guestfs_xattr"
33813 msgstr ""
33814
33815 #. type: verbatim
33816 #: ../src/guestfs-structs.pod:194
33817 #, no-wrap
33818 msgid ""
33819 " struct guestfs_xattr {\n"
33820 "   char *attrname;\n"
33821 "   /* The next two fields describe a byte array. */\n"
33822 "   uint32_t attrval_len;\n"
33823 "   char *attrval;\n"
33824 " };\n"
33825 " \n"
33826 msgstr ""
33827
33828 #. type: verbatim
33829 #: ../src/guestfs-structs.pod:201
33830 #, no-wrap
33831 msgid ""
33832 " struct guestfs_xattr_list {\n"
33833 "   uint32_t len; /* Number of elements in list. */\n"
33834 "   struct guestfs_xattr *val; /* Elements. */\n"
33835 " };\n"
33836 " \n"
33837 msgstr ""
33838
33839 #. type: verbatim
33840 #: ../src/guestfs-structs.pod:206
33841 #, no-wrap
33842 msgid ""
33843 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
33844 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
33845 "\n"
33846 msgstr ""
33847
33848 #. type: =head2
33849 #: ../src/guestfs-structs.pod:209
33850 msgid "guestfs_inotify_event"
33851 msgstr ""
33852
33853 #. type: verbatim
33854 #: ../src/guestfs-structs.pod:211
33855 #, no-wrap
33856 msgid ""
33857 " struct guestfs_inotify_event {\n"
33858 "   int64_t in_wd;\n"
33859 "   uint32_t in_mask;\n"
33860 "   uint32_t in_cookie;\n"
33861 "   char *in_name;\n"
33862 " };\n"
33863 " \n"
33864 msgstr ""
33865
33866 #. type: verbatim
33867 #: ../src/guestfs-structs.pod:218
33868 #, no-wrap
33869 msgid ""
33870 " struct guestfs_inotify_event_list {\n"
33871 "   uint32_t len; /* Number of elements in list. */\n"
33872 "   struct guestfs_inotify_event *val; /* Elements. */\n"
33873 " };\n"
33874 " \n"
33875 msgstr ""
33876
33877 #. type: verbatim
33878 #: ../src/guestfs-structs.pod:223
33879 #, no-wrap
33880 msgid ""
33881 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
33882 " void guestfs_free_inotify_event_list (struct "
33883 "guestfs_free_inotify_event_list *);\n"
33884 "\n"
33885 msgstr ""
33886
33887 #. type: =head2
33888 #: ../src/guestfs-structs.pod:226
33889 msgid "guestfs_partition"
33890 msgstr ""
33891
33892 #. type: verbatim
33893 #: ../src/guestfs-structs.pod:228
33894 #, no-wrap
33895 msgid ""
33896 " struct guestfs_partition {\n"
33897 "   int32_t part_num;\n"
33898 "   uint64_t part_start;\n"
33899 "   uint64_t part_end;\n"
33900 "   uint64_t part_size;\n"
33901 " };\n"
33902 " \n"
33903 msgstr ""
33904
33905 #. type: verbatim
33906 #: ../src/guestfs-structs.pod:235
33907 #, no-wrap
33908 msgid ""
33909 " struct guestfs_partition_list {\n"
33910 "   uint32_t len; /* Number of elements in list. */\n"
33911 "   struct guestfs_partition *val; /* Elements. */\n"
33912 " };\n"
33913 " \n"
33914 msgstr ""
33915
33916 #. type: verbatim
33917 #: ../src/guestfs-structs.pod:240
33918 #, no-wrap
33919 msgid ""
33920 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
33921 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
33922 "\n"
33923 msgstr ""
33924
33925 #. type: =head2
33926 #: ../src/guestfs-structs.pod:243
33927 msgid "guestfs_application"
33928 msgstr ""
33929
33930 #. type: verbatim
33931 #: ../src/guestfs-structs.pod:245
33932 #, no-wrap
33933 msgid ""
33934 " struct guestfs_application {\n"
33935 "   char *app_name;\n"
33936 "   char *app_display_name;\n"
33937 "   int32_t app_epoch;\n"
33938 "   char *app_version;\n"
33939 "   char *app_release;\n"
33940 "   char *app_install_path;\n"
33941 "   char *app_trans_path;\n"
33942 "   char *app_publisher;\n"
33943 "   char *app_url;\n"
33944 "   char *app_source_package;\n"
33945 "   char *app_summary;\n"
33946 "   char *app_description;\n"
33947 " };\n"
33948 " \n"
33949 msgstr ""
33950
33951 #. type: verbatim
33952 #: ../src/guestfs-structs.pod:260
33953 #, no-wrap
33954 msgid ""
33955 " struct guestfs_application_list {\n"
33956 "   uint32_t len; /* Number of elements in list. */\n"
33957 "   struct guestfs_application *val; /* Elements. */\n"
33958 " };\n"
33959 " \n"
33960 msgstr ""
33961
33962 #. type: verbatim
33963 #: ../src/guestfs-structs.pod:265
33964 #, no-wrap
33965 msgid ""
33966 " void guestfs_free_application (struct guestfs_free_application *);\n"
33967 " void guestfs_free_application_list (struct guestfs_free_application_list "
33968 "*);\n"
33969 "\n"
33970 msgstr ""
33971
33972 #. type: textblock
33973 #: ../src/guestfs.pod:5
33974 msgid "guestfs - Library for accessing and modifying virtual machine images"
33975 msgstr ""
33976
33977 #. type: verbatim
33978 #: ../src/guestfs.pod:11
33979 #, no-wrap
33980 msgid ""
33981 " guestfs_h *g = guestfs_create ();\n"
33982 " guestfs_add_drive (g, \"guest.img\");\n"
33983 " guestfs_launch (g);\n"
33984 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
33985 " guestfs_touch (g, \"/hello\");\n"
33986 " guestfs_umount (g, \"/\");\n"
33987 " guestfs_close (g);\n"
33988 "\n"
33989 msgstr ""
33990
33991 #. type: textblock
33992 #: ../src/guestfs.pod:25
33993 msgid ""
33994 "Libguestfs is a library for accessing and modifying guest disk images.  "
33995 "Amongst the things this is good for: making batch configuration changes to "
33996 "guests, getting disk used/free statistics (see also: virt-df), migrating "
33997 "between virtualization systems (see also: virt-p2v), performing partial "
33998 "backups, performing partial guest clones, cloning guests and changing "
33999 "registry/UUID/hostname info, and much else besides."
34000 msgstr ""
34001
34002 #. type: textblock
34003 #: ../src/guestfs.pod:33
34004 msgid ""
34005 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
34006 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
34007 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
34008 "qcow2, vmdk."
34009 msgstr ""
34010
34011 #. type: textblock
34012 #: ../src/guestfs.pod:38
34013 msgid ""
34014 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
34015 "what filesystem is in each LV, etc.).  It can also run commands in the "
34016 "context of the guest.  Also you can access filesystems over FUSE."
34017 msgstr ""
34018
34019 #. type: textblock
34020 #: ../src/guestfs.pod:43
34021 msgid ""
34022 "Libguestfs is a library that can be linked with C and C++ management "
34023 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
34024 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
34025 "command line."
34026 msgstr ""
34027
34028 #. type: textblock
34029 #: ../src/guestfs.pod:48
34030 msgid ""
34031 "You don't need to be root to use libguestfs, although obviously you do need "
34032 "enough permissions to access the disk images."
34033 msgstr ""
34034
34035 #. type: textblock
34036 #: ../src/guestfs.pod:51
34037 msgid ""
34038 "Libguestfs is a large API because it can do many things.  For a gentle "
34039 "introduction, please read the L</API OVERVIEW> section next."
34040 msgstr ""
34041
34042 #. type: textblock
34043 #: ../src/guestfs.pod:54
34044 msgid ""
34045 "There are also some example programs in the L<guestfs-examples(3)> manual "
34046 "page."
34047 msgstr ""
34048
34049 #. type: =head1
34050 #: ../src/guestfs.pod:57
34051 msgid "API OVERVIEW"
34052 msgstr ""
34053
34054 #. type: textblock
34055 #: ../src/guestfs.pod:59
34056 msgid ""
34057 "This section provides a gentler overview of the libguestfs API.  We also try "
34058 "to group API calls together, where that may not be obvious from reading "
34059 "about the individual calls in the main section of this manual."
34060 msgstr ""
34061
34062 #. type: =head2
34063 #: ../src/guestfs.pod:64
34064 msgid "HANDLES"
34065 msgstr ""
34066
34067 #. type: textblock
34068 #: ../src/guestfs.pod:66
34069 msgid ""
34070 "Before you can use libguestfs calls, you have to create a handle.  Then you "
34071 "must add at least one disk image to the handle, followed by launching the "
34072 "handle, then performing whatever operations you want, and finally closing "
34073 "the handle.  By convention we use the single letter C<g> for the name of the "
34074 "handle variable, although of course you can use any name you want."
34075 msgstr ""
34076
34077 #. type: textblock
34078 #: ../src/guestfs.pod:73
34079 msgid "The general structure of all libguestfs-using programs looks like this:"
34080 msgstr ""
34081
34082 #. type: verbatim
34083 #: ../src/guestfs.pod:76
34084 #, no-wrap
34085 msgid ""
34086 " guestfs_h *g = guestfs_create ();\n"
34087 " \n"
34088 msgstr ""
34089
34090 #. type: verbatim
34091 #: ../src/guestfs.pod:78
34092 #, no-wrap
34093 msgid ""
34094 " /* Call guestfs_add_drive additional times if there are\n"
34095 "  * multiple disk images.\n"
34096 "  */\n"
34097 " guestfs_add_drive (g, \"guest.img\");\n"
34098 " \n"
34099 msgstr ""
34100
34101 #. type: verbatim
34102 #: ../src/guestfs.pod:83
34103 #, no-wrap
34104 msgid ""
34105 " /* Most manipulation calls won't work until you've launched\n"
34106 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
34107 "  * and _before_ other commands.\n"
34108 "  */\n"
34109 " guestfs_launch (g);\n"
34110 " \n"
34111 msgstr ""
34112
34113 #. type: verbatim
34114 #: ../src/guestfs.pod:89
34115 #, no-wrap
34116 msgid ""
34117 " /* Now you can examine what partitions, LVs etc are available.\n"
34118 "  */\n"
34119 " char **partitions = guestfs_list_partitions (g);\n"
34120 " char **logvols = guestfs_lvs (g);\n"
34121 " \n"
34122 msgstr ""
34123
34124 #. type: verbatim
34125 #: ../src/guestfs.pod:94
34126 #, no-wrap
34127 msgid ""
34128 " /* To access a filesystem in the image, you must mount it.\n"
34129 "  */\n"
34130 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34131 " \n"
34132 msgstr ""
34133
34134 #. type: verbatim
34135 #: ../src/guestfs.pod:98
34136 #, no-wrap
34137 msgid ""
34138 " /* Now you can perform filesystem actions on the guest\n"
34139 "  * disk image.\n"
34140 "  */\n"
34141 " guestfs_touch (g, \"/hello\");\n"
34142 " \n"
34143 msgstr ""
34144
34145 #. type: verbatim
34146 #: ../src/guestfs.pod:103
34147 #, no-wrap
34148 msgid ""
34149 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
34150 "  * it is done automatically when you close the handle.  See\n"
34151 "  * discussion of autosync in this page.\n"
34152 "  */\n"
34153 " guestfs_sync (g);\n"
34154 " \n"
34155 msgstr ""
34156
34157 #. type: verbatim
34158 #: ../src/guestfs.pod:109
34159 #, no-wrap
34160 msgid ""
34161 " /* Close the handle 'g'. */\n"
34162 " guestfs_close (g);\n"
34163 "\n"
34164 msgstr ""
34165
34166 #. type: textblock
34167 #: ../src/guestfs.pod:112
34168 msgid ""
34169 "The code above doesn't include any error checking.  In real code you should "
34170 "check return values carefully for errors.  In general all functions that "
34171 "return integers return C<-1> on error, and all functions that return "
34172 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
34173 "how to handle errors, and consult the documentation for each function call "
34174 "below to see precisely how they return error indications.  See "
34175 "L<guestfs-examples(3)> for fully worked examples."
34176 msgstr ""
34177
34178 #. type: =head2
34179 #: ../src/guestfs.pod:121
34180 msgid "DISK IMAGES"
34181 msgstr ""
34182
34183 #. type: textblock
34184 #: ../src/guestfs.pod:123
34185 msgid ""
34186 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
34187 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
34188 "actual block device, or simply an empty file of zeroes that you have created "
34189 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
34190 "of these."
34191 msgstr ""
34192
34193 #. type: textblock
34194 #: ../src/guestfs.pod:129
34195 msgid ""
34196 "The call you should use in modern code for adding drives is "
34197 "L</guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
34198 "specifying that the format is raw, do:"
34199 msgstr ""
34200
34201 #. type: verbatim
34202 #: ../src/guestfs.pod:133
34203 #, no-wrap
34204 msgid ""
34205 " guestfs_add_drive_opts (g, filename,\n"
34206 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34207 "                         -1);\n"
34208 "\n"
34209 msgstr ""
34210
34211 #. type: textblock
34212 #: ../src/guestfs.pod:137
34213 msgid "You can add a disk read-only using:"
34214 msgstr ""
34215
34216 #. type: verbatim
34217 #: ../src/guestfs.pod:139
34218 #, no-wrap
34219 msgid ""
34220 " guestfs_add_drive_opts (g, filename,\n"
34221 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34222 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
34223 "                         -1);\n"
34224 "\n"
34225 msgstr ""
34226
34227 #. type: textblock
34228 #: ../src/guestfs.pod:144
34229 msgid ""
34230 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
34231 "libguestfs won't modify the file."
34232 msgstr ""
34233
34234 #. type: textblock
34235 #: ../src/guestfs.pod:147
34236 msgid ""
34237 "Be extremely cautious if the disk image is in use, eg. if it is being used "
34238 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
34239 "corruption, but adding it read-only is safe."
34240 msgstr ""
34241
34242 #. type: textblock
34243 #: ../src/guestfs.pod:151
34244 msgid ""
34245 "You must add at least one disk image, and you may add multiple disk images.  "
34246 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
34247 "first one you added), C</dev/sdb> (for the second one you added), etc."
34248 msgstr ""
34249
34250 #. type: textblock
34251 #: ../src/guestfs.pod:156
34252 msgid ""
34253 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
34254 "can call L</guestfs_list_devices> to get a list of the device names, in the "
34255 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
34256 msgstr ""
34257
34258 #. type: =head2
34259 #: ../src/guestfs.pod:161
34260 msgid "MOUNTING"
34261 msgstr ""
34262
34263 #. type: textblock
34264 #: ../src/guestfs.pod:163
34265 msgid ""
34266 "Before you can read or write files, create directories and so on in a disk "
34267 "image that contains filesystems, you have to mount those filesystems using "
34268 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
34269 "a disk image contains (for example) one partition with a filesystem on that "
34270 "partition, then you can mount it directly:"
34271 msgstr ""
34272
34273 #. type: verbatim
34274 #: ../src/guestfs.pod:170
34275 #, no-wrap
34276 msgid ""
34277 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
34278 "\n"
34279 msgstr ""
34280
34281 #. type: textblock
34282 #: ../src/guestfs.pod:172
34283 msgid ""
34284 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
34285 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
34286 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
34287 "that these are libguestfs virtual devices, and are nothing to do with host "
34288 "devices."
34289 msgstr ""
34290
34291 #. type: textblock
34292 #: ../src/guestfs.pod:178
34293 msgid ""
34294 "If you are given a disk image and you don't know what it contains then you "
34295 "have to find out.  Libguestfs can do that too: use "
34296 "L</guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions "
34297 "and LVs, and either try mounting each to see what is mountable, or else "
34298 "examine them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
34299 "filesystems, use L</guestfs_list_filesystems>."
34300 msgstr ""
34301
34302 #. type: textblock
34303 #: ../src/guestfs.pod:186
34304 msgid ""
34305 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
34306 "L</INSPECTION> below).  But you might find it easier to look at higher level "
34307 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
34308 msgstr ""
34309
34310 #. type: textblock
34311 #: ../src/guestfs.pod:191
34312 msgid ""
34313 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
34314 "several other variations of the C<guestfs_mount_*> call."
34315 msgstr ""
34316
34317 #. type: =head2
34318 #: ../src/guestfs.pod:194
34319 msgid "FILESYSTEM ACCESS AND MODIFICATION"
34320 msgstr ""
34321
34322 #. type: textblock
34323 #: ../src/guestfs.pod:196
34324 msgid ""
34325 "The majority of the libguestfs API consists of fairly low-level calls for "
34326 "accessing and modifying the files, directories, symlinks etc on mounted "
34327 "filesystems.  There are over a hundred such calls which you can find listed "
34328 "in detail below in this man page, and we don't even pretend to cover them "
34329 "all in this overview."
34330 msgstr ""
34331
34332 #. type: textblock
34333 #: ../src/guestfs.pod:202
34334 msgid ""
34335 "Specify filenames as full paths, starting with C<\"/\"> and including the "
34336 "mount point."
34337 msgstr ""
34338
34339 #. type: textblock
34340 #: ../src/guestfs.pod:205
34341 msgid ""
34342 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
34343 "the file called C<\"etc/passwd\"> then you could do:"
34344 msgstr ""
34345
34346 #. type: verbatim
34347 #: ../src/guestfs.pod:208
34348 #, no-wrap
34349 msgid ""
34350 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
34351 "\n"
34352 msgstr ""
34353
34354 #. type: textblock
34355 #: ../src/guestfs.pod:210
34356 msgid ""
34357 "This would return C<data> as a newly allocated buffer containing the full "
34358 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
34359 "or C<NULL> if there was an error."
34360 msgstr ""
34361
34362 #. type: textblock
34363 #: ../src/guestfs.pod:214
34364 msgid ""
34365 "As another example, to create a top-level directory on that filesystem "
34366 "called C<\"var\"> you would do:"
34367 msgstr ""
34368
34369 #. type: verbatim
34370 #: ../src/guestfs.pod:217
34371 #, no-wrap
34372 msgid ""
34373 " guestfs_mkdir (g, \"/var\");\n"
34374 "\n"
34375 msgstr ""
34376
34377 #. type: textblock
34378 #: ../src/guestfs.pod:219
34379 msgid "To create a symlink you could do:"
34380 msgstr ""
34381
34382 #. type: verbatim
34383 #: ../src/guestfs.pod:221
34384 #, no-wrap
34385 msgid ""
34386 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
34387 "               \"/etc/rc3.d/S30portmap\");\n"
34388 "\n"
34389 msgstr ""
34390
34391 #. type: textblock
34392 #: ../src/guestfs.pod:224
34393 msgid ""
34394 "Libguestfs will reject attempts to use relative paths and there is no "
34395 "concept of a current working directory."
34396 msgstr ""
34397
34398 #. type: textblock
34399 #: ../src/guestfs.pod:227
34400 msgid ""
34401 "Libguestfs can return errors in many situations: for example if the "
34402 "filesystem isn't writable, or if a file or directory that you requested "
34403 "doesn't exist.  If you are using the C API (documented here)  you have to "
34404 "check for those error conditions after each call.  (Other language bindings "
34405 "turn these errors into exceptions)."
34406 msgstr ""
34407
34408 #. type: textblock
34409 #: ../src/guestfs.pod:233
34410 msgid ""
34411 "File writes are affected by the per-handle umask, set by calling "
34412 "L</guestfs_umask> and defaulting to 022.  See L</UMASK>."
34413 msgstr ""
34414
34415 #. type: =head2
34416 #: ../src/guestfs.pod:236
34417 msgid "PARTITIONING"
34418 msgstr ""
34419
34420 #. type: textblock
34421 #: ../src/guestfs.pod:238
34422 msgid ""
34423 "Libguestfs contains API calls to read, create and modify partition tables on "
34424 "disk images."
34425 msgstr ""
34426
34427 #. type: textblock
34428 #: ../src/guestfs.pod:241
34429 msgid ""
34430 "In the common case where you want to create a single partition covering the "
34431 "whole disk, you should use the L</guestfs_part_disk> call:"
34432 msgstr ""
34433
34434 #. type: verbatim
34435 #: ../src/guestfs.pod:245
34436 #, no-wrap
34437 msgid ""
34438 " const char *parttype = \"mbr\";\n"
34439 " if (disk_is_larger_than_2TB)\n"
34440 "   parttype = \"gpt\";\n"
34441 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
34442 "\n"
34443 msgstr ""
34444
34445 #. type: textblock
34446 #: ../src/guestfs.pod:250
34447 msgid ""
34448 "Obviously this effectively wipes anything that was on that disk image "
34449 "before."
34450 msgstr ""
34451
34452 #. type: =head2
34453 #: ../src/guestfs.pod:253
34454 msgid "LVM2"
34455 msgstr ""
34456
34457 #. type: textblock
34458 #: ../src/guestfs.pod:255
34459 msgid ""
34460 "Libguestfs provides access to a large part of the LVM2 API, such as "
34461 "L</guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense "
34462 "unless you familiarize yourself with the concepts of physical volumes, "
34463 "volume groups and logical volumes."
34464 msgstr ""
34465
34466 #. type: textblock
34467 #: ../src/guestfs.pod:260
34468 msgid ""
34469 "This author strongly recommends reading the LVM HOWTO, online at "
34470 "L<http://tldp.org/HOWTO/LVM-HOWTO/>."
34471 msgstr ""
34472
34473 #. type: =head2
34474 #: ../src/guestfs.pod:263
34475 msgid "DOWNLOADING"
34476 msgstr ""
34477
34478 #. type: textblock
34479 #: ../src/guestfs.pod:265
34480 msgid ""
34481 "Use L</guestfs_cat> to download small, text only files.  This call is "
34482 "limited to files which are less than 2 MB and which cannot contain any ASCII "
34483 "NUL (C<\\0>) characters.  However the API is very simple to use."
34484 msgstr ""
34485
34486 #. type: textblock
34487 #: ../src/guestfs.pod:269
34488 msgid ""
34489 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
34490 "bit data, since it returns a (pointer, size) pair.  However it is still "
34491 "limited to \"small\" files, less than 2 MB."
34492 msgstr ""
34493
34494 #. type: textblock
34495 #: ../src/guestfs.pod:273
34496 msgid ""
34497 "L</guestfs_download> can be used to download any file, with no limits on "
34498 "content or size (even files larger than 4 GB)."
34499 msgstr ""
34500
34501 #. type: textblock
34502 #: ../src/guestfs.pod:276
34503 msgid "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
34504 msgstr ""
34505
34506 #. type: =head2
34507 #: ../src/guestfs.pod:279
34508 msgid "UPLOADING"
34509 msgstr ""
34510
34511 #. type: textblock
34512 #: ../src/guestfs.pod:281
34513 msgid ""
34514 "It's often the case that you want to write a file or files to the disk "
34515 "image."
34516 msgstr ""
34517
34518 #. type: textblock
34519 #: ../src/guestfs.pod:284
34520 msgid ""
34521 "To write a small file with fixed content, use L</guestfs_write>.  To create "
34522 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or "
34523 "L</guestfs_fallocate64> (with all disk blocks allocated).  There are a "
34524 "variety of other functions for creating test files, for example "
34525 "L</guestfs_fill> and L</guestfs_fill_pattern>."
34526 msgstr ""
34527
34528 #. type: textblock
34529 #: ../src/guestfs.pod:290
34530 msgid ""
34531 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
34532 "file content or size (even files larger than 4 GB)."
34533 msgstr ""
34534
34535 #. type: textblock
34536 #: ../src/guestfs.pod:293
34537 msgid "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
34538 msgstr ""
34539
34540 #. type: textblock
34541 #: ../src/guestfs.pod:295
34542 msgid ""
34543 "However the fastest way to upload I<large numbers of arbitrary files> is to "
34544 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and "
34545 "L<mkisofs(8)>), then attach this using L</guestfs_add_drive_ro>.  If you add "
34546 "the drive in a predictable way (eg. adding it last after all other drives) "
34547 "then you can get the device name from L</guestfs_list_devices> and mount it "
34548 "directly using L</guestfs_mount_ro>.  Note that squashfs images are "
34549 "sometimes non-portable between kernel versions, and they don't support "
34550 "labels or UUIDs.  If you want to pre-build an image or you need to mount it "
34551 "using a label or UUID, use an ISO image instead."
34552 msgstr ""
34553
34554 #. type: =head2
34555 #: ../src/guestfs.pod:306
34556 msgid "COPYING"
34557 msgstr ""
34558
34559 #. type: textblock
34560 #: ../src/guestfs.pod:308
34561 msgid ""
34562 "There are various different commands for copying between files and devices "
34563 "and in and out of the guest filesystem.  These are summarised in the table "
34564 "below."
34565 msgstr ""
34566
34567 #. type: =item
34568 #: ../src/guestfs.pod:314
34569 msgid "B<file> to B<file>"
34570 msgstr ""
34571
34572 #. type: textblock
34573 #: ../src/guestfs.pod:316
34574 msgid ""
34575 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
34576 "directories recursively."
34577 msgstr ""
34578
34579 #. type: textblock
34580 #: ../src/guestfs.pod:319
34581 msgid "To copy part of a file (offset and size) use L</guestfs_copy_file_to_file>."
34582 msgstr ""
34583
34584 #. type: =item
34585 #: ../src/guestfs.pod:322
34586 msgid "B<file> to B<device>"
34587 msgstr ""
34588
34589 #. type: =item
34590 #: ../src/guestfs.pod:324
34591 msgid "B<device> to B<file>"
34592 msgstr ""
34593
34594 #. type: =item
34595 #: ../src/guestfs.pod:326
34596 msgid "B<device> to B<device>"
34597 msgstr ""
34598
34599 #. type: textblock
34600 #: ../src/guestfs.pod:328
34601 msgid ""
34602 "Use L</guestfs_copy_file_to_device>, L</guestfs_copy_device_to_file>, or "
34603 "L</guestfs_copy_device_to_device>."
34604 msgstr ""
34605
34606 #. type: textblock
34607 #: ../src/guestfs.pod:331
34608 msgid "Example: duplicate the contents of an LV:"
34609 msgstr ""
34610
34611 #. type: verbatim
34612 #: ../src/guestfs.pod:333
34613 #, no-wrap
34614 msgid ""
34615 " guestfs_copy_device_to_device (g,\n"
34616 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
34617 "         /* -1 marks the end of the list of optional parameters */\n"
34618 "         -1);\n"
34619 "\n"
34620 msgstr ""
34621
34622 #. type: textblock
34623 #: ../src/guestfs.pod:338
34624 msgid ""
34625 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
34626 "(C</dev/VG/Original>).  To copy less than the whole source device, use the "
34627 "optional C<size> parameter:"
34628 msgstr ""
34629
34630 #. type: verbatim
34631 #: ../src/guestfs.pod:342
34632 #, no-wrap
34633 msgid ""
34634 " guestfs_copy_device_to_device (g,\n"
34635 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
34636 "         GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, 10000,\n"
34637 "         -1);\n"
34638 "\n"
34639 msgstr ""
34640
34641 #. type: =item
34642 #: ../src/guestfs.pod:347
34643 msgid "B<file on the host> to B<file or device>"
34644 msgstr ""
34645
34646 #. type: textblock
34647 #: ../src/guestfs.pod:349
34648 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
34649 msgstr ""
34650
34651 #. type: =item
34652 #: ../src/guestfs.pod:351
34653 msgid "B<file or device> to B<file on the host>"
34654 msgstr ""
34655
34656 #. type: textblock
34657 #: ../src/guestfs.pod:353
34658 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
34659 msgstr ""
34660
34661 #. type: =head2
34662 #: ../src/guestfs.pod:357
34663 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
34664 msgstr ""
34665
34666 #. type: textblock
34667 #: ../src/guestfs.pod:359
34668 msgid ""
34669 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, "
34670 "L</guestfs_tar_out> etc appear to only take filenames as arguments, so it "
34671 "appears you can only upload and download to files.  However many Un*x-like "
34672 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, "
34673 "C</dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, "
34674 "stderr, and arbitrary file descriptor N."
34675 msgstr ""
34676
34677 #. type: textblock
34678 #: ../src/guestfs.pod:367
34679 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
34680 msgstr ""
34681
34682 #. type: verbatim
34683 #: ../src/guestfs.pod:370
34684 #, no-wrap
34685 msgid ""
34686 " guestfs_download (g, filename, \"/dev/stdout\");\n"
34687 "\n"
34688 msgstr ""
34689
34690 #. type: textblock
34691 #: ../src/guestfs.pod:372
34692 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
34693 msgstr ""
34694
34695 #. type: verbatim
34696 #: ../src/guestfs.pod:374
34697 #, no-wrap
34698 msgid ""
34699 " char devfd[64];\n"
34700 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
34701 " guestfs_tar_out (g, \"/\", devfd);\n"
34702 "\n"
34703 msgstr ""
34704
34705 #. type: =head2
34706 #: ../src/guestfs.pod:378
34707 msgid "LISTING FILES"
34708 msgstr ""
34709
34710 #. type: textblock
34711 #: ../src/guestfs.pod:380
34712 msgid ""
34713 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
34714 "L<guestfish(1)>-equivalent command C<ll>)."
34715 msgstr ""
34716
34717 #. type: textblock
34718 #: ../src/guestfs.pod:383
34719 msgid ""
34720 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
34721 "programs, as a flat list of strings."
34722 msgstr ""
34723
34724 #. type: textblock
34725 #: ../src/guestfs.pod:386
34726 msgid ""
34727 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
34728 "directory, plus additional information about each one.  It is more "
34729 "equivalent to using the L<readdir(3)> call on a local filesystem."
34730 msgstr ""
34731
34732 #. type: textblock
34733 #: ../src/guestfs.pod:390
34734 msgid ""
34735 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list "
34736 "files."
34737 msgstr ""
34738
34739 #. type: =head2
34740 #: ../src/guestfs.pod:393
34741 msgid "RUNNING COMMANDS"
34742 msgstr ""
34743
34744 #. type: textblock
34745 #: ../src/guestfs.pod:395
34746 msgid ""
34747 "Although libguestfs is primarily an API for manipulating files inside guest "
34748 "images, we also provide some limited facilities for running commands inside "
34749 "guests."
34750 msgstr ""
34751
34752 #. type: textblock
34753 #: ../src/guestfs.pod:399
34754 msgid "There are many limitations to this:"
34755 msgstr ""
34756
34757 #. type: textblock
34758 #: ../src/guestfs.pod:405
34759 msgid ""
34760 "The kernel version that the command runs under will be different from what "
34761 "it expects."
34762 msgstr ""
34763
34764 #. type: textblock
34765 #: ../src/guestfs.pod:410
34766 msgid ""
34767 "If the command needs to communicate with daemons, then most likely they "
34768 "won't be running."
34769 msgstr ""
34770
34771 #. type: textblock
34772 #: ../src/guestfs.pod:415
34773 msgid "The command will be running in limited memory."
34774 msgstr ""
34775
34776 #. type: textblock
34777 #: ../src/guestfs.pod:419
34778 msgid ""
34779 "The network may not be available unless you enable it (see "
34780 "L</guestfs_set_network>)."
34781 msgstr ""
34782
34783 #. type: textblock
34784 #: ../src/guestfs.pod:424
34785 msgid "Only supports Linux guests (not Windows, BSD, etc)."
34786 msgstr ""
34787
34788 #. type: textblock
34789 #: ../src/guestfs.pod:428
34790 msgid "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
34791 msgstr ""
34792
34793 #. type: textblock
34794 #: ../src/guestfs.pod:433
34795 msgid ""
34796 "For SELinux guests, you may need to enable SELinux and load policy first.  "
34797 "See L</SELINUX> in this manpage."
34798 msgstr ""
34799
34800 #. type: textblock
34801 #: ../src/guestfs.pod:438
34802 msgid ""
34803 "I<Security:> It is not safe to run commands from untrusted, possibly "
34804 "malicious guests.  These commands may attempt to exploit your program by "
34805 "sending unexpected output.  They could also try to exploit the Linux kernel "
34806 "or qemu provided by the libguestfs appliance.  They could use the network "
34807 "provided by the libguestfs appliance to bypass ordinary network partitions "
34808 "and firewalls.  They could use the elevated privileges or different SELinux "
34809 "context of your program to their advantage."
34810 msgstr ""
34811
34812 #. type: textblock
34813 #: ../src/guestfs.pod:447
34814 msgid ""
34815 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
34816 "(a script which runs when the guest next boots normally), and to have this "
34817 "script run the commands you want in the normal context of the running guest, "
34818 "network security and so on.  For information about other security issues, "
34819 "see L</SECURITY>."
34820 msgstr ""
34821
34822 #. type: textblock
34823 #: ../src/guestfs.pod:455
34824 msgid ""
34825 "The two main API calls to run commands are L</guestfs_command> and "
34826 "L</guestfs_sh> (there are also variations)."
34827 msgstr ""
34828
34829 #. type: textblock
34830 #: ../src/guestfs.pod:458
34831 msgid ""
34832 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
34833 "shell globs, redirections, etc will work."
34834 msgstr ""
34835
34836 #. type: =head2
34837 #: ../src/guestfs.pod:461
34838 msgid "CONFIGURATION FILES"
34839 msgstr ""
34840
34841 #. type: textblock
34842 #: ../src/guestfs.pod:463
34843 msgid ""
34844 "To read and write configuration files in Linux guest filesystems, we "
34845 "strongly recommend using Augeas.  For example, Augeas understands how to "
34846 "read and write, say, a Linux shadow password file or X.org configuration "
34847 "file, and so avoids you having to write that code."
34848 msgstr ""
34849
34850 #. type: textblock
34851 #: ../src/guestfs.pod:468
34852 msgid ""
34853 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
34854 "document Augeas itself here because there is excellent documentation on the "
34855 "L<http://augeas.net/> website."
34856 msgstr ""
34857
34858 #. type: textblock
34859 #: ../src/guestfs.pod:472
34860 msgid ""
34861 "If you don't want to use Augeas (you fool!) then try calling "
34862 "L</guestfs_read_lines> to get the file as a list of lines which you can "
34863 "iterate over."
34864 msgstr ""
34865
34866 #. type: =head2
34867 #: ../src/guestfs.pod:476
34868 msgid "SELINUX"
34869 msgstr ""
34870
34871 #. type: textblock
34872 #: ../src/guestfs.pod:478
34873 msgid ""
34874 "We support SELinux guests.  To ensure that labeling happens correctly in "
34875 "SELinux guests, you need to enable SELinux and load the guest's policy:"
34876 msgstr ""
34877
34878 #. type: textblock
34879 #: ../src/guestfs.pod:486
34880 msgid "Before launching, do:"
34881 msgstr ""
34882
34883 #. type: verbatim
34884 #: ../src/guestfs.pod:488
34885 #, no-wrap
34886 msgid ""
34887 " guestfs_set_selinux (g, 1);\n"
34888 "\n"
34889 msgstr ""
34890
34891 #. type: textblock
34892 #: ../src/guestfs.pod:492
34893 msgid ""
34894 "After mounting the guest's filesystem(s), load the policy.  This is best "
34895 "done by running the L<load_policy(8)> command in the guest itself:"
34896 msgstr ""
34897
34898 #. type: verbatim
34899 #: ../src/guestfs.pod:496
34900 #, no-wrap
34901 msgid ""
34902 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
34903 "\n"
34904 msgstr ""
34905
34906 #. type: textblock
34907 #: ../src/guestfs.pod:498
34908 msgid ""
34909 "(Older versions of C<load_policy> require you to specify the name of the "
34910 "policy file)."
34911 msgstr ""
34912
34913 #. type: textblock
34914 #: ../src/guestfs.pod:503
34915 msgid ""
34916 "Optionally, set the security context for the API.  The correct security "
34917 "context to use can only be known by inspecting the guest.  As an example:"
34918 msgstr ""
34919
34920 #. type: verbatim
34921 #: ../src/guestfs.pod:507
34922 #, no-wrap
34923 msgid ""
34924 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
34925 "\n"
34926 msgstr ""
34927
34928 #. type: textblock
34929 #: ../src/guestfs.pod:511
34930 msgid "This will work for running commands and editing existing files."
34931 msgstr ""
34932
34933 #. type: textblock
34934 #: ../src/guestfs.pod:513
34935 msgid ""
34936 "When new files are created, you may need to label them explicitly, for "
34937 "example by running the external command C<restorecon pathname>."
34938 msgstr ""
34939
34940 #. type: =head2
34941 #: ../src/guestfs.pod:517
34942 msgid "UMASK"
34943 msgstr ""
34944
34945 #. type: textblock
34946 #: ../src/guestfs.pod:519
34947 msgid ""
34948 "Certain calls are affected by the current file mode creation mask (the "
34949 "\"umask\").  In particular ones which create files or directories, such as "
34950 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
34951 "either the default mode that the file is created with or modifies the mode "
34952 "that you supply."
34953 msgstr ""
34954
34955 #. type: textblock
34956 #: ../src/guestfs.pod:525
34957 msgid ""
34958 "The default umask is C<022>, so files are created with modes such as C<0644> "
34959 "and directories with C<0755>."
34960 msgstr ""
34961
34962 #. type: textblock
34963 #: ../src/guestfs.pod:528
34964 msgid ""
34965 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
34966 "(call C<guestfs_umask (g, 0)> early after launching).  Or call "
34967 "L</guestfs_chmod> after creating each file or directory."
34968 msgstr ""
34969
34970 #. type: textblock
34971 #: ../src/guestfs.pod:532
34972 msgid "For more information about umask, see L<umask(2)>."
34973 msgstr ""
34974
34975 #. type: textblock
34976 #: ../src/guestfs.pod:536
34977 msgid ""
34978 "Libguestfs allows you to access Linux guests which have been encrypted using "
34979 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
34980 "standard.  This includes nearly all whole disk encryption systems used by "
34981 "modern Linux guests."
34982 msgstr ""
34983
34984 #. type: textblock
34985 #: ../src/guestfs.pod:542
34986 msgid ""
34987 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
34988 "returns the string C<crypto_LUKS>)."
34989 msgstr ""
34990
34991 #. type: textblock
34992 #: ../src/guestfs.pod:545
34993 msgid ""
34994 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
34995 "will require the passphrase!"
34996 msgstr ""
34997
34998 #. type: textblock
34999 #: ../src/guestfs.pod:548
35000 msgid ""
35001 "Opening a LUKS device creates a new device mapper device called "
35002 "C</dev/mapper/mapname> (where C<mapname> is the string you supply to "
35003 "L</guestfs_luks_open>).  Reads and writes to this mapper device are "
35004 "decrypted from and encrypted to the underlying block device respectively."
35005 msgstr ""
35006
35007 #. type: textblock
35008 #: ../src/guestfs.pod:554
35009 msgid ""
35010 "LVM volume groups on the device can be made visible by calling "
35011 "L</guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical "
35012 "volume(s) can now be mounted in the usual way."
35013 msgstr ""
35014
35015 #. type: textblock
35016 #: ../src/guestfs.pod:558
35017 msgid ""
35018 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
35019 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
35020 "[\"/dev/VG\"])>.  Then close the mapper device by calling "
35021 "L</guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
35022 "underlying encrypted block device)."
35023 msgstr ""
35024
35025 #. type: =head2
35026 #: ../src/guestfs.pod:565
35027 msgid "INSPECTION"
35028 msgstr ""
35029
35030 #. type: textblock
35031 #: ../src/guestfs.pod:567
35032 msgid ""
35033 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
35034 "contains operating systems, an install CD or a live CD.  (These APIs used to "
35035 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
35036 "version 1.5.3 the most frequently used part of this library has been "
35037 "rewritten in C and moved into the core code)."
35038 msgstr ""
35039
35040 #. type: textblock
35041 #: ../src/guestfs.pod:574
35042 msgid ""
35043 "Add all disks belonging to the unknown virtual machine and call "
35044 "L</guestfs_launch> in the usual way."
35045 msgstr ""
35046
35047 #. type: textblock
35048 #: ../src/guestfs.pod:577
35049 msgid ""
35050 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
35051 "and certain heuristics, and returns a list of operating systems that were "
35052 "found.  An empty list means none were found.  A single element is the root "
35053 "filesystem of the operating system.  For dual- or multi-boot guests, "
35054 "multiple roots can be returned, each one corresponding to a separate "
35055 "operating system.  (Multi-boot virtual machines are extremely rare in the "
35056 "world of virtualization, but since this scenario can happen, we have built "
35057 "libguestfs to deal with it.)"
35058 msgstr ""
35059
35060 #. type: textblock
35061 #: ../src/guestfs.pod:586
35062 msgid ""
35063 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
35064 "to get additional details about that operating system.  For example, call "
35065 "L</guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
35066 "Windows and Linux-based operating systems respectively."
35067 msgstr ""
35068
35069 #. type: textblock
35070 #: ../src/guestfs.pod:592
35071 msgid ""
35072 "Un*x-like and Linux-based operating systems usually consist of several "
35073 "filesystems which are mounted at boot time (for example, a separate boot "
35074 "partition mounted on C</boot>).  The inspection rules are able to detect how "
35075 "filesystems correspond to mount points.  Call "
35076 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
35077 "hash table like this example:"
35078 msgstr ""
35079
35080 #. type: verbatim
35081 #: ../src/guestfs.pod:599
35082 #, no-wrap
35083 msgid ""
35084 " /boot => /dev/sda1\n"
35085 " /     => /dev/vg_guest/lv_root\n"
35086 " /usr  => /dev/vg_guest/lv_usr\n"
35087 "\n"
35088 msgstr ""
35089
35090 #. type: textblock
35091 #: ../src/guestfs.pod:603
35092 msgid ""
35093 "The caller can then make calls to L</guestfs_mount_options> to mount the "
35094 "filesystems as suggested."
35095 msgstr ""
35096
35097 #. type: textblock
35098 #: ../src/guestfs.pod:606
35099 msgid ""
35100 "Be careful to mount filesystems in the right order (eg. C</> before "
35101 "C</usr>).  Sorting the keys of the hash by length, shortest first, should "
35102 "work."
35103 msgstr ""
35104
35105 #. type: textblock
35106 #: ../src/guestfs.pod:610
35107 msgid ""
35108 "Inspection currently only works for some common operating systems.  "
35109 "Contributors are welcome to send patches for other operating systems that we "
35110 "currently cannot detect."
35111 msgstr ""
35112
35113 #. type: textblock
35114 #: ../src/guestfs.pod:614
35115 msgid ""
35116 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
35117 "for more details.  The L</guestfs_inspect_os> function just ignores any "
35118 "encrypted devices."
35119 msgstr ""
35120
35121 #. type: textblock
35122 #: ../src/guestfs.pod:618
35123 msgid ""
35124 "A note on the implementation: The call L</guestfs_inspect_os> performs "
35125 "inspection and caches the results in the guest handle.  Subsequent calls to "
35126 "C<guestfs_inspect_get_*> return this cached information, but I<do not> "
35127 "re-read the disks.  If you change the content of the guest disks, you can "
35128 "redo inspection by calling L</guestfs_inspect_os> again.  "
35129 "(L</guestfs_inspect_list_applications> works a little differently from the "
35130 "other calls and does read the disks.  See documentation for that function "
35131 "for details)."
35132 msgstr ""
35133
35134 #. type: =head3
35135 #: ../src/guestfs.pod:627
35136 msgid "INSPECTING INSTALL DISKS"
35137 msgstr ""
35138
35139 #. type: textblock
35140 #: ../src/guestfs.pod:629
35141 msgid ""
35142 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
35143 "CDs and more."
35144 msgstr ""
35145
35146 #. type: textblock
35147 #: ../src/guestfs.pod:632
35148 msgid ""
35149 "Call L</guestfs_inspect_get_format> to return the format of the operating "
35150 "system, which currently can be C<installed> (a regular operating system) or "
35151 "C<installer> (some sort of install disk)."
35152 msgstr ""
35153
35154 #. type: textblock
35155 #: ../src/guestfs.pod:636
35156 msgid ""
35157 "Further information is available about the operating system that can be "
35158 "installed using the regular inspection APIs like "
35159 "L</guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> "
35160 "etc."
35161 msgstr ""
35162
35163 #. type: textblock
35164 #: ../src/guestfs.pod:641
35165 msgid ""
35166 "Some additional information specific to installer disks is also available "
35167 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and "
35168 "L</guestfs_inspect_is_multipart> calls."
35169 msgstr ""
35170
35171 #. type: =head2
35172 #: ../src/guestfs.pod:646
35173 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
35174 msgstr ""
35175
35176 #. type: textblock
35177 #: ../src/guestfs.pod:648
35178 msgid ""
35179 "Libguestfs can mount NTFS partitions.  It does this using the "
35180 "L<http://www.ntfs-3g.org/> driver."
35181 msgstr ""
35182
35183 #. type: =head3
35184 #: ../src/guestfs.pod:651
35185 msgid "DRIVE LETTERS AND PATHS"
35186 msgstr ""
35187
35188 #. type: textblock
35189 #: ../src/guestfs.pod:653
35190 msgid ""
35191 "DOS and Windows still use drive letters, and the filesystems are always "
35192 "treated as case insensitive by Windows itself, and therefore you might find "
35193 "a Windows configuration file referring to a path like "
35194 "C<c:\\windows\\system32>.  When the filesystem is mounted in libguestfs, "
35195 "that directory might be referred to as C</WINDOWS/System32>."
35196 msgstr ""
35197
35198 #. type: textblock
35199 #: ../src/guestfs.pod:659
35200 msgid ""
35201 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
35202 "L</guestfs_inspect_get_drive_mappings>)"
35203 msgstr ""
35204
35205 #. type: textblock
35206 #: ../src/guestfs.pod:662
35207 msgid ""
35208 "Dealing with separator characters (backslash vs forward slash) is outside "
35209 "the scope of libguestfs, but usually a simple character replacement will "
35210 "work."
35211 msgstr ""
35212
35213 #. type: textblock
35214 #: ../src/guestfs.pod:666
35215 msgid ""
35216 "To resolve the case insensitivity of paths, call "
35217 "L</guestfs_case_sensitive_path>."
35218 msgstr ""
35219
35220 #. type: =head3
35221 #: ../src/guestfs.pod:669
35222 msgid "ACCESSING THE WINDOWS REGISTRY"
35223 msgstr ""
35224
35225 #. type: textblock
35226 #: ../src/guestfs.pod:671
35227 msgid ""
35228 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
35229 "files, through the library C<hivex> which is part of the libguestfs project "
35230 "although ships as a separate tarball.  You have to locate and download the "
35231 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
35232 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and "
35233 "L<virt-win-reg(1)> for more help on this issue."
35234 msgstr ""
35235
35236 #. type: =head3
35237 #: ../src/guestfs.pod:679
35238 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
35239 msgstr ""
35240
35241 #. type: textblock
35242 #: ../src/guestfs.pod:681
35243 msgid ""
35244 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
35245 "provide something which looks like a Linux symlink.  The way it tries to do "
35246 "the rewriting is described here:"
35247 msgstr ""
35248
35249 #. type: textblock
35250 #: ../src/guestfs.pod:685
35251 msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-symbolic-links/>"
35252 msgstr ""
35253
35254 #. type: textblock
35255 #: ../src/guestfs.pod:687
35256 msgid ""
35257 "The essential problem is that ntfs-3g simply does not have enough "
35258 "information to do a correct job.  NTFS links can contain drive letters and "
35259 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
35260 "It is almost certainly the case that libguestfs callers should ignore what "
35261 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
35262 msgstr ""
35263
35264 #. type: textblock
35265 #: ../src/guestfs.pod:694
35266 msgid ""
35267 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use "
35268 "L</guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
35269 "attribute, and read the raw reparse data from that (you can find the format "
35270 "documented in various places around the web)."
35271 msgstr ""
35272
35273 #. type: =head3
35274 #: ../src/guestfs.pod:699
35275 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
35276 msgstr ""
35277
35278 #. type: textblock
35279 #: ../src/guestfs.pod:701
35280 msgid ""
35281 "There are other useful extended attributes that can be read from ntfs-3g "
35282 "filesystems (using L</guestfs_getxattr>).  See:"
35283 msgstr ""
35284
35285 #. type: textblock
35286 #: ../src/guestfs.pod:704
35287 msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
35288 msgstr ""
35289
35290 #. type: =head2
35291 #: ../src/guestfs.pod:706
35292 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
35293 msgstr ""
35294
35295 #. type: textblock
35296 #: ../src/guestfs.pod:708
35297 msgid ""
35298 "Although we don't want to discourage you from using the C API, we will "
35299 "mention here that the same API is also available in other languages."
35300 msgstr ""
35301
35302 #. type: textblock
35303 #: ../src/guestfs.pod:711
35304 msgid ""
35305 "The API is broadly identical in all supported languages.  This means that "
35306 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
35307 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
35308 "OCaml.  In other words, a straightforward, predictable isomorphism between "
35309 "each language."
35310 msgstr ""
35311
35312 #. type: textblock
35313 #: ../src/guestfs.pod:717
35314 msgid ""
35315 "Error messages are automatically transformed into exceptions if the language "
35316 "supports it."
35317 msgstr ""
35318
35319 #. type: textblock
35320 #: ../src/guestfs.pod:720
35321 msgid ""
35322 "We don't try to \"object orientify\" parts of the API in OO languages, "
35323 "although contributors are welcome to write higher level APIs above what we "
35324 "provide in their favourite languages if they wish."
35325 msgstr ""
35326
35327 #. type: =item
35328 #: ../src/guestfs.pod:726
35329 msgid "B<C++>"
35330 msgstr ""
35331
35332 #. type: textblock
35333 #: ../src/guestfs.pod:728
35334 msgid ""
35335 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
35336 "identical to the C API.  C++ classes and exceptions are not used."
35337 msgstr ""
35338
35339 #. type: =item
35340 #: ../src/guestfs.pod:732
35341 msgid "B<C#>"
35342 msgstr ""
35343
35344 #. type: textblock
35345 #: ../src/guestfs.pod:734
35346 msgid ""
35347 "The C# bindings are highly experimental.  Please read the warnings at the "
35348 "top of C<csharp/Libguestfs.cs>."
35349 msgstr ""
35350
35351 #. type: =item
35352 #: ../src/guestfs.pod:737
35353 msgid "B<Erlang>"
35354 msgstr ""
35355
35356 #. type: textblock
35357 #: ../src/guestfs.pod:739
35358 msgid "See L<guestfs-erlang(3)>."
35359 msgstr ""
35360
35361 #. type: =item
35362 #: ../src/guestfs.pod:741
35363 msgid "B<Haskell>"
35364 msgstr ""
35365
35366 #. type: textblock
35367 #: ../src/guestfs.pod:743
35368 msgid ""
35369 "This is the only language binding that is working but incomplete.  Only "
35370 "calls which return simple integers have been bound in Haskell, and we are "
35371 "looking for help to complete this binding."
35372 msgstr ""
35373
35374 #. type: =item
35375 #: ../src/guestfs.pod:747
35376 msgid "B<Java>"
35377 msgstr ""
35378
35379 #. type: textblock
35380 #: ../src/guestfs.pod:749
35381 msgid ""
35382 "Full documentation is contained in the Javadoc which is distributed with "
35383 "libguestfs.  For examples, see L<guestfs-java(3)>."
35384 msgstr ""
35385
35386 #. type: =item
35387 #: ../src/guestfs.pod:752
35388 msgid "B<OCaml>"
35389 msgstr ""
35390
35391 #. type: textblock
35392 #: ../src/guestfs.pod:754
35393 msgid "See L<guestfs-ocaml(3)>."
35394 msgstr ""
35395
35396 #. type: =item
35397 #: ../src/guestfs.pod:756
35398 msgid "B<Perl>"
35399 msgstr ""
35400
35401 #. type: textblock
35402 #: ../src/guestfs.pod:758
35403 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
35404 msgstr ""
35405
35406 #. type: =item
35407 #: ../src/guestfs.pod:760
35408 msgid "B<PHP>"
35409 msgstr ""
35410
35411 #. type: textblock
35412 #: ../src/guestfs.pod:762
35413 msgid ""
35414 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
35415 "the php-libguestfs package for your distribution."
35416 msgstr ""
35417
35418 #. type: textblock
35419 #: ../src/guestfs.pod:765
35420 msgid "The PHP binding only works correctly on 64 bit machines."
35421 msgstr ""
35422
35423 #. type: =item
35424 #: ../src/guestfs.pod:767
35425 msgid "B<Python>"
35426 msgstr ""
35427
35428 #. type: textblock
35429 #: ../src/guestfs.pod:769
35430 msgid "See L<guestfs-python(3)>."
35431 msgstr ""
35432
35433 #. type: =item
35434 #: ../src/guestfs.pod:771
35435 msgid "B<Ruby>"
35436 msgstr ""
35437
35438 #. type: textblock
35439 #: ../src/guestfs.pod:773
35440 msgid "See L<guestfs-ruby(3)>."
35441 msgstr ""
35442
35443 #. type: =item
35444 #: ../src/guestfs.pod:775
35445 msgid "B<shell scripts>"
35446 msgstr ""
35447
35448 #. type: textblock
35449 #: ../src/guestfs.pod:777
35450 msgid "See L<guestfish(1)>."
35451 msgstr ""
35452
35453 #. type: =head2
35454 #: ../src/guestfs.pod:781
35455 msgid "LIBGUESTFS GOTCHAS"
35456 msgstr ""
35457
35458 #. type: textblock
35459 #: ../src/guestfs.pod:783
35460 msgid ""
35461 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
35462 "system [...] that works in the way it is documented but is counterintuitive "
35463 "and almost invites mistakes.\""
35464 msgstr ""
35465
35466 #. type: textblock
35467 #: ../src/guestfs.pod:787
35468 msgid ""
35469 "Since we developed libguestfs and the associated tools, there are several "
35470 "things we would have designed differently, but are now stuck with for "
35471 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
35472 "release, you can expect these to change.  Beware of them."
35473 msgstr ""
35474
35475 #. type: =item
35476 #: ../src/guestfs.pod:795
35477 msgid "Autosync / forgetting to sync."
35478 msgstr ""
35479
35480 #. type: textblock
35481 #: ../src/guestfs.pod:797
35482 msgid ""
35483 "I<Update:> Autosync is enabled by default for all API users starting from "
35484 "libguestfs 1.5.24.  This section only applies to older versions."
35485 msgstr ""
35486
35487 #. type: textblock
35488 #: ../src/guestfs.pod:800
35489 msgid ""
35490 "When modifying a filesystem from C or another language, you B<must> unmount "
35491 "all filesystems and call L</guestfs_sync> explicitly before you close the "
35492 "libguestfs handle.  You can also call:"
35493 msgstr ""
35494
35495 #. type: verbatim
35496 #: ../src/guestfs.pod:804
35497 #, no-wrap
35498 msgid ""
35499 " guestfs_set_autosync (g, 1);\n"
35500 "\n"
35501 msgstr ""
35502
35503 #. type: textblock
35504 #: ../src/guestfs.pod:806
35505 msgid ""
35506 "to have the unmount/sync done automatically for you when the handle 'g' is "
35507 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> "
35508 "q.v.)"
35509 msgstr ""
35510
35511 #. type: textblock
35512 #: ../src/guestfs.pod:810
35513 msgid ""
35514 "If you forget to do this, then it is entirely possible that your changes "
35515 "won't be written out, or will be partially written, or (very rarely) that "
35516 "you'll get disk corruption."
35517 msgstr ""
35518
35519 #. type: textblock
35520 #: ../src/guestfs.pod:814
35521 msgid ""
35522 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
35523 "guestfish scripts that forget to sync will work just fine, which can make "
35524 "this very puzzling if you are trying to debug a problem."
35525 msgstr ""
35526
35527 #. type: =item
35528 #: ../src/guestfs.pod:818
35529 msgid "Mount option C<-o sync> should not be the default."
35530 msgstr ""
35531
35532 #. type: textblock
35533 #: ../src/guestfs.pod:820
35534 msgid ""
35535 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
35536 "libguestfs 1.13.16.  This section only applies to older versions."
35537 msgstr ""
35538
35539 #. type: textblock
35540 #: ../src/guestfs.pod:823
35541 msgid ""
35542 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
35543 "However C<-o sync> does not add any reliability benefit, but does have a "
35544 "very large performance impact."
35545 msgstr ""
35546
35547 #. type: textblock
35548 #: ../src/guestfs.pod:827
35549 msgid ""
35550 "The work around is to use L</guestfs_mount_options> and set the mount "
35551 "options that you actually want to use."
35552 msgstr ""
35553
35554 #. type: =item
35555 #: ../src/guestfs.pod:830
35556 msgid "Read-only should be the default."
35557 msgstr ""
35558
35559 #. type: textblock
35560 #: ../src/guestfs.pod:832
35561 msgid ""
35562 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
35563 "specify I<--rw> if you want to make changes to the image."
35564 msgstr ""
35565
35566 #. type: textblock
35567 #: ../src/guestfs.pod:835
35568 msgid "This would reduce the potential to corrupt live VM images."
35569 msgstr ""
35570
35571 #. type: textblock
35572 #: ../src/guestfs.pod:837
35573 msgid ""
35574 "Note that many filesystems change the disk when you just mount and unmount, "
35575 "even if you didn't perform any writes.  You need to use "
35576 "L</guestfs_add_drive_ro> to guarantee that the disk is not changed."
35577 msgstr ""
35578
35579 #. type: =item
35580 #: ../src/guestfs.pod:841
35581 msgid "guestfish command line is hard to use."
35582 msgstr ""
35583
35584 #. type: textblock
35585 #: ../src/guestfs.pod:843
35586 msgid ""
35587 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
35588 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
35589 "exist, so it fails.  In earlier versions of guestfish the error message was "
35590 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
35591 "we should have used C<guestfish -c command> to run commands."
35592 msgstr ""
35593
35594 #. type: =item
35595 #: ../src/guestfs.pod:850
35596 msgid "guestfish megabyte modifiers don't work right on all commands"
35597 msgstr ""
35598
35599 #. type: textblock
35600 #: ../src/guestfs.pod:852
35601 msgid ""
35602 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
35603 "other modifiers).  What guestfish actually does is to multiply the number "
35604 "part by the modifier part and pass the result to the C API.  However this "
35605 "doesn't work for a few APIs which aren't expecting bytes, but are already "
35606 "expecting some other unit (eg. megabytes)."
35607 msgstr ""
35608
35609 #. type: textblock
35610 #: ../src/guestfs.pod:859
35611 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
35612 msgstr ""
35613
35614 #. type: verbatim
35615 #: ../src/guestfs.pod:861
35616 #, no-wrap
35617 msgid ""
35618 " lvcreate LV VG 100M\n"
35619 "\n"
35620 msgstr ""
35621
35622 #. type: textblock
35623 #: ../src/guestfs.pod:863
35624 msgid ""
35625 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
35626 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
35627 "megabytes * megabytes) logical volume.  The error message you get from this "
35628 "is also a little obscure."
35629 msgstr ""
35630
35631 #. type: textblock
35632 #: ../src/guestfs.pod:868
35633 msgid ""
35634 "This could be fixed in the generator by specially marking parameters and "
35635 "return values which take bytes or other units."
35636 msgstr ""
35637
35638 #. type: =item
35639 #: ../src/guestfs.pod:871
35640 msgid "Ambiguity between devices and paths"
35641 msgstr ""
35642
35643 #. type: textblock
35644 #: ../src/guestfs.pod:873
35645 msgid ""
35646 "There is a subtle ambiguity in the API between a device name "
35647 "(eg. C</dev/sdb2>) and a similar pathname.  A file might just happen to be "
35648 "called C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
35649 msgstr ""
35650
35651 #. type: textblock
35652 #: ../src/guestfs.pod:878
35653 msgid ""
35654 "In the current API we usually resolve this ambiguity by having two separate "
35655 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
35656 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
35657 "detecting if the path supplied begins with C</dev/>."
35658 msgstr ""
35659
35660 #. type: textblock
35661 #: ../src/guestfs.pod:884
35662 msgid ""
35663 "To avoid both the ambiguity and the need to duplicate some calls, we could "
35664 "make paths/devices into structured names.  One way to do this would be to "
35665 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
35666 "aspect of grub.  Another way would be to use a structured type, equivalent "
35667 "to this OCaml type:"
35668 msgstr ""
35669
35670 #. type: verbatim
35671 #: ../src/guestfs.pod:890
35672 #, no-wrap
35673 msgid ""
35674 " type path = Path of string | Device of int | Partition of int * int\n"
35675 "\n"
35676 msgstr ""
35677
35678 #. type: textblock
35679 #: ../src/guestfs.pod:892
35680 msgid "which would allow you to pass arguments like:"
35681 msgstr ""
35682
35683 #. type: verbatim
35684 #: ../src/guestfs.pod:894
35685 #, no-wrap
35686 msgid ""
35687 " Path \"/foo/bar\"\n"
35688 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
35689 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
35690 " Path \"/dev/sdb2\"    (* not a device *)\n"
35691 "\n"
35692 msgstr ""
35693
35694 #. type: textblock
35695 #: ../src/guestfs.pod:899
35696 msgid ""
35697 "As you can see there are still problems to resolve even with this "
35698 "representation.  Also consider how it might work in guestfish."
35699 msgstr ""
35700
35701 #. type: =head2
35702 #: ../src/guestfs.pod:904
35703 msgid "KEYS AND PASSPHRASES"
35704 msgstr ""
35705
35706 #. type: textblock
35707 #: ../src/guestfs.pod:906
35708 msgid ""
35709 "Certain libguestfs calls take a parameter that contains sensitive key "
35710 "material, passed in as a C string."
35711 msgstr ""
35712
35713 #. type: textblock
35714 #: ../src/guestfs.pod:909
35715 msgid ""
35716 "In the future we would hope to change the libguestfs implementation so that "
35717 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
35718 "swap.  However this is I<not> done at the moment, because of the complexity "
35719 "of such an implementation."
35720 msgstr ""
35721
35722 #. type: textblock
35723 #: ../src/guestfs.pod:914
35724 msgid ""
35725 "Therefore you should be aware that any key parameter you pass to libguestfs "
35726 "might end up being written out to the swap partition.  If this is a concern, "
35727 "scrub the swap partition or don't use libguestfs on encrypted devices."
35728 msgstr ""
35729
35730 #. type: =head2
35731 #: ../src/guestfs.pod:919
35732 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
35733 msgstr ""
35734
35735 #. type: textblock
35736 #: ../src/guestfs.pod:921
35737 msgid ""
35738 "All high-level libguestfs actions are synchronous.  If you want to use "
35739 "libguestfs asynchronously then you must create a thread."
35740 msgstr ""
35741
35742 #. type: textblock
35743 #: ../src/guestfs.pod:924
35744 msgid ""
35745 "Only use the handle from a single thread.  Either use the handle exclusively "
35746 "from one thread, or provide your own mutex so that two threads cannot issue "
35747 "calls on the same handle at the same time."
35748 msgstr ""
35749
35750 #. type: textblock
35751 #: ../src/guestfs.pod:928
35752 msgid ""
35753 "See the graphical program guestfs-browser for one possible architecture for "
35754 "multithreaded programs using libvirt and libguestfs."
35755 msgstr ""
35756
35757 #. type: =head2
35758 #: ../src/guestfs.pod:931
35759 msgid "PATH"
35760 msgstr ""
35761
35762 #. type: textblock
35763 #: ../src/guestfs.pod:933
35764 msgid ""
35765 "Libguestfs needs a supermin appliance, which it finds by looking along an "
35766 "internal path."
35767 msgstr ""
35768
35769 #. type: textblock
35770 #: ../src/guestfs.pod:936
35771 msgid ""
35772 "By default it looks for these in the directory C<$libdir/guestfs> "
35773 "(eg. C</usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
35774 msgstr ""
35775
35776 #. type: textblock
35777 #: ../src/guestfs.pod:939
35778 msgid ""
35779 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
35780 "to change the directories that libguestfs will search in.  The value is a "
35781 "colon-separated list of paths.  The current directory is I<not> searched "
35782 "unless the path contains an empty element or C<.>.  For example "
35783 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
35784 "then C</usr/lib/guestfs>."
35785 msgstr ""
35786
35787 #. type: =head2
35788 #: ../src/guestfs.pod:946
35789 msgid "QEMU WRAPPERS"
35790 msgstr ""
35791
35792 #. type: textblock
35793 #: ../src/guestfs.pod:948
35794 msgid ""
35795 "If you want to compile your own qemu, run qemu from a non-standard location, "
35796 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
35797 "around qemu."
35798 msgstr ""
35799
35800 #. type: textblock
35801 #: ../src/guestfs.pod:952
35802 msgid ""
35803 "There is one important rule to remember: you I<must C<exec qemu>> as the "
35804 "last command in the shell script (so that qemu replaces the shell and "
35805 "becomes the direct child of the libguestfs-using program).  If you don't do "
35806 "this, then the qemu process won't be cleaned up correctly."
35807 msgstr ""
35808
35809 #. type: textblock
35810 #: ../src/guestfs.pod:957
35811 msgid ""
35812 "Here is an example of a wrapper, where I have built my own copy of qemu from "
35813 "source:"
35814 msgstr ""
35815
35816 #. type: verbatim
35817 #: ../src/guestfs.pod:960
35818 #, no-wrap
35819 msgid ""
35820 " #!/bin/sh -\n"
35821 " qemudir=/home/rjones/d/qemu\n"
35822 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios "
35823 "\"$@\"\n"
35824 "\n"
35825 msgstr ""
35826
35827 #. type: textblock
35828 #: ../src/guestfs.pod:964
35829 msgid ""
35830 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
35831 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
35832 "example:"
35833 msgstr ""
35834
35835 #. type: verbatim
35836 #: ../src/guestfs.pod:968
35837 #, no-wrap
35838 msgid ""
35839 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
35840 "\n"
35841 msgstr ""
35842
35843 #. type: textblock
35844 #: ../src/guestfs.pod:970
35845 msgid ""
35846 "Note that libguestfs also calls qemu with the -help and -version options in "
35847 "order to determine features."
35848 msgstr ""
35849
35850 #. type: textblock
35851 #: ../src/guestfs.pod:973
35852 msgid ""
35853 "Wrappers can also be used to edit the options passed to qemu.  In the "
35854 "following example, the C<-machine ...> option (C<-machine> and the following "
35855 "argument) are removed from the command line and replaced with C<-machine "
35856 "pc,accel=tcg>.  The while loop iterates over the options until it finds the "
35857 "right one to remove, putting the remaining options into the C<args> array."
35858 msgstr ""
35859
35860 #. type: verbatim
35861 #: ../src/guestfs.pod:982
35862 #, no-wrap
35863 msgid ""
35864 " i=0\n"
35865 " while [ $# -gt 0 ]; do\n"
35866 "     case \"$1\" in\n"
35867 "     -machine)\n"
35868 "         shift 2;;\n"
35869 "     *)\n"
35870 "         args[i]=\"$1\"\n"
35871 "         (( i++ ))\n"
35872 "         shift ;;\n"
35873 "     esac\n"
35874 " done\n"
35875 " \n"
35876 msgstr ""
35877
35878 #. type: verbatim
35879 #: ../src/guestfs.pod:994
35880 #, no-wrap
35881 msgid ""
35882 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
35883 "\n"
35884 msgstr ""
35885
35886 #. type: =head2
35887 #: ../src/guestfs.pod:996
35888 msgid "ATTACHING TO RUNNING DAEMONS"
35889 msgstr ""
35890
35891 #. type: textblock
35892 #: ../src/guestfs.pod:998
35893 msgid ""
35894 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
35895 "babies.  Use with caution."
35896 msgstr ""
35897
35898 #. type: textblock
35899 #: ../src/guestfs.pod:1001
35900 msgid ""
35901 "I<Note (2):> This section explains how to attach to a running daemon from a "
35902 "low level perspective.  For most users, simply using virt tools such as "
35903 "L<guestfish(1)> with the I<--live> option will \"just work\"."
35904 msgstr ""
35905
35906 #. type: =head3
35907 #: ../src/guestfs.pod:1005
35908 msgid "Using guestfs_set_attach_method"
35909 msgstr ""
35910
35911 #. type: textblock
35912 #: ../src/guestfs.pod:1007
35913 msgid ""
35914 "By calling L</guestfs_set_attach_method> you can change how the library "
35915 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read "
35916 "L</ARCHITECTURE> for some background)."
35917 msgstr ""
35918
35919 #. type: textblock
35920 #: ../src/guestfs.pod:1011
35921 msgid ""
35922 "The normal attach method is C<appliance>, where a small appliance is created "
35923 "containing the daemon, and then the library connects to this."
35924 msgstr ""
35925
35926 #. type: textblock
35927 #: ../src/guestfs.pod:1014
35928 msgid ""
35929 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
35930 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
35931 "daemon over the Unix domain socket."
35932 msgstr ""
35933
35934 #. type: textblock
35935 #: ../src/guestfs.pod:1018
35936 msgid ""
35937 "The normal use for this is to connect to a running virtual machine that "
35938 "contains a C<guestfsd> daemon, and send commands so you can read and write "
35939 "files inside the live virtual machine."
35940 msgstr ""
35941
35942 #. type: =head3
35943 #: ../src/guestfs.pod:1022
35944 msgid "Using guestfs_add_domain with live flag"
35945 msgstr ""
35946
35947 #. type: textblock
35948 #: ../src/guestfs.pod:1024
35949 msgid ""
35950 "L</guestfs_add_domain> provides some help for getting the correct attach "
35951 "method.  If you pass the C<live> option to this function, then (if the "
35952 "virtual machine is running) it will examine the libvirt XML looking for a "
35953 "virtio-serial channel to connect to:"
35954 msgstr ""
35955
35956 #. type: verbatim
35957 #: ../src/guestfs.pod:1030
35958 #, no-wrap
35959 msgid ""
35960 " <domain>\n"
35961 "   ...\n"
35962 "   <devices>\n"
35963 "     ...\n"
35964 "     <channel type='unix'>\n"
35965 "       <source mode='bind' path='/path/to/socket'/>\n"
35966 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
35967 "     </channel>\n"
35968 "     ...\n"
35969 "   </devices>\n"
35970 " </domain>\n"
35971 "\n"
35972 msgstr ""
35973
35974 #. type: textblock
35975 #: ../src/guestfs.pod:1042
35976 msgid ""
35977 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
35978 "method to C<unix:/path/to/socket>."
35979 msgstr ""
35980
35981 #. type: textblock
35982 #: ../src/guestfs.pod:1045
35983 msgid ""
35984 "Some of the libguestfs tools (including guestfish) support a I<--live> "
35985 "option which is passed through to L</guestfs_add_domain> thus allowing you "
35986 "to attach to and modify live virtual machines."
35987 msgstr ""
35988
35989 #. type: textblock
35990 #: ../src/guestfs.pod:1049
35991 msgid ""
35992 "The virtual machine needs to have been set up beforehand so that it has the "
35993 "virtio-serial channel and so that guestfsd is running inside it."
35994 msgstr ""
35995
35996 #. type: =head2
35997 #: ../src/guestfs.pod:1053
35998 msgid "ABI GUARANTEE"
35999 msgstr ""
36000
36001 #. type: textblock
36002 #: ../src/guestfs.pod:1055
36003 msgid ""
36004 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
36005 "actions as outlined in this section.  Although we will deprecate some "
36006 "actions, for example if they get replaced by newer calls, we will keep the "
36007 "old actions forever.  This allows you the developer to program in confidence "
36008 "against the libguestfs API."
36009 msgstr ""
36010
36011 #. type: =head2
36012 #: ../src/guestfs.pod:1061
36013 msgid "BLOCK DEVICE NAMING"
36014 msgstr ""
36015
36016 #. type: textblock
36017 #: ../src/guestfs.pod:1063
36018 msgid ""
36019 "In the kernel there is now quite a profusion of schemata for naming block "
36020 "devices (in this context, by I<block device> I mean a physical or virtual "
36021 "hard drive).  The original Linux IDE driver used names starting with "
36022 "C</dev/hd*>.  SCSI devices have historically used a different naming scheme, "
36023 "C</dev/sd*>.  When the Linux kernel I<libata> driver became a popular "
36024 "replacement for the old IDE driver (particularly for SATA devices) those "
36025 "devices also used the C</dev/sd*> scheme.  Additionally we now have virtual "
36026 "machines with paravirtualized drivers.  This has created several different "
36027 "naming systems, such as C</dev/vd*> for virtio disks and C</dev/xvd*> for "
36028 "Xen PV disks."
36029 msgstr ""
36030
36031 #. type: textblock
36032 #: ../src/guestfs.pod:1075
36033 msgid ""
36034 "As discussed above, libguestfs uses a qemu appliance running an embedded "
36035 "Linux kernel to access block devices.  We can run a variety of appliances "
36036 "based on a variety of Linux kernels."
36037 msgstr ""
36038
36039 #. type: textblock
36040 #: ../src/guestfs.pod:1079
36041 msgid ""
36042 "This causes a problem for libguestfs because many API calls use device or "
36043 "partition names.  Working scripts and the recipe (example) scripts that we "
36044 "make available over the internet could fail if the naming scheme changes."
36045 msgstr ""
36046
36047 #. type: textblock
36048 #: ../src/guestfs.pod:1084
36049 msgid ""
36050 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
36051 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
36052 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
36053 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
36054 msgstr ""
36055
36056 #. type: textblock
36057 #: ../src/guestfs.pod:1090
36058 msgid ""
36059 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
36060 "L</guestfs_list_partitions> and similar calls return the true names of the "
36061 "devices and partitions as known to the appliance."
36062 msgstr ""
36063
36064 #. type: =head3
36065 #: ../src/guestfs.pod:1095
36066 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
36067 msgstr ""
36068
36069 #. type: textblock
36070 #: ../src/guestfs.pod:1097
36071 msgid ""
36072 "Usually this translation is transparent.  However in some (very rare)  cases "
36073 "you may need to know the exact algorithm.  Such cases include where you use "
36074 "L</guestfs_config> to add a mixture of virtio and IDE devices to the "
36075 "qemu-based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> "
36076 "devices."
36077 msgstr ""
36078
36079 #. type: textblock
36080 #: ../src/guestfs.pod:1103
36081 msgid ""
36082 "The algorithm is applied only to I<parameters> which are known to be either "
36083 "device or partition names.  Return values from functions such as "
36084 "L</guestfs_list_devices> are never changed."
36085 msgstr ""
36086
36087 #. type: textblock
36088 #: ../src/guestfs.pod:1111
36089 msgid "Is the string a parameter which is a device or partition name?"
36090 msgstr ""
36091
36092 #. type: textblock
36093 #: ../src/guestfs.pod:1115
36094 msgid "Does the string begin with C</dev/sd>?"
36095 msgstr ""
36096
36097 #. type: textblock
36098 #: ../src/guestfs.pod:1119
36099 msgid ""
36100 "Does the named device exist? If so, we use that device.  However if I<not> "
36101 "then we continue with this algorithm."
36102 msgstr ""
36103
36104 #. type: textblock
36105 #: ../src/guestfs.pod:1124
36106 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
36107 msgstr ""
36108
36109 #. type: textblock
36110 #: ../src/guestfs.pod:1126
36111 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
36112 msgstr ""
36113
36114 #. type: textblock
36115 #: ../src/guestfs.pod:1128
36116 msgid "If that named device exists, use it.  If not, continue."
36117 msgstr ""
36118
36119 #. type: textblock
36120 #: ../src/guestfs.pod:1132
36121 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
36122 msgstr ""
36123
36124 #. type: textblock
36125 #: ../src/guestfs.pod:1134
36126 msgid "If that named device exists, use it.  If not, return an error."
36127 msgstr ""
36128
36129 #. type: =head3
36130 #: ../src/guestfs.pod:1138
36131 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
36132 msgstr ""
36133
36134 #. type: textblock
36135 #: ../src/guestfs.pod:1140
36136 msgid ""
36137 "Although the standard naming scheme and automatic translation is useful for "
36138 "simple programs and guestfish scripts, for larger programs it is best not to "
36139 "rely on this mechanism."
36140 msgstr ""
36141
36142 #. type: textblock
36143 #: ../src/guestfs.pod:1144
36144 msgid ""
36145 "Where possible for maximum future portability programs using libguestfs "
36146 "should use these future-proof techniques:"
36147 msgstr ""
36148
36149 #. type: textblock
36150 #: ../src/guestfs.pod:1151
36151 msgid ""
36152 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
36153 "device names, and then use those names directly."
36154 msgstr ""
36155
36156 #. type: textblock
36157 #: ../src/guestfs.pod:1154
36158 msgid "Since those device names exist by definition, they will never be translated."
36159 msgstr ""
36160
36161 #. type: textblock
36162 #: ../src/guestfs.pod:1159
36163 msgid ""
36164 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
36165 "filesystem labels."
36166 msgstr ""
36167
36168 #. type: textblock
36169 #: ../src/guestfs.pod:1166
36170 msgid ""
36171 "This section discusses security implications of using libguestfs, "
36172 "particularly with untrusted or malicious guests or disk images."
36173 msgstr ""
36174
36175 #. type: =head2
36176 #: ../src/guestfs.pod:1169
36177 msgid "GENERAL SECURITY CONSIDERATIONS"
36178 msgstr ""
36179
36180 #. type: textblock
36181 #: ../src/guestfs.pod:1171
36182 msgid ""
36183 "Be careful with any files or data that you download from a guest (by "
36184 "\"download\" we mean not just the L</guestfs_download> command but any "
36185 "command that reads files, filenames, directories or anything else from a "
36186 "disk image).  An attacker could manipulate the data to fool your program "
36187 "into doing the wrong thing.  Consider cases such as:"
36188 msgstr ""
36189
36190 #. type: textblock
36191 #: ../src/guestfs.pod:1181
36192 msgid "the data (file etc) not being present"
36193 msgstr ""
36194
36195 #. type: textblock
36196 #: ../src/guestfs.pod:1185
36197 msgid "being present but empty"
36198 msgstr ""
36199
36200 #. type: textblock
36201 #: ../src/guestfs.pod:1189
36202 msgid "being much larger than normal"
36203 msgstr ""
36204
36205 #. type: textblock
36206 #: ../src/guestfs.pod:1193
36207 msgid "containing arbitrary 8 bit data"
36208 msgstr ""
36209
36210 #. type: textblock
36211 #: ../src/guestfs.pod:1197
36212 msgid "being in an unexpected character encoding"
36213 msgstr ""
36214
36215 #. type: textblock
36216 #: ../src/guestfs.pod:1201
36217 msgid "containing homoglyphs."
36218 msgstr ""
36219
36220 #. type: =head2
36221 #: ../src/guestfs.pod:1205
36222 msgid "SECURITY OF MOUNTING FILESYSTEMS"
36223 msgstr ""
36224
36225 #. type: textblock
36226 #: ../src/guestfs.pod:1207
36227 msgid ""
36228 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
36229 "(VFS) module can sometimes be escalated into exploits by deliberately "
36230 "creating a malicious, malformed filesystem.  These exploits are very severe "
36231 "for two reasons.  Firstly there are very many filesystem drivers in the "
36232 "kernel, and many of them are infrequently used and not much developer "
36233 "attention has been paid to the code.  Linux userspace helps potential "
36234 "crackers by detecting the filesystem type and automatically choosing the "
36235 "right VFS driver, even if that filesystem type is obscure or unexpected for "
36236 "the administrator.  Secondly, a kernel-level exploit is like a local root "
36237 "exploit (worse in some ways), giving immediate and total access to the "
36238 "system right down to the hardware level."
36239 msgstr ""
36240
36241 #. type: textblock
36242 #: ../src/guestfs.pod:1220
36243 msgid ""
36244 "That explains why you should never mount a filesystem from an untrusted "
36245 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
36246 "inside a qemu virtual machine, usually running as a non-root user.  The "
36247 "attacker would need to write a filesystem which first exploited the kernel, "
36248 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
36249 "the libguestfs protocol, and finally to be as serious as the host kernel "
36250 "exploit it would need to escalate its privileges to root.  This multi-step "
36251 "escalation, performed by a static piece of data, is thought to be extremely "
36252 "hard to do, although we never say 'never' about security issues."
36253 msgstr ""
36254
36255 #. type: textblock
36256 #: ../src/guestfs.pod:1231
36257 msgid ""
36258 "In any case callers can reduce the attack surface by forcing the filesystem "
36259 "type when mounting (use L</guestfs_mount_vfs>)."
36260 msgstr ""
36261
36262 #. type: =head2
36263 #: ../src/guestfs.pod:1234
36264 msgid "PROTOCOL SECURITY"
36265 msgstr ""
36266
36267 #. type: textblock
36268 #: ../src/guestfs.pod:1236
36269 msgid ""
36270 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
36271 "defined upper message size.  However a program that uses libguestfs must "
36272 "also take care - for example you can write a program that downloads a binary "
36273 "from a disk image and executes it locally, and no amount of protocol "
36274 "security will save you from the consequences."
36275 msgstr ""
36276
36277 #. type: =head2
36278 #: ../src/guestfs.pod:1242
36279 msgid "INSPECTION SECURITY"
36280 msgstr ""
36281
36282 #. type: textblock
36283 #: ../src/guestfs.pod:1244
36284 msgid ""
36285 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
36286 "directly from the guest, and these could contain any 8 bit data.  Callers "
36287 "should be careful to escape these before printing them to a structured file "
36288 "(for example, use HTML escaping if creating a web page)."
36289 msgstr ""
36290
36291 #. type: textblock
36292 #: ../src/guestfs.pod:1250
36293 msgid ""
36294 "Guest configuration may be altered in unusual ways by the administrator of "
36295 "the virtual machine, and may not reflect reality (particularly for untrusted "
36296 "or actively malicious guests).  For example we parse the hostname from "
36297 "configuration files like C</etc/sysconfig/network> that we find in the "
36298 "guest, but the guest administrator can easily manipulate these files to "
36299 "provide the wrong hostname."
36300 msgstr ""
36301
36302 #. type: textblock
36303 #: ../src/guestfs.pod:1258
36304 msgid ""
36305 "The inspection API parses guest configuration using two external libraries: "
36306 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
36307 "designed to be robust in the face of malicious data, although denial of "
36308 "service attacks are still possible, for example with oversized configuration "
36309 "files."
36310 msgstr ""
36311
36312 #. type: =head2
36313 #: ../src/guestfs.pod:1264
36314 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
36315 msgstr ""
36316
36317 #. type: textblock
36318 #: ../src/guestfs.pod:1266
36319 msgid ""
36320 "Be very cautious about running commands from the guest.  By running a "
36321 "command in the guest, you are giving CPU time to a binary that you do not "
36322 "control, under the same user account as the library, albeit wrapped in qemu "
36323 "virtualization.  More information and alternatives can be found in the "
36324 "section L</RUNNING COMMANDS>."
36325 msgstr ""
36326
36327 #. type: =head2
36328 #: ../src/guestfs.pod:1272
36329 msgid "CVE-2010-3851"
36330 msgstr ""
36331
36332 #. type: textblock
36333 #: ../src/guestfs.pod:1274
36334 msgid "https://bugzilla.redhat.com/642934"
36335 msgstr ""
36336
36337 #. type: textblock
36338 #: ../src/guestfs.pod:1276
36339 msgid ""
36340 "This security bug concerns the automatic disk format detection that qemu "
36341 "does on disk images."
36342 msgstr ""
36343
36344 #. type: textblock
36345 #: ../src/guestfs.pod:1279
36346 msgid ""
36347 "A raw disk image is just the raw bytes, there is no header.  Other disk "
36348 "images like qcow2 contain a special header.  Qemu deals with this by looking "
36349 "for one of the known headers, and if none is found then assuming the disk "
36350 "image must be raw."
36351 msgstr ""
36352
36353 #. type: textblock
36354 #: ../src/guestfs.pod:1284
36355 msgid ""
36356 "This allows a guest which has been given a raw disk image to write some "
36357 "other header.  At next boot (or when the disk image is accessed by "
36358 "libguestfs) qemu would do autodetection and think the disk image format was, "
36359 "say, qcow2 based on the header written by the guest."
36360 msgstr ""
36361
36362 #. type: textblock
36363 #: ../src/guestfs.pod:1289
36364 msgid ""
36365 "This in itself would not be a problem, but qcow2 offers many features, one "
36366 "of which is to allow a disk image to refer to another image (called the "
36367 "\"backing disk\").  It does this by placing the path to the backing disk "
36368 "into the qcow2 header.  This path is not validated and could point to any "
36369 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
36370 "\"holes\" in the qcow2 disk image, which of course is completely under the "
36371 "control of the attacker."
36372 msgstr ""
36373
36374 #. type: textblock
36375 #: ../src/guestfs.pod:1297
36376 msgid "In libguestfs this is rather hard to exploit except under two circumstances:"
36377 msgstr ""
36378
36379 #. type: textblock
36380 #: ../src/guestfs.pod:1304
36381 msgid "You have enabled the network or have opened the disk in write mode."
36382 msgstr ""
36383
36384 #. type: textblock
36385 #: ../src/guestfs.pod:1308
36386 msgid ""
36387 "You are also running untrusted code from the guest (see L</RUNNING "
36388 "COMMANDS>)."
36389 msgstr ""
36390
36391 #. type: textblock
36392 #: ../src/guestfs.pod:1313
36393 msgid ""
36394 "The way to avoid this is to specify the expected disk format when adding "
36395 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
36396 "should always do this if the disk is raw format, and it's a good idea for "
36397 "other cases too."
36398 msgstr ""
36399
36400 #. type: textblock
36401 #: ../src/guestfs.pod:1318
36402 msgid ""
36403 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
36404 "format is fetched from libvirt and passed through."
36405 msgstr ""
36406
36407 #. type: textblock
36408 #: ../src/guestfs.pod:1321
36409 msgid ""
36410 "For libguestfs tools, use the I<--format> command line parameter as "
36411 "appropriate."
36412 msgstr ""
36413
36414 #. type: =head1
36415 #: ../src/guestfs.pod:1324
36416 msgid "CONNECTION MANAGEMENT"
36417 msgstr ""
36418
36419 #. type: =head2
36420 #: ../src/guestfs.pod:1326
36421 msgid "guestfs_h *"
36422 msgstr ""
36423
36424 #. type: textblock
36425 #: ../src/guestfs.pod:1328
36426 msgid ""
36427 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
36428 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
36429 "handle and release all resources used."
36430 msgstr ""
36431
36432 #. type: textblock
36433 #: ../src/guestfs.pod:1332
36434 msgid ""
36435 "For information on using multiple handles and threads, see the section "
36436 "L</MULTIPLE HANDLES AND MULTIPLE THREADS> above."
36437 msgstr ""
36438
36439 #. type: =head2
36440 #: ../src/guestfs.pod:1335
36441 msgid "guestfs_create"
36442 msgstr ""
36443
36444 #. type: verbatim
36445 #: ../src/guestfs.pod:1337
36446 #, no-wrap
36447 msgid ""
36448 " guestfs_h *guestfs_create (void);\n"
36449 "\n"
36450 msgstr ""
36451
36452 #. type: textblock
36453 #: ../src/guestfs.pod:1339
36454 msgid "Create a connection handle."
36455 msgstr ""
36456
36457 #. type: textblock
36458 #: ../src/guestfs.pod:1341
36459 msgid ""
36460 "On success this returns a non-NULL pointer to a handle.  On error it returns "
36461 "NULL."
36462 msgstr ""
36463
36464 #. type: textblock
36465 #: ../src/guestfs.pod:1344
36466 msgid ""
36467 "You have to \"configure\" the handle after creating it.  This includes "
36468 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
36469 "handle at least once."
36470 msgstr ""
36471
36472 #. type: textblock
36473 #: ../src/guestfs.pod:1348
36474 msgid "After configuring the handle, you have to call L</guestfs_launch>."
36475 msgstr ""
36476
36477 #. type: textblock
36478 #: ../src/guestfs.pod:1350
36479 msgid ""
36480 "You may also want to configure error handling for the handle.  See the "
36481 "L</ERROR HANDLING> section below."
36482 msgstr ""
36483
36484 #. type: =head2
36485 #: ../src/guestfs.pod:1353
36486 msgid "guestfs_close"
36487 msgstr ""
36488
36489 #. type: verbatim
36490 #: ../src/guestfs.pod:1355
36491 #, no-wrap
36492 msgid ""
36493 " void guestfs_close (guestfs_h *g);\n"
36494 "\n"
36495 msgstr ""
36496
36497 #. type: textblock
36498 #: ../src/guestfs.pod:1357
36499 msgid "This closes the connection handle and frees up all resources used."
36500 msgstr ""
36501
36502 #. type: textblock
36503 #: ../src/guestfs.pod:1359
36504 msgid ""
36505 "If autosync was set on the handle and the handle was launched, then this "
36506 "implicitly calls various functions to unmount filesystems and sync the "
36507 "disk.  See L</guestfs_set_autosync> for more details."
36508 msgstr ""
36509
36510 #. type: textblock
36511 #: ../src/guestfs.pod:1363
36512 msgid "If a close callback was set on the handle, then it is called."
36513 msgstr ""
36514
36515 #. type: =head1
36516 #: ../src/guestfs.pod:1365
36517 msgid "ERROR HANDLING"
36518 msgstr ""
36519
36520 #. type: textblock
36521 #: ../src/guestfs.pod:1367
36522 msgid ""
36523 "API functions can return errors.  For example, almost all functions that "
36524 "return C<int> will return C<-1> to indicate an error."
36525 msgstr ""
36526
36527 #. type: textblock
36528 #: ../src/guestfs.pod:1370
36529 msgid ""
36530 "Additional information is available for errors: an error message string and "
36531 "optionally an error number (errno) if the thing that failed was a system "
36532 "call."
36533 msgstr ""
36534
36535 #. type: textblock
36536 #: ../src/guestfs.pod:1374
36537 msgid ""
36538 "You can get at the additional information about the last error on the handle "
36539 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
36540 "up an error handler with L</guestfs_set_error_handler>."
36541 msgstr ""
36542
36543 #. type: textblock
36544 #: ../src/guestfs.pod:1379
36545 msgid ""
36546 "When the handle is created, a default error handler is installed which "
36547 "prints the error message string to C<stderr>.  For small short-running "
36548 "command line programs it is sufficient to do:"
36549 msgstr ""
36550
36551 #. type: verbatim
36552 #: ../src/guestfs.pod:1383
36553 #, no-wrap
36554 msgid ""
36555 " if (guestfs_launch (g) == -1)\n"
36556 "   exit (EXIT_FAILURE);\n"
36557 "\n"
36558 msgstr ""
36559
36560 #. type: textblock
36561 #: ../src/guestfs.pod:1386
36562 msgid ""
36563 "since the default error handler will ensure that an error message has been "
36564 "printed to C<stderr> before the program exits."
36565 msgstr ""
36566
36567 #. type: textblock
36568 #: ../src/guestfs.pod:1389
36569 msgid ""
36570 "For other programs the caller will almost certainly want to install an "
36571 "alternate error handler or do error handling in-line like this:"
36572 msgstr ""
36573
36574 #. type: verbatim
36575 #: ../src/guestfs.pod:1392
36576 #, no-wrap
36577 msgid ""
36578 " /* This disables the default behaviour of printing errors\n"
36579 "    on stderr. */\n"
36580 " guestfs_set_error_handler (g, NULL, NULL);\n"
36581 " \n"
36582 msgstr ""
36583
36584 #. type: verbatim
36585 #: ../src/guestfs.pod:1396
36586 #, no-wrap
36587 msgid ""
36588 " if (guestfs_launch (g) == -1) {\n"
36589 "   /* Examine the error message and print it etc. */\n"
36590 "   char *msg = guestfs_last_error (g);\n"
36591 "   int errnum = guestfs_last_errno (g);\n"
36592 "   fprintf (stderr, \"%s\", msg);\n"
36593 "   if (errnum != 0)\n"
36594 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
36595 "   fprintf (stderr, \"\\n\");\n"
36596 "   /* ... */\n"
36597 " }\n"
36598 "\n"
36599 msgstr ""
36600
36601 #. type: textblock
36602 #: ../src/guestfs.pod:1407
36603 msgid ""
36604 "Out of memory errors are handled differently.  The default action is to call "
36605 "L<abort(3)>.  If this is undesirable, then you can set a handler using "
36606 "L</guestfs_set_out_of_memory_handler>."
36607 msgstr ""
36608
36609 #. type: textblock
36610 #: ../src/guestfs.pod:1411
36611 msgid ""
36612 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
36613 "because there is no handle if this happens there is no way to get additional "
36614 "error information.  However L</guestfs_create> is supposed to be a "
36615 "lightweight operation which can only fail because of insufficient memory (it "
36616 "returns NULL in this case)."
36617 msgstr ""
36618
36619 #. type: =head2
36620 #: ../src/guestfs.pod:1417
36621 msgid "guestfs_last_error"
36622 msgstr ""
36623
36624 #. type: verbatim
36625 #: ../src/guestfs.pod:1419
36626 #, no-wrap
36627 msgid ""
36628 " const char *guestfs_last_error (guestfs_h *g);\n"
36629 "\n"
36630 msgstr ""
36631
36632 #. type: textblock
36633 #: ../src/guestfs.pod:1421
36634 msgid ""
36635 "This returns the last error message that happened on C<g>.  If there has not "
36636 "been an error since the handle was created, then this returns C<NULL>."
36637 msgstr ""
36638
36639 #. type: textblock
36640 #: ../src/guestfs.pod:1425
36641 msgid ""
36642 "The lifetime of the returned string is until the next error occurs, or "
36643 "L</guestfs_close> is called."
36644 msgstr ""
36645
36646 #. type: =head2
36647 #: ../src/guestfs.pod:1428
36648 msgid "guestfs_last_errno"
36649 msgstr ""
36650
36651 #. type: verbatim
36652 #: ../src/guestfs.pod:1430
36653 #, no-wrap
36654 msgid ""
36655 " int guestfs_last_errno (guestfs_h *g);\n"
36656 "\n"
36657 msgstr ""
36658
36659 #. type: textblock
36660 #: ../src/guestfs.pod:1432
36661 msgid "This returns the last error number (errno) that happened on C<g>."
36662 msgstr ""
36663
36664 #. type: textblock
36665 #: ../src/guestfs.pod:1434
36666 msgid "If successful, an errno integer not equal to zero is returned."
36667 msgstr ""
36668
36669 #. type: textblock
36670 #: ../src/guestfs.pod:1436
36671 msgid "If no error, this returns 0.  This call can return 0 in three situations:"
36672 msgstr ""
36673
36674 #. type: textblock
36675 #: ../src/guestfs.pod:1443
36676 msgid "There has not been any error on the handle."
36677 msgstr ""
36678
36679 #. type: textblock
36680 #: ../src/guestfs.pod:1447
36681 msgid ""
36682 "There has been an error but the errno was meaningless.  This corresponds to "
36683 "the case where the error did not come from a failed system call, but for "
36684 "some other reason."
36685 msgstr ""
36686
36687 #. type: textblock
36688 #: ../src/guestfs.pod:1453
36689 msgid ""
36690 "There was an error from a failed system call, but for some reason the errno "
36691 "was not captured and returned.  This usually indicates a bug in libguestfs."
36692 msgstr ""
36693
36694 #. type: textblock
36695 #: ../src/guestfs.pod:1459
36696 msgid ""
36697 "Libguestfs tries to convert the errno from inside the applicance into a "
36698 "corresponding errno for the caller (not entirely trivial: the appliance "
36699 "might be running a completely different operating system from the library "
36700 "and error numbers are not standardized across Un*xen).  If this could not be "
36701 "done, then the error is translated to C<EINVAL>.  In practice this should "
36702 "only happen in very rare circumstances."
36703 msgstr ""
36704
36705 #. type: =head2
36706 #: ../src/guestfs.pod:1467
36707 msgid "guestfs_set_error_handler"
36708 msgstr ""
36709
36710 #. type: verbatim
36711 #: ../src/guestfs.pod:1469
36712 #, no-wrap
36713 msgid ""
36714 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
36715 "                                           void *opaque,\n"
36716 "                                           const char *msg);\n"
36717 " void guestfs_set_error_handler (guestfs_h *g,\n"
36718 "                                 guestfs_error_handler_cb cb,\n"
36719 "                                 void *opaque);\n"
36720 "\n"
36721 msgstr ""
36722
36723 #. type: textblock
36724 #: ../src/guestfs.pod:1476
36725 msgid ""
36726 "The callback C<cb> will be called if there is an error.  The parameters "
36727 "passed to the callback are an opaque data pointer and the error message "
36728 "string."
36729 msgstr ""
36730
36731 #. type: textblock
36732 #: ../src/guestfs.pod:1480
36733 msgid ""
36734 "C<errno> is not passed to the callback.  To get that the callback must call "
36735 "L</guestfs_last_errno>."
36736 msgstr ""
36737
36738 #. type: textblock
36739 #: ../src/guestfs.pod:1483
36740 msgid ""
36741 "Note that the message string C<msg> is freed as soon as the callback "
36742 "function returns, so if you want to stash it somewhere you must make your "
36743 "own copy."
36744 msgstr ""
36745
36746 #. type: textblock
36747 #: ../src/guestfs.pod:1487
36748 msgid "The default handler prints messages on C<stderr>."
36749 msgstr ""
36750
36751 #. type: textblock
36752 #: ../src/guestfs.pod:1489
36753 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
36754 msgstr ""
36755
36756 #. type: =head2
36757 #: ../src/guestfs.pod:1491
36758 msgid "guestfs_get_error_handler"
36759 msgstr ""
36760
36761 #. type: verbatim
36762 #: ../src/guestfs.pod:1493
36763 #, no-wrap
36764 msgid ""
36765 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
36766 "                                                     void **opaque_rtn);\n"
36767 "\n"
36768 msgstr ""
36769
36770 #. type: textblock
36771 #: ../src/guestfs.pod:1496
36772 msgid "Returns the current error handler callback."
36773 msgstr ""
36774
36775 #. type: =head2
36776 #: ../src/guestfs.pod:1498
36777 msgid "guestfs_set_out_of_memory_handler"
36778 msgstr ""
36779
36780 #. type: verbatim
36781 #: ../src/guestfs.pod:1500
36782 #, no-wrap
36783 msgid ""
36784 " typedef void (*guestfs_abort_cb) (void);\n"
36785 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
36786 "                                         guestfs_abort_cb);\n"
36787 "\n"
36788 msgstr ""
36789
36790 #. type: textblock
36791 #: ../src/guestfs.pod:1504
36792 msgid ""
36793 "The callback C<cb> will be called if there is an out of memory situation.  "
36794 "I<Note this callback must not return>."
36795 msgstr ""
36796
36797 #. type: textblock
36798 #: ../src/guestfs.pod:1507
36799 msgid "The default is to call L<abort(3)>."
36800 msgstr ""
36801
36802 #. type: textblock
36803 #: ../src/guestfs.pod:1509
36804 msgid "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
36805 msgstr ""
36806
36807 #. type: =head2
36808 #: ../src/guestfs.pod:1512
36809 msgid "guestfs_get_out_of_memory_handler"
36810 msgstr ""
36811
36812 #. type: verbatim
36813 #: ../src/guestfs.pod:1514
36814 #, no-wrap
36815 msgid ""
36816 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
36817 "\n"
36818 msgstr ""
36819
36820 #. type: textblock
36821 #: ../src/guestfs.pod:1516
36822 msgid "This returns the current out of memory handler."
36823 msgstr ""
36824
36825 #. type: =head1
36826 #: ../src/guestfs.pod:1518
36827 msgid "API CALLS"
36828 msgstr ""
36829
36830 #. type: =head1
36831 #: ../src/guestfs.pod:1522
36832 msgid "STRUCTURES"
36833 msgstr ""
36834
36835 #. type: textblock
36836 #: ../src/guestfs.pod:1524
36837 msgid "@STRUCTS@"
36838 msgstr ""
36839
36840 #. type: =head1
36841 #: ../src/guestfs.pod:1526
36842 msgid "AVAILABILITY"
36843 msgstr ""
36844
36845 #. type: =head2
36846 #: ../src/guestfs.pod:1528
36847 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
36848 msgstr ""
36849
36850 #. type: textblock
36851 #: ../src/guestfs.pod:1530
36852 msgid ""
36853 "Using L</guestfs_available> you can test availability of the following "
36854 "groups of functions.  This test queries the appliance to see if the "
36855 "appliance you are currently using supports the functionality."
36856 msgstr ""
36857
36858 #. type: textblock
36859 #: ../src/guestfs.pod:1535
36860 msgid "@AVAILABILITY@"
36861 msgstr ""
36862
36863 #. type: =head2
36864 #: ../src/guestfs.pod:1537
36865 msgid "GUESTFISH supported COMMAND"
36866 msgstr ""
36867
36868 #. type: textblock
36869 #: ../src/guestfs.pod:1539
36870 msgid ""
36871 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
36872 "prints out the available groups and whether they are supported by this build "
36873 "of libguestfs.  Note however that you have to do C<run> first."
36874 msgstr ""
36875
36876 #. type: =head2
36877 #: ../src/guestfs.pod:1544
36878 msgid "SINGLE CALLS AT COMPILE TIME"
36879 msgstr ""
36880
36881 #. type: textblock
36882 #: ../src/guestfs.pod:1546
36883 msgid ""
36884 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
36885 "function, such as:"
36886 msgstr ""
36887
36888 #. type: verbatim
36889 #: ../src/guestfs.pod:1549
36890 #, no-wrap
36891 msgid ""
36892 " #define LIBGUESTFS_HAVE_DD 1\n"
36893 "\n"
36894 msgstr ""
36895
36896 #. type: textblock
36897 #: ../src/guestfs.pod:1551
36898 msgid "if L</guestfs_dd> is available."
36899 msgstr ""
36900
36901 #. type: textblock
36902 #: ../src/guestfs.pod:1553
36903 msgid ""
36904 "Before version 1.5.8, if you needed to test whether a single libguestfs "
36905 "function is available at compile time, we recommended using build tools such "
36906 "as autoconf or cmake.  For example in autotools you could use:"
36907 msgstr ""
36908
36909 #. type: verbatim
36910 #: ../src/guestfs.pod:1558
36911 #, no-wrap
36912 msgid ""
36913 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
36914 " AC_CHECK_FUNCS([guestfs_dd])\n"
36915 "\n"
36916 msgstr ""
36917
36918 #. type: textblock
36919 #: ../src/guestfs.pod:1561
36920 msgid ""
36921 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
36922 "in your program."
36923 msgstr ""
36924
36925 #. type: =head2
36926 #: ../src/guestfs.pod:1564
36927 msgid "SINGLE CALLS AT RUN TIME"
36928 msgstr ""
36929
36930 #. type: textblock
36931 #: ../src/guestfs.pod:1566
36932 msgid ""
36933 "Testing at compile time doesn't guarantee that a function really exists in "
36934 "the library.  The reason is that you might be dynamically linked against a "
36935 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
36936 "This situation unfortunately results in a segmentation fault, which is a "
36937 "shortcoming of the C dynamic linking system itself."
36938 msgstr ""
36939
36940 #. type: textblock
36941 #: ../src/guestfs.pod:1573
36942 msgid ""
36943 "You can use L<dlopen(3)> to test if a function is available at run time, as "
36944 "in this example program (note that you still need the compile time check as "
36945 "well):"
36946 msgstr ""
36947
36948 #. type: verbatim
36949 #: ../src/guestfs.pod:1577
36950 #, no-wrap
36951 msgid ""
36952 " #include <stdio.h>\n"
36953 " #include <stdlib.h>\n"
36954 " #include <unistd.h>\n"
36955 " #include <dlfcn.h>\n"
36956 " #include <guestfs.h>\n"
36957 " \n"
36958 msgstr ""
36959
36960 #. type: verbatim
36961 #: ../src/guestfs.pod:1583
36962 #, no-wrap
36963 msgid ""
36964 " main ()\n"
36965 " {\n"
36966 " #ifdef LIBGUESTFS_HAVE_DD\n"
36967 "   void *dl;\n"
36968 "   int has_function;\n"
36969 " \n"
36970 msgstr ""
36971
36972 #. type: verbatim
36973 #: ../src/guestfs.pod:1589
36974 #, no-wrap
36975 msgid ""
36976 "   /* Test if the function guestfs_dd is really available. */\n"
36977 "   dl = dlopen (NULL, RTLD_LAZY);\n"
36978 "   if (!dl) {\n"
36979 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
36980 "     exit (EXIT_FAILURE);\n"
36981 "   }\n"
36982 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
36983 "   dlclose (dl);\n"
36984 " \n"
36985 msgstr ""
36986
36987 #. type: verbatim
36988 #: ../src/guestfs.pod:1598
36989 #, no-wrap
36990 msgid ""
36991 "   if (!has_function)\n"
36992 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
36993 "   else {\n"
36994 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
36995 "     /* Now it's safe to call\n"
36996 "     guestfs_dd (g, \"foo\", \"bar\");\n"
36997 "     */\n"
36998 "   }\n"
36999 " #else\n"
37000 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
37001 " #endif\n"
37002 "  }\n"
37003 "\n"
37004 msgstr ""
37005
37006 #. type: textblock
37007 #: ../src/guestfs.pod:1611
37008 msgid ""
37009 "You may think the above is an awful lot of hassle, and it is.  There are "
37010 "other ways outside of the C linking system to ensure that this kind of "
37011 "incompatibility never arises, such as using package versioning:"
37012 msgstr ""
37013
37014 #. type: verbatim
37015 #: ../src/guestfs.pod:1616
37016 #, no-wrap
37017 msgid ""
37018 " Requires: libguestfs >= 1.0.80\n"
37019 "\n"
37020 msgstr ""
37021
37022 #. type: =head1
37023 #: ../src/guestfs.pod:1618
37024 msgid "CALLS WITH OPTIONAL ARGUMENTS"
37025 msgstr ""
37026
37027 #. type: textblock
37028 #: ../src/guestfs.pod:1620
37029 msgid ""
37030 "A recent feature of the API is the introduction of calls which take optional "
37031 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
37032 "takes variable arguments (ie. C<...>), as in this example:"
37033 msgstr ""
37034
37035 #. type: verbatim
37036 #: ../src/guestfs.pod:1625
37037 #, no-wrap
37038 msgid ""
37039 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
37040 "\n"
37041 msgstr ""
37042
37043 #. type: textblock
37044 #: ../src/guestfs.pod:1627
37045 msgid ""
37046 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
37047 "call with no optional arguments specified:"
37048 msgstr ""
37049
37050 #. type: verbatim
37051 #: ../src/guestfs.pod:1630
37052 #, no-wrap
37053 msgid ""
37054 " guestfs_add_drive_opts (g, filename, -1);\n"
37055 "\n"
37056 msgstr ""
37057
37058 #. type: textblock
37059 #: ../src/guestfs.pod:1632
37060 msgid "With a single optional argument:"
37061 msgstr ""
37062
37063 #. type: verbatim
37064 #: ../src/guestfs.pod:1634
37065 #, no-wrap
37066 msgid ""
37067 " guestfs_add_drive_opts (g, filename,\n"
37068 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37069 "                         -1);\n"
37070 "\n"
37071 msgstr ""
37072
37073 #. type: textblock
37074 #: ../src/guestfs.pod:1638
37075 msgid "With two:"
37076 msgstr ""
37077
37078 #. type: verbatim
37079 #: ../src/guestfs.pod:1640
37080 #, no-wrap
37081 msgid ""
37082 " guestfs_add_drive_opts (g, filename,\n"
37083 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37084 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
37085 "                         -1);\n"
37086 "\n"
37087 msgstr ""
37088
37089 #. type: textblock
37090 #: ../src/guestfs.pod:1645
37091 msgid ""
37092 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
37093 "happen!"
37094 msgstr ""
37095
37096 #. type: =head2
37097 #: ../src/guestfs.pod:1648
37098 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
37099 msgstr ""
37100
37101 #. type: textblock
37102 #: ../src/guestfs.pod:1650
37103 msgid ""
37104 "The second variant has the same name with the suffix C<_va>, which works the "
37105 "same way but takes a C<va_list>.  See the C manual for details.  For the "
37106 "example function, this is declared:"
37107 msgstr ""
37108
37109 #. type: verbatim
37110 #: ../src/guestfs.pod:1654
37111 #, no-wrap
37112 msgid ""
37113 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
37114 "                                va_list args);\n"
37115 "\n"
37116 msgstr ""
37117
37118 #. type: =head2
37119 #: ../src/guestfs.pod:1657
37120 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
37121 msgstr ""
37122
37123 #. type: textblock
37124 #: ../src/guestfs.pod:1659
37125 msgid ""
37126 "The third variant is useful where you need to construct these calls.  You "
37127 "pass in a structure where you fill in the optional fields.  The structure "
37128 "has a bitmask as the first element which you must set to indicate which "
37129 "fields you have filled in.  For our example function the structure and call "
37130 "are declared:"
37131 msgstr ""
37132
37133 #. type: verbatim
37134 #: ../src/guestfs.pod:1665
37135 #, no-wrap
37136 msgid ""
37137 " struct guestfs_add_drive_opts_argv {\n"
37138 "   uint64_t bitmask;\n"
37139 "   int readonly;\n"
37140 "   const char *format;\n"
37141 "   /* ... */\n"
37142 " };\n"
37143 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
37144 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
37145 "\n"
37146 msgstr ""
37147
37148 #. type: textblock
37149 #: ../src/guestfs.pod:1674
37150 msgid "You could call it like this:"
37151 msgstr ""
37152
37153 #. type: verbatim
37154 #: ../src/guestfs.pod:1676
37155 #, no-wrap
37156 msgid ""
37157 " struct guestfs_add_drive_opts_argv optargs = {\n"
37158 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
37159 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
37160 "   .readonly = 1,\n"
37161 "   .format = \"qcow2\"\n"
37162 " };\n"
37163 " \n"
37164 msgstr ""
37165
37166 #. type: verbatim
37167 #: ../src/guestfs.pod:1683
37168 #, no-wrap
37169 msgid ""
37170 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
37171 "\n"
37172 msgstr ""
37173
37174 #. type: textblock
37175 #: ../src/guestfs.pod:1691
37176 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
37177 msgstr ""
37178
37179 #. type: textblock
37180 #: ../src/guestfs.pod:1696
37181 msgid "You do not need to fill in all fields of the structure."
37182 msgstr ""
37183
37184 #. type: textblock
37185 #: ../src/guestfs.pod:1700
37186 msgid ""
37187 "There must be a one-to-one correspondence between fields of the structure "
37188 "that are filled in, and bits set in the bitmask."
37189 msgstr ""
37190
37191 #. type: =head2
37192 #: ../src/guestfs.pod:1705
37193 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
37194 msgstr ""
37195
37196 #. type: textblock
37197 #: ../src/guestfs.pod:1707
37198 msgid ""
37199 "In other languages, optional arguments are expressed in the way that is "
37200 "natural for that language.  We refer you to the language-specific "
37201 "documentation for more details on that."
37202 msgstr ""
37203
37204 #. type: textblock
37205 #: ../src/guestfs.pod:1711
37206 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
37207 msgstr ""
37208
37209 #. type: =head2
37210 #: ../src/guestfs.pod:1713
37211 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
37212 msgstr ""
37213
37214 #. type: textblock
37215 #: ../src/guestfs.pod:1715
37216 msgid ""
37217 "B<Note:> This section documents the generic event mechanism introduced in "
37218 "libguestfs 1.10, which you should use in new code if possible.  The old "
37219 "functions C<guestfs_set_log_message_callback>, "
37220 "C<guestfs_set_subprocess_quit_callback>, "
37221 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
37222 "C<guestfs_set_progress_callback> are no longer documented in this manual "
37223 "page.  Because of the ABI guarantee, the old functions continue to work."
37224 msgstr ""
37225
37226 #. type: textblock
37227 #: ../src/guestfs.pod:1724
37228 msgid ""
37229 "Handles generate events when certain things happen, such as log messages "
37230 "being generated, progress messages during long-running operations, or the "
37231 "handle being closed.  The API calls described below let you register a "
37232 "callback to be called when events happen.  You can register multiple "
37233 "callbacks (for the same, different or overlapping sets of events), and "
37234 "individually remove callbacks.  If callbacks are not removed, then they "
37235 "remain in force until the handle is closed."
37236 msgstr ""
37237
37238 #. type: textblock
37239 #: ../src/guestfs.pod:1732
37240 msgid ""
37241 "In the current implementation, events are only generated synchronously: that "
37242 "means that events (and hence callbacks) can only happen while you are in the "
37243 "middle of making another libguestfs call.  The callback is called in the "
37244 "same thread."
37245 msgstr ""
37246
37247 #. type: textblock
37248 #: ../src/guestfs.pod:1737
37249 msgid ""
37250 "Events may contain a payload, usually nothing (void), an array of 64 bit "
37251 "unsigned integers, or a message buffer.  Payloads are discussed later on."
37252 msgstr ""
37253
37254 #. type: =head3
37255 #: ../src/guestfs.pod:1741
37256 msgid "CLASSES OF EVENTS"
37257 msgstr ""
37258
37259 #. type: =item
37260 #: ../src/guestfs.pod:1745
37261 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
37262 msgstr ""
37263
37264 #. type: textblock
37265 #: ../src/guestfs.pod:1748
37266 msgid ""
37267 "The callback function will be called while the handle is being closed "
37268 "(synchronously from L</guestfs_close>)."
37269 msgstr ""
37270
37271 #. type: textblock
37272 #: ../src/guestfs.pod:1751
37273 msgid ""
37274 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
37275 "handles that are open when the program exits.  This means that this callback "
37276 "might be called indirectly from L<exit(3)>, which can cause unexpected "
37277 "problems in higher-level languages (eg. if your HLL interpreter has already "
37278 "been cleaned up by the time this is called, and if your callback then jumps "
37279 "into some HLL function)."
37280 msgstr ""
37281
37282 #. type: textblock
37283 #: ../src/guestfs.pod:1758
37284 msgid ""
37285 "If no callback is registered: the handle is closed without any callback "
37286 "being invoked."
37287 msgstr ""
37288
37289 #. type: =item
37290 #: ../src/guestfs.pod:1761
37291 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
37292 msgstr ""
37293
37294 #. type: textblock
37295 #: ../src/guestfs.pod:1764
37296 msgid ""
37297 "The callback function will be called when the child process quits, either "
37298 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
37299 "corresponds to a transition from any state to the CONFIG state)."
37300 msgstr ""
37301
37302 #. type: textblock
37303 #: ../src/guestfs.pod:1768 ../src/guestfs.pod:1777 ../src/guestfs.pod:1894
37304 msgid "If no callback is registered: the event is ignored."
37305 msgstr ""
37306
37307 #. type: =item
37308 #: ../src/guestfs.pod:1770
37309 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
37310 msgstr ""
37311
37312 #. type: textblock
37313 #: ../src/guestfs.pod:1773
37314 msgid ""
37315 "The callback function will be called when the child process becomes ready "
37316 "first time after it has been launched.  (This corresponds to a transition "
37317 "from LAUNCHING to the READY state)."
37318 msgstr ""
37319
37320 #. type: =item
37321 #: ../src/guestfs.pod:1779
37322 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
37323 msgstr ""
37324
37325 #. type: textblock
37326 #: ../src/guestfs.pod:1782
37327 msgid ""
37328 "Some long-running operations can generate progress messages.  If this "
37329 "callback is registered, then it will be called each time a progress message "
37330 "is generated (usually two seconds after the operation started, and three "
37331 "times per second thereafter until it completes, although the frequency may "
37332 "change in future versions)."
37333 msgstr ""
37334
37335 #. type: textblock
37336 #: ../src/guestfs.pod:1788
37337 msgid ""
37338 "The callback receives in the payload four unsigned 64 bit numbers which are "
37339 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
37340 msgstr ""
37341
37342 #. type: textblock
37343 #: ../src/guestfs.pod:1791
37344 msgid ""
37345 "The units of C<total> are not defined, although for some operations C<total> "
37346 "may relate in some way to the amount of data to be transferred (eg. in bytes "
37347 "or megabytes), and C<position> may be the portion which has been "
37348 "transferred."
37349 msgstr ""
37350
37351 #. type: textblock
37352 #: ../src/guestfs.pod:1796
37353 msgid "The only defined and stable parts of the API are:"
37354 msgstr ""
37355
37356 #. type: textblock
37357 #: ../src/guestfs.pod:1802
37358 msgid ""
37359 "The callback can display to the user some type of progress bar or indicator "
37360 "which shows the ratio of C<position>:C<total>."
37361 msgstr ""
37362
37363 #. type: textblock
37364 #: ../src/guestfs.pod:1807
37365 msgid "0 E<lt>= C<position> E<lt>= C<total>"
37366 msgstr ""
37367
37368 #. type: textblock
37369 #: ../src/guestfs.pod:1811
37370 msgid ""
37371 "If any progress notification is sent during a call, then a final progress "
37372 "notification is always sent when C<position> = C<total> (I<unless> the call "
37373 "fails with an error)."
37374 msgstr ""
37375
37376 #. type: textblock
37377 #: ../src/guestfs.pod:1815
37378 msgid ""
37379 "This is to simplify caller code, so callers can easily set the progress "
37380 "indicator to \"100%\" at the end of the operation, without requiring special "
37381 "code to detect this case."
37382 msgstr ""
37383
37384 #. type: textblock
37385 #: ../src/guestfs.pod:1821
37386 msgid ""
37387 "For some calls we are unable to estimate the progress of the call, but we "
37388 "can still generate progress messages to indicate activity.  This is known as "
37389 "\"pulse mode\", and is directly supported by certain progress bar "
37390 "implementations (eg. GtkProgressBar)."
37391 msgstr ""
37392
37393 #. type: textblock
37394 #: ../src/guestfs.pod:1826
37395 msgid ""
37396 "For these calls, zero or more progress messages are generated with "
37397 "C<position = 0> and C<total = 1>, followed by a final message with "
37398 "C<position = total = 1>."
37399 msgstr ""
37400
37401 #. type: textblock
37402 #: ../src/guestfs.pod:1830
37403 msgid ""
37404 "As noted above, if the call fails with an error then the final message may "
37405 "not be generated."
37406 msgstr ""
37407
37408 #. type: textblock
37409 #: ../src/guestfs.pod:1835
37410 msgid ""
37411 "The callback also receives the procedure number (C<proc_nr>) and serial "
37412 "number (C<serial>) of the call.  These are only useful for debugging "
37413 "protocol issues, and the callback can normally ignore them.  The callback "
37414 "may want to print these numbers in error messages or debugging messages."
37415 msgstr ""
37416
37417 #. type: textblock
37418 #: ../src/guestfs.pod:1841
37419 msgid "If no callback is registered: progress messages are discarded."
37420 msgstr ""
37421
37422 #. type: =item
37423 #: ../src/guestfs.pod:1843
37424 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
37425 msgstr ""
37426
37427 #. type: textblock
37428 #: ../src/guestfs.pod:1846
37429 msgid ""
37430 "The callback function is called whenever a log message is generated by qemu, "
37431 "the appliance kernel, guestfsd (daemon), or utility programs."
37432 msgstr ""
37433
37434 #. type: textblock
37435 #: ../src/guestfs.pod:1849
37436 msgid ""
37437 "If the verbose flag (L</guestfs_set_verbose>) is set before launch "
37438 "(L</guestfs_launch>) then additional debug messages are generated."
37439 msgstr ""
37440
37441 #. type: textblock
37442 #: ../src/guestfs.pod:1852 ../src/guestfs.pod:1866
37443 msgid ""
37444 "If no callback is registered: the messages are discarded unless the verbose "
37445 "flag is set in which case they are sent to stderr.  You can override the "
37446 "printing of verbose messages to stderr by setting up a callback."
37447 msgstr ""
37448
37449 #. type: =item
37450 #: ../src/guestfs.pod:1857
37451 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
37452 msgstr ""
37453
37454 #. type: textblock
37455 #: ../src/guestfs.pod:1860
37456 msgid ""
37457 "The callback function is called whenever a log message is generated by the "
37458 "library part of libguestfs."
37459 msgstr ""
37460
37461 #. type: textblock
37462 #: ../src/guestfs.pod:1863
37463 msgid ""
37464 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
37465 "messages are generated."
37466 msgstr ""
37467
37468 #. type: =item
37469 #: ../src/guestfs.pod:1871
37470 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
37471 msgstr ""
37472
37473 #. type: textblock
37474 #: ../src/guestfs.pod:1874
37475 msgid ""
37476 "The callback function is called whenever a trace message is generated.  This "
37477 "only applies if the trace flag (L</guestfs_set_trace>) is set."
37478 msgstr ""
37479
37480 #. type: textblock
37481 #: ../src/guestfs.pod:1877
37482 msgid ""
37483 "If no callback is registered: the messages are sent to stderr.  You can "
37484 "override the printing of trace messages to stderr by setting up a callback."
37485 msgstr ""
37486
37487 #. type: =item
37488 #: ../src/guestfs.pod:1881
37489 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
37490 msgstr ""
37491
37492 #. type: textblock
37493 #: ../src/guestfs.pod:1884
37494 msgid "The callback function is called whenever a libguestfs function is entered."
37495 msgstr ""
37496
37497 #. type: textblock
37498 #: ../src/guestfs.pod:1887
37499 msgid ""
37500 "The payload is a string which contains the name of the function that we are "
37501 "entering (not including C<guestfs_> prefix)."
37502 msgstr ""
37503
37504 #. type: textblock
37505 #: ../src/guestfs.pod:1890
37506 msgid ""
37507 "Note that libguestfs functions can call themselves, so you may see many "
37508 "events from a single call.  A few libguestfs functions do not generate this "
37509 "event."
37510 msgstr ""
37511
37512 #. type: =head3
37513 #: ../src/guestfs.pod:1898
37514 msgid "guestfs_set_event_callback"
37515 msgstr ""
37516
37517 #. type: verbatim
37518 #: ../src/guestfs.pod:1900
37519 #, no-wrap
37520 msgid ""
37521 " int guestfs_set_event_callback (guestfs_h *g,\n"
37522 "                                 guestfs_event_callback cb,\n"
37523 "                                 uint64_t event_bitmask,\n"
37524 "                                 int flags,\n"
37525 "                                 void *opaque);\n"
37526 "\n"
37527 msgstr ""
37528
37529 #. type: textblock
37530 #: ../src/guestfs.pod:1906
37531 msgid ""
37532 "This function registers a callback (C<cb>) for all event classes in the "
37533 "C<event_bitmask>."
37534 msgstr ""
37535
37536 #. type: textblock
37537 #: ../src/guestfs.pod:1909
37538 msgid ""
37539 "For example, to register for all log message events, you could call this "
37540 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
37541 "To register a single callback for all possible classes of events, use "
37542 "C<GUESTFS_EVENT_ALL>."
37543 msgstr ""
37544
37545 #. type: textblock
37546 #: ../src/guestfs.pod:1915
37547 msgid "C<flags> should always be passed as 0."
37548 msgstr ""
37549
37550 #. type: textblock
37551 #: ../src/guestfs.pod:1917
37552 msgid ""
37553 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
37554 "it for any purpose."
37555 msgstr ""
37556
37557 #. type: textblock
37558 #: ../src/guestfs.pod:1920
37559 msgid ""
37560 "The return value is the event handle (an integer) which you can use to "
37561 "delete the callback (see below)."
37562 msgstr ""
37563
37564 #. type: textblock
37565 #: ../src/guestfs.pod:1923
37566 msgid ""
37567 "If there is an error, this function returns C<-1>, and sets the error in the "
37568 "handle in the usual way (see L</guestfs_last_error> etc.)"
37569 msgstr ""
37570
37571 #. type: textblock
37572 #: ../src/guestfs.pod:1926
37573 msgid ""
37574 "Callbacks remain in effect until they are deleted, or until the handle is "
37575 "closed."
37576 msgstr ""
37577
37578 #. type: textblock
37579 #: ../src/guestfs.pod:1929
37580 msgid ""
37581 "In the case where multiple callbacks are registered for a particular event "
37582 "class, all of the callbacks are called.  The order in which multiple "
37583 "callbacks are called is not defined."
37584 msgstr ""
37585
37586 #. type: =head3
37587 #: ../src/guestfs.pod:1933
37588 msgid "guestfs_delete_event_callback"
37589 msgstr ""
37590
37591 #. type: verbatim
37592 #: ../src/guestfs.pod:1935
37593 #, no-wrap
37594 msgid ""
37595 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
37596 "\n"
37597 msgstr ""
37598
37599 #. type: textblock
37600 #: ../src/guestfs.pod:1937
37601 msgid ""
37602 "Delete a callback that was previously registered.  C<event_handle> should be "
37603 "the integer that was returned by a previous call to "
37604 "C<guestfs_set_event_callback> on the same handle."
37605 msgstr ""
37606
37607 #. type: =head3
37608 #: ../src/guestfs.pod:1941
37609 msgid "guestfs_event_callback"
37610 msgstr ""
37611
37612 #. type: verbatim
37613 #: ../src/guestfs.pod:1943
37614 #, no-wrap
37615 msgid ""
37616 " typedef void (*guestfs_event_callback) (\n"
37617 "                  guestfs_h *g,\n"
37618 "                  void *opaque,\n"
37619 "                  uint64_t event,\n"
37620 "                  int event_handle,\n"
37621 "                  int flags,\n"
37622 "                  const char *buf, size_t buf_len,\n"
37623 "                  const uint64_t *array, size_t array_len);\n"
37624 "\n"
37625 msgstr ""
37626
37627 #. type: textblock
37628 #: ../src/guestfs.pod:1952
37629 msgid "This is the type of the event callback function that you have to provide."
37630 msgstr ""
37631
37632 #. type: textblock
37633 #: ../src/guestfs.pod:1955
37634 msgid ""
37635 "The basic parameters are: the handle (C<g>), the opaque user pointer "
37636 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
37637 "handle, and C<flags> which in the current API you should ignore."
37638 msgstr ""
37639
37640 #. type: textblock
37641 #: ../src/guestfs.pod:1959
37642 msgid ""
37643 "The remaining parameters contain the event payload (if any).  Each event may "
37644 "contain a payload, which usually relates to the event class, but for future "
37645 "proofing your code should be written to handle any payload for any event "
37646 "class."
37647 msgstr ""
37648
37649 #. type: textblock
37650 #: ../src/guestfs.pod:1964
37651 msgid ""
37652 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
37653 "there is no message buffer).  Note that this message buffer can contain "
37654 "arbitrary 8 bit data, including NUL bytes."
37655 msgstr ""
37656
37657 #. type: textblock
37658 #: ../src/guestfs.pod:1968
37659 msgid ""
37660 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
37661 "moment this is only used for progress messages."
37662 msgstr ""
37663
37664 #. type: =head3
37665 #: ../src/guestfs.pod:1971
37666 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
37667 msgstr ""
37668
37669 #. type: textblock
37670 #: ../src/guestfs.pod:1973
37671 msgid ""
37672 "One motivation for the generic event API was to allow GUI programs to "
37673 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
37674 "unconditionally to C<stderr>."
37675 msgstr ""
37676
37677 #. type: textblock
37678 #: ../src/guestfs.pod:1977
37679 msgid ""
37680 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
37681 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
37682 "messages are not events; you must capture error messages separately)."
37683 msgstr ""
37684
37685 #. type: textblock
37686 #: ../src/guestfs.pod:1982
37687 msgid ""
37688 "Programs have to set up a callback to capture the classes of events of "
37689 "interest:"
37690 msgstr ""
37691
37692 #. type: verbatim
37693 #: ../src/guestfs.pod:1985
37694 #, no-wrap
37695 msgid ""
37696 " int eh =\n"
37697 "   guestfs_set_event_callback\n"
37698 "     (g, message_callback,\n"
37699 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
37700 "      GUESTFS_EVENT_TRACE,\n"
37701 "      0, NULL) == -1)\n"
37702 " if (eh == -1) {\n"
37703 "   // handle error in the usual way\n"
37704 " }\n"
37705 "\n"
37706 msgstr ""
37707
37708 #. type: textblock
37709 #: ../src/guestfs.pod:1995
37710 msgid ""
37711 "The callback can then direct messages to the appropriate place.  In this "
37712 "example, messages are directed to syslog:"
37713 msgstr ""
37714
37715 #. type: verbatim
37716 #: ../src/guestfs.pod:1998
37717 #, no-wrap
37718 msgid ""
37719 " static void\n"
37720 " message_callback (\n"
37721 "         guestfs_h *g,\n"
37722 "         void *opaque,\n"
37723 "         uint64_t event,\n"
37724 "         int event_handle,\n"
37725 "         int flags,\n"
37726 "         const char *buf, size_t buf_len,\n"
37727 "         const uint64_t *array, size_t array_len)\n"
37728 " {\n"
37729 "   const int priority = LOG_USER|LOG_INFO;\n"
37730 "   if (buf_len > 0)\n"
37731 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
37732 " }\n"
37733 "\n"
37734 msgstr ""
37735
37736 #. type: =head1
37737 #: ../src/guestfs.pod:2013
37738 msgid "CANCELLING LONG TRANSFERS"
37739 msgstr ""
37740
37741 #. type: textblock
37742 #: ../src/guestfs.pod:2015
37743 msgid ""
37744 "Some operations can be cancelled by the caller while they are in progress.  "
37745 "Currently only operations that involve uploading or downloading data can be "
37746 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
37747 "parameters in the generator)."
37748 msgstr ""
37749
37750 #. type: =head2
37751 #: ../src/guestfs.pod:2020
37752 msgid "guestfs_user_cancel"
37753 msgstr ""
37754
37755 #. type: verbatim
37756 #: ../src/guestfs.pod:2022
37757 #, no-wrap
37758 msgid ""
37759 " void guestfs_user_cancel (guestfs_h *g);\n"
37760 "\n"
37761 msgstr ""
37762
37763 #. type: textblock
37764 #: ../src/guestfs.pod:2024
37765 msgid "C<guestfs_user_cancel> cancels the current upload or download operation."
37766 msgstr ""
37767
37768 #. type: textblock
37769 #: ../src/guestfs.pod:2027
37770 msgid ""
37771 "Unlike most other libguestfs calls, this function is signal safe and thread "
37772 "safe.  You can call it from a signal handler or from another thread, without "
37773 "needing to do any locking."
37774 msgstr ""
37775
37776 #. type: textblock
37777 #: ../src/guestfs.pod:2031
37778 msgid ""
37779 "The transfer that was in progress (if there is one) will stop shortly "
37780 "afterwards, and will return an error.  The errno (see "
37781 "L</guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
37782 "out if the operation was cancelled or failed because of another error."
37783 msgstr ""
37784
37785 #. type: textblock
37786 #: ../src/guestfs.pod:2037
37787 msgid ""
37788 "No cleanup is performed: for example, if a file was being uploaded then "
37789 "after cancellation there may be a partially uploaded file.  It is the "
37790 "caller's responsibility to clean up if necessary."
37791 msgstr ""
37792
37793 #. type: textblock
37794 #: ../src/guestfs.pod:2041
37795 msgid "There are two common places that you might call C<guestfs_user_cancel>."
37796 msgstr ""
37797
37798 #. type: textblock
37799 #: ../src/guestfs.pod:2043
37800 msgid ""
37801 "In an interactive text-based program, you might call it from a C<SIGINT> "
37802 "signal handler so that pressing C<^C> cancels the current operation.  (You "
37803 "also need to call L</guestfs_set_pgroup> so that child processes don't "
37804 "receive the C<^C> signal)."
37805 msgstr ""
37806
37807 #. type: textblock
37808 #: ../src/guestfs.pod:2048
37809 msgid ""
37810 "In a graphical program, when the main thread is displaying a progress bar "
37811 "with a cancel button, wire up the cancel button to call this function."
37812 msgstr ""
37813
37814 #. type: =head1
37815 #: ../src/guestfs.pod:2052
37816 msgid "PRIVATE DATA AREA"
37817 msgstr ""
37818
37819 #. type: textblock
37820 #: ../src/guestfs.pod:2054
37821 msgid ""
37822 "You can attach named pieces of private data to the libguestfs handle, fetch "
37823 "them by name, and walk over them, for the lifetime of the handle.  This is "
37824 "called the private data area and is only available from the C API."
37825 msgstr ""
37826
37827 #. type: textblock
37828 #: ../src/guestfs.pod:2059
37829 msgid "To attach a named piece of data, use the following call:"
37830 msgstr ""
37831
37832 #. type: verbatim
37833 #: ../src/guestfs.pod:2061
37834 #, no-wrap
37835 msgid ""
37836 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
37837 "\n"
37838 msgstr ""
37839
37840 #. type: textblock
37841 #: ../src/guestfs.pod:2063
37842 msgid ""
37843 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
37844 "pointer (which can be C<NULL>).  Any previous item with the same key is "
37845 "overwritten."
37846 msgstr ""
37847
37848 #. type: textblock
37849 #: ../src/guestfs.pod:2067
37850 msgid ""
37851 "You can use any C<key> you want, but your key should I<not> start with an "
37852 "underscore character.  Keys beginning with an underscore character are "
37853 "reserved for internal libguestfs purposes (eg. for implementing language "
37854 "bindings).  It is recommended that you prefix the key with some unique "
37855 "string to avoid collisions with other users."
37856 msgstr ""
37857
37858 #. type: textblock
37859 #: ../src/guestfs.pod:2073
37860 msgid "To retrieve the pointer, use:"
37861 msgstr ""
37862
37863 #. type: verbatim
37864 #: ../src/guestfs.pod:2075
37865 #, no-wrap
37866 msgid ""
37867 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
37868 "\n"
37869 msgstr ""
37870
37871 #. type: textblock
37872 #: ../src/guestfs.pod:2077
37873 msgid ""
37874 "This function returns C<NULL> if either no data is found associated with "
37875 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
37876 "C<NULL>."
37877 msgstr ""
37878
37879 #. type: textblock
37880 #: ../src/guestfs.pod:2081
37881 msgid ""
37882 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
37883 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
37884 "all.  In particular, libguestfs does I<not> try to free the data when the "
37885 "handle is closed.  If the data must be freed, then the caller must either "
37886 "free it before calling L</guestfs_close> or must set up a close callback to "
37887 "do it (see L</GUESTFS_EVENT_CLOSE>)."
37888 msgstr ""
37889
37890 #. type: textblock
37891 #: ../src/guestfs.pod:2088
37892 msgid "To walk over all entries, use these two functions:"
37893 msgstr ""
37894
37895 #. type: verbatim
37896 #: ../src/guestfs.pod:2090
37897 #, no-wrap
37898 msgid ""
37899 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
37900 "\n"
37901 msgstr ""
37902
37903 #. type: verbatim
37904 #: ../src/guestfs.pod:2092
37905 #, no-wrap
37906 msgid ""
37907 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
37908 "\n"
37909 msgstr ""
37910
37911 #. type: textblock
37912 #: ../src/guestfs.pod:2094
37913 msgid ""
37914 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
37915 "not have any particular meaning -- keys are not returned in any defined "
37916 "order).  A pointer to the key is returned in C<*key_rtn> and the "
37917 "corresponding data pointer is returned from the function.  C<NULL> is "
37918 "returned if there are no keys stored in the handle."
37919 msgstr ""
37920
37921 #. type: textblock
37922 #: ../src/guestfs.pod:2100
37923 msgid ""
37924 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
37925 "value of this function is also C<NULL> is there are no further entries to "
37926 "return."
37927 msgstr ""
37928
37929 #. type: textblock
37930 #: ../src/guestfs.pod:2104
37931 msgid "Notes about walking over entries:"
37932 msgstr ""
37933
37934 #. type: textblock
37935 #: ../src/guestfs.pod:2110
37936 msgid "You must not call C<guestfs_set_private> while walking over the entries."
37937 msgstr ""
37938
37939 #. type: textblock
37940 #: ../src/guestfs.pod:2115
37941 msgid ""
37942 "The handle maintains an internal iterator which is reset when you call "
37943 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
37944 "call C<guestfs_set_private>."
37945 msgstr ""
37946
37947 #. type: textblock
37948 #: ../src/guestfs.pod:2121
37949 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
37950 msgstr ""
37951
37952 #. type: verbatim
37953 #: ../src/guestfs.pod:2123
37954 #, no-wrap
37955 msgid ""
37956 " guestfs_set_private (g, key, NULL);\n"
37957 "\n"
37958 msgstr ""
37959
37960 #. type: textblock
37961 #: ../src/guestfs.pod:2125
37962 msgid "then that C<key> is not returned when walking."
37963 msgstr ""
37964
37965 #. type: textblock
37966 #: ../src/guestfs.pod:2129
37967 msgid ""
37968 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
37969 "C<guestfs_next_private> or C<guestfs_set_private>."
37970 msgstr ""
37971
37972 #. type: textblock
37973 #: ../src/guestfs.pod:2135
37974 msgid ""
37975 "The following example code shows how to print all keys and data pointers "
37976 "that are associated with the handle C<g>:"
37977 msgstr ""
37978
37979 #. type: verbatim
37980 #: ../src/guestfs.pod:2138
37981 #, no-wrap
37982 msgid ""
37983 " const char *key;\n"
37984 " void *data = guestfs_first_private (g, &key);\n"
37985 " while (data != NULL)\n"
37986 "   {\n"
37987 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
37988 "     data = guestfs_next_private (g, &key);\n"
37989 "   }\n"
37990 "\n"
37991 msgstr ""
37992
37993 #. type: textblock
37994 #: ../src/guestfs.pod:2146
37995 msgid ""
37996 "More commonly you are only interested in keys that begin with an "
37997 "application-specific prefix C<foo_>.  Modify the loop like so:"
37998 msgstr ""
37999
38000 #. type: verbatim
38001 #: ../src/guestfs.pod:2149
38002 #, no-wrap
38003 msgid ""
38004 " const char *key;\n"
38005 " void *data = guestfs_first_private (g, &key);\n"
38006 " while (data != NULL)\n"
38007 "   {\n"
38008 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
38009 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
38010 "     data = guestfs_next_private (g, &key);\n"
38011 "   }\n"
38012 "\n"
38013 msgstr ""
38014
38015 #. type: textblock
38016 #: ../src/guestfs.pod:2158
38017 msgid ""
38018 "If you need to modify keys while walking, then you have to jump back to the "
38019 "beginning of the loop.  For example, to delete all keys prefixed with "
38020 "C<foo_>:"
38021 msgstr ""
38022
38023 #. type: verbatim
38024 #: ../src/guestfs.pod:2162
38025 #, no-wrap
38026 msgid ""
38027 "  const char *key;\n"
38028 "  void *data;\n"
38029 " again:\n"
38030 "  data = guestfs_first_private (g, &key);\n"
38031 "  while (data != NULL)\n"
38032 "    {\n"
38033 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
38034 "        {\n"
38035 "          guestfs_set_private (g, key, NULL);\n"
38036 "          /* note that 'key' pointer is now invalid, and so is\n"
38037 "             the internal iterator */\n"
38038 "          goto again;\n"
38039 "        }\n"
38040 "      data = guestfs_next_private (g, &key);\n"
38041 "    }\n"
38042 "\n"
38043 msgstr ""
38044
38045 #. type: textblock
38046 #: ../src/guestfs.pod:2178
38047 msgid ""
38048 "Note that the above loop is guaranteed to terminate because the keys are "
38049 "being deleted, but other manipulations of keys within the loop might not "
38050 "terminate unless you also maintain an indication of which keys have been "
38051 "visited."
38052 msgstr ""
38053
38054 #. type: =head1
38055 #: ../src/guestfs.pod:2183
38056 msgid "SYSTEMTAP"
38057 msgstr ""
38058
38059 #. type: textblock
38060 #: ../src/guestfs.pod:2185
38061 msgid ""
38062 "The libguestfs C library can be probed using systemtap or DTrace.  This is "
38063 "true of any library, not just libguestfs.  However libguestfs also contains "
38064 "static markers to help in probing internal operations."
38065 msgstr ""
38066
38067 #. type: textblock
38068 #: ../src/guestfs.pod:2189
38069 msgid "You can list all the static markers by doing:"
38070 msgstr ""
38071
38072 #. type: verbatim
38073 #: ../src/guestfs.pod:2191
38074 #, no-wrap
38075 msgid ""
38076 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
38077 "              .provider(\"guestfs\").mark(\"*\")'\n"
38078 "\n"
38079 msgstr ""
38080
38081 #. type: textblock
38082 #: ../src/guestfs.pod:2194
38083 msgid ""
38084 "B<Note:> These static markers are I<not> part of the stable API and may "
38085 "change in future versions."
38086 msgstr ""
38087
38088 #. type: =head2
38089 #: ../src/guestfs.pod:2197
38090 msgid "SYSTEMTAP SCRIPT EXAMPLE"
38091 msgstr ""
38092
38093 #. type: textblock
38094 #: ../src/guestfs.pod:2199
38095 msgid ""
38096 "This script contains examples of displaying both the static markers and some "
38097 "ordinary C entry points:"
38098 msgstr ""
38099
38100 #. type: verbatim
38101 #: ../src/guestfs.pod:2202
38102 #, no-wrap
38103 msgid ""
38104 " global last;\n"
38105 " \n"
38106 msgstr ""
38107
38108 #. type: verbatim
38109 #: ../src/guestfs.pod:2204
38110 #, no-wrap
38111 msgid ""
38112 " function display_time () {\n"
38113 "       now = gettimeofday_us ();\n"
38114 "       delta = 0;\n"
38115 "       if (last > 0)\n"
38116 "             delta = now - last;\n"
38117 "       last = now;\n"
38118 " \n"
38119 msgstr ""
38120
38121 #. type: verbatim
38122 #: ../src/guestfs.pod:2211
38123 #, no-wrap
38124 msgid ""
38125 "       printf (\"%d (+%d):\", now, delta);\n"
38126 " }\n"
38127 " \n"
38128 msgstr ""
38129
38130 #. type: verbatim
38131 #: ../src/guestfs.pod:2214
38132 #, no-wrap
38133 msgid ""
38134 " probe begin {\n"
38135 "       last = 0;\n"
38136 "       printf (\"ready\\n\");\n"
38137 " }\n"
38138 " \n"
38139 msgstr ""
38140
38141 #. type: verbatim
38142 #: ../src/guestfs.pod:2219
38143 #, no-wrap
38144 msgid ""
38145 " /* Display all calls to static markers. */\n"
38146 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
38147 "           .provider(\"guestfs\").mark(\"*\") ? {\n"
38148 "       display_time();\n"
38149 "       printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
38150 " }\n"
38151 " \n"
38152 msgstr ""
38153
38154 #. type: verbatim
38155 #: ../src/guestfs.pod:2226
38156 #, no-wrap
38157 msgid ""
38158 " /* Display all calls to guestfs_mkfs* functions. */\n"
38159 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
38160 "           .function(\"guestfs_mkfs*\") ? {\n"
38161 "       display_time();\n"
38162 "       printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
38163 " }\n"
38164 "\n"
38165 msgstr ""
38166
38167 #. type: textblock
38168 #: ../src/guestfs.pod:2233
38169 msgid ""
38170 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
38171 "program.  Note that you either have to be root, or you have to add yourself "
38172 "to several special stap groups.  Consult the systemtap documentation for "
38173 "more information."
38174 msgstr ""
38175
38176 #. type: verbatim
38177 #: ../src/guestfs.pod:2238
38178 #, no-wrap
38179 msgid ""
38180 " # stap /tmp/test.stap\n"
38181 " ready\n"
38182 "\n"
38183 msgstr ""
38184
38185 #. type: textblock
38186 #: ../src/guestfs.pod:2241
38187 msgid "In another terminal, run a guestfish command such as this:"
38188 msgstr ""
38189
38190 #. type: textblock
38191 #: ../src/guestfs.pod:2245
38192 msgid "In the first terminal, stap trace output similar to this is shown:"
38193 msgstr ""
38194
38195 #. type: verbatim
38196 #: ../src/guestfs.pod:2247
38197 #, no-wrap
38198 msgid ""
38199 " 1318248056692655 (+0):\tlaunch_start\n"
38200 " 1318248056692850 (+195):       launch_build_appliance_start\n"
38201 " 1318248056818285 (+125435):    launch_build_appliance_end\n"
38202 " 1318248056838059 (+19774):     launch_run_qemu\n"
38203 " 1318248061071167 (+4233108):   launch_end\n"
38204 " 1318248061280324 (+209157):    guestfs_mkfs g=0x1024ab0 fstype=0x46116f "
38205 "device=0x1024e60\n"
38206 "\n"
38207 msgstr ""
38208
38209 #. type: =end
38210 #: ../src/guestfs.pod:2254 ../src/guestfs.pod:2259
38211 msgid "html"
38212 msgstr ""
38213
38214 #. type: textblock
38215 #: ../src/guestfs.pod:2256
38216 msgid ""
38217 "<!-- old anchor for the next section --> <a "
38218 "name=\"state_machine_and_low_level_event_api\"/>"
38219 msgstr ""
38220
38221 #. type: =head1
38222 #: ../src/guestfs.pod:2261
38223 msgid "ARCHITECTURE"
38224 msgstr ""
38225
38226 #. type: textblock
38227 #: ../src/guestfs.pod:2263
38228 msgid ""
38229 "Internally, libguestfs is implemented by running an appliance (a special "
38230 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
38231 "process of the main program."
38232 msgstr ""
38233
38234 #. type: verbatim
38235 #: ../src/guestfs.pod:2267
38236 #, no-wrap
38237 msgid ""
38238 "  ___________________\n"
38239 " /                   \\\n"
38240 " | main program      |\n"
38241 " |                   |\n"
38242 " |                   |           child process / appliance\n"
38243 " |                   |           __________________________\n"
38244 " |                   |          / qemu                     \\\n"
38245 " +-------------------+   RPC    |      +-----------------+ |\n"
38246 " | libguestfs     <--------------------> guestfsd        | |\n"
38247 " |                   |          |      +-----------------+ |\n"
38248 " \\___________________/          |      | Linux kernel    | |\n"
38249 "                                |      +--^--------------+ |\n"
38250 "                                \\_________|________________/\n"
38251 "                                          |\n"
38252 "                                   _______v______\n"
38253 "                                  /              \\\n"
38254 "                                  | Device or    |\n"
38255 "                                  | disk image   |\n"
38256 "                                  \\______________/\n"
38257 "\n"
38258 msgstr ""
38259
38260 #. type: textblock
38261 #: ../src/guestfs.pod:2287
38262 msgid ""
38263 "The library, linked to the main program, creates the child process and hence "
38264 "the appliance in the L</guestfs_launch> function."
38265 msgstr ""
38266
38267 #. type: textblock
38268 #: ../src/guestfs.pod:2290
38269 msgid ""
38270 "Inside the appliance is a Linux kernel and a complete stack of userspace "
38271 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
38272 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
38273 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
38274 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
38275 "attached to the qemu process which translates device access by the "
38276 "appliance's Linux kernel into accesses to the image."
38277 msgstr ""
38278
38279 #. type: textblock
38280 #: ../src/guestfs.pod:2299
38281 msgid ""
38282 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
38283 "Although the disk image you are attached to might also be used by some "
38284 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
38285 "care if both libguestfs's qemu process and your virtual machine are trying "
38286 "to update the disk image at the same time, since these usually results in "
38287 "massive disk corruption)."
38288 msgstr ""
38289
38290 #. type: =head1
38291 #: ../src/guestfs.pod:2306
38292 msgid "STATE MACHINE"
38293 msgstr ""
38294
38295 #. type: textblock
38296 #: ../src/guestfs.pod:2308
38297 msgid "libguestfs uses a state machine to model the child process:"
38298 msgstr ""
38299
38300 #. type: verbatim
38301 #: ../src/guestfs.pod:2310
38302 #, no-wrap
38303 msgid ""
38304 "                         |\n"
38305 "                    guestfs_create\n"
38306 "                         |\n"
38307 "                         |\n"
38308 "                     ____V_____\n"
38309 "                    /          \\\n"
38310 "                    |  CONFIG  |\n"
38311 "                    \\__________/\n"
38312 "                     ^ ^   ^  \\\n"
38313 "                    /  |    \\  \\ guestfs_launch\n"
38314 "                   /   |    _\\__V______\n"
38315 "                  /    |   /           \\\n"
38316 "                 /     |   | LAUNCHING |\n"
38317 "                /      |   \\___________/\n"
38318 "               /       |       /\n"
38319 "              /        |  guestfs_launch\n"
38320 "             /         |     /\n"
38321 "    ______  /        __|____V\n"
38322 "   /      \\ ------> /        \\\n"
38323 "   | BUSY |         | READY  |\n"
38324 "   \\______/ <------ \\________/\n"
38325 "\n"
38326 msgstr ""
38327
38328 #. type: textblock
38329 #: ../src/guestfs.pod:2332
38330 msgid ""
38331 "The normal transitions are (1) CONFIG (when the handle is created, but there "
38332 "is no child process), (2) LAUNCHING (when the child process is booting up), "
38333 "(3) alternating between READY and BUSY as commands are issued to, and "
38334 "carried out by, the child process."
38335 msgstr ""
38336
38337 #. type: textblock
38338 #: ../src/guestfs.pod:2337
38339 msgid ""
38340 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
38341 "asynchronously at any time (eg. due to some internal error), and that causes "
38342 "the state to transition back to CONFIG."
38343 msgstr ""
38344
38345 #. type: textblock
38346 #: ../src/guestfs.pod:2341
38347 msgid ""
38348 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
38349 "issued when in the CONFIG state."
38350 msgstr ""
38351
38352 #. type: textblock
38353 #: ../src/guestfs.pod:2344
38354 msgid ""
38355 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
38356 "L</guestfs_launch> blocks until the child process is READY to accept "
38357 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
38358 "moves the state from CONFIG to LAUNCHING while it is running."
38359 msgstr ""
38360
38361 #. type: textblock
38362 #: ../src/guestfs.pod:2350
38363 msgid ""
38364 "API actions such as L</guestfs_mount> can only be issued when in the READY "
38365 "state.  These API calls block waiting for the command to be carried out "
38366 "(ie. the state to transition to BUSY and then back to READY).  There are no "
38367 "non-blocking versions, and no way to issue more than one command per handle "
38368 "at the same time."
38369 msgstr ""
38370
38371 #. type: textblock
38372 #: ../src/guestfs.pod:2356
38373 msgid ""
38374 "Finally, the child process sends asynchronous messages back to the main "
38375 "program, such as kernel log messages.  You can register a callback to "
38376 "receive these messages."
38377 msgstr ""
38378
38379 #. type: =head1
38380 #: ../src/guestfs.pod:2360
38381 msgid "INTERNALS"
38382 msgstr ""
38383
38384 #. type: =head2
38385 #: ../src/guestfs.pod:2362
38386 msgid "APPLIANCE BOOT PROCESS"
38387 msgstr ""
38388
38389 #. type: textblock
38390 #: ../src/guestfs.pod:2364
38391 msgid ""
38392 "This process has evolved and continues to evolve.  The description here "
38393 "corresponds only to the current version of libguestfs and is provided for "
38394 "information only."
38395 msgstr ""
38396
38397 #. type: textblock
38398 #: ../src/guestfs.pod:2368
38399 msgid ""
38400 "In order to follow the stages involved below, enable libguestfs debugging "
38401 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
38402 msgstr ""
38403
38404 #. type: =item
38405 #: ../src/guestfs.pod:2373
38406 msgid "Create the appliance"
38407 msgstr ""
38408
38409 #. type: textblock
38410 #: ../src/guestfs.pod:2375
38411 msgid ""
38412 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
38413 "initrd and the appliance."
38414 msgstr ""
38415
38416 #. type: textblock
38417 #: ../src/guestfs.pod:2378
38418 msgid ""
38419 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
38420 "directory if C<TMPDIR> is set)."
38421 msgstr ""
38422
38423 #. type: textblock
38424 #: ../src/guestfs.pod:2381
38425 msgid ""
38426 "For a complete description of how the appliance is created and cached, read "
38427 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
38428 msgstr ""
38429
38430 #. type: =item
38431 #: ../src/guestfs.pod:2385
38432 msgid "Start qemu and boot the kernel"
38433 msgstr ""
38434
38435 #. type: textblock
38436 #: ../src/guestfs.pod:2387
38437 msgid "qemu is invoked to boot the kernel."
38438 msgstr ""
38439
38440 #. type: =item
38441 #: ../src/guestfs.pod:2389
38442 msgid "Run the initrd"
38443 msgstr ""
38444
38445 #. type: textblock
38446 #: ../src/guestfs.pod:2391
38447 msgid ""
38448 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
38449 "appliance.  The purpose of the initrd is to load enough kernel modules in "
38450 "order that the appliance itself can be mounted and started."
38451 msgstr ""
38452
38453 #. type: textblock
38454 #: ../src/guestfs.pod:2395
38455 msgid ""
38456 "The initrd is a cpio archive called "
38457 "C</var/tmp/.guestfs-E<lt>UIDE<gt>/initrd>."
38458 msgstr ""
38459
38460 #. type: textblock
38461 #: ../src/guestfs.pod:2398
38462 msgid ""
38463 "When the initrd has started you will see messages showing that kernel "
38464 "modules are being loaded, similar to this:"
38465 msgstr ""
38466
38467 #. type: verbatim
38468 #: ../src/guestfs.pod:2401
38469 #, no-wrap
38470 msgid ""
38471 " febootstrap: ext2 mini initrd starting up\n"
38472 " febootstrap: mounting /sys\n"
38473 " febootstrap: internal insmod libcrc32c.ko\n"
38474 " febootstrap: internal insmod crc32c-intel.ko\n"
38475 "\n"
38476 msgstr ""
38477
38478 #. type: =item
38479 #: ../src/guestfs.pod:2406
38480 msgid "Find and mount the appliance device"
38481 msgstr ""
38482
38483 #. type: textblock
38484 #: ../src/guestfs.pod:2408
38485 msgid ""
38486 "The appliance is a sparse file containing an ext2 filesystem which contains "
38487 "a familiar (although reduced in size) Linux operating system.  It would "
38488 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
38489 msgstr ""
38490
38491 #. type: textblock
38492 #: ../src/guestfs.pod:2412
38493 msgid ""
38494 "The regular disks being inspected by libguestfs are the first devices "
38495 "exposed by qemu (eg. as C</dev/vda>)."
38496 msgstr ""
38497
38498 #. type: textblock
38499 #: ../src/guestfs.pod:2415
38500 msgid ""
38501 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
38502 "there was only one regular disk)."
38503 msgstr ""
38504
38505 #. type: textblock
38506 #: ../src/guestfs.pod:2418
38507 msgid ""
38508 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
38509 "and switch root into the appliance, and run C</init> from the appliance."
38510 msgstr ""
38511
38512 #. type: textblock
38513 #: ../src/guestfs.pod:2422
38514 msgid "If this works successfully you will see messages such as:"
38515 msgstr ""
38516
38517 #. type: verbatim
38518 #: ../src/guestfs.pod:2424
38519 #, no-wrap
38520 msgid ""
38521 " febootstrap: picked /sys/block/vdb/dev as root device\n"
38522 " febootstrap: creating /dev/root as block special 252:16\n"
38523 " febootstrap: mounting new root on /root\n"
38524 " febootstrap: chroot\n"
38525 " Starting /init script ...\n"
38526 "\n"
38527 msgstr ""
38528
38529 #. type: textblock
38530 #: ../src/guestfs.pod:2430
38531 msgid ""
38532 "Note that C<Starting /init script ...> indicates that the appliance's init "
38533 "script is now running."
38534 msgstr ""
38535
38536 #. type: =item
38537 #: ../src/guestfs.pod:2433
38538 msgid "Initialize the appliance"
38539 msgstr ""
38540
38541 #. type: textblock
38542 #: ../src/guestfs.pod:2435
38543 msgid ""
38544 "The appliance itself now initializes itself.  This involves starting certain "
38545 "processes like C<udev>, possibly printing some debug information, and "
38546 "finally running the daemon (C<guestfsd>)."
38547 msgstr ""
38548
38549 #. type: =item
38550 #: ../src/guestfs.pod:2439
38551 msgid "The daemon"
38552 msgstr ""
38553
38554 #. type: textblock
38555 #: ../src/guestfs.pod:2441
38556 msgid ""
38557 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
38558 "should see:"
38559 msgstr ""
38560
38561 #. type: verbatim
38562 #: ../src/guestfs.pod:2444
38563 #, no-wrap
38564 msgid ""
38565 " verbose daemon enabled\n"
38566 "\n"
38567 msgstr ""
38568
38569 #. type: textblock
38570 #: ../src/guestfs.pod:2446
38571 msgid ""
38572 "The daemon expects to see a named virtio-serial port exposed by qemu and "
38573 "connected on the other end to the library."
38574 msgstr ""
38575
38576 #. type: textblock
38577 #: ../src/guestfs.pod:2449
38578 msgid ""
38579 "The daemon connects to this port (and hence to the library) and sends a four "
38580 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
38581 "protocol (see below)."
38582 msgstr ""
38583
38584 #. type: =head2
38585 #: ../src/guestfs.pod:2455
38586 msgid "COMMUNICATION PROTOCOL"
38587 msgstr ""
38588
38589 #. type: textblock
38590 #: ../src/guestfs.pod:2457
38591 msgid ""
38592 "Don't rely on using this protocol directly.  This section documents how it "
38593 "currently works, but it may change at any time."
38594 msgstr ""
38595
38596 #. type: textblock
38597 #: ../src/guestfs.pod:2460
38598 msgid ""
38599 "The protocol used to talk between the library and the daemon running inside "
38600 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
38601 "1014, RFC 1832, RFC 4506)."
38602 msgstr ""
38603
38604 #. type: textblock
38605 #: ../src/guestfs.pod:2464
38606 msgid ""
38607 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
38608 "this file is automatically generated)."
38609 msgstr ""
38610
38611 #. type: textblock
38612 #: ../src/guestfs.pod:2467
38613 msgid ""
38614 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
38615 "and C<FileOut> parameters, which are handled with very simple request/reply "
38616 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
38617 "parameters, which use the same request and reply messages, but they may also "
38618 "be followed by files sent using a chunked encoding."
38619 msgstr ""
38620
38621 #. type: =head3
38622 #: ../src/guestfs.pod:2474
38623 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
38624 msgstr ""
38625
38626 #. type: textblock
38627 #: ../src/guestfs.pod:2476
38628 msgid "For ordinary functions, the request message is:"
38629 msgstr ""
38630
38631 #. type: verbatim
38632 #: ../src/guestfs.pod:2478
38633 #, no-wrap
38634 msgid ""
38635 " total length (header + arguments,\n"
38636 "      but not including the length word itself)\n"
38637 " struct guestfs_message_header (encoded as XDR)\n"
38638 " struct guestfs_<foo>_args (encoded as XDR)\n"
38639 "\n"
38640 msgstr ""
38641
38642 #. type: textblock
38643 #: ../src/guestfs.pod:2483
38644 msgid ""
38645 "The total length field allows the daemon to allocate a fixed size buffer "
38646 "into which it slurps the rest of the message.  As a result, the total length "
38647 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
38648 "effective size of any request is limited to somewhere under this size."
38649 msgstr ""
38650
38651 #. type: textblock
38652 #: ../src/guestfs.pod:2489
38653 msgid ""
38654 "Note also that many functions don't take any arguments, in which case the "
38655 "C<guestfs_I<foo>_args> is completely omitted."
38656 msgstr ""
38657
38658 #. type: textblock
38659 #: ../src/guestfs.pod:2492
38660 msgid ""
38661 "The header contains the procedure number (C<guestfs_proc>) which is how the "
38662 "receiver knows what type of args structure to expect, or none at all."
38663 msgstr ""
38664
38665 #. type: textblock
38666 #: ../src/guestfs.pod:2496
38667 msgid ""
38668 "For functions that take optional arguments, the optional arguments are "
38669 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
38670 "arguments.  A bitmask in the header indicates which optional arguments are "
38671 "meaningful.  The bitmask is also checked to see if it contains bits set "
38672 "which the daemon does not know about (eg. if more optional arguments were "
38673 "added in a later version of the library), and this causes the call to be "
38674 "rejected."
38675 msgstr ""
38676
38677 #. type: textblock
38678 #: ../src/guestfs.pod:2504
38679 msgid "The reply message for ordinary functions is:"
38680 msgstr ""
38681
38682 #. type: verbatim
38683 #: ../src/guestfs.pod:2506
38684 #, no-wrap
38685 msgid ""
38686 " total length (header + ret,\n"
38687 "      but not including the length word itself)\n"
38688 " struct guestfs_message_header (encoded as XDR)\n"
38689 " struct guestfs_<foo>_ret (encoded as XDR)\n"
38690 "\n"
38691 msgstr ""
38692
38693 #. type: textblock
38694 #: ../src/guestfs.pod:2511
38695 msgid ""
38696 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
38697 "functions that return no formal return values."
38698 msgstr ""
38699
38700 #. type: textblock
38701 #: ../src/guestfs.pod:2514
38702 msgid "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
38703 msgstr ""
38704
38705 #. type: textblock
38706 #: ../src/guestfs.pod:2517
38707 msgid ""
38708 "In the case of an error, a flag is set in the header, and the reply message "
38709 "is slightly changed:"
38710 msgstr ""
38711
38712 #. type: verbatim
38713 #: ../src/guestfs.pod:2520
38714 #, no-wrap
38715 msgid ""
38716 " total length (header + error,\n"
38717 "      but not including the length word itself)\n"
38718 " struct guestfs_message_header (encoded as XDR)\n"
38719 " struct guestfs_message_error (encoded as XDR)\n"
38720 "\n"
38721 msgstr ""
38722
38723 #. type: textblock
38724 #: ../src/guestfs.pod:2525
38725 msgid ""
38726 "The C<guestfs_message_error> structure contains the error message as a "
38727 "string."
38728 msgstr ""
38729
38730 #. type: =head3
38731 #: ../src/guestfs.pod:2528
38732 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
38733 msgstr ""
38734
38735 #. type: textblock
38736 #: ../src/guestfs.pod:2530
38737 msgid ""
38738 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
38739 "The normal request message is sent (see above).  However this is followed by "
38740 "a sequence of file chunks."
38741 msgstr ""
38742
38743 #. type: verbatim
38744 #: ../src/guestfs.pod:2534
38745 #, no-wrap
38746 msgid ""
38747 " total length (header + arguments,\n"
38748 "      but not including the length word itself,\n"
38749 "      and not including the chunks)\n"
38750 " struct guestfs_message_header (encoded as XDR)\n"
38751 " struct guestfs_<foo>_args (encoded as XDR)\n"
38752 " sequence of chunks for FileIn param #0\n"
38753 " sequence of chunks for FileIn param #1 etc.\n"
38754 "\n"
38755 msgstr ""
38756
38757 #. type: textblock
38758 #: ../src/guestfs.pod:2542
38759 msgid "The \"sequence of chunks\" is:"
38760 msgstr ""
38761
38762 #. type: verbatim
38763 #: ../src/guestfs.pod:2544
38764 #, no-wrap
38765 msgid ""
38766 " length of chunk (not including length word itself)\n"
38767 " struct guestfs_chunk (encoded as XDR)\n"
38768 " length of chunk\n"
38769 " struct guestfs_chunk (encoded as XDR)\n"
38770 "   ...\n"
38771 " length of chunk\n"
38772 " struct guestfs_chunk (with data.data_len == 0)\n"
38773 "\n"
38774 msgstr ""
38775
38776 #. type: textblock
38777 #: ../src/guestfs.pod:2552
38778 msgid ""
38779 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
38780 "is set in the final chunk to indicate either successful completion or early "
38781 "cancellation."
38782 msgstr ""
38783
38784 #. type: textblock
38785 #: ../src/guestfs.pod:2556
38786 msgid ""
38787 "At time of writing there are no functions that have more than one FileIn "
38788 "parameter.  However this is (theoretically) supported, by sending the "
38789 "sequence of chunks for each FileIn parameter one after another (from left to "
38790 "right)."
38791 msgstr ""
38792
38793 #. type: textblock
38794 #: ../src/guestfs.pod:2561
38795 msgid ""
38796 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
38797 "transfer.  The library does this by sending a chunk with a special flag set "
38798 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
38799 "RPC, does I<not> send any reply, and goes back to reading the next request."
38800 msgstr ""
38801
38802 #. type: textblock
38803 #: ../src/guestfs.pod:2567
38804 msgid ""
38805 "The daemon may also cancel.  It does this by writing a special word "
38806 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
38807 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
38808 "cancel chunk).  The special word is chosen so that even if cancellation "
38809 "happens right at the end of the transfer (after the library has finished "
38810 "writing and has started listening for the reply), the \"spurious\" cancel "
38811 "flag will not be confused with the reply message."
38812 msgstr ""
38813
38814 #. type: textblock
38815 #: ../src/guestfs.pod:2576
38816 msgid ""
38817 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
38818 "limit), and also files where the size is not known in advance (eg. from "
38819 "pipes or sockets).  However the chunks are rather small "
38820 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
38821 "to keep much in memory."
38822 msgstr ""
38823
38824 #. type: =head3
38825 #: ../src/guestfs.pod:2582
38826 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
38827 msgstr ""
38828
38829 #. type: textblock
38830 #: ../src/guestfs.pod:2584
38831 msgid ""
38832 "The protocol for FileOut parameters is exactly the same as for FileIn "
38833 "parameters, but with the roles of daemon and library reversed."
38834 msgstr ""
38835
38836 #. type: verbatim
38837 #: ../src/guestfs.pod:2587
38838 #, no-wrap
38839 msgid ""
38840 " total length (header + ret,\n"
38841 "      but not including the length word itself,\n"
38842 "      and not including the chunks)\n"
38843 " struct guestfs_message_header (encoded as XDR)\n"
38844 " struct guestfs_<foo>_ret (encoded as XDR)\n"
38845 " sequence of chunks for FileOut param #0\n"
38846 " sequence of chunks for FileOut param #1 etc.\n"
38847 "\n"
38848 msgstr ""
38849
38850 #. type: =head3
38851 #: ../src/guestfs.pod:2595
38852 msgid "INITIAL MESSAGE"
38853 msgstr ""
38854
38855 #. type: textblock
38856 #: ../src/guestfs.pod:2597
38857 msgid ""
38858 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
38859 "which indicates that the guest and daemon is alive.  This is what "
38860 "L</guestfs_launch> waits for."
38861 msgstr ""
38862
38863 #. type: =head3
38864 #: ../src/guestfs.pod:2601
38865 msgid "PROGRESS NOTIFICATION MESSAGES"
38866 msgstr ""
38867
38868 #. type: textblock
38869 #: ../src/guestfs.pod:2603
38870 msgid ""
38871 "The daemon may send progress notification messages at any time.  These are "
38872 "distinguished by the normal length word being replaced by "
38873 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
38874 msgstr ""
38875
38876 #. type: textblock
38877 #: ../src/guestfs.pod:2607
38878 msgid ""
38879 "The library turns them into progress callbacks (see "
38880 "L</GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards "
38881 "them if not."
38882 msgstr ""
38883
38884 #. type: textblock
38885 #: ../src/guestfs.pod:2611
38886 msgid ""
38887 "The daemon self-limits the frequency of progress messages it sends (see "
38888 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
38889 "messages."
38890 msgstr ""
38891
38892 #. type: =head1
38893 #: ../src/guestfs.pod:2615
38894 msgid "LIBGUESTFS VERSION NUMBERS"
38895 msgstr ""
38896
38897 #. type: textblock
38898 #: ../src/guestfs.pod:2617
38899 msgid ""
38900 "Since April 2010, libguestfs has started to make separate development and "
38901 "stable releases, along with corresponding branches in our git repository.  "
38902 "These separate releases can be identified by version number:"
38903 msgstr ""
38904
38905 #. type: verbatim
38906 #: ../src/guestfs.pod:2622
38907 #, no-wrap
38908 msgid ""
38909 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
38910 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
38911 "       |\n"
38912 "       v\n"
38913 " 1  .  3  .  5\n"
38914 " ^           ^\n"
38915 " |           |\n"
38916 " |           `-------- sub-version\n"
38917 " |\n"
38918 " `------ always '1' because we don't change the ABI\n"
38919 "\n"
38920 msgstr ""
38921
38922 #. type: textblock
38923 #: ../src/guestfs.pod:2633
38924 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
38925 msgstr ""
38926
38927 #. type: textblock
38928 #: ../src/guestfs.pod:2635
38929 msgid ""
38930 "As time passes we cherry pick fixes from the development branch and backport "
38931 "those into the stable branch, the effect being that the stable branch should "
38932 "get more stable and less buggy over time.  So the stable releases are ideal "
38933 "for people who don't need new features but would just like the software to "
38934 "work."
38935 msgstr ""
38936
38937 #. type: textblock
38938 #: ../src/guestfs.pod:2641
38939 msgid "Our criteria for backporting changes are:"
38940 msgstr ""
38941
38942 #. type: textblock
38943 #: ../src/guestfs.pod:2647
38944 msgid ""
38945 "Documentation changes which don't affect any code are backported unless the "
38946 "documentation refers to a future feature which is not in stable."
38947 msgstr ""
38948
38949 #. type: textblock
38950 #: ../src/guestfs.pod:2653
38951 msgid ""
38952 "Bug fixes which are not controversial, fix obvious problems, and have been "
38953 "well tested are backported."
38954 msgstr ""
38955
38956 #. type: textblock
38957 #: ../src/guestfs.pod:2658
38958 msgid ""
38959 "Simple rearrangements of code which shouldn't affect how it works get "
38960 "backported.  This is so that the code in the two branches doesn't get too "
38961 "far out of step, allowing us to backport future fixes more easily."
38962 msgstr ""
38963
38964 #. type: textblock
38965 #: ../src/guestfs.pod:2664
38966 msgid ""
38967 "We I<don't> backport new features, new APIs, new tools etc, except in one "
38968 "exceptional case: the new feature is required in order to implement an "
38969 "important bug fix."
38970 msgstr ""
38971
38972 #. type: textblock
38973 #: ../src/guestfs.pod:2670
38974 msgid ""
38975 "A new stable branch starts when we think the new features in development are "
38976 "substantial and compelling enough over the current stable branch to warrant "
38977 "it.  When that happens we create new stable and development versions 1.N.0 "
38978 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
38979 "stable at this point, but by backporting fixes from development, that branch "
38980 "will stabilize over time."
38981 msgstr ""
38982
38983 #. type: =head1
38984 #: ../src/guestfs.pod:2678
38985 msgid "EXTENDING LIBGUESTFS"
38986 msgstr ""
38987
38988 #. type: =head2
38989 #: ../src/guestfs.pod:2680
38990 msgid "ADDING A NEW API ACTION"
38991 msgstr ""
38992
38993 #. type: textblock
38994 #: ../src/guestfs.pod:2682
38995 msgid ""
38996 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
38997 "documentation) are generated, and this makes it easy to extend the "
38998 "libguestfs API."
38999 msgstr ""
39000
39001 #. type: textblock
39002 #: ../src/guestfs.pod:2686
39003 msgid "To add a new API action there are two changes:"
39004 msgstr ""
39005
39006 #. type: textblock
39007 #: ../src/guestfs.pod:2692
39008 msgid ""
39009 "You need to add a description of the call (name, parameters, return type, "
39010 "tests, documentation) to C<generator/generator_actions.ml>."
39011 msgstr ""
39012
39013 #. type: textblock
39014 #: ../src/guestfs.pod:2695
39015 msgid ""
39016 "There are two sorts of API action, depending on whether the call goes "
39017 "through to the daemon in the appliance, or is serviced entirely by the "
39018 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
39019 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
39020 "an example of the latter, since a trace flag is maintained in the handle and "
39021 "all tracing is done on the library side."
39022 msgstr ""
39023
39024 #. type: textblock
39025 #: ../src/guestfs.pod:2703
39026 msgid ""
39027 "Most new actions are of the first type, and get added to the "
39028 "C<daemon_functions> list.  Each function has a unique procedure number used "
39029 "in the RPC protocol which is assigned to that action when we publish "
39030 "libguestfs and cannot be reused.  Take the latest procedure number and "
39031 "increment it."
39032 msgstr ""
39033
39034 #. type: textblock
39035 #: ../src/guestfs.pod:2709
39036 msgid ""
39037 "For library-only actions of the second type, add to the "
39038 "C<non_daemon_functions> list.  Since these functions are serviced by the "
39039 "library and do not travel over the RPC mechanism to the daemon, these "
39040 "functions do not need a procedure number, and so the procedure number is set "
39041 "to C<-1>."
39042 msgstr ""
39043
39044 #. type: textblock
39045 #: ../src/guestfs.pod:2717
39046 msgid "Implement the action (in C):"
39047 msgstr ""
39048
39049 #. type: textblock
39050 #: ../src/guestfs.pod:2719
39051 msgid ""
39052 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
39053 "C<daemon/> directory."
39054 msgstr ""
39055
39056 #. type: textblock
39057 #: ../src/guestfs.pod:2722
39058 msgid ""
39059 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
39060 "(note: double underscore) in the C<src/> directory."
39061 msgstr ""
39062
39063 #. type: textblock
39064 #: ../src/guestfs.pod:2725
39065 msgid "In either case, use another function as an example of what to do."
39066 msgstr ""
39067
39068 #. type: textblock
39069 #: ../src/guestfs.pod:2729
39070 msgid "After making these changes, use C<make> to compile."
39071 msgstr ""
39072
39073 #. type: textblock
39074 #: ../src/guestfs.pod:2731
39075 msgid ""
39076 "Note that you don't need to implement the RPC, language bindings, manual "
39077 "pages or anything else.  It's all automatically generated from the OCaml "
39078 "description."
39079 msgstr ""
39080
39081 #. type: =head2
39082 #: ../src/guestfs.pod:2735
39083 msgid "ADDING TESTS FOR AN API ACTION"
39084 msgstr ""
39085
39086 #. type: textblock
39087 #: ../src/guestfs.pod:2737
39088 msgid ""
39089 "You can supply zero or as many tests as you want per API call.  The tests "
39090 "can either be added as part of the API description "
39091 "(C<generator/generator_actions.ml>), or in some rarer cases you may want to "
39092 "drop a script into C<regressions/>.  Note that adding a script to "
39093 "C<regressions/> is slower, so if possible use the first method."
39094 msgstr ""
39095
39096 #. type: textblock
39097 #: ../src/guestfs.pod:2743
39098 msgid ""
39099 "The following describes the test environment used when you add an API test "
39100 "in C<generator_actions.ml>."
39101 msgstr ""
39102
39103 #. type: textblock
39104 #: ../src/guestfs.pod:2746
39105 msgid "The test environment has 4 block devices:"
39106 msgstr ""
39107
39108 #. type: =item
39109 #: ../src/guestfs.pod:2750
39110 msgid "C</dev/sda> 500MB"
39111 msgstr ""
39112
39113 #. type: textblock
39114 #: ../src/guestfs.pod:2752
39115 msgid "General block device for testing."
39116 msgstr ""
39117
39118 #. type: =item
39119 #: ../src/guestfs.pod:2754
39120 msgid "C</dev/sdb> 50MB"
39121 msgstr ""
39122
39123 #. type: textblock
39124 #: ../src/guestfs.pod:2756
39125 msgid ""
39126 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
39127 "operations."
39128 msgstr ""
39129
39130 #. type: =item
39131 #: ../src/guestfs.pod:2759
39132 msgid "C</dev/sdc> 10MB"
39133 msgstr ""
39134
39135 #. type: textblock
39136 #: ../src/guestfs.pod:2761
39137 msgid "Used in a few tests where two block devices are needed."
39138 msgstr ""
39139
39140 #. type: =item
39141 #: ../src/guestfs.pod:2763
39142 msgid "C</dev/sdd>"
39143 msgstr ""
39144
39145 #. type: textblock
39146 #: ../src/guestfs.pod:2765
39147 msgid "ISO with fixed content (see C<images/test.iso>)."
39148 msgstr ""
39149
39150 #. type: textblock
39151 #: ../src/guestfs.pod:2769
39152 msgid ""
39153 "To be able to run the tests in a reasonable amount of time, the libguestfs "
39154 "appliance and block devices are reused between tests.  So don't try testing "
39155 "L</guestfs_kill_subprocess> :-x"
39156 msgstr ""
39157
39158 #. type: textblock
39159 #: ../src/guestfs.pod:2773
39160 msgid ""
39161 "Each test starts with an initial scenario, selected using one of the "
39162 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
39163 "initialize the disks mentioned above in a particular way as documented in "
39164 "C<generator_types.ml>.  You should not assume anything about the previous "
39165 "contents of other disks that are not initialized."
39166 msgstr ""
39167
39168 #. type: textblock
39169 #: ../src/guestfs.pod:2779
39170 msgid ""
39171 "You can add a prerequisite clause to any individual test.  This is a "
39172 "run-time check, which, if it fails, causes the test to be skipped.  Useful "
39173 "if testing a command which might not work on all variations of libguestfs "
39174 "builds.  A test that has prerequisite of C<Always> means to run "
39175 "unconditionally."
39176 msgstr ""
39177
39178 #. type: textblock
39179 #: ../src/guestfs.pod:2785
39180 msgid ""
39181 "In addition, packagers can skip individual tests by setting environment "
39182 "variables before running C<make check>."
39183 msgstr ""
39184
39185 #. type: verbatim
39186 #: ../src/guestfs.pod:2788
39187 #, no-wrap
39188 msgid ""
39189 " SKIP_TEST_<CMD>_<NUM>=1\n"
39190 "\n"
39191 msgstr ""
39192
39193 #. type: textblock
39194 #: ../src/guestfs.pod:2790
39195 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
39196 msgstr ""
39197
39198 #. type: verbatim
39199 #: ../src/guestfs.pod:2794
39200 #, no-wrap
39201 msgid ""
39202 " SKIP_TEST_<CMD>=1\n"
39203 "\n"
39204 msgstr ""
39205
39206 #. type: textblock
39207 #: ../src/guestfs.pod:2796
39208 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
39209 msgstr ""
39210
39211 #. type: textblock
39212 #: ../src/guestfs.pod:2798
39213 msgid "Packagers can run only certain tests by setting for example:"
39214 msgstr ""
39215
39216 #. type: verbatim
39217 #: ../src/guestfs.pod:2800
39218 #, no-wrap
39219 msgid ""
39220 " TEST_ONLY=\"vfs_type zerofree\"\n"
39221 "\n"
39222 msgstr ""
39223
39224 #. type: textblock
39225 #: ../src/guestfs.pod:2802
39226 msgid ""
39227 "See C<capitests/tests.c> for more details of how these environment variables "
39228 "work."
39229 msgstr ""
39230
39231 #. type: =head2
39232 #: ../src/guestfs.pod:2805
39233 msgid "DEBUGGING NEW API ACTIONS"
39234 msgstr ""
39235
39236 #. type: textblock
39237 #: ../src/guestfs.pod:2807
39238 msgid "Test new actions work before submitting them."
39239 msgstr ""
39240
39241 #. type: textblock
39242 #: ../src/guestfs.pod:2809
39243 msgid "You can use guestfish to try out new commands."
39244 msgstr ""
39245
39246 #. type: textblock
39247 #: ../src/guestfs.pod:2811
39248 msgid ""
39249 "Debugging the daemon is a problem because it runs inside a minimal "
39250 "environment.  However you can fprintf messages in the daemon to stderr, and "
39251 "they will show up if you use C<guestfish -v>."
39252 msgstr ""
39253
39254 #. type: =head2
39255 #: ../src/guestfs.pod:2815
39256 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
39257 msgstr ""
39258
39259 #. type: textblock
39260 #: ../src/guestfs.pod:2817
39261 msgid ""
39262 "Our C source code generally adheres to some basic code-formatting "
39263 "conventions.  The existing code base is not totally consistent on this "
39264 "front, but we do prefer that contributed code be formatted similarly.  In "
39265 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
39266 "indentation level, and other than that, follow the K&R style."
39267 msgstr ""
39268
39269 #. type: textblock
39270 #: ../src/guestfs.pod:2823
39271 msgid ""
39272 "If you use Emacs, add the following to one of one of your start-up files "
39273 "(e.g., ~/.emacs), to help ensure that you get indentation right:"
39274 msgstr ""
39275
39276 #. type: verbatim
39277 #: ../src/guestfs.pod:2826
39278 #, no-wrap
39279 msgid ""
39280 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
39281 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
39282 " (add-hook 'find-file-hook\n"
39283 "     '(lambda () (if (and buffer-file-name\n"
39284 "                          (string-match \"/libguestfs\\\\>\"\n"
39285 "                              (buffer-file-name))\n"
39286 "                          (not (string-equal mode-name \"Change Log\"))\n"
39287 "                          (not (string-equal mode-name \"Makefile\")))\n"
39288 "                     (setq indent-tabs-mode nil))))\n"
39289 " \n"
39290 msgstr ""
39291
39292 #. type: verbatim
39293 #: ../src/guestfs.pod:2836
39294 #, no-wrap
39295 msgid ""
39296 " ;;; When editing C sources in libguestfs, use this style.\n"
39297 " (defun libguestfs-c-mode ()\n"
39298 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
39299 "   (interactive)\n"
39300 "   (c-set-style \"K&R\")\n"
39301 "   (setq c-indent-level 2)\n"
39302 "   (setq c-basic-offset 2))\n"
39303 " (add-hook 'c-mode-hook\n"
39304 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
39305 "                               (buffer-file-name))\n"
39306 "                           (libguestfs-c-mode))))\n"
39307 "\n"
39308 msgstr ""
39309
39310 #. type: textblock
39311 #: ../src/guestfs.pod:2848
39312 msgid "Enable warnings when compiling (and fix any problems this finds):"
39313 msgstr ""
39314
39315 #. type: verbatim
39316 #: ../src/guestfs.pod:2851
39317 #, no-wrap
39318 msgid ""
39319 " ./configure --enable-gcc-warnings\n"
39320 "\n"
39321 msgstr ""
39322
39323 #. type: textblock
39324 #: ../src/guestfs.pod:2853
39325 msgid "Useful targets are:"
39326 msgstr ""
39327
39328 #. type: verbatim
39329 #: ../src/guestfs.pod:2855
39330 #, no-wrap
39331 msgid ""
39332 " make syntax-check  # checks the syntax of the C code\n"
39333 " make check         # runs the test suite\n"
39334 "\n"
39335 msgstr ""
39336
39337 #. type: =head2
39338 #: ../src/guestfs.pod:2858
39339 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
39340 msgstr ""
39341
39342 #. type: textblock
39343 #: ../src/guestfs.pod:2860
39344 msgid ""
39345 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
39346 "which are used to do shell quoting."
39347 msgstr ""
39348
39349 #. type: =item
39350 #: ../src/guestfs.pod:2865
39351 msgid "%Q"
39352 msgstr ""
39353
39354 #. type: textblock
39355 #: ../src/guestfs.pod:2867
39356 msgid ""
39357 "Simple shell quoted string.  Any spaces or other shell characters are "
39358 "escaped for you."
39359 msgstr ""
39360
39361 #. type: =item
39362 #: ../src/guestfs.pod:2870
39363 msgid "%R"
39364 msgstr ""
39365
39366 #. type: textblock
39367 #: ../src/guestfs.pod:2872
39368 msgid ""
39369 "Same as C<%Q> except the string is treated as a path which is prefixed by "
39370 "the sysroot."
39371 msgstr ""
39372
39373 #. type: verbatim
39374 #: ../src/guestfs.pod:2879
39375 #, no-wrap
39376 msgid ""
39377 " asprintf (&cmd, \"cat %R\", path);\n"
39378 "\n"
39379 msgstr ""
39380
39381 #. type: textblock
39382 #: ../src/guestfs.pod:2881
39383 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
39384 msgstr ""
39385
39386 #. type: textblock
39387 #: ../src/guestfs.pod:2883
39388 msgid ""
39389 "I<Note:> Do I<not> use these when you are passing parameters to the "
39390 "C<command{,r,v,rv}()> functions.  These parameters do NOT need to be quoted "
39391 "because they are not passed via the shell (instead, straight to exec).  You "
39392 "probably want to use the C<sysroot_path()> function however."
39393 msgstr ""
39394
39395 #. type: =head2
39396 #: ../src/guestfs.pod:2889
39397 msgid "SUBMITTING YOUR NEW API ACTIONS"
39398 msgstr ""
39399
39400 #. type: textblock
39401 #: ../src/guestfs.pod:2891
39402 msgid ""
39403 "Submit patches to the mailing list: "
39404 "L<http://www.redhat.com/mailman/listinfo/libguestfs> and CC to "
39405 "L<rjones@redhat.com>."
39406 msgstr ""
39407
39408 #. type: =head2
39409 #: ../src/guestfs.pod:2895
39410 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
39411 msgstr ""
39412
39413 #. type: textblock
39414 #: ../src/guestfs.pod:2897
39415 msgid "We support i18n (gettext anyhow) in the library."
39416 msgstr ""
39417
39418 #. type: textblock
39419 #: ../src/guestfs.pod:2899
39420 msgid ""
39421 "However many messages come from the daemon, and we don't translate those at "
39422 "the moment.  One reason is that the appliance generally has all locale files "
39423 "removed from it, because they take up a lot of space.  So we'd have to readd "
39424 "some of those, as well as copying our PO files into the appliance."
39425 msgstr ""
39426
39427 #. type: textblock
39428 #: ../src/guestfs.pod:2905
39429 msgid ""
39430 "Debugging messages are never translated, since they are intended for the "
39431 "programmers."
39432 msgstr ""
39433
39434 #. type: =head2
39435 #: ../src/guestfs.pod:2908
39436 msgid "SOURCE CODE SUBDIRECTORIES"
39437 msgstr ""
39438
39439 #. type: =item
39440 #: ../src/guestfs.pod:2912
39441 msgid "C<align>"
39442 msgstr ""
39443
39444 #. type: textblock
39445 #: ../src/guestfs.pod:2914
39446 msgid "L<virt-alignment-scan(1)> command and documentation."
39447 msgstr ""
39448
39449 #. type: textblock
39450 #: ../src/guestfs.pod:2918
39451 msgid "The libguestfs appliance, build scripts and so on."
39452 msgstr ""
39453
39454 #. type: =item
39455 #: ../src/guestfs.pod:2920
39456 msgid "C<capitests>"
39457 msgstr ""
39458
39459 #. type: textblock
39460 #: ../src/guestfs.pod:2922
39461 msgid "Automated tests of the C API."
39462 msgstr ""
39463
39464 #. type: =item
39465 #: ../src/guestfs.pod:2924
39466 msgid "C<cat>"
39467 msgstr ""
39468
39469 #. type: textblock
39470 #: ../src/guestfs.pod:2926
39471 msgid ""
39472 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
39473 "documentation."
39474 msgstr ""
39475
39476 #. type: =item
39477 #: ../src/guestfs.pod:2929
39478 msgid "C<caution>"
39479 msgstr ""
39480
39481 #. type: textblock
39482 #: ../src/guestfs.pod:2931
39483 msgid ""
39484 "Safety and liveness tests of components that libguestfs depends upon (not of "
39485 "libguestfs itself).  Mainly this is for qemu and the kernel."
39486 msgstr ""
39487
39488 #. type: =item
39489 #: ../src/guestfs.pod:2934
39490 msgid "C<clone>"
39491 msgstr ""
39492
39493 #. type: textblock
39494 #: ../src/guestfs.pod:2936
39495 msgid ""
39496 "Tools for cloning virtual machines.  Currently contains L<virt-sysprep(1)> "
39497 "command and documentation."
39498 msgstr ""
39499
39500 #. type: =item
39501 #: ../src/guestfs.pod:2939
39502 msgid "C<contrib>"
39503 msgstr ""
39504
39505 #. type: textblock
39506 #: ../src/guestfs.pod:2941
39507 msgid "Outside contributions, experimental parts."
39508 msgstr ""
39509
39510 #. type: =item
39511 #: ../src/guestfs.pod:2943
39512 msgid "C<daemon>"
39513 msgstr ""
39514
39515 #. type: textblock
39516 #: ../src/guestfs.pod:2945
39517 msgid ""
39518 "The daemon that runs inside the libguestfs appliance and carries out "
39519 "actions."
39520 msgstr ""
39521
39522 #. type: =item
39523 #: ../src/guestfs.pod:2948
39524 msgid "C<df>"
39525 msgstr ""
39526
39527 #. type: textblock
39528 #: ../src/guestfs.pod:2950
39529 msgid "L<virt-df(1)> command and documentation."
39530 msgstr ""
39531
39532 #. type: =item
39533 #: ../src/guestfs.pod:2952
39534 msgid "C<edit>"
39535 msgstr ""
39536
39537 #. type: textblock
39538 #: ../src/guestfs.pod:2954
39539 msgid "L<virt-edit(1)> command and documentation."
39540 msgstr ""
39541
39542 #. type: =item
39543 #: ../src/guestfs.pod:2956
39544 msgid "C<examples>"
39545 msgstr ""
39546
39547 #. type: textblock
39548 #: ../src/guestfs.pod:2958
39549 msgid "C API example code."
39550 msgstr ""
39551
39552 #. type: =item
39553 #: ../src/guestfs.pod:2960
39554 msgid "C<fish>"
39555 msgstr ""
39556
39557 #. type: textblock
39558 #: ../src/guestfs.pod:2962
39559 msgid ""
39560 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
39561 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
39562 "L<virt-tar-out(1)>."
39563 msgstr ""
39564
39565 #. type: =item
39566 #: ../src/guestfs.pod:2966
39567 msgid "C<fuse>"
39568 msgstr ""
39569
39570 #. type: textblock
39571 #: ../src/guestfs.pod:2968
39572 msgid "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
39573 msgstr ""
39574
39575 #. type: =item
39576 #: ../src/guestfs.pod:2970
39577 msgid "C<generator>"
39578 msgstr ""
39579
39580 #. type: textblock
39581 #: ../src/guestfs.pod:2972
39582 msgid ""
39583 "The crucially important generator, used to automatically generate large "
39584 "amounts of boilerplate C code for things like RPC and bindings."
39585 msgstr ""
39586
39587 #. type: =item
39588 #: ../src/guestfs.pod:2975
39589 msgid "C<images>"
39590 msgstr ""
39591
39592 #. type: textblock
39593 #: ../src/guestfs.pod:2977
39594 msgid "Files used by the test suite."
39595 msgstr ""
39596
39597 #. type: textblock
39598 #: ../src/guestfs.pod:2979
39599 msgid "Some \"phony\" guest images which we test against."
39600 msgstr ""
39601
39602 #. type: =item
39603 #: ../src/guestfs.pod:2981
39604 msgid "C<inspector>"
39605 msgstr ""
39606
39607 #. type: textblock
39608 #: ../src/guestfs.pod:2983
39609 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
39610 msgstr ""
39611
39612 #. type: =item
39613 #: ../src/guestfs.pod:2985
39614 msgid "C<logo>"
39615 msgstr ""
39616
39617 #. type: textblock
39618 #: ../src/guestfs.pod:2987
39619 msgid "Logo used on the website.  The fish is called Arthur by the way."
39620 msgstr ""
39621
39622 #. type: =item
39623 #: ../src/guestfs.pod:2989
39624 msgid "C<m4>"
39625 msgstr ""
39626
39627 #. type: textblock
39628 #: ../src/guestfs.pod:2991
39629 msgid "M4 macros used by autoconf."
39630 msgstr ""
39631
39632 #. type: =item
39633 #: ../src/guestfs.pod:2993
39634 msgid "C<po>"
39635 msgstr ""
39636
39637 #. type: textblock
39638 #: ../src/guestfs.pod:2995
39639 msgid "Translations of simple gettext strings."
39640 msgstr ""
39641
39642 #. type: =item
39643 #: ../src/guestfs.pod:2997
39644 msgid "C<po-docs>"
39645 msgstr ""
39646
39647 #. type: textblock
39648 #: ../src/guestfs.pod:2999
39649 msgid ""
39650 "The build infrastructure and PO files for translations of manpages and POD "
39651 "files.  Eventually this will be combined with the C<po> directory, but that "
39652 "is rather complicated."
39653 msgstr ""
39654
39655 #. type: =item
39656 #: ../src/guestfs.pod:3003
39657 msgid "C<regressions>"
39658 msgstr ""
39659
39660 #. type: textblock
39661 #: ../src/guestfs.pod:3005
39662 msgid "Regression tests."
39663 msgstr ""
39664
39665 #. type: =item
39666 #: ../src/guestfs.pod:3007
39667 msgid "C<rescue>"
39668 msgstr ""
39669
39670 #. type: textblock
39671 #: ../src/guestfs.pod:3009
39672 msgid "L<virt-rescue(1)> command and documentation."
39673 msgstr ""
39674
39675 #. type: =item
39676 #: ../src/guestfs.pod:3011
39677 msgid "C<resize>"
39678 msgstr ""
39679
39680 #. type: textblock
39681 #: ../src/guestfs.pod:3013
39682 msgid "L<virt-resize(1)> command and documentation."
39683 msgstr ""
39684
39685 #. type: =item
39686 #: ../src/guestfs.pod:3015
39687 msgid "C<sparsify>"
39688 msgstr ""
39689
39690 #. type: textblock
39691 #: ../src/guestfs.pod:3017
39692 msgid "L<virt-sparsify(1)> command and documentation."
39693 msgstr ""
39694
39695 #. type: =item
39696 #: ../src/guestfs.pod:3019
39697 msgid "C<src>"
39698 msgstr ""
39699
39700 #. type: textblock
39701 #: ../src/guestfs.pod:3021
39702 msgid "Source code to the C library."
39703 msgstr ""
39704
39705 #. type: =item
39706 #: ../src/guestfs.pod:3023
39707 msgid "C<tools>"
39708 msgstr ""
39709
39710 #. type: textblock
39711 #: ../src/guestfs.pod:3025
39712 msgid "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
39713 msgstr ""
39714
39715 #. type: =item
39716 #: ../src/guestfs.pod:3027
39717 msgid "C<test-tool>"
39718 msgstr ""
39719
39720 #. type: textblock
39721 #: ../src/guestfs.pod:3029
39722 msgid ""
39723 "Test tool for end users to test if their qemu/kernel combination will work "
39724 "with libguestfs."
39725 msgstr ""
39726
39727 #. type: =item
39728 #: ../src/guestfs.pod:3032
39729 msgid "C<csharp>"
39730 msgstr ""
39731
39732 #. type: =item
39733 #: ../src/guestfs.pod:3034
39734 msgid "C<erlang>"
39735 msgstr ""
39736
39737 #. type: =item
39738 #: ../src/guestfs.pod:3036
39739 msgid "C<haskell>"
39740 msgstr ""
39741
39742 #. type: =item
39743 #: ../src/guestfs.pod:3038
39744 msgid "C<java>"
39745 msgstr ""
39746
39747 #. type: =item
39748 #: ../src/guestfs.pod:3040
39749 msgid "C<ocaml>"
39750 msgstr ""
39751
39752 #. type: =item
39753 #: ../src/guestfs.pod:3042
39754 msgid "C<php>"
39755 msgstr ""
39756
39757 #. type: =item
39758 #: ../src/guestfs.pod:3044
39759 msgid "C<perl>"
39760 msgstr ""
39761
39762 #. type: =item
39763 #: ../src/guestfs.pod:3046
39764 msgid "C<python>"
39765 msgstr ""
39766
39767 #. type: =item
39768 #: ../src/guestfs.pod:3048
39769 msgid "C<ruby>"
39770 msgstr ""
39771
39772 #. type: textblock
39773 #: ../src/guestfs.pod:3050
39774 msgid "Language bindings."
39775 msgstr ""
39776
39777 #. type: =head2
39778 #: ../src/guestfs.pod:3054
39779 msgid "MAKING A STABLE RELEASE"
39780 msgstr ""
39781
39782 #. type: textblock
39783 #: ../src/guestfs.pod:3056
39784 msgid ""
39785 "When we make a stable release, there are several steps documented here.  See "
39786 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
39787 "branch policy."
39788 msgstr ""
39789
39790 #. type: textblock
39791 #: ../src/guestfs.pod:3064
39792 msgid "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
39793 msgstr ""
39794
39795 #. type: textblock
39796 #: ../src/guestfs.pod:3069
39797 msgid "Finalize RELEASE-NOTES."
39798 msgstr ""
39799
39800 #. type: textblock
39801 #: ../src/guestfs.pod:3073
39802 msgid "Update ROADMAP."
39803 msgstr ""
39804
39805 #. type: textblock
39806 #: ../src/guestfs.pod:3077
39807 msgid "Run C<src/api-support/update-from-tarballs.sh>."
39808 msgstr ""
39809
39810 #. type: textblock
39811 #: ../src/guestfs.pod:3081
39812 msgid "Push and pull from Transifex."
39813 msgstr ""
39814
39815 #. type: verbatim
39816 #: ../src/guestfs.pod:3085
39817 #, no-wrap
39818 msgid ""
39819 " tx push -s\n"
39820 "\n"
39821 msgstr ""
39822
39823 #. type: textblock
39824 #: ../src/guestfs.pod:3087
39825 msgid "to push the latest POT files to Transifex.  Then run:"
39826 msgstr ""
39827
39828 #. type: verbatim
39829 #: ../src/guestfs.pod:3089
39830 #, no-wrap
39831 msgid ""
39832 " ./tx-pull.sh\n"
39833 "\n"
39834 msgstr ""
39835
39836 #. type: textblock
39837 #: ../src/guestfs.pod:3091
39838 msgid "which is a wrapper to pull the latest translated C<*.po> files."
39839 msgstr ""
39840
39841 #. type: textblock
39842 #: ../src/guestfs.pod:3095
39843 msgid ""
39844 "Create new stable and development directories under "
39845 "L<http://libguestfs.org/download>."
39846 msgstr ""
39847
39848 #. type: textblock
39849 #: ../src/guestfs.pod:3100
39850 msgid "Create the branch in git:"
39851 msgstr ""
39852
39853 #. type: verbatim
39854 #: ../src/guestfs.pod:3102
39855 #, no-wrap
39856 msgid ""
39857 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
39858 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
39859 " git branch stable-1.XX\n"
39860 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
39861 "\n"
39862 msgstr ""
39863
39864 #. type: =head1
39865 #: ../src/guestfs.pod:3109
39866 msgid "LIMITS"
39867 msgstr ""
39868
39869 #. type: =head2
39870 #: ../src/guestfs.pod:3111
39871 msgid "PROTOCOL LIMITS"
39872 msgstr ""
39873
39874 #. type: textblock
39875 #: ../src/guestfs.pod:3113
39876 msgid ""
39877 "Internally libguestfs uses a message-based protocol to pass API calls and "
39878 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
39879 "plenty more detail about this).  The maximum message size used by the "
39880 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
39881 "aware of this limit.  The API calls which may be affected are individually "
39882 "documented, with a link back to this section of the documentation."
39883 msgstr ""
39884
39885 #. type: textblock
39886 #: ../src/guestfs.pod:3121
39887 msgid ""
39888 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
39889 "a simple string.  Because this string is at some point internally encoded as "
39890 "a message, the maximum size that it can return is slightly under 4 MB.  If "
39891 "the requested file is larger than this then you will get an error."
39892 msgstr ""
39893
39894 #. type: textblock
39895 #: ../src/guestfs.pod:3127
39896 msgid ""
39897 "In order to transfer large files into and out of the guest filesystem, you "
39898 "need to use particular calls that support this.  The sections L</UPLOADING> "
39899 "and L</DOWNLOADING> document how to do this."
39900 msgstr ""
39901
39902 #. type: textblock
39903 #: ../src/guestfs.pod:3131
39904 msgid ""
39905 "You might also consider mounting the disk image using our FUSE filesystem "
39906 "support (L<guestmount(1)>)."
39907 msgstr ""
39908
39909 #. type: =head2
39910 #: ../src/guestfs.pod:3134
39911 msgid "MAXIMUM NUMBER OF DISKS"
39912 msgstr ""
39913
39914 #. type: textblock
39915 #: ../src/guestfs.pod:3136
39916 msgid "When using virtio disks (the default) the current limit is B<25> disks."
39917 msgstr ""
39918
39919 #. type: textblock
39920 #: ../src/guestfs.pod:3139
39921 msgid ""
39922 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
39923 "slots.  However febootstrap only understands disks with names C</dev/vda> "
39924 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
39925 "purposes."
39926 msgstr ""
39927
39928 #. type: textblock
39929 #: ../src/guestfs.pod:3144
39930 msgid ""
39931 "We are working to substantially raise this limit in future versions but it "
39932 "requires complex changes to qemu."
39933 msgstr ""
39934
39935 #. type: textblock
39936 #: ../src/guestfs.pod:3147
39937 msgid ""
39938 "In future versions of libguestfs it should also be possible to \"hot plug\" "
39939 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
39940 "requires changes to qemu."
39941 msgstr ""
39942
39943 #. type: =head2
39944 #: ../src/guestfs.pod:3151
39945 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
39946 msgstr ""
39947
39948 #. type: textblock
39949 #: ../src/guestfs.pod:3153
39950 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
39951 msgstr ""
39952
39953 #. type: textblock
39954 #: ../src/guestfs.pod:3155
39955 msgid ""
39956 "This is because it reserves 4 bits for the minor device number (thus "
39957 "C</dev/vda>, and C</dev/vda1> through C</dev/vda15>)."
39958 msgstr ""
39959
39960 #. type: textblock
39961 #: ../src/guestfs.pod:3158
39962 msgid ""
39963 "If you attach a disk with more than 15 partitions, the extra partitions are "
39964 "ignored by libguestfs."
39965 msgstr ""
39966
39967 #. type: =head2
39968 #: ../src/guestfs.pod:3161
39969 msgid "MAXIMUM SIZE OF A DISK"
39970 msgstr ""
39971
39972 #. type: textblock
39973 #: ../src/guestfs.pod:3163
39974 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
39975 msgstr ""
39976
39977 #. type: textblock
39978 #: ../src/guestfs.pod:3165
39979 msgid ""
39980 "We have tested block devices up to 1 exabyte (2**60 or "
39981 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
39982 "filesystem."
39983 msgstr ""
39984
39985 #. type: textblock
39986 #: ../src/guestfs.pod:3169
39987 msgid ""
39988 "Although libguestfs probably does not impose any limit, the underlying host "
39989 "storage will.  If you store disk images on a host ext4 filesystem, then the "
39990 "maximum size will be limited by the maximum ext4 file size (currently 16 "
39991 "TB).  If you store disk images as host logical volumes then you are limited "
39992 "by the maximum size of an LV."
39993 msgstr ""
39994
39995 #. type: textblock
39996 #: ../src/guestfs.pod:3175
39997 msgid ""
39998 "For the hugest disk image files, we recommend using XFS on the host for "
39999 "storage."
40000 msgstr ""
40001
40002 #. type: =head2
40003 #: ../src/guestfs.pod:3178
40004 msgid "MAXIMUM SIZE OF A PARTITION"
40005 msgstr ""
40006
40007 #. type: textblock
40008 #: ../src/guestfs.pod:3180
40009 msgid ""
40010 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
40011 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
40012 "address a partition located beyond 2 TB on the disk."
40013 msgstr ""
40014
40015 #. type: textblock
40016 #: ../src/guestfs.pod:3184
40017 msgid ""
40018 "It is recommended that you use GPT partitions on disks which are larger than "
40019 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
40020 "which are theoretically larger than the largest disk we could support."
40021 msgstr ""
40022
40023 #. type: =head2
40024 #: ../src/guestfs.pod:3189
40025 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
40026 msgstr ""
40027
40028 #. type: textblock
40029 #: ../src/guestfs.pod:3191
40030 msgid ""
40031 "This depends on the filesystem type.  libguestfs itself does not impose any "
40032 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
40033 "what these limits are."
40034 msgstr ""
40035
40036 #. type: =head2
40037 #: ../src/guestfs.pod:3195
40038 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
40039 msgstr ""
40040
40041 #. type: textblock
40042 #: ../src/guestfs.pod:3197
40043 msgid ""
40044 "The API functions L</guestfs_upload>, L</guestfs_download>, "
40045 "L</guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
40046 "uploads and downloads."
40047 msgstr ""
40048
40049 #. type: =head2
40050 #: ../src/guestfs.pod:3201
40051 msgid "INSPECTION LIMITS"
40052 msgstr ""
40053
40054 #. type: textblock
40055 #: ../src/guestfs.pod:3203
40056 msgid ""
40057 "The inspection code has several arbitrary limits on things like the size of "
40058 "Windows Registry hive it will read, and the length of product name.  These "
40059 "are intended to stop a malicious guest from consuming arbitrary amounts of "
40060 "memory and disk space on the host, and should not be reached in practice.  "
40061 "See the source code for more information."
40062 msgstr ""
40063
40064 #. type: textblock
40065 #: ../src/guestfs.pod:3229
40066 msgid ""
40067 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
40068 "effect as calling C<guestfs_set_verbose (g, 1)>."
40069 msgstr ""
40070
40071 #. type: textblock
40072 #: ../src/guestfs.pod:3241
40073 msgid ""
40074 "Set the path that libguestfs uses to search for a supermin appliance.  See "
40075 "the discussion of paths in section L</PATH> above."
40076 msgstr ""
40077
40078 #. type: textblock
40079 #: ../src/guestfs.pod:3250
40080 msgid "See also L</QEMU WRAPPERS> above."
40081 msgstr ""
40082
40083 #. type: textblock
40084 #: ../src/guestfs.pod:3254
40085 msgid ""
40086 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
40087 "effect as calling C<guestfs_set_trace (g, 1)>."
40088 msgstr ""
40089
40090 #. type: textblock
40091 #: ../src/guestfs.pod:3272
40092 msgid ""
40093 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, "
40094 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
40095 "L<guestfs-ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, "
40096 "L<virt-alignment-scan(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, "
40097 "L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, "
40098 "L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
40099 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
40100 "L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, "
40101 "L<virt-sysprep(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
40102 "L<virt-win-reg(1)>, L<guestfs-testing(1)>, L<qemu(1)>, L<febootstrap(1)>, "
40103 "L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<stap(1)>, "
40104 "L<http://libguestfs.org/>."
40105 msgstr ""
40106
40107 #. type: textblock
40108 #: ../src/guestfs.pod:3309
40109 msgid ""
40110 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, "
40111 "L<lvm(8)>, L<disktype(1)>."
40112 msgstr ""
40113
40114 #. type: =head1
40115 #: ../src/guestfs.pod:3316 ../tools/virt-make-fs.pl:571 ../tools/virt-win-reg.pl:772
40116 msgid "BUGS"
40117 msgstr ""
40118
40119 #. type: textblock
40120 #: ../src/guestfs.pod:3318
40121 msgid "To get a list of bugs against libguestfs use this link:"
40122 msgstr ""
40123
40124 #. type: textblock
40125 #: ../src/guestfs.pod:3320
40126 msgid "L<https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools>"
40127 msgstr ""
40128
40129 #. type: textblock
40130 #: ../src/guestfs.pod:3322
40131 msgid "To report a new bug against libguestfs use this link:"
40132 msgstr ""
40133
40134 #. type: textblock
40135 #: ../src/guestfs.pod:3324
40136 msgid "L<https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools>"
40137 msgstr ""
40138
40139 #. type: textblock
40140 #: ../src/guestfs.pod:3326
40141 msgid "When reporting a bug, please check:"
40142 msgstr ""
40143
40144 #. type: textblock
40145 #: ../src/guestfs.pod:3332
40146 msgid "That the bug hasn't been reported already."
40147 msgstr ""
40148
40149 #. type: textblock
40150 #: ../src/guestfs.pod:3336
40151 msgid "That you are testing a recent version."
40152 msgstr ""
40153
40154 #. type: textblock
40155 #: ../src/guestfs.pod:3340
40156 msgid "Describe the bug accurately, and give a way to reproduce it."
40157 msgstr ""
40158
40159 #. type: textblock
40160 #: ../src/guestfs.pod:3344
40161 msgid ""
40162 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
40163 "bug report."
40164 msgstr ""
40165
40166 #. type: textblock
40167 #: ../test-tool/libguestfs-test-tool.pod:5
40168 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
40169 msgstr ""
40170
40171 #. type: verbatim
40172 #: ../test-tool/libguestfs-test-tool.pod:9
40173 #, no-wrap
40174 msgid ""
40175 " libguestfs-test-tool [--options]\n"
40176 "\n"
40177 msgstr ""
40178
40179 #. type: textblock
40180 #: ../test-tool/libguestfs-test-tool.pod:13
40181 msgid ""
40182 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
40183 "to check basic libguestfs functionality is working.  This is needed because "
40184 "libguestfs occasionally breaks for reasons beyond our control: usually "
40185 "because of changes in the underlying qemu or kernel packages, or the host "
40186 "environment."
40187 msgstr ""
40188
40189 #. type: textblock
40190 #: ../test-tool/libguestfs-test-tool.pod:19
40191 msgid "If you suspect a problem in libguestfs, then just run:"
40192 msgstr ""
40193
40194 #. type: verbatim
40195 #: ../test-tool/libguestfs-test-tool.pod:21
40196 #, no-wrap
40197 msgid ""
40198 " libguestfs-test-tool\n"
40199 "\n"
40200 msgstr ""
40201
40202 #. type: textblock
40203 #: ../test-tool/libguestfs-test-tool.pod:23
40204 msgid "It will print lots of diagnostic messages."
40205 msgstr ""
40206
40207 #. type: textblock
40208 #: ../test-tool/libguestfs-test-tool.pod:25
40209 msgid "If it runs to completion successfully, you will see this near the end:"
40210 msgstr ""
40211
40212 #. type: verbatim
40213 #: ../test-tool/libguestfs-test-tool.pod:27
40214 #, no-wrap
40215 msgid ""
40216 " ===== TEST FINISHED OK =====\n"
40217 "\n"
40218 msgstr ""
40219
40220 #. type: textblock
40221 #: ../test-tool/libguestfs-test-tool.pod:29
40222 msgid "and the test tool will exit with code 0."
40223 msgstr ""
40224
40225 #. type: textblock
40226 #: ../test-tool/libguestfs-test-tool.pod:31
40227 msgid ""
40228 "If it fails (and/or exits with non-zero error code), please paste the "
40229 "I<complete, unedited> output of the test tool into a bug report.  More "
40230 "information about reporting bugs can be found on the "
40231 "L<http://libguestfs.org/> website."
40232 msgstr ""
40233
40234 #. type: textblock
40235 #: ../test-tool/libguestfs-test-tool.pod:42
40236 msgid "Display short usage information and exit."
40237 msgstr ""
40238
40239 #. type: =item
40240 #: ../test-tool/libguestfs-test-tool.pod:44
40241 msgid "B<--qemu qemu_binary>"
40242 msgstr ""
40243
40244 #. type: textblock
40245 #: ../test-tool/libguestfs-test-tool.pod:46
40246 msgid ""
40247 "If you have downloaded another qemu binary, point this option at the full "
40248 "path of the binary to try it."
40249 msgstr ""
40250
40251 #. type: =item
40252 #: ../test-tool/libguestfs-test-tool.pod:49
40253 msgid "B<--qemudir qemu_source_dir>"
40254 msgstr ""
40255
40256 #. type: textblock
40257 #: ../test-tool/libguestfs-test-tool.pod:51
40258 msgid ""
40259 "If you have compiled qemu from source, point this option at the source "
40260 "directory to try it."
40261 msgstr ""
40262
40263 #. type: =item
40264 #: ../test-tool/libguestfs-test-tool.pod:54
40265 msgid "B<-t N>"
40266 msgstr ""
40267
40268 #. type: =item
40269 #: ../test-tool/libguestfs-test-tool.pod:56
40270 msgid "B<--timeout N>"
40271 msgstr ""
40272
40273 #. type: textblock
40274 #: ../test-tool/libguestfs-test-tool.pod:58
40275 msgid ""
40276 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
40277 "minutes) which does not usually need to be adjusted."
40278 msgstr ""
40279
40280 #. type: =head1
40281 #: ../test-tool/libguestfs-test-tool.pod:63
40282 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
40283 msgstr ""
40284
40285 #. type: textblock
40286 #: ../test-tool/libguestfs-test-tool.pod:65
40287 msgid ""
40288 "If you have compiled another version of qemu from source and would like to "
40289 "try that, then you can use the I<--qemudir> option to point to the qemu "
40290 "source directory."
40291 msgstr ""
40292
40293 #. type: textblock
40294 #: ../test-tool/libguestfs-test-tool.pod:69
40295 msgid ""
40296 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
40297 "option to point to the binary."
40298 msgstr ""
40299
40300 #. type: textblock
40301 #: ../test-tool/libguestfs-test-tool.pod:72
40302 msgid ""
40303 "Note when using these options, you can ignore the business of qemu wrapper "
40304 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
40305 "wrapper script for you if one is needed."
40306 msgstr ""
40307
40308 #. type: =head1
40309 #: ../test-tool/libguestfs-test-tool.pod:76
40310 msgid "TRYING OUT A DIFFERENT KERNEL"
40311 msgstr ""
40312
40313 #. type: textblock
40314 #: ../test-tool/libguestfs-test-tool.pod:78
40315 msgid ""
40316 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
40317 "libguestfs tries.  You do this by setting the environment variables "
40318 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
40319 msgstr ""
40320
40321 #. type: textblock
40322 #: ../test-tool/libguestfs-test-tool.pod:82
40323 msgid ""
40324 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
40325 "information."
40326 msgstr ""
40327
40328 #. type: =head1
40329 #: ../test-tool/libguestfs-test-tool.pod:85
40330 msgid "SELF-DIAGNOSIS"
40331 msgstr ""
40332
40333 #. type: textblock
40334 #: ../test-tool/libguestfs-test-tool.pod:87
40335 msgid ""
40336 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
40337 "produced by libguestfs-test-tool and/or possible errors."
40338 msgstr ""
40339
40340 #. type: textblock
40341 #: ../test-tool/libguestfs-test-tool.pod:92
40342 msgid ""
40343 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
40344 "I<1> if there was an error."
40345 msgstr ""
40346
40347 #. type: textblock
40348 #: ../test-tool/libguestfs-test-tool.pod:97
40349 msgid ""
40350 "For the full list of environment variables which may affect libguestfs, "
40351 "please see the L<guestfs(3)> manual page."
40352 msgstr ""
40353
40354 #. type: textblock
40355 #: ../test-tool/libguestfs-test-tool.pod:102
40356 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
40357 msgstr ""
40358
40359 #. type: textblock
40360 #: ../tools/virt-list-filesystems.pl:32
40361 msgid "virt-list-filesystems - List filesystems in a virtual machine or disk image"
40362 msgstr ""
40363
40364 #. type: verbatim
40365 #: ../tools/virt-list-filesystems.pl:36
40366 #, no-wrap
40367 msgid ""
40368 " virt-list-filesystems [--options] domname\n"
40369 "\n"
40370 msgstr ""
40371
40372 #. type: verbatim
40373 #: ../tools/virt-list-filesystems.pl:38
40374 #, no-wrap
40375 msgid ""
40376 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
40377 "\n"
40378 msgstr ""
40379
40380 #. type: textblock
40381 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
40382 msgid ""
40383 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
40384 "replacement."
40385 msgstr ""
40386
40387 #. type: textblock
40388 #: ../tools/virt-list-filesystems.pl:45
40389 msgid ""
40390 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
40391 "are contained in a virtual machine or disk image."
40392 msgstr ""
40393
40394 #. type: textblock
40395 #: ../tools/virt-list-filesystems.pl:49
40396 msgid ""
40397 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
40398 "functionality.  For more complex cases you should look at the "
40399 "L<guestfish(1)> tool."
40400 msgstr ""
40401
40402 #. type: textblock
40403 #: ../tools/virt-list-filesystems.pl:112
40404 msgid ""
40405 "With this option, C<virt-list-filesystems> displays the type of each "
40406 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
40407 msgstr ""
40408
40409 #. type: =item
40410 #: ../tools/virt-list-filesystems.pl:119
40411 msgid "B<-a>"
40412 msgstr ""
40413
40414 #. type: textblock
40415 #: ../tools/virt-list-filesystems.pl:123
40416 msgid ""
40417 "Normally we only show mountable filesystems.  If this option is given then "
40418 "swap devices are shown too."
40419 msgstr ""
40420
40421 #. type: textblock
40422 #: ../tools/virt-list-filesystems.pl:197
40423 msgid ""
40424 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
40425 "L<virt-filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, "
40426 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
40427 msgstr ""
40428
40429 #. type: textblock
40430 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
40431 msgid "Copyright (C) 2009 Red Hat Inc."
40432 msgstr ""
40433
40434 #. type: textblock
40435 #: ../tools/virt-list-partitions.pl:32
40436 msgid "virt-list-partitions - List partitions in a virtual machine or disk image"
40437 msgstr ""
40438
40439 #. type: verbatim
40440 #: ../tools/virt-list-partitions.pl:36
40441 #, no-wrap
40442 msgid ""
40443 " virt-list-partitions [--options] domname\n"
40444 "\n"
40445 msgstr ""
40446
40447 #. type: verbatim
40448 #: ../tools/virt-list-partitions.pl:38
40449 #, no-wrap
40450 msgid ""
40451 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
40452 "\n"
40453 msgstr ""
40454
40455 #. type: textblock
40456 #: ../tools/virt-list-partitions.pl:45
40457 msgid ""
40458 "C<virt-list-partitions> is a command line tool to list the partitions that "
40459 "are contained in a virtual machine or disk image.  It is mainly useful as a "
40460 "first step to using L<virt-resize(1)>."
40461 msgstr ""
40462
40463 #. type: textblock
40464 #: ../tools/virt-list-partitions.pl:50
40465 msgid ""
40466 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
40467 "functionality.  For more complex cases you should look at the "
40468 "L<guestfish(1)> tool."
40469 msgstr ""
40470
40471 #. type: textblock
40472 #: ../tools/virt-list-partitions.pl:113
40473 msgid "Show sizes in human-readable form (eg. \"1G\")."
40474 msgstr ""
40475
40476 #. type: textblock
40477 #: ../tools/virt-list-partitions.pl:123
40478 msgid ""
40479 "With this option, C<virt-list-partitions> displays the type and size of each "
40480 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
40481 msgstr ""
40482
40483 #. type: =item
40484 #: ../tools/virt-list-partitions.pl:130
40485 msgid "B<-t>"
40486 msgstr ""
40487
40488 #. type: =item
40489 #: ../tools/virt-list-partitions.pl:132
40490 msgid "B<--total>"
40491 msgstr ""
40492
40493 #. type: textblock
40494 #: ../tools/virt-list-partitions.pl:134
40495 msgid "Display the total size of each block device (as a separate row or rows)."
40496 msgstr ""
40497
40498 #. type: textblock
40499 #: ../tools/virt-list-partitions.pl:267
40500 msgid ""
40501 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, "
40502 "L<virt-list-filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, "
40503 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
40504 msgstr ""
40505
40506 #. type: textblock
40507 #: ../tools/virt-list-partitions.pl:283
40508 msgid "Copyright (C) 2009-2010 Red Hat Inc."
40509 msgstr ""
40510
40511 #. type: textblock
40512 #: ../tools/virt-make-fs.pl:37
40513 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
40514 msgstr ""
40515
40516 #. type: verbatim
40517 #: ../tools/virt-make-fs.pl:41
40518 #, no-wrap
40519 msgid ""
40520 " virt-make-fs [--options] input.tar output.img\n"
40521 "\n"
40522 msgstr ""
40523
40524 #. type: verbatim
40525 #: ../tools/virt-make-fs.pl:43
40526 #, no-wrap
40527 msgid ""
40528 " virt-make-fs [--options] input.tar.gz output.img\n"
40529 "\n"
40530 msgstr ""
40531
40532 #. type: verbatim
40533 #: ../tools/virt-make-fs.pl:45
40534 #, no-wrap
40535 msgid ""
40536 " virt-make-fs [--options] directory output.img\n"
40537 "\n"
40538 msgstr ""
40539
40540 #. type: textblock
40541 #: ../tools/virt-make-fs.pl:49
40542 msgid ""
40543 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
40544 "archive or some files in a directory.  It is similar to tools like "
40545 "L<mkisofs(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, "
40546 "it can create common filesystem types like ext2/3 or NTFS, which can be "
40547 "useful if you want to attach these filesystems to existing virtual machines "
40548 "(eg. to import large amounts of read-only data to a VM)."
40549 msgstr ""
40550
40551 #. type: textblock
40552 #: ../tools/virt-make-fs.pl:57
40553 msgid "Basic usage is:"
40554 msgstr ""
40555
40556 #. type: verbatim
40557 #: ../tools/virt-make-fs.pl:59
40558 #, no-wrap
40559 msgid ""
40560 " virt-make-fs input output.img\n"
40561 "\n"
40562 msgstr ""
40563
40564 #. type: textblock
40565 #: ../tools/virt-make-fs.pl:61
40566 msgid ""
40567 "where C<input> is either a directory containing files that you want to add, "
40568 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
40569 "C<output.img> is a disk image.  The input type is detected automatically.  "
40570 "The output disk image defaults to a raw ext2 sparse image unless you specify "
40571 "extra flags (see L</OPTIONS> below)."
40572 msgstr ""
40573
40574 #. type: =head2
40575 #: ../tools/virt-make-fs.pl:67
40576 msgid "FILESYSTEM TYPE"
40577 msgstr ""
40578
40579 #. type: textblock
40580 #: ../tools/virt-make-fs.pl:69
40581 msgid ""
40582 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
40583 "libguestfs supports can be used (but I<not> read-only formats like "
40584 "ISO9660).  Here are some of the more common choices:"
40585 msgstr ""
40586
40587 #. type: =item
40588 #: ../tools/virt-make-fs.pl:75
40589 msgid "I<ext3>"
40590 msgstr ""
40591
40592 #. type: textblock
40593 #: ../tools/virt-make-fs.pl:77
40594 msgid ""
40595 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
40596 "you are not going to use the filesystem in a way that requires the journal, "
40597 "then this is just wasted overhead."
40598 msgstr ""
40599
40600 #. type: =item
40601 #: ../tools/virt-make-fs.pl:81
40602 msgid "I<ntfs> or I<vfat>"
40603 msgstr ""
40604
40605 #. type: textblock
40606 #: ../tools/virt-make-fs.pl:83
40607 msgid "Useful if exporting data to a Windows guest."
40608 msgstr ""
40609
40610 #. type: textblock
40611 #: ../tools/virt-make-fs.pl:85
40612 msgid ""
40613 "I<Note for vfat>: The tar archive or local directory must only contain files "
40614 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
40615 "program running within libguestfs is unable to change the ownership of "
40616 "non-root files, since vfat itself does not support this."
40617 msgstr ""
40618
40619 #. type: =item
40620 #: ../tools/virt-make-fs.pl:90
40621 msgid "I<minix>"
40622 msgstr ""
40623
40624 #. type: textblock
40625 #: ../tools/virt-make-fs.pl:92
40626 msgid ""
40627 "Lower overhead than C<ext2>, but certain limitations on filename length and "
40628 "total filesystem size."
40629 msgstr ""
40630
40631 #. type: =head3
40632 #: ../tools/virt-make-fs.pl:97 ../tools/virt-make-fs.pl:116 ../tools/virt-make-fs.pl:149
40633 msgid "EXAMPLE"
40634 msgstr ""
40635
40636 #. type: verbatim
40637 #: ../tools/virt-make-fs.pl:99
40638 #, no-wrap
40639 msgid ""
40640 " virt-make-fs --type=minix input minixfs.img\n"
40641 "\n"
40642 msgstr ""
40643
40644 #. type: =head2
40645 #: ../tools/virt-make-fs.pl:101
40646 msgid "TO PARTITION OR NOT TO PARTITION"
40647 msgstr ""
40648
40649 #. type: textblock
40650 #: ../tools/virt-make-fs.pl:103
40651 msgid "Optionally virt-make-fs can add a partition table to the output disk."
40652 msgstr ""
40653
40654 #. type: textblock
40655 #: ../tools/virt-make-fs.pl:105
40656 msgid ""
40657 "Adding a partition can make the disk image more compatible with certain "
40658 "virtualized operating systems which don't expect to see a filesystem "
40659 "directly located on a block device (Linux doesn't care and will happily "
40660 "handle both types)."
40661 msgstr ""
40662
40663 #. type: textblock
40664 #: ../tools/virt-make-fs.pl:110
40665 msgid ""
40666 "On the other hand, if you have a partition table then the output image is no "
40667 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
40668 "directly on a partitioned disk image.  (However libguestfs tools such as "
40669 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
40670 msgstr ""
40671
40672 #. type: textblock
40673 #: ../tools/virt-make-fs.pl:118
40674 msgid "Add an MBR partition:"
40675 msgstr ""
40676
40677 #. type: verbatim
40678 #: ../tools/virt-make-fs.pl:120
40679 #, no-wrap
40680 msgid ""
40681 " virt-make-fs --partition -- input disk.img\n"
40682 "\n"
40683 msgstr ""
40684
40685 #. type: textblock
40686 #: ../tools/virt-make-fs.pl:122
40687 msgid ""
40688 "If the output disk image could be terabyte-sized or larger, it's better to "
40689 "use an EFI/GPT-compatible partition table:"
40690 msgstr ""
40691
40692 #. type: verbatim
40693 #: ../tools/virt-make-fs.pl:125
40694 #, no-wrap
40695 msgid ""
40696 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
40697 "\n"
40698 msgstr ""
40699
40700 #. type: =head2
40701 #: ../tools/virt-make-fs.pl:127
40702 msgid "EXTRA SPACE"
40703 msgstr ""
40704
40705 #. type: textblock
40706 #: ../tools/virt-make-fs.pl:129
40707 msgid ""
40708 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
40709 "the files that it contains, but might have extra space.  Depending on how "
40710 "you are going to use the output, you might think this extra space is wasted "
40711 "and want to minimize it, or you might want to leave space so that more files "
40712 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
40713 "but you can use the I<--size> flag to leave space in the filesystem if you "
40714 "want it."
40715 msgstr ""
40716
40717 #. type: textblock
40718 #: ../tools/virt-make-fs.pl:137
40719 msgid ""
40720 "An alternative way to leave extra space but not make the output image any "
40721 "bigger is to use an alternative disk image format (instead of the default "
40722 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
40723 "image format (check your hypervisor supports this before using it).  This "
40724 "allows you to choose a large I<--size> but the extra space won't actually be "
40725 "allocated in the image until you try to store something in it."
40726 msgstr ""
40727
40728 #. type: textblock
40729 #: ../tools/virt-make-fs.pl:145
40730 msgid ""
40731 "Don't forget that you can also use local commands including L<resize2fs(8)> "
40732 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
40733 "to build another image from scratch."
40734 msgstr ""
40735
40736 #. type: verbatim
40737 #: ../tools/virt-make-fs.pl:151
40738 #, no-wrap
40739 msgid ""
40740 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
40741 "\n"
40742 msgstr ""
40743
40744 #. type: textblock
40745 #: ../tools/virt-make-fs.pl:179
40746 msgid "Enable debugging information."
40747 msgstr ""
40748
40749 #. type: =item
40750 #: ../tools/virt-make-fs.pl:185
40751 msgid "B<--size=E<lt>NE<gt>>"
40752 msgstr ""
40753
40754 #. type: =item
40755 #: ../tools/virt-make-fs.pl:187
40756 msgid "B<--size=+E<lt>NE<gt>>"
40757 msgstr ""
40758
40759 #. type: =item
40760 #: ../tools/virt-make-fs.pl:189
40761 msgid "B<-s E<lt>NE<gt>>"
40762 msgstr ""
40763
40764 #. type: =item
40765 #: ../tools/virt-make-fs.pl:191
40766 msgid "B<-s +E<lt>NE<gt>>"
40767 msgstr ""
40768
40769 #. type: textblock
40770 #: ../tools/virt-make-fs.pl:193
40771 msgid "Use the I<--size> (or I<-s>) option to choose the size of the output image."
40772 msgstr ""
40773
40774 #. type: textblock
40775 #: ../tools/virt-make-fs.pl:196
40776 msgid ""
40777 "If this option is I<not> given, then the output image will be just large "
40778 "enough to contain all the files, with not much wasted space."
40779 msgstr ""
40780
40781 #. type: textblock
40782 #: ../tools/virt-make-fs.pl:199
40783 msgid ""
40784 "To choose a fixed size output disk, specify an absolute number followed by "
40785 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
40786 "Petabytes or Exabytes.  This must be large enough to contain all the input "
40787 "files, else you will get an error."
40788 msgstr ""
40789
40790 #. type: textblock
40791 #: ../tools/virt-make-fs.pl:204
40792 msgid ""
40793 "To leave extra space, specify C<+> (plus sign) and a number followed by "
40794 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
40795 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
40796 "the input files, and (approximately) an extra 200 MB free space."
40797 msgstr ""
40798
40799 #. type: textblock
40800 #: ../tools/virt-make-fs.pl:210
40801 msgid ""
40802 "Note that virt-make-fs estimates free space, and therefore will not produce "
40803 "filesystems containing precisely the free space requested.  (It is much more "
40804 "expensive and time-consuming to produce a filesystem which has precisely the "
40805 "desired free space)."
40806 msgstr ""
40807
40808 #. type: =item
40809 #: ../tools/virt-make-fs.pl:219
40810 msgid "B<--format=E<lt>fmtE<gt>>"
40811 msgstr ""
40812
40813 #. type: =item
40814 #: ../tools/virt-make-fs.pl:221
40815 msgid "B<-F E<lt>fmtE<gt>>"
40816 msgstr ""
40817
40818 #. type: textblock
40819 #: ../tools/virt-make-fs.pl:223
40820 msgid "Choose the output disk image format."
40821 msgstr ""
40822
40823 #. type: textblock
40824 #: ../tools/virt-make-fs.pl:225
40825 msgid "The default is C<raw> (raw sparse disk image)."
40826 msgstr ""
40827
40828 #. type: textblock
40829 #: ../tools/virt-make-fs.pl:227
40830 msgid ""
40831 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
40832 "that would really make sense here is C<qcow2>."
40833 msgstr ""
40834
40835 #. type: =item
40836 #: ../tools/virt-make-fs.pl:234
40837 msgid "B<--type=E<lt>fsE<gt>>"
40838 msgstr ""
40839
40840 #. type: =item
40841 #: ../tools/virt-make-fs.pl:236
40842 msgid "B<-t E<lt>fsE<gt>>"
40843 msgstr ""
40844
40845 #. type: textblock
40846 #: ../tools/virt-make-fs.pl:238
40847 msgid "Choose the output filesystem type."
40848 msgstr ""
40849
40850 #. type: textblock
40851 #: ../tools/virt-make-fs.pl:240
40852 msgid "The default is C<ext2>."
40853 msgstr ""
40854
40855 #. type: textblock
40856 #: ../tools/virt-make-fs.pl:242
40857 msgid "Any filesystem which is supported read-write by libguestfs can be used here."
40858 msgstr ""
40859
40860 #. type: =item
40861 #: ../tools/virt-make-fs.pl:249
40862 msgid "B<--partition>"
40863 msgstr ""
40864
40865 #. type: =item
40866 #: ../tools/virt-make-fs.pl:251
40867 msgid "B<--partition=E<lt>parttypeE<gt>>"
40868 msgstr ""
40869
40870 #. type: textblock
40871 #: ../tools/virt-make-fs.pl:253
40872 msgid ""
40873 "If specified, this flag adds an MBR partition table to the output disk "
40874 "image."
40875 msgstr ""
40876
40877 #. type: textblock
40878 #: ../tools/virt-make-fs.pl:256
40879 msgid ""
40880 "You can change the partition table type, eg. I<--partition=gpt> for large "
40881 "disks."
40882 msgstr ""
40883
40884 #. type: textblock
40885 #: ../tools/virt-make-fs.pl:259
40886 msgid ""
40887 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
40888 "might consider the next parameter to be the partition type.  For example:"
40889 msgstr ""
40890
40891 #. type: verbatim
40892 #: ../tools/virt-make-fs.pl:263
40893 #, no-wrap
40894 msgid ""
40895 " virt-make-fs --partition input.tar output.img\n"
40896 "\n"
40897 msgstr ""
40898
40899 #. type: textblock
40900 #: ../tools/virt-make-fs.pl:265
40901 msgid ""
40902 "would cause virt-make-fs to think you wanted to use a partition type of "
40903 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
40904 "dash) between options and the input and output arguments:"
40905 msgstr ""
40906
40907 #. type: verbatim
40908 #: ../tools/virt-make-fs.pl:269
40909 #, no-wrap
40910 msgid ""
40911 " virt-make-fs --partition -- input.tar output.img\n"
40912 "\n"
40913 msgstr ""
40914
40915 #. type: textblock
40916 #: ../tools/virt-make-fs.pl:271
40917 msgid "For MBR, virt-make-fs sets the partition type byte automatically."
40918 msgstr ""
40919
40920 #. type: textblock
40921 #: ../tools/virt-make-fs.pl:559
40922 msgid ""
40923 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
40924 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
40925 "L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
40926 msgstr ""
40927
40928 #. type: textblock
40929 #: ../tools/virt-make-fs.pl:573 ../tools/virt-win-reg.pl:774
40930 msgid ""
40931 "When reporting bugs, please enable debugging and capture the I<complete> "
40932 "output:"
40933 msgstr ""
40934
40935 #. type: verbatim
40936 #: ../tools/virt-make-fs.pl:576
40937 #, no-wrap
40938 msgid ""
40939 " export LIBGUESTFS_DEBUG=1\n"
40940 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
40941 "\n"
40942 msgstr ""
40943
40944 #. type: textblock
40945 #: ../tools/virt-make-fs.pl:579
40946 msgid ""
40947 "Attach /tmp/virt-make-fs.log to a new bug report at "
40948 "L<https://bugzilla.redhat.com/>"
40949 msgstr ""
40950
40951 #. type: textblock
40952 #: ../tools/virt-tar.pl:33
40953 msgid "virt-tar - Extract or upload files to a virtual machine"
40954 msgstr ""
40955
40956 #. type: verbatim
40957 #: ../tools/virt-tar.pl:37
40958 #, no-wrap
40959 msgid ""
40960 " virt-tar [--options] -x domname directory tarball\n"
40961 "\n"
40962 msgstr ""
40963
40964 #. type: verbatim
40965 #: ../tools/virt-tar.pl:39
40966 #, no-wrap
40967 msgid ""
40968 " virt-tar [--options] -u domname tarball directory\n"
40969 "\n"
40970 msgstr ""
40971
40972 #. type: verbatim
40973 #: ../tools/virt-tar.pl:41
40974 #, no-wrap
40975 msgid ""
40976 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
40977 "\n"
40978 msgstr ""
40979
40980 #. type: verbatim
40981 #: ../tools/virt-tar.pl:43
40982 #, no-wrap
40983 msgid ""
40984 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
40985 "\n"
40986 msgstr ""
40987
40988 #. type: =head2
40989 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
40990 msgid "NOTE"
40991 msgstr ""
40992
40993 #. type: textblock
40994 #: ../tools/virt-tar.pl:47
40995 msgid ""
40996 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
40997 "L<virt-tar-in(1)>, L<virt-tar-out(1)> as replacements."
40998 msgstr ""
40999
41000 #. type: textblock
41001 #: ../tools/virt-tar.pl:52
41002 msgid "Download C</home> from the VM into a local tarball:"
41003 msgstr ""
41004
41005 #. type: verbatim
41006 #: ../tools/virt-tar.pl:54
41007 #, no-wrap
41008 msgid ""
41009 " virt-tar -x domname /home home.tar\n"
41010 "\n"
41011 msgstr ""
41012
41013 #. type: verbatim
41014 #: ../tools/virt-tar.pl:56
41015 #, no-wrap
41016 msgid ""
41017 " virt-tar -zx domname /home home.tar.gz\n"
41018 "\n"
41019 msgstr ""
41020
41021 #. type: textblock
41022 #: ../tools/virt-tar.pl:58
41023 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
41024 msgstr ""
41025
41026 #. type: verbatim
41027 #: ../tools/virt-tar.pl:60
41028 #, no-wrap
41029 msgid ""
41030 " virt-tar -u domname uploadstuff.tar /tmp\n"
41031 "\n"
41032 msgstr ""
41033
41034 #. type: verbatim
41035 #: ../tools/virt-tar.pl:62
41036 #, no-wrap
41037 msgid ""
41038 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
41039 "\n"
41040 msgstr ""
41041
41042 #. type: textblock
41043 #: ../tools/virt-tar.pl:66
41044 msgid ""
41045 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
41046 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
41047 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
41048 msgstr ""
41049
41050 #. type: textblock
41051 #: ../tools/virt-tar.pl:71
41052 msgid ""
41053 "You can use I<-x> (extract) on live virtual machines, but you might get "
41054 "inconsistent results or errors if there is filesystem activity inside the "
41055 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
41056 "work, but the only way to guarantee consistent results is if the virtual "
41057 "machine is shut down."
41058 msgstr ""
41059
41060 #. type: textblock
41061 #: ../tools/virt-tar.pl:79
41062 msgid ""
41063 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
41064 "parts of a guest filesystem.  There are many possibilities: making backups, "
41065 "uploading data files, snooping on guest activity, fixing or customizing "
41066 "guests, etc."
41067 msgstr ""
41068
41069 #. type: textblock
41070 #: ../tools/virt-tar.pl:84
41071 msgid ""
41072 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
41073 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
41074 "should look at the L<guestfish(1)> tool."
41075 msgstr ""
41076
41077 #. type: textblock
41078 #: ../tools/virt-tar.pl:88
41079 msgid ""
41080 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
41081 "its contents (recursively) from the virtual machine into a local tarball.  "
41082 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
41083 "virtual machine.  You cannot use these two options together."
41084 msgstr ""
41085
41086 #. type: textblock
41087 #: ../tools/virt-tar.pl:94
41088 msgid ""
41089 "In addition, you may need to use the I<-z> (gZip) option to enable "
41090 "compression.  When uploading, you have to specify I<-z> if the upload file "
41091 "is compressed because virt-tar won't detect this on its own."
41092 msgstr ""
41093
41094 #. type: textblock
41095 #: ../tools/virt-tar.pl:98
41096 msgid ""
41097 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
41098 "example it cannot do PKZip files or bzip2 compression.  If you want that "
41099 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
41100 "the L<libguestfs(3)> API)."
41101 msgstr ""
41102
41103 #. type: =item
41104 #: ../tools/virt-tar.pl:160
41105 msgid "B<--extract>"
41106 msgstr ""
41107
41108 #. type: =item
41109 #: ../tools/virt-tar.pl:162
41110 msgid "B<--download>"
41111 msgstr ""
41112
41113 #. type: =item
41114 #: ../tools/virt-tar.pl:164
41115 msgid "B<-u>"
41116 msgstr ""
41117
41118 #. type: =item
41119 #: ../tools/virt-tar.pl:166
41120 msgid "B<--upload>"
41121 msgstr ""
41122
41123 #. type: textblock
41124 #: ../tools/virt-tar.pl:168
41125 msgid ""
41126 "Use I<-x> to extract (download) a directory from a virtual machine to a "
41127 "local tarball."
41128 msgstr ""
41129
41130 #. type: textblock
41131 #: ../tools/virt-tar.pl:171
41132 msgid ""
41133 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
41134 "Please read the L</WARNING> section above before using this option."
41135 msgstr ""
41136
41137 #. type: textblock
41138 #: ../tools/virt-tar.pl:175
41139 msgid "You must specify exactly one of these options."
41140 msgstr ""
41141
41142 #. type: =item
41143 #: ../tools/virt-tar.pl:181
41144 msgid "B<-z>"
41145 msgstr ""
41146
41147 #. type: =item
41148 #: ../tools/virt-tar.pl:183
41149 msgid "B<--gzip>"
41150 msgstr ""
41151
41152 #. type: textblock
41153 #: ../tools/virt-tar.pl:185
41154 msgid "Specify that the input or output tarball is gzip-compressed."
41155 msgstr ""
41156
41157 #. type: textblock
41158 #: ../tools/virt-tar.pl:298
41159 msgid ""
41160 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
41161 "L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
41162 "L<virt-tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
41163 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41164 msgstr ""
41165
41166 #. type: textblock
41167 #: ../tools/virt-win-reg.pl:37
41168 msgid ""
41169 "virt-win-reg - Export and merge Windows Registry entries from a Windows "
41170 "guest"
41171 msgstr ""
41172
41173 #. type: verbatim
41174 #: ../tools/virt-win-reg.pl:41
41175 #, no-wrap
41176 msgid ""
41177 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
41178 "\n"
41179 msgstr ""
41180
41181 #. type: verbatim
41182 #: ../tools/virt-win-reg.pl:43
41183 #, no-wrap
41184 msgid ""
41185 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
41186 "\n"
41187 msgstr ""
41188
41189 #. type: verbatim
41190 #: ../tools/virt-win-reg.pl:45
41191 #, no-wrap
41192 msgid ""
41193 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
41194 "\n"
41195 msgstr ""
41196
41197 #. type: verbatim
41198 #: ../tools/virt-win-reg.pl:47
41199 #, no-wrap
41200 msgid ""
41201 " virt-win-reg --merge domname [input.reg ...]\n"
41202 "\n"
41203 msgstr ""
41204
41205 #. type: verbatim
41206 #: ../tools/virt-win-reg.pl:49
41207 #, no-wrap
41208 msgid ""
41209 " virt-win-reg [--options] disk.img ... # instead of domname\n"
41210 "\n"
41211 msgstr ""
41212
41213 #. type: textblock
41214 #: ../tools/virt-win-reg.pl:53
41215 msgid ""
41216 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
41217 "virtual machines.  If you do this, you I<will> get irreversible disk "
41218 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
41219 "but doesn't catch all cases."
41220 msgstr ""
41221
41222 #. type: textblock
41223 #: ../tools/virt-win-reg.pl:58
41224 msgid ""
41225 "Modifying the Windows Registry is an inherently risky operation.  The format "
41226 "is deliberately obscure and undocumented, and Registry changes can leave the "
41227 "system unbootable.  Therefore when using the I<--merge> option, make sure "
41228 "you have a reliable backup first."
41229 msgstr ""
41230
41231 #. type: textblock
41232 #: ../tools/virt-win-reg.pl:65
41233 msgid ""
41234 "This program can export and merge Windows Registry entries from a Windows "
41235 "guest."
41236 msgstr ""
41237
41238 #. type: textblock
41239 #: ../tools/virt-win-reg.pl:68
41240 msgid ""
41241 "The first parameter is the libvirt guest name or the raw disk image of a "
41242 "Windows guest."
41243 msgstr ""
41244
41245 #. type: textblock
41246 #: ../tools/virt-win-reg.pl:71
41247 msgid ""
41248 "If I<--merge> is I<not> specified, then the chosen registry key is "
41249 "displayed/exported (recursively).  For example:"
41250 msgstr ""
41251
41252 #. type: verbatim
41253 #: ../tools/virt-win-reg.pl:74
41254 #, no-wrap
41255 msgid ""
41256 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
41257 "\n"
41258 msgstr ""
41259
41260 #. type: textblock
41261 #: ../tools/virt-win-reg.pl:76
41262 msgid "You can also display single values from within registry keys, for example:"
41263 msgstr ""
41264
41265 #. type: verbatim
41266 #: ../tools/virt-win-reg.pl:79
41267 #, no-wrap
41268 msgid ""
41269 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
41270 " $ virt-win-reg Windows7 $cvkey ProductName\n"
41271 " Windows 7 Enterprise\n"
41272 "\n"
41273 msgstr ""
41274
41275 #. type: textblock
41276 #: ../tools/virt-win-reg.pl:83
41277 msgid ""
41278 "With I<--merge>, you can merge a textual regedit file into the Windows "
41279 "Registry:"
41280 msgstr ""
41281
41282 #. type: verbatim
41283 #: ../tools/virt-win-reg.pl:86
41284 #, no-wrap
41285 msgid ""
41286 " $ virt-win-reg --merge Windows7 changes.reg\n"
41287 "\n"
41288 msgstr ""
41289
41290 #. type: textblock
41291 #: ../tools/virt-win-reg.pl:90
41292 msgid ""
41293 "This program is only meant for simple access to the registry.  If you want "
41294 "to do complicated things with the registry, we suggest you download the "
41295 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
41296 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
41297 "L<hivexregedit(1)>."
41298 msgstr ""
41299
41300 #. type: =item
41301 #: ../tools/virt-win-reg.pl:159
41302 msgid "B<--merge>"
41303 msgstr ""
41304
41305 #. type: textblock
41306 #: ../tools/virt-win-reg.pl:161
41307 msgid ""
41308 "In merge mode, this merges a textual regedit file into the Windows Registry "
41309 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
41310 "displays or exports Registry entries instead."
41311 msgstr ""
41312
41313 #. type: textblock
41314 #: ../tools/virt-win-reg.pl:165
41315 msgid ""
41316 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
41317 "result in disk corruption.  However exporting (without this flag)  is always "
41318 "safe."
41319 msgstr ""
41320
41321 #. type: =item
41322 #: ../tools/virt-win-reg.pl:173
41323 msgid "B<--encoding> UTF-16LE|ASCII"
41324 msgstr ""
41325
41326 #. type: textblock
41327 #: ../tools/virt-win-reg.pl:175
41328 msgid ""
41329 "When merging (only), you may need to specify the encoding for strings to be "
41330 "used in the hive file.  This is explained in detail in "
41331 "L<Win::Hivex::Regedit(3)/ENCODING STRINGS>."
41332 msgstr ""
41333
41334 #. type: textblock
41335 #: ../tools/virt-win-reg.pl:179
41336 msgid ""
41337 "The default is to use UTF-16LE, which should work with recent versions of "
41338 "Windows."
41339 msgstr ""
41340
41341 #. type: =item
41342 #: ../tools/virt-win-reg.pl:186
41343 msgid "B<--unsafe-printable-strings>"
41344 msgstr ""
41345
41346 #. type: textblock
41347 #: ../tools/virt-win-reg.pl:188
41348 msgid ""
41349 "When exporting (only), assume strings are UTF-16LE and print them as strings "
41350 "instead of hex sequences.  Remove the final zero codepoint from strings if "
41351 "present."
41352 msgstr ""
41353
41354 #. type: textblock
41355 #: ../tools/virt-win-reg.pl:192
41356 msgid ""
41357 "This is unsafe and does not preserve the fidelity of strings in the original "
41358 "Registry for various reasons:"
41359 msgstr ""
41360
41361 #. type: textblock
41362 #: ../tools/virt-win-reg.pl:199
41363 msgid ""
41364 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
41365 "other encodings will be corrupted by this transformation."
41366 msgstr ""
41367
41368 #. type: textblock
41369 #: ../tools/virt-win-reg.pl:204
41370 msgid ""
41371 "Assumes that everything which has type 1 or 2 is really a string and that "
41372 "everything else is not a string, but the type field in real Registries is "
41373 "not reliable."
41374 msgstr ""
41375
41376 #. type: textblock
41377 #: ../tools/virt-win-reg.pl:210
41378 msgid ""
41379 "Loses information about whether a zero codepoint followed the string in the "
41380 "Registry or not."
41381 msgstr ""
41382
41383 #. type: textblock
41384 #: ../tools/virt-win-reg.pl:215
41385 msgid ""
41386 "This all happens because the Registry itself contains no information about "
41387 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
41388 msgstr ""
41389
41390 #. type: textblock
41391 #: ../tools/virt-win-reg.pl:219
41392 msgid ""
41393 "You should only use this option for quick hacking and debugging of the "
41394 "Registry contents, and I<never> use it if the output is going to be passed "
41395 "into another program or stored in another Registry."
41396 msgstr ""
41397
41398 #. type: =head1
41399 #: ../tools/virt-win-reg.pl:556
41400 msgid "SUPPORTED SYSTEMS"
41401 msgstr ""
41402
41403 #. type: textblock
41404 #: ../tools/virt-win-reg.pl:558
41405 msgid ""
41406 "The program currently supports Windows NT-derived guests starting with "
41407 "Windows XP through to at least Windows 7."
41408 msgstr ""
41409
41410 #. type: textblock
41411 #: ../tools/virt-win-reg.pl:561
41412 msgid "The following Registry keys are supported:"
41413 msgstr ""
41414
41415 #. type: =item
41416 #: ../tools/virt-win-reg.pl:565
41417 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
41418 msgstr ""
41419
41420 #. type: =item
41421 #: ../tools/virt-win-reg.pl:567
41422 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
41423 msgstr ""
41424
41425 #. type: =item
41426 #: ../tools/virt-win-reg.pl:569
41427 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
41428 msgstr ""
41429
41430 #. type: =item
41431 #: ../tools/virt-win-reg.pl:571
41432 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
41433 msgstr ""
41434
41435 #. type: =item
41436 #: ../tools/virt-win-reg.pl:573
41437 msgid "C<HKEY_USERS\\.DEFAULT>"
41438 msgstr ""
41439
41440 #. type: =item
41441 #: ../tools/virt-win-reg.pl:575
41442 msgid "C<HKEY_USERS\\I<SID>>"
41443 msgstr ""
41444
41445 #. type: textblock
41446 #: ../tools/virt-win-reg.pl:577
41447 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
41448 msgstr ""
41449
41450 #. type: =item
41451 #: ../tools/virt-win-reg.pl:579
41452 msgid "C<HKEY_USERS\\I<username>>"
41453 msgstr ""
41454
41455 #. type: textblock
41456 #: ../tools/virt-win-reg.pl:581
41457 msgid "where I<username> is a local user name (this is a libguestfs extension)."
41458 msgstr ""
41459
41460 #. type: textblock
41461 #: ../tools/virt-win-reg.pl:585
41462 msgid ""
41463 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
41464 "C<HKEY_USERS>."
41465 msgstr ""
41466
41467 #. type: textblock
41468 #: ../tools/virt-win-reg.pl:588
41469 msgid ""
41470 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
41471 "supported (there is no \"current user\")."
41472 msgstr ""
41473
41474 #. type: =head1
41475 #: ../tools/virt-win-reg.pl:591
41476 msgid "ENCODING"
41477 msgstr ""
41478
41479 #. type: textblock
41480 #: ../tools/virt-win-reg.pl:593
41481 msgid ""
41482 "C<virt-win-reg> expects that regedit files have already been reencoded in "
41483 "the local encoding.  Usually on Linux hosts, this means UTF-8 with "
41484 "Unix-style line endings.  Since Windows regedit files are often in UTF-16LE "
41485 "with Windows-style line endings, you may need to reencode the whole file "
41486 "before or after processing."
41487 msgstr ""
41488
41489 #. type: textblock
41490 #: ../tools/virt-win-reg.pl:599
41491 msgid ""
41492 "To reencode a file from Windows format to Linux (before processing it with "
41493 "the I<--merge> option), you would do something like this:"
41494 msgstr ""
41495
41496 #. type: verbatim
41497 #: ../tools/virt-win-reg.pl:602
41498 #, no-wrap
41499 msgid ""
41500 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
41501 "\n"
41502 msgstr ""
41503
41504 #. type: textblock
41505 #: ../tools/virt-win-reg.pl:604
41506 msgid ""
41507 "To go in the opposite direction, after exporting and before sending the file "
41508 "to a Windows user, do something like this:"
41509 msgstr ""
41510
41511 #. type: verbatim
41512 #: ../tools/virt-win-reg.pl:607
41513 #, no-wrap
41514 msgid ""
41515 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
41516 "\n"
41517 msgstr ""
41518
41519 #. type: textblock
41520 #: ../tools/virt-win-reg.pl:609
41521 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
41522 msgstr ""
41523
41524 #. type: textblock
41525 #: ../tools/virt-win-reg.pl:611
41526 msgid ""
41527 "If you are unsure about the current encoding, use the L<file(1)> command.  "
41528 "Recent versions of Windows regedit.exe produce a UTF-16LE file with "
41529 "Windows-style (CRLF) line endings, like this:"
41530 msgstr ""
41531
41532 #. type: verbatim
41533 #: ../tools/virt-win-reg.pl:615
41534 #, no-wrap
41535 msgid ""
41536 " $ file software.reg\n"
41537 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
41538 " with CRLF line terminators\n"
41539 "\n"
41540 msgstr ""
41541
41542 #. type: textblock
41543 #: ../tools/virt-win-reg.pl:619
41544 msgid "This file would need conversion before you could I<--merge> it."
41545 msgstr ""
41546
41547 #. type: =head1
41548 #: ../tools/virt-win-reg.pl:621
41549 msgid "CurrentControlSet etc."
41550 msgstr ""
41551
41552 #. type: textblock
41553 #: ../tools/virt-win-reg.pl:623
41554 msgid ""
41555 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
41556 "Registry at the level of the hive file, and therefore you cannot modify "
41557 "these."
41558 msgstr ""
41559
41560 #. type: textblock
41561 #: ../tools/virt-win-reg.pl:627
41562 msgid ""
41563 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
41564 "circumstances it might refer to another control set.  The way to find out is "
41565 "to look at the C<HKLM\\SYSTEM\\Select> key:"
41566 msgstr ""
41567
41568 #. type: verbatim
41569 #: ../tools/virt-win-reg.pl:631
41570 #, no-wrap
41571 msgid ""
41572 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
41573 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
41574 " \"Current\"=dword:00000001\n"
41575 " \"Default\"=dword:00000001\n"
41576 " \"Failed\"=dword:00000000\n"
41577 " \"LastKnownGood\"=dword:00000002\n"
41578 "\n"
41579 msgstr ""
41580
41581 #. type: textblock
41582 #: ../tools/virt-win-reg.pl:638
41583 msgid "\"Current\" is the one which Windows will choose when it boots."
41584 msgstr ""
41585
41586 #. type: textblock
41587 #: ../tools/virt-win-reg.pl:640
41588 msgid "Similarly, other C<Current...> keys in the path may need to be replaced."
41589 msgstr ""
41590
41591 #. type: =head1
41592 #: ../tools/virt-win-reg.pl:643
41593 msgid "DELETING REGISTRY KEYS AND VALUES"
41594 msgstr ""
41595
41596 #. type: textblock
41597 #: ../tools/virt-win-reg.pl:645
41598 msgid "To delete a whole registry key, use the syntax:"
41599 msgstr ""
41600
41601 #. type: verbatim
41602 #: ../tools/virt-win-reg.pl:647
41603 #, no-wrap
41604 msgid ""
41605 " [-HKEY_LOCAL_MACHINE\\Foo]\n"
41606 "\n"
41607 msgstr ""
41608
41609 #. type: textblock
41610 #: ../tools/virt-win-reg.pl:649
41611 msgid "To delete a single value within a key, use the syntax:"
41612 msgstr ""
41613
41614 #. type: verbatim
41615 #: ../tools/virt-win-reg.pl:651
41616 #, no-wrap
41617 msgid ""
41618 " [HKEY_LOCAL_MACHINE\\Foo]\n"
41619 " \"Value\"=-\n"
41620 "\n"
41621 msgstr ""
41622
41623 #. type: =head1
41624 #: ../tools/virt-win-reg.pl:654
41625 msgid "WINDOWS TIPS"
41626 msgstr ""
41627
41628 #. type: textblock
41629 #: ../tools/virt-win-reg.pl:656
41630 msgid ""
41631 "Note that some of these tips modify the guest disk image.  The guest I<must> "
41632 "be shut off, else you will get disk corruption."
41633 msgstr ""
41634
41635 #. type: =head2
41636 #: ../tools/virt-win-reg.pl:659
41637 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
41638 msgstr ""
41639
41640 #. type: textblock
41641 #: ../tools/virt-win-reg.pl:661
41642 msgid ""
41643 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
41644 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
41645 "is uploaded into C<C:\\>:"
41646 msgstr ""
41647
41648 #. type: verbatim
41649 #: ../tools/virt-win-reg.pl:665
41650 #, no-wrap
41651 msgid ""
41652 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
41653 "\n"
41654 msgstr ""
41655
41656 #. type: textblock
41657 #: ../tools/virt-win-reg.pl:667
41658 msgid "Prepare a regedit file containing the registry change:"
41659 msgstr ""
41660
41661 #. type: verbatim
41662 #: ../tools/virt-win-reg.pl:669
41663 #, no-wrap
41664 msgid ""
41665 " cat > test.reg <<'EOF'\n"
41666 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
41667 " \"Test\"=\"c:\\\\test.bat\"\n"
41668 " EOF\n"
41669 "\n"
41670 msgstr ""
41671
41672 #. type: textblock
41673 #: ../tools/virt-win-reg.pl:674
41674 msgid ""
41675 "In this example we use the key C<RunOnce> which means that the script will "
41676 "run precisely once when the first user logs in.  If you want it to run every "
41677 "time a user logs in, replace C<RunOnce> with C<Run>."
41678 msgstr ""
41679
41680 #. type: textblock
41681 #: ../tools/virt-win-reg.pl:678
41682 msgid "Now update the registry:"
41683 msgstr ""
41684
41685 #. type: verbatim
41686 #: ../tools/virt-win-reg.pl:680
41687 #, no-wrap
41688 msgid ""
41689 " virt-win-reg --merge WindowsGuest test.reg\n"
41690 "\n"
41691 msgstr ""
41692
41693 #. type: =head2
41694 #: ../tools/virt-win-reg.pl:682
41695 msgid "INSTALLING A SERVICE"
41696 msgstr ""
41697
41698 #. type: textblock
41699 #: ../tools/virt-win-reg.pl:684
41700 msgid ""
41701 "This section assumes you are familiar with Windows services, and you either "
41702 "have a program which handles the Windows Service Control Protocol directly "
41703 "or you want to run any program using a service wrapper like SrvAny or the "
41704 "free RHSrvAny."
41705 msgstr ""
41706
41707 #. type: textblock
41708 #: ../tools/virt-win-reg.pl:689
41709 msgid ""
41710 "First upload the program and optionally the service wrapper.  In this case "
41711 "the test program is called C<test.exe> and we are using the RHSrvAny "
41712 "wrapper:"
41713 msgstr ""
41714
41715 #. type: verbatim
41716 #: ../tools/virt-win-reg.pl:693
41717 #, no-wrap
41718 msgid ""
41719 " guestfish -i -d WindowsGuest <<EOF\n"
41720 "   upload rhsrvany.exe /rhsrvany.exe\n"
41721 "   upload test.exe /test.exe\n"
41722 " EOF\n"
41723 "\n"
41724 msgstr ""
41725
41726 #. type: textblock
41727 #: ../tools/virt-win-reg.pl:698
41728 msgid ""
41729 "Prepare a regedit file containing the registry changes.  In this example, "
41730 "the first registry change is needed for the service itself or the service "
41731 "wrapper (if used).  The second registry change is only needed because I am "
41732 "using the RHSrvAny service wrapper."
41733 msgstr ""
41734
41735 #. type: verbatim
41736 #: ../tools/virt-win-reg.pl:703
41737 #, no-wrap
41738 msgid ""
41739 " cat > service.reg <<'EOF'\n"
41740 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
41741 " \"Type\"=dword:00000010\n"
41742 " \"Start\"=dword:00000002\n"
41743 " \"ErrorControl\"=dword:00000001\n"
41744 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
41745 " \"DisplayName\"=\"RHSrvAny\"\n"
41746 " \"ObjectName\"=\"NetworkService\"\n"
41747 " \n"
41748 msgstr ""
41749
41750 #. type: verbatim
41751 #: ../tools/virt-win-reg.pl:712
41752 #, no-wrap
41753 msgid ""
41754 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
41755 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
41756 " \"PWD\"=\"c:\\\\Temp\"\n"
41757 " EOF\n"
41758 "\n"
41759 msgstr ""
41760
41761 #. type: textblock
41762 #: ../tools/virt-win-reg.pl:723
41763 msgid ""
41764 "For use of C<ControlSet001> see the section above in this manual page.  You "
41765 "may need to adjust this according to the control set that is in use by the "
41766 "guest."
41767 msgstr ""
41768
41769 #. type: textblock
41770 #: ../tools/virt-win-reg.pl:729
41771 msgid ""
41772 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
41773 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
41774 "privileged account."
41775 msgstr ""
41776
41777 #. type: textblock
41778 #: ../tools/virt-win-reg.pl:735
41779 msgid ""
41780 "For the meaning of the magic numbers, see this Microsoft KB article: "
41781 "L<http://support.microsoft.com/kb/103000>."
41782 msgstr ""
41783
41784 #. type: textblock
41785 #: ../tools/virt-win-reg.pl:740
41786 msgid "Update the registry:"
41787 msgstr ""
41788
41789 #. type: verbatim
41790 #: ../tools/virt-win-reg.pl:742
41791 #, no-wrap
41792 msgid ""
41793 " virt-win-reg --merge WindowsGuest service.reg\n"
41794 "\n"
41795 msgstr ""
41796
41797 #. type: textblock
41798 #: ../tools/virt-win-reg.pl:746
41799 msgid ""
41800 "Be careful when passing parameters containing C<\\> (backslash) in the "
41801 "shell.  Usually you will have to use 'single quotes' or double backslashes "
41802 "(but not both) to protect them from the shell."
41803 msgstr ""
41804
41805 #. type: textblock
41806 #: ../tools/virt-win-reg.pl:750
41807 msgid "Paths and value names are case-insensitive."
41808 msgstr ""
41809
41810 #. type: textblock
41811 #: ../tools/virt-win-reg.pl:759
41812 msgid ""
41813 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
41814 "L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
41815 "L<Sys::Guestfs::Lib(3)>, L<Win::Hivex(3)>, L<Win::Hivex::Regedit(3)>, "
41816 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41817 msgstr ""
41818
41819 #. type: verbatim
41820 #: ../tools/virt-win-reg.pl:777
41821 #, no-wrap
41822 msgid ""
41823 " export LIBGUESTFS_DEBUG=1\n"
41824 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
41825 "\n"
41826 msgstr ""
41827
41828 #. type: textblock
41829 #: ../tools/virt-win-reg.pl:780
41830 msgid ""
41831 "Attach /tmp/virt-win-reg.log to a new bug report at "
41832 "L<https://bugzilla.redhat.com/>"
41833 msgstr ""