Version 1.15.10.
[libguestfs.git] / po-docs / libguestfs-docs.pot
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Red Hat Inc.
3 # This file is distributed under the same license as the libguestfs package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: libguestfs 1.15.10\n"
10 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
11 "POT-Creation-Date: 2011-12-06 15:09+0000\n"
12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14 "Language-Team: LANGUAGE <LL@li.org>\n"
15 "Language: \n"
16 "MIME-Version: 1.0\n"
17 "Content-Type: text/plain; charset=UTF-8\n"
18 "Content-Transfer-Encoding: 8bit\n"
19
20 #. type: =head1
21 #: ../align/virt-alignment-scan.pod:3 ../cat/virt-cat.pod:3 ../cat/virt-filesystems.pod:3 ../cat/virt-ls.pod:3 ../clone/virt-sysprep.pod:3 ../df/virt-df.pod:3 ../edit/virt-edit.pod:3 ../erlang/examples/guestfs-erlang.pod:3 ../examples/guestfs-examples.pod:3 ../examples/guestfs-recipes.pod:14 ../examples/guestfs-testing.pod:3 ../fish/guestfish.pod:3 ../fish/virt-copy-in.pod:3 ../fish/virt-copy-out.pod:3 ../fish/virt-tar-in.pod:3 ../fish/virt-tar-out.pod:3 ../fuse/guestmount.pod:3 ../inspector/virt-inspector.pod:3 ../java/examples/guestfs-java.pod:3 ../ocaml/examples/guestfs-ocaml.pod:3 ../perl/examples/guestfs-perl.pod:3 ../python/examples/guestfs-python.pod:3 ../rescue/virt-rescue.pod:3 ../resize/virt-resize.pod:3 ../ruby/examples/guestfs-ruby.pod:3 ../sparsify/virt-sparsify.pod:3 ../src/guestfs.pod:3 ../test-tool/libguestfs-test-tool.pod:3 ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30 ../tools/virt-make-fs.pl:35 ../tools/virt-tar.pl:31 ../tools/virt-win-reg.pl:35
22 msgid "NAME"
23 msgstr ""
24
25 #. type: textblock
26 #: ../align/virt-alignment-scan.pod:5
27 msgid "virt-alignment-scan - Check alignment of virtual machine partitions"
28 msgstr ""
29
30 #. type: =head1
31 #: ../align/virt-alignment-scan.pod:7 ../cat/virt-cat.pod:7 ../cat/virt-filesystems.pod:7 ../cat/virt-ls.pod:7 ../clone/virt-sysprep.pod:7 ../df/virt-df.pod:7 ../edit/virt-edit.pod:7 ../erlang/examples/guestfs-erlang.pod:7 ../examples/guestfs-examples.pod:7 ../fish/guestfish.pod:7 ../fish/virt-copy-in.pod:7 ../fish/virt-copy-out.pod:7 ../fish/virt-tar-in.pod:7 ../fish/virt-tar-out.pod:7 ../fuse/guestmount.pod:7 ../inspector/virt-inspector.pod:7 ../java/examples/guestfs-java.pod:7 ../ocaml/examples/guestfs-ocaml.pod:7 ../perl/examples/guestfs-perl.pod:7 ../python/examples/guestfs-python.pod:7 ../rescue/virt-rescue.pod:7 ../resize/virt-resize.pod:7 ../ruby/examples/guestfs-ruby.pod:7 ../sparsify/virt-sparsify.pod:7 ../src/guestfs.pod:7 ../test-tool/libguestfs-test-tool.pod:7 ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34 ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35 ../tools/virt-win-reg.pl:39
32 msgid "SYNOPSIS"
33 msgstr ""
34
35 #. type: verbatim
36 #: ../align/virt-alignment-scan.pod:9
37 #, no-wrap
38 msgid ""
39 " virt-alignment-scan [--options] -d domname\n"
40 "\n"
41 msgstr ""
42
43 #. type: verbatim
44 #: ../align/virt-alignment-scan.pod:11
45 #, no-wrap
46 msgid ""
47 " virt-alignment-scan [--options] -a disk.img [-a disk.img ...]\n"
48 "\n"
49 msgstr ""
50
51 #. type: =head1
52 #: ../align/virt-alignment-scan.pod:13 ../cat/virt-cat.pod:19 ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19 ../clone/virt-sysprep.pod:13 ../df/virt-df.pod:21 ../edit/virt-edit.pod:27 ../erlang/examples/guestfs-erlang.pod:16 ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18 ../examples/guestfs-testing.pod:7 ../fish/guestfish.pod:30 ../fish/virt-copy-in.pod:19 ../fish/virt-copy-out.pod:13 ../fish/virt-tar-in.pod:21 ../fish/virt-tar-out.pod:15 ../fuse/guestmount.pod:20 ../inspector/virt-inspector.pod:19 ../java/examples/guestfs-java.pod:15 ../ocaml/examples/guestfs-ocaml.pod:25 ../perl/examples/guestfs-perl.pod:18 ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:31 ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15 ../sparsify/virt-sparsify.pod:11 ../src/guestfs.pod:23 ../test-tool/libguestfs-test-tool.pod:11 ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40 ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77 ../tools/virt-win-reg.pl:63
53 msgid "DESCRIPTION"
54 msgstr ""
55
56 #. type: textblock
57 #: ../align/virt-alignment-scan.pod:15
58 msgid ""
59 "When older operating systems install themselves, the partitioning tools "
60 "place partitions at a sector misaligned with the underlying storage "
61 "(commonly the first partition starts on sector C<63>).  Misaligned "
62 "partitions can result in an operating system issuing more I/O than should be "
63 "necessary."
64 msgstr ""
65
66 #. type: textblock
67 #: ../align/virt-alignment-scan.pod:21
68 msgid ""
69 "The virt-alignment-scan tool checks the alignment of partitions in virtual "
70 "machines and disk images and warns you if there are alignment problems."
71 msgstr ""
72
73 #. type: textblock
74 #: ../align/virt-alignment-scan.pod:25
75 msgid ""
76 "Currently there is no virt tool for fixing alignment problems.  You can only "
77 "reinstall the guest operating system.  The following NetApp document "
78 "summarises the problem and possible solutions: "
79 "L<http://media.netapp.com/documents/tr-3747.pdf>"
80 msgstr ""
81
82 #. type: =head1
83 #: ../align/virt-alignment-scan.pod:30
84 msgid "OUTPUT"
85 msgstr ""
86
87 #. type: textblock
88 #: ../align/virt-alignment-scan.pod:32
89 msgid "To run this tool on a disk image directly, use the I<-a> option:"
90 msgstr ""
91
92 #. type: verbatim
93 #: ../align/virt-alignment-scan.pod:34
94 #, no-wrap
95 msgid ""
96 " $ virt-alignment-scan -a winxp.img\n"
97 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
98 "\n"
99 msgstr ""
100
101 #. type: verbatim
102 #: ../align/virt-alignment-scan.pod:37
103 #, no-wrap
104 msgid ""
105 " $ virt-alignment-scan -a fedora16.img\n"
106 " /dev/sda1      1048576         1024K   ok\n"
107 " /dev/sda2      2097152         2048K   ok\n"
108 " /dev/sda3    526385152         2048K   ok\n"
109 "\n"
110 msgstr ""
111
112 #. type: textblock
113 #: ../align/virt-alignment-scan.pod:42
114 msgid ""
115 "To run the tool on a guest known to libvirt, use the I<-d> option and "
116 "possibly the I<-c> option:"
117 msgstr ""
118
119 #. type: verbatim
120 #: ../align/virt-alignment-scan.pod:45
121 #, no-wrap
122 msgid ""
123 " # virt-alignment-scan -d RHEL5\n"
124 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
125 " /dev/sda2    106928640          512    bad (alignment < 4K)\n"
126 "\n"
127 msgstr ""
128
129 #. type: verbatim
130 #: ../align/virt-alignment-scan.pod:49
131 #, no-wrap
132 msgid ""
133 " $ virt-alignment-scan -c qemu:///system -d Win7TwoDisks\n"
134 " /dev/sda1      1048576         1024K   ok\n"
135 " /dev/sda2    105906176         1024K   ok\n"
136 " /dev/sdb1        65536           64K   ok\n"
137 "\n"
138 msgstr ""
139
140 #. type: textblock
141 #: ../align/virt-alignment-scan.pod:54
142 msgid ""
143 "The output consists of 4 or more whitespace-separated columns.  Only the "
144 "first 4 columns are signficant if you want to parse this from a program.  "
145 "The columns are:"
146 msgstr ""
147
148 #. type: =item
149 #: ../align/virt-alignment-scan.pod:60
150 msgid "col 1"
151 msgstr ""
152
153 #. type: textblock
154 #: ../align/virt-alignment-scan.pod:62
155 msgid ""
156 "the device and partition name (eg. C</dev/sda1> meaning the first partition "
157 "on the first block device)"
158 msgstr ""
159
160 #. type: =item
161 #: ../align/virt-alignment-scan.pod:65
162 msgid "col 2"
163 msgstr ""
164
165 #. type: textblock
166 #: ../align/virt-alignment-scan.pod:67
167 msgid "the start of the partition in bytes"
168 msgstr ""
169
170 #. type: =item
171 #: ../align/virt-alignment-scan.pod:69
172 msgid "col 3"
173 msgstr ""
174
175 #. type: textblock
176 #: ../align/virt-alignment-scan.pod:71
177 msgid "the alignment in bytes or Kbytes (eg. C<512> or C<4K>)"
178 msgstr ""
179
180 #. type: =item
181 #: ../align/virt-alignment-scan.pod:73
182 msgid "col 4"
183 msgstr ""
184
185 #. type: textblock
186 #: ../align/virt-alignment-scan.pod:75
187 msgid ""
188 "C<ok> if the alignment is best for performance, or C<bad> if the alignment "
189 "can cause performance problems"
190 msgstr ""
191
192 #. type: =item
193 #: ../align/virt-alignment-scan.pod:78
194 msgid "cols 5+"
195 msgstr ""
196
197 #. type: textblock
198 #: ../align/virt-alignment-scan.pod:80
199 msgid "optional free-text explanation."
200 msgstr ""
201
202 #. type: textblock
203 #: ../align/virt-alignment-scan.pod:84
204 msgid ""
205 "The exit code from the program changes depending on whether poorly aligned "
206 "partitions were found.  See L</EXIT STATUS> below."
207 msgstr ""
208
209 #. type: textblock
210 #: ../align/virt-alignment-scan.pod:87
211 msgid "If you just want the exit code with no output, use the I<-q> option."
212 msgstr ""
213
214 #. type: =head1
215 #: ../align/virt-alignment-scan.pod:89 ../cat/virt-cat.pod:62 ../cat/virt-filesystems.pod:91 ../cat/virt-ls.pod:261 ../clone/virt-sysprep.pod:42 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62 ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45 ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42 ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:92 ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:112 ../resize/virt-resize.pod:262 ../sparsify/virt-sparsify.pod:99 ../test-tool/libguestfs-test-tool.pod:36 ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54 ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103 ../tools/virt-win-reg.pl:96
216 msgid "OPTIONS"
217 msgstr ""
218
219 #. type: =item
220 #: ../align/virt-alignment-scan.pod:93 ../cat/virt-cat.pod:66 ../cat/virt-filesystems.pod:95 ../cat/virt-ls.pod:265 ../clone/virt-sysprep.pod:46 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66 ../fish/guestfish.pod:152 ../fuse/guestmount.pod:160 ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:116 ../resize/virt-resize.pod:266 ../sparsify/virt-sparsify.pod:103 ../test-tool/libguestfs-test-tool.pod:40 ../tools/virt-list-filesystems.pl:61 ../tools/virt-list-partitions.pl:62 ../tools/virt-make-fs.pl:161 ../tools/virt-tar.pl:111 ../tools/virt-win-reg.pl:104
221 msgid "B<--help>"
222 msgstr ""
223
224 #. type: textblock
225 #: ../align/virt-alignment-scan.pod:95 ../cat/virt-cat.pod:68 ../cat/virt-filesystems.pod:97 ../cat/virt-ls.pod:267 ../clone/virt-sysprep.pod:48 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68 ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:118 ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64 ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113 ../tools/virt-win-reg.pl:106
226 msgid "Display brief help."
227 msgstr ""
228
229 #. type: =item
230 #: ../align/virt-alignment-scan.pod:97 ../cat/virt-cat.pod:70 ../cat/virt-filesystems.pod:99 ../cat/virt-ls.pod:269 ../clone/virt-sysprep.pod:50 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70 ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:120
231 msgid "B<-a> file"
232 msgstr ""
233
234 #. type: =item
235 #: ../align/virt-alignment-scan.pod:99 ../cat/virt-cat.pod:72 ../cat/virt-filesystems.pod:101 ../cat/virt-ls.pod:271 ../clone/virt-sysprep.pod:52 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72 ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:122
236 msgid "B<--add> file"
237 msgstr ""
238
239 #. type: textblock
240 #: ../align/virt-alignment-scan.pod:101 ../clone/virt-sysprep.pod:54
241 msgid "Add I<file> which should be a disk image from a virtual machine."
242 msgstr ""
243
244 #. type: textblock
245 #: ../align/virt-alignment-scan.pod:103 ../cat/virt-cat.pod:78 ../cat/virt-filesystems.pod:107 ../cat/virt-ls.pod:277 ../clone/virt-sysprep.pod:56 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78 ../fish/guestfish.pod:174 ../fuse/guestmount.pod:102 ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:128
246 msgid ""
247 "The format of the disk image is auto-detected.  To override this and force a "
248 "particular format use the I<--format=..> option."
249 msgstr ""
250
251 #. type: =item
252 #: ../align/virt-alignment-scan.pod:106 ../cat/virt-cat.pod:81 ../cat/virt-filesystems.pod:125 ../cat/virt-ls.pod:291 ../clone/virt-sysprep.pod:59 ../df/virt-df.pod:78 ../rescue/virt-rescue.pod:135
253 msgid "B<-c> URI"
254 msgstr ""
255
256 #. type: =item
257 #: ../align/virt-alignment-scan.pod:108 ../cat/virt-cat.pod:83 ../cat/virt-filesystems.pod:127 ../cat/virt-ls.pod:293 ../clone/virt-sysprep.pod:61 ../df/virt-df.pod:80 ../rescue/virt-rescue.pod:137
258 msgid "B<--connect> URI"
259 msgstr ""
260
261 #. type: textblock
262 #: ../align/virt-alignment-scan.pod:110 ../cat/virt-cat.pod:85 ../cat/virt-filesystems.pod:129 ../cat/virt-ls.pod:295 ../clone/virt-sysprep.pod:63 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99 ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:139 ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82 ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
263 msgid ""
264 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
265 "to the default libvirt hypervisor."
266 msgstr ""
267
268 #. type: textblock
269 #: ../align/virt-alignment-scan.pod:113 ../cat/virt-cat.pod:88 ../cat/virt-filesystems.pod:132 ../cat/virt-ls.pod:298 ../clone/virt-sysprep.pod:66 ../df/virt-df.pod:85 ../rescue/virt-rescue.pod:142
270 msgid ""
271 "If you specify guest block devices directly (I<-a>), then libvirt is not "
272 "used at all."
273 msgstr ""
274
275 #. type: =item
276 #: ../align/virt-alignment-scan.pod:116 ../cat/virt-cat.pod:91 ../cat/virt-filesystems.pod:141 ../cat/virt-ls.pod:307 ../clone/virt-sysprep.pod:69 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105 ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:145
277 msgid "B<-d> guest"
278 msgstr ""
279
280 #. type: =item
281 #: ../align/virt-alignment-scan.pod:118 ../cat/virt-cat.pod:93 ../cat/virt-filesystems.pod:143 ../cat/virt-ls.pod:309 ../clone/virt-sysprep.pod:71 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107 ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:147
282 msgid "B<--domain> guest"
283 msgstr ""
284
285 #. type: textblock
286 #: ../align/virt-alignment-scan.pod:120 ../cat/virt-cat.pod:95 ../cat/virt-filesystems.pod:145 ../cat/virt-ls.pod:311 ../clone/virt-sysprep.pod:73 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109 ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:149
287 msgid ""
288 "Add all the disks from the named libvirt guest.  Domain UUIDs can be used "
289 "instead of names."
290 msgstr ""
291
292 #. type: =item
293 #: ../align/virt-alignment-scan.pod:123 ../cat/virt-cat.pod:105 ../cat/virt-filesystems.pod:170 ../cat/virt-ls.pod:328 ../clone/virt-sysprep.pod:95 ../df/virt-df.pod:101 ../fish/guestfish.pod:233 ../fuse/guestmount.pod:142 ../inspector/virt-inspector.pod:99 ../rescue/virt-rescue.pod:152
294 msgid "B<--format=raw|qcow2|..>"
295 msgstr ""
296
297 #. type: =item
298 #: ../align/virt-alignment-scan.pod:125 ../cat/virt-cat.pod:107 ../cat/virt-filesystems.pod:172 ../cat/virt-ls.pod:330 ../clone/virt-sysprep.pod:97 ../df/virt-df.pod:103 ../edit/virt-edit.pod:134 ../fish/guestfish.pod:235 ../fuse/guestmount.pod:144 ../inspector/virt-inspector.pod:101 ../rescue/virt-rescue.pod:154
299 msgid "B<--format>"
300 msgstr ""
301
302 #. type: textblock
303 #: ../align/virt-alignment-scan.pod:127 ../cat/virt-cat.pod:109 ../cat/virt-filesystems.pod:174 ../cat/virt-ls.pod:332 ../clone/virt-sysprep.pod:99 ../df/virt-df.pod:105 ../edit/virt-edit.pod:136 ../fish/guestfish.pod:237 ../fuse/guestmount.pod:146 ../rescue/virt-rescue.pod:156
304 msgid ""
305 "The default for the I<-a> option is to auto-detect the format of the disk "
306 "image.  Using this forces the disk format for I<-a> options which follow on "
307 "the command line.  Using I<--format> with no argument switches back to "
308 "auto-detection for subsequent I<-a> options."
309 msgstr ""
310
311 #. type: textblock
312 #: ../align/virt-alignment-scan.pod:132 ../cat/virt-cat.pod:114 ../cat/virt-filesystems.pod:179 ../cat/virt-ls.pod:337 ../clone/virt-sysprep.pod:104 ../df/virt-df.pod:110 ../edit/virt-edit.pod:141 ../fish/guestfish.pod:242 ../fish/guestfish.pod:673 ../inspector/virt-inspector.pod:351 ../rescue/virt-rescue.pod:161 ../src/guestfs.pod:2877
313 msgid "For example:"
314 msgstr ""
315
316 #. type: verbatim
317 #: ../align/virt-alignment-scan.pod:134
318 #, no-wrap
319 msgid ""
320 " virt-alignment-scan --format=raw -a disk.img\n"
321 "\n"
322 msgstr ""
323
324 #. type: textblock
325 #: ../align/virt-alignment-scan.pod:136 ../cat/virt-cat.pod:118 ../cat/virt-filesystems.pod:183 ../cat/virt-ls.pod:341 ../clone/virt-sysprep.pod:108 ../df/virt-df.pod:114 ../edit/virt-edit.pod:145 ../fish/guestfish.pod:246 ../rescue/virt-rescue.pod:165
326 msgid "forces raw format (no auto-detection) for C<disk.img>."
327 msgstr ""
328
329 #. type: verbatim
330 #: ../align/virt-alignment-scan.pod:138
331 #, no-wrap
332 msgid ""
333 " virt-alignment-scan --format=raw -a disk.img --format -a another.img\n"
334 "\n"
335 msgstr ""
336
337 #. type: textblock
338 #: ../align/virt-alignment-scan.pod:140 ../cat/virt-cat.pod:122 ../cat/virt-filesystems.pod:187 ../cat/virt-ls.pod:345 ../clone/virt-sysprep.pod:112 ../df/virt-df.pod:118 ../edit/virt-edit.pod:149 ../fish/guestfish.pod:250 ../rescue/virt-rescue.pod:169
339 msgid ""
340 "forces raw format (no auto-detection) for C<disk.img> and reverts to "
341 "auto-detection for C<another.img>."
342 msgstr ""
343
344 #. type: textblock
345 #: ../align/virt-alignment-scan.pod:143 ../cat/virt-cat.pod:125 ../cat/virt-filesystems.pod:190 ../cat/virt-ls.pod:348 ../clone/virt-sysprep.pod:115 ../df/virt-df.pod:121 ../edit/virt-edit.pod:152 ../rescue/virt-rescue.pod:172
346 msgid ""
347 "If you have untrusted raw-format guest disk images, you should use this "
348 "option to specify the disk format.  This avoids a possible security problem "
349 "with malicious guests (CVE-2010-3851)."
350 msgstr ""
351
352 #. type: =item
353 #: ../align/virt-alignment-scan.pod:147 ../resize/virt-resize.pod:497 ../sparsify/virt-sparsify.pod:177
354 msgid "B<-q>"
355 msgstr ""
356
357 #. type: =item
358 #: ../align/virt-alignment-scan.pod:149 ../resize/virt-resize.pod:499 ../sparsify/virt-sparsify.pod:179
359 msgid "B<--quiet>"
360 msgstr ""
361
362 #. type: textblock
363 #: ../align/virt-alignment-scan.pod:151
364 msgid ""
365 "Don't produce any output.  Just set the exit code (see L</EXIT STATUS> "
366 "below)."
367 msgstr ""
368
369 #. type: =item
370 #: ../align/virt-alignment-scan.pod:154 ../cat/virt-cat.pod:134 ../cat/virt-filesystems.pod:261 ../cat/virt-ls.pod:425 ../clone/virt-sysprep.pod:138 ../df/virt-df.pod:173 ../edit/virt-edit.pod:161 ../fish/guestfish.pod:390 ../fuse/guestmount.pod:266 ../inspector/virt-inspector.pod:119 ../rescue/virt-rescue.pod:219 ../sparsify/virt-sparsify.pod:183
371 msgid "B<-v>"
372 msgstr ""
373
374 #. type: =item
375 #: ../align/virt-alignment-scan.pod:156 ../cat/virt-cat.pod:136 ../cat/virt-filesystems.pod:263 ../cat/virt-ls.pod:427 ../clone/virt-sysprep.pod:140 ../df/virt-df.pod:175 ../edit/virt-edit.pod:163 ../fish/guestfish.pod:392 ../fuse/guestmount.pod:268 ../inspector/virt-inspector.pod:121 ../rescue/virt-rescue.pod:221 ../sparsify/virt-sparsify.pod:185
376 msgid "B<--verbose>"
377 msgstr ""
378
379 #. type: textblock
380 #: ../align/virt-alignment-scan.pod:158 ../cat/virt-cat.pod:138 ../cat/virt-filesystems.pod:265 ../cat/virt-ls.pod:429 ../clone/virt-sysprep.pod:142 ../df/virt-df.pod:177 ../edit/virt-edit.pod:165 ../inspector/virt-inspector.pod:123 ../rescue/virt-rescue.pod:223 ../sparsify/virt-sparsify.pod:187
381 msgid "Enable verbose messages for debugging."
382 msgstr ""
383
384 #. type: =item
385 #: ../align/virt-alignment-scan.pod:160 ../cat/virt-cat.pod:140 ../cat/virt-filesystems.pod:267 ../cat/virt-ls.pod:431 ../clone/virt-sysprep.pod:144 ../df/virt-df.pod:179 ../edit/virt-edit.pod:167 ../fish/guestfish.pod:397 ../fuse/guestmount.pod:272 ../inspector/virt-inspector.pod:125 ../rescue/virt-rescue.pod:225 ../resize/virt-resize.pod:567 ../sparsify/virt-sparsify.pod:189
386 msgid "B<-V>"
387 msgstr ""
388
389 #. type: =item
390 #: ../align/virt-alignment-scan.pod:162 ../cat/virt-cat.pod:142 ../cat/virt-filesystems.pod:269 ../cat/virt-ls.pod:433 ../clone/virt-sysprep.pod:146 ../df/virt-df.pod:181 ../edit/virt-edit.pod:169 ../fish/guestfish.pod:399 ../fuse/guestmount.pod:274 ../inspector/virt-inspector.pod:127 ../rescue/virt-rescue.pod:227 ../resize/virt-resize.pod:569 ../sparsify/virt-sparsify.pod:191 ../tools/virt-list-filesystems.pl:69 ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169 ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
391 msgid "B<--version>"
392 msgstr ""
393
394 #. type: textblock
395 #: ../align/virt-alignment-scan.pod:164 ../cat/virt-cat.pod:144 ../cat/virt-filesystems.pod:271 ../cat/virt-ls.pod:435 ../clone/virt-sysprep.pod:148 ../df/virt-df.pod:183 ../edit/virt-edit.pod:171 ../inspector/virt-inspector.pod:129 ../rescue/virt-rescue.pod:229 ../resize/virt-resize.pod:571 ../sparsify/virt-sparsify.pod:193 ../tools/virt-list-filesystems.pl:71 ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171 ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114
396 msgid "Display version number and exit."
397 msgstr ""
398
399 #. type: =item
400 #: ../align/virt-alignment-scan.pod:166 ../cat/virt-cat.pod:146 ../cat/virt-filesystems.pod:281 ../cat/virt-ls.pod:437 ../clone/virt-sysprep.pod:150 ../df/virt-df.pod:185 ../edit/virt-edit.pod:173 ../fish/guestfish.pod:412 ../fuse/guestmount.pod:287 ../inspector/virt-inspector.pod:131 ../rescue/virt-rescue.pod:240 ../sparsify/virt-sparsify.pod:195 ../tools/virt-tar.pl:158
401 msgid "B<-x>"
402 msgstr ""
403
404 #. type: textblock
405 #: ../align/virt-alignment-scan.pod:168 ../cat/virt-cat.pod:148 ../cat/virt-filesystems.pod:283 ../cat/virt-ls.pod:439 ../clone/virt-sysprep.pod:152 ../df/virt-df.pod:187 ../edit/virt-edit.pod:175 ../inspector/virt-inspector.pod:133 ../rescue/virt-rescue.pod:242 ../sparsify/virt-sparsify.pod:197
406 msgid "Enable tracing of libguestfs API calls."
407 msgstr ""
408
409 #. type: =head1
410 #: ../align/virt-alignment-scan.pod:172
411 msgid "RECOMMENDED ALIGNMENT"
412 msgstr ""
413
414 #. type: textblock
415 #: ../align/virt-alignment-scan.pod:174
416 msgid ""
417 "Operating systems older than Windows 2008 and Linux before ca.2010 place the "
418 "first sector of the first partition at sector 63, with a 512 byte sector "
419 "size.  This happens because of a historical accident.  Drives have to report "
420 "a cylinder / head / sector (CHS) geometry to the BIOS.  The geometry is "
421 "completely meaningless on modern drives, but it happens that the geometry "
422 "reported always has 63 sectors per track.  The operating system therefore "
423 "places the first partition at the start of the second \"track\", at sector "
424 "63."
425 msgstr ""
426
427 #. type: textblock
428 #: ../align/virt-alignment-scan.pod:183
429 msgid ""
430 "When the guest OS is virtualized, the host operating system and hypervisor "
431 "may prefer accesses aligned to one of:"
432 msgstr ""
433
434 #. type: =item
435 #: ../align/virt-alignment-scan.pod:188
436 msgid "* 512 bytes"
437 msgstr ""
438
439 #. type: textblock
440 #: ../align/virt-alignment-scan.pod:190
441 msgid ""
442 "if the host OS uses local storage directly on hard drive partitions, and the "
443 "hard drive has 512 byte physical sectors."
444 msgstr ""
445
446 #. type: =item
447 #: ../align/virt-alignment-scan.pod:193
448 msgid "* 4 Kbytes"
449 msgstr ""
450
451 #. type: textblock
452 #: ../align/virt-alignment-scan.pod:195
453 msgid ""
454 "for local storage on new hard drives with 4Kbyte physical sectors; for "
455 "file-backed storage on filesystems with 4Kbyte block size; or for some types "
456 "of network-attached storage."
457 msgstr ""
458
459 #. type: =item
460 #: ../align/virt-alignment-scan.pod:199
461 msgid "* 64 Kbytes"
462 msgstr ""
463
464 #. type: textblock
465 #: ../align/virt-alignment-scan.pod:201
466 msgid ""
467 "for high-end network-attached storage.  This is the optimal block size for "
468 "some NetApp hardware."
469 msgstr ""
470
471 #. type: =item
472 #: ../align/virt-alignment-scan.pod:204
473 msgid "* 1 Mbyte"
474 msgstr ""
475
476 #. type: textblock
477 #: ../align/virt-alignment-scan.pod:206
478 msgid "see L</1 MB PARTITION ALIGNMENT> below."
479 msgstr ""
480
481 #. type: textblock
482 #: ../align/virt-alignment-scan.pod:210
483 msgid ""
484 "Partitions which are not aligned correctly to the underlying storage cause "
485 "extra I/O.  For example:"
486 msgstr ""
487
488 #. type: verbatim
489 #: ../align/virt-alignment-scan.pod:213
490 #, no-wrap
491 msgid ""
492 "                       sect#63\n"
493 "                       +--------------------------+------\n"
494 "                       |         guest            |\n"
495 "                       |    filesystem block      |\n"
496 " ---+------------------+------+-------------------+-----+---\n"
497 "    |  host block             |  host block             |\n"
498 "    |                         |                         |\n"
499 " ---+-------------------------+-------------------------+---\n"
500 "\n"
501 msgstr ""
502
503 #. type: textblock
504 #: ../align/virt-alignment-scan.pod:222
505 msgid ""
506 "In this example, each time a 4K guest block is read, two blocks on the host "
507 "must be accessed (so twice as much I/O is done).  When a 4K guest block is "
508 "written, two host blocks must first be read, the old and new data combined, "
509 "and the two blocks written back (4x I/O)."
510 msgstr ""
511
512 #. type: =head2
513 #: ../align/virt-alignment-scan.pod:227
514 msgid "LINUX HOST BLOCK AND I/O SIZE"
515 msgstr ""
516
517 #. type: textblock
518 #: ../align/virt-alignment-scan.pod:229
519 msgid ""
520 "New versions of the Linux kernel expose the physical and logical block size, "
521 "and minimum and recommended I/O size."
522 msgstr ""
523
524 #. type: textblock
525 #: ../align/virt-alignment-scan.pod:232
526 msgid "For a typical consumer hard drive with 512 byte sectors:"
527 msgstr ""
528
529 #. type: verbatim
530 #: ../align/virt-alignment-scan.pod:234
531 #, no-wrap
532 msgid ""
533 " $ cat /sys/block/sda/queue/hw_sector_size\n"
534 " 512\n"
535 " $ cat /sys/block/sda/queue/physical_block_size\n"
536 " 512\n"
537 " $ cat /sys/block/sda/queue/logical_block_size\n"
538 " 512\n"
539 " $ cat /sys/block/sda/queue/minimum_io_size\n"
540 " 512\n"
541 " $ cat /sys/block/sda/queue/optimal_io_size\n"
542 " 0\n"
543 "\n"
544 msgstr ""
545
546 #. type: textblock
547 #: ../align/virt-alignment-scan.pod:245
548 msgid "For a new consumer hard drive with 4Kbyte sectors:"
549 msgstr ""
550
551 #. type: verbatim
552 #: ../align/virt-alignment-scan.pod:247
553 #, no-wrap
554 msgid ""
555 " $ cat /sys/block/sda/queue/hw_sector_size\n"
556 " 4096\n"
557 " $ cat /sys/block/sda/queue/physical_block_size\n"
558 " 4096\n"
559 " $ cat /sys/block/sda/queue/logical_block_size\n"
560 " 4096\n"
561 " $ cat /sys/block/sda/queue/minimum_io_size\n"
562 " 4096\n"
563 " $ cat /sys/block/sda/queue/optimal_io_size\n"
564 " 0\n"
565 "\n"
566 msgstr ""
567
568 #. type: textblock
569 #: ../align/virt-alignment-scan.pod:258
570 msgid "For a NetApp LUN:"
571 msgstr ""
572
573 #. type: verbatim
574 #: ../align/virt-alignment-scan.pod:260
575 #, no-wrap
576 msgid ""
577 " $ cat /sys/block/sdc/queue/logical_block_size\n"
578 " 512\n"
579 " $ cat /sys/block/sdc/queue/physical_block_size\n"
580 " 512\n"
581 " $ cat /sys/block/sdc/queue/minimum_io_size\n"
582 " 4096\n"
583 " $ cat /sys/block/sdc/queue/optimal_io_size\n"
584 " 65536\n"
585 "\n"
586 msgstr ""
587
588 #. type: textblock
589 #: ../align/virt-alignment-scan.pod:269
590 msgid ""
591 "The NetApp allows 512 byte accesses (but they will be very inefficient), "
592 "prefers a minimum 4K I/O size, but the optimal I/O size is 64K."
593 msgstr ""
594
595 #. type: textblock
596 #: ../align/virt-alignment-scan.pod:273
597 msgid ""
598 "For detailed information about what these numbers mean, see "
599 "L<http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Storage_Administration_Guide/newstorage-iolimits.html>"
600 msgstr ""
601
602 #. type: textblock
603 #: ../align/virt-alignment-scan.pod:276
604 msgid ""
605 "[Thanks to Matt Booth for providing 4K drive data.  Thanks to Mike Snitzer "
606 "for providing NetApp data and additional information.]"
607 msgstr ""
608
609 #. type: =head2
610 #: ../align/virt-alignment-scan.pod:279
611 msgid "1 MB PARTITION ALIGNMENT"
612 msgstr ""
613
614 #. type: textblock
615 #: ../align/virt-alignment-scan.pod:281
616 msgid ""
617 "Microsoft picked 1 MB as the default alignment for all partitions starting "
618 "with Windows 2008 Server, and Linux has followed this."
619 msgstr ""
620
621 #. type: textblock
622 #: ../align/virt-alignment-scan.pod:284
623 msgid ""
624 "Assuming 512 byte sectors in the guest, you will now see the first partition "
625 "starting at sector 2048, and subsequent partitions (if any)  will start at a "
626 "multiple of 2048 sectors."
627 msgstr ""
628
629 #. type: textblock
630 #: ../align/virt-alignment-scan.pod:288
631 msgid ""
632 "1 MB alignment is compatible with all current alignment requirements (4K, "
633 "64K) and provides room for future growth in physical block sizes."
634 msgstr ""
635
636 #. type: =head2
637 #: ../align/virt-alignment-scan.pod:291
638 msgid "SETTING ALIGNMENT"
639 msgstr ""
640
641 #. type: textblock
642 #: ../align/virt-alignment-scan.pod:293
643 msgid ""
644 "L<virt-resize(1)> can change the alignment of the partitions of some "
645 "guests.  Currently it can fully align all the partitions of all Windows "
646 "guests, and it will fix the bootloader where necessary.  For Linux guests, "
647 "it can align the second and subsequent partitions, so the majority of OS "
648 "accesses except at boot will be aligned."
649 msgstr ""
650
651 #. type: textblock
652 #: ../align/virt-alignment-scan.pod:299
653 msgid ""
654 "Another way to correct partition alignment problems is to reinstall your "
655 "guest operating systems.  If you install operating systems from templates, "
656 "ensure these have correct partition alignment too."
657 msgstr ""
658
659 #. type: textblock
660 #: ../align/virt-alignment-scan.pod:303
661 msgid ""
662 "For older versions of Windows, the following NetApp document contains useful "
663 "information: L<http://media.netapp.com/documents/tr-3747.pdf>"
664 msgstr ""
665
666 #. type: textblock
667 #: ../align/virt-alignment-scan.pod:306
668 msgid ""
669 "For Red Hat Enterprise Linux E<le> 5, use a Kickstart script that contains "
670 "an explicit C<%pre> section that creates aligned partitions using "
671 "L<parted(8)>.  Do not use the Kickstart C<part> command.  The NetApp "
672 "document above contains an example."
673 msgstr ""
674
675 #. type: =head1
676 #: ../align/virt-alignment-scan.pod:311 ../cat/virt-cat.pod:231 ../cat/virt-filesystems.pod:373 ../cat/virt-ls.pod:483 ../clone/virt-sysprep.pod:475 ../df/virt-df.pod:241 ../edit/virt-edit.pod:342 ../inspector/virt-inspector.pod:367 ../rescue/virt-rescue.pod:303 ../resize/virt-resize.pod:682 ../tools/virt-list-filesystems.pl:188 ../tools/virt-list-partitions.pl:258 ../tools/virt-make-fs.pl:550 ../tools/virt-tar.pl:289 ../tools/virt-win-reg.pl:744
677 msgid "SHELL QUOTING"
678 msgstr ""
679
680 #. type: textblock
681 #: ../align/virt-alignment-scan.pod:313 ../cat/virt-cat.pod:233 ../cat/virt-filesystems.pod:375 ../cat/virt-ls.pod:485 ../clone/virt-sysprep.pod:477 ../df/virt-df.pod:243 ../edit/virt-edit.pod:344 ../inspector/virt-inspector.pod:369 ../rescue/virt-rescue.pod:305 ../resize/virt-resize.pod:684 ../tools/virt-list-filesystems.pl:190 ../tools/virt-list-partitions.pl:260 ../tools/virt-make-fs.pl:552 ../tools/virt-tar.pl:291 ../tools/virt-win-reg.pl:752
682 msgid ""
683 "Libvirt guest names can contain arbitrary characters, some of which have "
684 "meaning to the shell such as C<#> and space.  You may need to quote or "
685 "escape these characters on the command line.  See the shell manual page "
686 "L<sh(1)> for details."
687 msgstr ""
688
689 #. type: =head1
690 #: ../align/virt-alignment-scan.pod:318 ../cat/virt-cat.pod:238 ../cat/virt-filesystems.pod:380 ../cat/virt-ls.pod:490 ../clone/virt-sysprep.pod:482 ../df/virt-df.pod:248 ../edit/virt-edit.pod:349 ../fish/guestfish.pod:1114 ../fuse/guestmount.pod:312 ../inspector/virt-inspector.pod:390 ../resize/virt-resize.pod:689 ../sparsify/virt-sparsify.pod:251 ../test-tool/libguestfs-test-tool.pod:90
691 msgid "EXIT STATUS"
692 msgstr ""
693
694 #. type: textblock
695 #: ../align/virt-alignment-scan.pod:320
696 msgid "This program returns:"
697 msgstr ""
698
699 #. type: =item
700 #: ../align/virt-alignment-scan.pod:324 ../align/virt-alignment-scan.pod:330 ../align/virt-alignment-scan.pod:336 ../align/virt-alignment-scan.pod:343 ../cat/virt-cat.pod:177 ../cat/virt-cat.pod:182 ../cat/virt-cat.pod:187 ../cat/virt-cat.pod:198 ../cat/virt-cat.pod:202 ../clone/virt-sysprep.pod:283 ../clone/virt-sysprep.pod:287 ../clone/virt-sysprep.pod:291 ../clone/virt-sysprep.pod:295 ../clone/virt-sysprep.pod:310 ../clone/virt-sysprep.pod:314 ../clone/virt-sysprep.pod:318 ../clone/virt-sysprep.pod:322 ../clone/virt-sysprep.pod:326 ../clone/virt-sysprep.pod:362 ../clone/virt-sysprep.pod:384 ../clone/virt-sysprep.pod:388 ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266 ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276 ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291 ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102 ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132 ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227 ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235 ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243 ../examples/guestfs-testing.pod:110 ../examples/guestfs-testing.pod:114 ../examples/guestfs-testing.pod:118 ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:441 ../fish/guestfish-actions.pod:449 ../fish/guestfish-actions.pod:456 ../fish/guestfish-actions.pod:463 ../fish/guestfish-actions.pod:1293 ../fish/guestfish-actions.pod:1297 ../fish/guestfish-actions.pod:1301 ../fish/guestfish-actions.pod:1305 ../fish/guestfish-actions.pod:1313 ../fish/guestfish-actions.pod:1317 ../fish/guestfish-actions.pod:1321 ../fish/guestfish-actions.pod:1331 ../fish/guestfish-actions.pod:1335 ../fish/guestfish-actions.pod:1339 ../fish/guestfish-actions.pod:1429 ../fish/guestfish-actions.pod:1433 ../fish/guestfish-actions.pod:1438 ../fish/guestfish-actions.pod:1443 ../fish/guestfish-actions.pod:1485 ../fish/guestfish-actions.pod:1489 ../fish/guestfish-actions.pod:1494 ../fish/guestfish-actions.pod:1750 ../fish/guestfish-actions.pod:1757 ../fish/guestfish-actions.pod:1764 ../fish/guestfish-actions.pod:2167 ../fish/guestfish-actions.pod:2173 ../fish/guestfish-actions.pod:2181 ../fish/guestfish-actions.pod:2188 ../fish/guestfish-actions.pod:2195 ../fish/guestfish.pod:445 ../fish/guestfish.pod:449 ../fish/guestfish.pod:453 ../fish/guestfish.pod:457 ../inspector/virt-inspector.pod:408 ../inspector/virt-inspector.pod:412 ../resize/virt-resize.pod:365 ../resize/virt-resize.pod:369 ../resize/virt-resize.pod:378 ../resize/virt-resize.pod:384 ../sparsify/virt-sparsify.pod:32 ../sparsify/virt-sparsify.pod:39 ../sparsify/virt-sparsify.pod:43 ../sparsify/virt-sparsify.pod:49 ../sparsify/virt-sparsify.pod:54 ../sparsify/virt-sparsify.pod:58 ../sparsify/virt-sparsify.pod:64 ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:29 ../src/guestfs-actions.pod:641 ../src/guestfs-actions.pod:649 ../src/guestfs-actions.pod:656 ../src/guestfs-actions.pod:663 ../src/guestfs-actions.pod:2118 ../src/guestfs-actions.pod:2122 ../src/guestfs-actions.pod:2126 ../src/guestfs-actions.pod:2130 ../src/guestfs-actions.pod:2138 ../src/guestfs-actions.pod:2142 ../src/guestfs-actions.pod:2146 ../src/guestfs-actions.pod:2156 ../src/guestfs-actions.pod:2160 ../src/guestfs-actions.pod:2164 ../src/guestfs-actions.pod:2302 ../src/guestfs-actions.pod:2306 ../src/guestfs-actions.pod:2311 ../src/guestfs-actions.pod:2316 ../src/guestfs-actions.pod:2377 ../src/guestfs-actions.pod:2381 ../src/guestfs-actions.pod:2386 ../src/guestfs-actions.pod:2801 ../src/guestfs-actions.pod:2808 ../src/guestfs-actions.pod:2815 ../src/guestfs-actions.pod:3360 ../src/guestfs-actions.pod:3366 ../src/guestfs-actions.pod:3374 ../src/guestfs-actions.pod:3381 ../src/guestfs-actions.pod:3388 ../src/guestfs.pod:403 ../src/guestfs.pod:408 ../src/guestfs.pod:413 ../src/guestfs.pod:417 ../src/guestfs.pod:422 ../src/guestfs.pod:426 ../src/guestfs.pod:431 ../src/guestfs.pod:436 ../src/guestfs.pod:1109 ../src/guestfs.pod:1113 ../src/guestfs.pod:1117 ../src/guestfs.pod:1122 ../src/guestfs.pod:1130 ../src/guestfs.pod:1149 ../src/guestfs.pod:1157 ../src/guestfs.pod:1179 ../src/guestfs.pod:1183 ../src/guestfs.pod:1187 ../src/guestfs.pod:1191 ../src/guestfs.pod:1195 ../src/guestfs.pod:1199 ../src/guestfs.pod:1689 ../src/guestfs.pod:1694 ../src/guestfs.pod:1698 ../src/guestfs.pod:1800 ../src/guestfs.pod:1805 ../src/guestfs.pod:1809 ../src/guestfs.pod:1819 ../src/guestfs.pod:2108 ../src/guestfs.pod:2113 ../src/guestfs.pod:2119 ../src/guestfs.pod:2127 ../src/guestfs.pod:2645 ../src/guestfs.pod:2651 ../src/guestfs.pod:2656 ../src/guestfs.pod:2662 ../src/guestfs.pod:3067 ../src/guestfs.pod:3072 ../src/guestfs.pod:3076 ../src/guestfs.pod:3080 ../src/guestfs.pod:3084 ../src/guestfs.pod:3098 ../src/guestfs.pod:3103 ../src/guestfs.pod:3335 ../src/guestfs.pod:3339 ../src/guestfs.pod:3343 ../src/guestfs.pod:3347 ../tools/virt-win-reg.pl:197 ../tools/virt-win-reg.pl:202 ../tools/virt-win-reg.pl:208 ../tools/virt-win-reg.pl:721 ../tools/virt-win-reg.pl:727 ../tools/virt-win-reg.pl:733
701 msgid "*"
702 msgstr ""
703
704 #. type: textblock
705 #: ../align/virt-alignment-scan.pod:326
706 msgid "0"
707 msgstr ""
708
709 #. type: textblock
710 #: ../align/virt-alignment-scan.pod:328
711 msgid "successful exit, all partitions are aligned E<ge> 64K for best performance"
712 msgstr ""
713
714 #. type: textblock
715 #: ../align/virt-alignment-scan.pod:332
716 msgid "1"
717 msgstr ""
718
719 #. type: textblock
720 #: ../align/virt-alignment-scan.pod:334
721 msgid "an error scanning the disk image or guest"
722 msgstr ""
723
724 #. type: textblock
725 #: ../align/virt-alignment-scan.pod:338
726 msgid "2"
727 msgstr ""
728
729 #. type: textblock
730 #: ../align/virt-alignment-scan.pod:340
731 msgid ""
732 "successful exit, some partitions have alignment E<lt> 64K which can result "
733 "in poor performance on high end network storage"
734 msgstr ""
735
736 #. type: textblock
737 #: ../align/virt-alignment-scan.pod:345
738 msgid "3"
739 msgstr ""
740
741 #. type: textblock
742 #: ../align/virt-alignment-scan.pod:347
743 msgid ""
744 "successful exit, some partitions have alignment E<lt> 4K which can result in "
745 "poor performance on most hypervisors"
746 msgstr ""
747
748 #. type: =head1
749 #: ../align/virt-alignment-scan.pod:352 ../cat/virt-cat.pod:243 ../cat/virt-filesystems.pod:385 ../cat/virt-ls.pod:495 ../clone/virt-sysprep.pod:486 ../df/virt-df.pod:253 ../edit/virt-edit.pod:354 ../erlang/examples/guestfs-erlang.pod:97 ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384 ../examples/guestfs-testing.pod:291 ../fish/guestfish.pod:1268 ../fish/virt-copy-in.pod:50 ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47 ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:317 ../inspector/virt-inspector.pod:395 ../java/examples/guestfs-java.pod:45 ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39 ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:325 ../resize/virt-resize.pod:694 ../ruby/examples/guestfs-ruby.pod:36 ../sparsify/virt-sparsify.pod:275 ../src/guestfs.pod:3275 ../test-tool/libguestfs-test-tool.pod:100 ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265 ../tools/virt-make-fs.pl:557 ../tools/virt-tar.pl:296 ../tools/virt-win-reg.pl:757
750 msgid "SEE ALSO"
751 msgstr ""
752
753 #. type: textblock
754 #: ../align/virt-alignment-scan.pod:354
755 msgid ""
756 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-rescue(1)>, "
757 "L<virt-resize(1)>, L<http://libguestfs.org/>."
758 msgstr ""
759
760 #. type: =head1
761 #: ../align/virt-alignment-scan.pod:361 ../cat/virt-cat.pod:252 ../cat/virt-filesystems.pod:396 ../cat/virt-ls.pod:507 ../clone/virt-sysprep.pod:501 ../df/virt-df.pod:261 ../edit/virt-edit.pod:368 ../rescue/virt-rescue.pod:334 ../resize/virt-resize.pod:717 ../sparsify/virt-sparsify.pod:288 ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277 ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:311 ../tools/virt-win-reg.pl:783
762 msgid "AUTHOR"
763 msgstr ""
764
765 #. type: textblock
766 #: ../align/virt-alignment-scan.pod:363 ../cat/virt-cat.pod:254 ../cat/virt-filesystems.pod:398 ../cat/virt-ls.pod:509 ../clone/virt-sysprep.pod:503 ../df/virt-df.pod:263 ../edit/virt-edit.pod:370 ../inspector/virt-inspector.pod:410 ../rescue/virt-rescue.pod:336 ../resize/virt-resize.pod:719 ../sparsify/virt-sparsify.pod:290 ../tools/virt-list-filesystems.pl:210 ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:584 ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:785
767 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
768 msgstr ""
769
770 #. type: =head1
771 #: ../align/virt-alignment-scan.pod:365 ../cat/virt-cat.pod:256 ../cat/virt-filesystems.pod:400 ../cat/virt-ls.pod:511 ../clone/virt-sysprep.pod:505 ../df/virt-df.pod:265 ../edit/virt-edit.pod:372 ../erlang/examples/guestfs-erlang.pod:114 ../examples/guestfs-examples.pod:49 ../examples/guestfs-recipes.pod:401 ../examples/guestfs-testing.pod:302 ../fish/guestfish.pod:1300 ../fish/virt-copy-in.pod:64 ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62 ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:332 ../inspector/virt-inspector.pod:418 ../java/examples/guestfs-java.pod:62 ../ocaml/examples/guestfs-ocaml.pod:95 ../perl/examples/guestfs-perl.pod:56 ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:338 ../resize/virt-resize.pod:721 ../ruby/examples/guestfs-ruby.pod:52 ../sparsify/virt-sparsify.pod:292 ../src/guestfs.pod:3358 ../test-tool/libguestfs-test-tool.pod:110 ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281 ../tools/virt-make-fs.pl:586 ../tools/virt-tar.pl:315 ../tools/virt-win-reg.pl:787
772 msgid "COPYRIGHT"
773 msgstr ""
774
775 #. type: textblock
776 #: ../align/virt-alignment-scan.pod:367 ../clone/virt-sysprep.pod:507 ../sparsify/virt-sparsify.pod:294
777 msgid "Copyright (C) 2011 Red Hat Inc."
778 msgstr ""
779
780 #. type: textblock
781 #: ../align/virt-alignment-scan.pod:369 ../cat/virt-cat.pod:260 ../cat/virt-filesystems.pod:404 ../cat/virt-ls.pod:515 ../clone/virt-sysprep.pod:509 ../df/virt-df.pod:269 ../edit/virt-edit.pod:376 ../fish/guestfish.pod:1305 ../fish/virt-copy-in.pod:69 ../fish/virt-copy-out.pod:58 ../fish/virt-tar-in.pod:67 ../fish/virt-tar-out.pod:60 ../fuse/guestmount.pod:337 ../inspector/virt-inspector.pod:422 ../rescue/virt-rescue.pod:342 ../resize/virt-resize.pod:725 ../sparsify/virt-sparsify.pod:296 ../test-tool/libguestfs-test-tool.pod:115 ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285 ../tools/virt-make-fs.pl:590 ../tools/virt-tar.pl:319 ../tools/virt-win-reg.pl:791
782 msgid ""
783 "This program is free software; you can redistribute it and/or modify it "
784 "under the terms of the GNU General Public License as published by the Free "
785 "Software Foundation; either version 2 of the License, or (at your option) "
786 "any later version."
787 msgstr ""
788
789 #. type: textblock
790 #: ../align/virt-alignment-scan.pod:374 ../cat/virt-cat.pod:265 ../cat/virt-filesystems.pod:409 ../cat/virt-ls.pod:520 ../clone/virt-sysprep.pod:514 ../df/virt-df.pod:274 ../edit/virt-edit.pod:381 ../fish/guestfish.pod:1310 ../fish/virt-copy-in.pod:74 ../fish/virt-copy-out.pod:63 ../fish/virt-tar-in.pod:72 ../fish/virt-tar-out.pod:65 ../fuse/guestmount.pod:342 ../inspector/virt-inspector.pod:427 ../rescue/virt-rescue.pod:347 ../resize/virt-resize.pod:730 ../sparsify/virt-sparsify.pod:301 ../test-tool/libguestfs-test-tool.pod:120 ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290 ../tools/virt-make-fs.pl:595 ../tools/virt-tar.pl:324 ../tools/virt-win-reg.pl:796
791 msgid ""
792 "This program is distributed in the hope that it will be useful, but WITHOUT "
793 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
794 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
795 "more details."
796 msgstr ""
797
798 #. type: textblock
799 #: ../align/virt-alignment-scan.pod:379 ../cat/virt-cat.pod:270 ../cat/virt-filesystems.pod:414 ../cat/virt-ls.pod:525 ../clone/virt-sysprep.pod:519 ../df/virt-df.pod:279 ../edit/virt-edit.pod:386 ../fish/guestfish.pod:1315 ../fish/virt-copy-in.pod:79 ../fish/virt-copy-out.pod:68 ../fish/virt-tar-in.pod:77 ../fish/virt-tar-out.pod:70 ../fuse/guestmount.pod:347 ../inspector/virt-inspector.pod:432 ../rescue/virt-rescue.pod:352 ../resize/virt-resize.pod:735 ../sparsify/virt-sparsify.pod:306 ../test-tool/libguestfs-test-tool.pod:125 ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295 ../tools/virt-make-fs.pl:600 ../tools/virt-tar.pl:329 ../tools/virt-win-reg.pl:801
800 msgid ""
801 "You should have received a copy of the GNU General Public License along with "
802 "this program; if not, write to the Free Software Foundation, Inc., 51 "
803 "Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA."
804 msgstr ""
805
806 #. type: textblock
807 #: ../cat/virt-cat.pod:5
808 msgid "virt-cat - Display files in a virtual machine"
809 msgstr ""
810
811 #. type: verbatim
812 #: ../cat/virt-cat.pod:9
813 #, no-wrap
814 msgid ""
815 " virt-cat [--options] -d domname file [file ...]\n"
816 "\n"
817 msgstr ""
818
819 #. type: verbatim
820 #: ../cat/virt-cat.pod:11
821 #, no-wrap
822 msgid ""
823 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
824 "\n"
825 msgstr ""
826
827 #. type: textblock
828 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15 ../inspector/virt-inspector.pod:13
829 msgid "Old-style:"
830 msgstr ""
831
832 #. type: verbatim
833 #: ../cat/virt-cat.pod:15
834 #, no-wrap
835 msgid ""
836 " virt-cat domname file\n"
837 "\n"
838 msgstr ""
839
840 #. type: verbatim
841 #: ../cat/virt-cat.pod:17
842 #, no-wrap
843 msgid ""
844 " virt-cat disk.img file\n"
845 "\n"
846 msgstr ""
847
848 #. type: textblock
849 #: ../cat/virt-cat.pod:21
850 msgid ""
851 "C<virt-cat> is a command line tool to display the contents of C<file> where "
852 "C<file> exists in the named virtual machine (or disk image)."
853 msgstr ""
854
855 #. type: textblock
856 #: ../cat/virt-cat.pod:24
857 msgid ""
858 "Multiple filenames can be given, in which case they are concatenated "
859 "together.  Each filename must be a full path, starting at the root directory "
860 "(starting with '/')."
861 msgstr ""
862
863 #. type: textblock
864 #: ../cat/virt-cat.pod:28
865 msgid ""
866 "C<virt-cat> can be used to quickly view a file.  To edit a file, use "
867 "C<virt-edit>.  For more complex cases you should look at the L<guestfish(1)> "
868 "tool (see L</USING GUESTFISH> below)."
869 msgstr ""
870
871 #. type: =head1
872 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43 ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41 ../fish/guestfish.pod:1051 ../fish/virt-copy-in.pod:29 ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30 ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39 ../resize/virt-resize.pod:27 ../sparsify/virt-sparsify.pod:75 ../tools/virt-tar.pl:50
873 msgid "EXAMPLES"
874 msgstr ""
875
876 #. type: textblock
877 #: ../cat/virt-cat.pod:34
878 msgid "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
879 msgstr ""
880
881 #. type: verbatim
882 #: ../cat/virt-cat.pod:37
883 #, no-wrap
884 msgid ""
885 " virt-cat -d mydomain /etc/fstab\n"
886 "\n"
887 msgstr ""
888
889 #. type: textblock
890 #: ../cat/virt-cat.pod:39
891 msgid "List syslog messages from a VM disk image file:"
892 msgstr ""
893
894 #. type: verbatim
895 #: ../cat/virt-cat.pod:41
896 #, no-wrap
897 msgid ""
898 " virt-cat -a disk.img /var/log/messages | tail\n"
899 "\n"
900 msgstr ""
901
902 #. type: textblock
903 #: ../cat/virt-cat.pod:43
904 msgid "Find out what DHCP IP address a VM acquired:"
905 msgstr ""
906
907 #. type: verbatim
908 #: ../cat/virt-cat.pod:45
909 #, no-wrap
910 msgid ""
911 " virt-cat -d mydomain /var/log/messages | \\\n"
912 "   grep 'dhclient: bound to' | tail\n"
913 "\n"
914 msgstr ""
915
916 #. type: textblock
917 #: ../cat/virt-cat.pod:48
918 msgid "Find out what packages were recently installed:"
919 msgstr ""
920
921 #. type: verbatim
922 #: ../cat/virt-cat.pod:50
923 #, no-wrap
924 msgid ""
925 " virt-cat -d mydomain /var/log/yum.log | tail\n"
926 "\n"
927 msgstr ""
928
929 #. type: textblock
930 #: ../cat/virt-cat.pod:52
931 msgid "Find out who is logged on inside a virtual machine:"
932 msgstr ""
933
934 #. type: verbatim
935 #: ../cat/virt-cat.pod:54
936 #, no-wrap
937 msgid ""
938 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
939 " who /tmp/utmp\n"
940 "\n"
941 msgstr ""
942
943 #. type: textblock
944 #: ../cat/virt-cat.pod:57
945 msgid "or who was logged on:"
946 msgstr ""
947
948 #. type: verbatim
949 #: ../cat/virt-cat.pod:59
950 #, no-wrap
951 msgid ""
952 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
953 " last -f /tmp/wtmp\n"
954 "\n"
955 msgstr ""
956
957 #. type: textblock
958 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103 ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74 ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:124
959 msgid ""
960 "Add I<file> which should be a disk image from a virtual machine.  If the "
961 "virtual machine has multiple block devices, you must supply all of them with "
962 "separate I<-a> options."
963 msgstr ""
964
965 #. type: =item
966 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148 ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217 ../fuse/guestmount.pod:135 ../inspector/virt-inspector.pod:92
967 msgid "B<--echo-keys>"
968 msgstr ""
969
970 #. type: textblock
971 #: ../cat/virt-cat.pod:100
972 msgid ""
973 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
974 "so you cannot see what you are typing.  If you are not worried about Tempest "
975 "attacks and there is no one else in the room you can specify this flag to "
976 "see what you are typing."
977 msgstr ""
978
979 #. type: verbatim
980 #: ../cat/virt-cat.pod:116
981 #, no-wrap
982 msgid ""
983 " virt-cat --format=raw -a disk.img file\n"
984 "\n"
985 msgstr ""
986
987 #. type: verbatim
988 #: ../cat/virt-cat.pod:120
989 #, no-wrap
990 msgid ""
991 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
992 "\n"
993 msgstr ""
994
995 #. type: =item
996 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200 ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289 ../fuse/guestmount.pod:172 ../inspector/virt-inspector.pod:114
997 msgid "B<--keys-from-stdin>"
998 msgstr ""
999
1000 #. type: textblock
1001 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202 ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291 ../fuse/guestmount.pod:174 ../inspector/virt-inspector.pod:116
1002 msgid ""
1003 "Read key or passphrase parameters from stdin.  The default is to try to read "
1004 "passphrases from the user by opening C</dev/tty>."
1005 msgstr ""
1006
1007 #. type: =head1
1008 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179 ../inspector/virt-inspector.pod:144 ../rescue/virt-rescue.pod:246
1009 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
1010 msgstr ""
1011
1012 #. type: textblock
1013 #: ../cat/virt-cat.pod:154
1014 msgid "Previous versions of virt-cat allowed you to write either:"
1015 msgstr ""
1016
1017 #. type: verbatim
1018 #: ../cat/virt-cat.pod:156
1019 #, no-wrap
1020 msgid ""
1021 " virt-cat disk.img [disk.img ...] file\n"
1022 "\n"
1023 msgstr ""
1024
1025 #. type: textblock
1026 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185 ../inspector/virt-inspector.pod:150 ../rescue/virt-rescue.pod:252
1027 msgid "or"
1028 msgstr ""
1029
1030 #. type: verbatim
1031 #: ../cat/virt-cat.pod:160
1032 #, no-wrap
1033 msgid ""
1034 " virt-cat guestname file\n"
1035 "\n"
1036 msgstr ""
1037
1038 #. type: textblock
1039 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189 ../inspector/virt-inspector.pod:154 ../rescue/virt-rescue.pod:256
1040 msgid ""
1041 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
1042 "the confusing case where a disk image might have the same name as a guest."
1043 msgstr ""
1044
1045 #. type: textblock
1046 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193 ../inspector/virt-inspector.pod:158 ../rescue/virt-rescue.pod:260
1047 msgid "For compatibility the old style is still supported."
1048 msgstr ""
1049
1050 #. type: =head1
1051 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
1052 msgid "WINDOWS PATHS"
1053 msgstr ""
1054
1055 #. type: textblock
1056 #: ../cat/virt-cat.pod:170
1057 msgid ""
1058 "C<virt-cat> has a limited ability to understand Windows drive letters and "
1059 "paths (eg. C<E:\\foo\\bar.txt>)."
1060 msgstr ""
1061
1062 #. type: textblock
1063 #: ../cat/virt-cat.pod:173 ../edit/virt-edit.pod:262
1064 msgid "If and only if the guest is running Windows then:"
1065 msgstr ""
1066
1067 #. type: textblock
1068 #: ../cat/virt-cat.pod:179 ../edit/virt-edit.pod:268
1069 msgid ""
1070 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
1071 "to the correct filesystem."
1072 msgstr ""
1073
1074 #. type: textblock
1075 #: ../cat/virt-cat.pod:184 ../edit/virt-edit.pod:273
1076 msgid ""
1077 "Any backslash (C<\\>) characters in the path are replaced with forward "
1078 "slashes so that libguestfs can process it."
1079 msgstr ""
1080
1081 #. type: textblock
1082 #: ../cat/virt-cat.pod:189
1083 msgid ""
1084 "The path is resolved case insensitively to locate the file that should be "
1085 "displayed."
1086 msgstr ""
1087
1088 #. type: textblock
1089 #: ../cat/virt-cat.pod:194 ../edit/virt-edit.pod:283
1090 msgid "There are some known shortcomings:"
1091 msgstr ""
1092
1093 #. type: textblock
1094 #: ../cat/virt-cat.pod:200 ../edit/virt-edit.pod:289
1095 msgid "Some NTFS symbolic links may not be followed correctly."
1096 msgstr ""
1097
1098 #. type: textblock
1099 #: ../cat/virt-cat.pod:204 ../edit/virt-edit.pod:293
1100 msgid "NTFS junction points that cross filesystems are not followed."
1101 msgstr ""
1102
1103 #. type: =head1
1104 #: ../cat/virt-cat.pod:208 ../edit/virt-edit.pod:297
1105 msgid "USING GUESTFISH"
1106 msgstr ""
1107
1108 #. type: textblock
1109 #: ../cat/virt-cat.pod:210
1110 msgid ""
1111 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
1112 "C<virt-cat> doesn't work."
1113 msgstr ""
1114
1115 #. type: textblock
1116 #: ../cat/virt-cat.pod:213
1117 msgid "Using C<virt-cat> is approximately equivalent to doing:"
1118 msgstr ""
1119
1120 #. type: verbatim
1121 #: ../cat/virt-cat.pod:215
1122 #, no-wrap
1123 msgid ""
1124 " guestfish --ro -i -d domname download file -\n"
1125 "\n"
1126 msgstr ""
1127
1128 #. type: textblock
1129 #: ../cat/virt-cat.pod:217
1130 msgid ""
1131 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
1132 "path to the file.  Note the final C<-> (meaning \"output to stdout\")."
1133 msgstr ""
1134
1135 #. type: textblock
1136 #: ../cat/virt-cat.pod:221
1137 msgid ""
1138 "The command above uses libguestfs's guest inspection feature and so does not "
1139 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
1140 "disk images that don't contain guests.  To display a file from a disk image "
1141 "directly, use:"
1142 msgstr ""
1143
1144 #. type: verbatim
1145 #: ../cat/virt-cat.pod:226
1146 #, no-wrap
1147 msgid ""
1148 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
1149 "\n"
1150 msgstr ""
1151
1152 #. type: textblock
1153 #: ../cat/virt-cat.pod:228
1154 msgid ""
1155 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
1156 "the disk image, and C<file> is the full path to the file."
1157 msgstr ""
1158
1159 #. type: textblock
1160 #: ../cat/virt-cat.pod:240 ../cat/virt-filesystems.pod:382 ../cat/virt-ls.pod:492 ../df/virt-df.pod:250 ../edit/virt-edit.pod:351 ../fuse/guestmount.pod:314 ../inspector/virt-inspector.pod:392 ../resize/virt-resize.pod:691 ../sparsify/virt-sparsify.pod:253
1161 msgid "This program returns 0 if successful, or non-zero if there was an error."
1162 msgstr ""
1163
1164 #. type: textblock
1165 #: ../cat/virt-cat.pod:245
1166 msgid ""
1167 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
1168 "L<virt-tar-out(1)>, L<http://libguestfs.org/>."
1169 msgstr ""
1170
1171 #. type: textblock
1172 #: ../cat/virt-cat.pod:258 ../inspector/virt-inspector.pod:420 ../resize/virt-resize.pod:723 ../tools/virt-make-fs.pl:588
1173 msgid "Copyright (C) 2010-2011 Red Hat Inc."
1174 msgstr ""
1175
1176 #. type: textblock
1177 #: ../cat/virt-filesystems.pod:5
1178 msgid ""
1179 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
1180 "virtual machine or disk image"
1181 msgstr ""
1182
1183 #. type: verbatim
1184 #: ../cat/virt-filesystems.pod:9
1185 #, no-wrap
1186 msgid ""
1187 " virt-filesystems [--options] -d domname\n"
1188 "\n"
1189 msgstr ""
1190
1191 #. type: verbatim
1192 #: ../cat/virt-filesystems.pod:11
1193 #, no-wrap
1194 msgid ""
1195 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
1196 "\n"
1197 msgstr ""
1198
1199 #. type: textblock
1200 #: ../cat/virt-filesystems.pod:15
1201 msgid ""
1202 "This tool allows you to discover filesystems, partitions, logical volumes, "
1203 "and their sizes in a disk image or virtual machine.  It is a replacement for "
1204 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
1205 msgstr ""
1206
1207 #. type: textblock
1208 #: ../cat/virt-filesystems.pod:20
1209 msgid ""
1210 "One use for this tool is from shell scripts to iterate over all filesystems "
1211 "from a disk image:"
1212 msgstr ""
1213
1214 #. type: verbatim
1215 #: ../cat/virt-filesystems.pod:23
1216 #, no-wrap
1217 msgid ""
1218 " for fs in $(virt-filesystems -a disk.img); do\n"
1219 "   # ...\n"
1220 " done\n"
1221 "\n"
1222 msgstr ""
1223
1224 #. type: textblock
1225 #: ../cat/virt-filesystems.pod:27
1226 msgid ""
1227 "Another use is to list partitions before using another tool to modify those "
1228 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
1229 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
1230 msgstr ""
1231
1232 #. type: textblock
1233 #: ../cat/virt-filesystems.pod:32
1234 msgid ""
1235 "Various command line options control what this program displays.  You need "
1236 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
1237 "guest respectively.  If you just specify that then the program shows "
1238 "filesystems found, one per line, like this:"
1239 msgstr ""
1240
1241 #. type: verbatim
1242 #: ../cat/virt-filesystems.pod:37
1243 #, no-wrap
1244 msgid ""
1245 " $ virt-filesystems -a disk.img\n"
1246 " /dev/sda1\n"
1247 " /dev/vg_guest/lv_root\n"
1248 "\n"
1249 msgstr ""
1250
1251 #. type: textblock
1252 #: ../cat/virt-filesystems.pod:41
1253 msgid "If you add I<-l> or I<--long> then the output includes extra information:"
1254 msgstr ""
1255
1256 #. type: verbatim
1257 #: ../cat/virt-filesystems.pod:44
1258 #, no-wrap
1259 msgid ""
1260 " $ virt-filesystems -a disk.img -l\n"
1261 " Name                   Type         VFS   Label  Size\n"
1262 " /dev/sda1              filesystem   ext4  boot   524288000\n"
1263 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
1264 "\n"
1265 msgstr ""
1266
1267 #. type: textblock
1268 #: ../cat/virt-filesystems.pod:49
1269 msgid ""
1270 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
1271 "shown as well:"
1272 msgstr ""
1273
1274 #. type: verbatim
1275 #: ../cat/virt-filesystems.pod:52
1276 #, no-wrap
1277 msgid ""
1278 " $ virt-filesystems -a disk.img --extra\n"
1279 " /dev/sda1\n"
1280 " /dev/vg_guest/lv_root\n"
1281 " /dev/vg_guest/lv_swap\n"
1282 " /dev/vg_guest/lv_data\n"
1283 "\n"
1284 msgstr ""
1285
1286 #. type: textblock
1287 #: ../cat/virt-filesystems.pod:58
1288 msgid "If you add I<--partitions> then partitions are shown instead of filesystems:"
1289 msgstr ""
1290
1291 #. type: verbatim
1292 #: ../cat/virt-filesystems.pod:60
1293 #, no-wrap
1294 msgid ""
1295 " $ virt-filesystems -a disk.img --partitions\n"
1296 " /dev/sda1\n"
1297 " /dev/sda2\n"
1298 "\n"
1299 msgstr ""
1300
1301 #. type: textblock
1302 #: ../cat/virt-filesystems.pod:64
1303 msgid ""
1304 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, "
1305 "I<--physical-volumes>, I<--block-devices> to list those items."
1306 msgstr ""
1307
1308 #. type: textblock
1309 #: ../cat/virt-filesystems.pod:67
1310 msgid ""
1311 "You can use these options in combination as well (if you want a combination "
1312 "including filesystems, you have to add I<--filesystems>).  Notice that some "
1313 "items fall into several categories (eg. C</dev/sda1> might be both a "
1314 "partition and a filesystem).  These items are listed several times.  To get "
1315 "a list which includes absolutely everything that virt-filesystems knows "
1316 "about, use the I<--all> option."
1317 msgstr ""
1318
1319 #. type: textblock
1320 #: ../cat/virt-filesystems.pod:74
1321 msgid ""
1322 "UUIDs (because they are quite long) are not shown by default.  Add the "
1323 "I<--uuid> option to display device and filesystem UUIDs in the long output."
1324 msgstr ""
1325
1326 #. type: textblock
1327 #: ../cat/virt-filesystems.pod:78
1328 msgid ""
1329 "I<--all --long --uuid> is a useful combination to display all possible "
1330 "information about everything."
1331 msgstr ""
1332
1333 #. type: verbatim
1334 #: ../cat/virt-filesystems.pod:81
1335 #, no-wrap
1336 msgid ""
1337 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1338 " Name      Type       VFS  Label           Size Parent   UUID\n"
1339 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
1340 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
1341 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
1342 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
1343 " /dev/sda  device     -    -               20G  -        -\n"
1344 "\n"
1345 msgstr ""
1346
1347 #. type: textblock
1348 #: ../cat/virt-filesystems.pod:89
1349 msgid "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1350 msgstr ""
1351
1352 #. type: =item
1353 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1354 msgid "B<--all>"
1355 msgstr ""
1356
1357 #. type: textblock
1358 #: ../cat/virt-filesystems.pod:112
1359 msgid ""
1360 "Display everything.  This is currently the same as specifying these options: "
1361 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, "
1362 "I<--logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may "
1363 "be added to this list in future)."
1364 msgstr ""
1365
1366 #. type: textblock
1367 #: ../cat/virt-filesystems.pod:117
1368 msgid "See also I<--long>."
1369 msgstr ""
1370
1371 #. type: =item
1372 #: ../cat/virt-filesystems.pod:119
1373 msgid "B<--blkdevs>"
1374 msgstr ""
1375
1376 #. type: =item
1377 #: ../cat/virt-filesystems.pod:121
1378 msgid "B<--block-devices>"
1379 msgstr ""
1380
1381 #. type: textblock
1382 #: ../cat/virt-filesystems.pod:123
1383 msgid "Display block devices."
1384 msgstr ""
1385
1386 #. type: =item
1387 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1388 msgid "B<--csv>"
1389 msgstr ""
1390
1391 #. type: textblock
1392 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1393 msgid ""
1394 "Write out the results in CSV format (comma-separated values).  This format "
1395 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1396 "ABOUT CSV FORMAT> below."
1397 msgstr ""
1398
1399 #. type: textblock
1400 #: ../cat/virt-filesystems.pod:150
1401 msgid ""
1402 "When prompting for keys and passphrases, virt-filesystems normally turns "
1403 "echoing off so you cannot see what you are typing.  If you are not worried "
1404 "about Tempest attacks and there is no one else in the room you can specify "
1405 "this flag to see what you are typing."
1406 msgstr ""
1407
1408 #. type: =item
1409 #: ../cat/virt-filesystems.pod:155
1410 msgid "B<--extra>"
1411 msgstr ""
1412
1413 #. type: textblock
1414 #: ../cat/virt-filesystems.pod:157
1415 msgid ""
1416 "This causes filesystems that are not ordinary, mountable filesystems to be "
1417 "displayed.  This category includes swapspace, and filesystems that are empty "
1418 "or contain unknown data."
1419 msgstr ""
1420
1421 #. type: textblock
1422 #: ../cat/virt-filesystems.pod:161
1423 msgid "This option implies I<--filesystems>."
1424 msgstr ""
1425
1426 #. type: =item
1427 #: ../cat/virt-filesystems.pod:163
1428 msgid "B<--filesystems>"
1429 msgstr ""
1430
1431 #. type: textblock
1432 #: ../cat/virt-filesystems.pod:165
1433 msgid ""
1434 "Display mountable filesystems.  If no display option was selected then this "
1435 "option is implied."
1436 msgstr ""
1437
1438 #. type: textblock
1439 #: ../cat/virt-filesystems.pod:168
1440 msgid "With I<--extra>, non-mountable filesystems are shown too."
1441 msgstr ""
1442
1443 #. type: verbatim
1444 #: ../cat/virt-filesystems.pod:181
1445 #, no-wrap
1446 msgid ""
1447 " virt-filesystems --format=raw -a disk.img\n"
1448 "\n"
1449 msgstr ""
1450
1451 #. type: verbatim
1452 #: ../cat/virt-filesystems.pod:185
1453 #, no-wrap
1454 msgid ""
1455 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1456 "\n"
1457 msgstr ""
1458
1459 #. type: =item
1460 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352 ../df/virt-df.pod:125 ../fish/guestfish.pod:156 ../tools/virt-list-partitions.pl:109
1461 msgid "B<-h>"
1462 msgstr ""
1463
1464 #. type: =item
1465 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354 ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1466 msgid "B<--human-readable>"
1467 msgstr ""
1468
1469 #. type: textblock
1470 #: ../cat/virt-filesystems.pod:198
1471 msgid "In I<--long> mode, display sizes in human-readable format."
1472 msgstr ""
1473
1474 #. type: =item
1475 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366 ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1476 msgid "B<-l>"
1477 msgstr ""
1478
1479 #. type: =item
1480 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368 ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1481 msgid "B<--long>"
1482 msgstr ""
1483
1484 #. type: textblock
1485 #: ../cat/virt-filesystems.pod:209
1486 msgid "Display extra columns of data (\"long format\")."
1487 msgstr ""
1488
1489 #. type: textblock
1490 #: ../cat/virt-filesystems.pod:211
1491 msgid "A title row is added unless you also specify I<--no-title>."
1492 msgstr ""
1493
1494 #. type: textblock
1495 #: ../cat/virt-filesystems.pod:213
1496 msgid ""
1497 "The extra columns displayed depend on what output you select, and the "
1498 "ordering of columns may change in future versions.  Use the title row, "
1499 "I<--csv> output and/or L<csvtool(1)> to match columns to data in external "
1500 "programs."
1501 msgstr ""
1502
1503 #. type: textblock
1504 #: ../cat/virt-filesystems.pod:218
1505 msgid ""
1506 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
1507 "default is to show raw numbers of I<bytes>."
1508 msgstr ""
1509
1510 #. type: textblock
1511 #: ../cat/virt-filesystems.pod:221
1512 msgid "Use I<--uuid> to display UUIDs too."
1513 msgstr ""
1514
1515 #. type: =item
1516 #: ../cat/virt-filesystems.pod:223
1517 msgid "B<--lvs>"
1518 msgstr ""
1519
1520 #. type: =item
1521 #: ../cat/virt-filesystems.pod:225
1522 msgid "B<--logvols>"
1523 msgstr ""
1524
1525 #. type: =item
1526 #: ../cat/virt-filesystems.pod:227
1527 msgid "B<--logical-volumes>"
1528 msgstr ""
1529
1530 #. type: textblock
1531 #: ../cat/virt-filesystems.pod:229
1532 msgid ""
1533 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
1534 "of whether the LVs contain filesystems."
1535 msgstr ""
1536
1537 #. type: =item
1538 #: ../cat/virt-filesystems.pod:232
1539 msgid "B<--no-title>"
1540 msgstr ""
1541
1542 #. type: textblock
1543 #: ../cat/virt-filesystems.pod:234
1544 msgid "In I<--long> mode, don't add a title row."
1545 msgstr ""
1546
1547 #. type: textblock
1548 #: ../cat/virt-filesystems.pod:236
1549 msgid ""
1550 "Note that the order of the columns is not fixed, and may change in future "
1551 "versions of virt-filesystems, so using this option may give you unexpected "
1552 "surprises."
1553 msgstr ""
1554
1555 #. type: =item
1556 #: ../cat/virt-filesystems.pod:240
1557 msgid "B<--parts>"
1558 msgstr ""
1559
1560 #. type: =item
1561 #: ../cat/virt-filesystems.pod:242
1562 msgid "B<--partitions>"
1563 msgstr ""
1564
1565 #. type: textblock
1566 #: ../cat/virt-filesystems.pod:244
1567 msgid ""
1568 "Display partitions.  In this mode, these are displayed irrespective of "
1569 "whether the partitions contain filesystems."
1570 msgstr ""
1571
1572 #. type: =item
1573 #: ../cat/virt-filesystems.pod:247
1574 msgid "B<--pvs>"
1575 msgstr ""
1576
1577 #. type: =item
1578 #: ../cat/virt-filesystems.pod:249
1579 msgid "B<--physvols>"
1580 msgstr ""
1581
1582 #. type: =item
1583 #: ../cat/virt-filesystems.pod:251
1584 msgid "B<--physical-volumes>"
1585 msgstr ""
1586
1587 #. type: textblock
1588 #: ../cat/virt-filesystems.pod:253
1589 msgid "Display LVM physical volumes."
1590 msgstr ""
1591
1592 #. type: =item
1593 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1594 msgid "B<--uuid>"
1595 msgstr ""
1596
1597 #. type: =item
1598 #: ../cat/virt-filesystems.pod:257
1599 msgid "B<--uuids>"
1600 msgstr ""
1601
1602 #. type: textblock
1603 #: ../cat/virt-filesystems.pod:259
1604 msgid "In I<--long> mode, display UUIDs as well."
1605 msgstr ""
1606
1607 #. type: =item
1608 #: ../cat/virt-filesystems.pod:273
1609 msgid "B<--vgs>"
1610 msgstr ""
1611
1612 #. type: =item
1613 #: ../cat/virt-filesystems.pod:275
1614 msgid "B<--volgroups>"
1615 msgstr ""
1616
1617 #. type: =item
1618 #: ../cat/virt-filesystems.pod:277
1619 msgid "B<--volume-groups>"
1620 msgstr ""
1621
1622 #. type: textblock
1623 #: ../cat/virt-filesystems.pod:279
1624 msgid "Display LVM volume groups."
1625 msgstr ""
1626
1627 #. type: =head1
1628 #: ../cat/virt-filesystems.pod:287
1629 msgid "COLUMNS"
1630 msgstr ""
1631
1632 #. type: textblock
1633 #: ../cat/virt-filesystems.pod:289
1634 msgid ""
1635 "Note that columns in the output are subject to reordering and change in "
1636 "future versions of this tool."
1637 msgstr ""
1638
1639 #. type: =item
1640 #: ../cat/virt-filesystems.pod:294
1641 msgid "B<Name>"
1642 msgstr ""
1643
1644 #. type: textblock
1645 #: ../cat/virt-filesystems.pod:296
1646 msgid "The filesystem, partition, block device or LVM name."
1647 msgstr ""
1648
1649 #. type: textblock
1650 #: ../cat/virt-filesystems.pod:298
1651 msgid ""
1652 "For device and partition names these are displayed as canonical libguestfs "
1653 "names, so that for example C</dev/sda2> is the second partition on the first "
1654 "device."
1655 msgstr ""
1656
1657 #. type: textblock
1658 #: ../cat/virt-filesystems.pod:302
1659 msgid ""
1660 "If the I<--long> option is B<not> specified, then only the name column is "
1661 "shown in the output."
1662 msgstr ""
1663
1664 #. type: =item
1665 #: ../cat/virt-filesystems.pod:305
1666 msgid "B<Type>"
1667 msgstr ""
1668
1669 #. type: textblock
1670 #: ../cat/virt-filesystems.pod:307
1671 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
1672 msgstr ""
1673
1674 #. type: =item
1675 #: ../cat/virt-filesystems.pod:309
1676 msgid "B<VFS>"
1677 msgstr ""
1678
1679 #. type: textblock
1680 #: ../cat/virt-filesystems.pod:311
1681 msgid ""
1682 "If there is a filesystem, then this column displays the filesystem type if "
1683 "one could be detected, eg. C<ext4>."
1684 msgstr ""
1685
1686 #. type: =item
1687 #: ../cat/virt-filesystems.pod:314
1688 msgid "B<Label>"
1689 msgstr ""
1690
1691 #. type: textblock
1692 #: ../cat/virt-filesystems.pod:316
1693 msgid ""
1694 "If the object has a label (used for identifying and mounting filesystems) "
1695 "then this column contains the label."
1696 msgstr ""
1697
1698 #. type: =item
1699 #: ../cat/virt-filesystems.pod:319
1700 msgid "B<MBR>"
1701 msgstr ""
1702
1703 #. type: textblock
1704 #: ../cat/virt-filesystems.pod:321
1705 msgid ""
1706 "The partition type byte, displayed as a two digit hexadecimal number.  A "
1707 "comprehensive list of partition types can be found here: "
1708 "L<http://www.win.tue.nl/~aeb/partitions/partition_types-1.html>"
1709 msgstr ""
1710
1711 #. type: textblock
1712 #: ../cat/virt-filesystems.pod:325
1713 msgid "This is only applicable for DOS (MBR) partitions."
1714 msgstr ""
1715
1716 #. type: =item
1717 #: ../cat/virt-filesystems.pod:327
1718 msgid "B<Size>"
1719 msgstr ""
1720
1721 #. type: textblock
1722 #: ../cat/virt-filesystems.pod:329
1723 msgid ""
1724 "The size of the object in bytes.  If the I<--human> option is used then the "
1725 "size is displayed in a human-readable form."
1726 msgstr ""
1727
1728 #. type: =item
1729 #: ../cat/virt-filesystems.pod:332
1730 msgid "B<Parent>"
1731 msgstr ""
1732
1733 #. type: textblock
1734 #: ../cat/virt-filesystems.pod:334
1735 msgid ""
1736 "The parent column records the parent relationship between objects.  For "
1737 "example, if the object is a partition, then this column contains the name of "
1738 "the containing device.  If the object is a logical volume, then this column "
1739 "is the name of the volume group."
1740 msgstr ""
1741
1742 #. type: =item
1743 #: ../cat/virt-filesystems.pod:339
1744 msgid "B<UUID>"
1745 msgstr ""
1746
1747 #. type: textblock
1748 #: ../cat/virt-filesystems.pod:341
1749 msgid ""
1750 "If the object has a UUID (used for identifying and mounting filesystems and "
1751 "block devices) then this column contains the UUID as a string."
1752 msgstr ""
1753
1754 #. type: textblock
1755 #: ../cat/virt-filesystems.pod:345
1756 msgid "The UUID is only displayed if the I<--uuid> option is given."
1757 msgstr ""
1758
1759 #. type: =head1
1760 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:459 ../df/virt-df.pod:217
1761 msgid "NOTE ABOUT CSV FORMAT"
1762 msgstr ""
1763
1764 #. type: textblock
1765 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:461 ../df/virt-df.pod:219
1766 msgid ""
1767 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
1768 "should be easy to parse, but it is definitely not easy to parse."
1769 msgstr ""
1770
1771 #. type: textblock
1772 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:464 ../df/virt-df.pod:222
1773 msgid ""
1774 "Myth: Just split fields at commas.  Reality: This does I<not> work "
1775 "reliably.  This example has two columns:"
1776 msgstr ""
1777
1778 #. type: verbatim
1779 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:467 ../df/virt-df.pod:225
1780 #, no-wrap
1781 msgid ""
1782 " \"foo,bar\",baz\n"
1783 "\n"
1784 msgstr ""
1785
1786 #. type: textblock
1787 #: ../cat/virt-filesystems.pod:359 ../cat/virt-ls.pod:469 ../df/virt-df.pod:227
1788 msgid ""
1789 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
1790 "reliably.  This example has one row:"
1791 msgstr ""
1792
1793 #. type: verbatim
1794 #: ../cat/virt-filesystems.pod:362 ../cat/virt-ls.pod:472 ../df/virt-df.pod:230
1795 #, no-wrap
1796 msgid ""
1797 " \"foo\n"
1798 " bar\",baz\n"
1799 "\n"
1800 msgstr ""
1801
1802 #. type: textblock
1803 #: ../cat/virt-filesystems.pod:365 ../cat/virt-ls.pod:475 ../df/virt-df.pod:233
1804 msgid ""
1805 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
1806 "packaged in major Linux distributions)."
1807 msgstr ""
1808
1809 #. type: textblock
1810 #: ../cat/virt-filesystems.pod:368 ../cat/virt-ls.pod:478 ../df/virt-df.pod:236
1811 msgid ""
1812 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
1813 "or Python's built-in csv library)."
1814 msgstr ""
1815
1816 #. type: textblock
1817 #: ../cat/virt-filesystems.pod:371 ../cat/virt-ls.pod:481 ../df/virt-df.pod:239
1818 msgid "Most spreadsheets and databases can import CSV directly."
1819 msgstr ""
1820
1821 #. type: textblock
1822 #: ../cat/virt-filesystems.pod:387
1823 msgid ""
1824 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, "
1825 "L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, "
1826 "L<http://libguestfs.org/>."
1827 msgstr ""
1828
1829 #. type: textblock
1830 #: ../cat/virt-filesystems.pod:402 ../tools/virt-win-reg.pl:789
1831 msgid "Copyright (C) 2010 Red Hat Inc."
1832 msgstr ""
1833
1834 #. type: textblock
1835 #: ../cat/virt-ls.pod:5
1836 msgid "virt-ls - List files in a virtual machine"
1837 msgstr ""
1838
1839 #. type: verbatim
1840 #: ../cat/virt-ls.pod:9
1841 #, no-wrap
1842 msgid ""
1843 " virt-ls [--options] -d domname directory [directory ...]\n"
1844 "\n"
1845 msgstr ""
1846
1847 #. type: verbatim
1848 #: ../cat/virt-ls.pod:11
1849 #, no-wrap
1850 msgid ""
1851 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory "
1852 "...]\n"
1853 "\n"
1854 msgstr ""
1855
1856 #. type: textblock
1857 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:15
1858 msgid "Old style:"
1859 msgstr ""
1860
1861 #. type: verbatim
1862 #: ../cat/virt-ls.pod:15
1863 #, no-wrap
1864 msgid ""
1865 " virt-ls [--options] domname directory\n"
1866 "\n"
1867 msgstr ""
1868
1869 #. type: verbatim
1870 #: ../cat/virt-ls.pod:17
1871 #, no-wrap
1872 msgid ""
1873 " virt-ls [--options] disk.img [disk.img ...] directory\n"
1874 "\n"
1875 msgstr ""
1876
1877 #. type: textblock
1878 #: ../cat/virt-ls.pod:21
1879 msgid ""
1880 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
1881 "more from a virtual machine or disk image."
1882 msgstr ""
1883
1884 #. type: textblock
1885 #: ../cat/virt-ls.pod:24
1886 msgid ""
1887 "Multiple directory names can be given, in which case the output from each is "
1888 "concatenated."
1889 msgstr ""
1890
1891 #. type: textblock
1892 #: ../cat/virt-ls.pod:27
1893 msgid ""
1894 "To list directories from a libvirt guest use the I<-d> option to specify the "
1895 "name of the guest.  For a disk image, use the I<-a> option."
1896 msgstr ""
1897
1898 #. type: textblock
1899 #: ../cat/virt-ls.pod:31
1900 msgid ""
1901 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
1902 "may need to use L<guestfish(1)>, or write a program directly to the "
1903 "L<guestfs(3)> API."
1904 msgstr ""
1905
1906 #. type: textblock
1907 #: ../cat/virt-ls.pod:37
1908 msgid "Get a list of all files and directories in a virtual machine:"
1909 msgstr ""
1910
1911 #. type: verbatim
1912 #: ../cat/virt-ls.pod:39
1913 #, no-wrap
1914 msgid ""
1915 " virt-ls -R -d guest /\n"
1916 "\n"
1917 msgstr ""
1918
1919 #. type: textblock
1920 #: ../cat/virt-ls.pod:41 ../examples/guestfs-testing.pod:182
1921 msgid "List all setuid or setgid programs in a Linux virtual machine:"
1922 msgstr ""
1923
1924 #. type: verbatim
1925 #: ../cat/virt-ls.pod:43
1926 #, no-wrap
1927 msgid ""
1928 " virt-ls -lR -d guest / | grep '^- [42]'\n"
1929 "\n"
1930 msgstr ""
1931
1932 #. type: textblock
1933 #: ../cat/virt-ls.pod:45 ../examples/guestfs-testing.pod:186
1934 msgid "List all public-writable directories in a Linux virtual machine:"
1935 msgstr ""
1936
1937 #. type: verbatim
1938 #: ../cat/virt-ls.pod:47
1939 #, no-wrap
1940 msgid ""
1941 " virt-ls -lR -d guest / | grep '^d ...7'\n"
1942 "\n"
1943 msgstr ""
1944
1945 #. type: textblock
1946 #: ../cat/virt-ls.pod:49 ../examples/guestfs-testing.pod:190
1947 msgid "List all Unix domain sockets in a Linux virtual machine:"
1948 msgstr ""
1949
1950 #. type: verbatim
1951 #: ../cat/virt-ls.pod:51
1952 #, no-wrap
1953 msgid ""
1954 " virt-ls -lR -d guest / | grep '^s'\n"
1955 "\n"
1956 msgstr ""
1957
1958 #. type: textblock
1959 #: ../cat/virt-ls.pod:53 ../examples/guestfs-testing.pod:194
1960 msgid "List all regular files with filenames ending in '.png':"
1961 msgstr ""
1962
1963 #. type: verbatim
1964 #: ../cat/virt-ls.pod:55
1965 #, no-wrap
1966 msgid ""
1967 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
1968 "\n"
1969 msgstr ""
1970
1971 #. type: textblock
1972 #: ../cat/virt-ls.pod:57
1973 msgid "To display files larger than 10MB in home directories:"
1974 msgstr ""
1975
1976 #. type: verbatim
1977 #: ../cat/virt-ls.pod:59
1978 #, no-wrap
1979 msgid ""
1980 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
1981 "\n"
1982 msgstr ""
1983
1984 #. type: textblock
1985 #: ../cat/virt-ls.pod:61 ../examples/guestfs-testing.pod:202
1986 msgid "Find everything modified in the last 7 days:"
1987 msgstr ""
1988
1989 #. type: verbatim
1990 #: ../cat/virt-ls.pod:63
1991 #, no-wrap
1992 msgid ""
1993 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
1994 "\n"
1995 msgstr ""
1996
1997 #. type: textblock
1998 #: ../cat/virt-ls.pod:65 ../examples/guestfs-testing.pod:206
1999 msgid "Find regular files modified in the last 24 hours:"
2000 msgstr ""
2001
2002 #. type: verbatim
2003 #: ../cat/virt-ls.pod:67
2004 #, no-wrap
2005 msgid ""
2006 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
2007 "\n"
2008 msgstr ""
2009
2010 #. type: =head2
2011 #: ../cat/virt-ls.pod:69
2012 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
2013 msgstr ""
2014
2015 #. type: textblock
2016 #: ../cat/virt-ls.pod:71
2017 msgid ""
2018 "Find the differences between files in a guest and an earlier snapshot of the "
2019 "same guest."
2020 msgstr ""
2021
2022 #. type: verbatim
2023 #: ../cat/virt-ls.pod:74
2024 #, no-wrap
2025 msgid ""
2026 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
2027 " virt-ls -lR -a current.img / --uids --time-t > new\n"
2028 " diff -u old new | less\n"
2029 "\n"
2030 msgstr ""
2031
2032 #. type: textblock
2033 #: ../cat/virt-ls.pod:78
2034 msgid ""
2035 "The commands above won't find files where the content has changed but the "
2036 "metadata (eg. file size and modification date) is the same.  To do that, you "
2037 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  "
2038 "I<--checksum> can be quite slow since it has to read and compute a checksum "
2039 "of every regular file in the virtual machine."
2040 msgstr ""
2041
2042 #. type: =head1
2043 #: ../cat/virt-ls.pod:84
2044 msgid "OUTPUT MODES"
2045 msgstr ""
2046
2047 #. type: textblock
2048 #: ../cat/virt-ls.pod:86
2049 msgid ""
2050 "C<virt-ls> has four output modes, controlled by different combinations of "
2051 "the I<-l> and I<-R> options."
2052 msgstr ""
2053
2054 #. type: =head2
2055 #: ../cat/virt-ls.pod:89
2056 msgid "SIMPLE LISTING"
2057 msgstr ""
2058
2059 #. type: textblock
2060 #: ../cat/virt-ls.pod:91
2061 msgid "A simple listing is like the ordinary L<ls(1)> command:"
2062 msgstr ""
2063
2064 #. type: verbatim
2065 #: ../cat/virt-ls.pod:93
2066 #, no-wrap
2067 msgid ""
2068 " $ virt-ls -d guest /\n"
2069 " bin\n"
2070 " boot\n"
2071 " [etc.]\n"
2072 "\n"
2073 msgstr ""
2074
2075 #. type: =head2
2076 #: ../cat/virt-ls.pod:98
2077 msgid "LONG LISTING"
2078 msgstr ""
2079
2080 #. type: textblock
2081 #: ../cat/virt-ls.pod:100
2082 msgid ""
2083 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
2084 "(more specifically, like the C<guestfs_ll> function)."
2085 msgstr ""
2086
2087 #. type: verbatim
2088 #: ../cat/virt-ls.pod:103
2089 #, no-wrap
2090 msgid ""
2091 " $ virt-ls -l -d guest /\n"
2092 " total 204\n"
2093 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
2094 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
2095 " [etc.]\n"
2096 "\n"
2097 msgstr ""
2098
2099 #. type: textblock
2100 #: ../cat/virt-ls.pod:109
2101 msgid ""
2102 "Note that while this is useful for displaying a directory, do not try "
2103 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
2104 "instead."
2105 msgstr ""
2106
2107 #. type: =head2
2108 #: ../cat/virt-ls.pod:113
2109 msgid "RECURSIVE LISTING"
2110 msgstr ""
2111
2112 #. type: textblock
2113 #: ../cat/virt-ls.pod:115
2114 msgid ""
2115 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
2116 "and directories recursively:"
2117 msgstr ""
2118
2119 #. type: verbatim
2120 #: ../cat/virt-ls.pod:118
2121 #, no-wrap
2122 msgid ""
2123 " $ virt-ls -R -d guest /tmp\n"
2124 " foo\n"
2125 " foo/bar\n"
2126 " [etc.]\n"
2127 "\n"
2128 msgstr ""
2129
2130 #. type: textblock
2131 #: ../cat/virt-ls.pod:123
2132 msgid ""
2133 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
2134 "converts C<\\0> characters to C<\\n>."
2135 msgstr ""
2136
2137 #. type: =head2
2138 #: ../cat/virt-ls.pod:126
2139 msgid "RECURSIVE LONG LISTING"
2140 msgstr ""
2141
2142 #. type: textblock
2143 #: ../cat/virt-ls.pod:128
2144 msgid ""
2145 "Using I<-lR> options together changes the output to display directories "
2146 "recursively, with file stats, and optionally other features such as "
2147 "checksums and extended attributes."
2148 msgstr ""
2149
2150 #. type: textblock
2151 #: ../cat/virt-ls.pod:132
2152 msgid ""
2153 "Most of the interesting features of C<virt-ls> are only available when using "
2154 "I<-lR> mode."
2155 msgstr ""
2156
2157 #. type: textblock
2158 #: ../cat/virt-ls.pod:135
2159 msgid ""
2160 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
2161 "you cannot use the output in another program (because filenames can contain "
2162 "spaces and other unsafe characters).  If the guest was untrusted and someone "
2163 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
2164 "on you by creating filenames with embedded newline characters.  To B<safely> "
2165 "parse the output in another program, use the I<--csv> (Comma-Separated "
2166 "Values) option."
2167 msgstr ""
2168
2169 #. type: textblock
2170 #: ../cat/virt-ls.pod:143
2171 msgid ""
2172 "Note that this output format is completely unrelated to the C<ls -lR> "
2173 "command."
2174 msgstr ""
2175
2176 #. type: verbatim
2177 #: ../cat/virt-ls.pod:146
2178 #, no-wrap
2179 msgid ""
2180 " $ virt-ls -lR -d guest /bin\n"
2181 " d 0555       4096 /bin\n"
2182 " - 0755        123 /bin/alsaunmute\n"
2183 " - 0755      28328 /bin/arch\n"
2184 " l 0777          4 /bin/awk -> gawk\n"
2185 " - 0755      27216 /bin/basename\n"
2186 " - 0755     943360 /bin/bash\n"
2187 " [etc.]\n"
2188 "\n"
2189 msgstr ""
2190
2191 #. type: textblock
2192 #: ../cat/virt-ls.pod:155
2193 msgid "These basic fields are always shown:"
2194 msgstr ""
2195
2196 #. type: =item
2197 #: ../cat/virt-ls.pod:159
2198 msgid "type"
2199 msgstr ""
2200
2201 #. type: textblock
2202 #: ../cat/virt-ls.pod:161
2203 msgid ""
2204 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
2205 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
2206 "link), C<s> (socket) or C<u> (unknown)."
2207 msgstr ""
2208
2209 #. type: =item
2210 #: ../cat/virt-ls.pod:171
2211 msgid "permissions"
2212 msgstr ""
2213
2214 #. type: textblock
2215 #: ../cat/virt-ls.pod:173
2216 msgid "The Unix permissions, displayed as a 4 digit octal number."
2217 msgstr ""
2218
2219 #. type: =item
2220 #: ../cat/virt-ls.pod:175
2221 msgid "size"
2222 msgstr ""
2223
2224 #. type: textblock
2225 #: ../cat/virt-ls.pod:177
2226 msgid ""
2227 "The size of the file.  This is shown in bytes unless I<-h> or "
2228 "I<--human-readable> option is given, in which case this is shown as a "
2229 "human-readable number."
2230 msgstr ""
2231
2232 #. type: =head2
2233 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4519
2234 msgid "path"
2235 msgstr ""
2236
2237 #. type: textblock
2238 #: ../cat/virt-ls.pod:183
2239 msgid "The full path of the file or directory."
2240 msgstr ""
2241
2242 #. type: =item
2243 #: ../cat/virt-ls.pod:185
2244 msgid "link"
2245 msgstr ""
2246
2247 #. type: textblock
2248 #: ../cat/virt-ls.pod:187
2249 msgid "For symbolic links only, the link target."
2250 msgstr ""
2251
2252 #. type: textblock
2253 #: ../cat/virt-ls.pod:191
2254 msgid ""
2255 "In I<-lR> mode, additional command line options enable the display of more "
2256 "fields."
2257 msgstr ""
2258
2259 #. type: textblock
2260 #: ../cat/virt-ls.pod:194
2261 msgid ""
2262 "With the I<--uids> flag, these additional fields are displayed before the "
2263 "path:"
2264 msgstr ""
2265
2266 #. type: =item
2267 #: ../cat/virt-ls.pod:199
2268 msgid "uid"
2269 msgstr ""
2270
2271 #. type: =item
2272 #: ../cat/virt-ls.pod:201
2273 msgid "gid"
2274 msgstr ""
2275
2276 #. type: textblock
2277 #: ../cat/virt-ls.pod:203
2278 msgid ""
2279 "The UID and GID of the owner of the file (displayed numerically).  Note "
2280 "these only make sense in the context of a Unix-like guest."
2281 msgstr ""
2282
2283 #. type: textblock
2284 #: ../cat/virt-ls.pod:208
2285 msgid "With the I<--times> flag, these additional fields are displayed:"
2286 msgstr ""
2287
2288 #. type: =item
2289 #: ../cat/virt-ls.pod:212
2290 msgid "atime"
2291 msgstr ""
2292
2293 #. type: textblock
2294 #: ../cat/virt-ls.pod:214
2295 msgid "The time of last access."
2296 msgstr ""
2297
2298 #. type: =item
2299 #: ../cat/virt-ls.pod:216
2300 msgid "mtime"
2301 msgstr ""
2302
2303 #. type: textblock
2304 #: ../cat/virt-ls.pod:218
2305 msgid "The time of last modification."
2306 msgstr ""
2307
2308 #. type: =item
2309 #: ../cat/virt-ls.pod:220
2310 msgid "ctime"
2311 msgstr ""
2312
2313 #. type: textblock
2314 #: ../cat/virt-ls.pod:222
2315 msgid "The time of last status change."
2316 msgstr ""
2317
2318 #. type: textblock
2319 #: ../cat/virt-ls.pod:226
2320 msgid ""
2321 "The time fields are displayed as string dates and times, unless one of the "
2322 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2323 msgstr ""
2324
2325 #. type: textblock
2326 #: ../cat/virt-ls.pod:229
2327 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2328 msgstr ""
2329
2330 #. type: =item
2331 #: ../cat/virt-ls.pod:233
2332 msgid "device"
2333 msgstr ""
2334
2335 #. type: textblock
2336 #: ../cat/virt-ls.pod:235
2337 msgid ""
2338 "The device containing the file (displayed as major:minor).  This may not "
2339 "match devices as known to the guest."
2340 msgstr ""
2341
2342 #. type: =item
2343 #: ../cat/virt-ls.pod:238
2344 msgid "inode"
2345 msgstr ""
2346
2347 #. type: textblock
2348 #: ../cat/virt-ls.pod:240
2349 msgid "The inode number."
2350 msgstr ""
2351
2352 #. type: =item
2353 #: ../cat/virt-ls.pod:242
2354 msgid "nlink"
2355 msgstr ""
2356
2357 #. type: textblock
2358 #: ../cat/virt-ls.pod:244
2359 msgid "The number of hard links."
2360 msgstr ""
2361
2362 #. type: =item
2363 #: ../cat/virt-ls.pod:246
2364 msgid "rdev"
2365 msgstr ""
2366
2367 #. type: textblock
2368 #: ../cat/virt-ls.pod:248
2369 msgid "For block and char special files, the device (displayed as major:minor)."
2370 msgstr ""
2371
2372 #. type: =item
2373 #: ../cat/virt-ls.pod:251
2374 msgid "blocks"
2375 msgstr ""
2376
2377 #. type: textblock
2378 #: ../cat/virt-ls.pod:253
2379 msgid "The number of 512 byte blocks allocated to the file."
2380 msgstr ""
2381
2382 #. type: textblock
2383 #: ../cat/virt-ls.pod:257
2384 msgid ""
2385 "With the I<--checksum> flag, the checksum of the file contents is shown "
2386 "(only for regular files).  Computing file checksums can take a considerable "
2387 "amount of time."
2388 msgstr ""
2389
2390 #. type: =item
2391 #: ../cat/virt-ls.pod:280
2392 msgid "B<--checksum>"
2393 msgstr ""
2394
2395 #. type: =item
2396 #: ../cat/virt-ls.pod:282
2397 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2398 msgstr ""
2399
2400 #. type: textblock
2401 #: ../cat/virt-ls.pod:284
2402 msgid ""
2403 "Display checksum over file contents for regular files.  With no argument, "
2404 "this defaults to using I<md5>.  Using an argument, you can select the "
2405 "checksum type to use."
2406 msgstr ""
2407
2408 #. type: textblock
2409 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358 ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408 ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2410 msgid ""
2411 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
2412 "LISTING> above."
2413 msgstr ""
2414
2415 #. type: textblock
2416 #: ../cat/virt-ls.pod:316
2417 msgid ""
2418 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2419 "so you cannot see what you are typing.  If you are not worried about Tempest "
2420 "attacks and there is no one else in the room you can specify this flag to "
2421 "see what you are typing."
2422 msgstr ""
2423
2424 #. type: =item
2425 #: ../cat/virt-ls.pod:321
2426 msgid "B<--extra-stats>"
2427 msgstr ""
2428
2429 #. type: textblock
2430 #: ../cat/virt-ls.pod:323
2431 msgid "Display extra stats."
2432 msgstr ""
2433
2434 #. type: verbatim
2435 #: ../cat/virt-ls.pod:339
2436 #, no-wrap
2437 msgid ""
2438 " virt-ls --format=raw -a disk.img /dir\n"
2439 "\n"
2440 msgstr ""
2441
2442 #. type: verbatim
2443 #: ../cat/virt-ls.pod:343
2444 #, no-wrap
2445 msgid ""
2446 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2447 "\n"
2448 msgstr ""
2449
2450 #. type: textblock
2451 #: ../cat/virt-ls.pod:356
2452 msgid "Display file sizes in human-readable format."
2453 msgstr ""
2454
2455 #. type: =item
2456 #: ../cat/virt-ls.pod:370
2457 msgid "B<-R>"
2458 msgstr ""
2459
2460 #. type: =item
2461 #: ../cat/virt-ls.pod:372
2462 msgid "B<--recursive>"
2463 msgstr ""
2464
2465 #. type: textblock
2466 #: ../cat/virt-ls.pod:374
2467 msgid ""
2468 "Select the mode.  With neither of these options, C<virt-ls> produces a "
2469 "simple, flat list of the files in the named directory.  See L</SIMPLE "
2470 "LISTING>."
2471 msgstr ""
2472
2473 #. type: textblock
2474 #: ../cat/virt-ls.pod:378
2475 msgid ""
2476 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See "
2477 "L</LONG LISTING>."
2478 msgstr ""
2479
2480 #. type: textblock
2481 #: ../cat/virt-ls.pod:381
2482 msgid ""
2483 "C<virt-ls -R> produces a recursive list of files starting at the named "
2484 "directory.  See L</RECURSIVE LISTING>."
2485 msgstr ""
2486
2487 #. type: textblock
2488 #: ../cat/virt-ls.pod:384
2489 msgid ""
2490 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2491 "parsed.  See L</RECURSIVE LONG LISTING>."
2492 msgstr ""
2493
2494 #. type: =item
2495 #: ../cat/virt-ls.pod:387
2496 msgid "B<--times>"
2497 msgstr ""
2498
2499 #. type: textblock
2500 #: ../cat/virt-ls.pod:389
2501 msgid "Display time fields."
2502 msgstr ""
2503
2504 #. type: =item
2505 #: ../cat/virt-ls.pod:394
2506 msgid "B<--time-days>"
2507 msgstr ""
2508
2509 #. type: textblock
2510 #: ../cat/virt-ls.pod:396
2511 msgid "Display time fields as days before now (negative if in the future)."
2512 msgstr ""
2513
2514 #. type: textblock
2515 #: ../cat/virt-ls.pod:398
2516 msgid ""
2517 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2518 "of the file is between 0 and 86399 seconds."
2519 msgstr ""
2520
2521 #. type: =item
2522 #: ../cat/virt-ls.pod:404
2523 msgid "B<--time-relative>"
2524 msgstr ""
2525
2526 #. type: textblock
2527 #: ../cat/virt-ls.pod:406
2528 msgid "Display time fields as seconds before now (negative if in the future)."
2529 msgstr ""
2530
2531 #. type: =item
2532 #: ../cat/virt-ls.pod:411
2533 msgid "B<--time-t>"
2534 msgstr ""
2535
2536 #. type: textblock
2537 #: ../cat/virt-ls.pod:413
2538 msgid "Display time fields as seconds since the Unix epoch."
2539 msgstr ""
2540
2541 #. type: =item
2542 #: ../cat/virt-ls.pod:418
2543 msgid "B<--uids>"
2544 msgstr ""
2545
2546 #. type: textblock
2547 #: ../cat/virt-ls.pod:420
2548 msgid "Display UID and GID fields."
2549 msgstr ""
2550
2551 #. type: textblock
2552 #: ../cat/virt-ls.pod:445
2553 msgid "Previous versions of virt-ls allowed you to write either:"
2554 msgstr ""
2555
2556 #. type: verbatim
2557 #: ../cat/virt-ls.pod:447
2558 #, no-wrap
2559 msgid ""
2560 " virt-ls disk.img [disk.img ...] /dir\n"
2561 "\n"
2562 msgstr ""
2563
2564 #. type: verbatim
2565 #: ../cat/virt-ls.pod:451
2566 #, no-wrap
2567 msgid ""
2568 " virt-ls guestname /dir\n"
2569 "\n"
2570 msgstr ""
2571
2572 #. type: textblock
2573 #: ../cat/virt-ls.pod:497
2574 msgid ""
2575 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, "
2576 "L<virt-tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
2577 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
2578 msgstr ""
2579
2580 #. type: textblock
2581 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:267 ../edit/virt-edit.pod:374 ../rescue/virt-rescue.pod:340
2582 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2583 msgstr ""
2584
2585 #. type: textblock
2586 #: ../clone/virt-sysprep.pod:5
2587 msgid "virt-sysprep - Reset or unconfigure a virtual machine so clones can be made"
2588 msgstr ""
2589
2590 #. type: verbatim
2591 #: ../clone/virt-sysprep.pod:9
2592 #, no-wrap
2593 msgid ""
2594 " virt-sysprep [--options] -d domname\n"
2595 "\n"
2596 msgstr ""
2597
2598 #. type: verbatim
2599 #: ../clone/virt-sysprep.pod:11
2600 #, no-wrap
2601 msgid ""
2602 " virt-sysprep [--options] -a disk.img [-a disk.img ...]\n"
2603 "\n"
2604 msgstr ""
2605
2606 #. type: textblock
2607 #: ../clone/virt-sysprep.pod:15
2608 msgid ""
2609 "Virt-sysprep \"resets\" or \"unconfigures\" a virtual machine so that clones "
2610 "can be made from it.  Steps in this process include removing SSH host keys, "
2611 "removing persistent network MAC configuration, and removing user accounts.  "
2612 "Each step can be enabled or disabled as required."
2613 msgstr ""
2614
2615 #. type: textblock
2616 #: ../clone/virt-sysprep.pod:21
2617 msgid ""
2618 "Virt-sysprep is a simple shell script, allowing easy inspection or "
2619 "customization by the system administrator."
2620 msgstr ""
2621
2622 #. type: textblock
2623 #: ../clone/virt-sysprep.pod:24
2624 msgid ""
2625 "Virt-sysprep modifies the guest or disk image I<in place>.  The guest must "
2626 "be shut down.  If you want to preserve the existing contents of the guest, "
2627 "you I<must copy or clone the disk first>.  See L</COPYING AND CLONING> "
2628 "below."
2629 msgstr ""
2630
2631 #. type: textblock
2632 #: ../clone/virt-sysprep.pod:29
2633 msgid ""
2634 "You do I<not> need to run virt-sysprep as root.  In fact we'd generally "
2635 "recommend that you don't.  The time you might want to run it as root is when "
2636 "you need root in order to access the disk image, but even in this case it "
2637 "would be better to change the permissions on the disk image to be writable "
2638 "as the non-root user running virt-sysprep."
2639 msgstr ""
2640
2641 #. type: textblock
2642 #: ../clone/virt-sysprep.pod:35
2643 msgid ""
2644 "\"Sysprep\" stands for \"system preparation\" tool.  The name comes from the "
2645 "Microsoft program C<sysprep.exe> which is used to unconfigure Windows "
2646 "machines in preparation for cloning them.  Having said that, virt-sysprep "
2647 "does I<not> currently work on Microsoft Windows guests.  We plan to support "
2648 "Windows sysprepping in a future version, and we already have code to do it."
2649 msgstr ""
2650
2651 #. type: =item
2652 #: ../clone/virt-sysprep.pod:76
2653 msgid "B<--enable=...>"
2654 msgstr ""
2655
2656 #. type: textblock
2657 #: ../clone/virt-sysprep.pod:78
2658 msgid ""
2659 "Choose which sysprep operations to perform.  Give a comma-separated list of "
2660 "operations, for example:"
2661 msgstr ""
2662
2663 #. type: verbatim
2664 #: ../clone/virt-sysprep.pod:81
2665 #, no-wrap
2666 msgid ""
2667 " --enable=ssh-hostkeys,udev-persistent-net\n"
2668 "\n"
2669 msgstr ""
2670
2671 #. type: textblock
2672 #: ../clone/virt-sysprep.pod:83
2673 msgid "would enable ONLY C<ssh-hostkeys> and C<udev-persistent-net> operations."
2674 msgstr ""
2675
2676 #. type: textblock
2677 #: ../clone/virt-sysprep.pod:85
2678 msgid ""
2679 "If the I<--enable> option is not given, then we default to trying all "
2680 "possible sysprep operations.  But some sysprep operations are skipped for "
2681 "some guest types."
2682 msgstr ""
2683
2684 #. type: textblock
2685 #: ../clone/virt-sysprep.pod:89
2686 msgid ""
2687 "Use I<--list-operations> to list operations supported by a particular "
2688 "version of virt-sysprep."
2689 msgstr ""
2690
2691 #. type: textblock
2692 #: ../clone/virt-sysprep.pod:92
2693 msgid "See L</OPERATIONS> below for a list and an explanation of each operation."
2694 msgstr ""
2695
2696 #. type: verbatim
2697 #: ../clone/virt-sysprep.pod:106
2698 #, no-wrap
2699 msgid ""
2700 " virt-sysprep --format=raw -a disk.img\n"
2701 "\n"
2702 msgstr ""
2703
2704 #. type: verbatim
2705 #: ../clone/virt-sysprep.pod:110
2706 #, no-wrap
2707 msgid ""
2708 " virt-sysprep --format=raw -a disk.img --format -a another.img\n"
2709 "\n"
2710 msgstr ""
2711
2712 #. type: =item
2713 #: ../clone/virt-sysprep.pod:119
2714 msgid "B<--hostname> newhostname"
2715 msgstr ""
2716
2717 #. type: textblock
2718 #: ../clone/virt-sysprep.pod:121
2719 msgid ""
2720 "Change the hostname.  See the L</hostname> operation below.  If not given, "
2721 "defaults to C<localhost.localdomain>."
2722 msgstr ""
2723
2724 #. type: =item
2725 #: ../clone/virt-sysprep.pod:124
2726 msgid "B<--list-operations>"
2727 msgstr ""
2728
2729 #. type: textblock
2730 #: ../clone/virt-sysprep.pod:126
2731 msgid "List the operations supported by the virt-sysprep program."
2732 msgstr ""
2733
2734 #. type: =item
2735 #: ../clone/virt-sysprep.pod:128
2736 msgid "B<--selinux-relabel>"
2737 msgstr ""
2738
2739 #. type: =item
2740 #: ../clone/virt-sysprep.pod:130
2741 msgid "B<--no-selinux-relabel>"
2742 msgstr ""
2743
2744 #. type: textblock
2745 #: ../clone/virt-sysprep.pod:132
2746 msgid ""
2747 "I<--selinux-relabel> forces SELinux relabelling next time the guest boots.  "
2748 "I<--no-selinux-relabel> disables relabelling."
2749 msgstr ""
2750
2751 #. type: textblock
2752 #: ../clone/virt-sysprep.pod:135
2753 msgid ""
2754 "The default is to try to detect if SELinux relabelling is required.  See "
2755 "L</SELINUX RELABELLING> below for more details."
2756 msgstr ""
2757
2758 #. type: =head1
2759 #: ../clone/virt-sysprep.pod:156
2760 msgid "OPERATIONS"
2761 msgstr ""
2762
2763 #. type: textblock
2764 #: ../clone/virt-sysprep.pod:158
2765 msgid ""
2766 "If the I<--enable> option is I<not> given, then I<all sysprep operations are "
2767 "enabled>, although some are skipped depending on the type of guest."
2768 msgstr ""
2769
2770 #. type: textblock
2771 #: ../clone/virt-sysprep.pod:162
2772 msgid ""
2773 "Operations can be individually enabled using the I<--enable> option.  Use a "
2774 "comma-separated list, for example:"
2775 msgstr ""
2776
2777 #. type: verbatim
2778 #: ../clone/virt-sysprep.pod:165
2779 #, no-wrap
2780 msgid ""
2781 " virt-sysprep --enable=ssh-hostkeys,udev-persistent-net [etc..]\n"
2782 "\n"
2783 msgstr ""
2784
2785 #. type: textblock
2786 #: ../clone/virt-sysprep.pod:167
2787 msgid ""
2788 "To list the operations supported by the current version of virt-sysprep, use "
2789 "I<--list-operations>."
2790 msgstr ""
2791
2792 #. type: textblock
2793 #: ../clone/virt-sysprep.pod:170
2794 msgid ""
2795 "Future versions of virt-sysprep may add more operations.  If you are using "
2796 "virt-sysprep and want predictable behaviour, specify only the operations "
2797 "that you want to have enabled."
2798 msgstr ""
2799
2800 #. type: =head2
2801 #: ../clone/virt-sysprep.pod:174
2802 msgid "cron-spool"
2803 msgstr ""
2804
2805 #. type: textblock
2806 #: ../clone/virt-sysprep.pod:176
2807 msgid "Remove user at-jobs and cron-jobs."
2808 msgstr ""
2809
2810 #. type: =head2
2811 #: ../clone/virt-sysprep.pod:178
2812 msgid "dhcp-client-state"
2813 msgstr ""
2814
2815 #. type: textblock
2816 #: ../clone/virt-sysprep.pod:180
2817 msgid "Remove DHCP client leases."
2818 msgstr ""
2819
2820 #. type: =head2
2821 #: ../clone/virt-sysprep.pod:182
2822 msgid "dhcp-server-state"
2823 msgstr ""
2824
2825 #. type: textblock
2826 #: ../clone/virt-sysprep.pod:184
2827 msgid "Remove DHCP server leases."
2828 msgstr ""
2829
2830 #. type: =head2
2831 #: ../clone/virt-sysprep.pod:186
2832 msgid "hostname"
2833 msgstr ""
2834
2835 #. type: textblock
2836 #: ../clone/virt-sysprep.pod:188
2837 msgid ""
2838 "Changes the hostname of the guest to the value given in the I<--hostname> "
2839 "parameter."
2840 msgstr ""
2841
2842 #. type: textblock
2843 #: ../clone/virt-sysprep.pod:191
2844 msgid ""
2845 "If the I<--hostname> parameter is not given, then the hostname is changed to "
2846 "C<localhost.localdomain>."
2847 msgstr ""
2848
2849 #. type: =head2
2850 #: ../clone/virt-sysprep.pod:194
2851 msgid "logfiles"
2852 msgstr ""
2853
2854 #. type: textblock
2855 #: ../clone/virt-sysprep.pod:196
2856 msgid "Remove many log files."
2857 msgstr ""
2858
2859 #. type: =head2
2860 #: ../clone/virt-sysprep.pod:198
2861 msgid "mail-spool"
2862 msgstr ""
2863
2864 #. type: textblock
2865 #: ../clone/virt-sysprep.pod:200
2866 msgid "Remove email from the local mail spool directory."
2867 msgstr ""
2868
2869 #. type: =head2
2870 #: ../clone/virt-sysprep.pod:202
2871 msgid "net-hwaddr"
2872 msgstr ""
2873
2874 #. type: textblock
2875 #: ../clone/virt-sysprep.pod:204
2876 msgid ""
2877 "Remove HWADDR (hard-coded MAC address) configuration.  For Fedora and Red "
2878 "Hat Enterprise Linux, this is removed from C<ifcfg-*> files."
2879 msgstr ""
2880
2881 #. type: =head2
2882 #: ../clone/virt-sysprep.pod:207
2883 msgid "random-seed"
2884 msgstr ""
2885
2886 #. type: textblock
2887 #: ../clone/virt-sysprep.pod:209
2888 msgid ""
2889 "Write some random bytes from the host into the random seed file of the "
2890 "guest."
2891 msgstr ""
2892
2893 #. type: textblock
2894 #: ../clone/virt-sysprep.pod:212
2895 msgid "See L</RANDOM SEED> below."
2896 msgstr ""
2897
2898 #. type: =head2
2899 #: ../clone/virt-sysprep.pod:214
2900 msgid "rhn-systemid"
2901 msgstr ""
2902
2903 #. type: textblock
2904 #: ../clone/virt-sysprep.pod:216
2905 msgid "Remove the RHN system ID."
2906 msgstr ""
2907
2908 #. type: =head2
2909 #: ../clone/virt-sysprep.pod:218
2910 msgid "smolt-uuid"
2911 msgstr ""
2912
2913 #. type: textblock
2914 #: ../clone/virt-sysprep.pod:220
2915 msgid "Remove the Smolt hardware UUID."
2916 msgstr ""
2917
2918 #. type: =head2
2919 #: ../clone/virt-sysprep.pod:222
2920 msgid "ssh-hostkeys"
2921 msgstr ""
2922
2923 #. type: textblock
2924 #: ../clone/virt-sysprep.pod:224
2925 msgid "Remove the SSH host keys in the guest."
2926 msgstr ""
2927
2928 #. type: textblock
2929 #: ../clone/virt-sysprep.pod:226
2930 msgid ""
2931 "The SSH host keys are regenerated (differently) next time the guest is "
2932 "booted."
2933 msgstr ""
2934
2935 #. type: textblock
2936 #: ../clone/virt-sysprep.pod:229
2937 msgid ""
2938 "If, after cloning, the guest gets the same IP address, ssh will give you a "
2939 "stark warning about the host key changing:"
2940 msgstr ""
2941
2942 #. type: verbatim
2943 #: ../clone/virt-sysprep.pod:232
2944 #, no-wrap
2945 msgid ""
2946 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
2947 " @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @\n"
2948 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
2949 " IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!\n"
2950 "\n"
2951 msgstr ""
2952
2953 #. type: =head2
2954 #: ../clone/virt-sysprep.pod:237
2955 msgid "udev-persistent-net"
2956 msgstr ""
2957
2958 #. type: textblock
2959 #: ../clone/virt-sysprep.pod:239
2960 msgid ""
2961 "Remove udev persistent net rules which map the guest's existing MAC address "
2962 "to a fixed ethernet device (eg. eth0)."
2963 msgstr ""
2964
2965 #. type: textblock
2966 #: ../clone/virt-sysprep.pod:242
2967 msgid ""
2968 "After a guest is cloned, the MAC address usually changes.  Since the old MAC "
2969 "address occupies the old name (eg. eth0), this means the fresh MAC address "
2970 "is assigned to a new name (eg. eth1) and this is usually undesirable.  "
2971 "Erasing the udev persistent net rules avoids this."
2972 msgstr ""
2973
2974 #. type: =head2
2975 #: ../clone/virt-sysprep.pod:247
2976 msgid "utmp"
2977 msgstr ""
2978
2979 #. type: textblock
2980 #: ../clone/virt-sysprep.pod:249
2981 msgid "Remove the utmp file."
2982 msgstr ""
2983
2984 #. type: textblock
2985 #: ../clone/virt-sysprep.pod:251
2986 msgid ""
2987 "This records who is currently logged in on a machine.  In modern Linux "
2988 "distros it is stored in a ramdisk and hence not part of the virtual "
2989 "machine's disk, but it was stored on disk in older distros."
2990 msgstr ""
2991
2992 #. type: =head2
2993 #: ../clone/virt-sysprep.pod:255
2994 msgid "yum-uuid"
2995 msgstr ""
2996
2997 #. type: textblock
2998 #: ../clone/virt-sysprep.pod:257
2999 msgid "Remove the yum UUID."
3000 msgstr ""
3001
3002 #. type: textblock
3003 #: ../clone/virt-sysprep.pod:259
3004 msgid ""
3005 "Yum creates a fresh UUID the next time it runs when it notices that the "
3006 "original UUID has been erased."
3007 msgstr ""
3008
3009 #. type: =head1
3010 #: ../clone/virt-sysprep.pod:262
3011 msgid "COPYING AND CLONING"
3012 msgstr ""
3013
3014 #. type: textblock
3015 #: ../clone/virt-sysprep.pod:264
3016 msgid ""
3017 "Virt-sysprep can be used as part of a process of cloning guests, or to "
3018 "prepare a template from which guests can be cloned.  There are many "
3019 "different ways to achieve this using the virt tools, and this section is "
3020 "just an introduction."
3021 msgstr ""
3022
3023 #. type: textblock
3024 #: ../clone/virt-sysprep.pod:269
3025 msgid "A virtual machine (when switched off) consists of two parts:"
3026 msgstr ""
3027
3028 #. type: =item
3029 #: ../clone/virt-sysprep.pod:273
3030 msgid "I<configuration>"
3031 msgstr ""
3032
3033 #. type: textblock
3034 #: ../clone/virt-sysprep.pod:275
3035 msgid ""
3036 "The configuration or description of the guest.  eg. The libvirt XML (see "
3037 "C<virsh dumpxml>), the running configuration of the guest, or another "
3038 "external format like OVF."
3039 msgstr ""
3040
3041 #. type: textblock
3042 #: ../clone/virt-sysprep.pod:279
3043 msgid "Some configuration items that might need to be changed:"
3044 msgstr ""
3045
3046 #. type: textblock
3047 #: ../clone/virt-sysprep.pod:285
3048 msgid "name"
3049 msgstr ""
3050
3051 #. type: textblock
3052 #: ../clone/virt-sysprep.pod:289 ../clone/virt-sysprep.pod:316
3053 msgid "UUID"
3054 msgstr ""
3055
3056 #. type: textblock
3057 #: ../clone/virt-sysprep.pod:293
3058 msgid "path to block device(s)"
3059 msgstr ""
3060
3061 #. type: textblock
3062 #: ../clone/virt-sysprep.pod:297
3063 msgid "network card MAC address"
3064 msgstr ""
3065
3066 #. type: =item
3067 #: ../clone/virt-sysprep.pod:301
3068 msgid "I<block device(s)>"
3069 msgstr ""
3070
3071 #. type: textblock
3072 #: ../clone/virt-sysprep.pod:303
3073 msgid ""
3074 "One or more hard disk images, themselves containing files, directories, "
3075 "applications, kernels, configuration, etc."
3076 msgstr ""
3077
3078 #. type: textblock
3079 #: ../clone/virt-sysprep.pod:306
3080 msgid "Some things inside the block devices that might need to be changed:"
3081 msgstr ""
3082
3083 #. type: textblock
3084 #: ../clone/virt-sysprep.pod:312
3085 msgid "hostname and other net configuration"
3086 msgstr ""
3087
3088 #. type: textblock
3089 #: ../clone/virt-sysprep.pod:320
3090 msgid "SSH host keys"
3091 msgstr ""
3092
3093 #. type: textblock
3094 #: ../clone/virt-sysprep.pod:324
3095 msgid "Windows unique security ID (SID)"
3096 msgstr ""
3097
3098 #. type: textblock
3099 #: ../clone/virt-sysprep.pod:328
3100 msgid "Puppet registration"
3101 msgstr ""
3102
3103 #. type: =head2
3104 #: ../clone/virt-sysprep.pod:334
3105 msgid "COPYING THE BLOCK DEVICE"
3106 msgstr ""
3107
3108 #. type: textblock
3109 #: ../clone/virt-sysprep.pod:336
3110 msgid ""
3111 "Starting with an original guest, you probably wish to copy the guest block "
3112 "device and its configuration to make a template.  Then once you are happy "
3113 "with the template, you will want to make many clones from it."
3114 msgstr ""
3115
3116 #. type: verbatim
3117 #: ../clone/virt-sysprep.pod:341
3118 #, no-wrap
3119 msgid ""
3120 "                        virt-sysprep\n"
3121 "                             |\n"
3122 "                             v\n"
3123 " original guest --------> template ---------->\n"
3124 "                                      \\------> cloned\n"
3125 "                                       \\-----> guests\n"
3126 "                                        \\---->\n"
3127 "\n"
3128 msgstr ""
3129
3130 #. type: textblock
3131 #: ../clone/virt-sysprep.pod:349
3132 msgid ""
3133 "You can, of course, just copy the block device on the host using L<cp(1)> or "
3134 "L<dd(1)>."
3135 msgstr ""
3136
3137 #. type: verbatim
3138 #: ../clone/virt-sysprep.pod:352
3139 #, no-wrap
3140 msgid ""
3141 "                   dd                 dd\n"
3142 " original guest --------> template ---------->\n"
3143 "                                      \\------> cloned\n"
3144 "                                       \\-----> guests\n"
3145 "                                        \\---->\n"
3146 "\n"
3147 msgstr ""
3148
3149 #. type: textblock
3150 #: ../clone/virt-sysprep.pod:358
3151 msgid "There are some smarter (and faster) ways too:"
3152 msgstr ""
3153
3154 #. type: verbatim
3155 #: ../clone/virt-sysprep.pod:364
3156 #, no-wrap
3157 msgid ""
3158 "                          snapshot\n"
3159 "                template ---------->\n"
3160 "                            \\------> cloned\n"
3161 "                             \\-----> guests\n"
3162 "                              \\---->\n"
3163 "\n"
3164 msgstr ""
3165
3166 #. type: textblock
3167 #: ../clone/virt-sysprep.pod:370
3168 msgid ""
3169 "Use the block device as a backing file and create a snapshot on top for each "
3170 "guest.  The advantage is that you don't need to copy the block device (very "
3171 "fast) and only changes are stored (less storage required)."
3172 msgstr ""
3173
3174 #. type: textblock
3175 #: ../clone/virt-sysprep.pod:375
3176 msgid ""
3177 "Note that writing to the backing file once you have created guests on top of "
3178 "it is not possible: you will corrupt the guests."
3179 msgstr ""
3180
3181 #. type: textblock
3182 #: ../clone/virt-sysprep.pod:378
3183 msgid ""
3184 "Tools that can do this include: L<qemu-img(1)> (with the I<create -f qcow2 "
3185 "-o backing_file> option), L<lvcreate(8)> (I<--snapshot> option).  Some "
3186 "filesystems (such as btrfs) and most Network Attached Storage devices can "
3187 "also create cheap snapshots from files or LUNs."
3188 msgstr ""
3189
3190 #. type: textblock
3191 #: ../clone/virt-sysprep.pod:386
3192 msgid "Get your NAS to snapshot and/or duplicate the LUN."
3193 msgstr ""
3194
3195 #. type: textblock
3196 #: ../clone/virt-sysprep.pod:390
3197 msgid "Prepare your template using L<virt-sparsify(1)>.  See below."
3198 msgstr ""
3199
3200 #. type: =head2
3201 #: ../clone/virt-sysprep.pod:394
3202 msgid "VIRT-CLONE"
3203 msgstr ""
3204
3205 #. type: textblock
3206 #: ../clone/virt-sysprep.pod:396
3207 msgid ""
3208 "A separate tool, L<virt-clone(1)>, can be used to duplicate the block device "
3209 "and/or modify the external libvirt configuration of a guest.  It will reset "
3210 "the name, UUID and MAC address of the guest in the libvirt XML."
3211 msgstr ""
3212
3213 #. type: textblock
3214 #: ../clone/virt-sysprep.pod:401
3215 msgid ""
3216 "L<virt-clone(1)> does not use libguestfs and cannot look inside the disk "
3217 "image.  This was the original motivation to write virt-sysprep."
3218 msgstr ""
3219
3220 #. type: =head2
3221 #: ../clone/virt-sysprep.pod:404
3222 msgid "SPARSIFY"
3223 msgstr ""
3224
3225 #. type: verbatim
3226 #: ../clone/virt-sysprep.pod:406
3227 #, no-wrap
3228 msgid ""
3229 "              virt-sparsify\n"
3230 " original guest --------> template\n"
3231 "\n"
3232 msgstr ""
3233
3234 #. type: textblock
3235 #: ../clone/virt-sysprep.pod:409
3236 msgid ""
3237 "L<virt-sparsify(1)> can be used to make the cloning template smaller, making "
3238 "it easier to compress and/or faster to copy."
3239 msgstr ""
3240
3241 #. type: textblock
3242 #: ../clone/virt-sysprep.pod:412
3243 msgid ""
3244 "Notice that since virt-sparsify also copies the image, you can use it to "
3245 "make the initial copy (instead of C<dd>)."
3246 msgstr ""
3247
3248 #. type: =head2
3249 #: ../clone/virt-sysprep.pod:415
3250 msgid "RESIZE"
3251 msgstr ""
3252
3253 #. type: verbatim
3254 #: ../clone/virt-sysprep.pod:417
3255 #, no-wrap
3256 msgid ""
3257 "                         virt-resize\n"
3258 "                template ---------->\n"
3259 "                            \\------> cloned\n"
3260 "                             \\-----> guests\n"
3261 "                              \\---->\n"
3262 "\n"
3263 msgstr ""
3264
3265 #. type: textblock
3266 #: ../clone/virt-sysprep.pod:423
3267 msgid ""
3268 "If you want to give people cloned guests, but let them pick the size of the "
3269 "guest themselves (eg. depending on how much they are prepared to pay for "
3270 "disk space), then instead of copying the template, you can run "
3271 "L<virt-resize(1)>.  Virt-resize performs a copy and resize, and thus is "
3272 "ideal for cloning guests from a template."
3273 msgstr ""
3274
3275 #. type: =head1
3276 #: ../clone/virt-sysprep.pod:429 ../src/guestfs.pod:1164
3277 msgid "SECURITY"
3278 msgstr ""
3279
3280 #. type: textblock
3281 #: ../clone/virt-sysprep.pod:431
3282 msgid ""
3283 "Although virt-sysprep removes some sensitive information from the guest, it "
3284 "does not pretend to remove all of it.  You should examine the L</OPERATIONS> "
3285 "above, and the implementation of the operations in the shell script.  You "
3286 "should also examine the guest afterwards."
3287 msgstr ""
3288
3289 #. type: textblock
3290 #: ../clone/virt-sysprep.pod:436
3291 msgid ""
3292 "Sensitive files are simply removed.  The data they contained may still exist "
3293 "on the disk, easily recovered with a hex editor or undelete tool.  Use "
3294 "L<virt-sparsify(1)> as one way to remove this content.  See also the "
3295 "L<scrub(1)> command to get rid of deleted content in directory entries and "
3296 "inodes."
3297 msgstr ""
3298
3299 #. type: =head2
3300 #: ../clone/virt-sysprep.pod:442
3301 msgid "RANDOM SEED"
3302 msgstr ""
3303
3304 #. type: textblock
3305 #: ../clone/virt-sysprep.pod:444
3306 msgid "I<(This section applies to Linux guests only)>"
3307 msgstr ""
3308
3309 #. type: textblock
3310 #: ../clone/virt-sysprep.pod:446
3311 msgid ""
3312 "The virt-sysprep C<random-seed> operation writes a few bytes of randomness "
3313 "from the host into the guest's random seed file."
3314 msgstr ""
3315
3316 #. type: textblock
3317 #: ../clone/virt-sysprep.pod:449
3318 msgid ""
3319 "If this is just done once and the guest is cloned from the same template, "
3320 "then each guest will start with the same entropy, and things like SSH host "
3321 "keys and TCP sequence numbers may be predictable."
3322 msgstr ""
3323
3324 #. type: textblock
3325 #: ../clone/virt-sysprep.pod:453
3326 msgid ""
3327 "Therefore you should arrange to add more randomness I<after> cloning from a "
3328 "template too, which can be done by just enabling the C<random-seed> "
3329 "operation:"
3330 msgstr ""
3331
3332 #. type: verbatim
3333 #: ../clone/virt-sysprep.pod:457
3334 #, no-wrap
3335 msgid ""
3336 " cp template.img newguest.img\n"
3337 " virt-sysprep --enable=random-seed -a newguest.img\n"
3338 "\n"
3339 msgstr ""
3340
3341 #. type: =head2
3342 #: ../clone/virt-sysprep.pod:460
3343 msgid "SELINUX RELABELLING"
3344 msgstr ""
3345
3346 #. type: textblock
3347 #: ../clone/virt-sysprep.pod:462
3348 msgid "I<(This section applies to Linux guests using SELinux only)>"
3349 msgstr ""
3350
3351 #. type: textblock
3352 #: ../clone/virt-sysprep.pod:464
3353 msgid ""
3354 "If any new files are created by virt-sysprep, then virt-sysprep touches "
3355 "C</.autorelabel> so that these will be correctly labelled by SELinux the "
3356 "next time the guest is booted.  This process interrupts boot and can take "
3357 "some time."
3358 msgstr ""
3359
3360 #. type: textblock
3361 #: ../clone/virt-sysprep.pod:469
3362 msgid ""
3363 "You can force relabelling for all guests by supplying the "
3364 "I<--selinux-relabel> option."
3365 msgstr ""
3366
3367 #. type: textblock
3368 #: ../clone/virt-sysprep.pod:472
3369 msgid ""
3370 "You can disable relabelling entirely by supplying the "
3371 "I<--no-selinux-relabel> option."
3372 msgstr ""
3373
3374 #. type: textblock
3375 #: ../clone/virt-sysprep.pod:484
3376 msgid "This program returns 0 on success, or 1 if there was an error."
3377 msgstr ""
3378
3379 #. type: textblock
3380 #: ../clone/virt-sysprep.pod:488
3381 msgid ""
3382 "L<guestfs(3)>, L<guestfish(1)>, L<virt-clone(1)>, L<virt-rescue(1)>, "
3383 "L<virt-resize(1)>, L<virt-sparsify(1)>, L<virsh(1)>, L<lvcreate(8)>, "
3384 "L<qemu-img(1)>, L<scrub(1)>, L<http://libguestfs.org/>, "
3385 "L<http://libvirt.org/>."
3386 msgstr ""
3387
3388 #. type: textblock
3389 #: ../df/virt-df.pod:5
3390 msgid "virt-df - Display free space on virtual filesystems"
3391 msgstr ""
3392
3393 #. type: verbatim
3394 #: ../df/virt-df.pod:9
3395 #, no-wrap
3396 msgid ""
3397 " virt-df [--options]\n"
3398 "\n"
3399 msgstr ""
3400
3401 #. type: verbatim
3402 #: ../df/virt-df.pod:11
3403 #, no-wrap
3404 msgid ""
3405 " virt-df [--options] -d domname\n"
3406 "\n"
3407 msgstr ""
3408
3409 #. type: verbatim
3410 #: ../df/virt-df.pod:13
3411 #, no-wrap
3412 msgid ""
3413 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
3414 "\n"
3415 msgstr ""
3416
3417 #. type: verbatim
3418 #: ../df/virt-df.pod:17
3419 #, no-wrap
3420 msgid ""
3421 " virt-df [--options] domname\n"
3422 "\n"
3423 msgstr ""
3424
3425 #. type: verbatim
3426 #: ../df/virt-df.pod:19
3427 #, no-wrap
3428 msgid ""
3429 " virt-df [--options] disk.img [disk.img ...]\n"
3430 "\n"
3431 msgstr ""
3432
3433 #. type: textblock
3434 #: ../df/virt-df.pod:23
3435 msgid ""
3436 "C<virt-df> is a command line tool to display free space on virtual machine "
3437 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
3438 "allocated to a virtual machine, but can look inside disk images to see how "
3439 "much space is really being used."
3440 msgstr ""
3441
3442 #. type: textblock
3443 #: ../df/virt-df.pod:28
3444 msgid ""
3445 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
3446 "to get a list of all active and inactive guests, and performs a C<df>-type "
3447 "operation on each one in turn, printing out the results."
3448 msgstr ""
3449
3450 #. type: textblock
3451 #: ../df/virt-df.pod:32
3452 msgid ""
3453 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a "
3454 "C<df>-type operation on either the single named libvirt domain, or on the "
3455 "disk image(s) listed on the command line (which must all belong to a single "
3456 "VM).  In this mode (with arguments), C<virt-df> will I<only work for a "
3457 "single guest>.  If you want to run on multiple guests, then you have to "
3458 "invoke C<virt-df> multiple times."
3459 msgstr ""
3460
3461 #. type: textblock
3462 #: ../df/virt-df.pod:39
3463 msgid ""
3464 "Use the I<--csv> option to get a format which can be easily parsed by other "
3465 "programs.  Other options are similar to the standard L<df(1)> command."
3466 msgstr ""
3467
3468 #. type: textblock
3469 #: ../df/virt-df.pod:45
3470 msgid ""
3471 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
3472 "output human-readable:"
3473 msgstr ""
3474
3475 #. type: verbatim
3476 #: ../df/virt-df.pod:48
3477 #, no-wrap
3478 msgid ""
3479 " # virt-df -d F14x64 -h\n"
3480 " Filesystem                       Size     Used  Available  Use%\n"
3481 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
3482 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
3483 "\n"
3484 msgstr ""
3485
3486 #. type: textblock
3487 #: ../df/virt-df.pod:53
3488 msgid "Show disk usage for a disk image file called C<test.img>:"
3489 msgstr ""
3490
3491 #. type: verbatim
3492 #: ../df/virt-df.pod:55
3493 #, no-wrap
3494 msgid ""
3495 " $ virt-df -a test1.img\n"
3496 " Filesystem                  1K-blocks     Used  Available  Use%\n"
3497 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
3498 "\n"
3499 msgstr ""
3500
3501 #. type: verbatim
3502 #: ../df/virt-df.pod:112
3503 #, no-wrap
3504 msgid ""
3505 " virt-df --format=raw -a disk.img\n"
3506 "\n"
3507 msgstr ""
3508
3509 #. type: verbatim
3510 #: ../df/virt-df.pod:116
3511 #, no-wrap
3512 msgid ""
3513 " virt-df --format=raw -a disk.img --format -a another.img\n"
3514 "\n"
3515 msgstr ""
3516
3517 #. type: textblock
3518 #: ../df/virt-df.pod:129
3519 msgid "Print sizes in human-readable format."
3520 msgstr ""
3521
3522 #. type: textblock
3523 #: ../df/virt-df.pod:131
3524 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
3525 msgstr ""
3526
3527 #. type: =item
3528 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:164
3529 msgid "B<-i>"
3530 msgstr ""
3531
3532 #. type: =item
3533 #: ../df/virt-df.pod:135
3534 msgid "B<--inodes>"
3535 msgstr ""
3536
3537 #. type: textblock
3538 #: ../df/virt-df.pod:137
3539 msgid "Print inodes instead of blocks."
3540 msgstr ""
3541
3542 #. type: =item
3543 #: ../df/virt-df.pod:139
3544 msgid "B<--one-per-guest>"
3545 msgstr ""
3546
3547 #. type: textblock
3548 #: ../df/virt-df.pod:141
3549 msgid ""
3550 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
3551 "disks from several guests to a single libguestfs appliance."
3552 msgstr ""
3553
3554 #. type: textblock
3555 #: ../df/virt-df.pod:144
3556 msgid "You might use this option in the following circumstances:"
3557 msgstr ""
3558
3559 #. type: textblock
3560 #: ../df/virt-df.pod:150
3561 msgid ""
3562 "If you think an untrusted guest might actively try to exploit the libguestfs "
3563 "appliance kernel, then this prevents one guest from interfering with the "
3564 "stats printed for another guest."
3565 msgstr ""
3566
3567 #. type: textblock
3568 #: ../df/virt-df.pod:156
3569 msgid ""
3570 "If the kernel has a bug which stops it from accessing a filesystem in one "
3571 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
3572 "and report stats for further guests."
3573 msgstr ""
3574
3575 #. type: textblock
3576 #: ../df/virt-df.pod:165
3577 msgid ""
3578 "Print UUIDs instead of names.  This is useful for following a guest even "
3579 "when the guest is migrated or renamed, or when two guests happen to have the "
3580 "same name."
3581 msgstr ""
3582
3583 #. type: textblock
3584 #: ../df/virt-df.pod:169
3585 msgid ""
3586 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
3587 "images, we still print the disk image name even when this option is "
3588 "specified."
3589 msgstr ""
3590
3591 #. type: =head1
3592 #: ../df/virt-df.pod:191
3593 msgid "STATVFS NUMBERS"
3594 msgstr ""
3595
3596 #. type: textblock
3597 #: ../df/virt-df.pod:193
3598 msgid ""
3599 "C<virt-df> (and L<df(1)>) get information by issuing a L<statvfs(3)> system "
3600 "call.  You can get the same information directly, either from the host "
3601 "(using libguestfs) or inside the guest:"
3602 msgstr ""
3603
3604 #. type: =item
3605 #: ../df/virt-df.pod:199
3606 msgid "From the host"
3607 msgstr ""
3608
3609 #. type: textblock
3610 #: ../df/virt-df.pod:201 ../df/virt-df.pod:209
3611 msgid "Run this command:"
3612 msgstr ""
3613
3614 #. type: verbatim
3615 #: ../df/virt-df.pod:203
3616 #, no-wrap
3617 msgid ""
3618 " guestfish --ro -d GuestName -i statvfs /\n"
3619 "\n"
3620 msgstr ""
3621
3622 #. type: textblock
3623 #: ../df/virt-df.pod:205 ../df/virt-df.pod:213
3624 msgid "(change C</> to see stats for other filesystems)."
3625 msgstr ""
3626
3627 #. type: =item
3628 #: ../df/virt-df.pod:207
3629 msgid "From inside the guest"
3630 msgstr ""
3631
3632 #. type: verbatim
3633 #: ../df/virt-df.pod:211
3634 #, no-wrap
3635 msgid ""
3636 " python -c 'import os; s = os.statvfs (\"/\"); print s'\n"
3637 "\n"
3638 msgstr ""
3639
3640 #. type: textblock
3641 #: ../df/virt-df.pod:255
3642 msgid ""
3643 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, "
3644 "L<http://libguestfs.org/>."
3645 msgstr ""
3646
3647 #. type: textblock
3648 #: ../edit/virt-edit.pod:5
3649 msgid "virt-edit - Edit a file in a virtual machine"
3650 msgstr ""
3651
3652 #. type: verbatim
3653 #: ../edit/virt-edit.pod:9
3654 #, no-wrap
3655 msgid ""
3656 " virt-edit [--options] -d domname file [file ...]\n"
3657 "\n"
3658 msgstr ""
3659
3660 #. type: verbatim
3661 #: ../edit/virt-edit.pod:11
3662 #, no-wrap
3663 msgid ""
3664 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
3665 "\n"
3666 msgstr ""
3667
3668 #. type: verbatim
3669 #: ../edit/virt-edit.pod:13
3670 #, no-wrap
3671 msgid ""
3672 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
3673 "\n"
3674 msgstr ""
3675
3676 #. type: verbatim
3677 #: ../edit/virt-edit.pod:17
3678 #, no-wrap
3679 msgid ""
3680 " virt-edit domname file\n"
3681 "\n"
3682 msgstr ""
3683
3684 #. type: verbatim
3685 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
3686 #, no-wrap
3687 msgid ""
3688 " virt-edit disk.img [disk.img ...] file\n"
3689 "\n"
3690 msgstr ""
3691
3692 #. type: =head1
3693 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23 ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15 ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:21 ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
3694 msgid "WARNING"
3695 msgstr ""
3696
3697 #. type: textblock
3698 #: ../edit/virt-edit.pod:23
3699 msgid ""
3700 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
3701 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
3702 "doing this, but doesn't catch all cases."
3703 msgstr ""
3704
3705 #. type: textblock
3706 #: ../edit/virt-edit.pod:29
3707 msgid ""
3708 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
3709 "exists in the named virtual machine (or disk image)."
3710 msgstr ""
3711
3712 #. type: textblock
3713 #: ../edit/virt-edit.pod:32
3714 msgid ""
3715 "Multiple filenames can be given, in which case they are each edited in "
3716 "turn.  Each filename must be a full path, starting at the root directory "
3717 "(starting with '/')."
3718 msgstr ""
3719
3720 #. type: textblock
3721 #: ../edit/virt-edit.pod:36
3722 msgid "If you want to just view a file, use L<virt-cat(1)>."
3723 msgstr ""
3724
3725 #. type: textblock
3726 #: ../edit/virt-edit.pod:38
3727 msgid ""
3728 "For more complex cases you should look at the L<guestfish(1)> tool (see "
3729 "L</USING GUESTFISH> below)."
3730 msgstr ""
3731
3732 #. type: textblock
3733 #: ../edit/virt-edit.pod:41
3734 msgid ""
3735 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
3736 "that and much more."
3737 msgstr ""
3738
3739 #. type: textblock
3740 #: ../edit/virt-edit.pod:46
3741 msgid "Edit the named files interactively:"
3742 msgstr ""
3743
3744 #. type: verbatim
3745 #: ../edit/virt-edit.pod:48
3746 #, no-wrap
3747 msgid ""
3748 " virt-edit -d mydomain /boot/grub/grub.conf\n"
3749 "\n"
3750 msgstr ""
3751
3752 #. type: verbatim
3753 #: ../edit/virt-edit.pod:50
3754 #, no-wrap
3755 msgid ""
3756 " virt-edit -d mydomain /etc/passwd\n"
3757 "\n"
3758 msgstr ""
3759
3760 #. type: textblock
3761 #: ../edit/virt-edit.pod:52
3762 msgid "For Windows guests, some Windows paths are understood:"
3763 msgstr ""
3764
3765 #. type: verbatim
3766 #: ../edit/virt-edit.pod:54
3767 #, no-wrap
3768 msgid ""
3769 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
3770 "\n"
3771 msgstr ""
3772
3773 #. type: textblock
3774 #: ../edit/virt-edit.pod:56
3775 msgid ""
3776 "If Perl is installed, you can also edit files non-interactively (see "
3777 "L</NON-INTERACTIVE EDITING> below).  To change the init default level to 5:"
3778 msgstr ""
3779
3780 #. type: verbatim
3781 #: ../edit/virt-edit.pod:60
3782 #, no-wrap
3783 msgid ""
3784 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
3785 "\n"
3786 msgstr ""
3787
3788 #. type: =item
3789 #: ../edit/virt-edit.pod:81
3790 msgid "B<-b> extension"
3791 msgstr ""
3792
3793 #. type: =item
3794 #: ../edit/virt-edit.pod:83
3795 msgid "B<--backup> extension"
3796 msgstr ""
3797
3798 #. type: textblock
3799 #: ../edit/virt-edit.pod:85
3800 msgid ""
3801 "Create a backup of the original file I<in the guest disk image>.  The backup "
3802 "has the original filename with C<extension> added."
3803 msgstr ""
3804
3805 #. type: textblock
3806 #: ../edit/virt-edit.pod:88
3807 msgid ""
3808 "Usually the first character of C<extension> would be a dot C<.> so you would "
3809 "write:"
3810 msgstr ""
3811
3812 #. type: verbatim
3813 #: ../edit/virt-edit.pod:91
3814 #, no-wrap
3815 msgid ""
3816 " virt-edit -b .orig [etc]\n"
3817 "\n"
3818 msgstr ""
3819
3820 #. type: textblock
3821 #: ../edit/virt-edit.pod:93
3822 msgid "By default, no backup file is made."
3823 msgstr ""
3824
3825 #. type: =item
3826 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181 ../fuse/guestmount.pod:105 ../inspector/virt-inspector.pod:74 ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78 ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
3827 msgid "B<-c URI>"
3828 msgstr ""
3829
3830 #. type: =item
3831 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183 ../fuse/guestmount.pod:107 ../inspector/virt-inspector.pod:76 ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80 ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
3832 msgid "B<--connect URI>"
3833 msgstr ""
3834
3835 #. type: textblock
3836 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84 ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134 ../tools/virt-win-reg.pl:135
3837 msgid ""
3838 "If you specify guest block devices directly, then libvirt is not used at "
3839 "all."
3840 msgstr ""
3841
3842 #. type: textblock
3843 #: ../edit/virt-edit.pod:114
3844 msgid ""
3845 "When prompting for keys and passphrases, virt-edit normally turns echoing "
3846 "off so you cannot see what you are typing.  If you are not worried about "
3847 "Tempest attacks and there is no one else in the room you can specify this "
3848 "flag to see what you are typing."
3849 msgstr ""
3850
3851 #. type: =item
3852 #: ../edit/virt-edit.pod:119
3853 msgid "B<-e> EXPR"
3854 msgstr ""
3855
3856 #. type: =item
3857 #: ../edit/virt-edit.pod:121
3858 msgid "B<--expr> EXPR"
3859 msgstr ""
3860
3861 #. type: textblock
3862 #: ../edit/virt-edit.pod:123
3863 msgid ""
3864 "Instead of launching the external editor, non-interactively apply the Perl "
3865 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
3866 "EDITING> below."
3867 msgstr ""
3868
3869 #. type: textblock
3870 #: ../edit/virt-edit.pod:127
3871 msgid ""
3872 "Be careful to properly quote the expression to prevent it from being altered "
3873 "by the shell."
3874 msgstr ""
3875
3876 #. type: textblock
3877 #: ../edit/virt-edit.pod:130
3878 msgid "Note that this option is only available when Perl 5 is installed."
3879 msgstr ""
3880
3881 #. type: =item
3882 #: ../edit/virt-edit.pod:132
3883 msgid "B<--format> raw|qcow2|..."
3884 msgstr ""
3885
3886 #. type: verbatim
3887 #: ../edit/virt-edit.pod:143
3888 #, no-wrap
3889 msgid ""
3890 " virt-edit --format=raw -a disk.img file\n"
3891 "\n"
3892 msgstr ""
3893
3894 #. type: verbatim
3895 #: ../edit/virt-edit.pod:147
3896 #, no-wrap
3897 msgid ""
3898 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
3899 "\n"
3900 msgstr ""
3901
3902 #. type: textblock
3903 #: ../edit/virt-edit.pod:181
3904 msgid "Previous versions of virt-edit allowed you to write either:"
3905 msgstr ""
3906
3907 #. type: verbatim
3908 #: ../edit/virt-edit.pod:187
3909 #, no-wrap
3910 msgid ""
3911 " virt-edit guestname file\n"
3912 "\n"
3913 msgstr ""
3914
3915 #. type: =head1
3916 #: ../edit/virt-edit.pod:195
3917 msgid "NON-INTERACTIVE EDITING"
3918 msgstr ""
3919
3920 #. type: textblock
3921 #: ../edit/virt-edit.pod:197
3922 msgid ""
3923 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
3924 "administrator can interactively edit the file."
3925 msgstr ""
3926
3927 #. type: textblock
3928 #: ../edit/virt-edit.pod:200
3929 msgid ""
3930 "There are two ways also to use C<virt-edit> from scripts in order to make "
3931 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
3932 "like this, it's less error-prone to write scripts directly using the "
3933 "libguestfs API and Augeas for configuration file editing.)"
3934 msgstr ""
3935
3936 #. type: textblock
3937 #: ../edit/virt-edit.pod:206
3938 msgid ""
3939 "The first method is to temporarily set C<$EDITOR> to any script or program "
3940 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
3941 "update C<tmpfile> in place however it likes."
3942 msgstr ""
3943
3944 #. type: textblock
3945 #: ../edit/virt-edit.pod:210
3946 msgid ""
3947 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
3948 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
3949 "instances of C<foo> with C<bar> in a file:"
3950 msgstr ""
3951
3952 #. type: verbatim
3953 #: ../edit/virt-edit.pod:214
3954 #, no-wrap
3955 msgid ""
3956 " virt-edit -d domname filename -e 's/foo/bar/'\n"
3957 "\n"
3958 msgstr ""
3959
3960 #. type: textblock
3961 #: ../edit/virt-edit.pod:216
3962 msgid ""
3963 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
3964 "For example to delete root's password you could do:"
3965 msgstr ""
3966
3967 #. type: verbatim
3968 #: ../edit/virt-edit.pod:219
3969 #, no-wrap
3970 msgid ""
3971 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
3972 "\n"
3973 msgstr ""
3974
3975 #. type: textblock
3976 #: ../edit/virt-edit.pod:221
3977 msgid ""
3978 "What really happens is that the snippet is evaluated as a Perl expression "
3979 "for each line of the file.  The line, including the final C<\\n>, is passed "
3980 "in C<$_> and the expression should update C<$_> or leave it unchanged."
3981 msgstr ""
3982
3983 #. type: textblock
3984 #: ../edit/virt-edit.pod:226
3985 msgid ""
3986 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
3987 "C<apache> user account from the password file you can do:"
3988 msgstr ""
3989
3990 #. type: verbatim
3991 #: ../edit/virt-edit.pod:229
3992 #, no-wrap
3993 msgid ""
3994 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
3995 "\n"
3996 msgstr ""
3997
3998 #. type: textblock
3999 #: ../edit/virt-edit.pod:231
4000 msgid ""
4001 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
4002 "the end of the file is rather difficult this way since there is no concept "
4003 "of \"last line of the file\" - your expression just doesn't get called "
4004 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
4005 "want to do this."
4006 msgstr ""
4007
4008 #. type: textblock
4009 #: ../edit/virt-edit.pod:237
4010 msgid ""
4011 "The variable C<$lineno> contains the current line number.  As is "
4012 "traditional, the first line in the file is number C<1>."
4013 msgstr ""
4014
4015 #. type: textblock
4016 #: ../edit/virt-edit.pod:240
4017 msgid ""
4018 "The return value from the expression is ignored, but the expression may call "
4019 "C<die> in order to abort the whole program, leaving the original file "
4020 "untouched."
4021 msgstr ""
4022
4023 #. type: textblock
4024 #: ../edit/virt-edit.pod:244
4025 msgid ""
4026 "Remember when matching the end of a line that C<$_> may contain the final "
4027 "C<\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
4028 "newline then neither of these.  Thus to match or substitute some text at the "
4029 "end of a line, use this regular expression:"
4030 msgstr ""
4031
4032 #. type: verbatim
4033 #: ../edit/virt-edit.pod:249
4034 #, no-wrap
4035 msgid ""
4036 " /some text(\\r?\\n)?$/\n"
4037 "\n"
4038 msgstr ""
4039
4040 #. type: textblock
4041 #: ../edit/virt-edit.pod:251
4042 msgid ""
4043 "Alternately, use the perl C<chomp> function, being careful not to chomp "
4044 "C<$_> itself (since that would remove all newlines from the file):"
4045 msgstr ""
4046
4047 #. type: verbatim
4048 #: ../edit/virt-edit.pod:255
4049 #, no-wrap
4050 msgid ""
4051 " my $m = $_; chomp $m; $m =~ /some text$/\n"
4052 "\n"
4053 msgstr ""
4054
4055 #. type: textblock
4056 #: ../edit/virt-edit.pod:259
4057 msgid ""
4058 "C<virt-edit> has a limited ability to understand Windows drive letters and "
4059 "paths (eg. C<E:\\foo\\bar.txt>)."
4060 msgstr ""
4061
4062 #. type: textblock
4063 #: ../edit/virt-edit.pod:278
4064 msgid ""
4065 "The path is resolved case insensitively to locate the file that should be "
4066 "edited."
4067 msgstr ""
4068
4069 #. type: textblock
4070 #: ../edit/virt-edit.pod:299
4071 msgid ""
4072 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
4073 "C<virt-edit> doesn't work."
4074 msgstr ""
4075
4076 #. type: textblock
4077 #: ../edit/virt-edit.pod:302
4078 msgid "Using C<virt-edit> is approximately equivalent to doing:"
4079 msgstr ""
4080
4081 #. type: verbatim
4082 #: ../edit/virt-edit.pod:304
4083 #, no-wrap
4084 msgid ""
4085 " guestfish --rw -i -d domname edit /file\n"
4086 "\n"
4087 msgstr ""
4088
4089 #. type: textblock
4090 #: ../edit/virt-edit.pod:306
4091 msgid ""
4092 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
4093 "path to the file."
4094 msgstr ""
4095
4096 #. type: textblock
4097 #: ../edit/virt-edit.pod:309
4098 msgid ""
4099 "The command above uses libguestfs's guest inspection feature and so does not "
4100 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
4101 "disk images that don't contain guests.  To edit a file on a disk image "
4102 "directly, use:"
4103 msgstr ""
4104
4105 #. type: verbatim
4106 #: ../edit/virt-edit.pod:314
4107 #, no-wrap
4108 msgid ""
4109 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
4110 "\n"
4111 msgstr ""
4112
4113 #. type: textblock
4114 #: ../edit/virt-edit.pod:316
4115 msgid ""
4116 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
4117 "the disk image to edit, and C</file> is the full path to the file."
4118 msgstr ""
4119
4120 #. type: textblock
4121 #: ../edit/virt-edit.pod:320
4122 msgid ""
4123 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
4124 "C<write> or C<upload> instead:"
4125 msgstr ""
4126
4127 #. type: verbatim
4128 #: ../edit/virt-edit.pod:323
4129 #, no-wrap
4130 msgid ""
4131 " guestfish --rw -i -d domname touch /newfile\n"
4132 "\n"
4133 msgstr ""
4134
4135 #. type: verbatim
4136 #: ../edit/virt-edit.pod:325
4137 #, no-wrap
4138 msgid ""
4139 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
4140 "\n"
4141 msgstr ""
4142
4143 #. type: verbatim
4144 #: ../edit/virt-edit.pod:327
4145 #, no-wrap
4146 msgid ""
4147 " guestfish --rw -i -d domname upload localfile /newfile\n"
4148 "\n"
4149 msgstr ""
4150
4151 #. type: =head1
4152 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1119 ../rescue/virt-rescue.pod:298 ../sparsify/virt-sparsify.pod:256 ../src/guestfs.pod:3214 ../test-tool/libguestfs-test-tool.pod:95
4153 msgid "ENVIRONMENT VARIABLES"
4154 msgstr ""
4155
4156 #. type: =item
4157 #: ../edit/virt-edit.pod:333
4158 msgid "C<EDITOR>"
4159 msgstr ""
4160
4161 #. type: textblock
4162 #: ../edit/virt-edit.pod:335
4163 msgid ""
4164 "If set, this string is used as the editor.  It may contain arguments, "
4165 "eg. C<\"emacs -nw\">"
4166 msgstr ""
4167
4168 #. type: textblock
4169 #: ../edit/virt-edit.pod:338
4170 msgid "If not set, C<vi> is used."
4171 msgstr ""
4172
4173 #. type: textblock
4174 #: ../edit/virt-edit.pod:356
4175 msgid ""
4176 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, "
4177 "L<virt-tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
4178 "L<Sys::Virt(3)>, L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4179 msgstr ""
4180
4181 #. type: textblock
4182 #: ../erlang/examples/guestfs-erlang.pod:5
4183 msgid "guestfs-erlang - How to use libguestfs from Erlang"
4184 msgstr ""
4185
4186 #. type: verbatim
4187 #: ../erlang/examples/guestfs-erlang.pod:9
4188 #, no-wrap
4189 msgid ""
4190 " {ok, G} = guestfs:create(),\n"
4191 " ok = guestfs:add_drive_opts(G, Disk,\n"
4192 "                             [{format, \"raw\"}, {readonly, true}]),\n"
4193 " ok = guestfs:launch(G),\n"
4194 " [Device] = guestfs:list_devices(G),\n"
4195 " ok = guestfs:close(G).\n"
4196 "\n"
4197 msgstr ""
4198
4199 #. type: textblock
4200 #: ../erlang/examples/guestfs-erlang.pod:18
4201 msgid ""
4202 "This manual page documents how to call libguestfs from the Erlang "
4203 "programming language.  This page just documents the differences from the C "
4204 "API and gives some examples.  If you are not familiar with using libguestfs, "
4205 "you also need to read L<guestfs(3)>."
4206 msgstr ""
4207
4208 #. type: =head2
4209 #: ../erlang/examples/guestfs-erlang.pod:23
4210 msgid "OPENING AND CLOSING THE HANDLE"
4211 msgstr ""
4212
4213 #. type: textblock
4214 #: ../erlang/examples/guestfs-erlang.pod:25
4215 msgid ""
4216 "The Erlang bindings are implemented using an external program called "
4217 "C<erl-guestfs>.  This program must be on the current PATH, or else you "
4218 "should specify the full path to the program:"
4219 msgstr ""
4220
4221 #. type: verbatim
4222 #: ../erlang/examples/guestfs-erlang.pod:29
4223 #, no-wrap
4224 msgid ""
4225 " {ok, G} = guestfs:create().\n"
4226 "\n"
4227 msgstr ""
4228
4229 #. type: verbatim
4230 #: ../erlang/examples/guestfs-erlang.pod:31
4231 #, no-wrap
4232 msgid ""
4233 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
4234 "\n"
4235 msgstr ""
4236
4237 #. type: textblock
4238 #: ../erlang/examples/guestfs-erlang.pod:33
4239 msgid "C<G> is the libguestfs handle which you should pass to other functions."
4240 msgstr ""
4241
4242 #. type: textblock
4243 #: ../erlang/examples/guestfs-erlang.pod:36
4244 msgid "To close the handle:"
4245 msgstr ""
4246
4247 #. type: verbatim
4248 #: ../erlang/examples/guestfs-erlang.pod:38
4249 #, no-wrap
4250 msgid ""
4251 " ok = guestfs:close(G).\n"
4252 "\n"
4253 msgstr ""
4254
4255 #. type: =head2
4256 #: ../erlang/examples/guestfs-erlang.pod:40
4257 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
4258 msgstr ""
4259
4260 #. type: textblock
4261 #: ../erlang/examples/guestfs-erlang.pod:42
4262 msgid ""
4263 "For functions that take optional arguments, the first arguments are the "
4264 "non-optional ones.  The last argument is a list of tuples supplying the "
4265 "remaining optional arguments."
4266 msgstr ""
4267
4268 #. type: verbatim
4269 #: ../erlang/examples/guestfs-erlang.pod:46
4270 #, no-wrap
4271 msgid ""
4272 " ok = guestfs:add_drive_opts(G, Disk,\n"
4273 "                             [{format, \"raw\"}, {readonly, true}]).\n"
4274 "\n"
4275 msgstr ""
4276
4277 #. type: textblock
4278 #: ../erlang/examples/guestfs-erlang.pod:49
4279 msgid "If the last argument would be an empty list, you can also omit it:"
4280 msgstr ""
4281
4282 #. type: verbatim
4283 #: ../erlang/examples/guestfs-erlang.pod:51
4284 #, no-wrap
4285 msgid ""
4286 " ok = guestfs:add_drive_opts(G, Disk).\n"
4287 "\n"
4288 msgstr ""
4289
4290 #. type: =head2
4291 #: ../erlang/examples/guestfs-erlang.pod:53
4292 msgid "RETURN VALUES AND ERRORS"
4293 msgstr ""
4294
4295 #. type: textblock
4296 #: ../erlang/examples/guestfs-erlang.pod:55
4297 msgid ""
4298 "On success, most functions return a C<Result> term (which could be a list, "
4299 "string, tuple etc.).  If there is nothing for the function to return, then "
4300 "the atom C<ok> is returned."
4301 msgstr ""
4302
4303 #. type: textblock
4304 #: ../erlang/examples/guestfs-erlang.pod:59
4305 msgid "On error, you would see one of the following tuples:"
4306 msgstr ""
4307
4308 #. type: =item
4309 #: ../erlang/examples/guestfs-erlang.pod:63
4310 msgid "C<{error, Msg, Errno}>"
4311 msgstr ""
4312
4313 #. type: textblock
4314 #: ../erlang/examples/guestfs-erlang.pod:65
4315 msgid "This indicates an ordinary error from the function."
4316 msgstr ""
4317
4318 #. type: textblock
4319 #: ../erlang/examples/guestfs-erlang.pod:67
4320 msgid ""
4321 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
4322 "(integer)."
4323 msgstr ""
4324
4325 #. type: textblock
4326 #: ../erlang/examples/guestfs-erlang.pod:70
4327 msgid "C<Errno> can be zero.  See L<guestfs(3)/guestfs_last_errno>."
4328 msgstr ""
4329
4330 #. type: =item
4331 #: ../erlang/examples/guestfs-erlang.pod:72
4332 msgid "C<{unknown, Function}>"
4333 msgstr ""
4334
4335 #. type: textblock
4336 #: ../erlang/examples/guestfs-erlang.pod:74
4337 msgid ""
4338 "This indicates that the function you called is not known.  Generally this "
4339 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
4340 "which you should not do."
4341 msgstr ""
4342
4343 #. type: textblock
4344 #: ../erlang/examples/guestfs-erlang.pod:78
4345 msgid "C<Function> is the name of the unknown function."
4346 msgstr ""
4347
4348 #. type: =item
4349 #: ../erlang/examples/guestfs-erlang.pod:80
4350 msgid "C<{unknownarg, Arg}>"
4351 msgstr ""
4352
4353 #. type: textblock
4354 #: ../erlang/examples/guestfs-erlang.pod:82
4355 msgid ""
4356 "This indicates that you called a function with optional arguments, with an "
4357 "unknown argument name."
4358 msgstr ""
4359
4360 #. type: textblock
4361 #: ../erlang/examples/guestfs-erlang.pod:85
4362 msgid "C<Arg> is the name of the unknown argument."
4363 msgstr ""
4364
4365 #. type: =head1
4366 #: ../erlang/examples/guestfs-erlang.pod:89 ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37 ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31 ../python/examples/guestfs-python.pod:34 ../ruby/examples/guestfs-ruby.pod:28
4367 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
4368 msgstr ""
4369
4370 #. type: textblock
4371 #: ../erlang/examples/guestfs-erlang.pod:91 ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39 ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33 ../python/examples/guestfs-python.pod:36 ../ruby/examples/guestfs-ruby.pod:30
4372 msgid "@EXAMPLE1@"
4373 msgstr ""
4374
4375 #. type: =head1
4376 #: ../erlang/examples/guestfs-erlang.pod:93 ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41 ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35 ../python/examples/guestfs-python.pod:38 ../ruby/examples/guestfs-ruby.pod:32
4377 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
4378 msgstr ""
4379
4380 #. type: textblock
4381 #: ../erlang/examples/guestfs-erlang.pod:95 ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43 ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37 ../python/examples/guestfs-python.pod:40 ../ruby/examples/guestfs-ruby.pod:34
4382 msgid "@EXAMPLE2@"
4383 msgstr ""
4384
4385 #. type: textblock
4386 #: ../erlang/examples/guestfs-erlang.pod:99
4387 msgid ""
4388 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, "
4389 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
4390 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://www.erlang.org/>.  "
4391 "L<http://libguestfs.org/>."
4392 msgstr ""
4393
4394 #. type: =head1
4395 #: ../erlang/examples/guestfs-erlang.pod:110 ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397 ../examples/guestfs-testing.pod:298 ../fish/guestfish.pod:1296 ../fish/virt-copy-in.pod:60 ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58 ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:328 ../inspector/virt-inspector.pod:404 ../java/examples/guestfs-java.pod:58 ../ocaml/examples/guestfs-ocaml.pod:91 ../perl/examples/guestfs-perl.pod:52 ../python/examples/guestfs-python.pod:54 ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3354 ../test-tool/libguestfs-test-tool.pod:106
4396 msgid "AUTHORS"
4397 msgstr ""
4398
4399 #. type: textblock
4400 #: ../erlang/examples/guestfs-erlang.pod:112 ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399 ../examples/guestfs-testing.pod:300 ../fish/guestfish.pod:1298 ../fish/virt-copy-in.pod:62 ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60 ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:330 ../java/examples/guestfs-java.pod:60 ../ocaml/examples/guestfs-ocaml.pod:93 ../perl/examples/guestfs-perl.pod:54 ../python/examples/guestfs-python.pod:56 ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:3356 ../test-tool/libguestfs-test-tool.pod:108
4401 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4402 msgstr ""
4403
4404 #. type: textblock
4405 #: ../erlang/examples/guestfs-erlang.pod:116 ../examples/guestfs-testing.pod:304 ../java/examples/guestfs-java.pod:64 ../perl/examples/guestfs-perl.pod:58
4406 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
4407 msgstr ""
4408
4409 #. type: textblock
4410 #: ../erlang/examples/guestfs-erlang.pod:118 ../examples/guestfs-examples.pod:53 ../examples/guestfs-recipes.pod:405 ../java/examples/guestfs-java.pod:66 ../ocaml/examples/guestfs-ocaml.pod:99 ../perl/examples/guestfs-perl.pod:60 ../python/examples/guestfs-python.pod:62 ../ruby/examples/guestfs-ruby.pod:56
4411 msgid ""
4412 "The examples in this manual page may be freely copied, modified and "
4413 "distributed without any restrictions."
4414 msgstr ""
4415
4416 #. type: textblock
4417 #: ../erlang/examples/guestfs-erlang.pod:121 ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408 ../examples/guestfs-testing.pod:306 ../java/examples/guestfs-java.pod:69 ../ocaml/examples/guestfs-ocaml.pod:102 ../perl/examples/guestfs-perl.pod:63 ../python/examples/guestfs-python.pod:65 ../ruby/examples/guestfs-ruby.pod:59 ../src/guestfs.pod:3363
4418 msgid ""
4419 "This library is free software; you can redistribute it and/or modify it "
4420 "under the terms of the GNU Lesser General Public License as published by the "
4421 "Free Software Foundation; either version 2 of the License, or (at your "
4422 "option) any later version."
4423 msgstr ""
4424
4425 #. type: textblock
4426 #: ../erlang/examples/guestfs-erlang.pod:126 ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413 ../examples/guestfs-testing.pod:311 ../java/examples/guestfs-java.pod:74 ../ocaml/examples/guestfs-ocaml.pod:107 ../perl/examples/guestfs-perl.pod:68 ../python/examples/guestfs-python.pod:70 ../ruby/examples/guestfs-ruby.pod:64 ../src/guestfs.pod:3368
4427 msgid ""
4428 "This library is distributed in the hope that it will be useful, but WITHOUT "
4429 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4430 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
4431 "for more details."
4432 msgstr ""
4433
4434 #. type: textblock
4435 #: ../erlang/examples/guestfs-erlang.pod:131 ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418 ../examples/guestfs-testing.pod:316 ../java/examples/guestfs-java.pod:79 ../ocaml/examples/guestfs-ocaml.pod:112 ../perl/examples/guestfs-perl.pod:73 ../python/examples/guestfs-python.pod:75 ../ruby/examples/guestfs-ruby.pod:69 ../src/guestfs.pod:3373
4436 msgid ""
4437 "You should have received a copy of the GNU Lesser General Public License "
4438 "along with this library; if not, write to the Free Software Foundation, "
4439 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4440 msgstr ""
4441
4442 #. type: textblock
4443 #: ../examples/guestfs-examples.pod:5
4444 msgid "guestfs-examples - Examples of using libguestfs from C"
4445 msgstr ""
4446
4447 #. type: verbatim
4448 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
4449 #, no-wrap
4450 msgid ""
4451 " #include <guestfs.h>\n"
4452 " \n"
4453 msgstr ""
4454
4455 #. type: verbatim
4456 #: ../examples/guestfs-examples.pod:11
4457 #, no-wrap
4458 msgid ""
4459 " guestfs_h *g = guestfs_create ();\n"
4460 " guestfs_add_drive_ro (g, \"disk.img\");\n"
4461 " guestfs_launch (g);\n"
4462 "\n"
4463 msgstr ""
4464
4465 #. type: verbatim
4466 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
4467 #, no-wrap
4468 msgid ""
4469 " cc prog.c -o prog -lguestfs\n"
4470 "or:\n"
4471 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4472 "\n"
4473 msgstr ""
4474
4475 #. type: textblock
4476 #: ../examples/guestfs-examples.pod:21
4477 msgid ""
4478 "This manual page contains examples of calling libguestfs from the C "
4479 "programming language.  If you are not familiar with using libguestfs, you "
4480 "also need to read L<guestfs(3)>."
4481 msgstr ""
4482
4483 #. type: textblock
4484 #: ../examples/guestfs-examples.pod:35
4485 msgid ""
4486 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, "
4487 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
4488 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
4489 msgstr ""
4490
4491 #. type: textblock
4492 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97 ../python/examples/guestfs-python.pod:60 ../ruby/examples/guestfs-ruby.pod:54
4493 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
4494 msgstr ""
4495
4496 #. type: =end
4497 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
4498 msgid "comment"
4499 msgstr ""
4500
4501 #. type: textblock
4502 #: ../examples/guestfs-recipes.pod:5
4503 msgid ""
4504 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
4505 "here.  The only way which works for both sorts of output is to just write "
4506 "the URL directly.  Do NOT use L<...> for URLs."
4507 msgstr ""
4508
4509 #. type: textblock
4510 #: ../examples/guestfs-recipes.pod:9
4511 msgid ""
4512 "We break with tradition here and don't use ALL CAPS for the section "
4513 "headings, as this makes them much easier to read."
4514 msgstr ""
4515
4516 #. type: textblock
4517 #: ../examples/guestfs-recipes.pod:16
4518 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
4519 msgstr ""
4520
4521 #. type: textblock
4522 #: ../examples/guestfs-recipes.pod:20
4523 msgid ""
4524 "This page contains recipes for and links to things you can do using "
4525 "libguestfs, L<guestfish(1)> and the virt tools."
4526 msgstr ""
4527
4528 #. type: =head1
4529 #: ../examples/guestfs-recipes.pod:23
4530 msgid "Audit a virtual machine for setuid files"
4531 msgstr ""
4532
4533 #. type: textblock
4534 #: ../examples/guestfs-recipes.pod:25
4535 msgid ""
4536 "The link below contains a small program which can be used to audit a Linux "
4537 "virtual machine to see what setuid and setgid files it contains."
4538 msgstr ""
4539
4540 #. type: textblock
4541 #: ../examples/guestfs-recipes.pod:28
4542 msgid "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-files/#content"
4543 msgstr ""
4544
4545 #. type: =head1
4546 #: ../examples/guestfs-recipes.pod:30
4547 msgid "Change the background image in a Windows XP VM"
4548 msgstr ""
4549
4550 #. type: textblock
4551 #: ../examples/guestfs-recipes.pod:32
4552 msgid ""
4553 "The links below explain how to use L<guestfish(1)> to change the background "
4554 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
4555 "be substantially different for each version of Windows."
4556 msgstr ""
4557
4558 #. type: textblock
4559 #: ../examples/guestfs-recipes.pod:37
4560 msgid ""
4561 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html "
4562 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
4563 msgstr ""
4564
4565 #. type: =head1
4566 #: ../examples/guestfs-recipes.pod:40
4567 msgid "Cloning a virtual machine (Linux)"
4568 msgstr ""
4569
4570 #. type: textblock
4571 #: ../examples/guestfs-recipes.pod:42
4572 msgid ""
4573 "The guestfish technique described in the link below works well for most "
4574 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
4575 "slightly."
4576 msgstr ""
4577
4578 #. type: textblock
4579 #: ../examples/guestfs-recipes.pod:46
4580 msgid "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-vm/#content"
4581 msgstr ""
4582
4583 #. type: textblock
4584 #: ../examples/guestfs-recipes.pod:48
4585 msgid ""
4586 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
4587 "discussion."
4588 msgstr ""
4589
4590 #. type: textblock
4591 #: ../examples/guestfs-recipes.pod:51
4592 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
4593 msgstr ""
4594
4595 #. type: =head1
4596 #: ../examples/guestfs-recipes.pod:53
4597 msgid "Cloning a virtual machine (Windows)"
4598 msgstr ""
4599
4600 #. type: textblock
4601 #: ../examples/guestfs-recipes.pod:55
4602 msgid ""
4603 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
4604 "straightforward.  Currently there is code in the Aeolus Oz project which "
4605 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
4606 "we may add sysprepping ability."
4607 msgstr ""
4608
4609 #. type: textblock
4610 #: ../examples/guestfs-recipes.pod:60
4611 msgid ""
4612 "https://github.com/clalancette/oz "
4613 "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
4614 msgstr ""
4615
4616 #. type: =head1
4617 #: ../examples/guestfs-recipes.pod:63
4618 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
4619 msgstr ""
4620
4621 #. type: textblock
4622 #: ../examples/guestfs-recipes.pod:65
4623 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
4624 msgstr ""
4625
4626 #. type: verbatim
4627 #: ../examples/guestfs-recipes.pod:67
4628 #, no-wrap
4629 msgid ""
4630 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
4631 "\n"
4632 msgstr ""
4633
4634 #. type: textblock
4635 #: ../examples/guestfs-recipes.pod:69
4636 msgid "To export just a subdirectory, eg. C</files>, do:"
4637 msgstr ""
4638
4639 #. type: verbatim
4640 #: ../examples/guestfs-recipes.pod:71
4641 #, no-wrap
4642 msgid ""
4643 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
4644 "\n"
4645 msgstr ""
4646
4647 #. type: =head1
4648 #: ../examples/guestfs-recipes.pod:73
4649 msgid "Create empty disk images"
4650 msgstr ""
4651
4652 #. type: textblock
4653 #: ../examples/guestfs-recipes.pod:75
4654 msgid ""
4655 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
4656 "The useful guide below explains the options available."
4657 msgstr ""
4658
4659 #. type: textblock
4660 #: ../examples/guestfs-recipes.pod:78
4661 msgid "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/#content"
4662 msgstr ""
4663
4664 #. type: =head1
4665 #: ../examples/guestfs-recipes.pod:80
4666 msgid "Dump raw filesystem content from inside a disk image or VM"
4667 msgstr ""
4668
4669 #. type: textblock
4670 #: ../examples/guestfs-recipes.pod:82
4671 msgid ""
4672 "You can use the L<guestfish(1)> C<download> command to extract the raw "
4673 "filesystem content from any filesystem in a disk image or a VM (even one "
4674 "which is encrypted or buried inside an LV):"
4675 msgstr ""
4676
4677 #. type: verbatim
4678 #: ../examples/guestfs-recipes.pod:86
4679 #, no-wrap
4680 msgid ""
4681 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
4682 "\n"
4683 msgstr ""
4684
4685 #. type: verbatim
4686 #: ../examples/guestfs-recipes.pod:88
4687 #, no-wrap
4688 msgid ""
4689 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
4690 "\n"
4691 msgstr ""
4692
4693 #. type: textblock
4694 #: ../examples/guestfs-recipes.pod:90
4695 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
4696 msgstr ""
4697
4698 #. type: =head1
4699 #: ../examples/guestfs-recipes.pod:92
4700 msgid "Edit grub configuration in a VM"
4701 msgstr ""
4702
4703 #. type: textblock
4704 #: ../examples/guestfs-recipes.pod:94
4705 msgid "You can use this to:"
4706 msgstr ""
4707
4708 #. type: textblock
4709 #: ../examples/guestfs-recipes.pod:100
4710 msgid "Fix a virtual machine that does not boot."
4711 msgstr ""
4712
4713 #. type: textblock
4714 #: ../examples/guestfs-recipes.pod:104
4715 msgid "Change which kernel is used to boot the VM."
4716 msgstr ""
4717
4718 #. type: textblock
4719 #: ../examples/guestfs-recipes.pod:108
4720 msgid "Change kernel command line options."
4721 msgstr ""
4722
4723 #. type: textblock
4724 #: ../examples/guestfs-recipes.pod:112
4725 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
4726 msgstr ""
4727
4728 #. type: verbatim
4729 #: ../examples/guestfs-recipes.pod:114
4730 #, no-wrap
4731 msgid ""
4732 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
4733 "\n"
4734 msgstr ""
4735
4736 #. type: textblock
4737 #: ../examples/guestfs-recipes.pod:116
4738 msgid ""
4739 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
4740 "this:"
4741 msgstr ""
4742
4743 #. type: verbatim
4744 #: ../examples/guestfs-recipes.pod:119
4745 #, no-wrap
4746 msgid ""
4747 " virt-rescue -d BrokenGuest\n"
4748 "\n"
4749 msgstr ""
4750
4751 #. type: =head1
4752 #: ../examples/guestfs-recipes.pod:121
4753 msgid "Export any directory from a VM"
4754 msgstr ""
4755
4756 #. type: textblock
4757 #: ../examples/guestfs-recipes.pod:123
4758 msgid "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
4759 msgstr ""
4760
4761 #. type: verbatim
4762 #: ../examples/guestfs-recipes.pod:126 ../examples/guestfs-testing.pod:93
4763 #, no-wrap
4764 msgid ""
4765 " virt-copy-out -d Guest /home .\n"
4766 "\n"
4767 msgstr ""
4768
4769 #. type: textblock
4770 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9 ../fish/guestfish-actions.pod:1481 ../fish/guestfish-actions.pod:1746 ../fish/guestfish-actions.pod:2163 ../src/guestfs-actions.pod:18 ../src/guestfs-actions.pod:2373 ../src/guestfs-actions.pod:2797 ../src/guestfs-actions.pod:3356 ../src/guestfs.pod:1685 ../tools/virt-win-reg.pl:717
4771 msgid "Notes:"
4772 msgstr ""
4773
4774 #. type: textblock
4775 #: ../examples/guestfs-recipes.pod:134
4776 msgid ""
4777 "The final dot of the command is not a printing error.  It means we want to "
4778 "copy out to the current directory."
4779 msgstr ""
4780
4781 #. type: textblock
4782 #: ../examples/guestfs-recipes.pod:139
4783 msgid "This creates a directory called C<home> under the current directory."
4784 msgstr ""
4785
4786 #. type: textblock
4787 #: ../examples/guestfs-recipes.pod:143
4788 msgid ""
4789 "If the guest is a Windows guest then you can use drive letters and "
4790 "backslashes, but you must prefix the path with C<win:> and quote it to "
4791 "protect it from the shell, like this:"
4792 msgstr ""
4793
4794 #. type: verbatim
4795 #: ../examples/guestfs-recipes.pod:147
4796 #, no-wrap
4797 msgid ""
4798 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
4799 "\n"
4800 msgstr ""
4801
4802 #. type: textblock
4803 #: ../examples/guestfs-recipes.pod:149
4804 msgid "To get the output as a compressed tarball, do:"
4805 msgstr ""
4806
4807 #. type: verbatim
4808 #: ../examples/guestfs-recipes.pod:151
4809 #, no-wrap
4810 msgid ""
4811 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
4812 "\n"
4813 msgstr ""
4814
4815 #. type: textblock
4816 #: ../examples/guestfs-recipes.pod:153
4817 msgid ""
4818 "Although it sounds tempting, this is usually not a reliable way to get a "
4819 "backup from a running guest.  See the entry in the FAQ: "
4820 "http://libguestfs.org/FAQ.html#backup"
4821 msgstr ""
4822
4823 #. type: =head1
4824 #: ../examples/guestfs-recipes.pod:157
4825 msgid "Find out which user is using the most space"
4826 msgstr ""
4827
4828 #. type: textblock
4829 #: ../examples/guestfs-recipes.pod:159
4830 msgid ""
4831 "This simple script examines a Linux guest to find out which user is using "
4832 "the most space in their home directory:"
4833 msgstr ""
4834
4835 #. type: verbatim
4836 #: ../examples/guestfs-recipes.pod:162
4837 #, no-wrap
4838 msgid ""
4839 " #!/bin/sh -\n"
4840 " \n"
4841 msgstr ""
4842
4843 #. type: verbatim
4844 #: ../examples/guestfs-recipes.pod:164 ../fish/guestfish.pod:984
4845 #, no-wrap
4846 msgid ""
4847 " set -e\n"
4848 " \n"
4849 msgstr ""
4850
4851 #. type: verbatim
4852 #: ../examples/guestfs-recipes.pod:166
4853 #, no-wrap
4854 msgid ""
4855 " vm=\"$1\"\n"
4856 " dir=/home\n"
4857 " \n"
4858 msgstr ""
4859
4860 #. type: verbatim
4861 #: ../examples/guestfs-recipes.pod:169
4862 #, no-wrap
4863 msgid ""
4864 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
4865 " \n"
4866 msgstr ""
4867
4868 #. type: verbatim
4869 #: ../examples/guestfs-recipes.pod:171
4870 #, no-wrap
4871 msgid ""
4872 " for d in $(guestfish --remote ls \"$dir\"); do\n"
4873 "     echo -n \"$dir/$d\"\n"
4874 "     echo -ne '\\t'\n"
4875 "     guestfish --remote du \"$dir/$d\";\n"
4876 " done | sort -nr -k 2\n"
4877 " \n"
4878 msgstr ""
4879
4880 #. type: verbatim
4881 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
4882 #, no-wrap
4883 msgid ""
4884 " guestfish --remote exit\n"
4885 "\n"
4886 msgstr ""
4887
4888 #. type: =head1
4889 #: ../examples/guestfs-recipes.pod:179
4890 msgid "Get DHCP address from a VM"
4891 msgstr ""
4892
4893 #. type: textblock
4894 #: ../examples/guestfs-recipes.pod:181
4895 msgid ""
4896 "The link below explains the many different possible techniques for getting "
4897 "the last assigned DHCP address of a virtual machine."
4898 msgstr ""
4899
4900 #. type: textblock
4901 #: ../examples/guestfs-recipes.pod:184
4902 msgid "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-a-virtual-machine-disk-image/#content"
4903 msgstr ""
4904
4905 #. type: textblock
4906 #: ../examples/guestfs-recipes.pod:186
4907 msgid ""
4908 "In the libguestfs source examples directory you will find the latest version "
4909 "of the C<virt-dhcp-address.c> program."
4910 msgstr ""
4911
4912 #. type: =head1
4913 #: ../examples/guestfs-recipes.pod:189
4914 msgid "Get the operating system product name string"
4915 msgstr ""
4916
4917 #. type: textblock
4918 #: ../examples/guestfs-recipes.pod:191
4919 msgid "Save the following script into a file called C<product-name.sh>:"
4920 msgstr ""
4921
4922 #. type: verbatim
4923 #: ../examples/guestfs-recipes.pod:193
4924 #, no-wrap
4925 msgid ""
4926 " #!/bin/sh -\n"
4927 " set -e\n"
4928 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
4929 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
4930 " guestfish --remote inspect-get-product-name \"$root\"\n"
4931 " guestfish --remote exit\n"
4932 "\n"
4933 msgstr ""
4934
4935 #. type: textblock
4936 #: ../examples/guestfs-recipes.pod:200
4937 msgid "Make the script executable and run it on a named guest:"
4938 msgstr ""
4939
4940 #. type: verbatim
4941 #: ../examples/guestfs-recipes.pod:202
4942 #, no-wrap
4943 msgid ""
4944 " # product-name.sh RHEL60x64\n"
4945 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
4946 "\n"
4947 msgstr ""
4948
4949 #. type: textblock
4950 #: ../examples/guestfs-recipes.pod:205
4951 msgid ""
4952 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
4953 "C<xpath> command line tool or from your favourite programming language:"
4954 msgstr ""
4955
4956 #. type: verbatim
4957 #: ../examples/guestfs-recipes.pod:209
4958 #, no-wrap
4959 msgid ""
4960 " # virt-inspector RHEL60x64 > xml\n"
4961 " # xpath '//product_name' < xml\n"
4962 " Found 1 nodes:\n"
4963 " -- NODE --\n"
4964 " <product_name>Red Hat Enterprise Linux Server release 6.0 "
4965 "(Santiago)</product_name>\n"
4966 "\n"
4967 msgstr ""
4968
4969 #. type: =head1
4970 #: ../examples/guestfs-recipes.pod:215
4971 msgid "Get the default boot kernel for a Linux VM"
4972 msgstr ""
4973
4974 #. type: textblock
4975 #: ../examples/guestfs-recipes.pod:217
4976 msgid ""
4977 "The link below contains a program to print the default boot kernel for a "
4978 "Linux VM."
4979 msgstr ""
4980
4981 #. type: textblock
4982 #: ../examples/guestfs-recipes.pod:220
4983 msgid "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-kernel-for-a-vm/#content"
4984 msgstr ""
4985
4986 #. type: textblock
4987 #: ../examples/guestfs-recipes.pod:222
4988 msgid ""
4989 "It uses Augeas, and the technique is generally applicable for many different "
4990 "tasks, such as:"
4991 msgstr ""
4992
4993 #. type: textblock
4994 #: ../examples/guestfs-recipes.pod:229
4995 msgid "listing the user accounts in the guest"
4996 msgstr ""
4997
4998 #. type: textblock
4999 #: ../examples/guestfs-recipes.pod:233
5000 msgid "what repositories is it configured to use"
5001 msgstr ""
5002
5003 #. type: textblock
5004 #: ../examples/guestfs-recipes.pod:237
5005 msgid "what NTP servers does it connect to"
5006 msgstr ""
5007
5008 #. type: textblock
5009 #: ../examples/guestfs-recipes.pod:241
5010 msgid "what were the boot messages last time it booted"
5011 msgstr ""
5012
5013 #. type: textblock
5014 #: ../examples/guestfs-recipes.pod:245
5015 msgid "listing who was logged in recently"
5016 msgstr ""
5017
5018 #. type: textblock
5019 #: ../examples/guestfs-recipes.pod:249
5020 msgid "http://augeas.net/"
5021 msgstr ""
5022
5023 #. type: =head1
5024 #: ../examples/guestfs-recipes.pod:251
5025 msgid "Install RPMs in a guest"
5026 msgstr ""
5027
5028 #. type: textblock
5029 #: ../examples/guestfs-recipes.pod:253
5030 msgid ""
5031 "The link below contains a method to install RPMs in a guest.  In fact the "
5032 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
5033 "installs them next time the guest is booted.  You could use this technique "
5034 "to install vital security updates in an offline guest."
5035 msgstr ""
5036
5037 #. type: textblock
5038 #: ../examples/guestfs-recipes.pod:259
5039 msgid "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
5040 msgstr ""
5041
5042 #. type: =head1
5043 #: ../examples/guestfs-recipes.pod:261
5044 msgid "List applications installed in a VM"
5045 msgstr ""
5046
5047 #. type: textblock
5048 #: ../examples/guestfs-recipes.pod:263
5049 msgid "Save the following to a file C<list-apps.sh>:"
5050 msgstr ""
5051
5052 #. type: verbatim
5053 #: ../examples/guestfs-recipes.pod:265
5054 #, no-wrap
5055 msgid ""
5056 " #!/bin/sh -\n"
5057 " set -e\n"
5058 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5059 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5060 " guestfish --remote inspect-list-applications \"$root\"\n"
5061 " guestfish --remote exit\n"
5062 "\n"
5063 msgstr ""
5064
5065 #. type: textblock
5066 #: ../examples/guestfs-recipes.pod:272
5067 msgid ""
5068 "Make the file executable and then you can run it on any named virtual "
5069 "machine:"
5070 msgstr ""
5071
5072 #. type: verbatim
5073 #: ../examples/guestfs-recipes.pod:275
5074 #, no-wrap
5075 msgid ""
5076 " # list-apps.sh WinGuest\n"
5077 " [0] = {\n"
5078 "   app_name: Mozilla Firefox (3.6.12)\n"
5079 "   app_display_name: Mozilla Firefox (3.6.12)\n"
5080 "   app_epoch: 0\n"
5081 "   app_version: 3.6.12 (en-GB)\n"
5082 "   app_release:\n"
5083 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
5084 "   app_trans_path:\n"
5085 "   app_publisher: Mozilla\n"
5086 "   app_url: http://www.mozilla.com/en-GB/\n"
5087 "   app_source_package:\n"
5088 "   app_summary:\n"
5089 "   app_description: Mozilla Firefox\n"
5090 " }\n"
5091 " [1] = {\n"
5092 "   app_name: VLC media player\n"
5093 "   app_display_name: VLC media player 1.1.5\n"
5094 "   app_epoch: 0\n"
5095 "   app_version: 1.1.5\n"
5096 "   app_release:\n"
5097 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
5098 "   app_trans_path:\n"
5099 "   app_publisher: VideoLAN\n"
5100 "   app_url: http://www.videolan.org/\n"
5101 "   app_source_package:\n"
5102 "   app_summary:\n"
5103 "   app_description:\n"
5104 " }\n"
5105 "\n"
5106 msgstr ""
5107
5108 #. type: textblock
5109 #: ../examples/guestfs-recipes.pod:305
5110 msgid ""
5111 "If you want to run the script on disk images (instead of libvirt virtual "
5112 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also "
5113 "L<virt-inspector(1)>."
5114 msgstr ""
5115
5116 #. type: =head1
5117 #: ../examples/guestfs-recipes.pod:309
5118 msgid "List files and directories in a VM"
5119 msgstr ""
5120
5121 #. type: textblock
5122 #: ../examples/guestfs-recipes.pod:311
5123 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
5124 msgstr ""
5125
5126 #. type: verbatim
5127 #: ../examples/guestfs-recipes.pod:313
5128 #, no-wrap
5129 msgid ""
5130 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
5131 "\n"
5132 msgstr ""
5133
5134 #. type: =head1
5135 #: ../examples/guestfs-recipes.pod:315
5136 msgid "List services in a Windows VM"
5137 msgstr ""
5138
5139 #. type: textblock
5140 #: ../examples/guestfs-recipes.pod:317
5141 msgid ""
5142 "The link below contains a script that can be used to list out the services "
5143 "from a Windows VM, and whether those services run at boot time or are loaded "
5144 "on demand."
5145 msgstr ""
5146
5147 #. type: textblock
5148 #: ../examples/guestfs-recipes.pod:321
5149 msgid "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/#content"
5150 msgstr ""
5151
5152 #. type: =head1
5153 #: ../examples/guestfs-recipes.pod:323
5154 msgid "Make a disk image sparse"
5155 msgstr ""
5156
5157 #. type: textblock
5158 #: ../examples/guestfs-recipes.pod:325
5159 msgid ""
5160 "The link below contains some guides for making a disk image sparse (or "
5161 "reintroducing sparseness)."
5162 msgstr ""
5163
5164 #. type: textblock
5165 #: ../examples/guestfs-recipes.pod:328
5166 msgid "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
5167 msgstr ""
5168
5169 #. type: =head1
5170 #: ../examples/guestfs-recipes.pod:330
5171 msgid "Monitor disk usage over time"
5172 msgstr ""
5173
5174 #. type: textblock
5175 #: ../examples/guestfs-recipes.pod:332
5176 msgid ""
5177 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
5178 "The link below contains a guide."
5179 msgstr ""
5180
5181 #. type: textblock
5182 #: ../examples/guestfs-recipes.pod:335
5183 msgid "http://virt-tools.org/learning/advanced-virt-df/"
5184 msgstr ""
5185
5186 #. type: =head1
5187 #: ../examples/guestfs-recipes.pod:337
5188 msgid "Reading the Windows Event Log from Windows Vista (or later)"
5189 msgstr ""
5190
5191 #. type: textblock
5192 #: ../examples/guestfs-recipes.pod:339
5193 msgid ""
5194 "L<guestfish(1)> plus the tools described in the link below can be used to "
5195 "read out the Windows Event Log from any virtual machine running Windows "
5196 "Vista or a later version."
5197 msgstr ""
5198
5199 #. type: textblock
5200 #: ../examples/guestfs-recipes.pod:343
5201 msgid "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-guestfish/#content"
5202 msgstr ""
5203
5204 #. type: =head1
5205 #: ../examples/guestfs-recipes.pod:345
5206 msgid "Remove root password (Linux)"
5207 msgstr ""
5208
5209 #. type: textblock
5210 #: ../examples/guestfs-recipes.pod:347
5211 msgid ""
5212 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
5213 "files.  One use is to remove the root password from a Linux guest:"
5214 msgstr ""
5215
5216 #. type: verbatim
5217 #: ../examples/guestfs-recipes.pod:350
5218 #, no-wrap
5219 msgid ""
5220 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
5221 "\n"
5222 msgstr ""
5223
5224 #. type: =head1
5225 #: ../examples/guestfs-recipes.pod:352
5226 msgid "Remove Administrator password (Windows)"
5227 msgstr ""
5228
5229 #. type: textblock
5230 #: ../examples/guestfs-recipes.pod:354
5231 msgid ""
5232 "The link below contains one technique for removing the Administrator "
5233 "password from a Windows VM, or to be more precise, it gives you a command "
5234 "prompt the next time you log in which you can use to bypass any security:"
5235 msgstr ""
5236
5237 #. type: textblock
5238 #: ../examples/guestfs-recipes.pod:359
5239 msgid "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-administrator-password-with-guestfish/"
5240 msgstr ""
5241
5242 #. type: =head1
5243 #: ../examples/guestfs-recipes.pod:361
5244 msgid "Unpack a live CD"
5245 msgstr ""
5246
5247 #. type: textblock
5248 #: ../examples/guestfs-recipes.pod:363
5249 msgid ""
5250 "Linux live CDs often contain multiple layers of disk images wrapped like a "
5251 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
5252 "layers, as outlined in the guide below."
5253 msgstr ""
5254
5255 #. type: textblock
5256 #: ../examples/guestfs-recipes.pod:367
5257 msgid "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-cd/#content"
5258 msgstr ""
5259
5260 #. type: =head1
5261 #: ../examples/guestfs-recipes.pod:369
5262 msgid "Uploading and downloading files"
5263 msgstr ""
5264
5265 #. type: textblock
5266 #: ../examples/guestfs-recipes.pod:371
5267 msgid ""
5268 "The link below contains general tips on uploading (copying in)  and "
5269 "downloading (copying out) files from VMs."
5270 msgstr ""
5271
5272 #. type: textblock
5273 #: ../examples/guestfs-recipes.pod:374
5274 msgid "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
5275 msgstr ""
5276
5277 #. type: =head1
5278 #: ../examples/guestfs-recipes.pod:376
5279 msgid "Use libguestfs tools on VMware ESX guests"
5280 msgstr ""
5281
5282 #. type: textblock
5283 #: ../examples/guestfs-recipes.pod:378
5284 msgid ""
5285 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
5286 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
5287 msgstr ""
5288
5289 #. type: textblock
5290 #: ../examples/guestfs-recipes.pod:382
5291 msgid "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-guests/#content"
5292 msgstr ""
5293
5294 #. type: textblock
5295 #: ../examples/guestfs-recipes.pod:386
5296 msgid ""
5297 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, "
5298 "L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, "
5299 "L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
5300 "L<http://libguestfs.org/>."
5301 msgstr ""
5302
5303 #. type: textblock
5304 #: ../examples/guestfs-recipes.pod:403
5305 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
5306 msgstr ""
5307
5308 #. type: textblock
5309 #: ../examples/guestfs-testing.pod:5
5310 msgid "guestfs-testing - manual testing of libguestfs, you can help!"
5311 msgstr ""
5312
5313 #. type: textblock
5314 #: ../examples/guestfs-testing.pod:9
5315 msgid ""
5316 "This page has manual tests you can try on libguestfs.  Everyone has a "
5317 "slightly different combination of platform, hardware and guests, so this "
5318 "testing is very valuable.  Thanks for helping out!"
5319 msgstr ""
5320
5321 #. type: textblock
5322 #: ../examples/guestfs-testing.pod:13
5323 msgid "These tests require libguestfs E<ge> 1.14."
5324 msgstr ""
5325
5326 #. type: textblock
5327 #: ../examples/guestfs-testing.pod:15
5328 msgid ""
5329 "Tests marked with a B<*> (asterisk) can B<destroy data> if you're not "
5330 "careful.  The others are safe and won't modify anything."
5331 msgstr ""
5332
5333 #. type: textblock
5334 #: ../examples/guestfs-testing.pod:18
5335 msgid "You can report bugs you find through this link:"
5336 msgstr ""
5337
5338 #. type: textblock
5339 #: ../examples/guestfs-testing.pod:20
5340 msgid "https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools"
5341 msgstr ""
5342
5343 #. type: textblock
5344 #: ../examples/guestfs-testing.pod:22
5345 msgid ""
5346 "or post on the mailing list (registration is B<not> required, but if you're "
5347 "not registered then you'll have to wait for a moderator to manually approve "
5348 "your message):"
5349 msgstr ""
5350
5351 #. type: textblock
5352 #: ../examples/guestfs-testing.pod:26
5353 msgid "https://www.redhat.com/mailman/listinfo/libguestfs"
5354 msgstr ""
5355
5356 #. type: =head1
5357 #: ../examples/guestfs-testing.pod:28
5358 msgid "TESTS"
5359 msgstr ""
5360
5361 #. type: =head2
5362 #: ../examples/guestfs-testing.pod:30
5363 msgid "Check KVM acceleration is being used."
5364 msgstr ""
5365
5366 #. type: textblock
5367 #: ../examples/guestfs-testing.pod:32
5368 msgid ""
5369 "If your host has hardware virt acceleration, then with a hot cache "
5370 "libguestfs should be able to start up in a few seconds.  Run the following "
5371 "command a few times:"
5372 msgstr ""
5373
5374 #. type: verbatim
5375 #: ../examples/guestfs-testing.pod:36
5376 #, no-wrap
5377 msgid ""
5378 " time guestfish -a /dev/null run\n"
5379 "\n"
5380 msgstr ""
5381
5382 #. type: textblock
5383 #: ../examples/guestfs-testing.pod:38
5384 msgid ""
5385 "After a few runs, the time should settle down to a few seconds (under 5 "
5386 "seconds on fast 64 bit hardware)."
5387 msgstr ""
5388
5389 #. type: textblock
5390 #: ../examples/guestfs-testing.pod:41
5391 msgid "How to check for hardware virt:"
5392 msgstr ""
5393
5394 #. type: textblock
5395 #: ../examples/guestfs-testing.pod:43
5396 msgid "http://virt-tools.org/learning/check-hardware-virt/"
5397 msgstr ""
5398
5399 #. type: textblock
5400 #: ../examples/guestfs-testing.pod:45
5401 msgid "If the command above does not work at all, use L<libguestfs-test-tool(1)>."
5402 msgstr ""
5403
5404 #. type: =head2
5405 #: ../examples/guestfs-testing.pod:48
5406 msgid "Run virt-alignment-scan on all your guests."
5407 msgstr ""
5408
5409 #. type: textblock
5410 #: ../examples/guestfs-testing.pod:50
5411 msgid "Run L<virt-alignment-scan(1)> on guests or disk images:"
5412 msgstr ""
5413
5414 #. type: verbatim
5415 #: ../examples/guestfs-testing.pod:52
5416 #, no-wrap
5417 msgid ""
5418 " virt-alignment-scan -a /path/to/disk.img\n"
5419 "\n"
5420 msgstr ""
5421
5422 #. type: textblock
5423 #: ../examples/guestfs-testing.pod:54 ../examples/guestfs-testing.pod:161 ../examples/guestfs-testing.pod:174 ../examples/guestfs-testing.pod:234 ../src/guestfs.pod:2792
5424 msgid "or:"
5425 msgstr ""
5426
5427 #. type: verbatim
5428 #: ../examples/guestfs-testing.pod:56
5429 #, no-wrap
5430 msgid ""
5431 " virt-alignment-scan -d Guest\n"
5432 "\n"
5433 msgstr ""
5434
5435 #. type: textblock
5436 #: ../examples/guestfs-testing.pod:58
5437 msgid "Does the alignment report match how the guest partitions are aligned?"
5438 msgstr ""
5439
5440 #. type: =head2
5441 #: ../examples/guestfs-testing.pod:60
5442 msgid "Run virt-cat on some files in guests."
5443 msgstr ""
5444
5445 #. type: textblock
5446 #: ../examples/guestfs-testing.pod:62
5447 msgid "L<virt-cat(1)> can display files from guests.  For a Linux guest, try:"
5448 msgstr ""
5449
5450 #. type: verbatim
5451 #: ../examples/guestfs-testing.pod:64
5452 #, no-wrap
5453 msgid ""
5454 " virt-cat LinuxGuest /etc/passwd\n"
5455 "\n"
5456 msgstr ""
5457
5458 #. type: textblock
5459 #: ../examples/guestfs-testing.pod:66
5460 msgid "A recent feature is support for Windows paths, for example:"
5461 msgstr ""
5462
5463 #. type: verbatim
5464 #: ../examples/guestfs-testing.pod:68
5465 #, no-wrap
5466 msgid ""
5467 " virt-cat WindowsGuest 'c:\\windows\\win.ini'\n"
5468 "\n"
5469 msgstr ""
5470
5471 #. type: textblock
5472 #: ../examples/guestfs-testing.pod:70
5473 msgid ""
5474 "An even better test is if you have a Windows guest with multiple drives.  Do "
5475 "C<D:>, C<E:> etc paths work correctly?"
5476 msgstr ""
5477
5478 #. type: =head2
5479 #: ../examples/guestfs-testing.pod:73
5480 msgid "B<*> Copy some files into a B<shut off> guest."
5481 msgstr ""
5482
5483 #. type: textblock
5484 #: ../examples/guestfs-testing.pod:75
5485 msgid ""
5486 "L<virt-copy-in(1)> can recursively copy files and directories into a guest "
5487 "or disk image."
5488 msgstr ""
5489
5490 #. type: verbatim
5491 #: ../examples/guestfs-testing.pod:78
5492 #, no-wrap
5493 msgid ""
5494 " virt-copy-in -d Guest /etc /tmp\n"
5495 "\n"
5496 msgstr ""
5497
5498 #. type: textblock
5499 #: ../examples/guestfs-testing.pod:80
5500 msgid ""
5501 "This should copy local directory C</etc> to C</tmp/etc> in the guest "
5502 "(recursively).  If you boot the guest, can you see all of the copied files "
5503 "and directories?"
5504 msgstr ""
5505
5506 #. type: textblock
5507 #: ../examples/guestfs-testing.pod:84
5508 msgid "Shut the guest down and try copying multiple files and directories:"
5509 msgstr ""
5510
5511 #. type: verbatim
5512 #: ../examples/guestfs-testing.pod:86
5513 #, no-wrap
5514 msgid ""
5515 " virt-copy-in -d Guest /home /etc/issue /tmp\n"
5516 "\n"
5517 msgstr ""
5518
5519 #. type: =head2
5520 #: ../examples/guestfs-testing.pod:88
5521 msgid "Copy some files out of a guest."
5522 msgstr ""
5523
5524 #. type: textblock
5525 #: ../examples/guestfs-testing.pod:90
5526 msgid ""
5527 "L<virt-copy-out(1)> can recursively copy files and directories out of a "
5528 "guest or disk image."
5529 msgstr ""
5530
5531 #. type: textblock
5532 #: ../examples/guestfs-testing.pod:95
5533 msgid "Note the final space and period in the command is not a typo."
5534 msgstr ""
5535
5536 #. type: textblock
5537 #: ../examples/guestfs-testing.pod:97
5538 msgid "This should copy C</home> from the guest into the current directory."
5539 msgstr ""
5540
5541 #. type: =head2
5542 #: ../examples/guestfs-testing.pod:99
5543 msgid "Run virt-df."
5544 msgstr ""
5545
5546 #. type: textblock
5547 #: ../examples/guestfs-testing.pod:101
5548 msgid "L<virt-df(1)> lists disk space.  Run:"
5549 msgstr ""
5550
5551 #. type: verbatim
5552 #: ../examples/guestfs-testing.pod:103
5553 #, no-wrap
5554 msgid ""
5555 " virt-df\n"
5556 "\n"
5557 msgstr ""
5558
5559 #. type: textblock
5560 #: ../examples/guestfs-testing.pod:105
5561 msgid ""
5562 "You can try comparing this to the results from L<df(1)> inside the guest, "
5563 "but there are some provisos:"
5564 msgstr ""
5565
5566 #. type: textblock
5567 #: ../examples/guestfs-testing.pod:112
5568 msgid "The guest must be idle."
5569 msgstr ""
5570
5571 #. type: textblock
5572 #: ../examples/guestfs-testing.pod:116
5573 msgid "The guest disks must be synched using L<sync(1)>."
5574 msgstr ""
5575
5576 #. type: textblock
5577 #: ../examples/guestfs-testing.pod:120
5578 msgid ""
5579 "Any action such as booting the guest will write log files causing the "
5580 "numbers to change."
5581 msgstr ""
5582
5583 #. type: textblock
5584 #: ../examples/guestfs-testing.pod:125
5585 msgid ""
5586 "We don't guarantee that the numbers will be identical even under these "
5587 "circumstances.  They should be similar.  It would indicate a bug if you saw "
5588 "greatly differing numbers."
5589 msgstr ""
5590
5591 #. type: =head2
5592 #: ../examples/guestfs-testing.pod:129
5593 msgid "Try importing virt-df CSV output into a spreadsheet or database."
5594 msgstr ""
5595
5596 #. type: textblock
5597 #: ../examples/guestfs-testing.pod:131 ../src/guestfs.pod:3088
5598 msgid "Run:"
5599 msgstr ""
5600
5601 #. type: verbatim
5602 #: ../examples/guestfs-testing.pod:133
5603 #, no-wrap
5604 msgid ""
5605 " virt-df --csv > /tmp/report.csv\n"
5606 "\n"
5607 msgstr ""
5608
5609 #. type: textblock
5610 #: ../examples/guestfs-testing.pod:135
5611 msgid ""
5612 "Now try to load this into your favorite spreadsheet or database.  Are the "
5613 "results reproduced faithfully in the spreadsheet/database?"
5614 msgstr ""
5615
5616 #. type: textblock
5617 #: ../examples/guestfs-testing.pod:138
5618 msgid ""
5619 "http://www.postgresql.org/docs/8.1/static/sql-copy.html "
5620 "http://dev.mysql.com/doc/refman/5.1/en/load-data.html"
5621 msgstr ""
5622
5623 #. type: =head2
5624 #: ../examples/guestfs-testing.pod:141
5625 msgid "B<*> Edit a file in a B<shut off> guest."
5626 msgstr ""
5627
5628 #. type: textblock
5629 #: ../examples/guestfs-testing.pod:143
5630 msgid ""
5631 "L<virt-edit(1)> can edit files in guests.  Try this command on a RHEL or "
5632 "Fedora guest:"
5633 msgstr ""
5634
5635 #. type: verbatim
5636 #: ../examples/guestfs-testing.pod:146
5637 #, no-wrap
5638 msgid ""
5639 " virt-edit LinuxGuest /etc/sysconfig/network\n"
5640 "\n"
5641 msgstr ""
5642
5643 #. type: textblock
5644 #: ../examples/guestfs-testing.pod:148
5645 msgid "On other Linux guests try editing other files such as:"
5646 msgstr ""
5647
5648 #. type: verbatim
5649 #: ../examples/guestfs-testing.pod:150
5650 #, no-wrap
5651 msgid ""
5652 " virt-edit LinuxGuest /etc/motd\n"
5653 "\n"
5654 msgstr ""
5655
5656 #. type: textblock
5657 #: ../examples/guestfs-testing.pod:152
5658 msgid "Are the changes seen inside the guest when it is booted?"
5659 msgstr ""
5660
5661 #. type: =head2
5662 #: ../examples/guestfs-testing.pod:154
5663 msgid "Display the filesystems / partitions / LVs in a guest."
5664 msgstr ""
5665
5666 #. type: textblock
5667 #: ../examples/guestfs-testing.pod:156
5668 msgid ""
5669 "L<virt-filesystems(1)> can be used to display filesystems in a guest.  Try "
5670 "this command on any disk image or guest:"
5671 msgstr ""
5672
5673 #. type: verbatim
5674 #: ../examples/guestfs-testing.pod:159
5675 #, no-wrap
5676 msgid ""
5677 " virt-filesystems -a /path/to/disk.img --all --long -h\n"
5678 "\n"
5679 msgstr ""
5680
5681 #. type: verbatim
5682 #: ../examples/guestfs-testing.pod:163
5683 #, no-wrap
5684 msgid ""
5685 " virt-filesystems -d Guest --all --long -h\n"
5686 "\n"
5687 msgstr ""
5688
5689 #. type: textblock
5690 #: ../examples/guestfs-testing.pod:165
5691 msgid "Do the results match what is seen in the guest?"
5692 msgstr ""
5693
5694 #. type: =head2
5695 #: ../examples/guestfs-testing.pod:167
5696 msgid "Run virt-inspector on all your guests."
5697 msgstr ""
5698
5699 #. type: textblock
5700 #: ../examples/guestfs-testing.pod:169
5701 msgid ""
5702 "Use L<virt-inspector(1)> to get a report on all of your guests or disk "
5703 "images:"
5704 msgstr ""
5705
5706 #. type: verbatim
5707 #: ../examples/guestfs-testing.pod:172
5708 #, no-wrap
5709 msgid ""
5710 " virt-inspector -a /path/to/disk.img | less\n"
5711 "\n"
5712 msgstr ""
5713
5714 #. type: verbatim
5715 #: ../examples/guestfs-testing.pod:176
5716 #, no-wrap
5717 msgid ""
5718 " virt-inspector -d Guest | less\n"
5719 "\n"
5720 msgstr ""
5721
5722 #. type: textblock
5723 #: ../examples/guestfs-testing.pod:178
5724 msgid "Do the results match what is actually in the guest?"
5725 msgstr ""
5726
5727 #. type: =head2
5728 #: ../examples/guestfs-testing.pod:180
5729 msgid "Try the auditing features of virt-ls on all your guests."
5730 msgstr ""
5731
5732 #. type: verbatim
5733 #: ../examples/guestfs-testing.pod:184
5734 #, no-wrap
5735 msgid ""
5736 " virt-ls -lR -d Guest / | grep '^- [42]'\n"
5737 "\n"
5738 msgstr ""
5739
5740 #. type: verbatim
5741 #: ../examples/guestfs-testing.pod:188
5742 #, no-wrap
5743 msgid ""
5744 " virt-ls -lR -d Guest / | grep '^d ...7'\n"
5745 "\n"
5746 msgstr ""
5747
5748 #. type: verbatim
5749 #: ../examples/guestfs-testing.pod:192
5750 #, no-wrap
5751 msgid ""
5752 " virt-ls -lR -d Guest / | grep '^s'\n"
5753 "\n"
5754 msgstr ""
5755
5756 #. type: verbatim
5757 #: ../examples/guestfs-testing.pod:196
5758 #, no-wrap
5759 msgid ""
5760 " virt-ls -lR -d Guest / | grep -i '^-.*\\.png$'\n"
5761 "\n"
5762 msgstr ""
5763
5764 #. type: textblock
5765 #: ../examples/guestfs-testing.pod:198
5766 msgid "Display files larger than 10MB in home directories:"
5767 msgstr ""
5768
5769 #. type: verbatim
5770 #: ../examples/guestfs-testing.pod:200
5771 #, no-wrap
5772 msgid ""
5773 " virt-ls -lR -d Guest /home | awk '$3 > 10*1024*1024'\n"
5774 "\n"
5775 msgstr ""
5776
5777 #. type: verbatim
5778 #: ../examples/guestfs-testing.pod:204
5779 #, no-wrap
5780 msgid ""
5781 " virt-ls -lR -d Guest --time-days / | awk '$6 <= 7'\n"
5782 "\n"
5783 msgstr ""
5784
5785 #. type: verbatim
5786 #: ../examples/guestfs-testing.pod:208
5787 #, no-wrap
5788 msgid ""
5789 " virt-ls -lR -d Guest --time-days / | grep '^-' | awk '$6 < 1'\n"
5790 "\n"
5791 msgstr ""
5792
5793 #. type: textblock
5794 #: ../examples/guestfs-testing.pod:210
5795 msgid "Do the results match what is in the guest?"
5796 msgstr ""
5797
5798 #. type: =head2
5799 #: ../examples/guestfs-testing.pod:212
5800 msgid "Create a disk image from a tarball."
5801 msgstr ""
5802
5803 #. type: textblock
5804 #: ../examples/guestfs-testing.pod:214
5805 msgid ""
5806 "Use L<virt-make-fs(1)> to create a disk image from any tarball that you "
5807 "happen to have:"
5808 msgstr ""
5809
5810 #. type: verbatim
5811 #: ../examples/guestfs-testing.pod:217
5812 #, no-wrap
5813 msgid ""
5814 " virt-make-fs --partition=mbr --type=vfat /any/tarball.tar.gz output.img\n"
5815 "\n"
5816 msgstr ""
5817
5818 #. type: textblock
5819 #: ../examples/guestfs-testing.pod:219
5820 msgid ""
5821 "Add 'output.img' as a raw disk to an existing guest.  Check the guest can "
5822 "see the files.  This test is particularly useful if you try it with a "
5823 "Windows guest."
5824 msgstr ""
5825
5826 #. type: textblock
5827 #: ../examples/guestfs-testing.pod:223
5828 msgid "Try other partitioning schemes, eg. I<--partition=gpt>."
5829 msgstr ""
5830
5831 #. type: textblock
5832 #: ../examples/guestfs-testing.pod:225
5833 msgid "Try other filesystem formats, eg. I<--type=ntfs>, I<--type=ext2>."
5834 msgstr ""
5835
5836 #. type: =head2
5837 #: ../examples/guestfs-testing.pod:227
5838 msgid "B<*> Run virt-rescue on a B<shut off> disk image or guest."
5839 msgstr ""
5840
5841 #. type: textblock
5842 #: ../examples/guestfs-testing.pod:229
5843 msgid ""
5844 "Use L<virt-rescue(1)> to examine, rescue or repair a B<shut off> guest or "
5845 "disk image:"
5846 msgstr ""
5847
5848 #. type: verbatim
5849 #: ../examples/guestfs-testing.pod:232
5850 #, no-wrap
5851 msgid ""
5852 " virt-rescue -a /path/to/disk.img\n"
5853 "\n"
5854 msgstr ""
5855
5856 #. type: verbatim
5857 #: ../examples/guestfs-testing.pod:236
5858 #, no-wrap
5859 msgid ""
5860 " virt-rescue -d Guest\n"
5861 "\n"
5862 msgstr ""
5863
5864 #. type: textblock
5865 #: ../examples/guestfs-testing.pod:238
5866 msgid "Can you use ordinary shell commands to examine the guest?"
5867 msgstr ""
5868
5869 #. type: =head2
5870 #: ../examples/guestfs-testing.pod:240
5871 msgid "B<*> Resize your guests."
5872 msgstr ""
5873
5874 #. type: textblock
5875 #: ../examples/guestfs-testing.pod:242
5876 msgid ""
5877 "Use L<virt-resize(1)> to give a guest some more disk space.  For example, if "
5878 "you have a disk image that is smaller than 30G, increase it to 30G by doing:"
5879 msgstr ""
5880
5881 #. type: verbatim
5882 #: ../examples/guestfs-testing.pod:246
5883 #, no-wrap
5884 msgid ""
5885 " truncate -s 30G newdisk.img\n"
5886 " virt-filesystems -a /path/to/olddisk.img --all --long -h\n"
5887 " virt-resize /path/to/olddisk.img newdisk.img --expand /dev/sda1\n"
5888 " qemu-kvm -m 1024 -hda newdisk.img\n"
5889 "\n"
5890 msgstr ""
5891
5892 #. type: textblock
5893 #: ../examples/guestfs-testing.pod:251
5894 msgid "Does the guest still boot? Try expanding other partitions."
5895 msgstr ""
5896
5897 #. type: =head2
5898 #: ../examples/guestfs-testing.pod:253
5899 msgid "B<*> Sparsify a guest disk."
5900 msgstr ""
5901
5902 #. type: textblock
5903 #: ../examples/guestfs-testing.pod:255
5904 msgid "Using L<virt-sparsify(1)>, make a disk image more sparse:"
5905 msgstr ""
5906
5907 #. type: verbatim
5908 #: ../examples/guestfs-testing.pod:257
5909 #, no-wrap
5910 msgid ""
5911 " virt-sparsify /path/to/olddisk.img newdisk.img\n"
5912 "\n"
5913 msgstr ""
5914
5915 #. type: textblock
5916 #: ../examples/guestfs-testing.pod:259
5917 msgid ""
5918 "Is C<newdisk.img> still bootable after sparsifying? Is the resulting disk "
5919 "image smaller (use C<du> to check)?"
5920 msgstr ""
5921
5922 #. type: =head2
5923 #: ../examples/guestfs-testing.pod:262
5924 msgid "B<*> \"sysprep\" a B<shut off> Linux guest."
5925 msgstr ""
5926
5927 #. type: textblock
5928 #: ../examples/guestfs-testing.pod:264
5929 msgid ""
5930 "Note that this really will mess up an existing guest, so it's better to "
5931 "clone the guest before trying this."
5932 msgstr ""
5933
5934 #. type: verbatim
5935 #: ../examples/guestfs-testing.pod:267
5936 #, no-wrap
5937 msgid ""
5938 " virt-sysprep --hostname newhost.example.com -a /path/to/disk.img\n"
5939 "\n"
5940 msgstr ""
5941
5942 #. type: textblock
5943 #: ../examples/guestfs-testing.pod:269
5944 msgid ""
5945 "Was the sysprep successful? After booting, what changes were made and were "
5946 "they successful?"
5947 msgstr ""
5948
5949 #. type: =head2
5950 #: ../examples/guestfs-testing.pod:272
5951 msgid "Dump the Windows Registry from your Windows guests."
5952 msgstr ""
5953
5954 #. type: textblock
5955 #: ../examples/guestfs-testing.pod:274
5956 msgid ""
5957 "Use L<virt-win-reg(1)> to dump out the Windows Registry from any Windows "
5958 "guests that you have."
5959 msgstr ""
5960
5961 #. type: verbatim
5962 #: ../examples/guestfs-testing.pod:277
5963 #, no-wrap
5964 msgid ""
5965 " virt-win-reg --unsafe-printable-strings WindowsGuest 'HKLM\\Software' |\n"
5966 "   less\n"
5967 "\n"
5968 msgstr ""
5969
5970 #. type: verbatim
5971 #: ../examples/guestfs-testing.pod:280
5972 #, no-wrap
5973 msgid ""
5974 " virt-win-reg --unsafe-printable-strings WindowsGuest 'HKLM\\System' |\n"
5975 "   less\n"
5976 "\n"
5977 msgstr ""
5978
5979 #. type: textblock
5980 #: ../examples/guestfs-testing.pod:283
5981 msgid "Does the output match running C<regedit> inside the guest?"
5982 msgstr ""
5983
5984 #. type: textblock
5985 #: ../examples/guestfs-testing.pod:285
5986 msgid ""
5987 "A recent feature is the ability to dump user registries, so try this, "
5988 "replacing I<username> with the name of a local user in the guest:"
5989 msgstr ""
5990
5991 #. type: verbatim
5992 #: ../examples/guestfs-testing.pod:288
5993 #, no-wrap
5994 msgid ""
5995 " virt-win-reg --unsafe-printable-strings WindowsGuest 'HKEY_USERS\\username' "
5996 "|\n"
5997 "   less\n"
5998 "\n"
5999 msgstr ""
6000
6001 #. type: textblock
6002 #: ../examples/guestfs-testing.pod:293
6003 msgid ""
6004 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, "
6005 "L<http://libguestfs.org/>."
6006 msgstr ""
6007
6008 #. type: =head2
6009 #: ../fish/guestfish-actions.pod:1
6010 msgid "add-cdrom"
6011 msgstr ""
6012
6013 #. type: verbatim
6014 #: ../fish/guestfish-actions.pod:3
6015 #, no-wrap
6016 msgid ""
6017 " add-cdrom filename\n"
6018 "\n"
6019 msgstr ""
6020
6021 #. type: textblock
6022 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
6023 msgid "This function adds a virtual CD-ROM disk image to the guest."
6024 msgstr ""
6025
6026 #. type: textblock
6027 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
6028 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
6029 msgstr ""
6030
6031 #. type: textblock
6032 #: ../fish/guestfish-actions.pod:15
6033 msgid ""
6034 "This call checks for the existence of C<filename>.  This stops you from "
6035 "specifying other types of drive which are supported by qemu such as C<nbd:> "
6036 "and C<http:> URLs.  To specify those, use the general L</config> call "
6037 "instead."
6038 msgstr ""
6039
6040 #. type: textblock
6041 #: ../fish/guestfish-actions.pod:22
6042 msgid ""
6043 "If you just want to add an ISO file (often you use this as an efficient way "
6044 "to transfer large files into the guest), then you should probably use "
6045 "L</add-drive-ro> instead."
6046 msgstr ""
6047
6048 #. type: textblock
6049 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:214 ../fish/guestfish-actions.pod:228
6050 msgid ""
6051 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
6052 "instead."
6053 msgstr ""
6054
6055 #. type: textblock
6056 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:217 ../fish/guestfish-actions.pod:231 ../fish/guestfish-actions.pod:972 ../fish/guestfish-actions.pod:1007 ../fish/guestfish-actions.pod:1180 ../fish/guestfish-actions.pod:1540 ../fish/guestfish-actions.pod:1554 ../fish/guestfish-actions.pod:3423 ../fish/guestfish-actions.pod:3734 ../fish/guestfish-actions.pod:3782 ../fish/guestfish-actions.pod:4700 ../fish/guestfish-actions.pod:4720 ../fish/guestfish-actions.pod:4739 ../fish/guestfish-actions.pod:4777 ../fish/guestfish-actions.pod:5505 ../fish/guestfish-actions.pod:5608 ../src/guestfs-actions.pod:10 ../src/guestfs-actions.pod:305 ../src/guestfs-actions.pod:326 ../src/guestfs-actions.pod:1619 ../src/guestfs-actions.pod:1676 ../src/guestfs-actions.pod:1959 ../src/guestfs-actions.pod:2458 ../src/guestfs-actions.pod:2479 ../src/guestfs-actions.pod:5281 ../src/guestfs-actions.pod:5803 ../src/guestfs-actions.pod:5903 ../src/guestfs-actions.pod:7199 ../src/guestfs-actions.pod:7240 ../src/guestfs-actions.pod:7271 ../src/guestfs-actions.pod:7331 ../src/guestfs-actions.pod:8385 ../src/guestfs-actions.pod:8494 ../src/guestfs-actions.pod:8674
6057 msgid ""
6058 "Deprecated functions will not be removed from the API, but the fact that "
6059 "they are deprecated indicates that there are problems with correct use of "
6060 "these functions."
6061 msgstr ""
6062
6063 #. type: =head2
6064 #: ../fish/guestfish-actions.pod:35
6065 msgid "add-domain"
6066 msgstr ""
6067
6068 #. type: =head2
6069 #: ../fish/guestfish-actions.pod:37
6070 msgid "domain"
6071 msgstr ""
6072
6073 #. type: verbatim
6074 #: ../fish/guestfish-actions.pod:39
6075 #, no-wrap
6076 msgid ""
6077 " add-domain dom [libvirturi:..] [readonly:true|false] [iface:..] "
6078 "[live:true|false] [allowuuid:true|false] [readonlydisk:..]\n"
6079 "\n"
6080 msgstr ""
6081
6082 #. type: textblock
6083 #: ../fish/guestfish-actions.pod:41
6084 msgid ""
6085 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
6086 "It works by connecting to libvirt, requesting the domain and domain XML from "
6087 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
6088 msgstr ""
6089
6090 #. type: textblock
6091 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:65
6092 msgid ""
6093 "The number of disks added is returned.  This operation is atomic: if an "
6094 "error is returned, then no disks are added."
6095 msgstr ""
6096
6097 #. type: textblock
6098 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:68
6099 msgid ""
6100 "This function does some minimal checks to make sure the libvirt domain is "
6101 "not running (unless C<readonly> is true).  In a future version we will try "
6102 "to acquire the libvirt lock on each disk."
6103 msgstr ""
6104
6105 #. type: textblock
6106 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:72
6107 msgid ""
6108 "Disks must be accessible locally.  This often means that adding disks from a "
6109 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
6110 "unless those disks are accessible via the same device path locally too."
6111 msgstr ""
6112
6113 #. type: textblock
6114 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:77
6115 msgid ""
6116 "The optional C<libvirturi> parameter sets the libvirt URI (see "
6117 "L<http://libvirt.org/uri.html>).  If this is not set then we connect to the "
6118 "default libvirt URI (or one set through an environment variable, see the "
6119 "libvirt documentation for full details)."
6120 msgstr ""
6121
6122 #. type: textblock
6123 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:83
6124 msgid ""
6125 "The optional C<live> flag controls whether this call will try to connect to "
6126 "a running virtual machine C<guestfsd> process if it sees a suitable "
6127 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
6128 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
6129 "DAEMONS> for more information."
6130 msgstr ""
6131
6132 #. type: textblock
6133 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:90
6134 msgid ""
6135 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
6136 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
6137 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
6138 "as usual."
6139 msgstr ""
6140
6141 #. type: textblock
6142 #: ../fish/guestfish-actions.pod:76 ../src/guestfs-actions.pod:95
6143 msgid ""
6144 "The optional C<readonlydisk> parameter controls what we do for disks which "
6145 "are marked E<lt>readonly/E<gt> in the libvirt XML.  Possible values are:"
6146 msgstr ""
6147
6148 #. type: =item
6149 #: ../fish/guestfish-actions.pod:82 ../src/guestfs-actions.pod:101
6150 msgid "readonlydisk = \"error\""
6151 msgstr ""
6152
6153 #. type: textblock
6154 #: ../fish/guestfish-actions.pod:84 ../fish/guestfish-actions.pod:95 ../fish/guestfish-actions.pod:106 ../src/guestfs-actions.pod:103 ../src/guestfs-actions.pod:114 ../src/guestfs-actions.pod:125
6155 msgid "If C<readonly> is false:"
6156 msgstr ""
6157
6158 #. type: textblock
6159 #: ../fish/guestfish-actions.pod:86 ../src/guestfs-actions.pod:105
6160 msgid ""
6161 "The whole call is aborted with an error if any disk with the "
6162 "E<lt>readonly/E<gt> flag is found."
6163 msgstr ""
6164
6165 #. type: textblock
6166 #: ../fish/guestfish-actions.pod:89 ../fish/guestfish-actions.pod:100 ../fish/guestfish-actions.pod:110 ../src/guestfs-actions.pod:108 ../src/guestfs-actions.pod:119 ../src/guestfs-actions.pod:129
6167 msgid "If C<readonly> is true:"
6168 msgstr ""
6169
6170 #. type: textblock
6171 #: ../fish/guestfish-actions.pod:91 ../fish/guestfish-actions.pod:102 ../fish/guestfish-actions.pod:112 ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121 ../src/guestfs-actions.pod:131
6172 msgid "Disks with the E<lt>readonly/E<gt> flag are added read-only."
6173 msgstr ""
6174
6175 #. type: =item
6176 #: ../fish/guestfish-actions.pod:93 ../src/guestfs-actions.pod:112
6177 msgid "readonlydisk = \"read\""
6178 msgstr ""
6179
6180 #. type: textblock
6181 #: ../fish/guestfish-actions.pod:97 ../src/guestfs-actions.pod:116
6182 msgid ""
6183 "Disks with the E<lt>readonly/E<gt> flag are added read-only.  Other disks "
6184 "are added read/write."
6185 msgstr ""
6186
6187 #. type: =item
6188 #: ../fish/guestfish-actions.pod:104 ../src/guestfs-actions.pod:123
6189 msgid "readonlydisk = \"write\" (default)"
6190 msgstr ""
6191
6192 #. type: textblock
6193 #: ../fish/guestfish-actions.pod:108 ../src/guestfs-actions.pod:127
6194 msgid "Disks with the E<lt>readonly/E<gt> flag are added read/write."
6195 msgstr ""
6196
6197 #. type: =item
6198 #: ../fish/guestfish-actions.pod:114 ../src/guestfs-actions.pod:133
6199 msgid "readonlydisk = \"ignore\""
6200 msgstr ""
6201
6202 #. type: textblock
6203 #: ../fish/guestfish-actions.pod:116 ../src/guestfs-actions.pod:135
6204 msgid "If C<readonly> is true or false:"
6205 msgstr ""
6206
6207 #. type: textblock
6208 #: ../fish/guestfish-actions.pod:118 ../src/guestfs-actions.pod:137
6209 msgid "Disks with the E<lt>readonly/E<gt> flag are skipped."
6210 msgstr ""
6211
6212 #. type: textblock
6213 #: ../fish/guestfish-actions.pod:122
6214 msgid ""
6215 "The other optional parameters are passed directly through to "
6216 "L</add-drive-opts>."
6217 msgstr ""
6218
6219 #. type: textblock
6220 #: ../fish/guestfish-actions.pod:125 ../fish/guestfish-actions.pod:194 ../fish/guestfish-actions.pod:655 ../fish/guestfish-actions.pod:866 ../fish/guestfish-actions.pod:887 ../fish/guestfish-actions.pod:925 ../fish/guestfish-actions.pod:934 ../fish/guestfish-actions.pod:943 ../fish/guestfish-actions.pod:957 ../fish/guestfish-actions.pod:2202 ../fish/guestfish-actions.pod:3250 ../fish/guestfish-actions.pod:3472 ../fish/guestfish-actions.pod:3635 ../fish/guestfish-actions.pod:3770 ../fish/guestfish-actions.pod:5141
6221 msgid ""
6222 "This command has one or more optional arguments.  See L</OPTIONAL "
6223 "ARGUMENTS>."
6224 msgstr ""
6225
6226 #. type: =head2
6227 #: ../fish/guestfish-actions.pod:127
6228 msgid "add-drive"
6229 msgstr ""
6230
6231 #. type: verbatim
6232 #: ../fish/guestfish-actions.pod:129
6233 #, no-wrap
6234 msgid ""
6235 " add-drive filename\n"
6236 "\n"
6237 msgstr ""
6238
6239 #. type: textblock
6240 #: ../fish/guestfish-actions.pod:131
6241 msgid ""
6242 "This function is the equivalent of calling L</add-drive-opts> with no "
6243 "optional parameters, so the disk is added writable, with the format being "
6244 "detected automatically."
6245 msgstr ""
6246
6247 #. type: textblock
6248 #: ../fish/guestfish-actions.pod:135
6249 msgid ""
6250 "Automatic detection of the format opens you up to a potential security hole "
6251 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6252 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
6253 "you should think about replacing calls to this function with calls to "
6254 "L</add-drive-opts>, and specifying the format."
6255 msgstr ""
6256
6257 #. type: =head2
6258 #: ../fish/guestfish-actions.pod:142
6259 msgid "add-drive-opts"
6260 msgstr ""
6261
6262 #. type: =head2
6263 #: ../fish/guestfish-actions.pod:144
6264 msgid "add"
6265 msgstr ""
6266
6267 #. type: verbatim
6268 #: ../fish/guestfish-actions.pod:146
6269 #, no-wrap
6270 msgid ""
6271 " add-drive-opts filename [readonly:true|false] [format:..] [iface:..] "
6272 "[name:..]\n"
6273 "\n"
6274 msgstr ""
6275
6276 #. type: textblock
6277 #: ../fish/guestfish-actions.pod:148 ../src/guestfs-actions.pod:208
6278 msgid ""
6279 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
6280 "The first time you call this function, the disk appears as C</dev/sda>, the "
6281 "second time as C</dev/sdb>, and so on."
6282 msgstr ""
6283
6284 #. type: textblock
6285 #: ../fish/guestfish-actions.pod:153 ../src/guestfs-actions.pod:213
6286 msgid ""
6287 "You don't necessarily need to be root when using libguestfs.  However you "
6288 "obviously do need sufficient permissions to access the filename for whatever "
6289 "operations you want to perform (ie. read access if you just want to read the "
6290 "image or write access if you want to modify the image)."
6291 msgstr ""
6292
6293 #. type: textblock
6294 #: ../fish/guestfish-actions.pod:159 ../src/guestfs-actions.pod:219
6295 msgid "This call checks that C<filename> exists."
6296 msgstr ""
6297
6298 #. type: textblock
6299 #: ../fish/guestfish-actions.pod:161 ../fish/guestfish-actions.pod:3434 ../src/guestfs-actions.pod:221 ../src/guestfs-actions.pod:5318
6300 msgid "The optional arguments are:"
6301 msgstr ""
6302
6303 #. type: =item
6304 #: ../fish/guestfish-actions.pod:165 ../src/guestfs-actions.pod:225
6305 msgid "C<readonly>"
6306 msgstr ""
6307
6308 #. type: textblock
6309 #: ../fish/guestfish-actions.pod:167 ../src/guestfs-actions.pod:227
6310 msgid ""
6311 "If true then the image is treated as read-only.  Writes are still allowed, "
6312 "but they are stored in a temporary snapshot overlay which is discarded at "
6313 "the end.  The disk that you add is not modified."
6314 msgstr ""
6315
6316 #. type: =item
6317 #: ../fish/guestfish-actions.pod:171 ../src/guestfs-actions.pod:231
6318 msgid "C<format>"
6319 msgstr ""
6320
6321 #. type: textblock
6322 #: ../fish/guestfish-actions.pod:173
6323 msgid ""
6324 "This forces the image format.  If you omit this (or use L</add-drive> or "
6325 "L</add-drive-ro>) then the format is automatically detected.  Possible "
6326 "formats include C<raw> and C<qcow2>."
6327 msgstr ""
6328
6329 #. type: textblock
6330 #: ../fish/guestfish-actions.pod:177 ../src/guestfs-actions.pod:237
6331 msgid ""
6332 "Automatic detection of the format opens you up to a potential security hole "
6333 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6334 "RHBZ#642934.  Specifying the format closes this security hole."
6335 msgstr ""
6336
6337 #. type: =item
6338 #: ../fish/guestfish-actions.pod:182 ../src/guestfs-actions.pod:242
6339 msgid "C<iface>"
6340 msgstr ""
6341
6342 #. type: textblock
6343 #: ../fish/guestfish-actions.pod:184
6344 msgid ""
6345 "This rarely-used option lets you emulate the behaviour of the deprecated "
6346 "L</add-drive-with-if> call (q.v.)"
6347 msgstr ""
6348
6349 #. type: =item
6350 #: ../fish/guestfish-actions.pod:187 ../fish/guestfish-actions.pod:3277 ../src/guestfs-actions.pod:247 ../src/guestfs-actions.pod:5039
6351 msgid "C<name>"
6352 msgstr ""
6353
6354 #. type: textblock
6355 #: ../fish/guestfish-actions.pod:189 ../src/guestfs-actions.pod:249
6356 msgid ""
6357 "The name the drive had in the original guest, e.g. /dev/sdb. This is used as "
6358 "a hint to the guest inspection process if it is available."
6359 msgstr ""
6360
6361 #. type: =head2
6362 #: ../fish/guestfish-actions.pod:196
6363 msgid "add-drive-ro"
6364 msgstr ""
6365
6366 #. type: =head2
6367 #: ../fish/guestfish-actions.pod:198
6368 msgid "add-ro"
6369 msgstr ""
6370
6371 #. type: verbatim
6372 #: ../fish/guestfish-actions.pod:200
6373 #, no-wrap
6374 msgid ""
6375 " add-drive-ro filename\n"
6376 "\n"
6377 msgstr ""
6378
6379 #. type: textblock
6380 #: ../fish/guestfish-actions.pod:202
6381 msgid ""
6382 "This function is the equivalent of calling L</add-drive-opts> with the "
6383 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
6384 "is added read-only, with the format being detected automatically."
6385 msgstr ""
6386
6387 #. type: =head2
6388 #: ../fish/guestfish-actions.pod:207
6389 msgid "add-drive-ro-with-if"
6390 msgstr ""
6391
6392 #. type: verbatim
6393 #: ../fish/guestfish-actions.pod:209
6394 #, no-wrap
6395 msgid ""
6396 " add-drive-ro-with-if filename iface\n"
6397 "\n"
6398 msgstr ""
6399
6400 #. type: textblock
6401 #: ../fish/guestfish-actions.pod:211
6402 msgid ""
6403 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
6404 "interface emulation to use at run time."
6405 msgstr ""
6406
6407 #. type: =head2
6408 #: ../fish/guestfish-actions.pod:221
6409 msgid "add-drive-with-if"
6410 msgstr ""
6411
6412 #. type: verbatim
6413 #: ../fish/guestfish-actions.pod:223
6414 #, no-wrap
6415 msgid ""
6416 " add-drive-with-if filename iface\n"
6417 "\n"
6418 msgstr ""
6419
6420 #. type: textblock
6421 #: ../fish/guestfish-actions.pod:225
6422 msgid ""
6423 "This is the same as L</add-drive> but it allows you to specify the QEMU "
6424 "interface emulation to use at run time."
6425 msgstr ""
6426
6427 #. type: =head2
6428 #: ../fish/guestfish-actions.pod:235
6429 msgid "aug-clear"
6430 msgstr ""
6431
6432 #. type: verbatim
6433 #: ../fish/guestfish-actions.pod:237
6434 #, no-wrap
6435 msgid ""
6436 " aug-clear augpath\n"
6437 "\n"
6438 msgstr ""
6439
6440 #. type: textblock
6441 #: ../fish/guestfish-actions.pod:239 ../src/guestfs-actions.pod:343
6442 msgid ""
6443 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
6444 "L<augtool(1)> C<clear> command."
6445 msgstr ""
6446
6447 #. type: =head2
6448 #: ../fish/guestfish-actions.pod:242
6449 msgid "aug-close"
6450 msgstr ""
6451
6452 #. type: verbatim
6453 #: ../fish/guestfish-actions.pod:244
6454 #, no-wrap
6455 msgid ""
6456 " aug-close\n"
6457 "\n"
6458 msgstr ""
6459
6460 #. type: textblock
6461 #: ../fish/guestfish-actions.pod:246
6462 msgid ""
6463 "Close the current Augeas handle and free up any resources used by it.  After "
6464 "calling this, you have to call L</aug-init> again before you can use any "
6465 "other Augeas functions."
6466 msgstr ""
6467
6468 #. type: =head2
6469 #: ../fish/guestfish-actions.pod:251
6470 msgid "aug-defnode"
6471 msgstr ""
6472
6473 #. type: verbatim
6474 #: ../fish/guestfish-actions.pod:253
6475 #, no-wrap
6476 msgid ""
6477 " aug-defnode name expr val\n"
6478 "\n"
6479 msgstr ""
6480
6481 #. type: textblock
6482 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:372
6483 msgid "Defines a variable C<name> whose value is the result of evaluating C<expr>."
6484 msgstr ""
6485
6486 #. type: textblock
6487 #: ../fish/guestfish-actions.pod:258
6488 msgid ""
6489 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
6490 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
6491 "containing that single node."
6492 msgstr ""
6493
6494 #. type: textblock
6495 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:379
6496 msgid ""
6497 "On success this returns a pair containing the number of nodes in the "
6498 "nodeset, and a boolean flag if a node was created."
6499 msgstr ""
6500
6501 #. type: =head2
6502 #: ../fish/guestfish-actions.pod:266
6503 msgid "aug-defvar"
6504 msgstr ""
6505
6506 #. type: verbatim
6507 #: ../fish/guestfish-actions.pod:268
6508 #, no-wrap
6509 msgid ""
6510 " aug-defvar name expr\n"
6511 "\n"
6512 msgstr ""
6513
6514 #. type: textblock
6515 #: ../fish/guestfish-actions.pod:270 ../src/guestfs-actions.pod:396
6516 msgid ""
6517 "Defines an Augeas variable C<name> whose value is the result of evaluating "
6518 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
6519 msgstr ""
6520
6521 #. type: textblock
6522 #: ../fish/guestfish-actions.pod:274 ../src/guestfs-actions.pod:400
6523 msgid ""
6524 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
6525 "evaluates to something which is not a nodeset."
6526 msgstr ""
6527
6528 #. type: =head2
6529 #: ../fish/guestfish-actions.pod:277
6530 msgid "aug-get"
6531 msgstr ""
6532
6533 #. type: verbatim
6534 #: ../fish/guestfish-actions.pod:279
6535 #, no-wrap
6536 msgid ""
6537 " aug-get augpath\n"
6538 "\n"
6539 msgstr ""
6540
6541 #. type: textblock
6542 #: ../fish/guestfish-actions.pod:281 ../src/guestfs-actions.pod:413
6543 msgid ""
6544 "Look up the value associated with C<path>.  If C<path> matches exactly one "
6545 "node, the C<value> is returned."
6546 msgstr ""
6547
6548 #. type: =head2
6549 #: ../fish/guestfish-actions.pod:284
6550 msgid "aug-init"
6551 msgstr ""
6552
6553 #. type: verbatim
6554 #: ../fish/guestfish-actions.pod:286
6555 #, no-wrap
6556 msgid ""
6557 " aug-init root flags\n"
6558 "\n"
6559 msgstr ""
6560
6561 #. type: textblock
6562 #: ../fish/guestfish-actions.pod:288 ../src/guestfs-actions.pod:428
6563 msgid ""
6564 "Create a new Augeas handle for editing configuration files.  If there was "
6565 "any previous Augeas handle associated with this guestfs session, then it is "
6566 "closed."
6567 msgstr ""
6568
6569 #. type: textblock
6570 #: ../fish/guestfish-actions.pod:292
6571 msgid "You must call this before using any other L</aug-*> commands."
6572 msgstr ""
6573
6574 #. type: textblock
6575 #: ../fish/guestfish-actions.pod:295 ../src/guestfs-actions.pod:435
6576 msgid "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
6577 msgstr ""
6578
6579 #. type: textblock
6580 #: ../fish/guestfish-actions.pod:298 ../src/guestfs-actions.pod:438
6581 msgid ""
6582 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
6583 "logical I<or> of the following integers:"
6584 msgstr ""
6585
6586 #. type: =item
6587 #: ../fish/guestfish-actions.pod:304 ../src/guestfs-actions.pod:444
6588 msgid "C<AUG_SAVE_BACKUP> = 1"
6589 msgstr ""
6590
6591 #. type: textblock
6592 #: ../fish/guestfish-actions.pod:306 ../src/guestfs-actions.pod:446
6593 msgid "Keep the original file with a C<.augsave> extension."
6594 msgstr ""
6595
6596 #. type: =item
6597 #: ../fish/guestfish-actions.pod:308 ../src/guestfs-actions.pod:448
6598 msgid "C<AUG_SAVE_NEWFILE> = 2"
6599 msgstr ""
6600
6601 #. type: textblock
6602 #: ../fish/guestfish-actions.pod:310 ../src/guestfs-actions.pod:450
6603 msgid ""
6604 "Save changes into a file with extension C<.augnew>, and do not overwrite "
6605 "original.  Overrides C<AUG_SAVE_BACKUP>."
6606 msgstr ""
6607
6608 #. type: =item
6609 #: ../fish/guestfish-actions.pod:313 ../src/guestfs-actions.pod:453
6610 msgid "C<AUG_TYPE_CHECK> = 4"
6611 msgstr ""
6612
6613 #. type: textblock
6614 #: ../fish/guestfish-actions.pod:315 ../src/guestfs-actions.pod:455
6615 msgid "Typecheck lenses."
6616 msgstr ""
6617
6618 #. type: textblock
6619 #: ../fish/guestfish-actions.pod:317
6620 msgid ""
6621 "This option is only useful when debugging Augeas lenses.  Use of this option "
6622 "may require additional memory for the libguestfs appliance.  You may need to "
6623 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
6624 msgstr ""
6625
6626 #. type: =item
6627 #: ../fish/guestfish-actions.pod:322 ../src/guestfs-actions.pod:462
6628 msgid "C<AUG_NO_STDINC> = 8"
6629 msgstr ""
6630
6631 #. type: textblock
6632 #: ../fish/guestfish-actions.pod:324 ../src/guestfs-actions.pod:464
6633 msgid "Do not use standard load path for modules."
6634 msgstr ""
6635
6636 #. type: =item
6637 #: ../fish/guestfish-actions.pod:326 ../src/guestfs-actions.pod:466
6638 msgid "C<AUG_SAVE_NOOP> = 16"
6639 msgstr ""
6640
6641 #. type: textblock
6642 #: ../fish/guestfish-actions.pod:328 ../src/guestfs-actions.pod:468
6643 msgid "Make save a no-op, just record what would have been changed."
6644 msgstr ""
6645
6646 #. type: =item
6647 #: ../fish/guestfish-actions.pod:330 ../src/guestfs-actions.pod:470
6648 msgid "C<AUG_NO_LOAD> = 32"
6649 msgstr ""
6650
6651 #. type: textblock
6652 #: ../fish/guestfish-actions.pod:332
6653 msgid "Do not load the tree in L</aug-init>."
6654 msgstr ""
6655
6656 #. type: textblock
6657 #: ../fish/guestfish-actions.pod:336
6658 msgid "To close the handle, you can call L</aug-close>."
6659 msgstr ""
6660
6661 #. type: textblock
6662 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:478
6663 msgid "To find out more about Augeas, see L<http://augeas.net/>."
6664 msgstr ""
6665
6666 #. type: =head2
6667 #: ../fish/guestfish-actions.pod:340
6668 msgid "aug-insert"
6669 msgstr ""
6670
6671 #. type: verbatim
6672 #: ../fish/guestfish-actions.pod:342
6673 #, no-wrap
6674 msgid ""
6675 " aug-insert augpath label true|false\n"
6676 "\n"
6677 msgstr ""
6678
6679 #. type: textblock
6680 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:492
6681 msgid ""
6682 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
6683 "or after C<path> (depending on the boolean flag C<before>)."
6684 msgstr ""
6685
6686 #. type: textblock
6687 #: ../fish/guestfish-actions.pod:348 ../src/guestfs-actions.pod:496
6688 msgid ""
6689 "C<path> must match exactly one existing node in the tree, and C<label> must "
6690 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
6691 msgstr ""
6692
6693 #. type: =head2
6694 #: ../fish/guestfish-actions.pod:352
6695 msgid "aug-load"
6696 msgstr ""
6697
6698 #. type: verbatim
6699 #: ../fish/guestfish-actions.pod:354
6700 #, no-wrap
6701 msgid ""
6702 " aug-load\n"
6703 "\n"
6704 msgstr ""
6705
6706 #. type: textblock
6707 #: ../fish/guestfish-actions.pod:356 ../src/guestfs-actions.pod:509
6708 msgid "Load files into the tree."
6709 msgstr ""
6710
6711 #. type: textblock
6712 #: ../fish/guestfish-actions.pod:358 ../src/guestfs-actions.pod:511
6713 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
6714 msgstr ""
6715
6716 #. type: =head2
6717 #: ../fish/guestfish-actions.pod:361
6718 msgid "aug-ls"
6719 msgstr ""
6720
6721 #. type: verbatim
6722 #: ../fish/guestfish-actions.pod:363
6723 #, no-wrap
6724 msgid ""
6725 " aug-ls augpath\n"
6726 "\n"
6727 msgstr ""
6728
6729 #. type: textblock
6730 #: ../fish/guestfish-actions.pod:365
6731 msgid ""
6732 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
6733 "resulting nodes into alphabetical order."
6734 msgstr ""
6735
6736 #. type: =head2
6737 #: ../fish/guestfish-actions.pod:368
6738 msgid "aug-match"
6739 msgstr ""
6740
6741 #. type: verbatim
6742 #: ../fish/guestfish-actions.pod:370
6743 #, no-wrap
6744 msgid ""
6745 " aug-match augpath\n"
6746 "\n"
6747 msgstr ""
6748
6749 #. type: textblock
6750 #: ../fish/guestfish-actions.pod:372 ../src/guestfs-actions.pod:539
6751 msgid ""
6752 "Returns a list of paths which match the path expression C<path>.  The "
6753 "returned paths are sufficiently qualified so that they match exactly one "
6754 "node in the current tree."
6755 msgstr ""
6756
6757 #. type: =head2
6758 #: ../fish/guestfish-actions.pod:376
6759 msgid "aug-mv"
6760 msgstr ""
6761
6762 #. type: verbatim
6763 #: ../fish/guestfish-actions.pod:378
6764 #, no-wrap
6765 msgid ""
6766 " aug-mv src dest\n"
6767 "\n"
6768 msgstr ""
6769
6770 #. type: textblock
6771 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:556
6772 msgid ""
6773 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
6774 "C<dest> is overwritten if it exists."
6775 msgstr ""
6776
6777 #. type: =head2
6778 #: ../fish/guestfish-actions.pod:383
6779 msgid "aug-rm"
6780 msgstr ""
6781
6782 #. type: verbatim
6783 #: ../fish/guestfish-actions.pod:385
6784 #, no-wrap
6785 msgid ""
6786 " aug-rm augpath\n"
6787 "\n"
6788 msgstr ""
6789
6790 #. type: textblock
6791 #: ../fish/guestfish-actions.pod:387 ../src/guestfs-actions.pod:569
6792 msgid "Remove C<path> and all of its children."
6793 msgstr ""
6794
6795 #. type: textblock
6796 #: ../fish/guestfish-actions.pod:389 ../src/guestfs-actions.pod:571
6797 msgid "On success this returns the number of entries which were removed."
6798 msgstr ""
6799
6800 #. type: =head2
6801 #: ../fish/guestfish-actions.pod:391
6802 msgid "aug-save"
6803 msgstr ""
6804
6805 #. type: verbatim
6806 #: ../fish/guestfish-actions.pod:393
6807 #, no-wrap
6808 msgid ""
6809 " aug-save\n"
6810 "\n"
6811 msgstr ""
6812
6813 #. type: textblock
6814 #: ../fish/guestfish-actions.pod:395 ../src/guestfs-actions.pod:582
6815 msgid "This writes all pending changes to disk."
6816 msgstr ""
6817
6818 #. type: textblock
6819 #: ../fish/guestfish-actions.pod:397
6820 msgid ""
6821 "The flags which were passed to L</aug-init> affect exactly how files are "
6822 "saved."
6823 msgstr ""
6824
6825 #. type: =head2
6826 #: ../fish/guestfish-actions.pod:400
6827 msgid "aug-set"
6828 msgstr ""
6829
6830 #. type: verbatim
6831 #: ../fish/guestfish-actions.pod:402
6832 #, no-wrap
6833 msgid ""
6834 " aug-set augpath val\n"
6835 "\n"
6836 msgstr ""
6837
6838 #. type: textblock
6839 #: ../fish/guestfish-actions.pod:404 ../src/guestfs-actions.pod:598
6840 msgid "Set the value associated with C<path> to C<val>."
6841 msgstr ""
6842
6843 #. type: textblock
6844 #: ../fish/guestfish-actions.pod:406
6845 msgid ""
6846 "In the Augeas API, it is possible to clear a node by setting the value to "
6847 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
6848 "this call.  Instead you must use the L</aug-clear> call."
6849 msgstr ""
6850
6851 #. type: =head2
6852 #: ../fish/guestfish-actions.pod:411
6853 msgid "available"
6854 msgstr ""
6855
6856 #. type: verbatim
6857 #: ../fish/guestfish-actions.pod:413
6858 #, no-wrap
6859 msgid ""
6860 " available 'groups ...'\n"
6861 "\n"
6862 msgstr ""
6863
6864 #. type: textblock
6865 #: ../fish/guestfish-actions.pod:415 ../src/guestfs-actions.pod:615
6866 msgid ""
6867 "This command is used to check the availability of some groups of "
6868 "functionality in the appliance, which not all builds of the libguestfs "
6869 "appliance will be able to provide."
6870 msgstr ""
6871
6872 #. type: textblock
6873 #: ../fish/guestfish-actions.pod:419
6874 msgid ""
6875 "The libguestfs groups, and the functions that those groups correspond to, "
6876 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
6877 "runtime by calling L</available-all-groups>."
6878 msgstr ""
6879
6880 #. type: textblock
6881 #: ../fish/guestfish-actions.pod:424 ../src/guestfs-actions.pod:624
6882 msgid ""
6883 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", "
6884 "\"augeas\"]> would check for the availability of the Linux inotify functions "
6885 "and Augeas (configuration file editing) functions."
6886 msgstr ""
6887
6888 #. type: textblock
6889 #: ../fish/guestfish-actions.pod:429 ../src/guestfs-actions.pod:629
6890 msgid "The command returns no error if I<all> requested groups are available."
6891 msgstr ""
6892
6893 #. type: textblock
6894 #: ../fish/guestfish-actions.pod:431 ../src/guestfs-actions.pod:631
6895 msgid ""
6896 "It fails with an error if one or more of the requested groups is unavailable "
6897 "in the appliance."
6898 msgstr ""
6899
6900 #. type: textblock
6901 #: ../fish/guestfish-actions.pod:434 ../src/guestfs-actions.pod:634
6902 msgid ""
6903 "If an unknown group name is included in the list of groups then an error is "
6904 "always returned."
6905 msgstr ""
6906
6907 #. type: textblock
6908 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:637
6909 msgid "I<Notes:>"
6910 msgstr ""
6911
6912 #. type: textblock
6913 #: ../fish/guestfish-actions.pod:443
6914 msgid "You must call L</launch> before calling this function."
6915 msgstr ""
6916
6917 #. type: textblock
6918 #: ../fish/guestfish-actions.pod:445 ../src/guestfs-actions.pod:645
6919 msgid ""
6920 "The reason is because we don't know what groups are supported by the "
6921 "appliance/daemon until it is running and can be queried."
6922 msgstr ""
6923
6924 #. type: textblock
6925 #: ../fish/guestfish-actions.pod:451 ../src/guestfs-actions.pod:651
6926 msgid ""
6927 "If a group of functions is available, this does not necessarily mean that "
6928 "they will work.  You still have to check for errors when calling individual "
6929 "API functions even if they are available."
6930 msgstr ""
6931
6932 #. type: textblock
6933 #: ../fish/guestfish-actions.pod:458 ../src/guestfs-actions.pod:658
6934 msgid ""
6935 "It is usually the job of distro packagers to build complete functionality "
6936 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
6937 "with all requirements satisfied, will support everything."
6938 msgstr ""
6939
6940 #. type: textblock
6941 #: ../fish/guestfish-actions.pod:465
6942 msgid ""
6943 "This call was added in version C<1.0.80>.  In previous versions of "
6944 "libguestfs all you could do would be to speculatively execute a command to "
6945 "find out if the daemon implemented it.  See also L</version>."
6946 msgstr ""
6947
6948 #. type: =head2
6949 #: ../fish/guestfish-actions.pod:472
6950 msgid "available-all-groups"
6951 msgstr ""
6952
6953 #. type: verbatim
6954 #: ../fish/guestfish-actions.pod:474
6955 #, no-wrap
6956 msgid ""
6957 " available-all-groups\n"
6958 "\n"
6959 msgstr ""
6960
6961 #. type: textblock
6962 #: ../fish/guestfish-actions.pod:476
6963 msgid ""
6964 "This command returns a list of all optional groups that this daemon knows "
6965 "about.  Note this returns both supported and unsupported groups.  To find "
6966 "out which ones the daemon can actually support you have to call "
6967 "L</available> on each member of the returned list."
6968 msgstr ""
6969
6970 #. type: textblock
6971 #: ../fish/guestfish-actions.pod:482
6972 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
6973 msgstr ""
6974
6975 #. type: =head2
6976 #: ../fish/guestfish-actions.pod:484
6977 msgid "base64-in"
6978 msgstr ""
6979
6980 #. type: verbatim
6981 #: ../fish/guestfish-actions.pod:486
6982 #, no-wrap
6983 msgid ""
6984 " base64-in (base64file|-) filename\n"
6985 "\n"
6986 msgstr ""
6987
6988 #. type: textblock
6989 #: ../fish/guestfish-actions.pod:488 ../src/guestfs-actions.pod:702
6990 msgid "This command uploads base64-encoded data from C<base64file> to C<filename>."
6991 msgstr ""
6992
6993 #. type: textblock
6994 #: ../fish/guestfish-actions.pod:491 ../fish/guestfish-actions.pod:500 ../fish/guestfish-actions.pod:780 ../fish/guestfish-actions.pod:864 ../fish/guestfish-actions.pod:885 ../fish/guestfish-actions.pod:1056 ../fish/guestfish-actions.pod:1075 ../fish/guestfish-actions.pod:1449 ../fish/guestfish-actions.pod:4997 ../fish/guestfish-actions.pod:5009 ../fish/guestfish-actions.pod:5020 ../fish/guestfish-actions.pod:5031 ../fish/guestfish-actions.pod:5162 ../fish/guestfish-actions.pod:5171 ../fish/guestfish-actions.pod:5225 ../fish/guestfish-actions.pod:5248
6995 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
6996 msgstr ""
6997
6998 #. type: =head2
6999 #: ../fish/guestfish-actions.pod:493
7000 msgid "base64-out"
7001 msgstr ""
7002
7003 #. type: verbatim
7004 #: ../fish/guestfish-actions.pod:495
7005 #, no-wrap
7006 msgid ""
7007 " base64-out filename (base64file|-)\n"
7008 "\n"
7009 msgstr ""
7010
7011 #. type: textblock
7012 #: ../fish/guestfish-actions.pod:497 ../src/guestfs-actions.pod:716
7013 msgid ""
7014 "This command downloads the contents of C<filename>, writing it out to local "
7015 "file C<base64file> encoded as base64."
7016 msgstr ""
7017
7018 #. type: =head2
7019 #: ../fish/guestfish-actions.pod:502
7020 msgid "blkid"
7021 msgstr ""
7022
7023 #. type: verbatim
7024 #: ../fish/guestfish-actions.pod:504
7025 #, no-wrap
7026 msgid ""
7027 " blkid device\n"
7028 "\n"
7029 msgstr ""
7030
7031 #. type: textblock
7032 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:729
7033 msgid ""
7034 "This command returns block device attributes for C<device>. The following "
7035 "fields are usually present in the returned hash. Other fields may also be "
7036 "present."
7037 msgstr ""
7038
7039 #. type: =item
7040 #: ../fish/guestfish-actions.pod:511 ../src/guestfs-actions.pod:734
7041 msgid "C<UUID>"
7042 msgstr ""
7043
7044 #. type: textblock
7045 #: ../fish/guestfish-actions.pod:513 ../src/guestfs-actions.pod:736
7046 msgid "The uuid of this device."
7047 msgstr ""
7048
7049 #. type: =item
7050 #: ../fish/guestfish-actions.pod:515 ../src/guestfs-actions.pod:738
7051 msgid "C<LABEL>"
7052 msgstr ""
7053
7054 #. type: textblock
7055 #: ../fish/guestfish-actions.pod:517 ../src/guestfs-actions.pod:740
7056 msgid "The label of this device."
7057 msgstr ""
7058
7059 #. type: =item
7060 #: ../fish/guestfish-actions.pod:519 ../src/guestfs-actions.pod:742
7061 msgid "C<VERSION>"
7062 msgstr ""
7063
7064 #. type: textblock
7065 #: ../fish/guestfish-actions.pod:521 ../src/guestfs-actions.pod:744
7066 msgid "The version of blkid command."
7067 msgstr ""
7068
7069 #. type: =item
7070 #: ../fish/guestfish-actions.pod:523 ../src/guestfs-actions.pod:746
7071 msgid "C<TYPE>"
7072 msgstr ""
7073
7074 #. type: textblock
7075 #: ../fish/guestfish-actions.pod:525 ../src/guestfs-actions.pod:748
7076 msgid "The filesystem type or RAID of this device."
7077 msgstr ""
7078
7079 #. type: =item
7080 #: ../fish/guestfish-actions.pod:527 ../src/guestfs-actions.pod:750
7081 msgid "C<USAGE>"
7082 msgstr ""
7083
7084 #. type: textblock
7085 #: ../fish/guestfish-actions.pod:529 ../src/guestfs-actions.pod:752
7086 msgid "The usage of this device, for example C<filesystem> or C<raid>."
7087 msgstr ""
7088
7089 #. type: =head2
7090 #: ../fish/guestfish-actions.pod:533
7091 msgid "blockdev-flushbufs"
7092 msgstr ""
7093
7094 #. type: verbatim
7095 #: ../fish/guestfish-actions.pod:535
7096 #, no-wrap
7097 msgid ""
7098 " blockdev-flushbufs device\n"
7099 "\n"
7100 msgstr ""
7101
7102 #. type: textblock
7103 #: ../fish/guestfish-actions.pod:537 ../src/guestfs-actions.pod:768
7104 msgid "This tells the kernel to flush internal buffers associated with C<device>."
7105 msgstr ""
7106
7107 #. type: textblock
7108 #: ../fish/guestfish-actions.pod:540 ../fish/guestfish-actions.pod:551 ../fish/guestfish-actions.pod:560 ../fish/guestfish-actions.pod:570 ../fish/guestfish-actions.pod:582 ../fish/guestfish-actions.pod:595 ../fish/guestfish-actions.pod:603 ../fish/guestfish-actions.pod:614 ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:630 ../src/guestfs-actions.pod:771 ../src/guestfs-actions.pod:788 ../src/guestfs-actions.pod:803 ../src/guestfs-actions.pod:819 ../src/guestfs-actions.pod:837 ../src/guestfs-actions.pod:856 ../src/guestfs-actions.pod:870 ../src/guestfs-actions.pod:888 ../src/guestfs-actions.pod:902 ../src/guestfs-actions.pod:916
7109 msgid "This uses the L<blockdev(8)> command."
7110 msgstr ""
7111
7112 #. type: =head2
7113 #: ../fish/guestfish-actions.pod:542
7114 msgid "blockdev-getbsz"
7115 msgstr ""
7116
7117 #. type: verbatim
7118 #: ../fish/guestfish-actions.pod:544
7119 #, no-wrap
7120 msgid ""
7121 " blockdev-getbsz device\n"
7122 "\n"
7123 msgstr ""
7124
7125 #. type: textblock
7126 #: ../fish/guestfish-actions.pod:546 ../src/guestfs-actions.pod:783
7127 msgid "This returns the block size of a device."
7128 msgstr ""
7129
7130 #. type: textblock
7131 #: ../fish/guestfish-actions.pod:548 ../fish/guestfish-actions.pod:611 ../src/guestfs-actions.pod:785 ../src/guestfs-actions.pod:885
7132 msgid ""
7133 "(Note this is different from both I<size in blocks> and I<filesystem block "
7134 "size>)."
7135 msgstr ""
7136
7137 #. type: =head2
7138 #: ../fish/guestfish-actions.pod:553
7139 msgid "blockdev-getro"
7140 msgstr ""
7141
7142 #. type: verbatim
7143 #: ../fish/guestfish-actions.pod:555
7144 #, no-wrap
7145 msgid ""
7146 " blockdev-getro device\n"
7147 "\n"
7148 msgstr ""
7149
7150 #. type: textblock
7151 #: ../fish/guestfish-actions.pod:557 ../src/guestfs-actions.pod:800
7152 msgid ""
7153 "Returns a boolean indicating if the block device is read-only (true if "
7154 "read-only, false if not)."
7155 msgstr ""
7156
7157 #. type: =head2
7158 #: ../fish/guestfish-actions.pod:562
7159 msgid "blockdev-getsize64"
7160 msgstr ""
7161
7162 #. type: verbatim
7163 #: ../fish/guestfish-actions.pod:564
7164 #, no-wrap
7165 msgid ""
7166 " blockdev-getsize64 device\n"
7167 "\n"
7168 msgstr ""
7169
7170 #. type: textblock
7171 #: ../fish/guestfish-actions.pod:566 ../src/guestfs-actions.pod:815
7172 msgid "This returns the size of the device in bytes."
7173 msgstr ""
7174
7175 #. type: textblock
7176 #: ../fish/guestfish-actions.pod:568
7177 msgid "See also L</blockdev-getsz>."
7178 msgstr ""
7179
7180 #. type: =head2
7181 #: ../fish/guestfish-actions.pod:572
7182 msgid "blockdev-getss"
7183 msgstr ""
7184
7185 #. type: verbatim
7186 #: ../fish/guestfish-actions.pod:574
7187 #, no-wrap
7188 msgid ""
7189 " blockdev-getss device\n"
7190 "\n"
7191 msgstr ""
7192
7193 #. type: textblock
7194 #: ../fish/guestfish-actions.pod:576 ../src/guestfs-actions.pod:831
7195 msgid ""
7196 "This returns the size of sectors on a block device.  Usually 512, but can be "
7197 "larger for modern devices."
7198 msgstr ""
7199
7200 #. type: textblock
7201 #: ../fish/guestfish-actions.pod:579
7202 msgid "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
7203 msgstr ""
7204
7205 #. type: =head2
7206 #: ../fish/guestfish-actions.pod:584
7207 msgid "blockdev-getsz"
7208 msgstr ""
7209
7210 #. type: verbatim
7211 #: ../fish/guestfish-actions.pod:586
7212 #, no-wrap
7213 msgid ""
7214 " blockdev-getsz device\n"
7215 "\n"
7216 msgstr ""
7217
7218 #. type: textblock
7219 #: ../fish/guestfish-actions.pod:588 ../src/guestfs-actions.pod:849
7220 msgid ""
7221 "This returns the size of the device in units of 512-byte sectors (even if "
7222 "the sectorsize isn't 512 bytes ... weird)."
7223 msgstr ""
7224
7225 #. type: textblock
7226 #: ../fish/guestfish-actions.pod:591
7227 msgid ""
7228 "See also L</blockdev-getss> for the real sector size of the device, and "
7229 "L</blockdev-getsize64> for the more useful I<size in bytes>."
7230 msgstr ""
7231
7232 #. type: =head2
7233 #: ../fish/guestfish-actions.pod:597
7234 msgid "blockdev-rereadpt"
7235 msgstr ""
7236
7237 #. type: verbatim
7238 #: ../fish/guestfish-actions.pod:599
7239 #, no-wrap
7240 msgid ""
7241 " blockdev-rereadpt device\n"
7242 "\n"
7243 msgstr ""
7244
7245 #. type: textblock
7246 #: ../fish/guestfish-actions.pod:601 ../src/guestfs-actions.pod:868
7247 msgid "Reread the partition table on C<device>."
7248 msgstr ""
7249
7250 #. type: =head2
7251 #: ../fish/guestfish-actions.pod:605
7252 msgid "blockdev-setbsz"
7253 msgstr ""
7254
7255 #. type: verbatim
7256 #: ../fish/guestfish-actions.pod:607
7257 #, no-wrap
7258 msgid ""
7259 " blockdev-setbsz device blocksize\n"
7260 "\n"
7261 msgstr ""
7262
7263 #. type: textblock
7264 #: ../fish/guestfish-actions.pod:609 ../src/guestfs-actions.pod:883
7265 msgid "This sets the block size of a device."
7266 msgstr ""
7267
7268 #. type: =head2
7269 #: ../fish/guestfish-actions.pod:616
7270 msgid "blockdev-setro"
7271 msgstr ""
7272
7273 #. type: verbatim
7274 #: ../fish/guestfish-actions.pod:618
7275 #, no-wrap
7276 msgid ""
7277 " blockdev-setro device\n"
7278 "\n"
7279 msgstr ""
7280
7281 #. type: textblock
7282 #: ../fish/guestfish-actions.pod:620 ../src/guestfs-actions.pod:900
7283 msgid "Sets the block device named C<device> to read-only."
7284 msgstr ""
7285
7286 #. type: =head2
7287 #: ../fish/guestfish-actions.pod:624
7288 msgid "blockdev-setrw"
7289 msgstr ""
7290
7291 #. type: verbatim
7292 #: ../fish/guestfish-actions.pod:626
7293 #, no-wrap
7294 msgid ""
7295 " blockdev-setrw device\n"
7296 "\n"
7297 msgstr ""
7298
7299 #. type: textblock
7300 #: ../fish/guestfish-actions.pod:628 ../src/guestfs-actions.pod:914
7301 msgid "Sets the block device named C<device> to read-write."
7302 msgstr ""
7303
7304 #. type: =head2
7305 #: ../fish/guestfish-actions.pod:632
7306 msgid "btrfs-filesystem-resize"
7307 msgstr ""
7308
7309 #. type: verbatim
7310 #: ../fish/guestfish-actions.pod:634
7311 #, no-wrap
7312 msgid ""
7313 " btrfs-filesystem-resize mountpoint [size:N]\n"
7314 "\n"
7315 msgstr ""
7316
7317 #. type: textblock
7318 #: ../fish/guestfish-actions.pod:636 ../src/guestfs-actions.pod:936
7319 msgid "This command resizes a btrfs filesystem."
7320 msgstr ""
7321
7322 #. type: textblock
7323 #: ../fish/guestfish-actions.pod:638 ../src/guestfs-actions.pod:938
7324 msgid ""
7325 "Note that unlike other resize calls, the filesystem has to be mounted and "
7326 "the parameter is the mountpoint not the device (this is a requirement of "
7327 "btrfs itself)."
7328 msgstr ""
7329
7330 #. type: textblock
7331 #: ../fish/guestfish-actions.pod:642 ../fish/guestfish-actions.pod:3199 ../fish/guestfish-actions.pod:3745 ../fish/guestfish-actions.pod:5071 ../src/guestfs-actions.pod:942 ../src/guestfs-actions.pod:4935 ../src/guestfs-actions.pod:5842 ../src/guestfs-actions.pod:7818
7332 msgid "The optional parameters are:"
7333 msgstr ""
7334
7335 #. type: =item
7336 #: ../fish/guestfish-actions.pod:646 ../fish/guestfish-actions.pod:3749 ../src/guestfs-actions.pod:946 ../src/guestfs-actions.pod:5846
7337 msgid "C<size>"
7338 msgstr ""
7339
7340 #. type: textblock
7341 #: ../fish/guestfish-actions.pod:648 ../src/guestfs-actions.pod:948
7342 msgid ""
7343 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
7344 "resized to the maximum size."
7345 msgstr ""
7346
7347 #. type: textblock
7348 #: ../fish/guestfish-actions.pod:653 ../src/guestfs-actions.pod:953
7349 msgid "See also L<btrfs(8)>."
7350 msgstr ""
7351
7352 #. type: =head2
7353 #: ../fish/guestfish-actions.pod:657
7354 msgid "case-sensitive-path"
7355 msgstr ""
7356
7357 #. type: verbatim
7358 #: ../fish/guestfish-actions.pod:659
7359 #, no-wrap
7360 msgid ""
7361 " case-sensitive-path path\n"
7362 "\n"
7363 msgstr ""
7364
7365 #. type: textblock
7366 #: ../fish/guestfish-actions.pod:661 ../src/guestfs-actions.pod:987
7367 msgid ""
7368 "This can be used to resolve case insensitive paths on a filesystem which is "
7369 "case sensitive.  The use case is to resolve paths which you have read from "
7370 "Windows configuration files or the Windows Registry, to the true path."
7371 msgstr ""
7372
7373 #. type: textblock
7374 #: ../fish/guestfish-actions.pod:666 ../src/guestfs-actions.pod:992
7375 msgid ""
7376 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
7377 "(and probably others), which is that although the underlying filesystem is "
7378 "case-insensitive, the driver exports the filesystem to Linux as "
7379 "case-sensitive."
7380 msgstr ""
7381
7382 #. type: textblock
7383 #: ../fish/guestfish-actions.pod:671 ../src/guestfs-actions.pod:997
7384 msgid ""
7385 "One consequence of this is that special directories such as C<c:\\windows> "
7386 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
7387 "precise details of how they were created.  In Windows itself this would not "
7388 "be a problem."
7389 msgstr ""
7390
7391 #. type: textblock
7392 #: ../fish/guestfish-actions.pod:677 ../src/guestfs-actions.pod:1003
7393 msgid ""
7394 "Bug or feature? You decide: "
7395 "L<http://www.tuxera.com/community/ntfs-3g-faq/#posixfilenames1>"
7396 msgstr ""
7397
7398 #. type: textblock
7399 #: ../fish/guestfish-actions.pod:680 ../src/guestfs-actions.pod:1006
7400 msgid ""
7401 "This function resolves the true case of each element in the path and returns "
7402 "the case-sensitive path."
7403 msgstr ""
7404
7405 #. type: textblock
7406 #: ../fish/guestfish-actions.pod:683
7407 msgid ""
7408 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return "
7409 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
7410 "how the directories were originally created under Windows)."
7411 msgstr ""
7412
7413 #. type: textblock
7414 #: ../fish/guestfish-actions.pod:688 ../src/guestfs-actions.pod:1014
7415 msgid "I<Note>: This function does not handle drive names, backslashes etc."
7416 msgstr ""
7417
7418 #. type: textblock
7419 #: ../fish/guestfish-actions.pod:691
7420 msgid "See also L</realpath>."
7421 msgstr ""
7422
7423 #. type: =head2
7424 #: ../fish/guestfish-actions.pod:693
7425 msgid "cat"
7426 msgstr ""
7427
7428 #. type: verbatim
7429 #: ../fish/guestfish-actions.pod:695
7430 #, no-wrap
7431 msgid ""
7432 " cat path\n"
7433 "\n"
7434 msgstr ""
7435
7436 #. type: textblock
7437 #: ../fish/guestfish-actions.pod:697 ../fish/guestfish-actions.pod:4176 ../src/guestfs-actions.pod:1030 ../src/guestfs-actions.pod:6502
7438 msgid "Return the contents of the file named C<path>."
7439 msgstr ""
7440
7441 #. type: textblock
7442 #: ../fish/guestfish-actions.pod:699
7443 msgid ""
7444 "Note that this function cannot correctly handle binary files (specifically, "
7445 "files containing C<\\0> character which is treated as end of string).  For "
7446 "those you need to use the L</read-file> or L</download> functions which have "
7447 "a more complex interface."
7448 msgstr ""
7449
7450 #. type: textblock
7451 #: ../fish/guestfish-actions.pod:704 ../fish/guestfish-actions.pod:839 ../fish/guestfish-actions.pod:851 ../fish/guestfish-actions.pod:1134 ../fish/guestfish-actions.pod:1144 ../fish/guestfish-actions.pod:1211 ../fish/guestfish-actions.pod:1221 ../fish/guestfish-actions.pod:1413 ../fish/guestfish-actions.pod:1726 ../fish/guestfish-actions.pod:1736 ../fish/guestfish-actions.pod:1786 ../fish/guestfish-actions.pod:1801 ../fish/guestfish-actions.pod:1811 ../fish/guestfish-actions.pod:1830 ../fish/guestfish-actions.pod:4046 ../fish/guestfish-actions.pod:4061 ../fish/guestfish-actions.pod:4137 ../fish/guestfish-actions.pod:4154 ../fish/guestfish-actions.pod:4169 ../fish/guestfish-actions.pod:4838 ../fish/guestfish-actions.pod:4884 ../fish/guestfish-actions.pod:4969 ../fish/guestfish-actions.pod:4984 ../fish/guestfish-actions.pod:5469 ../fish/guestfish-actions.pod:5481 ../fish/guestfish-actions.pod:5499 ../fish/guestfish-actions.pod:5516 ../fish/guestfish-actions.pod:5526 ../fish/guestfish-actions.pod:5580 ../fish/guestfish-actions.pod:5590 ../fish/guestfish-actions.pod:5619 ../fish/guestfish-actions.pod:5629 ../src/guestfs-actions.pod:1040 ../src/guestfs-actions.pod:1219 ../src/guestfs-actions.pod:1239 ../src/guestfs-actions.pod:1894 ../src/guestfs-actions.pod:1913 ../src/guestfs-actions.pod:2016 ../src/guestfs-actions.pod:2035 ../src/guestfs-actions.pod:2281 ../src/guestfs-actions.pod:2763 ../src/guestfs-actions.pod:2782 ../src/guestfs-actions.pod:2847 ../src/guestfs-actions.pod:2871 ../src/guestfs-actions.pod:2888 ../src/guestfs-actions.pod:2917 ../src/guestfs-actions.pod:6284 ../src/guestfs-actions.pod:6310 ../src/guestfs-actions.pod:6441 ../src/guestfs-actions.pod:6467 ../src/guestfs-actions.pod:6491 ../src/guestfs-actions.pod:7446 ../src/guestfs-actions.pod:7501 ../src/guestfs-actions.pod:7647 ../src/guestfs-actions.pod:7671 ../src/guestfs-actions.pod:8458 ../src/guestfs-actions.pod:8478 ../src/guestfs-actions.pod:8511 ../src/guestfs-actions.pod:8530 ../src/guestfs-actions.pod:8549 ../src/guestfs-actions.pod:8640 ../src/guestfs-actions.pod:8659 ../src/guestfs-actions.pod:8705 ../src/guestfs-actions.pod:8724
7452 msgid ""
7453 "Because of the message protocol, there is a transfer limit of somewhere "
7454 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
7455 msgstr ""
7456
7457 #. type: =head2
7458 #: ../fish/guestfish-actions.pod:707
7459 msgid "checksum"
7460 msgstr ""
7461
7462 #. type: verbatim
7463 #: ../fish/guestfish-actions.pod:709
7464 #, no-wrap
7465 msgid ""
7466 " checksum csumtype path\n"
7467 "\n"
7468 msgstr ""
7469
7470 #. type: textblock
7471 #: ../fish/guestfish-actions.pod:711 ../src/guestfs-actions.pod:1052
7472 msgid "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
7473 msgstr ""
7474
7475 #. type: textblock
7476 #: ../fish/guestfish-actions.pod:714 ../src/guestfs-actions.pod:1055
7477 msgid ""
7478 "The type of checksum to compute is given by the C<csumtype> parameter which "
7479 "must have one of the following values:"
7480 msgstr ""
7481
7482 #. type: =item
7483 #: ../fish/guestfish-actions.pod:719 ../src/guestfs-actions.pod:1060
7484 msgid "C<crc>"
7485 msgstr ""
7486
7487 #. type: textblock
7488 #: ../fish/guestfish-actions.pod:721 ../src/guestfs-actions.pod:1062
7489 msgid ""
7490 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
7491 "C<cksum> command."
7492 msgstr ""
7493
7494 #. type: =item
7495 #: ../fish/guestfish-actions.pod:724 ../src/guestfs-actions.pod:1065
7496 msgid "C<md5>"
7497 msgstr ""
7498
7499 #. type: textblock
7500 #: ../fish/guestfish-actions.pod:726 ../src/guestfs-actions.pod:1067
7501 msgid "Compute the MD5 hash (using the C<md5sum> program)."
7502 msgstr ""
7503
7504 #. type: =item
7505 #: ../fish/guestfish-actions.pod:728 ../src/guestfs-actions.pod:1069
7506 msgid "C<sha1>"
7507 msgstr ""
7508
7509 #. type: textblock
7510 #: ../fish/guestfish-actions.pod:730 ../src/guestfs-actions.pod:1071
7511 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
7512 msgstr ""
7513
7514 #. type: =item
7515 #: ../fish/guestfish-actions.pod:732 ../src/guestfs-actions.pod:1073
7516 msgid "C<sha224>"
7517 msgstr ""
7518
7519 #. type: textblock
7520 #: ../fish/guestfish-actions.pod:734 ../src/guestfs-actions.pod:1075
7521 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
7522 msgstr ""
7523
7524 #. type: =item
7525 #: ../fish/guestfish-actions.pod:736 ../src/guestfs-actions.pod:1077
7526 msgid "C<sha256>"
7527 msgstr ""
7528
7529 #. type: textblock
7530 #: ../fish/guestfish-actions.pod:738 ../src/guestfs-actions.pod:1079
7531 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
7532 msgstr ""
7533
7534 #. type: =item
7535 #: ../fish/guestfish-actions.pod:740 ../src/guestfs-actions.pod:1081
7536 msgid "C<sha384>"
7537 msgstr ""
7538
7539 #. type: textblock
7540 #: ../fish/guestfish-actions.pod:742 ../src/guestfs-actions.pod:1083
7541 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
7542 msgstr ""
7543
7544 #. type: =item
7545 #: ../fish/guestfish-actions.pod:744 ../src/guestfs-actions.pod:1085
7546 msgid "C<sha512>"
7547 msgstr ""
7548
7549 #. type: textblock
7550 #: ../fish/guestfish-actions.pod:746 ../src/guestfs-actions.pod:1087
7551 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
7552 msgstr ""
7553
7554 #. type: textblock
7555 #: ../fish/guestfish-actions.pod:750 ../src/guestfs-actions.pod:1091
7556 msgid "The checksum is returned as a printable string."
7557 msgstr ""
7558
7559 #. type: textblock
7560 #: ../fish/guestfish-actions.pod:752
7561 msgid "To get the checksum for a device, use L</checksum-device>."
7562 msgstr ""
7563
7564 #. type: textblock
7565 #: ../fish/guestfish-actions.pod:754
7566 msgid "To get the checksums for many files, use L</checksums-out>."
7567 msgstr ""
7568
7569 #. type: =head2
7570 #: ../fish/guestfish-actions.pod:756
7571 msgid "checksum-device"
7572 msgstr ""
7573
7574 #. type: verbatim
7575 #: ../fish/guestfish-actions.pod:758
7576 #, no-wrap
7577 msgid ""
7578 " checksum-device csumtype device\n"
7579 "\n"
7580 msgstr ""
7581
7582 #. type: textblock
7583 #: ../fish/guestfish-actions.pod:760
7584 msgid ""
7585 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
7586 "device named C<device>.  For the types of checksums supported see the "
7587 "L</checksum> command."
7588 msgstr ""
7589
7590 #. type: =head2
7591 #: ../fish/guestfish-actions.pod:764
7592 msgid "checksums-out"
7593 msgstr ""
7594
7595 #. type: verbatim
7596 #: ../fish/guestfish-actions.pod:766
7597 #, no-wrap
7598 msgid ""
7599 " checksums-out csumtype directory (sumsfile|-)\n"
7600 "\n"
7601 msgstr ""
7602
7603 #. type: textblock
7604 #: ../fish/guestfish-actions.pod:768 ../src/guestfs-actions.pod:1126
7605 msgid ""
7606 "This command computes the checksums of all regular files in C<directory> and "
7607 "then emits a list of those checksums to the local output file C<sumsfile>."
7608 msgstr ""
7609
7610 #. type: textblock
7611 #: ../fish/guestfish-actions.pod:772 ../src/guestfs-actions.pod:1130
7612 msgid ""
7613 "This can be used for verifying the integrity of a virtual machine.  However "
7614 "to be properly secure you should pay attention to the output of the checksum "
7615 "command (it uses the ones from GNU coreutils).  In particular when the "
7616 "filename is not printable, coreutils uses a special backslash syntax.  For "
7617 "more information, see the GNU coreutils info file."
7618 msgstr ""
7619
7620 #. type: =head2
7621 #: ../fish/guestfish-actions.pod:782
7622 msgid "chmod"
7623 msgstr ""
7624
7625 #. type: verbatim
7626 #: ../fish/guestfish-actions.pod:784
7627 #, no-wrap
7628 msgid ""
7629 " chmod mode path\n"
7630 "\n"
7631 msgstr ""
7632
7633 #. type: textblock
7634 #: ../fish/guestfish-actions.pod:786 ../src/guestfs-actions.pod:1149
7635 msgid ""
7636 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
7637 "supported."
7638 msgstr ""
7639
7640 #. type: textblock
7641 #: ../fish/guestfish-actions.pod:789 ../src/guestfs-actions.pod:1152
7642 msgid ""
7643 "I<Note>: When using this command from guestfish, C<mode> by default would be "
7644 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
7645 "C<700>."
7646 msgstr ""
7647
7648 #. type: textblock
7649 #: ../fish/guestfish-actions.pod:793 ../fish/guestfish-actions.pod:3398 ../fish/guestfish-actions.pod:3537 ../fish/guestfish-actions.pod:3547 ../fish/guestfish-actions.pod:3557 ../src/guestfs-actions.pod:1156 ../src/guestfs-actions.pod:5249 ../src/guestfs-actions.pod:5458 ../src/guestfs-actions.pod:5477 ../src/guestfs-actions.pod:5496
7650 msgid "The mode actually set is affected by the umask."
7651 msgstr ""
7652
7653 #. type: =head2
7654 #: ../fish/guestfish-actions.pod:795
7655 msgid "chown"
7656 msgstr ""
7657
7658 #. type: verbatim
7659 #: ../fish/guestfish-actions.pod:797
7660 #, no-wrap
7661 msgid ""
7662 " chown owner group path\n"
7663 "\n"
7664 msgstr ""
7665
7666 #. type: textblock
7667 #: ../fish/guestfish-actions.pod:799 ../src/guestfs-actions.pod:1170
7668 msgid "Change the file owner to C<owner> and group to C<group>."
7669 msgstr ""
7670
7671 #. type: textblock
7672 #: ../fish/guestfish-actions.pod:801 ../fish/guestfish-actions.pod:2738 ../src/guestfs-actions.pod:1172 ../src/guestfs-actions.pod:4167
7673 msgid ""
7674 "Only numeric uid and gid are supported.  If you want to use names, you will "
7675 "need to locate and parse the password file yourself (Augeas support makes "
7676 "this relatively easy)."
7677 msgstr ""
7678
7679 #. type: =head2
7680 #: ../fish/guestfish-actions.pod:805
7681 msgid "command"
7682 msgstr ""
7683
7684 #. type: verbatim
7685 #: ../fish/guestfish-actions.pod:807
7686 #, no-wrap
7687 msgid ""
7688 " command 'arguments ...'\n"
7689 "\n"
7690 msgstr ""
7691
7692 #. type: textblock
7693 #: ../fish/guestfish-actions.pod:809 ../src/guestfs-actions.pod:1186
7694 msgid ""
7695 "This call runs a command from the guest filesystem.  The filesystem must be "
7696 "mounted, and must contain a compatible operating system (ie. something "
7697 "Linux, with the same or compatible processor architecture)."
7698 msgstr ""
7699
7700 #. type: textblock
7701 #: ../fish/guestfish-actions.pod:814
7702 msgid ""
7703 "The single parameter is an argv-style list of arguments.  The first element "
7704 "is the name of the program to run.  Subsequent elements are parameters.  The "
7705 "list must be non-empty (ie. must contain a program name).  Note that the "
7706 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
7707 msgstr ""
7708
7709 #. type: textblock
7710 #: ../fish/guestfish-actions.pod:821 ../src/guestfs-actions.pod:1198
7711 msgid "The return value is anything printed to I<stdout> by the command."
7712 msgstr ""
7713
7714 #. type: textblock
7715 #: ../fish/guestfish-actions.pod:824 ../src/guestfs-actions.pod:1201
7716 msgid ""
7717 "If the command returns a non-zero exit status, then this function returns an "
7718 "error message.  The error message string is the content of I<stderr> from "
7719 "the command."
7720 msgstr ""
7721
7722 #. type: textblock
7723 #: ../fish/guestfish-actions.pod:828 ../src/guestfs-actions.pod:1205
7724 msgid ""
7725 "The C<$PATH> environment variable will contain at least C</usr/bin> and "
7726 "C</bin>.  If you require a program from another location, you should provide "
7727 "the full path in the first parameter."
7728 msgstr ""
7729
7730 #. type: textblock
7731 #: ../fish/guestfish-actions.pod:833 ../src/guestfs-actions.pod:1210
7732 msgid ""
7733 "Shared libraries and data files required by the program must be available on "
7734 "filesystems which are mounted in the correct places.  It is the caller's "
7735 "responsibility to ensure all filesystems that are needed are mounted at the "
7736 "right locations."
7737 msgstr ""
7738
7739 #. type: =head2
7740 #: ../fish/guestfish-actions.pod:842
7741 msgid "command-lines"
7742 msgstr ""
7743
7744 #. type: verbatim
7745 #: ../fish/guestfish-actions.pod:844
7746 #, no-wrap
7747 msgid ""
7748 " command-lines 'arguments ...'\n"
7749 "\n"
7750 msgstr ""
7751
7752 #. type: textblock
7753 #: ../fish/guestfish-actions.pod:846
7754 msgid "This is the same as L</command>, but splits the result into a list of lines."
7755 msgstr ""
7756
7757 #. type: textblock
7758 #: ../fish/guestfish-actions.pod:849
7759 msgid "See also: L</sh-lines>"
7760 msgstr ""
7761
7762 #. type: =head2
7763 #: ../fish/guestfish-actions.pod:854
7764 msgid "compress-device-out"
7765 msgstr ""
7766
7767 #. type: verbatim
7768 #: ../fish/guestfish-actions.pod:856
7769 #, no-wrap
7770 msgid ""
7771 " compress-device-out ctype device (zdevice|-) [level:N]\n"
7772 "\n"
7773 msgstr ""
7774
7775 #. type: textblock
7776 #: ../fish/guestfish-actions.pod:858 ../src/guestfs-actions.pod:1260
7777 msgid ""
7778 "This command compresses C<device> and writes it out to the local file "
7779 "C<zdevice>."
7780 msgstr ""
7781
7782 #. type: textblock
7783 #: ../fish/guestfish-actions.pod:861
7784 msgid ""
7785 "The C<ctype> and optional C<level> parameters have the same meaning as in "
7786 "L</compress-out>."
7787 msgstr ""
7788
7789 #. type: =head2
7790 #: ../fish/guestfish-actions.pod:868
7791 msgid "compress-out"
7792 msgstr ""
7793
7794 #. type: verbatim
7795 #: ../fish/guestfish-actions.pod:870
7796 #, no-wrap
7797 msgid ""
7798 " compress-out ctype file (zfile|-) [level:N]\n"
7799 "\n"
7800 msgstr ""
7801
7802 #. type: textblock
7803 #: ../fish/guestfish-actions.pod:872 ../src/guestfs-actions.pod:1312
7804 msgid ""
7805 "This command compresses C<file> and writes it out to the local file "
7806 "C<zfile>."
7807 msgstr ""
7808
7809 #. type: textblock
7810 #: ../fish/guestfish-actions.pod:875 ../src/guestfs-actions.pod:1315
7811 msgid ""
7812 "The compression program used is controlled by the C<ctype> parameter.  "
7813 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>.  "
7814 "Some compression types may not be supported by particular builds of "
7815 "libguestfs, in which case you will get an error containing the substring "
7816 "\"not supported\"."
7817 msgstr ""
7818
7819 #. type: textblock
7820 #: ../fish/guestfish-actions.pod:881 ../src/guestfs-actions.pod:1321
7821 msgid ""
7822 "The optional C<level> parameter controls compression level.  The meaning and "
7823 "default for this parameter depends on the compression program being used."
7824 msgstr ""
7825
7826 #. type: =head2
7827 #: ../fish/guestfish-actions.pod:889
7828 msgid "config"
7829 msgstr ""
7830
7831 #. type: verbatim
7832 #: ../fish/guestfish-actions.pod:891
7833 #, no-wrap
7834 msgid ""
7835 " config qemuparam qemuvalue\n"
7836 "\n"
7837 msgstr ""
7838
7839 #. type: textblock
7840 #: ../fish/guestfish-actions.pod:893 ../src/guestfs-actions.pod:1362
7841 msgid ""
7842 "This can be used to add arbitrary qemu command line parameters of the form "
7843 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
7844 "setting some parameters which would interfere with parameters that we use."
7845 msgstr ""
7846
7847 #. type: textblock
7848 #: ../fish/guestfish-actions.pod:898 ../src/guestfs-actions.pod:1367
7849 msgid "The first character of C<param> string must be a C<-> (dash)."
7850 msgstr ""
7851
7852 #. type: textblock
7853 #: ../fish/guestfish-actions.pod:900 ../src/guestfs-actions.pod:1369
7854 msgid "C<value> can be NULL."
7855 msgstr ""
7856
7857 #. type: =head2
7858 #: ../fish/guestfish-actions.pod:902
7859 msgid "copy-device-to-device"
7860 msgstr ""
7861
7862 #. type: verbatim
7863 #: ../fish/guestfish-actions.pod:904
7864 #, no-wrap
7865 msgid ""
7866 " copy-device-to-device src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7867 "\n"
7868 msgstr ""
7869
7870 #. type: textblock
7871 #: ../fish/guestfish-actions.pod:906
7872 msgid ""
7873 "The four calls L</copy-device-to-device>, L</copy-device-to-file>, "
7874 "L</copy-file-to-device>, and L</copy-file-to-file> let you copy from a "
7875 "source (device|file) to a destination (device|file)."
7876 msgstr ""
7877
7878 #. type: textblock
7879 #: ../fish/guestfish-actions.pod:913 ../src/guestfs-actions.pod:1399
7880 msgid ""
7881 "Partial copies can be made since you can specify optionally the source "
7882 "offset, destination offset and size to copy.  These values are all specified "
7883 "in bytes.  If not given, the offsets both default to zero, and the size "
7884 "defaults to copying as much as possible until we hit the end of the source."
7885 msgstr ""
7886
7887 #. type: textblock
7888 #: ../fish/guestfish-actions.pod:919 ../src/guestfs-actions.pod:1405
7889 msgid ""
7890 "The source and destination may be the same object.  However overlapping "
7891 "regions may not be copied correctly."
7892 msgstr ""
7893
7894 #. type: textblock
7895 #: ../fish/guestfish-actions.pod:922 ../src/guestfs-actions.pod:1408
7896 msgid ""
7897 "If the destination is a file, it is created if required.  If the destination "
7898 "file is not large enough, it is extended."
7899 msgstr ""
7900
7901 #. type: =head2
7902 #: ../fish/guestfish-actions.pod:927
7903 msgid "copy-device-to-file"
7904 msgstr ""
7905
7906 #. type: verbatim
7907 #: ../fish/guestfish-actions.pod:929
7908 #, no-wrap
7909 msgid ""
7910 " copy-device-to-file src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7911 "\n"
7912 msgstr ""
7913
7914 #. type: textblock
7915 #: ../fish/guestfish-actions.pod:931 ../fish/guestfish-actions.pod:940 ../fish/guestfish-actions.pod:949
7916 msgid "See L</copy-device-to-device> for a general overview of this call."
7917 msgstr ""
7918
7919 #. type: =head2
7920 #: ../fish/guestfish-actions.pod:936
7921 msgid "copy-file-to-device"
7922 msgstr ""
7923
7924 #. type: verbatim
7925 #: ../fish/guestfish-actions.pod:938
7926 #, no-wrap
7927 msgid ""
7928 " copy-file-to-device src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7929 "\n"
7930 msgstr ""
7931
7932 #. type: =head2
7933 #: ../fish/guestfish-actions.pod:945
7934 msgid "copy-file-to-file"
7935 msgstr ""
7936
7937 #. type: verbatim
7938 #: ../fish/guestfish-actions.pod:947
7939 #, no-wrap
7940 msgid ""
7941 " copy-file-to-file src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7942 "\n"
7943 msgstr ""
7944
7945 #. type: textblock
7946 #: ../fish/guestfish-actions.pod:952
7947 msgid ""
7948 "This is B<not> the function you want for copying files.  This is for copying "
7949 "blocks within existing files.  See L</cp>, L</cp-a> and L</mv> for general "
7950 "file copying and moving functions."
7951 msgstr ""
7952
7953 #. type: =head2
7954 #: ../fish/guestfish-actions.pod:959
7955 msgid "copy-size"
7956 msgstr ""
7957
7958 #. type: verbatim
7959 #: ../fish/guestfish-actions.pod:961
7960 #, no-wrap
7961 msgid ""
7962 " copy-size src dest size\n"
7963 "\n"
7964 msgstr ""
7965
7966 #. type: textblock
7967 #: ../fish/guestfish-actions.pod:963 ../src/guestfs-actions.pod:1623
7968 msgid ""
7969 "This command copies exactly C<size> bytes from one source device or file "
7970 "C<src> to another destination device or file C<dest>."
7971 msgstr ""
7972
7973 #. type: textblock
7974 #: ../fish/guestfish-actions.pod:966 ../src/guestfs-actions.pod:1626
7975 msgid ""
7976 "Note this will fail if the source is too short or if the destination is not "
7977 "large enough."
7978 msgstr ""
7979
7980 #. type: textblock
7981 #: ../fish/guestfish-actions.pod:969 ../fish/guestfish-actions.pod:1004
7982 msgid ""
7983 "I<This function is deprecated.> In new code, use the "
7984 "L</copy_device_to_device> call instead."
7985 msgstr ""
7986
7987 #. type: =head2
7988 #: ../fish/guestfish-actions.pod:976
7989 msgid "cp"
7990 msgstr ""
7991
7992 #. type: verbatim
7993 #: ../fish/guestfish-actions.pod:978
7994 #, no-wrap
7995 msgid ""
7996 " cp src dest\n"
7997 "\n"
7998 msgstr ""
7999
8000 #. type: textblock
8001 #: ../fish/guestfish-actions.pod:980 ../src/guestfs-actions.pod:1645
8002 msgid ""
8003 "This copies a file from C<src> to C<dest> where C<dest> is either a "
8004 "destination filename or destination directory."
8005 msgstr ""
8006
8007 #. type: =head2
8008 #: ../fish/guestfish-actions.pod:983
8009 msgid "cp-a"
8010 msgstr ""
8011
8012 #. type: verbatim
8013 #: ../fish/guestfish-actions.pod:985
8014 #, no-wrap
8015 msgid ""
8016 " cp-a src dest\n"
8017 "\n"
8018 msgstr ""
8019
8020 #. type: textblock
8021 #: ../fish/guestfish-actions.pod:987 ../src/guestfs-actions.pod:1659
8022 msgid ""
8023 "This copies a file or directory from C<src> to C<dest> recursively using the "
8024 "C<cp -a> command."
8025 msgstr ""
8026
8027 #. type: =head2
8028 #: ../fish/guestfish-actions.pod:990
8029 msgid "dd"
8030 msgstr ""
8031
8032 #. type: verbatim
8033 #: ../fish/guestfish-actions.pod:992
8034 #, no-wrap
8035 msgid ""
8036 " dd src dest\n"
8037 "\n"
8038 msgstr ""
8039
8040 #. type: textblock
8041 #: ../fish/guestfish-actions.pod:994 ../src/guestfs-actions.pod:1680
8042 msgid ""
8043 "This command copies from one source device or file C<src> to another "
8044 "destination device or file C<dest>.  Normally you would use this to copy to "
8045 "or from a device or partition, for example to duplicate a filesystem."
8046 msgstr ""
8047
8048 #. type: textblock
8049 #: ../fish/guestfish-actions.pod:999
8050 msgid ""
8051 "If the destination is a device, it must be as large or larger than the "
8052 "source file or device, otherwise the copy will fail.  This command cannot do "
8053 "partial copies (see L</copy-device-to-device>)."
8054 msgstr ""
8055
8056 #. type: =head2
8057 #: ../fish/guestfish-actions.pod:1011
8058 msgid "df"
8059 msgstr ""
8060
8061 #. type: verbatim
8062 #: ../fish/guestfish-actions.pod:1013
8063 #, no-wrap
8064 msgid ""
8065 " df\n"
8066 "\n"
8067 msgstr ""
8068
8069 #. type: textblock
8070 #: ../fish/guestfish-actions.pod:1015 ../src/guestfs-actions.pod:1699
8071 msgid "This command runs the C<df> command to report disk space used."
8072 msgstr ""
8073
8074 #. type: textblock
8075 #: ../fish/guestfish-actions.pod:1017 ../fish/guestfish-actions.pod:1028
8076 msgid ""
8077 "This command is mostly useful for interactive sessions.  It is I<not> "
8078 "intended that you try to parse the output string.  Use L</statvfs> from "
8079 "programs."
8080 msgstr ""
8081
8082 #. type: =head2
8083 #: ../fish/guestfish-actions.pod:1021
8084 msgid "df-h"
8085 msgstr ""
8086
8087 #. type: verbatim
8088 #: ../fish/guestfish-actions.pod:1023
8089 #, no-wrap
8090 msgid ""
8091 " df-h\n"
8092 "\n"
8093 msgstr ""
8094
8095 #. type: textblock
8096 #: ../fish/guestfish-actions.pod:1025 ../src/guestfs-actions.pod:1715
8097 msgid ""
8098 "This command runs the C<df -h> command to report disk space used in "
8099 "human-readable format."
8100 msgstr ""
8101
8102 #. type: =head2
8103 #: ../fish/guestfish-actions.pod:1032
8104 msgid "dmesg"
8105 msgstr ""
8106
8107 #. type: verbatim
8108 #: ../fish/guestfish-actions.pod:1034
8109 #, no-wrap
8110 msgid ""
8111 " dmesg\n"
8112 "\n"
8113 msgstr ""
8114
8115 #. type: textblock
8116 #: ../fish/guestfish-actions.pod:1036 ../src/guestfs-actions.pod:1732
8117 msgid ""
8118 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
8119 "This is sometimes useful for extended debugging of problems."
8120 msgstr ""
8121
8122 #. type: textblock
8123 #: ../fish/guestfish-actions.pod:1040
8124 msgid ""
8125 "Another way to get the same information is to enable verbose messages with "
8126 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
8127 "before running the program."
8128 msgstr ""
8129
8130 #. type: =head2
8131 #: ../fish/guestfish-actions.pod:1045
8132 msgid "download"
8133 msgstr ""
8134
8135 #. type: verbatim
8136 #: ../fish/guestfish-actions.pod:1047
8137 #, no-wrap
8138 msgid ""
8139 " download remotefilename (filename|-)\n"
8140 "\n"
8141 msgstr ""
8142
8143 #. type: textblock
8144 #: ../fish/guestfish-actions.pod:1049 ../fish/guestfish-actions.pod:1062 ../src/guestfs-actions.pod:1753 ../src/guestfs-actions.pod:1778
8145 msgid ""
8146 "Download file C<remotefilename> and save it as C<filename> on the local "
8147 "machine."
8148 msgstr ""
8149
8150 #. type: textblock
8151 #: ../fish/guestfish-actions.pod:1052 ../fish/guestfish-actions.pod:5221 ../src/guestfs-actions.pod:1756 ../src/guestfs-actions.pod:8028
8152 msgid "C<filename> can also be a named pipe."
8153 msgstr ""
8154
8155 #. type: textblock
8156 #: ../fish/guestfish-actions.pod:1054
8157 msgid "See also L</upload>, L</cat>."
8158 msgstr ""
8159
8160 #. type: =head2
8161 #: ../fish/guestfish-actions.pod:1058
8162 msgid "download-offset"
8163 msgstr ""
8164
8165 #. type: verbatim
8166 #: ../fish/guestfish-actions.pod:1060
8167 #, no-wrap
8168 msgid ""
8169 " download-offset remotefilename (filename|-) offset size\n"
8170 "\n"
8171 msgstr ""
8172
8173 #. type: textblock
8174 #: ../fish/guestfish-actions.pod:1065 ../src/guestfs-actions.pod:1781
8175 msgid ""
8176 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
8177 "region must be within the file or device)."
8178 msgstr ""
8179
8180 #. type: textblock
8181 #: ../fish/guestfish-actions.pod:1068
8182 msgid ""
8183 "Note that there is no limit on the amount of data that can be downloaded "
8184 "with this call, unlike with L</pread>, and this call always reads the full "
8185 "amount unless an error occurs."
8186 msgstr ""
8187
8188 #. type: textblock
8189 #: ../fish/guestfish-actions.pod:1073
8190 msgid "See also L</download>, L</pread>."
8191 msgstr ""
8192
8193 #. type: =head2
8194 #: ../fish/guestfish-actions.pod:1077
8195 msgid "drop-caches"
8196 msgstr ""
8197
8198 #. type: verbatim
8199 #: ../fish/guestfish-actions.pod:1079
8200 #, no-wrap
8201 msgid ""
8202 " drop-caches whattodrop\n"
8203 "\n"
8204 msgstr ""
8205
8206 #. type: textblock
8207 #: ../fish/guestfish-actions.pod:1081 ../src/guestfs-actions.pod:1806
8208 msgid ""
8209 "This instructs the guest kernel to drop its page cache, and/or dentries and "
8210 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
8211 "to drop, see L<http://linux-mm.org/Drop_Caches>"
8212 msgstr ""
8213
8214 #. type: textblock
8215 #: ../fish/guestfish-actions.pod:1086 ../src/guestfs-actions.pod:1811
8216 msgid "Setting C<whattodrop> to 3 should drop everything."
8217 msgstr ""
8218
8219 #. type: textblock
8220 #: ../fish/guestfish-actions.pod:1088 ../src/guestfs-actions.pod:1813
8221 msgid ""
8222 "This automatically calls L<sync(2)> before the operation, so that the "
8223 "maximum guest memory is freed."
8224 msgstr ""
8225
8226 #. type: =head2
8227 #: ../fish/guestfish-actions.pod:1091
8228 msgid "du"
8229 msgstr ""
8230
8231 #. type: verbatim
8232 #: ../fish/guestfish-actions.pod:1093
8233 #, no-wrap
8234 msgid ""
8235 " du path\n"
8236 "\n"
8237 msgstr ""
8238
8239 #. type: textblock
8240 #: ../fish/guestfish-actions.pod:1095 ../src/guestfs-actions.pod:1826
8241 msgid ""
8242 "This command runs the C<du -s> command to estimate file space usage for "
8243 "C<path>."
8244 msgstr ""
8245
8246 #. type: textblock
8247 #: ../fish/guestfish-actions.pod:1098 ../src/guestfs-actions.pod:1829
8248 msgid ""
8249 "C<path> can be a file or a directory.  If C<path> is a directory then the "
8250 "estimate includes the contents of the directory and all subdirectories "
8251 "(recursively)."
8252 msgstr ""
8253
8254 #. type: textblock
8255 #: ../fish/guestfish-actions.pod:1102 ../src/guestfs-actions.pod:1833
8256 msgid "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
8257 msgstr ""
8258
8259 #. type: =head2
8260 #: ../fish/guestfish-actions.pod:1105
8261 msgid "e2fsck-f"
8262 msgstr ""
8263
8264 #. type: verbatim
8265 #: ../fish/guestfish-actions.pod:1107
8266 #, no-wrap
8267 msgid ""
8268 " e2fsck-f device\n"
8269 "\n"
8270 msgstr ""
8271
8272 #. type: textblock
8273 #: ../fish/guestfish-actions.pod:1109 ../src/guestfs-actions.pod:1851
8274 msgid ""
8275 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
8276 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
8277 "clean (I<-f>)."
8278 msgstr ""
8279
8280 #. type: textblock
8281 #: ../fish/guestfish-actions.pod:1113
8282 msgid ""
8283 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
8284 "should use L</fsck>."
8285 msgstr ""
8286
8287 #. type: =head2
8288 #: ../fish/guestfish-actions.pod:1116
8289 msgid "echo-daemon"
8290 msgstr ""
8291
8292 #. type: verbatim
8293 #: ../fish/guestfish-actions.pod:1118
8294 #, no-wrap
8295 msgid ""
8296 " echo-daemon 'words ...'\n"
8297 "\n"
8298 msgstr ""
8299
8300 #. type: textblock
8301 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1868
8302 msgid ""
8303 "This command concatenates the list of C<words> passed with single spaces "
8304 "between them and returns the resulting string."
8305 msgstr ""
8306
8307 #. type: textblock
8308 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1871
8309 msgid "You can use this command to test the connection through to the daemon."
8310 msgstr ""
8311
8312 #. type: textblock
8313 #: ../fish/guestfish-actions.pod:1125
8314 msgid "See also L</ping-daemon>."
8315 msgstr ""
8316
8317 #. type: =head2
8318 #: ../fish/guestfish-actions.pod:1127
8319 msgid "egrep"
8320 msgstr ""
8321
8322 #. type: verbatim
8323 #: ../fish/guestfish-actions.pod:1129
8324 #, no-wrap
8325 msgid ""
8326 " egrep regex path\n"
8327 "\n"
8328 msgstr ""
8329
8330 #. type: textblock
8331 #: ../fish/guestfish-actions.pod:1131 ../src/guestfs-actions.pod:1887
8332 msgid "This calls the external C<egrep> program and returns the matching lines."
8333 msgstr ""
8334
8335 #. type: =head2
8336 #: ../fish/guestfish-actions.pod:1137
8337 msgid "egrepi"
8338 msgstr ""
8339
8340 #. type: verbatim
8341 #: ../fish/guestfish-actions.pod:1139
8342 #, no-wrap
8343 msgid ""
8344 " egrepi regex path\n"
8345 "\n"
8346 msgstr ""
8347
8348 #. type: textblock
8349 #: ../fish/guestfish-actions.pod:1141 ../src/guestfs-actions.pod:1906
8350 msgid "This calls the external C<egrep -i> program and returns the matching lines."
8351 msgstr ""
8352
8353 #. type: =head2
8354 #: ../fish/guestfish-actions.pod:1147
8355 msgid "equal"
8356 msgstr ""
8357
8358 #. type: verbatim
8359 #: ../fish/guestfish-actions.pod:1149
8360 #, no-wrap
8361 msgid ""
8362 " equal file1 file2\n"
8363 "\n"
8364 msgstr ""
8365
8366 #. type: textblock
8367 #: ../fish/guestfish-actions.pod:1151 ../src/guestfs-actions.pod:1925
8368 msgid ""
8369 "This compares the two files C<file1> and C<file2> and returns true if their "
8370 "content is exactly equal, or false otherwise."
8371 msgstr ""
8372
8373 #. type: textblock
8374 #: ../fish/guestfish-actions.pod:1154 ../src/guestfs-actions.pod:1928
8375 msgid "The external L<cmp(1)> program is used for the comparison."
8376 msgstr ""
8377
8378 #. type: =head2
8379 #: ../fish/guestfish-actions.pod:1156
8380 msgid "exists"
8381 msgstr ""
8382
8383 #. type: verbatim
8384 #: ../fish/guestfish-actions.pod:1158
8385 #, no-wrap
8386 msgid ""
8387 " exists path\n"
8388 "\n"
8389 msgstr ""
8390
8391 #. type: textblock
8392 #: ../fish/guestfish-actions.pod:1160 ../src/guestfs-actions.pod:1940
8393 msgid ""
8394 "This returns C<true> if and only if there is a file, directory (or anything) "
8395 "with the given C<path> name."
8396 msgstr ""
8397
8398 #. type: textblock
8399 #: ../fish/guestfish-actions.pod:1163
8400 msgid "See also L</is-file>, L</is-dir>, L</stat>."
8401 msgstr ""
8402
8403 #. type: =head2
8404 #: ../fish/guestfish-actions.pod:1165
8405 msgid "fallocate"
8406 msgstr ""
8407
8408 #. type: verbatim
8409 #: ../fish/guestfish-actions.pod:1167
8410 #, no-wrap
8411 msgid ""
8412 " fallocate path len\n"
8413 "\n"
8414 msgstr ""
8415
8416 #. type: textblock
8417 #: ../fish/guestfish-actions.pod:1169 ../fish/guestfish-actions.pod:1188 ../src/guestfs-actions.pod:1963 ../src/guestfs-actions.pod:1982
8418 msgid ""
8419 "This command preallocates a file (containing zero bytes) named C<path> of "
8420 "size C<len> bytes.  If the file exists already, it is overwritten."
8421 msgstr ""
8422
8423 #. type: textblock
8424 #: ../fish/guestfish-actions.pod:1173 ../src/guestfs-actions.pod:1967
8425 msgid ""
8426 "Do not confuse this with the guestfish-specific C<alloc> command which "
8427 "allocates a file in the host and attaches it as a device."
8428 msgstr ""
8429
8430 #. type: textblock
8431 #: ../fish/guestfish-actions.pod:1177
8432 msgid ""
8433 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
8434 "instead."
8435 msgstr ""
8436
8437 #. type: =head2
8438 #: ../fish/guestfish-actions.pod:1184
8439 msgid "fallocate64"
8440 msgstr ""
8441
8442 #. type: verbatim
8443 #: ../fish/guestfish-actions.pod:1186
8444 #, no-wrap
8445 msgid ""
8446 " fallocate64 path len\n"
8447 "\n"
8448 msgstr ""
8449
8450 #. type: textblock
8451 #: ../fish/guestfish-actions.pod:1192
8452 msgid ""
8453 "Note that this call allocates disk blocks for the file.  To create a sparse "
8454 "file use L</truncate-size> instead."
8455 msgstr ""
8456
8457 #. type: textblock
8458 #: ../fish/guestfish-actions.pod:1195
8459 msgid ""
8460 "The deprecated call L</fallocate> does the same, but owing to an oversight "
8461 "it only allowed 30 bit lengths to be specified, effectively limiting the "
8462 "maximum size of files created through that call to 1GB."
8463 msgstr ""
8464
8465 #. type: textblock
8466 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:1994
8467 msgid ""
8468 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
8469 "commands which create a file in the host and attach it as a device."
8470 msgstr ""
8471
8472 #. type: =head2
8473 #: ../fish/guestfish-actions.pod:1204
8474 msgid "fgrep"
8475 msgstr ""
8476
8477 #. type: verbatim
8478 #: ../fish/guestfish-actions.pod:1206
8479 #, no-wrap
8480 msgid ""
8481 " fgrep pattern path\n"
8482 "\n"
8483 msgstr ""
8484
8485 #. type: textblock
8486 #: ../fish/guestfish-actions.pod:1208 ../src/guestfs-actions.pod:2009
8487 msgid "This calls the external C<fgrep> program and returns the matching lines."
8488 msgstr ""
8489
8490 #. type: =head2
8491 #: ../fish/guestfish-actions.pod:1214
8492 msgid "fgrepi"
8493 msgstr ""
8494
8495 #. type: verbatim
8496 #: ../fish/guestfish-actions.pod:1216
8497 #, no-wrap
8498 msgid ""
8499 " fgrepi pattern path\n"
8500 "\n"
8501 msgstr ""
8502
8503 #. type: textblock
8504 #: ../fish/guestfish-actions.pod:1218 ../src/guestfs-actions.pod:2028
8505 msgid "This calls the external C<fgrep -i> program and returns the matching lines."
8506 msgstr ""
8507
8508 #. type: =head2
8509 #: ../fish/guestfish-actions.pod:1224
8510 msgid "file"
8511 msgstr ""
8512
8513 #. type: verbatim
8514 #: ../fish/guestfish-actions.pod:1226
8515 #, no-wrap
8516 msgid ""
8517 " file path\n"
8518 "\n"
8519 msgstr ""
8520
8521 #. type: textblock
8522 #: ../fish/guestfish-actions.pod:1228 ../src/guestfs-actions.pod:2046
8523 msgid ""
8524 "This call uses the standard L<file(1)> command to determine the type or "
8525 "contents of the file."
8526 msgstr ""
8527
8528 #. type: textblock
8529 #: ../fish/guestfish-actions.pod:1231 ../src/guestfs-actions.pod:2049
8530 msgid ""
8531 "This call will also transparently look inside various types of compressed "
8532 "file."
8533 msgstr ""
8534
8535 #. type: textblock
8536 #: ../fish/guestfish-actions.pod:1234 ../src/guestfs-actions.pod:2052
8537 msgid ""
8538 "The exact command which runs is C<file -zb path>.  Note in particular that "
8539 "the filename is not prepended to the output (the I<-b> option)."
8540 msgstr ""
8541
8542 #. type: textblock
8543 #: ../fish/guestfish-actions.pod:1238 ../src/guestfs-actions.pod:2056
8544 msgid ""
8545 "The output depends on the output of the underlying L<file(1)> command and it "
8546 "can change in future in ways beyond our control.  In other words, the output "
8547 "is not guaranteed by the ABI."
8548 msgstr ""
8549
8550 #. type: textblock
8551 #: ../fish/guestfish-actions.pod:1242
8552 msgid ""
8553 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
8554 "(etc), L</is-zero>."
8555 msgstr ""
8556
8557 #. type: =head2
8558 #: ../fish/guestfish-actions.pod:1245
8559 msgid "file-architecture"
8560 msgstr ""
8561
8562 #. type: verbatim
8563 #: ../fish/guestfish-actions.pod:1247
8564 #, no-wrap
8565 msgid ""
8566 " file-architecture filename\n"
8567 "\n"
8568 msgstr ""
8569
8570 #. type: textblock
8571 #: ../fish/guestfish-actions.pod:1249 ../src/guestfs-actions.pod:2074
8572 msgid ""
8573 "This detects the architecture of the binary C<filename>, and returns it if "
8574 "known."
8575 msgstr ""
8576
8577 #. type: textblock
8578 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:2077
8579 msgid "Currently defined architectures are:"
8580 msgstr ""
8581
8582 #. type: =item
8583 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:2081
8584 msgid "\"i386\""
8585 msgstr ""
8586
8587 #. type: textblock
8588 #: ../fish/guestfish-actions.pod:1258 ../src/guestfs-actions.pod:2083
8589 msgid ""
8590 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
8591 "irrespective of the precise processor requirements of the binary."
8592 msgstr ""
8593
8594 #. type: =item
8595 #: ../fish/guestfish-actions.pod:1261 ../src/guestfs-actions.pod:2086
8596 msgid "\"x86_64\""
8597 msgstr ""
8598
8599 #. type: textblock
8600 #: ../fish/guestfish-actions.pod:1263 ../src/guestfs-actions.pod:2088
8601 msgid "64 bit x86-64."
8602 msgstr ""
8603
8604 #. type: =item
8605 #: ../fish/guestfish-actions.pod:1265 ../src/guestfs-actions.pod:2090
8606 msgid "\"sparc\""
8607 msgstr ""
8608
8609 #. type: textblock
8610 #: ../fish/guestfish-actions.pod:1267 ../src/guestfs-actions.pod:2092
8611 msgid "32 bit SPARC."
8612 msgstr ""
8613
8614 #. type: =item
8615 #: ../fish/guestfish-actions.pod:1269 ../src/guestfs-actions.pod:2094
8616 msgid "\"sparc64\""
8617 msgstr ""
8618
8619 #. type: textblock
8620 #: ../fish/guestfish-actions.pod:1271 ../src/guestfs-actions.pod:2096
8621 msgid "64 bit SPARC V9 and above."
8622 msgstr ""
8623
8624 #. type: =item
8625 #: ../fish/guestfish-actions.pod:1273 ../src/guestfs-actions.pod:2098
8626 msgid "\"ia64\""
8627 msgstr ""
8628
8629 #. type: textblock
8630 #: ../fish/guestfish-actions.pod:1275 ../src/guestfs-actions.pod:2100
8631 msgid "Intel Itanium."
8632 msgstr ""
8633
8634 #. type: =item
8635 #: ../fish/guestfish-actions.pod:1277 ../src/guestfs-actions.pod:2102
8636 msgid "\"ppc\""
8637 msgstr ""
8638
8639 #. type: textblock
8640 #: ../fish/guestfish-actions.pod:1279 ../src/guestfs-actions.pod:2104
8641 msgid "32 bit Power PC."
8642 msgstr ""
8643
8644 #. type: =item
8645 #: ../fish/guestfish-actions.pod:1281 ../src/guestfs-actions.pod:2106
8646 msgid "\"ppc64\""
8647 msgstr ""
8648
8649 #. type: textblock
8650 #: ../fish/guestfish-actions.pod:1283 ../src/guestfs-actions.pod:2108
8651 msgid "64 bit Power PC."
8652 msgstr ""
8653
8654 #. type: textblock
8655 #: ../fish/guestfish-actions.pod:1287 ../src/guestfs-actions.pod:2112
8656 msgid "Libguestfs may return other architecture strings in future."
8657 msgstr ""
8658
8659 #. type: textblock
8660 #: ../fish/guestfish-actions.pod:1289 ../src/guestfs-actions.pod:2114
8661 msgid "The function works on at least the following types of files:"
8662 msgstr ""
8663
8664 #. type: textblock
8665 #: ../fish/guestfish-actions.pod:1295 ../src/guestfs-actions.pod:2120
8666 msgid "many types of Un*x and Linux binary"
8667 msgstr ""
8668
8669 #. type: textblock
8670 #: ../fish/guestfish-actions.pod:1299 ../src/guestfs-actions.pod:2124
8671 msgid "many types of Un*x and Linux shared library"
8672 msgstr ""
8673
8674 #. type: textblock
8675 #: ../fish/guestfish-actions.pod:1303 ../src/guestfs-actions.pod:2128
8676 msgid "Windows Win32 and Win64 binaries"
8677 msgstr ""
8678
8679 #. type: textblock
8680 #: ../fish/guestfish-actions.pod:1307 ../src/guestfs-actions.pod:2132
8681 msgid "Windows Win32 and Win64 DLLs"
8682 msgstr ""
8683
8684 #. type: textblock
8685 #: ../fish/guestfish-actions.pod:1309 ../src/guestfs-actions.pod:2134
8686 msgid "Win32 binaries and DLLs return C<i386>."
8687 msgstr ""
8688
8689 #. type: textblock
8690 #: ../fish/guestfish-actions.pod:1311 ../src/guestfs-actions.pod:2136
8691 msgid "Win64 binaries and DLLs return C<x86_64>."
8692 msgstr ""
8693
8694 #. type: textblock
8695 #: ../fish/guestfish-actions.pod:1315 ../src/guestfs-actions.pod:2140
8696 msgid "Linux kernel modules"
8697 msgstr ""
8698
8699 #. type: textblock
8700 #: ../fish/guestfish-actions.pod:1319 ../src/guestfs-actions.pod:2144
8701 msgid "Linux new-style initrd images"
8702 msgstr ""
8703
8704 #. type: textblock
8705 #: ../fish/guestfish-actions.pod:1323 ../src/guestfs-actions.pod:2148
8706 msgid "some non-x86 Linux vmlinuz kernels"
8707 msgstr ""
8708
8709 #. type: textblock
8710 #: ../fish/guestfish-actions.pod:1327 ../src/guestfs-actions.pod:2152
8711 msgid "What it can't do currently:"
8712 msgstr ""
8713
8714 #. type: textblock
8715 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:2158
8716 msgid "static libraries (libfoo.a)"
8717 msgstr ""
8718
8719 #. type: textblock
8720 #: ../fish/guestfish-actions.pod:1337 ../src/guestfs-actions.pod:2162
8721 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
8722 msgstr ""
8723
8724 #. type: textblock
8725 #: ../fish/guestfish-actions.pod:1341 ../src/guestfs-actions.pod:2166
8726 msgid "x86 Linux vmlinuz kernels"
8727 msgstr ""
8728
8729 #. type: textblock
8730 #: ../fish/guestfish-actions.pod:1343 ../src/guestfs-actions.pod:2168
8731 msgid ""
8732 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
8733 "compressed code, and are horribly hard to unpack.  If you want to find the "
8734 "architecture of a kernel, use the architecture of the associated initrd or "
8735 "kernel module(s) instead."
8736 msgstr ""
8737
8738 #. type: =head2
8739 #: ../fish/guestfish-actions.pod:1350
8740 msgid "filesize"
8741 msgstr ""
8742
8743 #. type: verbatim
8744 #: ../fish/guestfish-actions.pod:1352
8745 #, no-wrap
8746 msgid ""
8747 " filesize file\n"
8748 "\n"
8749 msgstr ""
8750
8751 #. type: textblock
8752 #: ../fish/guestfish-actions.pod:1354 ../src/guestfs-actions.pod:2186
8753 msgid "This command returns the size of C<file> in bytes."
8754 msgstr ""
8755
8756 #. type: textblock
8757 #: ../fish/guestfish-actions.pod:1356
8758 msgid ""
8759 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, "
8760 "L</is-file> etc.  To get the size of block devices, use "
8761 "L</blockdev-getsize64>."
8762 msgstr ""
8763
8764 #. type: =head2
8765 #: ../fish/guestfish-actions.pod:1360
8766 msgid "fill"
8767 msgstr ""
8768
8769 #. type: verbatim
8770 #: ../fish/guestfish-actions.pod:1362
8771 #, no-wrap
8772 msgid ""
8773 " fill c len path\n"
8774 "\n"
8775 msgstr ""
8776
8777 #. type: textblock
8778 #: ../fish/guestfish-actions.pod:1364 ../src/guestfs-actions.pod:2204
8779 msgid ""
8780 "This command creates a new file called C<path>.  The initial content of the "
8781 "file is C<len> octets of C<c>, where C<c> must be a number in the range "
8782 "C<[0..255]>."
8783 msgstr ""
8784
8785 #. type: textblock
8786 #: ../fish/guestfish-actions.pod:1368
8787 msgid ""
8788 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
8789 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
8790 "L</fill-pattern>."
8791 msgstr ""
8792
8793 #. type: =head2
8794 #: ../fish/guestfish-actions.pod:1373
8795 msgid "fill-pattern"
8796 msgstr ""
8797
8798 #. type: verbatim
8799 #: ../fish/guestfish-actions.pod:1375
8800 #, no-wrap
8801 msgid ""
8802 " fill-pattern pattern len path\n"
8803 "\n"
8804 msgstr ""
8805
8806 #. type: textblock
8807 #: ../fish/guestfish-actions.pod:1377
8808 msgid ""
8809 "This function is like L</fill> except that it creates a new file of length "
8810 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
8811 "is truncated if necessary to ensure the length of the file is exactly C<len> "
8812 "bytes."
8813 msgstr ""
8814
8815 #. type: =head2
8816 #: ../fish/guestfish-actions.pod:1382
8817 msgid "find"
8818 msgstr ""
8819
8820 #. type: verbatim
8821 #: ../fish/guestfish-actions.pod:1384
8822 #, no-wrap
8823 msgid ""
8824 " find directory\n"
8825 "\n"
8826 msgstr ""
8827
8828 #. type: textblock
8829 #: ../fish/guestfish-actions.pod:1386 ../src/guestfs-actions.pod:2250
8830 msgid ""
8831 "This command lists out all files and directories, recursively, starting at "
8832 "C<directory>.  It is essentially equivalent to running the shell command "
8833 "C<find directory -print> but some post-processing happens on the output, "
8834 "described below."
8835 msgstr ""
8836
8837 #. type: textblock
8838 #: ../fish/guestfish-actions.pod:1391 ../src/guestfs-actions.pod:2255
8839 msgid ""
8840 "This returns a list of strings I<without any prefix>.  Thus if the directory "
8841 "structure was:"
8842 msgstr ""
8843
8844 #. type: verbatim
8845 #: ../fish/guestfish-actions.pod:1394 ../src/guestfs-actions.pod:2258
8846 #, no-wrap
8847 msgid ""
8848 " /tmp/a\n"
8849 " /tmp/b\n"
8850 " /tmp/c/d\n"
8851 "\n"
8852 msgstr ""
8853
8854 #. type: textblock
8855 #: ../fish/guestfish-actions.pod:1398
8856 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
8857 msgstr ""
8858
8859 #. type: verbatim
8860 #: ../fish/guestfish-actions.pod:1401 ../src/guestfs-actions.pod:2265
8861 #, no-wrap
8862 msgid ""
8863 " a\n"
8864 " b\n"
8865 " c\n"
8866 " c/d\n"
8867 "\n"
8868 msgstr ""
8869
8870 #. type: textblock
8871 #: ../fish/guestfish-actions.pod:1406 ../src/guestfs-actions.pod:2270
8872 msgid "If C<directory> is not a directory, then this command returns an error."
8873 msgstr ""
8874
8875 #. type: textblock
8876 #: ../fish/guestfish-actions.pod:1409 ../src/guestfs-actions.pod:2273
8877 msgid "The returned list is sorted."
8878 msgstr ""
8879
8880 #. type: textblock
8881 #: ../fish/guestfish-actions.pod:1411
8882 msgid "See also L</find0>."
8883 msgstr ""
8884
8885 #. type: =head2
8886 #: ../fish/guestfish-actions.pod:1416
8887 msgid "find0"
8888 msgstr ""
8889
8890 #. type: verbatim
8891 #: ../fish/guestfish-actions.pod:1418
8892 #, no-wrap
8893 msgid ""
8894 " find0 directory (files|-)\n"
8895 "\n"
8896 msgstr ""
8897
8898 #. type: textblock
8899 #: ../fish/guestfish-actions.pod:1420 ../src/guestfs-actions.pod:2293
8900 msgid ""
8901 "This command lists out all files and directories, recursively, starting at "
8902 "C<directory>, placing the resulting list in the external file called "
8903 "C<files>."
8904 msgstr ""
8905
8906 #. type: textblock
8907 #: ../fish/guestfish-actions.pod:1424
8908 msgid "This command works the same way as L</find> with the following exceptions:"
8909 msgstr ""
8910
8911 #. type: textblock
8912 #: ../fish/guestfish-actions.pod:1431 ../src/guestfs-actions.pod:2304
8913 msgid "The resulting list is written to an external file."
8914 msgstr ""
8915
8916 #. type: textblock
8917 #: ../fish/guestfish-actions.pod:1435 ../src/guestfs-actions.pod:2308
8918 msgid ""
8919 "Items (filenames) in the result are separated by C<\\0> characters.  See "
8920 "L<find(1)> option I<-print0>."
8921 msgstr ""
8922
8923 #. type: textblock
8924 #: ../fish/guestfish-actions.pod:1440 ../src/guestfs-actions.pod:2313
8925 msgid "This command is not limited in the number of names that it can return."
8926 msgstr ""
8927
8928 #. type: textblock
8929 #: ../fish/guestfish-actions.pod:1445 ../src/guestfs-actions.pod:2318
8930 msgid "The result list is not sorted."
8931 msgstr ""
8932
8933 #. type: =head2
8934 #: ../fish/guestfish-actions.pod:1451
8935 msgid "findfs-label"
8936 msgstr ""
8937
8938 #. type: verbatim
8939 #: ../fish/guestfish-actions.pod:1453
8940 #, no-wrap
8941 msgid ""
8942 " findfs-label label\n"
8943 "\n"
8944 msgstr ""
8945
8946 #. type: textblock
8947 #: ../fish/guestfish-actions.pod:1455 ../src/guestfs-actions.pod:2332
8948 msgid ""
8949 "This command searches the filesystems and returns the one which has the "
8950 "given label.  An error is returned if no such filesystem can be found."
8951 msgstr ""
8952
8953 #. type: textblock
8954 #: ../fish/guestfish-actions.pod:1459
8955 msgid "To find the label of a filesystem, use L</vfs-label>."
8956 msgstr ""
8957
8958 #. type: =head2
8959 #: ../fish/guestfish-actions.pod:1461
8960 msgid "findfs-uuid"
8961 msgstr ""
8962
8963 #. type: verbatim
8964 #: ../fish/guestfish-actions.pod:1463
8965 #, no-wrap
8966 msgid ""
8967 " findfs-uuid uuid\n"
8968 "\n"
8969 msgstr ""
8970
8971 #. type: textblock
8972 #: ../fish/guestfish-actions.pod:1465 ../src/guestfs-actions.pod:2349
8973 msgid ""
8974 "This command searches the filesystems and returns the one which has the "
8975 "given UUID.  An error is returned if no such filesystem can be found."
8976 msgstr ""
8977
8978 #. type: textblock
8979 #: ../fish/guestfish-actions.pod:1469
8980 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
8981 msgstr ""
8982
8983 #. type: =head2
8984 #: ../fish/guestfish-actions.pod:1471
8985 msgid "fsck"
8986 msgstr ""
8987
8988 #. type: verbatim
8989 #: ../fish/guestfish-actions.pod:1473
8990 #, no-wrap
8991 msgid ""
8992 " fsck fstype device\n"
8993 "\n"
8994 msgstr ""
8995
8996 #. type: textblock
8997 #: ../fish/guestfish-actions.pod:1475 ../src/guestfs-actions.pod:2367
8998 msgid ""
8999 "This runs the filesystem checker (fsck) on C<device> which should have "
9000 "filesystem type C<fstype>."
9001 msgstr ""
9002
9003 #. type: textblock
9004 #: ../fish/guestfish-actions.pod:1478 ../src/guestfs-actions.pod:2370
9005 msgid ""
9006 "The returned integer is the status.  See L<fsck(8)> for the list of status "
9007 "codes from C<fsck>."
9008 msgstr ""
9009
9010 #. type: textblock
9011 #: ../fish/guestfish-actions.pod:1487 ../src/guestfs-actions.pod:2379
9012 msgid "Multiple status codes can be summed together."
9013 msgstr ""
9014
9015 #. type: textblock
9016 #: ../fish/guestfish-actions.pod:1491 ../src/guestfs-actions.pod:2383
9017 msgid ""
9018 "A non-zero return code can mean \"success\", for example if errors have been "
9019 "corrected on the filesystem."
9020 msgstr ""
9021
9022 #. type: textblock
9023 #: ../fish/guestfish-actions.pod:1496 ../src/guestfs-actions.pod:2388
9024 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
9025 msgstr ""
9026
9027 #. type: textblock
9028 #: ../fish/guestfish-actions.pod:1501 ../src/guestfs-actions.pod:2393
9029 msgid "This command is entirely equivalent to running C<fsck -a -t fstype device>."
9030 msgstr ""
9031
9032 #. type: =head2
9033 #: ../fish/guestfish-actions.pod:1503
9034 msgid "get-append"
9035 msgstr ""
9036
9037 #. type: verbatim
9038 #: ../fish/guestfish-actions.pod:1505
9039 #, no-wrap
9040 msgid ""
9041 " get-append\n"
9042 "\n"
9043 msgstr ""
9044
9045 #. type: textblock
9046 #: ../fish/guestfish-actions.pod:1507 ../src/guestfs-actions.pod:2404
9047 msgid ""
9048 "Return the additional kernel options which are added to the guest kernel "
9049 "command line."
9050 msgstr ""
9051
9052 #. type: textblock
9053 #: ../fish/guestfish-actions.pod:1510 ../src/guestfs-actions.pod:2407
9054 msgid "If C<NULL> then no options are added."
9055 msgstr ""
9056
9057 #. type: =head2
9058 #: ../fish/guestfish-actions.pod:1512
9059 msgid "get-attach-method"
9060 msgstr ""
9061
9062 #. type: verbatim
9063 #: ../fish/guestfish-actions.pod:1514
9064 #, no-wrap
9065 msgid ""
9066 " get-attach-method\n"
9067 "\n"
9068 msgstr ""
9069
9070 #. type: textblock
9071 #: ../fish/guestfish-actions.pod:1516
9072 msgid "Return the current attach method.  See L</set-attach-method>."
9073 msgstr ""
9074
9075 #. type: =head2
9076 #: ../fish/guestfish-actions.pod:1518
9077 msgid "get-autosync"
9078 msgstr ""
9079
9080 #. type: verbatim
9081 #: ../fish/guestfish-actions.pod:1520
9082 #, no-wrap
9083 msgid ""
9084 " get-autosync\n"
9085 "\n"
9086 msgstr ""
9087
9088 #. type: textblock
9089 #: ../fish/guestfish-actions.pod:1522 ../src/guestfs-actions.pod:2432
9090 msgid "Get the autosync flag."
9091 msgstr ""
9092
9093 #. type: =head2
9094 #: ../fish/guestfish-actions.pod:1524
9095 msgid "get-direct"
9096 msgstr ""
9097
9098 #. type: verbatim
9099 #: ../fish/guestfish-actions.pod:1526
9100 #, no-wrap
9101 msgid ""
9102 " get-direct\n"
9103 "\n"
9104 msgstr ""
9105
9106 #. type: textblock
9107 #: ../fish/guestfish-actions.pod:1528 ../src/guestfs-actions.pod:2443
9108 msgid "Return the direct appliance mode flag."
9109 msgstr ""
9110
9111 #. type: =head2
9112 #: ../fish/guestfish-actions.pod:1530
9113 msgid "get-e2label"
9114 msgstr ""
9115
9116 #. type: verbatim
9117 #: ../fish/guestfish-actions.pod:1532
9118 #, no-wrap
9119 msgid ""
9120 " get-e2label device\n"
9121 "\n"
9122 msgstr ""
9123
9124 #. type: textblock
9125 #: ../fish/guestfish-actions.pod:1534 ../src/guestfs-actions.pod:2462
9126 msgid "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
9127 msgstr ""
9128
9129 #. type: textblock
9130 #: ../fish/guestfish-actions.pod:1537
9131 msgid ""
9132 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
9133 "instead."
9134 msgstr ""
9135
9136 #. type: =head2
9137 #: ../fish/guestfish-actions.pod:1544
9138 msgid "get-e2uuid"
9139 msgstr ""
9140
9141 #. type: verbatim
9142 #: ../fish/guestfish-actions.pod:1546
9143 #, no-wrap
9144 msgid ""
9145 " get-e2uuid device\n"
9146 "\n"
9147 msgstr ""
9148
9149 #. type: textblock
9150 #: ../fish/guestfish-actions.pod:1548 ../src/guestfs-actions.pod:2483
9151 msgid "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
9152 msgstr ""
9153
9154 #. type: textblock
9155 #: ../fish/guestfish-actions.pod:1551
9156 msgid ""
9157 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
9158 "instead."
9159 msgstr ""
9160
9161 #. type: =head2
9162 #: ../fish/guestfish-actions.pod:1558
9163 msgid "get-memsize"
9164 msgstr ""
9165
9166 #. type: verbatim
9167 #: ../fish/guestfish-actions.pod:1560
9168 #, no-wrap
9169 msgid ""
9170 " get-memsize\n"
9171 "\n"
9172 msgstr ""
9173
9174 #. type: textblock
9175 #: ../fish/guestfish-actions.pod:1562 ../src/guestfs-actions.pod:2496
9176 msgid "This gets the memory size in megabytes allocated to the qemu subprocess."
9177 msgstr ""
9178
9179 #. type: textblock
9180 #: ../fish/guestfish-actions.pod:1565
9181 msgid ""
9182 "If L</set-memsize> was not called on this handle, and if "
9183 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
9184 "value for memsize."
9185 msgstr ""
9186
9187 #. type: textblock
9188 #: ../fish/guestfish-actions.pod:1569 ../fish/guestfish-actions.pod:1626 ../fish/guestfish-actions.pod:4499 ../fish/guestfish-actions.pod:4601 ../src/guestfs-actions.pod:2503 ../src/guestfs-actions.pod:2595 ../src/guestfs-actions.pod:6960 ../src/guestfs-actions.pod:7086
9189 msgid "For more information on the architecture of libguestfs, see L<guestfs(3)>."
9190 msgstr ""
9191
9192 #. type: =head2
9193 #: ../fish/guestfish-actions.pod:1572
9194 msgid "get-network"
9195 msgstr ""
9196
9197 #. type: verbatim
9198 #: ../fish/guestfish-actions.pod:1574
9199 #, no-wrap
9200 msgid ""
9201 " get-network\n"
9202 "\n"
9203 msgstr ""
9204
9205 #. type: textblock
9206 #: ../fish/guestfish-actions.pod:1576 ../src/guestfs-actions.pod:2515
9207 msgid "This returns the enable network flag."
9208 msgstr ""
9209
9210 #. type: =head2
9211 #: ../fish/guestfish-actions.pod:1578
9212 msgid "get-path"
9213 msgstr ""
9214
9215 #. type: verbatim
9216 #: ../fish/guestfish-actions.pod:1580
9217 #, no-wrap
9218 msgid ""
9219 " get-path\n"
9220 "\n"
9221 msgstr ""
9222
9223 #. type: textblock
9224 #: ../fish/guestfish-actions.pod:1582 ../src/guestfs-actions.pod:2526
9225 msgid "Return the current search path."
9226 msgstr ""
9227
9228 #. type: textblock
9229 #: ../fish/guestfish-actions.pod:1584 ../src/guestfs-actions.pod:2528
9230 msgid ""
9231 "This is always non-NULL.  If it wasn't set already, then this will return "
9232 "the default path."
9233 msgstr ""
9234
9235 #. type: =head2
9236 #: ../fish/guestfish-actions.pod:1587
9237 msgid "get-pgroup"
9238 msgstr ""
9239
9240 #. type: verbatim
9241 #: ../fish/guestfish-actions.pod:1589
9242 #, no-wrap
9243 msgid ""
9244 " get-pgroup\n"
9245 "\n"
9246 msgstr ""
9247
9248 #. type: textblock
9249 #: ../fish/guestfish-actions.pod:1591 ../src/guestfs-actions.pod:2541
9250 msgid "This returns the process group flag."
9251 msgstr ""
9252
9253 #. type: =head2
9254 #: ../fish/guestfish-actions.pod:1593
9255 msgid "get-pid"
9256 msgstr ""
9257
9258 #. type: =head2
9259 #: ../fish/guestfish-actions.pod:1595
9260 msgid "pid"
9261 msgstr ""
9262
9263 #. type: verbatim
9264 #: ../fish/guestfish-actions.pod:1597
9265 #, no-wrap
9266 msgid ""
9267 " get-pid\n"
9268 "\n"
9269 msgstr ""
9270
9271 #. type: textblock
9272 #: ../fish/guestfish-actions.pod:1599 ../src/guestfs-actions.pod:2552
9273 msgid ""
9274 "Return the process ID of the qemu subprocess.  If there is no qemu "
9275 "subprocess, then this will return an error."
9276 msgstr ""
9277
9278 #. type: textblock
9279 #: ../fish/guestfish-actions.pod:1602 ../src/guestfs-actions.pod:2555
9280 msgid "This is an internal call used for debugging and testing."
9281 msgstr ""
9282
9283 #. type: =head2
9284 #: ../fish/guestfish-actions.pod:1604
9285 msgid "get-qemu"
9286 msgstr ""
9287
9288 #. type: verbatim
9289 #: ../fish/guestfish-actions.pod:1606
9290 #, no-wrap
9291 msgid ""
9292 " get-qemu\n"
9293 "\n"
9294 msgstr ""
9295
9296 #. type: textblock
9297 #: ../fish/guestfish-actions.pod:1608 ../src/guestfs-actions.pod:2566
9298 msgid "Return the current qemu binary."
9299 msgstr ""
9300
9301 #. type: textblock
9302 #: ../fish/guestfish-actions.pod:1610 ../src/guestfs-actions.pod:2568
9303 msgid ""
9304 "This is always non-NULL.  If it wasn't set already, then this will return "
9305 "the default qemu binary name."
9306 msgstr ""
9307
9308 #. type: =head2
9309 #: ../fish/guestfish-actions.pod:1613
9310 msgid "get-recovery-proc"
9311 msgstr ""
9312
9313 #. type: verbatim
9314 #: ../fish/guestfish-actions.pod:1615
9315 #, no-wrap
9316 msgid ""
9317 " get-recovery-proc\n"
9318 "\n"
9319 msgstr ""
9320
9321 #. type: textblock
9322 #: ../fish/guestfish-actions.pod:1617 ../src/guestfs-actions.pod:2581
9323 msgid "Return the recovery process enabled flag."
9324 msgstr ""
9325
9326 #. type: =head2
9327 #: ../fish/guestfish-actions.pod:1619
9328 msgid "get-selinux"
9329 msgstr ""
9330
9331 #. type: verbatim
9332 #: ../fish/guestfish-actions.pod:1621
9333 #, no-wrap
9334 msgid ""
9335 " get-selinux\n"
9336 "\n"
9337 msgstr ""
9338
9339 #. type: textblock
9340 #: ../fish/guestfish-actions.pod:1623
9341 msgid ""
9342 "This returns the current setting of the selinux flag which is passed to the "
9343 "appliance at boot time.  See L</set-selinux>."
9344 msgstr ""
9345
9346 #. type: =head2
9347 #: ../fish/guestfish-actions.pod:1629
9348 msgid "get-smp"
9349 msgstr ""
9350
9351 #. type: verbatim
9352 #: ../fish/guestfish-actions.pod:1631
9353 #, no-wrap
9354 msgid ""
9355 " get-smp\n"
9356 "\n"
9357 msgstr ""
9358
9359 #. type: textblock
9360 #: ../fish/guestfish-actions.pod:1633 ../src/guestfs-actions.pod:2607
9361 msgid "This returns the number of virtual CPUs assigned to the appliance."
9362 msgstr ""
9363
9364 #. type: =head2
9365 #: ../fish/guestfish-actions.pod:1635
9366 msgid "get-state"
9367 msgstr ""
9368
9369 #. type: verbatim
9370 #: ../fish/guestfish-actions.pod:1637
9371 #, no-wrap
9372 msgid ""
9373 " get-state\n"
9374 "\n"
9375 msgstr ""
9376
9377 #. type: textblock
9378 #: ../fish/guestfish-actions.pod:1639 ../src/guestfs-actions.pod:2618
9379 msgid ""
9380 "This returns the current state as an opaque integer.  This is only useful "
9381 "for printing debug and internal error messages."
9382 msgstr ""
9383
9384 #. type: textblock
9385 #: ../fish/guestfish-actions.pod:1642 ../fish/guestfish-actions.pod:2605 ../fish/guestfish-actions.pod:2623 ../fish/guestfish-actions.pod:2661 ../fish/guestfish-actions.pod:2677 ../src/guestfs-actions.pod:2621 ../src/guestfs-actions.pod:3944 ../src/guestfs-actions.pod:3973 ../src/guestfs-actions.pod:4034 ../src/guestfs-actions.pod:4061
9386 msgid "For more information on states, see L<guestfs(3)>."
9387 msgstr ""
9388
9389 #. type: =head2
9390 #: ../fish/guestfish-actions.pod:1644
9391 msgid "get-trace"
9392 msgstr ""
9393
9394 #. type: verbatim
9395 #: ../fish/guestfish-actions.pod:1646
9396 #, no-wrap
9397 msgid ""
9398 " get-trace\n"
9399 "\n"
9400 msgstr ""
9401
9402 #. type: textblock
9403 #: ../fish/guestfish-actions.pod:1648 ../src/guestfs-actions.pod:2632
9404 msgid "Return the command trace flag."
9405 msgstr ""
9406
9407 #. type: =head2
9408 #: ../fish/guestfish-actions.pod:1650
9409 msgid "get-umask"
9410 msgstr ""
9411
9412 #. type: verbatim
9413 #: ../fish/guestfish-actions.pod:1652
9414 #, no-wrap
9415 msgid ""
9416 " get-umask\n"
9417 "\n"
9418 msgstr ""
9419
9420 #. type: textblock
9421 #: ../fish/guestfish-actions.pod:1654
9422 msgid ""
9423 "Return the current umask.  By default the umask is C<022> unless it has been "
9424 "set by calling L</umask>."
9425 msgstr ""
9426
9427 #. type: =head2
9428 #: ../fish/guestfish-actions.pod:1657
9429 msgid "get-verbose"
9430 msgstr ""
9431
9432 #. type: verbatim
9433 #: ../fish/guestfish-actions.pod:1659
9434 #, no-wrap
9435 msgid ""
9436 " get-verbose\n"
9437 "\n"
9438 msgstr ""
9439
9440 #. type: textblock
9441 #: ../fish/guestfish-actions.pod:1661 ../src/guestfs-actions.pod:2655
9442 msgid "This returns the verbose messages flag."
9443 msgstr ""
9444
9445 #. type: =head2
9446 #: ../fish/guestfish-actions.pod:1663
9447 msgid "getcon"
9448 msgstr ""
9449
9450 #. type: verbatim
9451 #: ../fish/guestfish-actions.pod:1665
9452 #, no-wrap
9453 msgid ""
9454 " getcon\n"
9455 "\n"
9456 msgstr ""
9457
9458 #. type: textblock
9459 #: ../fish/guestfish-actions.pod:1667 ../src/guestfs-actions.pod:2666
9460 msgid "This gets the SELinux security context of the daemon."
9461 msgstr ""
9462
9463 #. type: textblock
9464 #: ../fish/guestfish-actions.pod:1669
9465 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
9466 msgstr ""
9467
9468 #. type: =head2
9469 #: ../fish/guestfish-actions.pod:1672
9470 msgid "getxattr"
9471 msgstr ""
9472
9473 #. type: verbatim
9474 #: ../fish/guestfish-actions.pod:1674
9475 #, no-wrap
9476 msgid ""
9477 " getxattr path name\n"
9478 "\n"
9479 msgstr ""
9480
9481 #. type: textblock
9482 #: ../fish/guestfish-actions.pod:1676
9483 msgid ""
9484 "Get a single extended attribute from file C<path> named C<name>.  This call "
9485 "follows symlinks.  If you want to lookup an extended attribute for the "
9486 "symlink itself, use L</lgetxattr>."
9487 msgstr ""
9488
9489 #. type: textblock
9490 #: ../fish/guestfish-actions.pod:1680 ../fish/guestfish-actions.pod:2750
9491 msgid ""
9492 "Normally it is better to get all extended attributes from a file in one go "
9493 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
9494 "buggy and do not provide a way to list out attributes.  For these "
9495 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
9496 "attributes you want in advance and call this function."
9497 msgstr ""
9498
9499 #. type: textblock
9500 #: ../fish/guestfish-actions.pod:1687 ../fish/guestfish-actions.pod:2757 ../src/guestfs-actions.pod:2695 ../src/guestfs-actions.pod:4194
9501 msgid ""
9502 "Extended attribute values are blobs of binary data.  If there is no extended "
9503 "attribute named C<name>, this returns an error."
9504 msgstr ""
9505
9506 #. type: textblock
9507 #: ../fish/guestfish-actions.pod:1690
9508 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9509 msgstr ""
9510
9511 #. type: =head2
9512 #: ../fish/guestfish-actions.pod:1692
9513 msgid "getxattrs"
9514 msgstr ""
9515
9516 #. type: verbatim
9517 #: ../fish/guestfish-actions.pod:1694
9518 #, no-wrap
9519 msgid ""
9520 " getxattrs path\n"
9521 "\n"
9522 msgstr ""
9523
9524 #. type: textblock
9525 #: ../fish/guestfish-actions.pod:1696 ../src/guestfs-actions.pod:2712
9526 msgid "This call lists the extended attributes of the file or directory C<path>."
9527 msgstr ""
9528
9529 #. type: textblock
9530 #: ../fish/guestfish-actions.pod:1699 ../src/guestfs-actions.pod:2715
9531 msgid ""
9532 "At the system call level, this is a combination of the L<listxattr(2)> and "
9533 "L<getxattr(2)> calls."
9534 msgstr ""
9535
9536 #. type: textblock
9537 #: ../fish/guestfish-actions.pod:1702
9538 msgid "See also: L</lgetxattrs>, L<attr(5)>."
9539 msgstr ""
9540
9541 #. type: =head2
9542 #: ../fish/guestfish-actions.pod:1704
9543 msgid "glob-expand"
9544 msgstr ""
9545
9546 #. type: verbatim
9547 #: ../fish/guestfish-actions.pod:1706
9548 #, no-wrap
9549 msgid ""
9550 " glob-expand pattern\n"
9551 "\n"
9552 msgstr ""
9553
9554 #. type: textblock
9555 #: ../fish/guestfish-actions.pod:1708 ../src/guestfs-actions.pod:2732
9556 msgid ""
9557 "This command searches for all the pathnames matching C<pattern> according to "
9558 "the wildcard expansion rules used by the shell."
9559 msgstr ""
9560
9561 #. type: textblock
9562 #: ../fish/guestfish-actions.pod:1712 ../src/guestfs-actions.pod:2736
9563 msgid "If no paths match, then this returns an empty list (note: not an error)."
9564 msgstr ""
9565
9566 #. type: textblock
9567 #: ../fish/guestfish-actions.pod:1715 ../src/guestfs-actions.pod:2739
9568 msgid ""
9569 "It is just a wrapper around the C L<glob(3)> function with flags "
9570 "C<GLOB_MARK|GLOB_BRACE>.  See that manual page for more details."
9571 msgstr ""
9572
9573 #. type: =head2
9574 #: ../fish/guestfish-actions.pod:1719
9575 msgid "grep"
9576 msgstr ""
9577
9578 #. type: verbatim
9579 #: ../fish/guestfish-actions.pod:1721
9580 #, no-wrap
9581 msgid ""
9582 " grep regex path\n"
9583 "\n"
9584 msgstr ""
9585
9586 #. type: textblock
9587 #: ../fish/guestfish-actions.pod:1723 ../src/guestfs-actions.pod:2756
9588 msgid "This calls the external C<grep> program and returns the matching lines."
9589 msgstr ""
9590
9591 #. type: =head2
9592 #: ../fish/guestfish-actions.pod:1729
9593 msgid "grepi"
9594 msgstr ""
9595
9596 #. type: verbatim
9597 #: ../fish/guestfish-actions.pod:1731
9598 #, no-wrap
9599 msgid ""
9600 " grepi regex path\n"
9601 "\n"
9602 msgstr ""
9603
9604 #. type: textblock
9605 #: ../fish/guestfish-actions.pod:1733 ../src/guestfs-actions.pod:2775
9606 msgid "This calls the external C<grep -i> program and returns the matching lines."
9607 msgstr ""
9608
9609 #. type: =head2
9610 #: ../fish/guestfish-actions.pod:1739
9611 msgid "grub-install"
9612 msgstr ""
9613
9614 #. type: verbatim
9615 #: ../fish/guestfish-actions.pod:1741
9616 #, no-wrap
9617 msgid ""
9618 " grub-install root device\n"
9619 "\n"
9620 msgstr ""
9621
9622 #. type: textblock
9623 #: ../fish/guestfish-actions.pod:1743 ../src/guestfs-actions.pod:2794
9624 msgid ""
9625 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
9626 "with the root directory being C<root>."
9627 msgstr ""
9628
9629 #. type: textblock
9630 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2803
9631 msgid ""
9632 "There is currently no way in the API to install grub2, which is used by most "
9633 "modern Linux guests.  It is possible to run the grub2 command from the "
9634 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
9635 msgstr ""
9636
9637 #. type: textblock
9638 #: ../fish/guestfish-actions.pod:1759 ../src/guestfs-actions.pod:2810
9639 msgid ""
9640 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
9641 "compatible with itself, so this only works in rather narrow circumstances.  "
9642 "Careful testing with each guest version is advisable."
9643 msgstr ""
9644
9645 #. type: textblock
9646 #: ../fish/guestfish-actions.pod:1766 ../src/guestfs-actions.pod:2817
9647 msgid ""
9648 "If grub-install reports the error \"No suitable drive was found in the "
9649 "generated device map.\" it may be that you need to create a "
9650 "C</boot/grub/device.map> file first that contains the mapping between grub "
9651 "device names and Linux device names.  It is usually sufficient to create a "
9652 "file containing:"
9653 msgstr ""
9654
9655 #. type: verbatim
9656 #: ../fish/guestfish-actions.pod:1773 ../src/guestfs-actions.pod:2824
9657 #, no-wrap
9658 msgid ""
9659 " (hd0) /dev/vda\n"
9660 "\n"
9661 msgstr ""
9662
9663 #. type: textblock
9664 #: ../fish/guestfish-actions.pod:1775 ../src/guestfs-actions.pod:2826
9665 msgid "replacing C</dev/vda> with the name of the installation device."
9666 msgstr ""
9667
9668 #. type: =head2
9669 #: ../fish/guestfish-actions.pod:1779
9670 msgid "head"
9671 msgstr ""
9672
9673 #. type: verbatim
9674 #: ../fish/guestfish-actions.pod:1781
9675 #, no-wrap
9676 msgid ""
9677 " head path\n"
9678 "\n"
9679 msgstr ""
9680
9681 #. type: textblock
9682 #: ../fish/guestfish-actions.pod:1783 ../src/guestfs-actions.pod:2840
9683 msgid ""
9684 "This command returns up to the first 10 lines of a file as a list of "
9685 "strings."
9686 msgstr ""
9687
9688 #. type: =head2
9689 #: ../fish/guestfish-actions.pod:1789
9690 msgid "head-n"
9691 msgstr ""
9692
9693 #. type: verbatim
9694 #: ../fish/guestfish-actions.pod:1791
9695 #, no-wrap
9696 msgid ""
9697 " head-n nrlines path\n"
9698 "\n"
9699 msgstr ""
9700
9701 #. type: textblock
9702 #: ../fish/guestfish-actions.pod:1793 ../src/guestfs-actions.pod:2859
9703 msgid ""
9704 "If the parameter C<nrlines> is a positive number, this returns the first "
9705 "C<nrlines> lines of the file C<path>."
9706 msgstr ""
9707
9708 #. type: textblock
9709 #: ../fish/guestfish-actions.pod:1796 ../src/guestfs-actions.pod:2862
9710 msgid ""
9711 "If the parameter C<nrlines> is a negative number, this returns lines from "
9712 "the file C<path>, excluding the last C<nrlines> lines."
9713 msgstr ""
9714
9715 #. type: textblock
9716 #: ../fish/guestfish-actions.pod:1799 ../fish/guestfish-actions.pod:4982 ../src/guestfs-actions.pod:2865 ../src/guestfs-actions.pod:7665
9717 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
9718 msgstr ""
9719
9720 #. type: =head2
9721 #: ../fish/guestfish-actions.pod:1804
9722 msgid "hexdump"
9723 msgstr ""
9724
9725 #. type: verbatim
9726 #: ../fish/guestfish-actions.pod:1806
9727 #, no-wrap
9728 msgid ""
9729 " hexdump path\n"
9730 "\n"
9731 msgstr ""
9732
9733 #. type: textblock
9734 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2882
9735 msgid ""
9736 "This runs C<hexdump -C> on the given C<path>.  The result is the "
9737 "human-readable, canonical hex dump of the file."
9738 msgstr ""
9739
9740 #. type: =head2
9741 #: ../fish/guestfish-actions.pod:1814
9742 msgid "initrd-cat"
9743 msgstr ""
9744
9745 #. type: verbatim
9746 #: ../fish/guestfish-actions.pod:1816
9747 #, no-wrap
9748 msgid ""
9749 " initrd-cat initrdpath filename\n"
9750 "\n"
9751 msgstr ""
9752
9753 #. type: textblock
9754 #: ../fish/guestfish-actions.pod:1818 ../src/guestfs-actions.pod:2901
9755 msgid ""
9756 "This command unpacks the file C<filename> from the initrd file called "
9757 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
9758 "character."
9759 msgstr ""
9760
9761 #. type: textblock
9762 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2905
9763 msgid ""
9764 "For example, in guestfish you could use the following command to examine the "
9765 "boot script (usually called C</init>)  contained in a Linux initrd or "
9766 "initramfs image:"
9767 msgstr ""
9768
9769 #. type: verbatim
9770 #: ../fish/guestfish-actions.pod:1826 ../src/guestfs-actions.pod:2909
9771 #, no-wrap
9772 msgid ""
9773 " initrd-cat /boot/initrd-<version>.img init\n"
9774 "\n"
9775 msgstr ""
9776
9777 #. type: textblock
9778 #: ../fish/guestfish-actions.pod:1828
9779 msgid "See also L</initrd-list>."
9780 msgstr ""
9781
9782 #. type: =head2
9783 #: ../fish/guestfish-actions.pod:1833
9784 msgid "initrd-list"
9785 msgstr ""
9786
9787 #. type: verbatim
9788 #: ../fish/guestfish-actions.pod:1835
9789 #, no-wrap
9790 msgid ""
9791 " initrd-list path\n"
9792 "\n"
9793 msgstr ""
9794
9795 #. type: textblock
9796 #: ../fish/guestfish-actions.pod:1837 ../src/guestfs-actions.pod:2928
9797 msgid "This command lists out files contained in an initrd."
9798 msgstr ""
9799
9800 #. type: textblock
9801 #: ../fish/guestfish-actions.pod:1839 ../src/guestfs-actions.pod:2930
9802 msgid ""
9803 "The files are listed without any initial C</> character.  The files are "
9804 "listed in the order they appear (not necessarily alphabetical).  Directory "
9805 "names are listed as separate items."
9806 msgstr ""
9807
9808 #. type: textblock
9809 #: ../fish/guestfish-actions.pod:1843 ../src/guestfs-actions.pod:2934
9810 msgid ""
9811 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
9812 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
9813 "files)."
9814 msgstr ""
9815
9816 #. type: =head2
9817 #: ../fish/guestfish-actions.pod:1847
9818 msgid "inotify-add-watch"
9819 msgstr ""
9820
9821 #. type: verbatim
9822 #: ../fish/guestfish-actions.pod:1849
9823 #, no-wrap
9824 msgid ""
9825 " inotify-add-watch path mask\n"
9826 "\n"
9827 msgstr ""
9828
9829 #. type: textblock
9830 #: ../fish/guestfish-actions.pod:1851 ../src/guestfs-actions.pod:2951
9831 msgid "Watch C<path> for the events listed in C<mask>."
9832 msgstr ""
9833
9834 #. type: textblock
9835 #: ../fish/guestfish-actions.pod:1853 ../src/guestfs-actions.pod:2953
9836 msgid ""
9837 "Note that if C<path> is a directory then events within that directory are "
9838 "watched, but this does I<not> happen recursively (in subdirectories)."
9839 msgstr ""
9840
9841 #. type: textblock
9842 #: ../fish/guestfish-actions.pod:1857 ../src/guestfs-actions.pod:2957
9843 msgid ""
9844 "Note for non-C or non-Linux callers: the inotify events are defined by the "
9845 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
9846 msgstr ""
9847
9848 #. type: =head2
9849 #: ../fish/guestfish-actions.pod:1861
9850 msgid "inotify-close"
9851 msgstr ""
9852
9853 #. type: verbatim
9854 #: ../fish/guestfish-actions.pod:1863
9855 #, no-wrap
9856 msgid ""
9857 " inotify-close\n"
9858 "\n"
9859 msgstr ""
9860
9861 #. type: textblock
9862 #: ../fish/guestfish-actions.pod:1865 ../src/guestfs-actions.pod:2970
9863 msgid ""
9864 "This closes the inotify handle which was previously opened by inotify_init.  "
9865 "It removes all watches, throws away any pending events, and deallocates all "
9866 "resources."
9867 msgstr ""
9868
9869 #. type: =head2
9870 #: ../fish/guestfish-actions.pod:1869
9871 msgid "inotify-files"
9872 msgstr ""
9873
9874 #. type: verbatim
9875 #: ../fish/guestfish-actions.pod:1871
9876 #, no-wrap
9877 msgid ""
9878 " inotify-files\n"
9879 "\n"
9880 msgstr ""
9881
9882 #. type: textblock
9883 #: ../fish/guestfish-actions.pod:1873
9884 msgid ""
9885 "This function is a helpful wrapper around L</inotify-read> which just "
9886 "returns a list of pathnames of objects that were touched.  The returned "
9887 "pathnames are sorted and deduplicated."
9888 msgstr ""
9889
9890 #. type: =head2
9891 #: ../fish/guestfish-actions.pod:1877
9892 msgid "inotify-init"
9893 msgstr ""
9894
9895 #. type: verbatim
9896 #: ../fish/guestfish-actions.pod:1879
9897 #, no-wrap
9898 msgid ""
9899 " inotify-init maxevents\n"
9900 "\n"
9901 msgstr ""
9902
9903 #. type: textblock
9904 #: ../fish/guestfish-actions.pod:1881 ../src/guestfs-actions.pod:2999
9905 msgid ""
9906 "This command creates a new inotify handle.  The inotify subsystem can be "
9907 "used to notify events which happen to objects in the guest filesystem."
9908 msgstr ""
9909
9910 #. type: textblock
9911 #: ../fish/guestfish-actions.pod:1885
9912 msgid ""
9913 "C<maxevents> is the maximum number of events which will be queued up between "
9914 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
9915 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
9916 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
9917 "but records the fact that it threw them away by setting a flag "
9918 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
9919 msgstr ""
9920
9921 #. type: textblock
9922 #: ../fish/guestfish-actions.pod:1895
9923 msgid ""
9924 "Before any events are generated, you have to add some watches to the "
9925 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
9926 "L</inotify-watch-all>."
9927 msgstr ""
9928
9929 #. type: textblock
9930 #: ../fish/guestfish-actions.pod:1901
9931 msgid ""
9932 "Queued up events should be read periodically by calling L</inotify-read> (or "
9933 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
9934 "If you don't read the events out often enough then you risk the internal "
9935 "queue overflowing."
9936 msgstr ""
9937
9938 #. type: textblock
9939 #: ../fish/guestfish-actions.pod:1908
9940 msgid ""
9941 "The handle should be closed after use by calling L</inotify-close>.  This "
9942 "also removes any watches automatically."
9943 msgstr ""
9944
9945 #. type: textblock
9946 #: ../fish/guestfish-actions.pod:1912 ../src/guestfs-actions.pod:3030
9947 msgid ""
9948 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
9949 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
9950 "that there is one global inotify handle per libguestfs instance."
9951 msgstr ""
9952
9953 #. type: =head2
9954 #: ../fish/guestfish-actions.pod:1917
9955 msgid "inotify-read"
9956 msgstr ""
9957
9958 #. type: verbatim
9959 #: ../fish/guestfish-actions.pod:1919
9960 #, no-wrap
9961 msgid ""
9962 " inotify-read\n"
9963 "\n"
9964 msgstr ""
9965
9966 #. type: textblock
9967 #: ../fish/guestfish-actions.pod:1921 ../src/guestfs-actions.pod:3044
9968 msgid ""
9969 "Return the complete queue of events that have happened since the previous "
9970 "read call."
9971 msgstr ""
9972
9973 #. type: textblock
9974 #: ../fish/guestfish-actions.pod:1924 ../src/guestfs-actions.pod:3047
9975 msgid "If no events have happened, this returns an empty list."
9976 msgstr ""
9977
9978 #. type: textblock
9979 #: ../fish/guestfish-actions.pod:1926 ../src/guestfs-actions.pod:3049
9980 msgid ""
9981 "I<Note>: In order to make sure that all events have been read, you must call "
9982 "this function repeatedly until it returns an empty list.  The reason is that "
9983 "the call will read events up to the maximum appliance-to-host message size "
9984 "and leave remaining events in the queue."
9985 msgstr ""
9986
9987 #. type: =head2
9988 #: ../fish/guestfish-actions.pod:1932
9989 msgid "inotify-rm-watch"
9990 msgstr ""
9991
9992 #. type: verbatim
9993 #: ../fish/guestfish-actions.pod:1934
9994 #, no-wrap
9995 msgid ""
9996 " inotify-rm-watch wd\n"
9997 "\n"
9998 msgstr ""
9999
10000 #. type: textblock
10001 #: ../fish/guestfish-actions.pod:1936
10002 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
10003 msgstr ""
10004
10005 #. type: =head2
10006 #: ../fish/guestfish-actions.pod:1939
10007 msgid "inspect-get-arch"
10008 msgstr ""
10009
10010 #. type: verbatim
10011 #: ../fish/guestfish-actions.pod:1941
10012 #, no-wrap
10013 msgid ""
10014 " inspect-get-arch root\n"
10015 "\n"
10016 msgstr ""
10017
10018 #. type: textblock
10019 #: ../fish/guestfish-actions.pod:1943
10020 msgid ""
10021 "This returns the architecture of the inspected operating system.  The "
10022 "possible return values are listed under L</file-architecture>."
10023 msgstr ""
10024
10025 #. type: textblock
10026 #: ../fish/guestfish-actions.pod:1947 ../src/guestfs-actions.pod:3084
10027 msgid ""
10028 "If the architecture could not be determined, then the string C<unknown> is "
10029 "returned."
10030 msgstr ""
10031
10032 #. type: textblock
10033 #: ../fish/guestfish-actions.pod:1950 ../fish/guestfish-actions.pod:2045 ../fish/guestfish-actions.pod:2124 ../fish/guestfish-actions.pod:2136 ../fish/guestfish-actions.pod:2220 ../fish/guestfish-actions.pod:2282 ../fish/guestfish-actions.pod:2303 ../fish/guestfish-actions.pod:2317 ../fish/guestfish-actions.pod:2357 ../fish/guestfish-actions.pod:2397 ../fish/guestfish-actions.pod:2410 ../fish/guestfish-actions.pod:2423 ../fish/guestfish-actions.pod:2433 ../fish/guestfish-actions.pod:2443 ../fish/guestfish-actions.pod:2455 ../fish/guestfish-actions.pod:2551 ../fish/guestfish-actions.pod:2585 ../src/guestfs-actions.pod:3087 ../src/guestfs-actions.pod:3189 ../src/guestfs-actions.pod:3293 ../src/guestfs-actions.pod:3312 ../src/guestfs-actions.pod:3443 ../src/guestfs-actions.pod:3527 ../src/guestfs-actions.pod:3555 ../src/guestfs-actions.pod:3576 ../src/guestfs-actions.pod:3629 ../src/guestfs-actions.pod:3677 ../src/guestfs-actions.pod:3697 ../src/guestfs-actions.pod:3717 ../src/guestfs-actions.pod:3734 ../src/guestfs-actions.pod:3750 ../src/guestfs-actions.pod:3768 ../src/guestfs-actions.pod:3870 ../src/guestfs-actions.pod:3911
10034 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
10035 msgstr ""
10036
10037 #. type: =head2
10038 #: ../fish/guestfish-actions.pod:1952
10039 msgid "inspect-get-distro"
10040 msgstr ""
10041
10042 #. type: verbatim
10043 #: ../fish/guestfish-actions.pod:1954
10044 #, no-wrap
10045 msgid ""
10046 " inspect-get-distro root\n"
10047 "\n"
10048 msgstr ""
10049
10050 #. type: textblock
10051 #: ../fish/guestfish-actions.pod:1956 ../src/guestfs-actions.pod:3100
10052 msgid "This returns the distro (distribution) of the inspected operating system."
10053 msgstr ""
10054
10055 #. type: textblock
10056 #: ../fish/guestfish-actions.pod:1959 ../src/guestfs-actions.pod:3103
10057 msgid "Currently defined distros are:"
10058 msgstr ""
10059
10060 #. type: =item
10061 #: ../fish/guestfish-actions.pod:1963 ../src/guestfs-actions.pod:3107
10062 msgid "\"archlinux\""
10063 msgstr ""
10064
10065 #. type: textblock
10066 #: ../fish/guestfish-actions.pod:1965 ../src/guestfs-actions.pod:3109
10067 msgid "Arch Linux."
10068 msgstr ""
10069
10070 #. type: =item
10071 #: ../fish/guestfish-actions.pod:1967 ../src/guestfs-actions.pod:3111
10072 msgid "\"centos\""
10073 msgstr ""
10074
10075 #. type: textblock
10076 #: ../fish/guestfish-actions.pod:1969 ../src/guestfs-actions.pod:3113
10077 msgid "CentOS."
10078 msgstr ""
10079
10080 #. type: =item
10081 #: ../fish/guestfish-actions.pod:1971 ../src/guestfs-actions.pod:3115
10082 msgid "\"debian\""
10083 msgstr ""
10084
10085 #. type: textblock
10086 #: ../fish/guestfish-actions.pod:1973 ../src/guestfs-actions.pod:3117
10087 msgid "Debian."
10088 msgstr ""
10089
10090 #. type: =item
10091 #: ../fish/guestfish-actions.pod:1975 ../src/guestfs-actions.pod:3119
10092 msgid "\"fedora\""
10093 msgstr ""
10094
10095 #. type: textblock
10096 #: ../fish/guestfish-actions.pod:1977 ../src/guestfs-actions.pod:3121
10097 msgid "Fedora."
10098 msgstr ""
10099
10100 #. type: =item
10101 #: ../fish/guestfish-actions.pod:1979 ../src/guestfs-actions.pod:3123
10102 msgid "\"gentoo\""
10103 msgstr ""
10104
10105 #. type: textblock
10106 #: ../fish/guestfish-actions.pod:1981 ../src/guestfs-actions.pod:3125
10107 msgid "Gentoo."
10108 msgstr ""
10109
10110 #. type: =item
10111 #: ../fish/guestfish-actions.pod:1983 ../src/guestfs-actions.pod:3127
10112 msgid "\"linuxmint\""
10113 msgstr ""
10114
10115 #. type: textblock
10116 #: ../fish/guestfish-actions.pod:1985 ../src/guestfs-actions.pod:3129
10117 msgid "Linux Mint."
10118 msgstr ""
10119
10120 #. type: =item
10121 #: ../fish/guestfish-actions.pod:1987 ../src/guestfs-actions.pod:3131
10122 msgid "\"mageia\""
10123 msgstr ""
10124
10125 #. type: textblock
10126 #: ../fish/guestfish-actions.pod:1989 ../src/guestfs-actions.pod:3133
10127 msgid "Mageia."
10128 msgstr ""
10129
10130 #. type: =item
10131 #: ../fish/guestfish-actions.pod:1991 ../src/guestfs-actions.pod:3135
10132 msgid "\"mandriva\""
10133 msgstr ""
10134
10135 #. type: textblock
10136 #: ../fish/guestfish-actions.pod:1993 ../src/guestfs-actions.pod:3137
10137 msgid "Mandriva."
10138 msgstr ""
10139
10140 #. type: =item
10141 #: ../fish/guestfish-actions.pod:1995 ../src/guestfs-actions.pod:3139
10142 msgid "\"meego\""
10143 msgstr ""
10144
10145 #. type: textblock
10146 #: ../fish/guestfish-actions.pod:1997 ../src/guestfs-actions.pod:3141
10147 msgid "MeeGo."
10148 msgstr ""
10149
10150 #. type: =item
10151 #: ../fish/guestfish-actions.pod:1999 ../src/guestfs-actions.pod:3143
10152 msgid "\"opensuse\""
10153 msgstr ""
10154
10155 #. type: textblock
10156 #: ../fish/guestfish-actions.pod:2001 ../src/guestfs-actions.pod:3145
10157 msgid "OpenSUSE."
10158 msgstr ""
10159
10160 #. type: =item
10161 #: ../fish/guestfish-actions.pod:2003 ../src/guestfs-actions.pod:3147
10162 msgid "\"pardus\""
10163 msgstr ""
10164
10165 #. type: textblock
10166 #: ../fish/guestfish-actions.pod:2005 ../src/guestfs-actions.pod:3149
10167 msgid "Pardus."
10168 msgstr ""
10169
10170 #. type: =item
10171 #: ../fish/guestfish-actions.pod:2007 ../src/guestfs-actions.pod:3151
10172 msgid "\"redhat-based\""
10173 msgstr ""
10174
10175 #. type: textblock
10176 #: ../fish/guestfish-actions.pod:2009 ../src/guestfs-actions.pod:3153
10177 msgid "Some Red Hat-derived distro."
10178 msgstr ""
10179
10180 #. type: =item
10181 #: ../fish/guestfish-actions.pod:2011 ../src/guestfs-actions.pod:3155
10182 msgid "\"rhel\""
10183 msgstr ""
10184
10185 #. type: textblock
10186 #: ../fish/guestfish-actions.pod:2013 ../src/guestfs-actions.pod:3157
10187 msgid "Red Hat Enterprise Linux."
10188 msgstr ""
10189
10190 #. type: =item
10191 #: ../fish/guestfish-actions.pod:2015 ../src/guestfs-actions.pod:3159
10192 msgid "\"scientificlinux\""
10193 msgstr ""
10194
10195 #. type: textblock
10196 #: ../fish/guestfish-actions.pod:2017 ../src/guestfs-actions.pod:3161
10197 msgid "Scientific Linux."
10198 msgstr ""
10199
10200 #. type: =item
10201 #: ../fish/guestfish-actions.pod:2019 ../src/guestfs-actions.pod:3163
10202 msgid "\"slackware\""
10203 msgstr ""
10204
10205 #. type: textblock
10206 #: ../fish/guestfish-actions.pod:2021 ../src/guestfs-actions.pod:3165
10207 msgid "Slackware."
10208 msgstr ""
10209
10210 #. type: =item
10211 #: ../fish/guestfish-actions.pod:2023 ../src/guestfs-actions.pod:3167
10212 msgid "\"ttylinux\""
10213 msgstr ""
10214
10215 #. type: textblock
10216 #: ../fish/guestfish-actions.pod:2025 ../src/guestfs-actions.pod:3169
10217 msgid "ttylinux."
10218 msgstr ""
10219
10220 #. type: =item
10221 #: ../fish/guestfish-actions.pod:2027 ../src/guestfs-actions.pod:3171
10222 msgid "\"ubuntu\""
10223 msgstr ""
10224
10225 #. type: textblock
10226 #: ../fish/guestfish-actions.pod:2029 ../src/guestfs-actions.pod:3173
10227 msgid "Ubuntu."
10228 msgstr ""
10229
10230 #. type: =item
10231 #: ../fish/guestfish-actions.pod:2031 ../fish/guestfish-actions.pod:2115 ../fish/guestfish-actions.pod:2388 ../src/guestfs-actions.pod:3175 ../src/guestfs-actions.pod:3284 ../src/guestfs-actions.pod:3668
10232 msgid "\"unknown\""
10233 msgstr ""
10234
10235 #. type: textblock
10236 #: ../fish/guestfish-actions.pod:2033 ../src/guestfs-actions.pod:3177
10237 msgid "The distro could not be determined."
10238 msgstr ""
10239
10240 #. type: =item
10241 #: ../fish/guestfish-actions.pod:2035 ../fish/guestfish-actions.pod:2372 ../src/guestfs-actions.pod:3179 ../src/guestfs-actions.pod:3652
10242 msgid "\"windows\""
10243 msgstr ""
10244
10245 #. type: textblock
10246 #: ../fish/guestfish-actions.pod:2037 ../src/guestfs-actions.pod:3181
10247 msgid ""
10248 "Windows does not have distributions.  This string is returned if the OS type "
10249 "is Windows."
10250 msgstr ""
10251
10252 #. type: textblock
10253 #: ../fish/guestfish-actions.pod:2042 ../fish/guestfish-actions.pod:2121 ../fish/guestfish-actions.pod:2394 ../src/guestfs-actions.pod:3186 ../src/guestfs-actions.pod:3290 ../src/guestfs-actions.pod:3674
10254 msgid ""
10255 "Future versions of libguestfs may return other strings here.  The caller "
10256 "should be prepared to handle any string."
10257 msgstr ""
10258
10259 #. type: =head2
10260 #: ../fish/guestfish-actions.pod:2047
10261 msgid "inspect-get-drive-mappings"
10262 msgstr ""
10263
10264 #. type: verbatim
10265 #: ../fish/guestfish-actions.pod:2049
10266 #, no-wrap
10267 msgid ""
10268 " inspect-get-drive-mappings root\n"
10269 "\n"
10270 msgstr ""
10271
10272 #. type: textblock
10273 #: ../fish/guestfish-actions.pod:2051 ../src/guestfs-actions.pod:3202
10274 msgid ""
10275 "This call is useful for Windows which uses a primitive system of assigning "
10276 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
10277 "Windows Registry to find out how disks/partitions are mapped to drive "
10278 "letters, and returns a hash table as in the example below:"
10279 msgstr ""
10280
10281 #. type: verbatim
10282 #: ../fish/guestfish-actions.pod:2057 ../src/guestfs-actions.pod:3208
10283 #, no-wrap
10284 msgid ""
10285 " C      =>     /dev/vda2\n"
10286 " E      =>     /dev/vdb1\n"
10287 " F      =>     /dev/vdc1\n"
10288 "\n"
10289 msgstr ""
10290
10291 #. type: textblock
10292 #: ../fish/guestfish-actions.pod:2061 ../src/guestfs-actions.pod:3212
10293 msgid ""
10294 "Note that keys are drive letters.  For Windows, the key is case insensitive "
10295 "and just contains the drive letter, without the customary colon separator "
10296 "character."
10297 msgstr ""
10298
10299 #. type: textblock
10300 #: ../fish/guestfish-actions.pod:2065 ../src/guestfs-actions.pod:3216
10301 msgid ""
10302 "In future we may support other operating systems that also used drive "
10303 "letters, but the keys for those might not be case insensitive and might be "
10304 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
10305 "C<h1> etc."
10306 msgstr ""
10307
10308 #. type: textblock
10309 #: ../fish/guestfish-actions.pod:2070 ../src/guestfs-actions.pod:3221
10310 msgid ""
10311 "For Windows guests, currently only hard drive mappings are returned.  "
10312 "Removable disks (eg. DVD-ROMs) are ignored."
10313 msgstr ""
10314
10315 #. type: textblock
10316 #: ../fish/guestfish-actions.pod:2073 ../src/guestfs-actions.pod:3224
10317 msgid ""
10318 "For guests that do not use drive mappings, or if the drive mappings could "
10319 "not be determined, this returns an empty hash table."
10320 msgstr ""
10321
10322 #. type: textblock
10323 #: ../fish/guestfish-actions.pod:2076
10324 msgid ""
10325 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10326 "L</inspect-get-mountpoints>, L</inspect-get-filesystems>."
10327 msgstr ""
10328
10329 #. type: =head2
10330 #: ../fish/guestfish-actions.pod:2080
10331 msgid "inspect-get-filesystems"
10332 msgstr ""
10333
10334 #. type: verbatim
10335 #: ../fish/guestfish-actions.pod:2082
10336 #, no-wrap
10337 msgid ""
10338 " inspect-get-filesystems root\n"
10339 "\n"
10340 msgstr ""
10341
10342 #. type: textblock
10343 #: ../fish/guestfish-actions.pod:2084 ../src/guestfs-actions.pod:3245
10344 msgid ""
10345 "This returns a list of all the filesystems that we think are associated with "
10346 "this operating system.  This includes the root filesystem, other ordinary "
10347 "filesystems, and non-mounted devices like swap partitions."
10348 msgstr ""
10349
10350 #. type: textblock
10351 #: ../fish/guestfish-actions.pod:2089 ../src/guestfs-actions.pod:3250
10352 msgid ""
10353 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
10354 "to be shared between operating systems."
10355 msgstr ""
10356
10357 #. type: textblock
10358 #: ../fish/guestfish-actions.pod:2092
10359 msgid ""
10360 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10361 "L</inspect-get-mountpoints>."
10362 msgstr ""
10363
10364 #. type: =head2
10365 #: ../fish/guestfish-actions.pod:2095
10366 msgid "inspect-get-format"
10367 msgstr ""
10368
10369 #. type: verbatim
10370 #: ../fish/guestfish-actions.pod:2097
10371 #, no-wrap
10372 msgid ""
10373 " inspect-get-format root\n"
10374 "\n"
10375 msgstr ""
10376
10377 #. type: textblock
10378 #: ../fish/guestfish-actions.pod:2099 ../src/guestfs-actions.pod:3268
10379 msgid ""
10380 "This returns the format of the inspected operating system.  You can use it "
10381 "to detect install images, live CDs and similar."
10382 msgstr ""
10383
10384 #. type: textblock
10385 #: ../fish/guestfish-actions.pod:2102 ../src/guestfs-actions.pod:3271
10386 msgid "Currently defined formats are:"
10387 msgstr ""
10388
10389 #. type: =item
10390 #: ../fish/guestfish-actions.pod:2106 ../src/guestfs-actions.pod:3275
10391 msgid "\"installed\""
10392 msgstr ""
10393
10394 #. type: textblock
10395 #: ../fish/guestfish-actions.pod:2108 ../src/guestfs-actions.pod:3277
10396 msgid "This is an installed operating system."
10397 msgstr ""
10398
10399 #. type: =item
10400 #: ../fish/guestfish-actions.pod:2110 ../src/guestfs-actions.pod:3279
10401 msgid "\"installer\""
10402 msgstr ""
10403
10404 #. type: textblock
10405 #: ../fish/guestfish-actions.pod:2112 ../src/guestfs-actions.pod:3281
10406 msgid ""
10407 "The disk image being inspected is not an installed operating system, but a "
10408 "I<bootable> install disk, live CD, or similar."
10409 msgstr ""
10410
10411 #. type: textblock
10412 #: ../fish/guestfish-actions.pod:2117 ../src/guestfs-actions.pod:3286
10413 msgid "The format of this disk image is not known."
10414 msgstr ""
10415
10416 #. type: =head2
10417 #: ../fish/guestfish-actions.pod:2126
10418 msgid "inspect-get-hostname"
10419 msgstr ""
10420
10421 #. type: verbatim
10422 #: ../fish/guestfish-actions.pod:2128
10423 #, no-wrap
10424 msgid ""
10425 " inspect-get-hostname root\n"
10426 "\n"
10427 msgstr ""
10428
10429 #. type: textblock
10430 #: ../fish/guestfish-actions.pod:2130 ../src/guestfs-actions.pod:3306
10431 msgid ""
10432 "This function returns the hostname of the operating system as found by "
10433 "inspection of the guest's configuration files."
10434 msgstr ""
10435
10436 #. type: textblock
10437 #: ../fish/guestfish-actions.pod:2133 ../src/guestfs-actions.pod:3309
10438 msgid ""
10439 "If the hostname could not be determined, then the string C<unknown> is "
10440 "returned."
10441 msgstr ""
10442
10443 #. type: =head2
10444 #: ../fish/guestfish-actions.pod:2138
10445 msgid "inspect-get-icon"
10446 msgstr ""
10447
10448 #. type: verbatim
10449 #: ../fish/guestfish-actions.pod:2140
10450 #, no-wrap
10451 msgid ""
10452 " inspect-get-icon root [favicon:true|false] [highquality:true|false]\n"
10453 "\n"
10454 msgstr ""
10455
10456 #. type: textblock
10457 #: ../fish/guestfish-actions.pod:2142 ../src/guestfs-actions.pod:3335
10458 msgid ""
10459 "This function returns an icon corresponding to the inspected operating "
10460 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
10461 "to PNG if necessary)."
10462 msgstr ""
10463
10464 #. type: textblock
10465 #: ../fish/guestfish-actions.pod:2146 ../src/guestfs-actions.pod:3339
10466 msgid ""
10467 "If it was not possible to get an icon this function returns a zero-length "
10468 "(non-NULL) buffer.  I<Callers must check for this case>."
10469 msgstr ""
10470
10471 #. type: textblock
10472 #: ../fish/guestfish-actions.pod:2149 ../src/guestfs-actions.pod:3342
10473 msgid ""
10474 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
10475 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
10476 "this file will be returned.  You can disable favicons by passing the "
10477 "optional C<favicon> boolean as false (default is true)."
10478 msgstr ""
10479
10480 #. type: textblock
10481 #: ../fish/guestfish-actions.pod:2155 ../src/guestfs-actions.pod:3348
10482 msgid ""
10483 "If finding the favicon fails, then we look in other places in the guest for "
10484 "a suitable icon."
10485 msgstr ""
10486
10487 #. type: textblock
10488 #: ../fish/guestfish-actions.pod:2158 ../src/guestfs-actions.pod:3351
10489 msgid ""
10490 "If the optional C<highquality> boolean is true then only high quality icons "
10491 "are returned, which means only icons of high resolution with an alpha "
10492 "channel.  The default (false) is to return any icon we can, even if it is of "
10493 "substandard quality."
10494 msgstr ""
10495
10496 #. type: textblock
10497 #: ../fish/guestfish-actions.pod:2169 ../src/guestfs-actions.pod:3362
10498 msgid ""
10499 "Unlike most other inspection API calls, the guest's disks must be mounted up "
10500 "before you call this, since it needs to read information from the guest "
10501 "filesystem during the call."
10502 msgstr ""
10503
10504 #. type: textblock
10505 #: ../fish/guestfish-actions.pod:2175 ../src/guestfs-actions.pod:3368
10506 msgid ""
10507 "B<Security:> The icon data comes from the untrusted guest, and should be "
10508 "treated with caution.  PNG files have been known to contain exploits.  "
10509 "Ensure that libpng (or other relevant libraries) are fully up to date before "
10510 "trying to process or display the icon."
10511 msgstr ""
10512
10513 #. type: textblock
10514 #: ../fish/guestfish-actions.pod:2183 ../src/guestfs-actions.pod:3376
10515 msgid ""
10516 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
10517 "tries to return the largest, highest quality icon available.  The "
10518 "application must scale the icon to the required size."
10519 msgstr ""
10520
10521 #. type: textblock
10522 #: ../fish/guestfish-actions.pod:2190 ../src/guestfs-actions.pod:3383
10523 msgid ""
10524 "Extracting icons from Windows guests requires the external C<wrestool> "
10525 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
10526 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
10527 "installed separately."
10528 msgstr ""
10529
10530 #. type: textblock
10531 #: ../fish/guestfish-actions.pod:2197 ../src/guestfs-actions.pod:3390
10532 msgid ""
10533 "Operating system icons are usually trademarks.  Seek legal advice before "
10534 "using trademarks in applications."
10535 msgstr ""
10536
10537 #. type: =head2
10538 #: ../fish/guestfish-actions.pod:2204
10539 msgid "inspect-get-major-version"
10540 msgstr ""
10541
10542 #. type: verbatim
10543 #: ../fish/guestfish-actions.pod:2206
10544 #, no-wrap
10545 msgid ""
10546 " inspect-get-major-version root\n"
10547 "\n"
10548 msgstr ""
10549
10550 #. type: textblock
10551 #: ../fish/guestfish-actions.pod:2208 ../src/guestfs-actions.pod:3431
10552 msgid "This returns the major version number of the inspected operating system."
10553 msgstr ""
10554
10555 #. type: textblock
10556 #: ../fish/guestfish-actions.pod:2211 ../src/guestfs-actions.pod:3434
10557 msgid ""
10558 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
10559 "popular public names used by the operating system.  Notably the operating "
10560 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
10561 "1).  You can find out the real versions corresponding to releases of Windows "
10562 "by consulting Wikipedia or MSDN."
10563 msgstr ""
10564
10565 #. type: textblock
10566 #: ../fish/guestfish-actions.pod:2218 ../fish/guestfish-actions.pod:2229 ../src/guestfs-actions.pod:3441 ../src/guestfs-actions.pod:3458
10567 msgid "If the version could not be determined, then C<0> is returned."
10568 msgstr ""
10569
10570 #. type: =head2
10571 #: ../fish/guestfish-actions.pod:2222
10572 msgid "inspect-get-minor-version"
10573 msgstr ""
10574
10575 #. type: verbatim
10576 #: ../fish/guestfish-actions.pod:2224
10577 #, no-wrap
10578 msgid ""
10579 " inspect-get-minor-version root\n"
10580 "\n"
10581 msgstr ""
10582
10583 #. type: textblock
10584 #: ../fish/guestfish-actions.pod:2226 ../src/guestfs-actions.pod:3455
10585 msgid "This returns the minor version number of the inspected operating system."
10586 msgstr ""
10587
10588 #. type: textblock
10589 #: ../fish/guestfish-actions.pod:2231
10590 msgid ""
10591 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10592 "L</inspect-get-major-version>."
10593 msgstr ""
10594
10595 #. type: =head2
10596 #: ../fish/guestfish-actions.pod:2234
10597 msgid "inspect-get-mountpoints"
10598 msgstr ""
10599
10600 #. type: verbatim
10601 #: ../fish/guestfish-actions.pod:2236
10602 #, no-wrap
10603 msgid ""
10604 " inspect-get-mountpoints root\n"
10605 "\n"
10606 msgstr ""
10607
10608 #. type: textblock
10609 #: ../fish/guestfish-actions.pod:2238 ../src/guestfs-actions.pod:3473
10610 msgid ""
10611 "This returns a hash of where we think the filesystems associated with this "
10612 "operating system should be mounted.  Callers should note that this is at "
10613 "best an educated guess made by reading configuration files such as "
10614 "C</etc/fstab>.  I<In particular note> that this may return filesystems which "
10615 "are non-existent or not mountable and callers should be prepared to handle "
10616 "or ignore failures if they try to mount them."
10617 msgstr ""
10618
10619 #. type: textblock
10620 #: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3482
10621 msgid ""
10622 "Each element in the returned hashtable has a key which is the path of the "
10623 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
10624 "mounted there (eg. C</dev/sda1>)."
10625 msgstr ""
10626
10627 #. type: textblock
10628 #: ../fish/guestfish-actions.pod:2252 ../src/guestfs-actions.pod:3487
10629 msgid "Non-mounted devices such as swap devices are I<not> returned in this list."
10630 msgstr ""
10631
10632 #. type: textblock
10633 #: ../fish/guestfish-actions.pod:2255
10634 msgid ""
10635 "For operating systems like Windows which still use drive letters, this call "
10636 "will only return an entry for the first drive \"mounted on\" C</>.  For "
10637 "information about the mapping of drive letters to partitions, see "
10638 "L</inspect-get-drive-mappings>."
10639 msgstr ""
10640
10641 #. type: textblock
10642 #: ../fish/guestfish-actions.pod:2261
10643 msgid ""
10644 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10645 "L</inspect-get-filesystems>."
10646 msgstr ""
10647
10648 #. type: =head2
10649 #: ../fish/guestfish-actions.pod:2264
10650 msgid "inspect-get-package-format"
10651 msgstr ""
10652
10653 #. type: verbatim
10654 #: ../fish/guestfish-actions.pod:2266
10655 #, no-wrap
10656 msgid ""
10657 " inspect-get-package-format root\n"
10658 "\n"
10659 msgstr ""
10660
10661 #. type: textblock
10662 #: ../fish/guestfish-actions.pod:2268
10663 msgid ""
10664 "This function and L</inspect-get-package-management> return the package "
10665 "format and package management tool used by the inspected operating system.  "
10666 "For example for Fedora these functions would return C<rpm> (package format) "
10667 "and C<yum> (package management)."
10668 msgstr ""
10669
10670 #. type: textblock
10671 #: ../fish/guestfish-actions.pod:2274 ../src/guestfs-actions.pod:3519
10672 msgid ""
10673 "This returns the string C<unknown> if we could not determine the package "
10674 "format I<or> if the operating system does not have a real packaging system "
10675 "(eg. Windows)."
10676 msgstr ""
10677
10678 #. type: textblock
10679 #: ../fish/guestfish-actions.pod:2278 ../src/guestfs-actions.pod:3523
10680 msgid ""
10681 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>, "
10682 "C<pkgsrc>.  Future versions of libguestfs may return other strings."
10683 msgstr ""
10684
10685 #. type: =head2
10686 #: ../fish/guestfish-actions.pod:2284
10687 msgid "inspect-get-package-management"
10688 msgstr ""
10689
10690 #. type: verbatim
10691 #: ../fish/guestfish-actions.pod:2286
10692 #, no-wrap
10693 msgid ""
10694 " inspect-get-package-management root\n"
10695 "\n"
10696 msgstr ""
10697
10698 #. type: textblock
10699 #: ../fish/guestfish-actions.pod:2288
10700 msgid ""
10701 "L</inspect-get-package-format> and this function return the package format "
10702 "and package management tool used by the inspected operating system.  For "
10703 "example for Fedora these functions would return C<rpm> (package format) and "
10704 "C<yum> (package management)."
10705 msgstr ""
10706
10707 #. type: textblock
10708 #: ../fish/guestfish-actions.pod:2294 ../src/guestfs-actions.pod:3546
10709 msgid ""
10710 "This returns the string C<unknown> if we could not determine the package "
10711 "management tool I<or> if the operating system does not have a real packaging "
10712 "system (eg. Windows)."
10713 msgstr ""
10714
10715 #. type: textblock
10716 #: ../fish/guestfish-actions.pod:2298 ../src/guestfs-actions.pod:3550
10717 msgid ""
10718 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
10719 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>, C<zypper>.  Future "
10720 "versions of libguestfs may return other strings."
10721 msgstr ""
10722
10723 #. type: =head2
10724 #: ../fish/guestfish-actions.pod:2305
10725 msgid "inspect-get-product-name"
10726 msgstr ""
10727
10728 #. type: verbatim
10729 #: ../fish/guestfish-actions.pod:2307
10730 #, no-wrap
10731 msgid ""
10732 " inspect-get-product-name root\n"
10733 "\n"
10734 msgstr ""
10735
10736 #. type: textblock
10737 #: ../fish/guestfish-actions.pod:2309 ../src/guestfs-actions.pod:3568
10738 msgid ""
10739 "This returns the product name of the inspected operating system.  The "
10740 "product name is generally some freeform string which can be displayed to the "
10741 "user, but should not be parsed by programs."
10742 msgstr ""
10743
10744 #. type: textblock
10745 #: ../fish/guestfish-actions.pod:2314 ../src/guestfs-actions.pod:3573
10746 msgid ""
10747 "If the product name could not be determined, then the string C<unknown> is "
10748 "returned."
10749 msgstr ""
10750
10751 #. type: =head2
10752 #: ../fish/guestfish-actions.pod:2319
10753 msgid "inspect-get-product-variant"
10754 msgstr ""
10755
10756 #. type: verbatim
10757 #: ../fish/guestfish-actions.pod:2321
10758 #, no-wrap
10759 msgid ""
10760 " inspect-get-product-variant root\n"
10761 "\n"
10762 msgstr ""
10763
10764 #. type: textblock
10765 #: ../fish/guestfish-actions.pod:2323 ../src/guestfs-actions.pod:3589
10766 msgid "This returns the product variant of the inspected operating system."
10767 msgstr ""
10768
10769 #. type: textblock
10770 #: ../fish/guestfish-actions.pod:2326 ../src/guestfs-actions.pod:3592
10771 msgid ""
10772 "For Windows guests, this returns the contents of the Registry key "
10773 "C<HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> "
10774 "which is usually a string such as C<Client> or C<Server> (other values are "
10775 "possible).  This can be used to distinguish consumer and enterprise versions "
10776 "of Windows that have the same version number (for example, Windows 7 and "
10777 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
10778 "the latter is C<Server>)."
10779 msgstr ""
10780
10781 #. type: textblock
10782 #: ../fish/guestfish-actions.pod:2335 ../src/guestfs-actions.pod:3601
10783 msgid ""
10784 "For enterprise Linux guests, in future we intend this to return the product "
10785 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
10786 "implemented at present."
10787 msgstr ""
10788
10789 #. type: textblock
10790 #: ../fish/guestfish-actions.pod:2339 ../src/guestfs-actions.pod:3605
10791 msgid ""
10792 "If the product variant could not be determined, then the string C<unknown> "
10793 "is returned."
10794 msgstr ""
10795
10796 #. type: textblock
10797 #: ../fish/guestfish-actions.pod:2342
10798 msgid ""
10799 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10800 "L</inspect-get-product-name>, L</inspect-get-major-version>."
10801 msgstr ""
10802
10803 #. type: =head2
10804 #: ../fish/guestfish-actions.pod:2346
10805 msgid "inspect-get-roots"
10806 msgstr ""
10807
10808 #. type: verbatim
10809 #: ../fish/guestfish-actions.pod:2348
10810 #, no-wrap
10811 msgid ""
10812 " inspect-get-roots\n"
10813 "\n"
10814 msgstr ""
10815
10816 #. type: textblock
10817 #: ../fish/guestfish-actions.pod:2350
10818 msgid ""
10819 "This function is a convenient way to get the list of root devices, as "
10820 "returned from a previous call to L</inspect-os>, but without redoing the "
10821 "whole inspection process."
10822 msgstr ""
10823
10824 #. type: textblock
10825 #: ../fish/guestfish-actions.pod:2354
10826 msgid ""
10827 "This returns an empty list if either no root devices were found or the "
10828 "caller has not called L</inspect-os>."
10829 msgstr ""
10830
10831 #. type: =head2
10832 #: ../fish/guestfish-actions.pod:2359
10833 msgid "inspect-get-type"
10834 msgstr ""
10835
10836 #. type: verbatim
10837 #: ../fish/guestfish-actions.pod:2361
10838 #, no-wrap
10839 msgid ""
10840 " inspect-get-type root\n"
10841 "\n"
10842 msgstr ""
10843
10844 #. type: textblock
10845 #: ../fish/guestfish-actions.pod:2363 ../src/guestfs-actions.pod:3643
10846 msgid ""
10847 "This returns the type of the inspected operating system.  Currently defined "
10848 "types are:"
10849 msgstr ""
10850
10851 #. type: =item
10852 #: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3648
10853 msgid "\"linux\""
10854 msgstr ""
10855
10856 #. type: textblock
10857 #: ../fish/guestfish-actions.pod:2370 ../src/guestfs-actions.pod:3650
10858 msgid "Any Linux-based operating system."
10859 msgstr ""
10860
10861 #. type: textblock
10862 #: ../fish/guestfish-actions.pod:2374 ../src/guestfs-actions.pod:3654
10863 msgid "Any Microsoft Windows operating system."
10864 msgstr ""
10865
10866 #. type: =item
10867 #: ../fish/guestfish-actions.pod:2376 ../src/guestfs-actions.pod:3656
10868 msgid "\"freebsd\""
10869 msgstr ""
10870
10871 #. type: textblock
10872 #: ../fish/guestfish-actions.pod:2378 ../src/guestfs-actions.pod:3658
10873 msgid "FreeBSD."
10874 msgstr ""
10875
10876 #. type: =item
10877 #: ../fish/guestfish-actions.pod:2380 ../src/guestfs-actions.pod:3660
10878 msgid "\"netbsd\""
10879 msgstr ""
10880
10881 #. type: textblock
10882 #: ../fish/guestfish-actions.pod:2382 ../src/guestfs-actions.pod:3662
10883 msgid "NetBSD."
10884 msgstr ""
10885
10886 #. type: =item
10887 #: ../fish/guestfish-actions.pod:2384 ../src/guestfs-actions.pod:3664
10888 msgid "\"hurd\""
10889 msgstr ""
10890
10891 #. type: textblock
10892 #: ../fish/guestfish-actions.pod:2386 ../src/guestfs-actions.pod:3666
10893 msgid "GNU/Hurd."
10894 msgstr ""
10895
10896 #. type: textblock
10897 #: ../fish/guestfish-actions.pod:2390 ../src/guestfs-actions.pod:3670
10898 msgid "The operating system type could not be determined."
10899 msgstr ""
10900
10901 #. type: =head2
10902 #: ../fish/guestfish-actions.pod:2399
10903 msgid "inspect-get-windows-current-control-set"
10904 msgstr ""
10905
10906 #. type: verbatim
10907 #: ../fish/guestfish-actions.pod:2401
10908 #, no-wrap
10909 msgid ""
10910 " inspect-get-windows-current-control-set root\n"
10911 "\n"
10912 msgstr ""
10913
10914 #. type: textblock
10915 #: ../fish/guestfish-actions.pod:2403 ../src/guestfs-actions.pod:3690
10916 msgid ""
10917 "This returns the Windows CurrentControlSet of the inspected guest.  The "
10918 "CurrentControlSet is a registry key name such as C<ControlSet001>."
10919 msgstr ""
10920
10921 #. type: textblock
10922 #: ../fish/guestfish-actions.pod:2406 ../src/guestfs-actions.pod:3693
10923 msgid ""
10924 "This call assumes that the guest is Windows and that the Registry could be "
10925 "examined by inspection.  If this is not the case then an error is returned."
10926 msgstr ""
10927
10928 #. type: =head2
10929 #: ../fish/guestfish-actions.pod:2412
10930 msgid "inspect-get-windows-systemroot"
10931 msgstr ""
10932
10933 #. type: verbatim
10934 #: ../fish/guestfish-actions.pod:2414
10935 #, no-wrap
10936 msgid ""
10937 " inspect-get-windows-systemroot root\n"
10938 "\n"
10939 msgstr ""
10940
10941 #. type: textblock
10942 #: ../fish/guestfish-actions.pod:2416 ../src/guestfs-actions.pod:3710
10943 msgid ""
10944 "This returns the Windows systemroot of the inspected guest.  The systemroot "
10945 "is a directory path such as C</WINDOWS>."
10946 msgstr ""
10947
10948 #. type: textblock
10949 #: ../fish/guestfish-actions.pod:2419 ../src/guestfs-actions.pod:3713
10950 msgid ""
10951 "This call assumes that the guest is Windows and that the systemroot could be "
10952 "determined by inspection.  If this is not the case then an error is "
10953 "returned."
10954 msgstr ""
10955
10956 #. type: =head2
10957 #: ../fish/guestfish-actions.pod:2425
10958 msgid "inspect-is-live"
10959 msgstr ""
10960
10961 #. type: verbatim
10962 #: ../fish/guestfish-actions.pod:2427
10963 #, no-wrap
10964 msgid ""
10965 " inspect-is-live root\n"
10966 "\n"
10967 msgstr ""
10968
10969 #. type: textblock
10970 #: ../fish/guestfish-actions.pod:2429
10971 msgid ""
10972 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10973 "then this returns true if a live image was detected on the disk."
10974 msgstr ""
10975
10976 #. type: =head2
10977 #: ../fish/guestfish-actions.pod:2435
10978 msgid "inspect-is-multipart"
10979 msgstr ""
10980
10981 #. type: verbatim
10982 #: ../fish/guestfish-actions.pod:2437
10983 #, no-wrap
10984 msgid ""
10985 " inspect-is-multipart root\n"
10986 "\n"
10987 msgstr ""
10988
10989 #. type: textblock
10990 #: ../fish/guestfish-actions.pod:2439
10991 msgid ""
10992 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10993 "then this returns true if the disk is part of a set."
10994 msgstr ""
10995
10996 #. type: =head2
10997 #: ../fish/guestfish-actions.pod:2445
10998 msgid "inspect-is-netinst"
10999 msgstr ""
11000
11001 #. type: verbatim
11002 #: ../fish/guestfish-actions.pod:2447
11003 #, no-wrap
11004 msgid ""
11005 " inspect-is-netinst root\n"
11006 "\n"
11007 msgstr ""
11008
11009 #. type: textblock
11010 #: ../fish/guestfish-actions.pod:2449
11011 msgid ""
11012 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11013 "then this returns true if the disk is a network installer, ie. not a "
11014 "self-contained install CD but one which is likely to require network access "
11015 "to complete the install."
11016 msgstr ""
11017
11018 #. type: =head2
11019 #: ../fish/guestfish-actions.pod:2457
11020 msgid "inspect-list-applications"
11021 msgstr ""
11022
11023 #. type: verbatim
11024 #: ../fish/guestfish-actions.pod:2459
11025 #, no-wrap
11026 msgid ""
11027 " inspect-list-applications root\n"
11028 "\n"
11029 msgstr ""
11030
11031 #. type: textblock
11032 #: ../fish/guestfish-actions.pod:2461 ../src/guestfs-actions.pod:3780
11033 msgid "Return the list of applications installed in the operating system."
11034 msgstr ""
11035
11036 #. type: textblock
11037 #: ../fish/guestfish-actions.pod:2463
11038 msgid ""
11039 "I<Note:> This call works differently from other parts of the inspection "
11040 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
11041 "then mount up the disks, before calling this.  Listing applications is a "
11042 "significantly more difficult operation which requires access to the full "
11043 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
11044 "are just returning data cached in the libguestfs handle, this call actually "
11045 "reads parts of the mounted filesystems during the call."
11046 msgstr ""
11047
11048 #. type: textblock
11049 #: ../fish/guestfish-actions.pod:2473 ../src/guestfs-actions.pod:3792
11050 msgid ""
11051 "This returns an empty list if the inspection code was not able to determine "
11052 "the list of applications."
11053 msgstr ""
11054
11055 #. type: textblock
11056 #: ../fish/guestfish-actions.pod:2476 ../src/guestfs-actions.pod:3795
11057 msgid "The application structure contains the following fields:"
11058 msgstr ""
11059
11060 #. type: =item
11061 #: ../fish/guestfish-actions.pod:2480 ../src/guestfs-actions.pod:3799
11062 msgid "C<app_name>"
11063 msgstr ""
11064
11065 #. type: textblock
11066 #: ../fish/guestfish-actions.pod:2482 ../src/guestfs-actions.pod:3801
11067 msgid ""
11068 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
11069 "guests, this is the package name."
11070 msgstr ""
11071
11072 #. type: =item
11073 #: ../fish/guestfish-actions.pod:2485 ../src/guestfs-actions.pod:3804
11074 msgid "C<app_display_name>"
11075 msgstr ""
11076
11077 #. type: textblock
11078 #: ../fish/guestfish-actions.pod:2487 ../src/guestfs-actions.pod:3806
11079 msgid ""
11080 "The display name of the application, sometimes localized to the install "
11081 "language of the guest operating system."
11082 msgstr ""
11083
11084 #. type: textblock
11085 #: ../fish/guestfish-actions.pod:2490 ../src/guestfs-actions.pod:3809
11086 msgid ""
11087 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
11088 "to display something can use C<app_name> instead."
11089 msgstr ""
11090
11091 #. type: =item
11092 #: ../fish/guestfish-actions.pod:2493 ../src/guestfs-actions.pod:3812
11093 msgid "C<app_epoch>"
11094 msgstr ""
11095
11096 #. type: textblock
11097 #: ../fish/guestfish-actions.pod:2495 ../src/guestfs-actions.pod:3814
11098 msgid ""
11099 "For package managers which use epochs, this contains the epoch of the "
11100 "package (an integer).  If unavailable, this is returned as C<0>."
11101 msgstr ""
11102
11103 #. type: =item
11104 #: ../fish/guestfish-actions.pod:2498 ../src/guestfs-actions.pod:3817
11105 msgid "C<app_version>"
11106 msgstr ""
11107
11108 #. type: textblock
11109 #: ../fish/guestfish-actions.pod:2500 ../src/guestfs-actions.pod:3819
11110 msgid ""
11111 "The version string of the application or package.  If unavailable this is "
11112 "returned as an empty string C<\"\">."
11113 msgstr ""
11114
11115 #. type: =item
11116 #: ../fish/guestfish-actions.pod:2503 ../src/guestfs-actions.pod:3822
11117 msgid "C<app_release>"
11118 msgstr ""
11119
11120 #. type: textblock
11121 #: ../fish/guestfish-actions.pod:2505 ../src/guestfs-actions.pod:3824
11122 msgid ""
11123 "The release string of the application or package, for package managers that "
11124 "use this.  If unavailable this is returned as an empty string C<\"\">."
11125 msgstr ""
11126
11127 #. type: =item
11128 #: ../fish/guestfish-actions.pod:2509 ../src/guestfs-actions.pod:3828
11129 msgid "C<app_install_path>"
11130 msgstr ""
11131
11132 #. type: textblock
11133 #: ../fish/guestfish-actions.pod:2511 ../src/guestfs-actions.pod:3830
11134 msgid ""
11135 "The installation path of the application (on operating systems such as "
11136 "Windows which use installation paths).  This path is in the format used by "
11137 "the guest operating system, it is not a libguestfs path."
11138 msgstr ""
11139
11140 #. type: textblock
11141 #: ../fish/guestfish-actions.pod:2516 ../src/guestfs-actions.pod:3835
11142 msgid "If unavailable this is returned as an empty string C<\"\">."
11143 msgstr ""
11144
11145 #. type: =item
11146 #: ../fish/guestfish-actions.pod:2518 ../src/guestfs-actions.pod:3837
11147 msgid "C<app_trans_path>"
11148 msgstr ""
11149
11150 #. type: textblock
11151 #: ../fish/guestfish-actions.pod:2520 ../src/guestfs-actions.pod:3839
11152 msgid ""
11153 "The install path translated into a libguestfs path.  If unavailable this is "
11154 "returned as an empty string C<\"\">."
11155 msgstr ""
11156
11157 #. type: =item
11158 #: ../fish/guestfish-actions.pod:2523 ../src/guestfs-actions.pod:3842
11159 msgid "C<app_publisher>"
11160 msgstr ""
11161
11162 #. type: textblock
11163 #: ../fish/guestfish-actions.pod:2525 ../src/guestfs-actions.pod:3844
11164 msgid ""
11165 "The name of the publisher of the application, for package managers that use "
11166 "this.  If unavailable this is returned as an empty string C<\"\">."
11167 msgstr ""
11168
11169 #. type: =item
11170 #: ../fish/guestfish-actions.pod:2529 ../src/guestfs-actions.pod:3848
11171 msgid "C<app_url>"
11172 msgstr ""
11173
11174 #. type: textblock
11175 #: ../fish/guestfish-actions.pod:2531 ../src/guestfs-actions.pod:3850
11176 msgid ""
11177 "The URL (eg. upstream URL) of the application.  If unavailable this is "
11178 "returned as an empty string C<\"\">."
11179 msgstr ""
11180
11181 #. type: =item
11182 #: ../fish/guestfish-actions.pod:2534 ../src/guestfs-actions.pod:3853
11183 msgid "C<app_source_package>"
11184 msgstr ""
11185
11186 #. type: textblock
11187 #: ../fish/guestfish-actions.pod:2536 ../src/guestfs-actions.pod:3855
11188 msgid ""
11189 "For packaging systems which support this, the name of the source package.  "
11190 "If unavailable this is returned as an empty string C<\"\">."
11191 msgstr ""
11192
11193 #. type: =item
11194 #: ../fish/guestfish-actions.pod:2539 ../src/guestfs-actions.pod:3858
11195 msgid "C<app_summary>"
11196 msgstr ""
11197
11198 #. type: textblock
11199 #: ../fish/guestfish-actions.pod:2541 ../src/guestfs-actions.pod:3860
11200 msgid ""
11201 "A short (usually one line) description of the application or package.  If "
11202 "unavailable this is returned as an empty string C<\"\">."
11203 msgstr ""
11204
11205 #. type: =item
11206 #: ../fish/guestfish-actions.pod:2544 ../src/guestfs-actions.pod:3863
11207 msgid "C<app_description>"
11208 msgstr ""
11209
11210 #. type: textblock
11211 #: ../fish/guestfish-actions.pod:2546 ../src/guestfs-actions.pod:3865
11212 msgid ""
11213 "A longer description of the application or package.  If unavailable this is "
11214 "returned as an empty string C<\"\">."
11215 msgstr ""
11216
11217 #. type: =head2
11218 #: ../fish/guestfish-actions.pod:2553
11219 msgid "inspect-os"
11220 msgstr ""
11221
11222 #. type: verbatim
11223 #: ../fish/guestfish-actions.pod:2555
11224 #, no-wrap
11225 msgid ""
11226 " inspect-os\n"
11227 "\n"
11228 msgstr ""
11229
11230 #. type: textblock
11231 #: ../fish/guestfish-actions.pod:2557 ../src/guestfs-actions.pod:3883
11232 msgid ""
11233 "This function uses other libguestfs functions and certain heuristics to "
11234 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
11235 "for operating systems."
11236 msgstr ""
11237
11238 #. type: textblock
11239 #: ../fish/guestfish-actions.pod:2561 ../src/guestfs-actions.pod:3887
11240 msgid "The list returned is empty if no operating systems were found."
11241 msgstr ""
11242
11243 #. type: textblock
11244 #: ../fish/guestfish-actions.pod:2563 ../src/guestfs-actions.pod:3889
11245 msgid ""
11246 "If one operating system was found, then this returns a list with a single "
11247 "element, which is the name of the root filesystem of this operating system.  "
11248 "It is also possible for this function to return a list containing more than "
11249 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
11250 "element being the root filesystem of one of the operating systems."
11251 msgstr ""
11252
11253 #. type: textblock
11254 #: ../fish/guestfish-actions.pod:2570
11255 msgid ""
11256 "You can pass the root string(s) returned to other L</inspect-get-*> "
11257 "functions in order to query further information about each operating system, "
11258 "such as the name and version."
11259 msgstr ""
11260
11261 #. type: textblock
11262 #: ../fish/guestfish-actions.pod:2575
11263 msgid ""
11264 "This function uses other libguestfs features such as L</mount-ro> and "
11265 "L</umount-all> in order to mount and unmount filesystems and look at the "
11266 "contents.  This should be called with no disks currently mounted.  The "
11267 "function may also use Augeas, so any existing Augeas handle will be closed."
11268 msgstr ""
11269
11270 #. type: textblock
11271 #: ../fish/guestfish-actions.pod:2581 ../src/guestfs-actions.pod:3907
11272 msgid ""
11273 "This function cannot decrypt encrypted disks.  The caller must do that first "
11274 "(supplying the necessary keys) if the disk is encrypted."
11275 msgstr ""
11276
11277 #. type: textblock
11278 #: ../fish/guestfish-actions.pod:2587 ../fish/guestfish-actions.pod:2785 ../fish/guestfish-actions.pod:2850
11279 msgid "See also L</list-filesystems>."
11280 msgstr ""
11281
11282 #. type: =head2
11283 #: ../fish/guestfish-actions.pod:2589
11284 msgid "is-blockdev"
11285 msgstr ""
11286
11287 #. type: verbatim
11288 #: ../fish/guestfish-actions.pod:2591
11289 #, no-wrap
11290 msgid ""
11291 " is-blockdev path\n"
11292 "\n"
11293 msgstr ""
11294
11295 #. type: textblock
11296 #: ../fish/guestfish-actions.pod:2593 ../src/guestfs-actions.pod:3927
11297 msgid ""
11298 "This returns C<true> if and only if there is a block device with the given "
11299 "C<path> name."
11300 msgstr ""
11301
11302 #. type: textblock
11303 #: ../fish/guestfish-actions.pod:2596 ../fish/guestfish-actions.pod:2614 ../fish/guestfish-actions.pod:2633 ../fish/guestfish-actions.pod:2642 ../fish/guestfish-actions.pod:2652 ../fish/guestfish-actions.pod:2686 ../fish/guestfish-actions.pod:2695
11304 msgid "See also L</stat>."
11305 msgstr ""
11306
11307 #. type: =head2
11308 #: ../fish/guestfish-actions.pod:2598
11309 msgid "is-busy"
11310 msgstr ""
11311
11312 #. type: verbatim
11313 #: ../fish/guestfish-actions.pod:2600
11314 #, no-wrap
11315 msgid ""
11316 " is-busy\n"
11317 "\n"
11318 msgstr ""
11319
11320 #. type: textblock
11321 #: ../fish/guestfish-actions.pod:2602 ../src/guestfs-actions.pod:3941
11322 msgid ""
11323 "This returns true iff this handle is busy processing a command (in the "
11324 "C<BUSY> state)."
11325 msgstr ""
11326
11327 #. type: =head2
11328 #: ../fish/guestfish-actions.pod:2607
11329 msgid "is-chardev"
11330 msgstr ""
11331
11332 #. type: verbatim
11333 #: ../fish/guestfish-actions.pod:2609
11334 #, no-wrap
11335 msgid ""
11336 " is-chardev path\n"
11337 "\n"
11338 msgstr ""
11339
11340 #. type: textblock
11341 #: ../fish/guestfish-actions.pod:2611 ../src/guestfs-actions.pod:3956
11342 msgid ""
11343 "This returns C<true> if and only if there is a character device with the "
11344 "given C<path> name."
11345 msgstr ""
11346
11347 #. type: =head2
11348 #: ../fish/guestfish-actions.pod:2616
11349 msgid "is-config"
11350 msgstr ""
11351
11352 #. type: verbatim
11353 #: ../fish/guestfish-actions.pod:2618
11354 #, no-wrap
11355 msgid ""
11356 " is-config\n"
11357 "\n"
11358 msgstr ""
11359
11360 #. type: textblock
11361 #: ../fish/guestfish-actions.pod:2620 ../src/guestfs-actions.pod:3970
11362 msgid ""
11363 "This returns true iff this handle is being configured (in the C<CONFIG> "
11364 "state)."
11365 msgstr ""
11366
11367 #. type: =head2
11368 #: ../fish/guestfish-actions.pod:2625
11369 msgid "is-dir"
11370 msgstr ""
11371
11372 #. type: verbatim
11373 #: ../fish/guestfish-actions.pod:2627
11374 #, no-wrap
11375 msgid ""
11376 " is-dir path\n"
11377 "\n"
11378 msgstr ""
11379
11380 #. type: textblock
11381 #: ../fish/guestfish-actions.pod:2629 ../src/guestfs-actions.pod:3985
11382 msgid ""
11383 "This returns C<true> if and only if there is a directory with the given "
11384 "C<path> name.  Note that it returns false for other objects like files."
11385 msgstr ""
11386
11387 #. type: =head2
11388 #: ../fish/guestfish-actions.pod:2635
11389 msgid "is-fifo"
11390 msgstr ""
11391
11392 #. type: verbatim
11393 #: ../fish/guestfish-actions.pod:2637
11394 #, no-wrap
11395 msgid ""
11396 " is-fifo path\n"
11397 "\n"
11398 msgstr ""
11399
11400 #. type: textblock
11401 #: ../fish/guestfish-actions.pod:2639 ../src/guestfs-actions.pod:4001
11402 msgid ""
11403 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
11404 "given C<path> name."
11405 msgstr ""
11406
11407 #. type: =head2
11408 #: ../fish/guestfish-actions.pod:2644
11409 msgid "is-file"
11410 msgstr ""
11411
11412 #. type: verbatim
11413 #: ../fish/guestfish-actions.pod:2646
11414 #, no-wrap
11415 msgid ""
11416 " is-file path\n"
11417 "\n"
11418 msgstr ""
11419
11420 #. type: textblock
11421 #: ../fish/guestfish-actions.pod:2648 ../src/guestfs-actions.pod:4016
11422 msgid ""
11423 "This returns C<true> if and only if there is a regular file with the given "
11424 "C<path> name.  Note that it returns false for other objects like "
11425 "directories."
11426 msgstr ""
11427
11428 #. type: =head2
11429 #: ../fish/guestfish-actions.pod:2654
11430 msgid "is-launching"
11431 msgstr ""
11432
11433 #. type: verbatim
11434 #: ../fish/guestfish-actions.pod:2656
11435 #, no-wrap
11436 msgid ""
11437 " is-launching\n"
11438 "\n"
11439 msgstr ""
11440
11441 #. type: textblock
11442 #: ../fish/guestfish-actions.pod:2658 ../src/guestfs-actions.pod:4031
11443 msgid ""
11444 "This returns true iff this handle is launching the subprocess (in the "
11445 "C<LAUNCHING> state)."
11446 msgstr ""
11447
11448 #. type: =head2
11449 #: ../fish/guestfish-actions.pod:2663
11450 msgid "is-lv"
11451 msgstr ""
11452
11453 #. type: verbatim
11454 #: ../fish/guestfish-actions.pod:2665
11455 #, no-wrap
11456 msgid ""
11457 " is-lv device\n"
11458 "\n"
11459 msgstr ""
11460
11461 #. type: textblock
11462 #: ../fish/guestfish-actions.pod:2667 ../src/guestfs-actions.pod:4046
11463 msgid ""
11464 "This command tests whether C<device> is a logical volume, and returns true "
11465 "iff this is the case."
11466 msgstr ""
11467
11468 #. type: =head2
11469 #: ../fish/guestfish-actions.pod:2670
11470 msgid "is-ready"
11471 msgstr ""
11472
11473 #. type: verbatim
11474 #: ../fish/guestfish-actions.pod:2672
11475 #, no-wrap
11476 msgid ""
11477 " is-ready\n"
11478 "\n"
11479 msgstr ""
11480
11481 #. type: textblock
11482 #: ../fish/guestfish-actions.pod:2674 ../src/guestfs-actions.pod:4058
11483 msgid ""
11484 "This returns true iff this handle is ready to accept commands (in the "
11485 "C<READY> state)."
11486 msgstr ""
11487
11488 #. type: =head2
11489 #: ../fish/guestfish-actions.pod:2679
11490 msgid "is-socket"
11491 msgstr ""
11492
11493 #. type: verbatim
11494 #: ../fish/guestfish-actions.pod:2681
11495 #, no-wrap
11496 msgid ""
11497 " is-socket path\n"
11498 "\n"
11499 msgstr ""
11500
11501 #. type: textblock
11502 #: ../fish/guestfish-actions.pod:2683 ../src/guestfs-actions.pod:4073
11503 msgid ""
11504 "This returns C<true> if and only if there is a Unix domain socket with the "
11505 "given C<path> name."
11506 msgstr ""
11507
11508 #. type: =head2
11509 #: ../fish/guestfish-actions.pod:2688
11510 msgid "is-symlink"
11511 msgstr ""
11512
11513 #. type: verbatim
11514 #: ../fish/guestfish-actions.pod:2690
11515 #, no-wrap
11516 msgid ""
11517 " is-symlink path\n"
11518 "\n"
11519 msgstr ""
11520
11521 #. type: textblock
11522 #: ../fish/guestfish-actions.pod:2692 ../src/guestfs-actions.pod:4088
11523 msgid ""
11524 "This returns C<true> if and only if there is a symbolic link with the given "
11525 "C<path> name."
11526 msgstr ""
11527
11528 #. type: =head2
11529 #: ../fish/guestfish-actions.pod:2697
11530 msgid "is-zero"
11531 msgstr ""
11532
11533 #. type: verbatim
11534 #: ../fish/guestfish-actions.pod:2699
11535 #, no-wrap
11536 msgid ""
11537 " is-zero path\n"
11538 "\n"
11539 msgstr ""
11540
11541 #. type: textblock
11542 #: ../fish/guestfish-actions.pod:2701 ../src/guestfs-actions.pod:4103
11543 msgid ""
11544 "This returns true iff the file exists and the file is empty or it contains "
11545 "all zero bytes."
11546 msgstr ""
11547
11548 #. type: =head2
11549 #: ../fish/guestfish-actions.pod:2704
11550 msgid "is-zero-device"
11551 msgstr ""
11552
11553 #. type: verbatim
11554 #: ../fish/guestfish-actions.pod:2706
11555 #, no-wrap
11556 msgid ""
11557 " is-zero-device device\n"
11558 "\n"
11559 msgstr ""
11560
11561 #. type: textblock
11562 #: ../fish/guestfish-actions.pod:2708 ../src/guestfs-actions.pod:4116
11563 msgid "This returns true iff the device exists and contains all zero bytes."
11564 msgstr ""
11565
11566 #. type: textblock
11567 #: ../fish/guestfish-actions.pod:2710 ../src/guestfs-actions.pod:4118
11568 msgid "Note that for large devices this can take a long time to run."
11569 msgstr ""
11570
11571 #. type: =head2
11572 #: ../fish/guestfish-actions.pod:2712
11573 msgid "kill-subprocess"
11574 msgstr ""
11575
11576 #. type: verbatim
11577 #: ../fish/guestfish-actions.pod:2714
11578 #, no-wrap
11579 msgid ""
11580 " kill-subprocess\n"
11581 "\n"
11582 msgstr ""
11583
11584 #. type: textblock
11585 #: ../fish/guestfish-actions.pod:2716 ../src/guestfs-actions.pod:4129
11586 msgid "This kills the qemu subprocess.  You should never need to call this."
11587 msgstr ""
11588
11589 #. type: =head2
11590 #: ../fish/guestfish-actions.pod:2718
11591 msgid "launch"
11592 msgstr ""
11593
11594 #. type: =head2
11595 #: ../fish/guestfish-actions.pod:2720
11596 msgid "run"
11597 msgstr ""
11598
11599 #. type: verbatim
11600 #: ../fish/guestfish-actions.pod:2722
11601 #, no-wrap
11602 msgid ""
11603 " launch\n"
11604 "\n"
11605 msgstr ""
11606
11607 #. type: textblock
11608 #: ../fish/guestfish-actions.pod:2724 ../src/guestfs-actions.pod:4140
11609 msgid ""
11610 "Internally libguestfs is implemented by running a virtual machine using "
11611 "L<qemu(1)>."
11612 msgstr ""
11613
11614 #. type: textblock
11615 #: ../fish/guestfish-actions.pod:2727 ../src/guestfs-actions.pod:4143
11616 msgid ""
11617 "You should call this after configuring the handle (eg. adding drives) but "
11618 "before performing any actions."
11619 msgstr ""
11620
11621 #. type: =head2
11622 #: ../fish/guestfish-actions.pod:2730
11623 msgid "lchown"
11624 msgstr ""
11625
11626 #. type: verbatim
11627 #: ../fish/guestfish-actions.pod:2732
11628 #, no-wrap
11629 msgid ""
11630 " lchown owner group path\n"
11631 "\n"
11632 msgstr ""
11633
11634 #. type: textblock
11635 #: ../fish/guestfish-actions.pod:2734
11636 msgid ""
11637 "Change the file owner to C<owner> and group to C<group>.  This is like "
11638 "L</chown> but if C<path> is a symlink then the link itself is changed, not "
11639 "the target."
11640 msgstr ""
11641
11642 #. type: =head2
11643 #: ../fish/guestfish-actions.pod:2742
11644 msgid "lgetxattr"
11645 msgstr ""
11646
11647 #. type: verbatim
11648 #: ../fish/guestfish-actions.pod:2744
11649 #, no-wrap
11650 msgid ""
11651 " lgetxattr path name\n"
11652 "\n"
11653 msgstr ""
11654
11655 #. type: textblock
11656 #: ../fish/guestfish-actions.pod:2746 ../src/guestfs-actions.pod:4183
11657 msgid ""
11658 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
11659 "is a symlink, then this call returns an extended attribute from the symlink."
11660 msgstr ""
11661
11662 #. type: textblock
11663 #: ../fish/guestfish-actions.pod:2760
11664 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
11665 msgstr ""
11666
11667 #. type: =head2
11668 #: ../fish/guestfish-actions.pod:2762
11669 msgid "lgetxattrs"
11670 msgstr ""
11671
11672 #. type: verbatim
11673 #: ../fish/guestfish-actions.pod:2764
11674 #, no-wrap
11675 msgid ""
11676 " lgetxattrs path\n"
11677 "\n"
11678 msgstr ""
11679
11680 #. type: textblock
11681 #: ../fish/guestfish-actions.pod:2766
11682 msgid ""
11683 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
11684 "it returns the extended attributes of the link itself."
11685 msgstr ""
11686
11687 #. type: =head2
11688 #: ../fish/guestfish-actions.pod:2770
11689 msgid "list-9p"
11690 msgstr ""
11691
11692 #. type: verbatim
11693 #: ../fish/guestfish-actions.pod:2772
11694 #, no-wrap
11695 msgid ""
11696 " list-9p\n"
11697 "\n"
11698 msgstr ""
11699
11700 #. type: textblock
11701 #: ../fish/guestfish-actions.pod:2774 ../src/guestfs-actions.pod:4226
11702 msgid ""
11703 "List all 9p filesystems attached to the guest.  A list of mount tags is "
11704 "returned."
11705 msgstr ""
11706
11707 #. type: =head2
11708 #: ../fish/guestfish-actions.pod:2777
11709 msgid "list-devices"
11710 msgstr ""
11711
11712 #. type: verbatim
11713 #: ../fish/guestfish-actions.pod:2779
11714 #, no-wrap
11715 msgid ""
11716 " list-devices\n"
11717 "\n"
11718 msgstr ""
11719
11720 #. type: textblock
11721 #: ../fish/guestfish-actions.pod:2781 ../src/guestfs-actions.pod:4240
11722 msgid "List all the block devices."
11723 msgstr ""
11724
11725 #. type: textblock
11726 #: ../fish/guestfish-actions.pod:2783 ../src/guestfs-actions.pod:4242
11727 msgid "The full block device names are returned, eg. C</dev/sda>."
11728 msgstr ""
11729
11730 #. type: =head2
11731 #: ../fish/guestfish-actions.pod:2787
11732 msgid "list-dm-devices"
11733 msgstr ""
11734
11735 #. type: verbatim
11736 #: ../fish/guestfish-actions.pod:2789
11737 #, no-wrap
11738 msgid ""
11739 " list-dm-devices\n"
11740 "\n"
11741 msgstr ""
11742
11743 #. type: textblock
11744 #: ../fish/guestfish-actions.pod:2791 ../src/guestfs-actions.pod:4257
11745 msgid "List all device mapper devices."
11746 msgstr ""
11747
11748 #. type: textblock
11749 #: ../fish/guestfish-actions.pod:2793
11750 msgid ""
11751 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
11752 "previous call to L</luks-open>."
11753 msgstr ""
11754
11755 #. type: textblock
11756 #: ../fish/guestfish-actions.pod:2796
11757 msgid ""
11758 "Device mapper devices which correspond to logical volumes are I<not> "
11759 "returned in this list.  Call L</lvs> if you want to list logical volumes."
11760 msgstr ""
11761
11762 #. type: =head2
11763 #: ../fish/guestfish-actions.pod:2800
11764 msgid "list-filesystems"
11765 msgstr ""
11766
11767 #. type: verbatim
11768 #: ../fish/guestfish-actions.pod:2802
11769 #, no-wrap
11770 msgid ""
11771 " list-filesystems\n"
11772 "\n"
11773 msgstr ""
11774
11775 #. type: textblock
11776 #: ../fish/guestfish-actions.pod:2804 ../src/guestfs-actions.pod:4277
11777 msgid ""
11778 "This inspection command looks for filesystems on partitions, block devices "
11779 "and logical volumes, returning a list of devices containing filesystems and "
11780 "their type."
11781 msgstr ""
11782
11783 #. type: textblock
11784 #: ../fish/guestfish-actions.pod:2808 ../src/guestfs-actions.pod:4281
11785 msgid ""
11786 "The return value is a hash, where the keys are the devices containing "
11787 "filesystems, and the values are the filesystem types.  For example:"
11788 msgstr ""
11789
11790 #. type: verbatim
11791 #: ../fish/guestfish-actions.pod:2812 ../src/guestfs-actions.pod:4285
11792 #, no-wrap
11793 msgid ""
11794 " \"/dev/sda1\" => \"ntfs\"\n"
11795 " \"/dev/sda2\" => \"ext2\"\n"
11796 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
11797 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
11798 "\n"
11799 msgstr ""
11800
11801 #. type: textblock
11802 #: ../fish/guestfish-actions.pod:2817 ../src/guestfs-actions.pod:4290
11803 msgid ""
11804 "The value can have the special value \"unknown\", meaning the content of the "
11805 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
11806 msgstr ""
11807
11808 #. type: textblock
11809 #: ../fish/guestfish-actions.pod:2821
11810 msgid ""
11811 "This command runs other libguestfs commands, which might include L</mount> "
11812 "and L</umount>, and therefore you should use this soon after launch and only "
11813 "when nothing is mounted."
11814 msgstr ""
11815
11816 #. type: textblock
11817 #: ../fish/guestfish-actions.pod:2825
11818 msgid ""
11819 "Not all of the filesystems returned will be mountable.  In particular, swap "
11820 "partitions are returned in the list.  Also this command does not check that "
11821 "each filesystem found is valid and mountable, and some filesystems might be "
11822 "mountable but require special options.  Filesystems may not all belong to a "
11823 "single logical operating system (use L</inspect-os> to look for OSes)."
11824 msgstr ""
11825
11826 #. type: =head2
11827 #: ../fish/guestfish-actions.pod:2833
11828 msgid "list-md-devices"
11829 msgstr ""
11830
11831 #. type: verbatim
11832 #: ../fish/guestfish-actions.pod:2835
11833 #, no-wrap
11834 msgid ""
11835 " list-md-devices\n"
11836 "\n"
11837 msgstr ""
11838
11839 #. type: textblock
11840 #: ../fish/guestfish-actions.pod:2837 ../src/guestfs-actions.pod:4319
11841 msgid "List all Linux md devices."
11842 msgstr ""
11843
11844 #. type: =head2
11845 #: ../fish/guestfish-actions.pod:2839
11846 msgid "list-partitions"
11847 msgstr ""
11848
11849 #. type: verbatim
11850 #: ../fish/guestfish-actions.pod:2841
11851 #, no-wrap
11852 msgid ""
11853 " list-partitions\n"
11854 "\n"
11855 msgstr ""
11856
11857 #. type: textblock
11858 #: ../fish/guestfish-actions.pod:2843 ../src/guestfs-actions.pod:4332
11859 msgid "List all the partitions detected on all block devices."
11860 msgstr ""
11861
11862 #. type: textblock
11863 #: ../fish/guestfish-actions.pod:2845 ../src/guestfs-actions.pod:4334
11864 msgid "The full partition device names are returned, eg. C</dev/sda1>"
11865 msgstr ""
11866
11867 #. type: textblock
11868 #: ../fish/guestfish-actions.pod:2847
11869 msgid ""
11870 "This does not return logical volumes.  For that you will need to call "
11871 "L</lvs>."
11872 msgstr ""
11873
11874 #. type: =head2
11875 #: ../fish/guestfish-actions.pod:2852
11876 msgid "ll"
11877 msgstr ""
11878
11879 #. type: verbatim
11880 #: ../fish/guestfish-actions.pod:2854
11881 #, no-wrap
11882 msgid ""
11883 " ll directory\n"
11884 "\n"
11885 msgstr ""
11886
11887 #. type: textblock
11888 #: ../fish/guestfish-actions.pod:2856 ../src/guestfs-actions.pod:4353
11889 msgid ""
11890 "List the files in C<directory> (relative to the root directory, there is no "
11891 "cwd) in the format of 'ls -la'."
11892 msgstr ""
11893
11894 #. type: textblock
11895 #: ../fish/guestfish-actions.pod:2859 ../src/guestfs-actions.pod:4356
11896 msgid ""
11897 "This command is mostly useful for interactive sessions.  It is I<not> "
11898 "intended that you try to parse the output string."
11899 msgstr ""
11900
11901 #. type: =head2
11902 #: ../fish/guestfish-actions.pod:2862
11903 msgid "ln"
11904 msgstr ""
11905
11906 #. type: verbatim
11907 #: ../fish/guestfish-actions.pod:2864
11908 #, no-wrap
11909 msgid ""
11910 " ln target linkname\n"
11911 "\n"
11912 msgstr ""
11913
11914 #. type: textblock
11915 #: ../fish/guestfish-actions.pod:2866 ../src/guestfs-actions.pod:4371
11916 msgid "This command creates a hard link using the C<ln> command."
11917 msgstr ""
11918
11919 #. type: =head2
11920 #: ../fish/guestfish-actions.pod:2868
11921 msgid "ln-f"
11922 msgstr ""
11923
11924 #. type: verbatim
11925 #: ../fish/guestfish-actions.pod:2870
11926 #, no-wrap
11927 msgid ""
11928 " ln-f target linkname\n"
11929 "\n"
11930 msgstr ""
11931
11932 #. type: textblock
11933 #: ../fish/guestfish-actions.pod:2872 ../src/guestfs-actions.pod:4384
11934 msgid ""
11935 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
11936 "option removes the link (C<linkname>) if it exists already."
11937 msgstr ""
11938
11939 #. type: =head2
11940 #: ../fish/guestfish-actions.pod:2875
11941 msgid "ln-s"
11942 msgstr ""
11943
11944 #. type: verbatim
11945 #: ../fish/guestfish-actions.pod:2877
11946 #, no-wrap
11947 msgid ""
11948 " ln-s target linkname\n"
11949 "\n"
11950 msgstr ""
11951
11952 #. type: textblock
11953 #: ../fish/guestfish-actions.pod:2879 ../src/guestfs-actions.pod:4398
11954 msgid "This command creates a symbolic link using the C<ln -s> command."
11955 msgstr ""
11956
11957 #. type: =head2
11958 #: ../fish/guestfish-actions.pod:2881
11959 msgid "ln-sf"
11960 msgstr ""
11961
11962 #. type: verbatim
11963 #: ../fish/guestfish-actions.pod:2883
11964 #, no-wrap
11965 msgid ""
11966 " ln-sf target linkname\n"
11967 "\n"
11968 msgstr ""
11969
11970 #. type: textblock
11971 #: ../fish/guestfish-actions.pod:2885 ../src/guestfs-actions.pod:4411
11972 msgid ""
11973 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
11974 "option removes the link (C<linkname>) if it exists already."
11975 msgstr ""
11976
11977 #. type: =head2
11978 #: ../fish/guestfish-actions.pod:2888
11979 msgid "lremovexattr"
11980 msgstr ""
11981
11982 #. type: verbatim
11983 #: ../fish/guestfish-actions.pod:2890
11984 #, no-wrap
11985 msgid ""
11986 " lremovexattr xattr path\n"
11987 "\n"
11988 msgstr ""
11989
11990 #. type: textblock
11991 #: ../fish/guestfish-actions.pod:2892
11992 msgid ""
11993 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
11994 "it removes an extended attribute of the link itself."
11995 msgstr ""
11996
11997 #. type: =head2
11998 #: ../fish/guestfish-actions.pod:2896
11999 msgid "ls"
12000 msgstr ""
12001
12002 #. type: verbatim
12003 #: ../fish/guestfish-actions.pod:2898
12004 #, no-wrap
12005 msgid ""
12006 " ls directory\n"
12007 "\n"
12008 msgstr ""
12009
12010 #. type: textblock
12011 #: ../fish/guestfish-actions.pod:2900 ../src/guestfs-actions.pod:4439
12012 msgid ""
12013 "List the files in C<directory> (relative to the root directory, there is no "
12014 "cwd).  The '.' and '..' entries are not returned, but hidden files are "
12015 "shown."
12016 msgstr ""
12017
12018 #. type: textblock
12019 #: ../fish/guestfish-actions.pod:2904
12020 msgid ""
12021 "This command is mostly useful for interactive sessions.  Programs should "
12022 "probably use L</readdir> instead."
12023 msgstr ""
12024
12025 #. type: =head2
12026 #: ../fish/guestfish-actions.pod:2907
12027 msgid "lsetxattr"
12028 msgstr ""
12029
12030 #. type: verbatim
12031 #: ../fish/guestfish-actions.pod:2909
12032 #, no-wrap
12033 msgid ""
12034 " lsetxattr xattr val vallen path\n"
12035 "\n"
12036 msgstr ""
12037
12038 #. type: textblock
12039 #: ../fish/guestfish-actions.pod:2911
12040 msgid ""
12041 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
12042 "sets an extended attribute of the link itself."
12043 msgstr ""
12044
12045 #. type: =head2
12046 #: ../fish/guestfish-actions.pod:2915
12047 msgid "lstat"
12048 msgstr ""
12049
12050 #. type: verbatim
12051 #: ../fish/guestfish-actions.pod:2917
12052 #, no-wrap
12053 msgid ""
12054 " lstat path\n"
12055 "\n"
12056 msgstr ""
12057
12058 #. type: textblock
12059 #: ../fish/guestfish-actions.pod:2919 ../fish/guestfish-actions.pod:4817 ../src/guestfs-actions.pod:4475 ../src/guestfs-actions.pod:7405
12060 msgid "Returns file information for the given C<path>."
12061 msgstr ""
12062
12063 #. type: textblock
12064 #: ../fish/guestfish-actions.pod:2921
12065 msgid ""
12066 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
12067 "the link is stat-ed, not the file it refers to."
12068 msgstr ""
12069
12070 #. type: textblock
12071 #: ../fish/guestfish-actions.pod:2925 ../src/guestfs-actions.pod:4481
12072 msgid "This is the same as the C<lstat(2)> system call."
12073 msgstr ""
12074
12075 #. type: =head2
12076 #: ../fish/guestfish-actions.pod:2927
12077 msgid "lstatlist"
12078 msgstr ""
12079
12080 #. type: verbatim
12081 #: ../fish/guestfish-actions.pod:2929
12082 #, no-wrap
12083 msgid ""
12084 " lstatlist path 'names ...'\n"
12085 "\n"
12086 msgstr ""
12087
12088 #. type: textblock
12089 #: ../fish/guestfish-actions.pod:2931
12090 msgid ""
12091 "This call allows you to perform the L</lstat> operation on multiple files, "
12092 "where all files are in the directory C<path>.  C<names> is the list of files "
12093 "from this directory."
12094 msgstr ""
12095
12096 #. type: textblock
12097 #: ../fish/guestfish-actions.pod:2935 ../src/guestfs-actions.pod:4500
12098 msgid ""
12099 "On return you get a list of stat structs, with a one-to-one correspondence "
12100 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
12101 "then the C<ino> field of that structure is set to C<-1>."
12102 msgstr ""
12103
12104 #. type: textblock
12105 #: ../fish/guestfish-actions.pod:2940
12106 msgid ""
12107 "This call is intended for programs that want to efficiently list a directory "
12108 "contents without making many round-trips.  See also L</lxattrlist> for a "
12109 "similarly efficient call for getting extended attributes.  Very long "
12110 "directory listings might cause the protocol message size to be exceeded, "
12111 "causing this call to fail.  The caller must split up such requests into "
12112 "smaller groups of names."
12113 msgstr ""
12114
12115 #. type: =head2
12116 #: ../fish/guestfish-actions.pod:2948
12117 msgid "luks-add-key"
12118 msgstr ""
12119
12120 #. type: verbatim
12121 #: ../fish/guestfish-actions.pod:2950
12122 #, no-wrap
12123 msgid ""
12124 " luks-add-key device keyslot\n"
12125 "\n"
12126 msgstr ""
12127
12128 #. type: textblock
12129 #: ../fish/guestfish-actions.pod:2952 ../src/guestfs-actions.pod:4528
12130 msgid ""
12131 "This command adds a new key on LUKS device C<device>.  C<key> is any "
12132 "existing key, and is used to access the device.  C<newkey> is the new key to "
12133 "add.  C<keyslot> is the key slot that will be replaced."
12134 msgstr ""
12135
12136 #. type: textblock
12137 #: ../fish/guestfish-actions.pod:2957
12138 msgid ""
12139 "Note that if C<keyslot> already contains a key, then this command will "
12140 "fail.  You have to use L</luks-kill-slot> first to remove that key."
12141 msgstr ""
12142
12143 #. type: textblock
12144 #: ../fish/guestfish-actions.pod:2961 ../fish/guestfish-actions.pod:2983 ../fish/guestfish-actions.pod:2993 ../fish/guestfish-actions.pod:3004 ../fish/guestfish-actions.pod:3030 ../fish/guestfish-actions.pod:3040
12145 msgid ""
12146 "This command has one or more key or passphrase parameters.  Guestfish will "
12147 "prompt for these separately."
12148 msgstr ""
12149
12150 #. type: =head2
12151 #: ../fish/guestfish-actions.pod:2964
12152 msgid "luks-close"
12153 msgstr ""
12154
12155 #. type: verbatim
12156 #: ../fish/guestfish-actions.pod:2966
12157 #, no-wrap
12158 msgid ""
12159 " luks-close device\n"
12160 "\n"
12161 msgstr ""
12162
12163 #. type: textblock
12164 #: ../fish/guestfish-actions.pod:2968
12165 msgid ""
12166 "This closes a LUKS device that was created earlier by L</luks-open> or "
12167 "L</luks-open-ro>.  The C<device> parameter must be the name of the LUKS "
12168 "mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
12169 "underlying block device."
12170 msgstr ""
12171
12172 #. type: =head2
12173 #: ../fish/guestfish-actions.pod:2974
12174 msgid "luks-format"
12175 msgstr ""
12176
12177 #. type: verbatim
12178 #: ../fish/guestfish-actions.pod:2976
12179 #, no-wrap
12180 msgid ""
12181 " luks-format device keyslot\n"
12182 "\n"
12183 msgstr ""
12184
12185 #. type: textblock
12186 #: ../fish/guestfish-actions.pod:2978 ../src/guestfs-actions.pod:4569
12187 msgid ""
12188 "This command erases existing data on C<device> and formats the device as a "
12189 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
12190 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
12191 msgstr ""
12192
12193 #. type: =head2
12194 #: ../fish/guestfish-actions.pod:2986
12195 msgid "luks-format-cipher"
12196 msgstr ""
12197
12198 #. type: verbatim
12199 #: ../fish/guestfish-actions.pod:2988
12200 #, no-wrap
12201 msgid ""
12202 " luks-format-cipher device keyslot cipher\n"
12203 "\n"
12204 msgstr ""
12205
12206 #. type: textblock
12207 #: ../fish/guestfish-actions.pod:2990
12208 msgid ""
12209 "This command is the same as L</luks-format> but it also allows you to set "
12210 "the C<cipher> used."
12211 msgstr ""
12212
12213 #. type: =head2
12214 #: ../fish/guestfish-actions.pod:2996
12215 msgid "luks-kill-slot"
12216 msgstr ""
12217
12218 #. type: verbatim
12219 #: ../fish/guestfish-actions.pod:2998
12220 #, no-wrap
12221 msgid ""
12222 " luks-kill-slot device keyslot\n"
12223 "\n"
12224 msgstr ""
12225
12226 #. type: textblock
12227 #: ../fish/guestfish-actions.pod:3000 ../src/guestfs-actions.pod:4610
12228 msgid ""
12229 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
12230 "device C<device>.  C<key> must be one of the I<other> keys."
12231 msgstr ""
12232
12233 #. type: =head2
12234 #: ../fish/guestfish-actions.pod:3007
12235 msgid "luks-open"
12236 msgstr ""
12237
12238 #. type: verbatim
12239 #: ../fish/guestfish-actions.pod:3009
12240 #, no-wrap
12241 msgid ""
12242 " luks-open device mapname\n"
12243 "\n"
12244 msgstr ""
12245
12246 #. type: textblock
12247 #: ../fish/guestfish-actions.pod:3011 ../src/guestfs-actions.pod:4630
12248 msgid ""
12249 "This command opens a block device which has been encrypted according to the "
12250 "Linux Unified Key Setup (LUKS) standard."
12251 msgstr ""
12252
12253 #. type: textblock
12254 #: ../fish/guestfish-actions.pod:3014 ../src/guestfs-actions.pod:4633
12255 msgid "C<device> is the encrypted block device or partition."
12256 msgstr ""
12257
12258 #. type: textblock
12259 #: ../fish/guestfish-actions.pod:3016 ../src/guestfs-actions.pod:4635
12260 msgid ""
12261 "The caller must supply one of the keys associated with the LUKS block "
12262 "device, in the C<key> parameter."
12263 msgstr ""
12264
12265 #. type: textblock
12266 #: ../fish/guestfish-actions.pod:3019 ../src/guestfs-actions.pod:4638
12267 msgid ""
12268 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
12269 "writes to this block device are decrypted from and encrypted to the "
12270 "underlying C<device> respectively."
12271 msgstr ""
12272
12273 #. type: textblock
12274 #: ../fish/guestfish-actions.pod:3023
12275 msgid ""
12276 "If this block device contains LVM volume groups, then calling L</vgscan> "
12277 "followed by L</vg-activate-all> will make them visible."
12278 msgstr ""
12279
12280 #. type: textblock
12281 #: ../fish/guestfish-actions.pod:3027
12282 msgid "Use L</list-dm-devices> to list all device mapper devices."
12283 msgstr ""
12284
12285 #. type: =head2
12286 #: ../fish/guestfish-actions.pod:3033
12287 msgid "luks-open-ro"
12288 msgstr ""
12289
12290 #. type: verbatim
12291 #: ../fish/guestfish-actions.pod:3035
12292 #, no-wrap
12293 msgid ""
12294 " luks-open-ro device mapname\n"
12295 "\n"
12296 msgstr ""
12297
12298 #. type: textblock
12299 #: ../fish/guestfish-actions.pod:3037
12300 msgid ""
12301 "This is the same as L</luks-open> except that a read-only mapping is "
12302 "created."
12303 msgstr ""
12304
12305 #. type: =head2
12306 #: ../fish/guestfish-actions.pod:3043
12307 msgid "lvcreate"
12308 msgstr ""
12309
12310 #. type: verbatim
12311 #: ../fish/guestfish-actions.pod:3045
12312 #, no-wrap
12313 msgid ""
12314 " lvcreate logvol volgroup mbytes\n"
12315 "\n"
12316 msgstr ""
12317
12318 #. type: textblock
12319 #: ../fish/guestfish-actions.pod:3047 ../src/guestfs-actions.pod:4684
12320 msgid ""
12321 "This creates an LVM logical volume called C<logvol> on the volume group "
12322 "C<volgroup>, with C<size> megabytes."
12323 msgstr ""
12324
12325 #. type: =head2
12326 #: ../fish/guestfish-actions.pod:3050
12327 msgid "lvm-canonical-lv-name"
12328 msgstr ""
12329
12330 #. type: verbatim
12331 #: ../fish/guestfish-actions.pod:3052
12332 #, no-wrap
12333 msgid ""
12334 " lvm-canonical-lv-name lvname\n"
12335 "\n"
12336 msgstr ""
12337
12338 #. type: textblock
12339 #: ../fish/guestfish-actions.pod:3054 ../src/guestfs-actions.pod:4697
12340 msgid ""
12341 "This converts alternative naming schemes for LVs that you might find to the "
12342 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to "
12343 "C</dev/VG/LV>."
12344 msgstr ""
12345
12346 #. type: textblock
12347 #: ../fish/guestfish-actions.pod:3058 ../src/guestfs-actions.pod:4701
12348 msgid ""
12349 "This command returns an error if the C<lvname> parameter does not refer to a "
12350 "logical volume."
12351 msgstr ""
12352
12353 #. type: textblock
12354 #: ../fish/guestfish-actions.pod:3061
12355 msgid "See also L</is-lv>."
12356 msgstr ""
12357
12358 #. type: =head2
12359 #: ../fish/guestfish-actions.pod:3063
12360 msgid "lvm-clear-filter"
12361 msgstr ""
12362
12363 #. type: verbatim
12364 #: ../fish/guestfish-actions.pod:3065
12365 #, no-wrap
12366 msgid ""
12367 " lvm-clear-filter\n"
12368 "\n"
12369 msgstr ""
12370
12371 #. type: textblock
12372 #: ../fish/guestfish-actions.pod:3067
12373 msgid ""
12374 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
12375 "block device."
12376 msgstr ""
12377
12378 #. type: textblock
12379 #: ../fish/guestfish-actions.pod:3070 ../fish/guestfish-actions.pod:3098 ../src/guestfs-actions.pod:4719 ../src/guestfs-actions.pod:4758
12380 msgid "This command also clears the LVM cache and performs a volume group scan."
12381 msgstr ""
12382
12383 #. type: =head2
12384 #: ../fish/guestfish-actions.pod:3073
12385 msgid "lvm-remove-all"
12386 msgstr ""
12387
12388 #. type: verbatim
12389 #: ../fish/guestfish-actions.pod:3075
12390 #, no-wrap
12391 msgid ""
12392 " lvm-remove-all\n"
12393 "\n"
12394 msgstr ""
12395
12396 #. type: textblock
12397 #: ../fish/guestfish-actions.pod:3077 ../src/guestfs-actions.pod:4731
12398 msgid ""
12399 "This command removes all LVM logical volumes, volume groups and physical "
12400 "volumes."
12401 msgstr ""
12402
12403 #. type: =head2
12404 #: ../fish/guestfish-actions.pod:3080
12405 msgid "lvm-set-filter"
12406 msgstr ""
12407
12408 #. type: verbatim
12409 #: ../fish/guestfish-actions.pod:3082
12410 #, no-wrap
12411 msgid ""
12412 " lvm-set-filter 'devices ...'\n"
12413 "\n"
12414 msgstr ""
12415
12416 #. type: textblock
12417 #: ../fish/guestfish-actions.pod:3084 ../src/guestfs-actions.pod:4744
12418 msgid ""
12419 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
12420 "block devices in the list C<devices>, and will ignore all other attached "
12421 "block devices."
12422 msgstr ""
12423
12424 #. type: textblock
12425 #: ../fish/guestfish-actions.pod:3088 ../src/guestfs-actions.pod:4748
12426 msgid ""
12427 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
12428 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
12429 "there are two types of duplication possible: either cloned PVs/VGs which "
12430 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
12431 "same name.  In normal operation you cannot create this situation, but you "
12432 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
12433 "inside the LVM metadata."
12434 msgstr ""
12435
12436 #. type: textblock
12437 #: ../fish/guestfish-actions.pod:3101 ../src/guestfs-actions.pod:4761
12438 msgid "You can filter whole block devices or individual partitions."
12439 msgstr ""
12440
12441 #. type: textblock
12442 #: ../fish/guestfish-actions.pod:3103 ../src/guestfs-actions.pod:4763
12443 msgid ""
12444 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
12445 "filesystem), even if you are not filtering out that VG."
12446 msgstr ""
12447
12448 #. type: =head2
12449 #: ../fish/guestfish-actions.pod:3107
12450 msgid "lvremove"
12451 msgstr ""
12452
12453 #. type: verbatim
12454 #: ../fish/guestfish-actions.pod:3109
12455 #, no-wrap
12456 msgid ""
12457 " lvremove device\n"
12458 "\n"
12459 msgstr ""
12460
12461 #. type: textblock
12462 #: ../fish/guestfish-actions.pod:3111 ../src/guestfs-actions.pod:4777
12463 msgid ""
12464 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
12465 "LV, such as C</dev/VG/LV>."
12466 msgstr ""
12467
12468 #. type: textblock
12469 #: ../fish/guestfish-actions.pod:3114 ../src/guestfs-actions.pod:4780
12470 msgid ""
12471 "You can also remove all LVs in a volume group by specifying the VG name, "
12472 "C</dev/VG>."
12473 msgstr ""
12474
12475 #. type: =head2
12476 #: ../fish/guestfish-actions.pod:3117
12477 msgid "lvrename"
12478 msgstr ""
12479
12480 #. type: verbatim
12481 #: ../fish/guestfish-actions.pod:3119
12482 #, no-wrap
12483 msgid ""
12484 " lvrename logvol newlogvol\n"
12485 "\n"
12486 msgstr ""
12487
12488 #. type: textblock
12489 #: ../fish/guestfish-actions.pod:3121 ../src/guestfs-actions.pod:4794
12490 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
12491 msgstr ""
12492
12493 #. type: =head2
12494 #: ../fish/guestfish-actions.pod:3123
12495 msgid "lvresize"
12496 msgstr ""
12497
12498 #. type: verbatim
12499 #: ../fish/guestfish-actions.pod:3125
12500 #, no-wrap
12501 msgid ""
12502 " lvresize device mbytes\n"
12503 "\n"
12504 msgstr ""
12505
12506 #. type: textblock
12507 #: ../fish/guestfish-actions.pod:3127 ../src/guestfs-actions.pod:4807
12508 msgid ""
12509 "This resizes (expands or shrinks) an existing LVM logical volume to "
12510 "C<mbytes>.  When reducing, data in the reduced part is lost."
12511 msgstr ""
12512
12513 #. type: =head2
12514 #: ../fish/guestfish-actions.pod:3131
12515 msgid "lvresize-free"
12516 msgstr ""
12517
12518 #. type: verbatim
12519 #: ../fish/guestfish-actions.pod:3133
12520 #, no-wrap
12521 msgid ""
12522 " lvresize-free lv percent\n"
12523 "\n"
12524 msgstr ""
12525
12526 #. type: textblock
12527 #: ../fish/guestfish-actions.pod:3135 ../src/guestfs-actions.pod:4822
12528 msgid ""
12529 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
12530 "remaining free space in the volume group.  Commonly you would call this with "
12531 "pc = 100 which expands the logical volume as much as possible, using all "
12532 "remaining free space in the volume group."
12533 msgstr ""
12534
12535 #. type: =head2
12536 #: ../fish/guestfish-actions.pod:3141
12537 msgid "lvs"
12538 msgstr ""
12539
12540 #. type: verbatim
12541 #: ../fish/guestfish-actions.pod:3143
12542 #, no-wrap
12543 msgid ""
12544 " lvs\n"
12545 "\n"
12546 msgstr ""
12547
12548 #. type: textblock
12549 #: ../fish/guestfish-actions.pod:3145 ../src/guestfs-actions.pod:4837
12550 msgid ""
12551 "List all the logical volumes detected.  This is the equivalent of the "
12552 "L<lvs(8)> command."
12553 msgstr ""
12554
12555 #. type: textblock
12556 #: ../fish/guestfish-actions.pod:3148 ../src/guestfs-actions.pod:4840
12557 msgid ""
12558 "This returns a list of the logical volume device names "
12559 "(eg. C</dev/VolGroup00/LogVol00>)."
12560 msgstr ""
12561
12562 #. type: textblock
12563 #: ../fish/guestfish-actions.pod:3151
12564 msgid "See also L</lvs-full>, L</list-filesystems>."
12565 msgstr ""
12566
12567 #. type: =head2
12568 #: ../fish/guestfish-actions.pod:3153
12569 msgid "lvs-full"
12570 msgstr ""
12571
12572 #. type: verbatim
12573 #: ../fish/guestfish-actions.pod:3155
12574 #, no-wrap
12575 msgid ""
12576 " lvs-full\n"
12577 "\n"
12578 msgstr ""
12579
12580 #. type: textblock
12581 #: ../fish/guestfish-actions.pod:3157 ../src/guestfs-actions.pod:4856
12582 msgid ""
12583 "List all the logical volumes detected.  This is the equivalent of the "
12584 "L<lvs(8)> command.  The \"full\" version includes all fields."
12585 msgstr ""
12586
12587 #. type: =head2
12588 #: ../fish/guestfish-actions.pod:3160
12589 msgid "lvuuid"
12590 msgstr ""
12591
12592 #. type: verbatim
12593 #: ../fish/guestfish-actions.pod:3162
12594 #, no-wrap
12595 msgid ""
12596 " lvuuid device\n"
12597 "\n"
12598 msgstr ""
12599
12600 #. type: textblock
12601 #: ../fish/guestfish-actions.pod:3164 ../src/guestfs-actions.pod:4871
12602 msgid "This command returns the UUID of the LVM LV C<device>."
12603 msgstr ""
12604
12605 #. type: =head2
12606 #: ../fish/guestfish-actions.pod:3166
12607 msgid "lxattrlist"
12608 msgstr ""
12609
12610 #. type: verbatim
12611 #: ../fish/guestfish-actions.pod:3168
12612 #, no-wrap
12613 msgid ""
12614 " lxattrlist path 'names ...'\n"
12615 "\n"
12616 msgstr ""
12617
12618 #. type: textblock
12619 #: ../fish/guestfish-actions.pod:3170 ../src/guestfs-actions.pod:4885
12620 msgid ""
12621 "This call allows you to get the extended attributes of multiple files, where "
12622 "all files are in the directory C<path>.  C<names> is the list of files from "
12623 "this directory."
12624 msgstr ""
12625
12626 #. type: textblock
12627 #: ../fish/guestfish-actions.pod:3174 ../src/guestfs-actions.pod:4889
12628 msgid ""
12629 "On return you get a flat list of xattr structs which must be interpreted "
12630 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
12631 "C<attrval> in this struct is zero-length to indicate there was an error "
12632 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
12633 "number (the number of following attributes for this file, which could be "
12634 "C<\"0\">).  Then after the first xattr struct are the zero or more "
12635 "attributes for the first named file.  This repeats for the second and "
12636 "subsequent files."
12637 msgstr ""
12638
12639 #. type: textblock
12640 #: ../fish/guestfish-actions.pod:3184
12641 msgid ""
12642 "This call is intended for programs that want to efficiently list a directory "
12643 "contents without making many round-trips.  See also L</lstatlist> for a "
12644 "similarly efficient call for getting standard stats.  Very long directory "
12645 "listings might cause the protocol message size to be exceeded, causing this "
12646 "call to fail.  The caller must split up such requests into smaller groups of "
12647 "names."
12648 msgstr ""
12649
12650 #. type: =head2
12651 #: ../fish/guestfish-actions.pod:3192
12652 msgid "md-create"
12653 msgstr ""
12654
12655 #. type: verbatim
12656 #: ../fish/guestfish-actions.pod:3194
12657 #, no-wrap
12658 msgid ""
12659 " md-create name 'devices ...' [missingbitmap:N] [nrdevices:N] [spare:N] "
12660 "[chunk:N] [level:..]\n"
12661 "\n"
12662 msgstr ""
12663
12664 #. type: textblock
12665 #: ../fish/guestfish-actions.pod:3196 ../src/guestfs-actions.pod:4932
12666 msgid ""
12667 "Create a Linux md (RAID) device named C<name> on the devices in the list "
12668 "C<devices>."
12669 msgstr ""
12670
12671 #. type: =item
12672 #: ../fish/guestfish-actions.pod:3203 ../src/guestfs-actions.pod:4939
12673 msgid "C<missingbitmap>"
12674 msgstr ""
12675
12676 #. type: textblock
12677 #: ../fish/guestfish-actions.pod:3205 ../src/guestfs-actions.pod:4941
12678 msgid ""
12679 "A bitmap of missing devices.  If a bit is set it means that a missing device "
12680 "is added to the array.  The least significant bit corresponds to the first "
12681 "device in the array."
12682 msgstr ""
12683
12684 #. type: textblock
12685 #: ../fish/guestfish-actions.pod:3209 ../src/guestfs-actions.pod:4945
12686 msgid "As examples:"
12687 msgstr ""
12688
12689 #. type: textblock
12690 #: ../fish/guestfish-actions.pod:3211 ../src/guestfs-actions.pod:4947
12691 msgid ""
12692 "If C<devices = [\"/dev/sda\"]> and C<missingbitmap = 0x1> then the resulting "
12693 "array would be C<[E<lt>missingE<gt>, \"/dev/sda\"]>."
12694 msgstr ""
12695
12696 #. type: textblock
12697 #: ../fish/guestfish-actions.pod:3214 ../src/guestfs-actions.pod:4950
12698 msgid ""
12699 "If C<devices = [\"/dev/sda\"]> and C<missingbitmap = 0x2> then the resulting "
12700 "array would be C<[\"/dev/sda\", E<lt>missingE<gt>]>."
12701 msgstr ""
12702
12703 #. type: textblock
12704 #: ../fish/guestfish-actions.pod:3217 ../src/guestfs-actions.pod:4953
12705 msgid "This defaults to C<0> (no missing devices)."
12706 msgstr ""
12707
12708 #. type: textblock
12709 #: ../fish/guestfish-actions.pod:3219 ../src/guestfs-actions.pod:4955
12710 msgid ""
12711 "The length of C<devices> + the number of bits set in C<missingbitmap> must "
12712 "equal C<nrdevices> + C<spare>."
12713 msgstr ""
12714
12715 #. type: =item
12716 #: ../fish/guestfish-actions.pod:3222 ../src/guestfs-actions.pod:4958
12717 msgid "C<nrdevices>"
12718 msgstr ""
12719
12720 #. type: textblock
12721 #: ../fish/guestfish-actions.pod:3224 ../src/guestfs-actions.pod:4960
12722 msgid "The number of active RAID devices."
12723 msgstr ""
12724
12725 #. type: textblock
12726 #: ../fish/guestfish-actions.pod:3226 ../src/guestfs-actions.pod:4962
12727 msgid ""
12728 "If not set, this defaults to the length of C<devices> plus the number of "
12729 "bits set in C<missingbitmap>."
12730 msgstr ""
12731
12732 #. type: =item
12733 #: ../fish/guestfish-actions.pod:3229 ../src/guestfs-actions.pod:4965
12734 msgid "C<spare>"
12735 msgstr ""
12736
12737 #. type: textblock
12738 #: ../fish/guestfish-actions.pod:3231 ../src/guestfs-actions.pod:4967
12739 msgid "The number of spare devices."
12740 msgstr ""
12741
12742 #. type: textblock
12743 #: ../fish/guestfish-actions.pod:3233 ../src/guestfs-actions.pod:4969
12744 msgid "If not set, this defaults to C<0>."
12745 msgstr ""
12746
12747 #. type: =item
12748 #: ../fish/guestfish-actions.pod:3235 ../src/guestfs-actions.pod:4971
12749 msgid "C<chunk>"
12750 msgstr ""
12751
12752 #. type: textblock
12753 #: ../fish/guestfish-actions.pod:3237 ../src/guestfs-actions.pod:4973
12754 msgid "The chunk size in bytes."
12755 msgstr ""
12756
12757 #. type: =item
12758 #: ../fish/guestfish-actions.pod:3239 ../fish/guestfish-actions.pod:3261 ../src/guestfs-actions.pod:4975 ../src/guestfs-actions.pod:5023
12759 msgid "C<level>"
12760 msgstr ""
12761
12762 #. type: textblock
12763 #: ../fish/guestfish-actions.pod:3241 ../src/guestfs-actions.pod:4977
12764 msgid ""
12765 "The RAID level, which can be one of: I<linear>, I<raid0>, I<0>, I<stripe>, "
12766 "I<raid1>, I<1>, I<mirror>, I<raid4>, I<4>, I<raid5>, I<5>, I<raid6>, I<6>, "
12767 "I<raid10>, I<10>.  Some of these are synonymous, and more levels may be "
12768 "added in future."
12769 msgstr ""
12770
12771 #. type: textblock
12772 #: ../fish/guestfish-actions.pod:3246 ../src/guestfs-actions.pod:4982
12773 msgid "If not set, this defaults to C<raid1>."
12774 msgstr ""
12775
12776 #. type: =head2
12777 #: ../fish/guestfish-actions.pod:3252
12778 msgid "md-detail"
12779 msgstr ""
12780
12781 #. type: verbatim
12782 #: ../fish/guestfish-actions.pod:3254
12783 #, no-wrap
12784 msgid ""
12785 " md-detail md\n"
12786 "\n"
12787 msgstr ""
12788
12789 #. type: textblock
12790 #: ../fish/guestfish-actions.pod:3256 ../src/guestfs-actions.pod:5018
12791 msgid ""
12792 "This command exposes the output of 'mdadm -DY <md>'. The following fields "
12793 "are usually present in the returned hash. Other fields may also be present."
12794 msgstr ""
12795
12796 #. type: textblock
12797 #: ../fish/guestfish-actions.pod:3263 ../src/guestfs-actions.pod:5025
12798 msgid "The raid level of the MD device."
12799 msgstr ""
12800
12801 #. type: =item
12802 #: ../fish/guestfish-actions.pod:3265 ../src/guestfs-actions.pod:5027
12803 msgid "C<devices>"
12804 msgstr ""
12805
12806 #. type: textblock
12807 #: ../fish/guestfish-actions.pod:3267 ../src/guestfs-actions.pod:5029
12808 msgid "The number of underlying devices in the MD device."
12809 msgstr ""
12810
12811 #. type: =item
12812 #: ../fish/guestfish-actions.pod:3269 ../src/guestfs-actions.pod:5031
12813 msgid "C<metadata>"
12814 msgstr ""
12815
12816 #. type: textblock
12817 #: ../fish/guestfish-actions.pod:3271 ../src/guestfs-actions.pod:5033
12818 msgid "The metadata version used."
12819 msgstr ""
12820
12821 #. type: =item
12822 #: ../fish/guestfish-actions.pod:3273 ../src/guestfs-actions.pod:5035
12823 msgid "C<uuid>"
12824 msgstr ""
12825
12826 #. type: textblock
12827 #: ../fish/guestfish-actions.pod:3275 ../src/guestfs-actions.pod:5037
12828 msgid "The UUID of the MD device."
12829 msgstr ""
12830
12831 #. type: textblock
12832 #: ../fish/guestfish-actions.pod:3279 ../src/guestfs-actions.pod:5041
12833 msgid "The name of the MD device."
12834 msgstr ""
12835
12836 #. type: =head2
12837 #: ../fish/guestfish-actions.pod:3283
12838 msgid "md-stop"
12839 msgstr ""
12840
12841 #. type: verbatim
12842 #: ../fish/guestfish-actions.pod:3285
12843 #, no-wrap
12844 msgid ""
12845 " md-stop md\n"
12846 "\n"
12847 msgstr ""
12848
12849 #. type: textblock
12850 #: ../fish/guestfish-actions.pod:3287 ../src/guestfs-actions.pod:5057
12851 msgid ""
12852 "This command deactivates the MD array named C<md>.  The device is stopped, "
12853 "but it is not destroyed or zeroed."
12854 msgstr ""
12855
12856 #. type: =head2
12857 #: ../fish/guestfish-actions.pod:3290
12858 msgid "mkdir"
12859 msgstr ""
12860
12861 #. type: verbatim
12862 #: ../fish/guestfish-actions.pod:3292
12863 #, no-wrap
12864 msgid ""
12865 " mkdir path\n"
12866 "\n"
12867 msgstr ""
12868
12869 #. type: textblock
12870 #: ../fish/guestfish-actions.pod:3294 ../src/guestfs-actions.pod:5068
12871 msgid "Create a directory named C<path>."
12872 msgstr ""
12873
12874 #. type: =head2
12875 #: ../fish/guestfish-actions.pod:3296
12876 msgid "mkdir-mode"
12877 msgstr ""
12878
12879 #. type: verbatim
12880 #: ../fish/guestfish-actions.pod:3298
12881 #, no-wrap
12882 msgid ""
12883 " mkdir-mode path mode\n"
12884 "\n"
12885 msgstr ""
12886
12887 #. type: textblock
12888 #: ../fish/guestfish-actions.pod:3300 ../src/guestfs-actions.pod:5081
12889 msgid ""
12890 "This command creates a directory, setting the initial permissions of the "
12891 "directory to C<mode>."
12892 msgstr ""
12893
12894 #. type: textblock
12895 #: ../fish/guestfish-actions.pod:3303 ../src/guestfs-actions.pod:5084
12896 msgid ""
12897 "For common Linux filesystems, the actual mode which is set will be C<mode & "
12898 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
12899 "other ways."
12900 msgstr ""
12901
12902 #. type: textblock
12903 #: ../fish/guestfish-actions.pod:3307
12904 msgid "See also L</mkdir>, L</umask>"
12905 msgstr ""
12906
12907 #. type: =head2
12908 #: ../fish/guestfish-actions.pod:3309
12909 msgid "mkdir-p"
12910 msgstr ""
12911
12912 #. type: verbatim
12913 #: ../fish/guestfish-actions.pod:3311
12914 #, no-wrap
12915 msgid ""
12916 " mkdir-p path\n"
12917 "\n"
12918 msgstr ""
12919
12920 #. type: textblock
12921 #: ../fish/guestfish-actions.pod:3313 ../src/guestfs-actions.pod:5100
12922 msgid ""
12923 "Create a directory named C<path>, creating any parent directories as "
12924 "necessary.  This is like the C<mkdir -p> shell command."
12925 msgstr ""
12926
12927 #. type: =head2
12928 #: ../fish/guestfish-actions.pod:3316
12929 msgid "mkdtemp"
12930 msgstr ""
12931
12932 #. type: verbatim
12933 #: ../fish/guestfish-actions.pod:3318
12934 #, no-wrap
12935 msgid ""
12936 " mkdtemp template\n"
12937 "\n"
12938 msgstr ""
12939
12940 #. type: textblock
12941 #: ../fish/guestfish-actions.pod:3320 ../src/guestfs-actions.pod:5113
12942 msgid ""
12943 "This command creates a temporary directory.  The C<template> parameter "
12944 "should be a full pathname for the temporary directory name with the final "
12945 "six characters being \"XXXXXX\"."
12946 msgstr ""
12947
12948 #. type: textblock
12949 #: ../fish/guestfish-actions.pod:3325 ../src/guestfs-actions.pod:5118
12950 msgid ""
12951 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
12952 "being suitable for Windows filesystems."
12953 msgstr ""
12954
12955 #. type: textblock
12956 #: ../fish/guestfish-actions.pod:3328 ../src/guestfs-actions.pod:5121
12957 msgid "The name of the temporary directory that was created is returned."
12958 msgstr ""
12959
12960 #. type: textblock
12961 #: ../fish/guestfish-actions.pod:3331 ../src/guestfs-actions.pod:5124
12962 msgid "The temporary directory is created with mode 0700 and is owned by root."
12963 msgstr ""
12964
12965 #. type: textblock
12966 #: ../fish/guestfish-actions.pod:3334 ../src/guestfs-actions.pod:5127
12967 msgid ""
12968 "The caller is responsible for deleting the temporary directory and its "
12969 "contents after use."
12970 msgstr ""
12971
12972 #. type: textblock
12973 #: ../fish/guestfish-actions.pod:3337 ../src/guestfs-actions.pod:5130
12974 msgid "See also: L<mkdtemp(3)>"
12975 msgstr ""
12976
12977 #. type: =head2
12978 #: ../fish/guestfish-actions.pod:3339
12979 msgid "mke2fs-J"
12980 msgstr ""
12981
12982 #. type: verbatim
12983 #: ../fish/guestfish-actions.pod:3341
12984 #, no-wrap
12985 msgid ""
12986 " mke2fs-J fstype blocksize device journal\n"
12987 "\n"
12988 msgstr ""
12989
12990 #. type: textblock
12991 #: ../fish/guestfish-actions.pod:3343 ../src/guestfs-actions.pod:5146
12992 msgid ""
12993 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12994 "C<journal>.  It is equivalent to the command:"
12995 msgstr ""
12996
12997 #. type: verbatim
12998 #: ../fish/guestfish-actions.pod:3347 ../src/guestfs-actions.pod:5150
12999 #, no-wrap
13000 msgid ""
13001 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
13002 "\n"
13003 msgstr ""
13004
13005 #. type: textblock
13006 #: ../fish/guestfish-actions.pod:3349
13007 msgid "See also L</mke2journal>."
13008 msgstr ""
13009
13010 #. type: =head2
13011 #: ../fish/guestfish-actions.pod:3351
13012 msgid "mke2fs-JL"
13013 msgstr ""
13014
13015 #. type: verbatim
13016 #: ../fish/guestfish-actions.pod:3353
13017 #, no-wrap
13018 msgid ""
13019 " mke2fs-JL fstype blocksize device label\n"
13020 "\n"
13021 msgstr ""
13022
13023 #. type: textblock
13024 #: ../fish/guestfish-actions.pod:3355 ../src/guestfs-actions.pod:5167
13025 msgid ""
13026 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13027 "the journal labeled C<label>."
13028 msgstr ""
13029
13030 #. type: textblock
13031 #: ../fish/guestfish-actions.pod:3358
13032 msgid "See also L</mke2journal-L>."
13033 msgstr ""
13034
13035 #. type: =head2
13036 #: ../fish/guestfish-actions.pod:3360
13037 msgid "mke2fs-JU"
13038 msgstr ""
13039
13040 #. type: verbatim
13041 #: ../fish/guestfish-actions.pod:3362
13042 #, no-wrap
13043 msgid ""
13044 " mke2fs-JU fstype blocksize device uuid\n"
13045 "\n"
13046 msgstr ""
13047
13048 #. type: textblock
13049 #: ../fish/guestfish-actions.pod:3364 ../src/guestfs-actions.pod:5185
13050 msgid ""
13051 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13052 "the journal with UUID C<uuid>."
13053 msgstr ""
13054
13055 #. type: textblock
13056 #: ../fish/guestfish-actions.pod:3367
13057 msgid "See also L</mke2journal-U>."
13058 msgstr ""
13059
13060 #. type: =head2
13061 #: ../fish/guestfish-actions.pod:3369
13062 msgid "mke2journal"
13063 msgstr ""
13064
13065 #. type: verbatim
13066 #: ../fish/guestfish-actions.pod:3371
13067 #, no-wrap
13068 msgid ""
13069 " mke2journal blocksize device\n"
13070 "\n"
13071 msgstr ""
13072
13073 #. type: textblock
13074 #: ../fish/guestfish-actions.pod:3373 ../src/guestfs-actions.pod:5201
13075 msgid ""
13076 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
13077 "command:"
13078 msgstr ""
13079
13080 #. type: verbatim
13081 #: ../fish/guestfish-actions.pod:3376 ../src/guestfs-actions.pod:5204
13082 #, no-wrap
13083 msgid ""
13084 " mke2fs -O journal_dev -b blocksize device\n"
13085 "\n"
13086 msgstr ""
13087
13088 #. type: =head2
13089 #: ../fish/guestfish-actions.pod:3378
13090 msgid "mke2journal-L"
13091 msgstr ""
13092
13093 #. type: verbatim
13094 #: ../fish/guestfish-actions.pod:3380
13095 #, no-wrap
13096 msgid ""
13097 " mke2journal-L blocksize label device\n"
13098 "\n"
13099 msgstr ""
13100
13101 #. type: textblock
13102 #: ../fish/guestfish-actions.pod:3382 ../src/guestfs-actions.pod:5218
13103 msgid "This creates an ext2 external journal on C<device> with label C<label>."
13104 msgstr ""
13105
13106 #. type: =head2
13107 #: ../fish/guestfish-actions.pod:3384
13108 msgid "mke2journal-U"
13109 msgstr ""
13110
13111 #. type: verbatim
13112 #: ../fish/guestfish-actions.pod:3386
13113 #, no-wrap
13114 msgid ""
13115 " mke2journal-U blocksize uuid device\n"
13116 "\n"
13117 msgstr ""
13118
13119 #. type: textblock
13120 #: ../fish/guestfish-actions.pod:3388 ../src/guestfs-actions.pod:5232
13121 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
13122 msgstr ""
13123
13124 #. type: =head2
13125 #: ../fish/guestfish-actions.pod:3390
13126 msgid "mkfifo"
13127 msgstr ""
13128
13129 #. type: verbatim
13130 #: ../fish/guestfish-actions.pod:3392
13131 #, no-wrap
13132 msgid ""
13133 " mkfifo mode path\n"
13134 "\n"
13135 msgstr ""
13136
13137 #. type: textblock
13138 #: ../fish/guestfish-actions.pod:3394
13139 msgid ""
13140 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
13141 "is just a convenient wrapper around L</mknod>."
13142 msgstr ""
13143
13144 #. type: =head2
13145 #: ../fish/guestfish-actions.pod:3400
13146 msgid "mkfs"
13147 msgstr ""
13148
13149 #. type: verbatim
13150 #: ../fish/guestfish-actions.pod:3402
13151 #, no-wrap
13152 msgid ""
13153 " mkfs fstype device\n"
13154 "\n"
13155 msgstr ""
13156
13157 #. type: textblock
13158 #: ../fish/guestfish-actions.pod:3404 ../src/guestfs-actions.pod:5262
13159 msgid ""
13160 "This creates a filesystem on C<device> (usually a partition or LVM logical "
13161 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
13162 msgstr ""
13163
13164 #. type: =head2
13165 #: ../fish/guestfish-actions.pod:3408
13166 msgid "mkfs-b"
13167 msgstr ""
13168
13169 #. type: verbatim
13170 #: ../fish/guestfish-actions.pod:3410
13171 #, no-wrap
13172 msgid ""
13173 " mkfs-b fstype blocksize device\n"
13174 "\n"
13175 msgstr ""
13176
13177 #. type: textblock
13178 #: ../fish/guestfish-actions.pod:3412
13179 msgid ""
13180 "This call is similar to L</mkfs>, but it allows you to control the block "
13181 "size of the resulting filesystem.  Supported block sizes depend on the "
13182 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
13183 msgstr ""
13184
13185 #. type: textblock
13186 #: ../fish/guestfish-actions.pod:3417 ../fish/guestfish-actions.pod:3444 ../src/guestfs-actions.pod:5290 ../src/guestfs-actions.pod:5328
13187 msgid ""
13188 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
13189 "cluster size."
13190 msgstr ""
13191
13192 #. type: textblock
13193 #: ../fish/guestfish-actions.pod:3420
13194 msgid ""
13195 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
13196 "instead."
13197 msgstr ""
13198
13199 #. type: =head2
13200 #: ../fish/guestfish-actions.pod:3427
13201 msgid "mkfs-opts"
13202 msgstr ""
13203
13204 #. type: verbatim
13205 #: ../fish/guestfish-actions.pod:3429
13206 #, no-wrap
13207 msgid ""
13208 " mkfs-opts fstype device [blocksize:N] [features:..] [inode:N] "
13209 "[sectorsize:N]\n"
13210 "\n"
13211 msgstr ""
13212
13213 #. type: textblock
13214 #: ../fish/guestfish-actions.pod:3431 ../src/guestfs-actions.pod:5315
13215 msgid ""
13216 "This function creates a filesystem on C<device>.  The filesystem type is "
13217 "C<fstype>, for example C<ext3>."
13218 msgstr ""
13219
13220 #. type: =item
13221 #: ../fish/guestfish-actions.pod:3438 ../src/guestfs-actions.pod:5322
13222 msgid "C<blocksize>"
13223 msgstr ""
13224
13225 #. type: textblock
13226 #: ../fish/guestfish-actions.pod:3440 ../src/guestfs-actions.pod:5324
13227 msgid ""
13228 "The filesystem block size.  Supported block sizes depend on the filesystem "
13229 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
13230 "filesystems."
13231 msgstr ""
13232
13233 #. type: textblock
13234 #: ../fish/guestfish-actions.pod:3447 ../src/guestfs-actions.pod:5331
13235 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
13236 msgstr ""
13237
13238 #. type: =item
13239 #: ../fish/guestfish-actions.pod:3449 ../src/guestfs-actions.pod:5333
13240 msgid "C<features>"
13241 msgstr ""
13242
13243 #. type: textblock
13244 #: ../fish/guestfish-actions.pod:3451 ../src/guestfs-actions.pod:5335
13245 msgid "This passes the I<-O> parameter to the external mkfs program."
13246 msgstr ""
13247
13248 #. type: textblock
13249 #: ../fish/guestfish-actions.pod:3453 ../src/guestfs-actions.pod:5337
13250 msgid ""
13251 "For certain filesystem types, this allows extra filesystem features to be "
13252 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
13253 msgstr ""
13254
13255 #. type: textblock
13256 #: ../fish/guestfish-actions.pod:3457 ../src/guestfs-actions.pod:5341
13257 msgid ""
13258 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
13259 "type."
13260 msgstr ""
13261
13262 #. type: =item
13263 #: ../fish/guestfish-actions.pod:3460 ../src/guestfs-actions.pod:5344
13264 msgid "C<inode>"
13265 msgstr ""
13266
13267 #. type: textblock
13268 #: ../fish/guestfish-actions.pod:3462 ../src/guestfs-actions.pod:5346
13269 msgid ""
13270 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
13271 "sets the inode size (only for ext2/3/4 filesystems at present)."
13272 msgstr ""
13273
13274 #. type: =item
13275 #: ../fish/guestfish-actions.pod:3465 ../src/guestfs-actions.pod:5349
13276 msgid "C<sectorsize>"
13277 msgstr ""
13278
13279 #. type: textblock
13280 #: ../fish/guestfish-actions.pod:3467 ../src/guestfs-actions.pod:5351
13281 msgid ""
13282 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
13283 "sets sector size for ufs filesystem."
13284 msgstr ""
13285
13286 #. type: =head2
13287 #: ../fish/guestfish-actions.pod:3474
13288 msgid "mkmountpoint"
13289 msgstr ""
13290
13291 #. type: verbatim
13292 #: ../fish/guestfish-actions.pod:3476
13293 #, no-wrap
13294 msgid ""
13295 " mkmountpoint exemptpath\n"
13296 "\n"
13297 msgstr ""
13298
13299 #. type: textblock
13300 #: ../fish/guestfish-actions.pod:3478
13301 msgid ""
13302 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
13303 "to create extra mountpoints before mounting the first filesystem."
13304 msgstr ""
13305
13306 #. type: textblock
13307 #: ../fish/guestfish-actions.pod:3482 ../src/guestfs-actions.pod:5394
13308 msgid ""
13309 "These calls are I<only> necessary in some very limited circumstances, mainly "
13310 "the case where you want to mount a mix of unrelated and/or read-only "
13311 "filesystems together."
13312 msgstr ""
13313
13314 #. type: textblock
13315 #: ../fish/guestfish-actions.pod:3486 ../src/guestfs-actions.pod:5398
13316 msgid ""
13317 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
13318 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
13319 "inside that.  You can unpack this as follows in guestfish:"
13320 msgstr ""
13321
13322 #. type: verbatim
13323 #: ../fish/guestfish-actions.pod:3491 ../src/guestfs-actions.pod:5403
13324 #, no-wrap
13325 msgid ""
13326 " add-ro Fedora-11-i686-Live.iso\n"
13327 " run\n"
13328 " mkmountpoint /cd\n"
13329 " mkmountpoint /sqsh\n"
13330 " mkmountpoint /ext3fs\n"
13331 " mount /dev/sda /cd\n"
13332 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13333 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13334 "\n"
13335 msgstr ""
13336
13337 #. type: textblock
13338 #: ../fish/guestfish-actions.pod:3500 ../src/guestfs-actions.pod:5412
13339 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
13340 msgstr ""
13341
13342 #. type: textblock
13343 #: ../fish/guestfish-actions.pod:3502
13344 msgid ""
13345 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
13346 "unexpected errors if you try to mix these calls.  It is safest to manually "
13347 "unmount filesystems and remove mountpoints after use."
13348 msgstr ""
13349
13350 #. type: textblock
13351 #: ../fish/guestfish-actions.pod:3506
13352 msgid ""
13353 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
13354 "for this to work for manual mountpoints, you must ensure that the innermost "
13355 "mountpoints have the longest pathnames, as in the example code above."
13356 msgstr ""
13357
13358 #. type: textblock
13359 #: ../fish/guestfish-actions.pod:3511 ../src/guestfs-actions.pod:5423
13360 msgid "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
13361 msgstr ""
13362
13363 #. type: textblock
13364 #: ../fish/guestfish-actions.pod:3513
13365 msgid ""
13366 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
13367 "L</umount-all> to be called when the handle is closed which can also trigger "
13368 "these issues."
13369 msgstr ""
13370
13371 #. type: =head2
13372 #: ../fish/guestfish-actions.pod:3517
13373 msgid "mknod"
13374 msgstr ""
13375
13376 #. type: verbatim
13377 #: ../fish/guestfish-actions.pod:3519
13378 #, no-wrap
13379 msgid ""
13380 " mknod mode devmajor devminor path\n"
13381 "\n"
13382 msgstr ""
13383
13384 #. type: textblock
13385 #: ../fish/guestfish-actions.pod:3521 ../src/guestfs-actions.pod:5442
13386 msgid ""
13387 "This call creates block or character special devices, or named pipes "
13388 "(FIFOs)."
13389 msgstr ""
13390
13391 #. type: textblock
13392 #: ../fish/guestfish-actions.pod:3524 ../src/guestfs-actions.pod:5445
13393 msgid ""
13394 "The C<mode> parameter should be the mode, using the standard constants.  "
13395 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
13396 "used when creating block and character special devices."
13397 msgstr ""
13398
13399 #. type: textblock
13400 #: ../fish/guestfish-actions.pod:3529
13401 msgid ""
13402 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
13403 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
13404 "regular file).  These constants are available in the standard Linux header "
13405 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
13406 "wrappers around this command which bitwise OR in the appropriate constant "
13407 "for you."
13408 msgstr ""
13409
13410 #. type: =head2
13411 #: ../fish/guestfish-actions.pod:3539
13412 msgid "mknod-b"
13413 msgstr ""
13414
13415 #. type: verbatim
13416 #: ../fish/guestfish-actions.pod:3541
13417 #, no-wrap
13418 msgid ""
13419 " mknod-b mode devmajor devminor path\n"
13420 "\n"
13421 msgstr ""
13422
13423 #. type: textblock
13424 #: ../fish/guestfish-actions.pod:3543
13425 msgid ""
13426 "This call creates a block device node called C<path> with mode C<mode> and "
13427 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13428 "wrapper around L</mknod>."
13429 msgstr ""
13430
13431 #. type: =head2
13432 #: ../fish/guestfish-actions.pod:3549
13433 msgid "mknod-c"
13434 msgstr ""
13435
13436 #. type: verbatim
13437 #: ../fish/guestfish-actions.pod:3551
13438 #, no-wrap
13439 msgid ""
13440 " mknod-c mode devmajor devminor path\n"
13441 "\n"
13442 msgstr ""
13443
13444 #. type: textblock
13445 #: ../fish/guestfish-actions.pod:3553
13446 msgid ""
13447 "This call creates a char device node called C<path> with mode C<mode> and "
13448 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13449 "wrapper around L</mknod>."
13450 msgstr ""
13451
13452 #. type: =head2
13453 #: ../fish/guestfish-actions.pod:3559
13454 msgid "mkswap"
13455 msgstr ""
13456
13457 #. type: verbatim
13458 #: ../fish/guestfish-actions.pod:3561
13459 #, no-wrap
13460 msgid ""
13461 " mkswap device\n"
13462 "\n"
13463 msgstr ""
13464
13465 #. type: textblock
13466 #: ../fish/guestfish-actions.pod:3563 ../src/guestfs-actions.pod:5508
13467 msgid "Create a swap partition on C<device>."
13468 msgstr ""
13469
13470 #. type: =head2
13471 #: ../fish/guestfish-actions.pod:3565
13472 msgid "mkswap-L"
13473 msgstr ""
13474
13475 #. type: verbatim
13476 #: ../fish/guestfish-actions.pod:3567
13477 #, no-wrap
13478 msgid ""
13479 " mkswap-L label device\n"
13480 "\n"
13481 msgstr ""
13482
13483 #. type: textblock
13484 #: ../fish/guestfish-actions.pod:3569 ../src/guestfs-actions.pod:5521
13485 msgid "Create a swap partition on C<device> with label C<label>."
13486 msgstr ""
13487
13488 #. type: textblock
13489 #: ../fish/guestfish-actions.pod:3571 ../src/guestfs-actions.pod:5523
13490 msgid ""
13491 "Note that you cannot attach a swap label to a block device "
13492 "(eg. C</dev/sda>), just to a partition.  This appears to be a limitation of "
13493 "the kernel or swap tools."
13494 msgstr ""
13495
13496 #. type: =head2
13497 #: ../fish/guestfish-actions.pod:3575
13498 msgid "mkswap-U"
13499 msgstr ""
13500
13501 #. type: verbatim
13502 #: ../fish/guestfish-actions.pod:3577
13503 #, no-wrap
13504 msgid ""
13505 " mkswap-U uuid device\n"
13506 "\n"
13507 msgstr ""
13508
13509 #. type: textblock
13510 #: ../fish/guestfish-actions.pod:3579 ../src/guestfs-actions.pod:5538
13511 msgid "Create a swap partition on C<device> with UUID C<uuid>."
13512 msgstr ""
13513
13514 #. type: =head2
13515 #: ../fish/guestfish-actions.pod:3581
13516 msgid "mkswap-file"
13517 msgstr ""
13518
13519 #. type: verbatim
13520 #: ../fish/guestfish-actions.pod:3583
13521 #, no-wrap
13522 msgid ""
13523 " mkswap-file path\n"
13524 "\n"
13525 msgstr ""
13526
13527 #. type: textblock
13528 #: ../fish/guestfish-actions.pod:3585 ../src/guestfs-actions.pod:5550
13529 msgid "Create a swap file."
13530 msgstr ""
13531
13532 #. type: textblock
13533 #: ../fish/guestfish-actions.pod:3587
13534 msgid ""
13535 "This command just writes a swap file signature to an existing file.  To "
13536 "create the file itself, use something like L</fallocate>."
13537 msgstr ""
13538
13539 #. type: =head2
13540 #: ../fish/guestfish-actions.pod:3590
13541 msgid "modprobe"
13542 msgstr ""
13543
13544 #. type: verbatim
13545 #: ../fish/guestfish-actions.pod:3592
13546 #, no-wrap
13547 msgid ""
13548 " modprobe modulename\n"
13549 "\n"
13550 msgstr ""
13551
13552 #. type: textblock
13553 #: ../fish/guestfish-actions.pod:3594 ../src/guestfs-actions.pod:5565
13554 msgid "This loads a kernel module in the appliance."
13555 msgstr ""
13556
13557 #. type: textblock
13558 #: ../fish/guestfish-actions.pod:3596 ../src/guestfs-actions.pod:5567
13559 msgid ""
13560 "The kernel module must have been whitelisted when libguestfs was built (see "
13561 "C<appliance/kmod.whitelist.in> in the source)."
13562 msgstr ""
13563
13564 #. type: =head2
13565 #: ../fish/guestfish-actions.pod:3599
13566 msgid "mount"
13567 msgstr ""
13568
13569 #. type: verbatim
13570 #: ../fish/guestfish-actions.pod:3601
13571 #, no-wrap
13572 msgid ""
13573 " mount device mountpoint\n"
13574 "\n"
13575 msgstr ""
13576
13577 #. type: textblock
13578 #: ../fish/guestfish-actions.pod:3603 ../src/guestfs-actions.pod:5581
13579 msgid ""
13580 "Mount a guest disk at a position in the filesystem.  Block devices are named "
13581 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
13582 "those block devices contain partitions, they will have the usual names "
13583 "(eg. C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
13584 msgstr ""
13585
13586 #. type: textblock
13587 #: ../fish/guestfish-actions.pod:3609 ../src/guestfs-actions.pod:5587
13588 msgid ""
13589 "The rules are the same as for L<mount(2)>: A filesystem must first be "
13590 "mounted on C</> before others can be mounted.  Other filesystems can only be "
13591 "mounted on directories which already exist."
13592 msgstr ""
13593
13594 #. type: textblock
13595 #: ../fish/guestfish-actions.pod:3614 ../src/guestfs-actions.pod:5592
13596 msgid ""
13597 "The mounted filesystem is writable, if we have sufficient permissions on the "
13598 "underlying device."
13599 msgstr ""
13600
13601 #. type: textblock
13602 #: ../fish/guestfish-actions.pod:3617
13603 msgid ""
13604 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
13605 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
13606 "problems for users.  If your program might need to work with older versions "
13607 "of libguestfs, use L</mount-options> instead (using an empty string for the "
13608 "first parameter if you don't want any options)."
13609 msgstr ""
13610
13611 #. type: =head2
13612 #: ../fish/guestfish-actions.pod:3624
13613 msgid "mount-9p"
13614 msgstr ""
13615
13616 #. type: verbatim
13617 #: ../fish/guestfish-actions.pod:3626
13618 #, no-wrap
13619 msgid ""
13620 " mount-9p mounttag mountpoint [options:..]\n"
13621 "\n"
13622 msgstr ""
13623
13624 #. type: textblock
13625 #: ../fish/guestfish-actions.pod:3628 ../src/guestfs-actions.pod:5621
13626 msgid ""
13627 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
13628 "C<mountpoint>."
13629 msgstr ""
13630
13631 #. type: textblock
13632 #: ../fish/guestfish-actions.pod:3631 ../src/guestfs-actions.pod:5624
13633 msgid ""
13634 "If required, C<trans=virtio> will be automatically added to the options.  "
13635 "Any other options required can be passed in the optional C<options> "
13636 "parameter."
13637 msgstr ""
13638
13639 #. type: =head2
13640 #: ../fish/guestfish-actions.pod:3637
13641 msgid "mount-loop"
13642 msgstr ""
13643
13644 #. type: verbatim
13645 #: ../fish/guestfish-actions.pod:3639
13646 #, no-wrap
13647 msgid ""
13648 " mount-loop file mountpoint\n"
13649 "\n"
13650 msgstr ""
13651
13652 #. type: textblock
13653 #: ../fish/guestfish-actions.pod:3641 ../src/guestfs-actions.pod:5663
13654 msgid ""
13655 "This command lets you mount C<file> (a filesystem image in a file) on a "
13656 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
13657 "mountpoint>."
13658 msgstr ""
13659
13660 #. type: =head2
13661 #: ../fish/guestfish-actions.pod:3645
13662 msgid "mount-options"
13663 msgstr ""
13664
13665 #. type: verbatim
13666 #: ../fish/guestfish-actions.pod:3647
13667 #, no-wrap
13668 msgid ""
13669 " mount-options options device mountpoint\n"
13670 "\n"
13671 msgstr ""
13672
13673 #. type: textblock
13674 #: ../fish/guestfish-actions.pod:3649
13675 msgid ""
13676 "This is the same as the L</mount> command, but it allows you to set the "
13677 "mount options as for the L<mount(8)> I<-o> flag."
13678 msgstr ""
13679
13680 #. type: textblock
13681 #: ../fish/guestfish-actions.pod:3653 ../src/guestfs-actions.pod:5683
13682 msgid ""
13683 "If the C<options> parameter is an empty string, then no options are passed "
13684 "(all options default to whatever the filesystem uses)."
13685 msgstr ""
13686
13687 #. type: =head2
13688 #: ../fish/guestfish-actions.pod:3657
13689 msgid "mount-ro"
13690 msgstr ""
13691
13692 #. type: verbatim
13693 #: ../fish/guestfish-actions.pod:3659
13694 #, no-wrap
13695 msgid ""
13696 " mount-ro device mountpoint\n"
13697 "\n"
13698 msgstr ""
13699
13700 #. type: textblock
13701 #: ../fish/guestfish-actions.pod:3661
13702 msgid ""
13703 "This is the same as the L</mount> command, but it mounts the filesystem with "
13704 "the read-only (I<-o ro>) flag."
13705 msgstr ""
13706
13707 #. type: =head2
13708 #: ../fish/guestfish-actions.pod:3664
13709 msgid "mount-vfs"
13710 msgstr ""
13711
13712 #. type: verbatim
13713 #: ../fish/guestfish-actions.pod:3666
13714 #, no-wrap
13715 msgid ""
13716 " mount-vfs options vfstype device mountpoint\n"
13717 "\n"
13718 msgstr ""
13719
13720 #. type: textblock
13721 #: ../fish/guestfish-actions.pod:3668
13722 msgid ""
13723 "This is the same as the L</mount> command, but it allows you to set both the "
13724 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
13725 msgstr ""
13726
13727 #. type: =head2
13728 #: ../fish/guestfish-actions.pod:3672
13729 msgid "mountpoints"
13730 msgstr ""
13731
13732 #. type: verbatim
13733 #: ../fish/guestfish-actions.pod:3674
13734 #, no-wrap
13735 msgid ""
13736 " mountpoints\n"
13737 "\n"
13738 msgstr ""
13739
13740 #. type: textblock
13741 #: ../fish/guestfish-actions.pod:3676
13742 msgid ""
13743 "This call is similar to L</mounts>.  That call returns a list of devices.  "
13744 "This one returns a hash table (map) of device name to directory where the "
13745 "device is mounted."
13746 msgstr ""
13747
13748 #. type: =head2
13749 #: ../fish/guestfish-actions.pod:3680
13750 msgid "mounts"
13751 msgstr ""
13752
13753 #. type: verbatim
13754 #: ../fish/guestfish-actions.pod:3682
13755 #, no-wrap
13756 msgid ""
13757 " mounts\n"
13758 "\n"
13759 msgstr ""
13760
13761 #. type: textblock
13762 #: ../fish/guestfish-actions.pod:3684 ../src/guestfs-actions.pod:5744
13763 msgid ""
13764 "This returns the list of currently mounted filesystems.  It returns the list "
13765 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
13766 msgstr ""
13767
13768 #. type: textblock
13769 #: ../fish/guestfish-actions.pod:3687 ../src/guestfs-actions.pod:5747
13770 msgid "Some internal mounts are not shown."
13771 msgstr ""
13772
13773 #. type: textblock
13774 #: ../fish/guestfish-actions.pod:3689
13775 msgid "See also: L</mountpoints>"
13776 msgstr ""
13777
13778 #. type: =head2
13779 #: ../fish/guestfish-actions.pod:3691
13780 msgid "mv"
13781 msgstr ""
13782
13783 #. type: verbatim
13784 #: ../fish/guestfish-actions.pod:3693
13785 #, no-wrap
13786 msgid ""
13787 " mv src dest\n"
13788 "\n"
13789 msgstr ""
13790
13791 #. type: textblock
13792 #: ../fish/guestfish-actions.pod:3695 ../src/guestfs-actions.pod:5764
13793 msgid ""
13794 "This moves a file from C<src> to C<dest> where C<dest> is either a "
13795 "destination filename or destination directory."
13796 msgstr ""
13797
13798 #. type: =head2
13799 #: ../fish/guestfish-actions.pod:3698
13800 msgid "ntfs-3g-probe"
13801 msgstr ""
13802
13803 #. type: verbatim
13804 #: ../fish/guestfish-actions.pod:3700
13805 #, no-wrap
13806 msgid ""
13807 " ntfs-3g-probe true|false device\n"
13808 "\n"
13809 msgstr ""
13810
13811 #. type: textblock
13812 #: ../fish/guestfish-actions.pod:3702 ../src/guestfs-actions.pod:5778
13813 msgid ""
13814 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
13815 "C<device> for mountability.  (Not all NTFS volumes can be mounted "
13816 "read-write, and some cannot be mounted at all)."
13817 msgstr ""
13818
13819 #. type: textblock
13820 #: ../fish/guestfish-actions.pod:3706 ../src/guestfs-actions.pod:5782
13821 msgid ""
13822 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
13823 "can be mounted read-write.  Set it to false if you want to test if the "
13824 "volume can be mounted read-only."
13825 msgstr ""
13826
13827 #. type: textblock
13828 #: ../fish/guestfish-actions.pod:3710 ../src/guestfs-actions.pod:5786
13829 msgid ""
13830 "The return value is an integer which C<0> if the operation would succeed, or "
13831 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
13832 msgstr ""
13833
13834 #. type: =head2
13835 #: ../fish/guestfish-actions.pod:3714
13836 msgid "ntfsresize"
13837 msgstr ""
13838
13839 #. type: verbatim
13840 #: ../fish/guestfish-actions.pod:3716
13841 #, no-wrap
13842 msgid ""
13843 " ntfsresize device\n"
13844 "\n"
13845 msgstr ""
13846
13847 #. type: textblock
13848 #: ../fish/guestfish-actions.pod:3718 ../fish/guestfish-actions.pod:3742 ../src/guestfs-actions.pod:5807 ../src/guestfs-actions.pod:5839
13849 msgid ""
13850 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
13851 "size of the underlying device."
13852 msgstr ""
13853
13854 #. type: textblock
13855 #: ../fish/guestfish-actions.pod:3721 ../src/guestfs-actions.pod:5810
13856 msgid ""
13857 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
13858 "consistency check (for safety).  You have to boot into Windows to perform "
13859 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
13860 "resize filesystems which have been marked in this way.  So in effect it is "
13861 "not possible to call ntfsresize multiple times on a single filesystem "
13862 "without booting into Windows between each resize."
13863 msgstr ""
13864
13865 #. type: textblock
13866 #: ../fish/guestfish-actions.pod:3729 ../fish/guestfish-actions.pod:3768 ../src/guestfs-actions.pod:5818 ../src/guestfs-actions.pod:5865
13867 msgid "See also L<ntfsresize(8)>."
13868 msgstr ""
13869
13870 #. type: textblock
13871 #: ../fish/guestfish-actions.pod:3731 ../fish/guestfish-actions.pod:3779
13872 msgid ""
13873 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
13874 "call instead."
13875 msgstr ""
13876
13877 #. type: =head2
13878 #: ../fish/guestfish-actions.pod:3738
13879 msgid "ntfsresize-opts"
13880 msgstr ""
13881
13882 #. type: verbatim
13883 #: ../fish/guestfish-actions.pod:3740
13884 #, no-wrap
13885 msgid ""
13886 " ntfsresize-opts device [size:N] [force:true|false]\n"
13887 "\n"
13888 msgstr ""
13889
13890 #. type: textblock
13891 #: ../fish/guestfish-actions.pod:3751 ../src/guestfs-actions.pod:5848
13892 msgid ""
13893 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
13894 "resized to fit the container (eg. partition)."
13895 msgstr ""
13896
13897 #. type: =item
13898 #: ../fish/guestfish-actions.pod:3754 ../fish/guestfish-actions.pod:5075 ../src/guestfs-actions.pod:5851 ../src/guestfs-actions.pod:7822
13899 msgid "C<force>"
13900 msgstr ""
13901
13902 #. type: textblock
13903 #: ../fish/guestfish-actions.pod:3756 ../src/guestfs-actions.pod:5853
13904 msgid ""
13905 "If this option is true, then force the resize of the filesystem even if the "
13906 "filesystem is marked as requiring a consistency check."
13907 msgstr ""
13908
13909 #. type: textblock
13910 #: ../fish/guestfish-actions.pod:3759
13911 msgid ""
13912 "After the resize operation, the filesystem is always marked as requiring a "
13913 "consistency check (for safety).  You have to boot into Windows to perform "
13914 "this check and clear this condition.  If you I<don't> set the C<force> "
13915 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
13916 "a single filesystem without booting into Windows between each resize."
13917 msgstr ""
13918
13919 #. type: =head2
13920 #: ../fish/guestfish-actions.pod:3772
13921 msgid "ntfsresize-size"
13922 msgstr ""
13923
13924 #. type: verbatim
13925 #: ../fish/guestfish-actions.pod:3774
13926 #, no-wrap
13927 msgid ""
13928 " ntfsresize-size device size\n"
13929 "\n"
13930 msgstr ""
13931
13932 #. type: textblock
13933 #: ../fish/guestfish-actions.pod:3776
13934 msgid ""
13935 "This command is the same as L</ntfsresize> except that it allows you to "
13936 "specify the new size (in bytes) explicitly."
13937 msgstr ""
13938
13939 #. type: =head2
13940 #: ../fish/guestfish-actions.pod:3786
13941 msgid "part-add"
13942 msgstr ""
13943
13944 #. type: verbatim
13945 #: ../fish/guestfish-actions.pod:3788
13946 #, no-wrap
13947 msgid ""
13948 " part-add device prlogex startsect endsect\n"
13949 "\n"
13950 msgstr ""
13951
13952 #. type: textblock
13953 #: ../fish/guestfish-actions.pod:3790
13954 msgid ""
13955 "This command adds a partition to C<device>.  If there is no partition table "
13956 "on the device, call L</part-init> first."
13957 msgstr ""
13958
13959 #. type: textblock
13960 #: ../fish/guestfish-actions.pod:3793 ../src/guestfs-actions.pod:5926
13961 msgid ""
13962 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
13963 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
13964 "C<logical>) and C<e> (or C<extended>) partition types."
13965 msgstr ""
13966
13967 #. type: textblock
13968 #: ../fish/guestfish-actions.pod:3798 ../src/guestfs-actions.pod:5931
13969 msgid ""
13970 "C<startsect> and C<endsect> are the start and end of the partition in "
13971 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
13972 "from the end of the disk (C<-1> is the last sector)."
13973 msgstr ""
13974
13975 #. type: textblock
13976 #: ../fish/guestfish-actions.pod:3802
13977 msgid ""
13978 "Creating a partition which covers the whole disk is not so easy.  Use "
13979 "L</part-disk> to do that."
13980 msgstr ""
13981
13982 #. type: =head2
13983 #: ../fish/guestfish-actions.pod:3805
13984 msgid "part-del"
13985 msgstr ""
13986
13987 #. type: verbatim
13988 #: ../fish/guestfish-actions.pod:3807
13989 #, no-wrap
13990 msgid ""
13991 " part-del device partnum\n"
13992 "\n"
13993 msgstr ""
13994
13995 #. type: textblock
13996 #: ../fish/guestfish-actions.pod:3809 ../src/guestfs-actions.pod:5949
13997 msgid "This command deletes the partition numbered C<partnum> on C<device>."
13998 msgstr ""
13999
14000 #. type: textblock
14001 #: ../fish/guestfish-actions.pod:3811 ../src/guestfs-actions.pod:5951
14002 msgid ""
14003 "Note that in the case of MBR partitioning, deleting an extended partition "
14004 "also deletes any logical partitions it contains."
14005 msgstr ""
14006
14007 #. type: =head2
14008 #: ../fish/guestfish-actions.pod:3815
14009 msgid "part-disk"
14010 msgstr ""
14011
14012 #. type: verbatim
14013 #: ../fish/guestfish-actions.pod:3817
14014 #, no-wrap
14015 msgid ""
14016 " part-disk device parttype\n"
14017 "\n"
14018 msgstr ""
14019
14020 #. type: textblock
14021 #: ../fish/guestfish-actions.pod:3819
14022 msgid ""
14023 "This command is simply a combination of L</part-init> followed by "
14024 "L</part-add> to create a single primary partition covering the whole disk."
14025 msgstr ""
14026
14027 #. type: textblock
14028 #: ../fish/guestfish-actions.pod:3823
14029 msgid ""
14030 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
14031 "possible values are described in L</part-init>."
14032 msgstr ""
14033
14034 #. type: =head2
14035 #: ../fish/guestfish-actions.pod:3826
14036 msgid "part-get-bootable"
14037 msgstr ""
14038
14039 #. type: verbatim
14040 #: ../fish/guestfish-actions.pod:3828
14041 #, no-wrap
14042 msgid ""
14043 " part-get-bootable device partnum\n"
14044 "\n"
14045 msgstr ""
14046
14047 #. type: textblock
14048 #: ../fish/guestfish-actions.pod:3830 ../src/guestfs-actions.pod:5984
14049 msgid ""
14050 "This command returns true if the partition C<partnum> on C<device> has the "
14051 "bootable flag set."
14052 msgstr ""
14053
14054 #. type: textblock
14055 #: ../fish/guestfish-actions.pod:3833
14056 msgid "See also L</part-set-bootable>."
14057 msgstr ""
14058
14059 #. type: =head2
14060 #: ../fish/guestfish-actions.pod:3835
14061 msgid "part-get-mbr-id"
14062 msgstr ""
14063
14064 #. type: verbatim
14065 #: ../fish/guestfish-actions.pod:3837
14066 #, no-wrap
14067 msgid ""
14068 " part-get-mbr-id device partnum\n"
14069 "\n"
14070 msgstr ""
14071
14072 #. type: textblock
14073 #: ../fish/guestfish-actions.pod:3839 ../src/guestfs-actions.pod:6000
14074 msgid ""
14075 "Returns the MBR type byte (also known as the ID byte) from the numbered "
14076 "partition C<partnum>."
14077 msgstr ""
14078
14079 #. type: textblock
14080 #: ../fish/guestfish-actions.pod:3842 ../fish/guestfish-actions.pod:3986
14081 msgid ""
14082 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
14083 "undefined results for other partition table types (see "
14084 "L</part-get-parttype>)."
14085 msgstr ""
14086
14087 #. type: =head2
14088 #: ../fish/guestfish-actions.pod:3846
14089 msgid "part-get-parttype"
14090 msgstr ""
14091
14092 #. type: verbatim
14093 #: ../fish/guestfish-actions.pod:3848
14094 #, no-wrap
14095 msgid ""
14096 " part-get-parttype device\n"
14097 "\n"
14098 msgstr ""
14099
14100 #. type: textblock
14101 #: ../fish/guestfish-actions.pod:3850 ../src/guestfs-actions.pod:6017
14102 msgid ""
14103 "This command examines the partition table on C<device> and returns the "
14104 "partition table type (format) being used."
14105 msgstr ""
14106
14107 #. type: textblock
14108 #: ../fish/guestfish-actions.pod:3853
14109 msgid ""
14110 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
14111 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
14112 "possible, although unusual.  See L</part-init> for a full list."
14113 msgstr ""
14114
14115 #. type: =head2
14116 #: ../fish/guestfish-actions.pod:3858
14117 msgid "part-init"
14118 msgstr ""
14119
14120 #. type: verbatim
14121 #: ../fish/guestfish-actions.pod:3860
14122 #, no-wrap
14123 msgid ""
14124 " part-init device parttype\n"
14125 "\n"
14126 msgstr ""
14127
14128 #. type: textblock
14129 #: ../fish/guestfish-actions.pod:3862 ../src/guestfs-actions.pod:6037
14130 msgid ""
14131 "This creates an empty partition table on C<device> of one of the partition "
14132 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
14133 "(for large disks)."
14134 msgstr ""
14135
14136 #. type: textblock
14137 #: ../fish/guestfish-actions.pod:3866
14138 msgid ""
14139 "Initially there are no partitions.  Following this, you should call "
14140 "L</part-add> for each partition required."
14141 msgstr ""
14142
14143 #. type: textblock
14144 #: ../fish/guestfish-actions.pod:3869 ../src/guestfs-actions.pod:6044
14145 msgid "Possible values for C<parttype> are:"
14146 msgstr ""
14147
14148 #. type: =item
14149 #: ../fish/guestfish-actions.pod:3873 ../src/guestfs-actions.pod:6048
14150 msgid "B<efi>"
14151 msgstr ""
14152
14153 #. type: =item
14154 #: ../fish/guestfish-actions.pod:3875 ../src/guestfs-actions.pod:6050
14155 msgid "B<gpt>"
14156 msgstr ""
14157
14158 #. type: textblock
14159 #: ../fish/guestfish-actions.pod:3877 ../src/guestfs-actions.pod:6052
14160 msgid "Intel EFI / GPT partition table."
14161 msgstr ""
14162
14163 #. type: textblock
14164 #: ../fish/guestfish-actions.pod:3879 ../src/guestfs-actions.pod:6054
14165 msgid ""
14166 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
14167 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
14168 "the C<mbr> format."
14169 msgstr ""
14170
14171 #. type: =item
14172 #: ../fish/guestfish-actions.pod:3883 ../src/guestfs-actions.pod:6058
14173 msgid "B<mbr>"
14174 msgstr ""
14175
14176 #. type: =item
14177 #: ../fish/guestfish-actions.pod:3885 ../src/guestfs-actions.pod:6060
14178 msgid "B<msdos>"
14179 msgstr ""
14180
14181 #. type: textblock
14182 #: ../fish/guestfish-actions.pod:3887 ../src/guestfs-actions.pod:6062
14183 msgid ""
14184 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
14185 "Windows.  This partition type will B<only> work for device sizes up to 2 "
14186 "TB.  For large disks we recommend using C<gpt>."
14187 msgstr ""
14188
14189 #. type: textblock
14190 #: ../fish/guestfish-actions.pod:3894 ../src/guestfs-actions.pod:6069
14191 msgid "Other partition table types that may work but are not supported include:"
14192 msgstr ""
14193
14194 #. type: =item
14195 #: ../fish/guestfish-actions.pod:3899 ../src/guestfs-actions.pod:6074
14196 msgid "B<aix>"
14197 msgstr ""
14198
14199 #. type: textblock
14200 #: ../fish/guestfish-actions.pod:3901 ../src/guestfs-actions.pod:6076
14201 msgid "AIX disk labels."
14202 msgstr ""
14203
14204 #. type: =item
14205 #: ../fish/guestfish-actions.pod:3903 ../src/guestfs-actions.pod:6078
14206 msgid "B<amiga>"
14207 msgstr ""
14208
14209 #. type: =item
14210 #: ../fish/guestfish-actions.pod:3905 ../src/guestfs-actions.pod:6080
14211 msgid "B<rdb>"
14212 msgstr ""
14213
14214 #. type: textblock
14215 #: ../fish/guestfish-actions.pod:3907 ../src/guestfs-actions.pod:6082
14216 msgid "Amiga \"Rigid Disk Block\" format."
14217 msgstr ""
14218
14219 #. type: =item
14220 #: ../fish/guestfish-actions.pod:3909 ../src/guestfs-actions.pod:6084
14221 msgid "B<bsd>"
14222 msgstr ""
14223
14224 #. type: textblock
14225 #: ../fish/guestfish-actions.pod:3911 ../src/guestfs-actions.pod:6086
14226 msgid "BSD disk labels."
14227 msgstr ""
14228
14229 #. type: =item
14230 #: ../fish/guestfish-actions.pod:3913 ../src/guestfs-actions.pod:6088
14231 msgid "B<dasd>"
14232 msgstr ""
14233
14234 #. type: textblock
14235 #: ../fish/guestfish-actions.pod:3915 ../src/guestfs-actions.pod:6090
14236 msgid "DASD, used on IBM mainframes."
14237 msgstr ""
14238
14239 #. type: =item
14240 #: ../fish/guestfish-actions.pod:3917 ../src/guestfs-actions.pod:6092
14241 msgid "B<dvh>"
14242 msgstr ""
14243
14244 #. type: textblock
14245 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:6094
14246 msgid "MIPS/SGI volumes."
14247 msgstr ""
14248
14249 #. type: =item
14250 #: ../fish/guestfish-actions.pod:3921 ../src/guestfs-actions.pod:6096
14251 msgid "B<mac>"
14252 msgstr ""
14253
14254 #. type: textblock
14255 #: ../fish/guestfish-actions.pod:3923 ../src/guestfs-actions.pod:6098
14256 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
14257 msgstr ""
14258
14259 #. type: =item
14260 #: ../fish/guestfish-actions.pod:3925 ../src/guestfs-actions.pod:6100
14261 msgid "B<pc98>"
14262 msgstr ""
14263
14264 #. type: textblock
14265 #: ../fish/guestfish-actions.pod:3927 ../src/guestfs-actions.pod:6102
14266 msgid "NEC PC-98 format, common in Japan apparently."
14267 msgstr ""
14268
14269 #. type: =item
14270 #: ../fish/guestfish-actions.pod:3929 ../src/guestfs-actions.pod:6104
14271 msgid "B<sun>"
14272 msgstr ""
14273
14274 #. type: textblock
14275 #: ../fish/guestfish-actions.pod:3931 ../src/guestfs-actions.pod:6106
14276 msgid "Sun disk labels."
14277 msgstr ""
14278
14279 #. type: =head2
14280 #: ../fish/guestfish-actions.pod:3935
14281 msgid "part-list"
14282 msgstr ""
14283
14284 #. type: verbatim
14285 #: ../fish/guestfish-actions.pod:3937
14286 #, no-wrap
14287 msgid ""
14288 " part-list device\n"
14289 "\n"
14290 msgstr ""
14291
14292 #. type: textblock
14293 #: ../fish/guestfish-actions.pod:3939 ../src/guestfs-actions.pod:6120
14294 msgid ""
14295 "This command parses the partition table on C<device> and returns the list of "
14296 "partitions found."
14297 msgstr ""
14298
14299 #. type: textblock
14300 #: ../fish/guestfish-actions.pod:3942 ../src/guestfs-actions.pod:6123
14301 msgid "The fields in the returned structure are:"
14302 msgstr ""
14303
14304 #. type: =item
14305 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:6127
14306 msgid "B<part_num>"
14307 msgstr ""
14308
14309 #. type: textblock
14310 #: ../fish/guestfish-actions.pod:3948 ../src/guestfs-actions.pod:6129
14311 msgid "Partition number, counting from 1."
14312 msgstr ""
14313
14314 #. type: =item
14315 #: ../fish/guestfish-actions.pod:3950 ../src/guestfs-actions.pod:6131
14316 msgid "B<part_start>"
14317 msgstr ""
14318
14319 #. type: textblock
14320 #: ../fish/guestfish-actions.pod:3952
14321 msgid ""
14322 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
14323 "the device's sector size, see L</blockdev-getss>."
14324 msgstr ""
14325
14326 #. type: =item
14327 #: ../fish/guestfish-actions.pod:3955 ../src/guestfs-actions.pod:6136
14328 msgid "B<part_end>"
14329 msgstr ""
14330
14331 #. type: textblock
14332 #: ../fish/guestfish-actions.pod:3957 ../src/guestfs-actions.pod:6138
14333 msgid "End of the partition in bytes."
14334 msgstr ""
14335
14336 #. type: =item
14337 #: ../fish/guestfish-actions.pod:3959 ../src/guestfs-actions.pod:6140
14338 msgid "B<part_size>"
14339 msgstr ""
14340
14341 #. type: textblock
14342 #: ../fish/guestfish-actions.pod:3961 ../src/guestfs-actions.pod:6142
14343 msgid "Size of the partition in bytes."
14344 msgstr ""
14345
14346 #. type: =head2
14347 #: ../fish/guestfish-actions.pod:3965
14348 msgid "part-set-bootable"
14349 msgstr ""
14350
14351 #. type: verbatim
14352 #: ../fish/guestfish-actions.pod:3967
14353 #, no-wrap
14354 msgid ""
14355 " part-set-bootable device partnum true|false\n"
14356 "\n"
14357 msgstr ""
14358
14359 #. type: textblock
14360 #: ../fish/guestfish-actions.pod:3969 ../src/guestfs-actions.pod:6160
14361 msgid ""
14362 "This sets the bootable flag on partition numbered C<partnum> on device "
14363 "C<device>.  Note that partitions are numbered from 1."
14364 msgstr ""
14365
14366 #. type: textblock
14367 #: ../fish/guestfish-actions.pod:3972 ../src/guestfs-actions.pod:6163
14368 msgid ""
14369 "The bootable flag is used by some operating systems (notably Windows) to "
14370 "determine which partition to boot from.  It is by no means universally "
14371 "recognized."
14372 msgstr ""
14373
14374 #. type: =head2
14375 #: ../fish/guestfish-actions.pod:3976
14376 msgid "part-set-mbr-id"
14377 msgstr ""
14378
14379 #. type: verbatim
14380 #: ../fish/guestfish-actions.pod:3978
14381 #, no-wrap
14382 msgid ""
14383 " part-set-mbr-id device partnum idbyte\n"
14384 "\n"
14385 msgstr ""
14386
14387 #. type: textblock
14388 #: ../fish/guestfish-actions.pod:3980 ../src/guestfs-actions.pod:6179
14389 msgid ""
14390 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
14391 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
14392 "documentation are in fact hexadecimal numbers, but usually documented "
14393 "without any leading \"0x\" which might be confusing."
14394 msgstr ""
14395
14396 #. type: =head2
14397 #: ../fish/guestfish-actions.pod:3990
14398 msgid "part-set-name"
14399 msgstr ""
14400
14401 #. type: verbatim
14402 #: ../fish/guestfish-actions.pod:3992
14403 #, no-wrap
14404 msgid ""
14405 " part-set-name device partnum name\n"
14406 "\n"
14407 msgstr ""
14408
14409 #. type: textblock
14410 #: ../fish/guestfish-actions.pod:3994 ../src/guestfs-actions.pod:6201
14411 msgid ""
14412 "This sets the partition name on partition numbered C<partnum> on device "
14413 "C<device>.  Note that partitions are numbered from 1."
14414 msgstr ""
14415
14416 #. type: textblock
14417 #: ../fish/guestfish-actions.pod:3997 ../src/guestfs-actions.pod:6204
14418 msgid ""
14419 "The partition name can only be set on certain types of partition table.  "
14420 "This works on C<gpt> but not on C<mbr> partitions."
14421 msgstr ""
14422
14423 #. type: =head2
14424 #: ../fish/guestfish-actions.pod:4000
14425 msgid "part-to-dev"
14426 msgstr ""
14427
14428 #. type: verbatim
14429 #: ../fish/guestfish-actions.pod:4002
14430 #, no-wrap
14431 msgid ""
14432 " part-to-dev partition\n"
14433 "\n"
14434 msgstr ""
14435
14436 #. type: textblock
14437 #: ../fish/guestfish-actions.pod:4004 ../src/guestfs-actions.pod:6217
14438 msgid ""
14439 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
14440 "partition number, returning the device name (eg. \"/dev/sdb\")."
14441 msgstr ""
14442
14443 #. type: textblock
14444 #: ../fish/guestfish-actions.pod:4008 ../fish/guestfish-actions.pod:4020
14445 msgid ""
14446 "The named partition must exist, for example as a string returned from "
14447 "L</list-partitions>."
14448 msgstr ""
14449
14450 #. type: textblock
14451 #: ../fish/guestfish-actions.pod:4011
14452 msgid "See also L</part-to-partnum>."
14453 msgstr ""
14454
14455 #. type: =head2
14456 #: ../fish/guestfish-actions.pod:4013
14457 msgid "part-to-partnum"
14458 msgstr ""
14459
14460 #. type: verbatim
14461 #: ../fish/guestfish-actions.pod:4015
14462 #, no-wrap
14463 msgid ""
14464 " part-to-partnum partition\n"
14465 "\n"
14466 msgstr ""
14467
14468 #. type: textblock
14469 #: ../fish/guestfish-actions.pod:4017 ../src/guestfs-actions.pod:6237
14470 msgid ""
14471 "This function takes a partition name (eg. \"/dev/sdb1\") and returns the "
14472 "partition number (eg. C<1>)."
14473 msgstr ""
14474
14475 #. type: textblock
14476 #: ../fish/guestfish-actions.pod:4023
14477 msgid "See also L</part-to-dev>."
14478 msgstr ""
14479
14480 #. type: =head2
14481 #: ../fish/guestfish-actions.pod:4025
14482 msgid "ping-daemon"
14483 msgstr ""
14484
14485 #. type: verbatim
14486 #: ../fish/guestfish-actions.pod:4027
14487 #, no-wrap
14488 msgid ""
14489 " ping-daemon\n"
14490 "\n"
14491 msgstr ""
14492
14493 #. type: textblock
14494 #: ../fish/guestfish-actions.pod:4029 ../src/guestfs-actions.pod:6254
14495 msgid ""
14496 "This is a test probe into the guestfs daemon running inside the qemu "
14497 "subprocess.  Calling this function checks that the daemon responds to the "
14498 "ping message, without affecting the daemon or attached block device(s) in "
14499 "any other way."
14500 msgstr ""
14501
14502 #. type: =head2
14503 #: ../fish/guestfish-actions.pod:4034
14504 msgid "pread"
14505 msgstr ""
14506
14507 #. type: verbatim
14508 #: ../fish/guestfish-actions.pod:4036
14509 #, no-wrap
14510 msgid ""
14511 " pread path count offset\n"
14512 "\n"
14513 msgstr ""
14514
14515 #. type: textblock
14516 #: ../fish/guestfish-actions.pod:4038 ../src/guestfs-actions.pod:6272
14517 msgid ""
14518 "This command lets you read part of a file.  It reads C<count> bytes of the "
14519 "file, starting at C<offset>, from file C<path>."
14520 msgstr ""
14521
14522 #. type: textblock
14523 #: ../fish/guestfish-actions.pod:4041 ../fish/guestfish-actions.pod:4056 ../src/guestfs-actions.pod:6275 ../src/guestfs-actions.pod:6301
14524 msgid ""
14525 "This may read fewer bytes than requested.  For further details see the "
14526 "L<pread(2)> system call."
14527 msgstr ""
14528
14529 #. type: textblock
14530 #: ../fish/guestfish-actions.pod:4044
14531 msgid "See also L</pwrite>, L</pread-device>."
14532 msgstr ""
14533
14534 #. type: =head2
14535 #: ../fish/guestfish-actions.pod:4049
14536 msgid "pread-device"
14537 msgstr ""
14538
14539 #. type: verbatim
14540 #: ../fish/guestfish-actions.pod:4051
14541 #, no-wrap
14542 msgid ""
14543 " pread-device device count offset\n"
14544 "\n"
14545 msgstr ""
14546
14547 #. type: textblock
14548 #: ../fish/guestfish-actions.pod:4053 ../src/guestfs-actions.pod:6298
14549 msgid ""
14550 "This command lets you read part of a file.  It reads C<count> bytes of "
14551 "C<device>, starting at C<offset>."
14552 msgstr ""
14553
14554 #. type: textblock
14555 #: ../fish/guestfish-actions.pod:4059
14556 msgid "See also L</pread>."
14557 msgstr ""
14558
14559 #. type: =head2
14560 #: ../fish/guestfish-actions.pod:4064
14561 msgid "pvcreate"
14562 msgstr ""
14563
14564 #. type: verbatim
14565 #: ../fish/guestfish-actions.pod:4066
14566 #, no-wrap
14567 msgid ""
14568 " pvcreate device\n"
14569 "\n"
14570 msgstr ""
14571
14572 #. type: textblock
14573 #: ../fish/guestfish-actions.pod:4068 ../src/guestfs-actions.pod:6321
14574 msgid ""
14575 "This creates an LVM physical volume on the named C<device>, where C<device> "
14576 "should usually be a partition name such as C</dev/sda1>."
14577 msgstr ""
14578
14579 #. type: =head2
14580 #: ../fish/guestfish-actions.pod:4072
14581 msgid "pvremove"
14582 msgstr ""
14583
14584 #. type: verbatim
14585 #: ../fish/guestfish-actions.pod:4074
14586 #, no-wrap
14587 msgid ""
14588 " pvremove device\n"
14589 "\n"
14590 msgstr ""
14591
14592 #. type: textblock
14593 #: ../fish/guestfish-actions.pod:4076 ../src/guestfs-actions.pod:6335
14594 msgid ""
14595 "This wipes a physical volume C<device> so that LVM will no longer recognise "
14596 "it."
14597 msgstr ""
14598
14599 #. type: textblock
14600 #: ../fish/guestfish-actions.pod:4079 ../src/guestfs-actions.pod:6338
14601 msgid ""
14602 "The implementation uses the C<pvremove> command which refuses to wipe "
14603 "physical volumes that contain any volume groups, so you have to remove those "
14604 "first."
14605 msgstr ""
14606
14607 #. type: =head2
14608 #: ../fish/guestfish-actions.pod:4083
14609 msgid "pvresize"
14610 msgstr ""
14611
14612 #. type: verbatim
14613 #: ../fish/guestfish-actions.pod:4085
14614 #, no-wrap
14615 msgid ""
14616 " pvresize device\n"
14617 "\n"
14618 msgstr ""
14619
14620 #. type: textblock
14621 #: ../fish/guestfish-actions.pod:4087 ../src/guestfs-actions.pod:6352
14622 msgid ""
14623 "This resizes (expands or shrinks) an existing LVM physical volume to match "
14624 "the new size of the underlying device."
14625 msgstr ""
14626
14627 #. type: =head2
14628 #: ../fish/guestfish-actions.pod:4090
14629 msgid "pvresize-size"
14630 msgstr ""
14631
14632 #. type: verbatim
14633 #: ../fish/guestfish-actions.pod:4092
14634 #, no-wrap
14635 msgid ""
14636 " pvresize-size device size\n"
14637 "\n"
14638 msgstr ""
14639
14640 #. type: textblock
14641 #: ../fish/guestfish-actions.pod:4094
14642 msgid ""
14643 "This command is the same as L</pvresize> except that it allows you to "
14644 "specify the new size (in bytes) explicitly."
14645 msgstr ""
14646
14647 #. type: =head2
14648 #: ../fish/guestfish-actions.pod:4097
14649 msgid "pvs"
14650 msgstr ""
14651
14652 #. type: verbatim
14653 #: ../fish/guestfish-actions.pod:4099
14654 #, no-wrap
14655 msgid ""
14656 " pvs\n"
14657 "\n"
14658 msgstr ""
14659
14660 #. type: textblock
14661 #: ../fish/guestfish-actions.pod:4101 ../src/guestfs-actions.pod:6378
14662 msgid ""
14663 "List all the physical volumes detected.  This is the equivalent of the "
14664 "L<pvs(8)> command."
14665 msgstr ""
14666
14667 #. type: textblock
14668 #: ../fish/guestfish-actions.pod:4104 ../src/guestfs-actions.pod:6381
14669 msgid ""
14670 "This returns a list of just the device names that contain PVs "
14671 "(eg. C</dev/sda2>)."
14672 msgstr ""
14673
14674 #. type: textblock
14675 #: ../fish/guestfish-actions.pod:4107
14676 msgid "See also L</pvs-full>."
14677 msgstr ""
14678
14679 #. type: =head2
14680 #: ../fish/guestfish-actions.pod:4109
14681 msgid "pvs-full"
14682 msgstr ""
14683
14684 #. type: verbatim
14685 #: ../fish/guestfish-actions.pod:4111
14686 #, no-wrap
14687 msgid ""
14688 " pvs-full\n"
14689 "\n"
14690 msgstr ""
14691
14692 #. type: textblock
14693 #: ../fish/guestfish-actions.pod:4113 ../src/guestfs-actions.pod:6397
14694 msgid ""
14695 "List all the physical volumes detected.  This is the equivalent of the "
14696 "L<pvs(8)> command.  The \"full\" version includes all fields."
14697 msgstr ""
14698
14699 #. type: =head2
14700 #: ../fish/guestfish-actions.pod:4116
14701 msgid "pvuuid"
14702 msgstr ""
14703
14704 #. type: verbatim
14705 #: ../fish/guestfish-actions.pod:4118
14706 #, no-wrap
14707 msgid ""
14708 " pvuuid device\n"
14709 "\n"
14710 msgstr ""
14711
14712 #. type: textblock
14713 #: ../fish/guestfish-actions.pod:4120 ../src/guestfs-actions.pod:6412
14714 msgid "This command returns the UUID of the LVM PV C<device>."
14715 msgstr ""
14716
14717 #. type: =head2
14718 #: ../fish/guestfish-actions.pod:4122
14719 msgid "pwrite"
14720 msgstr ""
14721
14722 #. type: verbatim
14723 #: ../fish/guestfish-actions.pod:4124
14724 #, no-wrap
14725 msgid ""
14726 " pwrite path content offset\n"
14727 "\n"
14728 msgstr ""
14729
14730 #. type: textblock
14731 #: ../fish/guestfish-actions.pod:4126 ../src/guestfs-actions.pod:6428
14732 msgid ""
14733 "This command writes to part of a file.  It writes the data buffer C<content> "
14734 "to the file C<path> starting at offset C<offset>."
14735 msgstr ""
14736
14737 #. type: textblock
14738 #: ../fish/guestfish-actions.pod:4129 ../src/guestfs-actions.pod:6431
14739 msgid ""
14740 "This command implements the L<pwrite(2)> system call, and like that system "
14741 "call it may not write the full data requested.  The return value is the "
14742 "number of bytes that were actually written to the file.  This could even be "
14743 "0, although short writes are unlikely for regular files in ordinary "
14744 "circumstances."
14745 msgstr ""
14746
14747 #. type: textblock
14748 #: ../fish/guestfish-actions.pod:4135
14749 msgid "See also L</pread>, L</pwrite-device>."
14750 msgstr ""
14751
14752 #. type: =head2
14753 #: ../fish/guestfish-actions.pod:4140
14754 msgid "pwrite-device"
14755 msgstr ""
14756
14757 #. type: verbatim
14758 #: ../fish/guestfish-actions.pod:4142
14759 #, no-wrap
14760 msgid ""
14761 " pwrite-device device content offset\n"
14762 "\n"
14763 msgstr ""
14764
14765 #. type: textblock
14766 #: ../fish/guestfish-actions.pod:4144 ../src/guestfs-actions.pod:6455
14767 msgid ""
14768 "This command writes to part of a device.  It writes the data buffer "
14769 "C<content> to C<device> starting at offset C<offset>."
14770 msgstr ""
14771
14772 #. type: textblock
14773 #: ../fish/guestfish-actions.pod:4147 ../src/guestfs-actions.pod:6458
14774 msgid ""
14775 "This command implements the L<pwrite(2)> system call, and like that system "
14776 "call it may not write the full data requested (although short writes to disk "
14777 "devices and partitions are probably impossible with standard Linux kernels)."
14778 msgstr ""
14779
14780 #. type: textblock
14781 #: ../fish/guestfish-actions.pod:4152
14782 msgid "See also L</pwrite>."
14783 msgstr ""
14784
14785 #. type: =head2
14786 #: ../fish/guestfish-actions.pod:4157
14787 msgid "read-file"
14788 msgstr ""
14789
14790 #. type: verbatim
14791 #: ../fish/guestfish-actions.pod:4159
14792 #, no-wrap
14793 msgid ""
14794 " read-file path\n"
14795 "\n"
14796 msgstr ""
14797
14798 #. type: textblock
14799 #: ../fish/guestfish-actions.pod:4161 ../src/guestfs-actions.pod:6479
14800 msgid "This calls returns the contents of the file C<path> as a buffer."
14801 msgstr ""
14802
14803 #. type: textblock
14804 #: ../fish/guestfish-actions.pod:4164
14805 msgid ""
14806 "Unlike L</cat>, this function can correctly handle files that contain "
14807 "embedded ASCII NUL characters.  However unlike L</download>, this function "
14808 "is limited in the total size of file that can be handled."
14809 msgstr ""
14810
14811 #. type: =head2
14812 #: ../fish/guestfish-actions.pod:4172
14813 msgid "read-lines"
14814 msgstr ""
14815
14816 #. type: verbatim
14817 #: ../fish/guestfish-actions.pod:4174
14818 #, no-wrap
14819 msgid ""
14820 " read-lines path\n"
14821 "\n"
14822 msgstr ""
14823
14824 #. type: textblock
14825 #: ../fish/guestfish-actions.pod:4178 ../src/guestfs-actions.pod:6504
14826 msgid ""
14827 "The file contents are returned as a list of lines.  Trailing C<LF> and "
14828 "C<CRLF> character sequences are I<not> returned."
14829 msgstr ""
14830
14831 #. type: textblock
14832 #: ../fish/guestfish-actions.pod:4181
14833 msgid ""
14834 "Note that this function cannot correctly handle binary files (specifically, "
14835 "files containing C<\\0> character which is treated as end of line).  For "
14836 "those you need to use the L</read-file> function which has a more complex "
14837 "interface."
14838 msgstr ""
14839
14840 #. type: =head2
14841 #: ../fish/guestfish-actions.pod:4186
14842 msgid "readdir"
14843 msgstr ""
14844
14845 #. type: verbatim
14846 #: ../fish/guestfish-actions.pod:4188
14847 #, no-wrap
14848 msgid ""
14849 " readdir dir\n"
14850 "\n"
14851 msgstr ""
14852
14853 #. type: textblock
14854 #: ../fish/guestfish-actions.pod:4190 ../src/guestfs-actions.pod:6524
14855 msgid "This returns the list of directory entries in directory C<dir>."
14856 msgstr ""
14857
14858 #. type: textblock
14859 #: ../fish/guestfish-actions.pod:4192 ../src/guestfs-actions.pod:6526
14860 msgid ""
14861 "All entries in the directory are returned, including C<.> and C<..>.  The "
14862 "entries are I<not> sorted, but returned in the same order as the underlying "
14863 "filesystem."
14864 msgstr ""
14865
14866 #. type: textblock
14867 #: ../fish/guestfish-actions.pod:4196 ../src/guestfs-actions.pod:6530
14868 msgid ""
14869 "Also this call returns basic file type information about each file.  The "
14870 "C<ftyp> field will contain one of the following characters:"
14871 msgstr ""
14872
14873 #. type: =item
14874 #: ../fish/guestfish-actions.pod:4201 ../src/guestfs-actions.pod:6535
14875 msgid "'b'"
14876 msgstr ""
14877
14878 #. type: textblock
14879 #: ../fish/guestfish-actions.pod:4203 ../src/guestfs-actions.pod:6537
14880 msgid "Block special"
14881 msgstr ""
14882
14883 #. type: =item
14884 #: ../fish/guestfish-actions.pod:4205 ../src/guestfs-actions.pod:6539
14885 msgid "'c'"
14886 msgstr ""
14887
14888 #. type: textblock
14889 #: ../fish/guestfish-actions.pod:4207 ../src/guestfs-actions.pod:6541
14890 msgid "Char special"
14891 msgstr ""
14892
14893 #. type: =item
14894 #: ../fish/guestfish-actions.pod:4209 ../src/guestfs-actions.pod:6543
14895 msgid "'d'"
14896 msgstr ""
14897
14898 #. type: textblock
14899 #: ../fish/guestfish-actions.pod:4211 ../src/guestfs-actions.pod:6545
14900 msgid "Directory"
14901 msgstr ""
14902
14903 #. type: =item
14904 #: ../fish/guestfish-actions.pod:4213 ../src/guestfs-actions.pod:6547
14905 msgid "'f'"
14906 msgstr ""
14907
14908 #. type: textblock
14909 #: ../fish/guestfish-actions.pod:4215 ../src/guestfs-actions.pod:6549
14910 msgid "FIFO (named pipe)"
14911 msgstr ""
14912
14913 #. type: =item
14914 #: ../fish/guestfish-actions.pod:4217 ../src/guestfs-actions.pod:6551
14915 msgid "'l'"
14916 msgstr ""
14917
14918 #. type: textblock
14919 #: ../fish/guestfish-actions.pod:4219 ../src/guestfs-actions.pod:6553
14920 msgid "Symbolic link"
14921 msgstr ""
14922
14923 #. type: =item
14924 #: ../fish/guestfish-actions.pod:4221 ../src/guestfs-actions.pod:6555
14925 msgid "'r'"
14926 msgstr ""
14927
14928 #. type: textblock
14929 #: ../fish/guestfish-actions.pod:4223 ../src/guestfs-actions.pod:6557
14930 msgid "Regular file"
14931 msgstr ""
14932
14933 #. type: =item
14934 #: ../fish/guestfish-actions.pod:4225 ../src/guestfs-actions.pod:6559
14935 msgid "'s'"
14936 msgstr ""
14937
14938 #. type: textblock
14939 #: ../fish/guestfish-actions.pod:4227 ../src/guestfs-actions.pod:6561
14940 msgid "Socket"
14941 msgstr ""
14942
14943 #. type: =item
14944 #: ../fish/guestfish-actions.pod:4229 ../src/guestfs-actions.pod:6563
14945 msgid "'u'"
14946 msgstr ""
14947
14948 #. type: textblock
14949 #: ../fish/guestfish-actions.pod:4231 ../src/guestfs-actions.pod:6565
14950 msgid "Unknown file type"
14951 msgstr ""
14952
14953 #. type: =item
14954 #: ../fish/guestfish-actions.pod:4233 ../src/guestfs-actions.pod:6567
14955 msgid "'?'"
14956 msgstr ""
14957
14958 #. type: textblock
14959 #: ../fish/guestfish-actions.pod:4235 ../src/guestfs-actions.pod:6569
14960 msgid "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
14961 msgstr ""
14962
14963 #. type: textblock
14964 #: ../fish/guestfish-actions.pod:4240
14965 msgid ""
14966 "This function is primarily intended for use by programs.  To get a simple "
14967 "list of names, use L</ls>.  To get a printable directory for human "
14968 "consumption, use L</ll>."
14969 msgstr ""
14970
14971 #. type: =head2
14972 #: ../fish/guestfish-actions.pod:4244
14973 msgid "readlink"
14974 msgstr ""
14975
14976 #. type: verbatim
14977 #: ../fish/guestfish-actions.pod:4246
14978 #, no-wrap
14979 msgid ""
14980 " readlink path\n"
14981 "\n"
14982 msgstr ""
14983
14984 #. type: textblock
14985 #: ../fish/guestfish-actions.pod:4248 ../src/guestfs-actions.pod:6590
14986 msgid "This command reads the target of a symbolic link."
14987 msgstr ""
14988
14989 #. type: =head2
14990 #: ../fish/guestfish-actions.pod:4250
14991 msgid "readlinklist"
14992 msgstr ""
14993
14994 #. type: verbatim
14995 #: ../fish/guestfish-actions.pod:4252
14996 #, no-wrap
14997 msgid ""
14998 " readlinklist path 'names ...'\n"
14999 "\n"
15000 msgstr ""
15001
15002 #. type: textblock
15003 #: ../fish/guestfish-actions.pod:4254 ../src/guestfs-actions.pod:6604
15004 msgid ""
15005 "This call allows you to do a C<readlink> operation on multiple files, where "
15006 "all files are in the directory C<path>.  C<names> is the list of files from "
15007 "this directory."
15008 msgstr ""
15009
15010 #. type: textblock
15011 #: ../fish/guestfish-actions.pod:4258 ../src/guestfs-actions.pod:6608
15012 msgid ""
15013 "On return you get a list of strings, with a one-to-one correspondence to the "
15014 "C<names> list.  Each string is the value of the symbolic link."
15015 msgstr ""
15016
15017 #. type: textblock
15018 #: ../fish/guestfish-actions.pod:4262 ../src/guestfs-actions.pod:6612
15019 msgid ""
15020 "If the C<readlink(2)> operation fails on any name, then the corresponding "
15021 "result string is the empty string C<\"\">.  However the whole operation is "
15022 "completed even if there were C<readlink(2)> errors, and so you can call this "
15023 "function with names where you don't know if they are symbolic links already "
15024 "(albeit slightly less efficient)."
15025 msgstr ""
15026
15027 #. type: textblock
15028 #: ../fish/guestfish-actions.pod:4269 ../src/guestfs-actions.pod:6619
15029 msgid ""
15030 "This call is intended for programs that want to efficiently list a directory "
15031 "contents without making many round-trips.  Very long directory listings "
15032 "might cause the protocol message size to be exceeded, causing this call to "
15033 "fail.  The caller must split up such requests into smaller groups of names."
15034 msgstr ""
15035
15036 #. type: =head2
15037 #: ../fish/guestfish-actions.pod:4276
15038 msgid "realpath"
15039 msgstr ""
15040
15041 #. type: verbatim
15042 #: ../fish/guestfish-actions.pod:4278
15043 #, no-wrap
15044 msgid ""
15045 " realpath path\n"
15046 "\n"
15047 msgstr ""
15048
15049 #. type: textblock
15050 #: ../fish/guestfish-actions.pod:4280 ../src/guestfs-actions.pod:6638
15051 msgid ""
15052 "Return the canonicalized absolute pathname of C<path>.  The returned path "
15053 "has no C<.>, C<..> or symbolic link path elements."
15054 msgstr ""
15055
15056 #. type: =head2
15057 #: ../fish/guestfish-actions.pod:4283
15058 msgid "removexattr"
15059 msgstr ""
15060
15061 #. type: verbatim
15062 #: ../fish/guestfish-actions.pod:4285
15063 #, no-wrap
15064 msgid ""
15065 " removexattr xattr path\n"
15066 "\n"
15067 msgstr ""
15068
15069 #. type: textblock
15070 #: ../fish/guestfish-actions.pod:4287 ../src/guestfs-actions.pod:6653
15071 msgid "This call removes the extended attribute named C<xattr> of the file C<path>."
15072 msgstr ""
15073
15074 #. type: textblock
15075 #: ../fish/guestfish-actions.pod:4290
15076 msgid "See also: L</lremovexattr>, L<attr(5)>."
15077 msgstr ""
15078
15079 #. type: =head2
15080 #: ../fish/guestfish-actions.pod:4292
15081 msgid "resize2fs"
15082 msgstr ""
15083
15084 #. type: verbatim
15085 #: ../fish/guestfish-actions.pod:4294
15086 #, no-wrap
15087 msgid ""
15088 " resize2fs device\n"
15089 "\n"
15090 msgstr ""
15091
15092 #. type: textblock
15093 #: ../fish/guestfish-actions.pod:4296 ../src/guestfs-actions.pod:6668
15094 msgid ""
15095 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
15096 "underlying device."
15097 msgstr ""
15098
15099 #. type: textblock
15100 #: ../fish/guestfish-actions.pod:4299
15101 msgid ""
15102 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
15103 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
15104 "gives an error about this and sometimes not.  In any case, it is always safe "
15105 "to call L</e2fsck-f> before calling this function."
15106 msgstr ""
15107
15108 #. type: =head2
15109 #: ../fish/guestfish-actions.pod:4305
15110 msgid "resize2fs-M"
15111 msgstr ""
15112
15113 #. type: verbatim
15114 #: ../fish/guestfish-actions.pod:4307
15115 #, no-wrap
15116 msgid ""
15117 " resize2fs-M device\n"
15118 "\n"
15119 msgstr ""
15120
15121 #. type: textblock
15122 #: ../fish/guestfish-actions.pod:4309
15123 msgid ""
15124 "This command is the same as L</resize2fs>, but the filesystem is resized to "
15125 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
15126 "command."
15127 msgstr ""
15128
15129 #. type: textblock
15130 #: ../fish/guestfish-actions.pod:4313
15131 msgid ""
15132 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
15133 "and read the C<Block size> and C<Block count> values.  These two numbers, "
15134 "multiplied together, give the resulting size of the minimal filesystem in "
15135 "bytes."
15136 msgstr ""
15137
15138 #. type: =head2
15139 #: ../fish/guestfish-actions.pod:4318
15140 msgid "resize2fs-size"
15141 msgstr ""
15142
15143 #. type: verbatim
15144 #: ../fish/guestfish-actions.pod:4320
15145 #, no-wrap
15146 msgid ""
15147 " resize2fs-size device size\n"
15148 "\n"
15149 msgstr ""
15150
15151 #. type: textblock
15152 #: ../fish/guestfish-actions.pod:4322
15153 msgid ""
15154 "This command is the same as L</resize2fs> except that it allows you to "
15155 "specify the new size (in bytes) explicitly."
15156 msgstr ""
15157
15158 #. type: =head2
15159 #: ../fish/guestfish-actions.pod:4325
15160 msgid "rm"
15161 msgstr ""
15162
15163 #. type: verbatim
15164 #: ../fish/guestfish-actions.pod:4327
15165 #, no-wrap
15166 msgid ""
15167 " rm path\n"
15168 "\n"
15169 msgstr ""
15170
15171 #. type: textblock
15172 #: ../fish/guestfish-actions.pod:4329 ../src/guestfs-actions.pod:6720
15173 msgid "Remove the single file C<path>."
15174 msgstr ""
15175
15176 #. type: =head2
15177 #: ../fish/guestfish-actions.pod:4331
15178 msgid "rm-rf"
15179 msgstr ""
15180
15181 #. type: verbatim
15182 #: ../fish/guestfish-actions.pod:4333
15183 #, no-wrap
15184 msgid ""
15185 " rm-rf path\n"
15186 "\n"
15187 msgstr ""
15188
15189 #. type: textblock
15190 #: ../fish/guestfish-actions.pod:4335 ../src/guestfs-actions.pod:6732
15191 msgid ""
15192 "Remove the file or directory C<path>, recursively removing the contents if "
15193 "its a directory.  This is like the C<rm -rf> shell command."
15194 msgstr ""
15195
15196 #. type: =head2
15197 #: ../fish/guestfish-actions.pod:4339
15198 msgid "rmdir"
15199 msgstr ""
15200
15201 #. type: verbatim
15202 #: ../fish/guestfish-actions.pod:4341
15203 #, no-wrap
15204 msgid ""
15205 " rmdir path\n"
15206 "\n"
15207 msgstr ""
15208
15209 #. type: textblock
15210 #: ../fish/guestfish-actions.pod:4343 ../src/guestfs-actions.pod:6746
15211 msgid "Remove the single directory C<path>."
15212 msgstr ""
15213
15214 #. type: =head2
15215 #: ../fish/guestfish-actions.pod:4345
15216 msgid "rmmountpoint"
15217 msgstr ""
15218
15219 #. type: verbatim
15220 #: ../fish/guestfish-actions.pod:4347
15221 #, no-wrap
15222 msgid ""
15223 " rmmountpoint exemptpath\n"
15224 "\n"
15225 msgstr ""
15226
15227 #. type: textblock
15228 #: ../fish/guestfish-actions.pod:4349
15229 msgid ""
15230 "This calls removes a mountpoint that was previously created with "
15231 "L</mkmountpoint>.  See L</mkmountpoint> for full details."
15232 msgstr ""
15233
15234 #. type: =head2
15235 #: ../fish/guestfish-actions.pod:4353
15236 msgid "scrub-device"
15237 msgstr ""
15238
15239 #. type: verbatim
15240 #: ../fish/guestfish-actions.pod:4355
15241 #, no-wrap
15242 msgid ""
15243 " scrub-device device\n"
15244 "\n"
15245 msgstr ""
15246
15247 #. type: textblock
15248 #: ../fish/guestfish-actions.pod:4357 ../src/guestfs-actions.pod:6772
15249 msgid ""
15250 "This command writes patterns over C<device> to make data retrieval more "
15251 "difficult."
15252 msgstr ""
15253
15254 #. type: textblock
15255 #: ../fish/guestfish-actions.pod:4360 ../fish/guestfish-actions.pod:4372 ../fish/guestfish-actions.pod:4385 ../src/guestfs-actions.pod:6775 ../src/guestfs-actions.pod:6793 ../src/guestfs-actions.pod:6812
15256 msgid ""
15257 "It is an interface to the L<scrub(1)> program.  See that manual page for "
15258 "more details."
15259 msgstr ""
15260
15261 #. type: =head2
15262 #: ../fish/guestfish-actions.pod:4363
15263 msgid "scrub-file"
15264 msgstr ""
15265
15266 #. type: verbatim
15267 #: ../fish/guestfish-actions.pod:4365
15268 #, no-wrap
15269 msgid ""
15270 " scrub-file file\n"
15271 "\n"
15272 msgstr ""
15273
15274 #. type: textblock
15275 #: ../fish/guestfish-actions.pod:4367 ../src/guestfs-actions.pod:6788
15276 msgid ""
15277 "This command writes patterns over a file to make data retrieval more "
15278 "difficult."
15279 msgstr ""
15280
15281 #. type: textblock
15282 #: ../fish/guestfish-actions.pod:4370 ../src/guestfs-actions.pod:6791
15283 msgid "The file is I<removed> after scrubbing."
15284 msgstr ""
15285
15286 #. type: =head2
15287 #: ../fish/guestfish-actions.pod:4375
15288 msgid "scrub-freespace"
15289 msgstr ""
15290
15291 #. type: verbatim
15292 #: ../fish/guestfish-actions.pod:4377
15293 #, no-wrap
15294 msgid ""
15295 " scrub-freespace dir\n"
15296 "\n"
15297 msgstr ""
15298
15299 #. type: textblock
15300 #: ../fish/guestfish-actions.pod:4379
15301 msgid ""
15302 "This command creates the directory C<dir> and then fills it with files until "
15303 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
15304 "deletes them.  The intention is to scrub any free space on the partition "
15305 "containing C<dir>."
15306 msgstr ""
15307
15308 #. type: =head2
15309 #: ../fish/guestfish-actions.pod:4388
15310 msgid "set-append"
15311 msgstr ""
15312
15313 #. type: =head2
15314 #: ../fish/guestfish-actions.pod:4390
15315 msgid "append"
15316 msgstr ""
15317
15318 #. type: verbatim
15319 #: ../fish/guestfish-actions.pod:4392
15320 #, no-wrap
15321 msgid ""
15322 " set-append append\n"
15323 "\n"
15324 msgstr ""
15325
15326 #. type: textblock
15327 #: ../fish/guestfish-actions.pod:4394 ../src/guestfs-actions.pod:6825
15328 msgid ""
15329 "This function is used to add additional options to the guest kernel command "
15330 "line."
15331 msgstr ""
15332
15333 #. type: textblock
15334 #: ../fish/guestfish-actions.pod:4397 ../src/guestfs-actions.pod:6828
15335 msgid ""
15336 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
15337 "environment variable."
15338 msgstr ""
15339
15340 #. type: textblock
15341 #: ../fish/guestfish-actions.pod:4400 ../src/guestfs-actions.pod:6831
15342 msgid ""
15343 "Setting C<append> to C<NULL> means I<no> additional options are passed "
15344 "(libguestfs always adds a few of its own)."
15345 msgstr ""
15346
15347 #. type: =head2
15348 #: ../fish/guestfish-actions.pod:4403
15349 msgid "set-attach-method"
15350 msgstr ""
15351
15352 #. type: =head2
15353 #: ../fish/guestfish-actions.pod:4405
15354 msgid "attach-method"
15355 msgstr ""
15356
15357 #. type: verbatim
15358 #: ../fish/guestfish-actions.pod:4407
15359 #, no-wrap
15360 msgid ""
15361 " set-attach-method attachmethod\n"
15362 "\n"
15363 msgstr ""
15364
15365 #. type: textblock
15366 #: ../fish/guestfish-actions.pod:4409 ../src/guestfs-actions.pod:6844
15367 msgid ""
15368 "Set the method that libguestfs uses to connect to the back end guestfsd "
15369 "daemon.  Possible methods are:"
15370 msgstr ""
15371
15372 #. type: =item
15373 #: ../fish/guestfish-actions.pod:4414 ../src/guestfs-actions.pod:6849 ../src/guestfs.pod:2916
15374 msgid "C<appliance>"
15375 msgstr ""
15376
15377 #. type: textblock
15378 #: ../fish/guestfish-actions.pod:4416 ../src/guestfs-actions.pod:6851
15379 msgid ""
15380 "Launch an appliance and connect to it.  This is the ordinary method and the "
15381 "default."
15382 msgstr ""
15383
15384 #. type: =item
15385 #: ../fish/guestfish-actions.pod:4419 ../src/guestfs-actions.pod:6854
15386 msgid "C<unix:I<path>>"
15387 msgstr ""
15388
15389 #. type: textblock
15390 #: ../fish/guestfish-actions.pod:4421 ../src/guestfs-actions.pod:6856
15391 msgid "Connect to the Unix domain socket I<path>."
15392 msgstr ""
15393
15394 #. type: textblock
15395 #: ../fish/guestfish-actions.pod:4423 ../src/guestfs-actions.pod:6858
15396 msgid ""
15397 "This method lets you connect to an existing daemon or (using virtio-serial) "
15398 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
15399 "RUNNING DAEMONS>."
15400 msgstr ""
15401
15402 #. type: =head2
15403 #: ../fish/guestfish-actions.pod:4429
15404 msgid "set-autosync"
15405 msgstr ""
15406
15407 #. type: =head2
15408 #: ../fish/guestfish-actions.pod:4431
15409 msgid "autosync"
15410 msgstr ""
15411
15412 #. type: verbatim
15413 #: ../fish/guestfish-actions.pod:4433
15414 #, no-wrap
15415 msgid ""
15416 " set-autosync true|false\n"
15417 "\n"
15418 msgstr ""
15419
15420 #. type: textblock
15421 #: ../fish/guestfish-actions.pod:4435 ../src/guestfs-actions.pod:6874
15422 msgid ""
15423 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
15424 "effort attempt to make filesystems consistent and synchronized when the "
15425 "handle is closed (also if the program exits without closing handles)."
15426 msgstr ""
15427
15428 #. type: textblock
15429 #: ../fish/guestfish-actions.pod:4440 ../src/guestfs-actions.pod:6879
15430 msgid ""
15431 "This is enabled by default (since libguestfs 1.5.24, previously it was "
15432 "disabled by default)."
15433 msgstr ""
15434
15435 #. type: =head2
15436 #: ../fish/guestfish-actions.pod:4443
15437 msgid "set-direct"
15438 msgstr ""
15439
15440 #. type: =head2
15441 #: ../fish/guestfish-actions.pod:4445
15442 msgid "direct"
15443 msgstr ""
15444
15445 #. type: verbatim
15446 #: ../fish/guestfish-actions.pod:4447
15447 #, no-wrap
15448 msgid ""
15449 " set-direct true|false\n"
15450 "\n"
15451 msgstr ""
15452
15453 #. type: textblock
15454 #: ../fish/guestfish-actions.pod:4449 ../src/guestfs-actions.pod:6892
15455 msgid ""
15456 "If the direct appliance mode flag is enabled, then stdin and stdout are "
15457 "passed directly through to the appliance once it is launched."
15458 msgstr ""
15459
15460 #. type: textblock
15461 #: ../fish/guestfish-actions.pod:4453
15462 msgid ""
15463 "One consequence of this is that log messages aren't caught by the library "
15464 "and handled by L</set-log-message-callback>, but go straight to stdout."
15465 msgstr ""
15466
15467 #. type: textblock
15468 #: ../fish/guestfish-actions.pod:4457 ../src/guestfs-actions.pod:6900
15469 msgid "You probably don't want to use this unless you know what you are doing."
15470 msgstr ""
15471
15472 #. type: textblock
15473 #: ../fish/guestfish-actions.pod:4460 ../src/guestfs-actions.pod:6903
15474 msgid "The default is disabled."
15475 msgstr ""
15476
15477 #. type: =head2
15478 #: ../fish/guestfish-actions.pod:4462
15479 msgid "set-e2label"
15480 msgstr ""
15481
15482 #. type: verbatim
15483 #: ../fish/guestfish-actions.pod:4464
15484 #, no-wrap
15485 msgid ""
15486 " set-e2label device label\n"
15487 "\n"
15488 msgstr ""
15489
15490 #. type: textblock
15491 #: ../fish/guestfish-actions.pod:4466 ../src/guestfs-actions.pod:6916
15492 msgid ""
15493 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
15494 "C<label>.  Filesystem labels are limited to 16 characters."
15495 msgstr ""
15496
15497 #. type: textblock
15498 #: ../fish/guestfish-actions.pod:4470
15499 msgid ""
15500 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
15501 "label on a filesystem."
15502 msgstr ""
15503
15504 #. type: =head2
15505 #: ../fish/guestfish-actions.pod:4473
15506 msgid "set-e2uuid"
15507 msgstr ""
15508
15509 #. type: verbatim
15510 #: ../fish/guestfish-actions.pod:4475
15511 #, no-wrap
15512 msgid ""
15513 " set-e2uuid device uuid\n"
15514 "\n"
15515 msgstr ""
15516
15517 #. type: textblock
15518 #: ../fish/guestfish-actions.pod:4477 ../src/guestfs-actions.pod:6934
15519 msgid ""
15520 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
15521 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
15522 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
15523 msgstr ""
15524
15525 #. type: textblock
15526 #: ../fish/guestfish-actions.pod:4482
15527 msgid ""
15528 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
15529 "UUID of a filesystem."
15530 msgstr ""
15531
15532 #. type: =head2
15533 #: ../fish/guestfish-actions.pod:4485
15534 msgid "set-memsize"
15535 msgstr ""
15536
15537 #. type: =head2
15538 #: ../fish/guestfish-actions.pod:4487
15539 msgid "memsize"
15540 msgstr ""
15541
15542 #. type: verbatim
15543 #: ../fish/guestfish-actions.pod:4489
15544 #, no-wrap
15545 msgid ""
15546 " set-memsize memsize\n"
15547 "\n"
15548 msgstr ""
15549
15550 #. type: textblock
15551 #: ../fish/guestfish-actions.pod:4491
15552 msgid ""
15553 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
15554 "This only has any effect if called before L</launch>."
15555 msgstr ""
15556
15557 #. type: textblock
15558 #: ../fish/guestfish-actions.pod:4495 ../src/guestfs-actions.pod:6956
15559 msgid ""
15560 "You can also change this by setting the environment variable "
15561 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
15562 msgstr ""
15563
15564 #. type: =head2
15565 #: ../fish/guestfish-actions.pod:4502
15566 msgid "set-network"
15567 msgstr ""
15568
15569 #. type: =head2
15570 #: ../fish/guestfish-actions.pod:4504
15571 msgid "network"
15572 msgstr ""
15573
15574 #. type: verbatim
15575 #: ../fish/guestfish-actions.pod:4506
15576 #, no-wrap
15577 msgid ""
15578 " set-network true|false\n"
15579 "\n"
15580 msgstr ""
15581
15582 #. type: textblock
15583 #: ../fish/guestfish-actions.pod:4508 ../src/guestfs-actions.pod:6973
15584 msgid ""
15585 "If C<network> is true, then the network is enabled in the libguestfs "
15586 "appliance.  The default is false."
15587 msgstr ""
15588
15589 #. type: textblock
15590 #: ../fish/guestfish-actions.pod:4511 ../src/guestfs-actions.pod:6976
15591 msgid ""
15592 "This affects whether commands are able to access the network (see "
15593 "L<guestfs(3)/RUNNING COMMANDS>)."
15594 msgstr ""
15595
15596 #. type: textblock
15597 #: ../fish/guestfish-actions.pod:4514
15598 msgid "You must call this before calling L</launch>, otherwise it has no effect."
15599 msgstr ""
15600
15601 #. type: =head2
15602 #: ../fish/guestfish-actions.pod:4517
15603 msgid "set-path"
15604 msgstr ""
15605
15606 #. type: verbatim
15607 #: ../fish/guestfish-actions.pod:4521
15608 #, no-wrap
15609 msgid ""
15610 " set-path searchpath\n"
15611 "\n"
15612 msgstr ""
15613
15614 #. type: textblock
15615 #: ../fish/guestfish-actions.pod:4523 ../src/guestfs-actions.pod:6992
15616 msgid "Set the path that libguestfs searches for kernel and initrd.img."
15617 msgstr ""
15618
15619 #. type: textblock
15620 #: ../fish/guestfish-actions.pod:4525 ../src/guestfs-actions.pod:6994
15621 msgid ""
15622 "The default is C<$libdir/guestfs> unless overridden by setting "
15623 "C<LIBGUESTFS_PATH> environment variable."
15624 msgstr ""
15625
15626 #. type: textblock
15627 #: ../fish/guestfish-actions.pod:4528 ../src/guestfs-actions.pod:6997
15628 msgid "Setting C<path> to C<NULL> restores the default path."
15629 msgstr ""
15630
15631 #. type: =head2
15632 #: ../fish/guestfish-actions.pod:4530
15633 msgid "set-pgroup"
15634 msgstr ""
15635
15636 #. type: =head2
15637 #: ../fish/guestfish-actions.pod:4532
15638 msgid "pgroup"
15639 msgstr ""
15640
15641 #. type: verbatim
15642 #: ../fish/guestfish-actions.pod:4534
15643 #, no-wrap
15644 msgid ""
15645 " set-pgroup true|false\n"
15646 "\n"
15647 msgstr ""
15648
15649 #. type: textblock
15650 #: ../fish/guestfish-actions.pod:4536 ../src/guestfs-actions.pod:7009
15651 msgid ""
15652 "If C<pgroup> is true, child processes are placed into their own process "
15653 "group."
15654 msgstr ""
15655
15656 #. type: textblock
15657 #: ../fish/guestfish-actions.pod:4539 ../src/guestfs-actions.pod:7012
15658 msgid ""
15659 "The practical upshot of this is that signals like C<SIGINT> (from users "
15660 "pressing C<^C>) won't be received by the child process."
15661 msgstr ""
15662
15663 #. type: textblock
15664 #: ../fish/guestfish-actions.pod:4542 ../src/guestfs-actions.pod:7015
15665 msgid ""
15666 "The default for this flag is false, because usually you want C<^C> to kill "
15667 "the subprocess."
15668 msgstr ""
15669
15670 #. type: =head2
15671 #: ../fish/guestfish-actions.pod:4545
15672 msgid "set-qemu"
15673 msgstr ""
15674
15675 #. type: =head2
15676 #: ../fish/guestfish-actions.pod:4547
15677 msgid "qemu"
15678 msgstr ""
15679
15680 #. type: verbatim
15681 #: ../fish/guestfish-actions.pod:4549
15682 #, no-wrap
15683 msgid ""
15684 " set-qemu qemu\n"
15685 "\n"
15686 msgstr ""
15687
15688 #. type: textblock
15689 #: ../fish/guestfish-actions.pod:4551 ../src/guestfs-actions.pod:7028
15690 msgid "Set the qemu binary that we will use."
15691 msgstr ""
15692
15693 #. type: textblock
15694 #: ../fish/guestfish-actions.pod:4553 ../src/guestfs-actions.pod:7030
15695 msgid "The default is chosen when the library was compiled by the configure script."
15696 msgstr ""
15697
15698 #. type: textblock
15699 #: ../fish/guestfish-actions.pod:4556 ../src/guestfs-actions.pod:7033
15700 msgid ""
15701 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
15702 "variable."
15703 msgstr ""
15704
15705 #. type: textblock
15706 #: ../fish/guestfish-actions.pod:4559 ../src/guestfs-actions.pod:7036
15707 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
15708 msgstr ""
15709
15710 #. type: textblock
15711 #: ../fish/guestfish-actions.pod:4561 ../src/guestfs-actions.pod:7038
15712 msgid ""
15713 "Note that you should call this function as early as possible after creating "
15714 "the handle.  This is because some pre-launch operations depend on testing "
15715 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
15716 "don't retest features, and so you might see inconsistent results.  Using the "
15717 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
15718 "the qemu binary at the same time as the handle is created."
15719 msgstr ""
15720
15721 #. type: =head2
15722 #: ../fish/guestfish-actions.pod:4569
15723 msgid "set-recovery-proc"
15724 msgstr ""
15725
15726 #. type: =head2
15727 #: ../fish/guestfish-actions.pod:4571
15728 msgid "recovery-proc"
15729 msgstr ""
15730
15731 #. type: verbatim
15732 #: ../fish/guestfish-actions.pod:4573
15733 #, no-wrap
15734 msgid ""
15735 " set-recovery-proc true|false\n"
15736 "\n"
15737 msgstr ""
15738
15739 #. type: textblock
15740 #: ../fish/guestfish-actions.pod:4575
15741 msgid ""
15742 "If this is called with the parameter C<false> then L</launch> does not "
15743 "create a recovery process.  The purpose of the recovery process is to stop "
15744 "runaway qemu processes in the case where the main program aborts abruptly."
15745 msgstr ""
15746
15747 #. type: textblock
15748 #: ../fish/guestfish-actions.pod:4580
15749 msgid ""
15750 "This only has any effect if called before L</launch>, and the default is "
15751 "true."
15752 msgstr ""
15753
15754 #. type: textblock
15755 #: ../fish/guestfish-actions.pod:4583 ../src/guestfs-actions.pod:7064
15756 msgid ""
15757 "About the only time when you would want to disable this is if the main "
15758 "process will fork itself into the background (\"daemonize\" itself).  In "
15759 "this case the recovery process thinks that the main program has disappeared "
15760 "and so kills qemu, which is not very helpful."
15761 msgstr ""
15762
15763 #. type: =head2
15764 #: ../fish/guestfish-actions.pod:4589
15765 msgid "set-selinux"
15766 msgstr ""
15767
15768 #. type: =head2
15769 #: ../fish/guestfish-actions.pod:4591
15770 msgid "selinux"
15771 msgstr ""
15772
15773 #. type: verbatim
15774 #: ../fish/guestfish-actions.pod:4593
15775 #, no-wrap
15776 msgid ""
15777 " set-selinux true|false\n"
15778 "\n"
15779 msgstr ""
15780
15781 #. type: textblock
15782 #: ../fish/guestfish-actions.pod:4595 ../src/guestfs-actions.pod:7080
15783 msgid ""
15784 "This sets the selinux flag that is passed to the appliance at boot time.  "
15785 "The default is C<selinux=0> (disabled)."
15786 msgstr ""
15787
15788 #. type: textblock
15789 #: ../fish/guestfish-actions.pod:4598 ../src/guestfs-actions.pod:7083
15790 msgid ""
15791 "Note that if SELinux is enabled, it is always in Permissive mode "
15792 "(C<enforcing=0>)."
15793 msgstr ""
15794
15795 #. type: =head2
15796 #: ../fish/guestfish-actions.pod:4604
15797 msgid "set-smp"
15798 msgstr ""
15799
15800 #. type: =head2
15801 #: ../fish/guestfish-actions.pod:4606
15802 msgid "smp"
15803 msgstr ""
15804
15805 #. type: verbatim
15806 #: ../fish/guestfish-actions.pod:4608
15807 #, no-wrap
15808 msgid ""
15809 " set-smp smp\n"
15810 "\n"
15811 msgstr ""
15812
15813 #. type: textblock
15814 #: ../fish/guestfish-actions.pod:4610 ../src/guestfs-actions.pod:7099
15815 msgid ""
15816 "Change the number of virtual CPUs assigned to the appliance.  The default is "
15817 "C<1>.  Increasing this may improve performance, though often it has no "
15818 "effect."
15819 msgstr ""
15820
15821 #. type: textblock
15822 #: ../fish/guestfish-actions.pod:4614
15823 msgid "This function must be called before L</launch>."
15824 msgstr ""
15825
15826 #. type: =head2
15827 #: ../fish/guestfish-actions.pod:4616
15828 msgid "set-trace"
15829 msgstr ""
15830
15831 #. type: =head2
15832 #: ../fish/guestfish-actions.pod:4618
15833 msgid "trace"
15834 msgstr ""
15835
15836 #. type: verbatim
15837 #: ../fish/guestfish-actions.pod:4620
15838 #, no-wrap
15839 msgid ""
15840 " set-trace true|false\n"
15841 "\n"
15842 msgstr ""
15843
15844 #. type: textblock
15845 #: ../fish/guestfish-actions.pod:4622 ../src/guestfs-actions.pod:7115
15846 msgid ""
15847 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
15848 "return values are traced."
15849 msgstr ""
15850
15851 #. type: textblock
15852 #: ../fish/guestfish-actions.pod:4625 ../src/guestfs-actions.pod:7118
15853 msgid ""
15854 "If you want to trace C API calls into libguestfs (and other libraries) then "
15855 "possibly a better way is to use the external ltrace(1) command."
15856 msgstr ""
15857
15858 #. type: textblock
15859 #: ../fish/guestfish-actions.pod:4629 ../src/guestfs-actions.pod:7122
15860 msgid ""
15861 "Command traces are disabled unless the environment variable "
15862 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
15863 msgstr ""
15864
15865 #. type: textblock
15866 #: ../fish/guestfish-actions.pod:4632
15867 msgid ""
15868 "Trace messages are normally sent to C<stderr>, unless you register a "
15869 "callback to send them somewhere else (see L</set-event-callback>)."
15870 msgstr ""
15871
15872 #. type: =head2
15873 #: ../fish/guestfish-actions.pod:4636
15874 msgid "set-verbose"
15875 msgstr ""
15876
15877 #. type: =head2
15878 #: ../fish/guestfish-actions.pod:4638
15879 msgid "verbose"
15880 msgstr ""
15881
15882 #. type: verbatim
15883 #: ../fish/guestfish-actions.pod:4640
15884 #, no-wrap
15885 msgid ""
15886 " set-verbose true|false\n"
15887 "\n"
15888 msgstr ""
15889
15890 #. type: textblock
15891 #: ../fish/guestfish-actions.pod:4642 ../src/guestfs-actions.pod:7139
15892 msgid "If C<verbose> is true, this turns on verbose messages."
15893 msgstr ""
15894
15895 #. type: textblock
15896 #: ../fish/guestfish-actions.pod:4644 ../src/guestfs-actions.pod:7141
15897 msgid ""
15898 "Verbose messages are disabled unless the environment variable "
15899 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
15900 msgstr ""
15901
15902 #. type: textblock
15903 #: ../fish/guestfish-actions.pod:4647
15904 msgid ""
15905 "Verbose messages are normally sent to C<stderr>, unless you register a "
15906 "callback to send them somewhere else (see L</set-event-callback>)."
15907 msgstr ""
15908
15909 #. type: =head2
15910 #: ../fish/guestfish-actions.pod:4651
15911 msgid "setcon"
15912 msgstr ""
15913
15914 #. type: verbatim
15915 #: ../fish/guestfish-actions.pod:4653
15916 #, no-wrap
15917 msgid ""
15918 " setcon context\n"
15919 "\n"
15920 msgstr ""
15921
15922 #. type: textblock
15923 #: ../fish/guestfish-actions.pod:4655 ../src/guestfs-actions.pod:7158
15924 msgid ""
15925 "This sets the SELinux security context of the daemon to the string "
15926 "C<context>."
15927 msgstr ""
15928
15929 #. type: textblock
15930 #: ../fish/guestfish-actions.pod:4658 ../src/guestfs-actions.pod:7161
15931 msgid "See the documentation about SELINUX in L<guestfs(3)>."
15932 msgstr ""
15933
15934 #. type: =head2
15935 #: ../fish/guestfish-actions.pod:4660
15936 msgid "setxattr"
15937 msgstr ""
15938
15939 #. type: verbatim
15940 #: ../fish/guestfish-actions.pod:4662
15941 #, no-wrap
15942 msgid ""
15943 " setxattr xattr val vallen path\n"
15944 "\n"
15945 msgstr ""
15946
15947 #. type: textblock
15948 #: ../fish/guestfish-actions.pod:4664 ../src/guestfs-actions.pod:7176
15949 msgid ""
15950 "This call sets the extended attribute named C<xattr> of the file C<path> to "
15951 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
15952 msgstr ""
15953
15954 #. type: textblock
15955 #: ../fish/guestfish-actions.pod:4668
15956 msgid "See also: L</lsetxattr>, L<attr(5)>."
15957 msgstr ""
15958
15959 #. type: =head2
15960 #: ../fish/guestfish-actions.pod:4670
15961 msgid "sfdisk"
15962 msgstr ""
15963
15964 #. type: verbatim
15965 #: ../fish/guestfish-actions.pod:4672
15966 #, no-wrap
15967 msgid ""
15968 " sfdisk device cyls heads sectors 'lines ...'\n"
15969 "\n"
15970 msgstr ""
15971
15972 #. type: textblock
15973 #: ../fish/guestfish-actions.pod:4674 ../src/guestfs-actions.pod:7203
15974 msgid ""
15975 "This is a direct interface to the L<sfdisk(8)> program for creating "
15976 "partitions on block devices."
15977 msgstr ""
15978
15979 #. type: textblock
15980 #: ../fish/guestfish-actions.pod:4677 ../src/guestfs-actions.pod:7206
15981 msgid "C<device> should be a block device, for example C</dev/sda>."
15982 msgstr ""
15983
15984 #. type: textblock
15985 #: ../fish/guestfish-actions.pod:4679 ../src/guestfs-actions.pod:7208
15986 msgid ""
15987 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
15988 "sectors on the device, which are passed directly to sfdisk as the I<-C>, "
15989 "I<-H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
15990 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
15991 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
15992 "the kernel) cannot work out the right geometry and you will need to tell it."
15993 msgstr ""
15994
15995 #. type: textblock
15996 #: ../fish/guestfish-actions.pod:4687 ../src/guestfs-actions.pod:7216
15997 msgid ""
15998 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
15999 "refer to the L<sfdisk(8)> manpage."
16000 msgstr ""
16001
16002 #. type: textblock
16003 #: ../fish/guestfish-actions.pod:4690 ../src/guestfs-actions.pod:7219
16004 msgid ""
16005 "To create a single partition occupying the whole disk, you would pass "
16006 "C<lines> as a single element list, when the single element being the string "
16007 "C<,> (comma)."
16008 msgstr ""
16009
16010 #. type: textblock
16011 #: ../fish/guestfish-actions.pod:4694
16012 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
16013 msgstr ""
16014
16015 #. type: textblock
16016 #: ../fish/guestfish-actions.pod:4697 ../fish/guestfish-actions.pod:4717 ../fish/guestfish-actions.pod:4736
16017 msgid ""
16018 "I<This function is deprecated.> In new code, use the L</part_add> call "
16019 "instead."
16020 msgstr ""
16021
16022 #. type: =head2
16023 #: ../fish/guestfish-actions.pod:4704
16024 msgid "sfdiskM"
16025 msgstr ""
16026
16027 #. type: verbatim
16028 #: ../fish/guestfish-actions.pod:4706
16029 #, no-wrap
16030 msgid ""
16031 " sfdiskM device 'lines ...'\n"
16032 "\n"
16033 msgstr ""
16034
16035 #. type: textblock
16036 #: ../fish/guestfish-actions.pod:4708
16037 msgid ""
16038 "This is a simplified interface to the L</sfdisk> command, where partition "
16039 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
16040 "you don't need to specify the cyls, heads and sectors parameters which were "
16041 "rarely if ever used anyway."
16042 msgstr ""
16043
16044 #. type: textblock
16045 #: ../fish/guestfish-actions.pod:4714
16046 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
16047 msgstr ""
16048
16049 #. type: =head2
16050 #: ../fish/guestfish-actions.pod:4724
16051 msgid "sfdisk-N"
16052 msgstr ""
16053
16054 #. type: verbatim
16055 #: ../fish/guestfish-actions.pod:4726
16056 #, no-wrap
16057 msgid ""
16058 " sfdisk-N device partnum cyls heads sectors line\n"
16059 "\n"
16060 msgstr ""
16061
16062 #. type: textblock
16063 #: ../fish/guestfish-actions.pod:4728 ../src/guestfs-actions.pod:7275
16064 msgid ""
16065 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
16066 "(note: C<n> counts from 1)."
16067 msgstr ""
16068
16069 #. type: textblock
16070 #: ../fish/guestfish-actions.pod:4731
16071 msgid ""
16072 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
16073 "cyls/heads/sectors parameters."
16074 msgstr ""
16075
16076 #. type: textblock
16077 #: ../fish/guestfish-actions.pod:4734
16078 msgid "See also: L</part-add>"
16079 msgstr ""
16080
16081 #. type: =head2
16082 #: ../fish/guestfish-actions.pod:4743
16083 msgid "sfdisk-disk-geometry"
16084 msgstr ""
16085
16086 #. type: verbatim
16087 #: ../fish/guestfish-actions.pod:4745
16088 #, no-wrap
16089 msgid ""
16090 " sfdisk-disk-geometry device\n"
16091 "\n"
16092 msgstr ""
16093
16094 #. type: textblock
16095 #: ../fish/guestfish-actions.pod:4747
16096 msgid ""
16097 "This displays the disk geometry of C<device> read from the partition table.  "
16098 "Especially in the case where the underlying block device has been resized, "
16099 "this can be different from the kernel's idea of the geometry (see "
16100 "L</sfdisk-kernel-geometry>)."
16101 msgstr ""
16102
16103 #. type: textblock
16104 #: ../fish/guestfish-actions.pod:4752 ../fish/guestfish-actions.pod:4761 ../src/guestfs-actions.pod:7298 ../src/guestfs-actions.pod:7314
16105 msgid "The result is in human-readable format, and not designed to be parsed."
16106 msgstr ""
16107
16108 #. type: =head2
16109 #: ../fish/guestfish-actions.pod:4755
16110 msgid "sfdisk-kernel-geometry"
16111 msgstr ""
16112
16113 #. type: verbatim
16114 #: ../fish/guestfish-actions.pod:4757
16115 #, no-wrap
16116 msgid ""
16117 " sfdisk-kernel-geometry device\n"
16118 "\n"
16119 msgstr ""
16120
16121 #. type: textblock
16122 #: ../fish/guestfish-actions.pod:4759 ../src/guestfs-actions.pod:7312
16123 msgid "This displays the kernel's idea of the geometry of C<device>."
16124 msgstr ""
16125
16126 #. type: =head2
16127 #: ../fish/guestfish-actions.pod:4764
16128 msgid "sfdisk-l"
16129 msgstr ""
16130
16131 #. type: verbatim
16132 #: ../fish/guestfish-actions.pod:4766
16133 #, no-wrap
16134 msgid ""
16135 " sfdisk-l device\n"
16136 "\n"
16137 msgstr ""
16138
16139 #. type: textblock
16140 #: ../fish/guestfish-actions.pod:4768 ../src/guestfs-actions.pod:7335
16141 msgid ""
16142 "This displays the partition table on C<device>, in the human-readable output "
16143 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
16144 msgstr ""
16145
16146 #. type: textblock
16147 #: ../fish/guestfish-actions.pod:4772
16148 msgid "See also: L</part-list>"
16149 msgstr ""
16150
16151 #. type: textblock
16152 #: ../fish/guestfish-actions.pod:4774
16153 msgid ""
16154 "I<This function is deprecated.> In new code, use the L</part_list> call "
16155 "instead."
16156 msgstr ""
16157
16158 #. type: =head2
16159 #: ../fish/guestfish-actions.pod:4781
16160 msgid "sh"
16161 msgstr ""
16162
16163 #. type: verbatim
16164 #: ../fish/guestfish-actions.pod:4783
16165 #, no-wrap
16166 msgid ""
16167 " sh command\n"
16168 "\n"
16169 msgstr ""
16170
16171 #. type: textblock
16172 #: ../fish/guestfish-actions.pod:4785 ../src/guestfs-actions.pod:7352
16173 msgid ""
16174 "This call runs a command from the guest filesystem via the guest's "
16175 "C</bin/sh>."
16176 msgstr ""
16177
16178 #. type: textblock
16179 #: ../fish/guestfish-actions.pod:4788
16180 msgid "This is like L</command>, but passes the command to:"
16181 msgstr ""
16182
16183 #. type: verbatim
16184 #: ../fish/guestfish-actions.pod:4790 ../src/guestfs-actions.pod:7357
16185 #, no-wrap
16186 msgid ""
16187 " /bin/sh -c \"command\"\n"
16188 "\n"
16189 msgstr ""
16190
16191 #. type: textblock
16192 #: ../fish/guestfish-actions.pod:4792 ../src/guestfs-actions.pod:7359
16193 msgid ""
16194 "Depending on the guest's shell, this usually results in wildcards being "
16195 "expanded, shell expressions being interpolated and so on."
16196 msgstr ""
16197
16198 #. type: textblock
16199 #: ../fish/guestfish-actions.pod:4796
16200 msgid "All the provisos about L</command> apply to this call."
16201 msgstr ""
16202
16203 #. type: =head2
16204 #: ../fish/guestfish-actions.pod:4798
16205 msgid "sh-lines"
16206 msgstr ""
16207
16208 #. type: verbatim
16209 #: ../fish/guestfish-actions.pod:4800
16210 #, no-wrap
16211 msgid ""
16212 " sh-lines command\n"
16213 "\n"
16214 msgstr ""
16215
16216 #. type: textblock
16217 #: ../fish/guestfish-actions.pod:4802
16218 msgid "This is the same as L</sh>, but splits the result into a list of lines."
16219 msgstr ""
16220
16221 #. type: textblock
16222 #: ../fish/guestfish-actions.pod:4805
16223 msgid "See also: L</command-lines>"
16224 msgstr ""
16225
16226 #. type: =head2
16227 #: ../fish/guestfish-actions.pod:4807
16228 msgid "sleep"
16229 msgstr ""
16230
16231 #. type: verbatim
16232 #: ../fish/guestfish-actions.pod:4809
16233 #, no-wrap
16234 msgid ""
16235 " sleep secs\n"
16236 "\n"
16237 msgstr ""
16238
16239 #. type: textblock
16240 #: ../fish/guestfish-actions.pod:4811 ../src/guestfs-actions.pod:7393
16241 msgid "Sleep for C<secs> seconds."
16242 msgstr ""
16243
16244 #. type: =head2
16245 #: ../fish/guestfish-actions.pod:4813
16246 msgid "stat"
16247 msgstr ""
16248
16249 #. type: verbatim
16250 #: ../fish/guestfish-actions.pod:4815
16251 #, no-wrap
16252 msgid ""
16253 " stat path\n"
16254 "\n"
16255 msgstr ""
16256
16257 #. type: textblock
16258 #: ../fish/guestfish-actions.pod:4819 ../src/guestfs-actions.pod:7407
16259 msgid "This is the same as the C<stat(2)> system call."
16260 msgstr ""
16261
16262 #. type: =head2
16263 #: ../fish/guestfish-actions.pod:4821
16264 msgid "statvfs"
16265 msgstr ""
16266
16267 #. type: verbatim
16268 #: ../fish/guestfish-actions.pod:4823
16269 #, no-wrap
16270 msgid ""
16271 " statvfs path\n"
16272 "\n"
16273 msgstr ""
16274
16275 #. type: textblock
16276 #: ../fish/guestfish-actions.pod:4825 ../src/guestfs-actions.pod:7421
16277 msgid ""
16278 "Returns file system statistics for any mounted file system.  C<path> should "
16279 "be a file or directory in the mounted file system (typically it is the mount "
16280 "point itself, but it doesn't need to be)."
16281 msgstr ""
16282
16283 #. type: textblock
16284 #: ../fish/guestfish-actions.pod:4829 ../src/guestfs-actions.pod:7425
16285 msgid "This is the same as the C<statvfs(2)> system call."
16286 msgstr ""
16287
16288 #. type: =head2
16289 #: ../fish/guestfish-actions.pod:4831
16290 msgid "strings"
16291 msgstr ""
16292
16293 #. type: verbatim
16294 #: ../fish/guestfish-actions.pod:4833
16295 #, no-wrap
16296 msgid ""
16297 " strings path\n"
16298 "\n"
16299 msgstr ""
16300
16301 #. type: textblock
16302 #: ../fish/guestfish-actions.pod:4835 ../src/guestfs-actions.pod:7439
16303 msgid ""
16304 "This runs the L<strings(1)> command on a file and returns the list of "
16305 "printable strings found."
16306 msgstr ""
16307
16308 #. type: =head2
16309 #: ../fish/guestfish-actions.pod:4841
16310 msgid "strings-e"
16311 msgstr ""
16312
16313 #. type: verbatim
16314 #: ../fish/guestfish-actions.pod:4843
16315 #, no-wrap
16316 msgid ""
16317 " strings-e encoding path\n"
16318 "\n"
16319 msgstr ""
16320
16321 #. type: textblock
16322 #: ../fish/guestfish-actions.pod:4845
16323 msgid ""
16324 "This is like the L</strings> command, but allows you to specify the encoding "
16325 "of strings that are looked for in the source file C<path>."
16326 msgstr ""
16327
16328 #. type: textblock
16329 #: ../fish/guestfish-actions.pod:4849 ../src/guestfs-actions.pod:7462
16330 msgid "Allowed encodings are:"
16331 msgstr ""
16332
16333 #. type: =item
16334 #: ../fish/guestfish-actions.pod:4853 ../src/guestfs-actions.pod:7466
16335 msgid "s"
16336 msgstr ""
16337
16338 #. type: textblock
16339 #: ../fish/guestfish-actions.pod:4855
16340 msgid ""
16341 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
16342 "ISO-8859-X (this is what L</strings> uses)."
16343 msgstr ""
16344
16345 #. type: =item
16346 #: ../fish/guestfish-actions.pod:4858 ../src/guestfs-actions.pod:7471
16347 msgid "S"
16348 msgstr ""
16349
16350 #. type: textblock
16351 #: ../fish/guestfish-actions.pod:4860 ../src/guestfs-actions.pod:7473
16352 msgid "Single 8-bit-byte characters."
16353 msgstr ""
16354
16355 #. type: =item
16356 #: ../fish/guestfish-actions.pod:4862 ../src/guestfs-actions.pod:7475
16357 msgid "b"
16358 msgstr ""
16359
16360 #. type: textblock
16361 #: ../fish/guestfish-actions.pod:4864 ../src/guestfs-actions.pod:7477
16362 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
16363 msgstr ""
16364
16365 #. type: =item
16366 #: ../fish/guestfish-actions.pod:4867 ../src/guestfs-actions.pod:7480
16367 msgid "l (lower case letter L)"
16368 msgstr ""
16369
16370 #. type: textblock
16371 #: ../fish/guestfish-actions.pod:4869 ../src/guestfs-actions.pod:7482
16372 msgid ""
16373 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
16374 "examining binaries in Windows guests."
16375 msgstr ""
16376
16377 #. type: =item
16378 #: ../fish/guestfish-actions.pod:4872 ../src/guestfs-actions.pod:7485
16379 msgid "B"
16380 msgstr ""
16381
16382 #. type: textblock
16383 #: ../fish/guestfish-actions.pod:4874 ../src/guestfs-actions.pod:7487
16384 msgid "32-bit big endian such as UCS-4BE."
16385 msgstr ""
16386
16387 #. type: =item
16388 #: ../fish/guestfish-actions.pod:4876 ../src/guestfs-actions.pod:7489
16389 msgid "L"
16390 msgstr ""
16391
16392 #. type: textblock
16393 #: ../fish/guestfish-actions.pod:4878 ../src/guestfs-actions.pod:7491
16394 msgid "32-bit little endian such as UCS-4LE."
16395 msgstr ""
16396
16397 #. type: textblock
16398 #: ../fish/guestfish-actions.pod:4882 ../src/guestfs-actions.pod:7495
16399 msgid "The returned strings are transcoded to UTF-8."
16400 msgstr ""
16401
16402 #. type: =head2
16403 #: ../fish/guestfish-actions.pod:4887
16404 msgid "swapoff-device"
16405 msgstr ""
16406
16407 #. type: verbatim
16408 #: ../fish/guestfish-actions.pod:4889
16409 #, no-wrap
16410 msgid ""
16411 " swapoff-device device\n"
16412 "\n"
16413 msgstr ""
16414
16415 #. type: textblock
16416 #: ../fish/guestfish-actions.pod:4891
16417 msgid ""
16418 "This command disables the libguestfs appliance swap device or partition "
16419 "named C<device>.  See L</swapon-device>."
16420 msgstr ""
16421
16422 #. type: =head2
16423 #: ../fish/guestfish-actions.pod:4895
16424 msgid "swapoff-file"
16425 msgstr ""
16426
16427 #. type: verbatim
16428 #: ../fish/guestfish-actions.pod:4897
16429 #, no-wrap
16430 msgid ""
16431 " swapoff-file file\n"
16432 "\n"
16433 msgstr ""
16434
16435 #. type: textblock
16436 #: ../fish/guestfish-actions.pod:4899 ../src/guestfs-actions.pod:7526
16437 msgid "This command disables the libguestfs appliance swap on file."
16438 msgstr ""
16439
16440 #. type: =head2
16441 #: ../fish/guestfish-actions.pod:4901
16442 msgid "swapoff-label"
16443 msgstr ""
16444
16445 #. type: verbatim
16446 #: ../fish/guestfish-actions.pod:4903
16447 #, no-wrap
16448 msgid ""
16449 " swapoff-label label\n"
16450 "\n"
16451 msgstr ""
16452
16453 #. type: textblock
16454 #: ../fish/guestfish-actions.pod:4905 ../src/guestfs-actions.pod:7538
16455 msgid ""
16456 "This command disables the libguestfs appliance swap on labeled swap "
16457 "partition."
16458 msgstr ""
16459
16460 #. type: =head2
16461 #: ../fish/guestfish-actions.pod:4908
16462 msgid "swapoff-uuid"
16463 msgstr ""
16464
16465 #. type: verbatim
16466 #: ../fish/guestfish-actions.pod:4910
16467 #, no-wrap
16468 msgid ""
16469 " swapoff-uuid uuid\n"
16470 "\n"
16471 msgstr ""
16472
16473 #. type: textblock
16474 #: ../fish/guestfish-actions.pod:4912 ../src/guestfs-actions.pod:7551
16475 msgid ""
16476 "This command disables the libguestfs appliance swap partition with the given "
16477 "UUID."
16478 msgstr ""
16479
16480 #. type: =head2
16481 #: ../fish/guestfish-actions.pod:4915
16482 msgid "swapon-device"
16483 msgstr ""
16484
16485 #. type: verbatim
16486 #: ../fish/guestfish-actions.pod:4917
16487 #, no-wrap
16488 msgid ""
16489 " swapon-device device\n"
16490 "\n"
16491 msgstr ""
16492
16493 #. type: textblock
16494 #: ../fish/guestfish-actions.pod:4919
16495 msgid ""
16496 "This command enables the libguestfs appliance to use the swap device or "
16497 "partition named C<device>.  The increased memory is made available for all "
16498 "commands, for example those run using L</command> or L</sh>."
16499 msgstr ""
16500
16501 #. type: textblock
16502 #: ../fish/guestfish-actions.pod:4924 ../src/guestfs-actions.pod:7569
16503 msgid ""
16504 "Note that you should not swap to existing guest swap partitions unless you "
16505 "know what you are doing.  They may contain hibernation information, or other "
16506 "information that the guest doesn't want you to trash.  You also risk leaking "
16507 "information about the host to the guest this way.  Instead, attach a new "
16508 "host device to the guest and swap on that."
16509 msgstr ""
16510
16511 #. type: =head2
16512 #: ../fish/guestfish-actions.pod:4931
16513 msgid "swapon-file"
16514 msgstr ""
16515
16516 #. type: verbatim
16517 #: ../fish/guestfish-actions.pod:4933
16518 #, no-wrap
16519 msgid ""
16520 " swapon-file file\n"
16521 "\n"
16522 msgstr ""
16523
16524 #. type: textblock
16525 #: ../fish/guestfish-actions.pod:4935
16526 msgid "This command enables swap to a file.  See L</swapon-device> for other notes."
16527 msgstr ""
16528
16529 #. type: =head2
16530 #: ../fish/guestfish-actions.pod:4938
16531 msgid "swapon-label"
16532 msgstr ""
16533
16534 #. type: verbatim
16535 #: ../fish/guestfish-actions.pod:4940
16536 #, no-wrap
16537 msgid ""
16538 " swapon-label label\n"
16539 "\n"
16540 msgstr ""
16541
16542 #. type: textblock
16543 #: ../fish/guestfish-actions.pod:4942
16544 msgid ""
16545 "This command enables swap to a labeled swap partition.  See "
16546 "L</swapon-device> for other notes."
16547 msgstr ""
16548
16549 #. type: =head2
16550 #: ../fish/guestfish-actions.pod:4945
16551 msgid "swapon-uuid"
16552 msgstr ""
16553
16554 #. type: verbatim
16555 #: ../fish/guestfish-actions.pod:4947
16556 #, no-wrap
16557 msgid ""
16558 " swapon-uuid uuid\n"
16559 "\n"
16560 msgstr ""
16561
16562 #. type: textblock
16563 #: ../fish/guestfish-actions.pod:4949
16564 msgid ""
16565 "This command enables swap to a swap partition with the given UUID.  See "
16566 "L</swapon-device> for other notes."
16567 msgstr ""
16568
16569 #. type: =head2
16570 #: ../fish/guestfish-actions.pod:4952
16571 msgid "sync"
16572 msgstr ""
16573
16574 #. type: verbatim
16575 #: ../fish/guestfish-actions.pod:4954
16576 #, no-wrap
16577 msgid ""
16578 " sync\n"
16579 "\n"
16580 msgstr ""
16581
16582 #. type: textblock
16583 #: ../fish/guestfish-actions.pod:4956 ../src/guestfs-actions.pod:7624
16584 msgid ""
16585 "This syncs the disk, so that any writes are flushed through to the "
16586 "underlying disk image."
16587 msgstr ""
16588
16589 #. type: textblock
16590 #: ../fish/guestfish-actions.pod:4959 ../src/guestfs-actions.pod:7627
16591 msgid ""
16592 "You should always call this if you have modified a disk image, before "
16593 "closing the handle."
16594 msgstr ""
16595
16596 #. type: =head2
16597 #: ../fish/guestfish-actions.pod:4962
16598 msgid "tail"
16599 msgstr ""
16600
16601 #. type: verbatim
16602 #: ../fish/guestfish-actions.pod:4964
16603 #, no-wrap
16604 msgid ""
16605 " tail path\n"
16606 "\n"
16607 msgstr ""
16608
16609 #. type: textblock
16610 #: ../fish/guestfish-actions.pod:4966 ../src/guestfs-actions.pod:7640
16611 msgid "This command returns up to the last 10 lines of a file as a list of strings."
16612 msgstr ""
16613
16614 #. type: =head2
16615 #: ../fish/guestfish-actions.pod:4972
16616 msgid "tail-n"
16617 msgstr ""
16618
16619 #. type: verbatim
16620 #: ../fish/guestfish-actions.pod:4974
16621 #, no-wrap
16622 msgid ""
16623 " tail-n nrlines path\n"
16624 "\n"
16625 msgstr ""
16626
16627 #. type: textblock
16628 #: ../fish/guestfish-actions.pod:4976 ../src/guestfs-actions.pod:7659
16629 msgid ""
16630 "If the parameter C<nrlines> is a positive number, this returns the last "
16631 "C<nrlines> lines of the file C<path>."
16632 msgstr ""
16633
16634 #. type: textblock
16635 #: ../fish/guestfish-actions.pod:4979 ../src/guestfs-actions.pod:7662
16636 msgid ""
16637 "If the parameter C<nrlines> is a negative number, this returns lines from "
16638 "the file C<path>, starting with the C<-nrlines>th line."
16639 msgstr ""
16640
16641 #. type: =head2
16642 #: ../fish/guestfish-actions.pod:4987
16643 msgid "tar-in"
16644 msgstr ""
16645
16646 #. type: verbatim
16647 #: ../fish/guestfish-actions.pod:4989
16648 #, no-wrap
16649 msgid ""
16650 " tar-in (tarfile|-) directory\n"
16651 "\n"
16652 msgstr ""
16653
16654 #. type: textblock
16655 #: ../fish/guestfish-actions.pod:4991 ../src/guestfs-actions.pod:7683
16656 msgid ""
16657 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
16658 "tar file) into C<directory>."
16659 msgstr ""
16660
16661 #. type: textblock
16662 #: ../fish/guestfish-actions.pod:4994
16663 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
16664 msgstr ""
16665
16666 #. type: =head2
16667 #: ../fish/guestfish-actions.pod:4999
16668 msgid "tar-out"
16669 msgstr ""
16670
16671 #. type: verbatim
16672 #: ../fish/guestfish-actions.pod:5001
16673 #, no-wrap
16674 msgid ""
16675 " tar-out directory (tarfile|-)\n"
16676 "\n"
16677 msgstr ""
16678
16679 #. type: textblock
16680 #: ../fish/guestfish-actions.pod:5003 ../src/guestfs-actions.pod:7700
16681 msgid ""
16682 "This command packs the contents of C<directory> and downloads it to local "
16683 "file C<tarfile>."
16684 msgstr ""
16685
16686 #. type: textblock
16687 #: ../fish/guestfish-actions.pod:5006
16688 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
16689 msgstr ""
16690
16691 #. type: =head2
16692 #: ../fish/guestfish-actions.pod:5011
16693 msgid "tgz-in"
16694 msgstr ""
16695
16696 #. type: verbatim
16697 #: ../fish/guestfish-actions.pod:5013
16698 #, no-wrap
16699 msgid ""
16700 " tgz-in (tarball|-) directory\n"
16701 "\n"
16702 msgstr ""
16703
16704 #. type: textblock
16705 #: ../fish/guestfish-actions.pod:5015 ../src/guestfs-actions.pod:7717
16706 msgid ""
16707 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
16708 "tar file) into C<directory>."
16709 msgstr ""
16710
16711 #. type: textblock
16712 #: ../fish/guestfish-actions.pod:5018
16713 msgid "To upload an uncompressed tarball, use L</tar-in>."
16714 msgstr ""
16715
16716 #. type: =head2
16717 #: ../fish/guestfish-actions.pod:5022
16718 msgid "tgz-out"
16719 msgstr ""
16720
16721 #. type: verbatim
16722 #: ../fish/guestfish-actions.pod:5024
16723 #, no-wrap
16724 msgid ""
16725 " tgz-out directory (tarball|-)\n"
16726 "\n"
16727 msgstr ""
16728
16729 #. type: textblock
16730 #: ../fish/guestfish-actions.pod:5026 ../src/guestfs-actions.pod:7733
16731 msgid ""
16732 "This command packs the contents of C<directory> and downloads it to local "
16733 "file C<tarball>."
16734 msgstr ""
16735
16736 #. type: textblock
16737 #: ../fish/guestfish-actions.pod:5029
16738 msgid "To download an uncompressed tarball, use L</tar-out>."
16739 msgstr ""
16740
16741 #. type: =head2
16742 #: ../fish/guestfish-actions.pod:5033
16743 msgid "touch"
16744 msgstr ""
16745
16746 #. type: verbatim
16747 #: ../fish/guestfish-actions.pod:5035
16748 #, no-wrap
16749 msgid ""
16750 " touch path\n"
16751 "\n"
16752 msgstr ""
16753
16754 #. type: textblock
16755 #: ../fish/guestfish-actions.pod:5037 ../src/guestfs-actions.pod:7748
16756 msgid ""
16757 "Touch acts like the L<touch(1)> command.  It can be used to update the "
16758 "timestamps on a file, or, if the file does not exist, to create a new "
16759 "zero-length file."
16760 msgstr ""
16761
16762 #. type: textblock
16763 #: ../fish/guestfish-actions.pod:5041 ../src/guestfs-actions.pod:7752
16764 msgid ""
16765 "This command only works on regular files, and will fail on other file types "
16766 "such as directories, symbolic links, block special etc."
16767 msgstr ""
16768
16769 #. type: =head2
16770 #: ../fish/guestfish-actions.pod:5044
16771 msgid "truncate"
16772 msgstr ""
16773
16774 #. type: verbatim
16775 #: ../fish/guestfish-actions.pod:5046
16776 #, no-wrap
16777 msgid ""
16778 " truncate path\n"
16779 "\n"
16780 msgstr ""
16781
16782 #. type: textblock
16783 #: ../fish/guestfish-actions.pod:5048 ../src/guestfs-actions.pod:7765
16784 msgid ""
16785 "This command truncates C<path> to a zero-length file.  The file must exist "
16786 "already."
16787 msgstr ""
16788
16789 #. type: =head2
16790 #: ../fish/guestfish-actions.pod:5051
16791 msgid "truncate-size"
16792 msgstr ""
16793
16794 #. type: verbatim
16795 #: ../fish/guestfish-actions.pod:5053
16796 #, no-wrap
16797 msgid ""
16798 " truncate-size path size\n"
16799 "\n"
16800 msgstr ""
16801
16802 #. type: textblock
16803 #: ../fish/guestfish-actions.pod:5055 ../src/guestfs-actions.pod:7779
16804 msgid ""
16805 "This command truncates C<path> to size C<size> bytes.  The file must exist "
16806 "already."
16807 msgstr ""
16808
16809 #. type: textblock
16810 #: ../fish/guestfish-actions.pod:5058
16811 msgid ""
16812 "If the current file size is less than C<size> then the file is extended to "
16813 "the required size with zero bytes.  This creates a sparse file (ie. disk "
16814 "blocks are not allocated for the file until you write to it).  To create a "
16815 "non-sparse file of zeroes, use L</fallocate64> instead."
16816 msgstr ""
16817
16818 #. type: =head2
16819 #: ../fish/guestfish-actions.pod:5064
16820 msgid "tune2fs"
16821 msgstr ""
16822
16823 #. type: verbatim
16824 #: ../fish/guestfish-actions.pod:5066
16825 #, no-wrap
16826 msgid ""
16827 " tune2fs device [force:true|false] [maxmountcount:N] [mountcount:N] "
16828 "[errorbehavior:..] [group:N] [intervalbetweenchecks:N] "
16829 "[reservedblockspercentage:N] [lastmounteddirectory:..] "
16830 "[reservedblockscount:N] [user:N]\n"
16831 "\n"
16832 msgstr ""
16833
16834 #. type: textblock
16835 #: ../fish/guestfish-actions.pod:5068 ../src/guestfs-actions.pod:7815
16836 msgid ""
16837 "This call allows you to adjust various filesystem parameters of an "
16838 "ext2/ext3/ext4 filesystem called C<device>."
16839 msgstr ""
16840
16841 #. type: textblock
16842 #: ../fish/guestfish-actions.pod:5077 ../src/guestfs-actions.pod:7824
16843 msgid ""
16844 "Force tune2fs to complete the operation even in the face of errors.  This is "
16845 "the same as the tune2fs C<-f> option."
16846 msgstr ""
16847
16848 #. type: =item
16849 #: ../fish/guestfish-actions.pod:5080 ../src/guestfs-actions.pod:7827
16850 msgid "C<maxmountcount>"
16851 msgstr ""
16852
16853 #. type: textblock
16854 #: ../fish/guestfish-actions.pod:5082 ../src/guestfs-actions.pod:7829
16855 msgid ""
16856 "Set the number of mounts after which the filesystem is checked by "
16857 "L<e2fsck(8)>.  If this is C<0> then the number of mounts is disregarded.  "
16858 "This is the same as the tune2fs C<-c> option."
16859 msgstr ""
16860
16861 #. type: =item
16862 #: ../fish/guestfish-actions.pod:5086 ../src/guestfs-actions.pod:7833
16863 msgid "C<mountcount>"
16864 msgstr ""
16865
16866 #. type: textblock
16867 #: ../fish/guestfish-actions.pod:5088 ../src/guestfs-actions.pod:7835
16868 msgid ""
16869 "Set the number of times the filesystem has been mounted.  This is the same "
16870 "as the tune2fs C<-C> option."
16871 msgstr ""
16872
16873 #. type: =item
16874 #: ../fish/guestfish-actions.pod:5091 ../src/guestfs-actions.pod:7838
16875 msgid "C<errorbehavior>"
16876 msgstr ""
16877
16878 #. type: textblock
16879 #: ../fish/guestfish-actions.pod:5093 ../src/guestfs-actions.pod:7840
16880 msgid ""
16881 "Change the behavior of the kernel code when errors are detected.  Possible "
16882 "values currently are: C<continue>, C<remount-ro>, C<panic>.  In practice "
16883 "these options don't really make any difference, particularly for write "
16884 "errors."
16885 msgstr ""
16886
16887 #. type: textblock
16888 #: ../fish/guestfish-actions.pod:5098 ../src/guestfs-actions.pod:7845
16889 msgid "This is the same as the tune2fs C<-e> option."
16890 msgstr ""
16891
16892 #. type: =item
16893 #: ../fish/guestfish-actions.pod:5100 ../src/guestfs-actions.pod:7847
16894 msgid "C<group>"
16895 msgstr ""
16896
16897 #. type: textblock
16898 #: ../fish/guestfish-actions.pod:5102 ../src/guestfs-actions.pod:7849
16899 msgid ""
16900 "Set the group which can use reserved filesystem blocks.  This is the same as "
16901 "the tune2fs C<-g> option except that it can only be specified as a number."
16902 msgstr ""
16903
16904 #. type: =item
16905 #: ../fish/guestfish-actions.pod:5106 ../src/guestfs-actions.pod:7853
16906 msgid "C<intervalbetweenchecks>"
16907 msgstr ""
16908
16909 #. type: textblock
16910 #: ../fish/guestfish-actions.pod:5108 ../src/guestfs-actions.pod:7855
16911 msgid ""
16912 "Adjust the maximal time between two filesystem checks (in seconds).  If the "
16913 "option is passed as C<0> then time-dependent checking is disabled."
16914 msgstr ""
16915
16916 #. type: textblock
16917 #: ../fish/guestfish-actions.pod:5112 ../src/guestfs-actions.pod:7859
16918 msgid "This is the same as the tune2fs C<-i> option."
16919 msgstr ""
16920
16921 #. type: =item
16922 #: ../fish/guestfish-actions.pod:5114 ../src/guestfs-actions.pod:7861
16923 msgid "C<reservedblockspercentage>"
16924 msgstr ""
16925
16926 #. type: textblock
16927 #: ../fish/guestfish-actions.pod:5116 ../src/guestfs-actions.pod:7863
16928 msgid ""
16929 "Set the percentage of the filesystem which may only be allocated by "
16930 "privileged processes.  This is the same as the tune2fs C<-m> option."
16931 msgstr ""
16932
16933 #. type: =item
16934 #: ../fish/guestfish-actions.pod:5120 ../src/guestfs-actions.pod:7867
16935 msgid "C<lastmounteddirectory>"
16936 msgstr ""
16937
16938 #. type: textblock
16939 #: ../fish/guestfish-actions.pod:5122 ../src/guestfs-actions.pod:7869
16940 msgid ""
16941 "Set the last mounted directory.  This is the same as the tune2fs C<-M> "
16942 "option."
16943 msgstr ""
16944
16945 #. type: =item
16946 #: ../fish/guestfish-actions.pod:5125 ../src/guestfs-actions.pod:7872
16947 msgid ""
16948 "C<reservedblockscount> Set the number of reserved filesystem blocks.  This "
16949 "is the same as the tune2fs C<-r> option."
16950 msgstr ""
16951
16952 #. type: =item
16953 #: ../fish/guestfish-actions.pod:5129 ../src/guestfs-actions.pod:7876
16954 msgid "C<user>"
16955 msgstr ""
16956
16957 #. type: textblock
16958 #: ../fish/guestfish-actions.pod:5131 ../src/guestfs-actions.pod:7878
16959 msgid ""
16960 "Set the user who can use the reserved filesystem blocks.  This is the same "
16961 "as the tune2fs C<-u> option except that it can only be specified as a "
16962 "number."
16963 msgstr ""
16964
16965 #. type: textblock
16966 #: ../fish/guestfish-actions.pod:5137
16967 msgid ""
16968 "To get the current values of filesystem parameters, see L</tune2fs-l>.  For "
16969 "precise details of how tune2fs works, see the L<tune2fs(8)> man page."
16970 msgstr ""
16971
16972 #. type: =head2
16973 #: ../fish/guestfish-actions.pod:5143
16974 msgid "tune2fs-l"
16975 msgstr ""
16976
16977 #. type: verbatim
16978 #: ../fish/guestfish-actions.pod:5145
16979 #, no-wrap
16980 msgid ""
16981 " tune2fs-l device\n"
16982 "\n"
16983 msgstr ""
16984
16985 #. type: textblock
16986 #: ../fish/guestfish-actions.pod:5147 ../src/guestfs-actions.pod:7920
16987 msgid ""
16988 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
16989 "C<device>."
16990 msgstr ""
16991
16992 #. type: textblock
16993 #: ../fish/guestfish-actions.pod:5150 ../src/guestfs-actions.pod:7923
16994 msgid ""
16995 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
16996 "for more details.  The list of fields returned isn't clearly defined, and "
16997 "depends on both the version of C<tune2fs> that libguestfs was built against, "
16998 "and the filesystem itself."
16999 msgstr ""
17000
17001 #. type: =head2
17002 #: ../fish/guestfish-actions.pod:5155
17003 msgid "txz-in"
17004 msgstr ""
17005
17006 #. type: verbatim
17007 #: ../fish/guestfish-actions.pod:5157
17008 #, no-wrap
17009 msgid ""
17010 " txz-in (tarball|-) directory\n"
17011 "\n"
17012 msgstr ""
17013
17014 #. type: textblock
17015 #: ../fish/guestfish-actions.pod:5159 ../src/guestfs-actions.pod:7943
17016 msgid ""
17017 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
17018 "tar file) into C<directory>."
17019 msgstr ""
17020
17021 #. type: =head2
17022 #: ../fish/guestfish-actions.pod:5164
17023 msgid "txz-out"
17024 msgstr ""
17025
17026 #. type: verbatim
17027 #: ../fish/guestfish-actions.pod:5166
17028 #, no-wrap
17029 msgid ""
17030 " txz-out directory (tarball|-)\n"
17031 "\n"
17032 msgstr ""
17033
17034 #. type: textblock
17035 #: ../fish/guestfish-actions.pod:5168 ../src/guestfs-actions.pod:7957
17036 msgid ""
17037 "This command packs the contents of C<directory> and downloads it to local "
17038 "file C<tarball> (as an xz compressed tar archive)."
17039 msgstr ""
17040
17041 #. type: =head2
17042 #: ../fish/guestfish-actions.pod:5173
17043 msgid "umask"
17044 msgstr ""
17045
17046 #. type: verbatim
17047 #: ../fish/guestfish-actions.pod:5175
17048 #, no-wrap
17049 msgid ""
17050 " umask mask\n"
17051 "\n"
17052 msgstr ""
17053
17054 #. type: textblock
17055 #: ../fish/guestfish-actions.pod:5177 ../src/guestfs-actions.pod:7970
17056 msgid ""
17057 "This function sets the mask used for creating new files and device nodes to "
17058 "C<mask & 0777>."
17059 msgstr ""
17060
17061 #. type: textblock
17062 #: ../fish/guestfish-actions.pod:5180 ../src/guestfs-actions.pod:7973
17063 msgid ""
17064 "Typical umask values would be C<022> which creates new files with "
17065 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
17066 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
17067 msgstr ""
17068
17069 #. type: textblock
17070 #: ../fish/guestfish-actions.pod:5185 ../src/guestfs-actions.pod:7978
17071 msgid ""
17072 "The default umask is C<022>.  This is important because it means that "
17073 "directories and device nodes will be created with C<0644> or C<0755> mode "
17074 "even if you specify C<0777>."
17075 msgstr ""
17076
17077 #. type: textblock
17078 #: ../fish/guestfish-actions.pod:5189
17079 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
17080 msgstr ""
17081
17082 #. type: textblock
17083 #: ../fish/guestfish-actions.pod:5192 ../src/guestfs-actions.pod:7985
17084 msgid "This call returns the previous umask."
17085 msgstr ""
17086
17087 #. type: =head2
17088 #: ../fish/guestfish-actions.pod:5194
17089 msgid "umount"
17090 msgstr ""
17091
17092 #. type: =head2
17093 #: ../fish/guestfish-actions.pod:5196
17094 msgid "unmount"
17095 msgstr ""
17096
17097 #. type: verbatim
17098 #: ../fish/guestfish-actions.pod:5198
17099 #, no-wrap
17100 msgid ""
17101 " umount pathordevice\n"
17102 "\n"
17103 msgstr ""
17104
17105 #. type: textblock
17106 #: ../fish/guestfish-actions.pod:5200 ../src/guestfs-actions.pod:7997
17107 msgid ""
17108 "This unmounts the given filesystem.  The filesystem may be specified either "
17109 "by its mountpoint (path) or the device which contains the filesystem."
17110 msgstr ""
17111
17112 #. type: =head2
17113 #: ../fish/guestfish-actions.pod:5204
17114 msgid "umount-all"
17115 msgstr ""
17116
17117 #. type: =head2
17118 #: ../fish/guestfish-actions.pod:5206
17119 msgid "unmount-all"
17120 msgstr ""
17121
17122 #. type: verbatim
17123 #: ../fish/guestfish-actions.pod:5208
17124 #, no-wrap
17125 msgid ""
17126 " umount-all\n"
17127 "\n"
17128 msgstr ""
17129
17130 #. type: textblock
17131 #: ../fish/guestfish-actions.pod:5210 ../src/guestfs-actions.pod:8010
17132 msgid "This unmounts all mounted filesystems."
17133 msgstr ""
17134
17135 #. type: textblock
17136 #: ../fish/guestfish-actions.pod:5212 ../src/guestfs-actions.pod:8012
17137 msgid "Some internal mounts are not unmounted by this call."
17138 msgstr ""
17139
17140 #. type: =head2
17141 #: ../fish/guestfish-actions.pod:5214
17142 msgid "upload"
17143 msgstr ""
17144
17145 #. type: verbatim
17146 #: ../fish/guestfish-actions.pod:5216
17147 #, no-wrap
17148 msgid ""
17149 " upload (filename|-) remotefilename\n"
17150 "\n"
17151 msgstr ""
17152
17153 #. type: textblock
17154 #: ../fish/guestfish-actions.pod:5218 ../fish/guestfish-actions.pod:5231 ../src/guestfs-actions.pod:8025 ../src/guestfs-actions.pod:8049
17155 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
17156 msgstr ""
17157
17158 #. type: textblock
17159 #: ../fish/guestfish-actions.pod:5223
17160 msgid "See also L</download>."
17161 msgstr ""
17162
17163 #. type: =head2
17164 #: ../fish/guestfish-actions.pod:5227
17165 msgid "upload-offset"
17166 msgstr ""
17167
17168 #. type: verbatim
17169 #: ../fish/guestfish-actions.pod:5229
17170 #, no-wrap
17171 msgid ""
17172 " upload-offset (filename|-) remotefilename offset\n"
17173 "\n"
17174 msgstr ""
17175
17176 #. type: textblock
17177 #: ../fish/guestfish-actions.pod:5234 ../src/guestfs-actions.pod:8052
17178 msgid ""
17179 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
17180 "The intention is to overwrite parts of existing files or devices, although "
17181 "if a non-existant file is specified then it is created with a \"hole\" "
17182 "before C<offset>.  The size of the data written is implicit in the size of "
17183 "the source C<filename>."
17184 msgstr ""
17185
17186 #. type: textblock
17187 #: ../fish/guestfish-actions.pod:5241
17188 msgid ""
17189 "Note that there is no limit on the amount of data that can be uploaded with "
17190 "this call, unlike with L</pwrite>, and this call always writes the full "
17191 "amount unless an error occurs."
17192 msgstr ""
17193
17194 #. type: textblock
17195 #: ../fish/guestfish-actions.pod:5246
17196 msgid "See also L</upload>, L</pwrite>."
17197 msgstr ""
17198
17199 #. type: =head2
17200 #: ../fish/guestfish-actions.pod:5250
17201 msgid "utimens"
17202 msgstr ""
17203
17204 #. type: verbatim
17205 #: ../fish/guestfish-actions.pod:5252
17206 #, no-wrap
17207 msgid ""
17208 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
17209 "\n"
17210 msgstr ""
17211
17212 #. type: textblock
17213 #: ../fish/guestfish-actions.pod:5254 ../src/guestfs-actions.pod:8085
17214 msgid "This command sets the timestamps of a file with nanosecond precision."
17215 msgstr ""
17216
17217 #. type: textblock
17218 #: ../fish/guestfish-actions.pod:5257 ../src/guestfs-actions.pod:8088
17219 msgid ""
17220 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
17221 "from the epoch."
17222 msgstr ""
17223
17224 #. type: textblock
17225 #: ../fish/guestfish-actions.pod:5260 ../src/guestfs-actions.pod:8091
17226 msgid ""
17227 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
17228 "nanoseconds from the epoch."
17229 msgstr ""
17230
17231 #. type: textblock
17232 #: ../fish/guestfish-actions.pod:5263 ../src/guestfs-actions.pod:8094
17233 msgid ""
17234 "If the C<*nsecs> field contains the special value C<-1> then the "
17235 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
17236 "ignored in this case)."
17237 msgstr ""
17238
17239 #. type: textblock
17240 #: ../fish/guestfish-actions.pod:5267 ../src/guestfs-actions.pod:8098
17241 msgid ""
17242 "If the C<*nsecs> field contains the special value C<-2> then the "
17243 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
17244 "in this case)."
17245 msgstr ""
17246
17247 #. type: =head2
17248 #: ../fish/guestfish-actions.pod:5271
17249 msgid "version"
17250 msgstr ""
17251
17252 #. type: verbatim
17253 #: ../fish/guestfish-actions.pod:5273
17254 #, no-wrap
17255 msgid ""
17256 " version\n"
17257 "\n"
17258 msgstr ""
17259
17260 #. type: textblock
17261 #: ../fish/guestfish-actions.pod:5275 ../src/guestfs-actions.pod:8111
17262 msgid "Return the libguestfs version number that the program is linked against."
17263 msgstr ""
17264
17265 #. type: textblock
17266 #: ../fish/guestfish-actions.pod:5278 ../src/guestfs-actions.pod:8114
17267 msgid ""
17268 "Note that because of dynamic linking this is not necessarily the version of "
17269 "libguestfs that you compiled against.  You can compile the program, and then "
17270 "at runtime dynamically link against a completely different C<libguestfs.so> "
17271 "library."
17272 msgstr ""
17273
17274 #. type: textblock
17275 #: ../fish/guestfish-actions.pod:5283 ../src/guestfs-actions.pod:8119
17276 msgid ""
17277 "This call was added in version C<1.0.58>.  In previous versions of "
17278 "libguestfs there was no way to get the version number.  From C code you can "
17279 "use dynamic linker functions to find out if this symbol exists (if it "
17280 "doesn't, then it's an earlier version)."
17281 msgstr ""
17282
17283 #. type: textblock
17284 #: ../fish/guestfish-actions.pod:5289 ../src/guestfs-actions.pod:8125
17285 msgid ""
17286 "The call returns a structure with four elements.  The first three (C<major>, "
17287 "C<minor> and C<release>) are numbers and correspond to the usual version "
17288 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
17289 "but may be used for distro-specific information."
17290 msgstr ""
17291
17292 #. type: textblock
17293 #: ../fish/guestfish-actions.pod:5295 ../src/guestfs-actions.pod:8131
17294 msgid "To construct the original version string: C<$major.$minor.$release$extra>"
17295 msgstr ""
17296
17297 #. type: textblock
17298 #: ../fish/guestfish-actions.pod:5298 ../src/guestfs-actions.pod:8134
17299 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
17300 msgstr ""
17301
17302 #. type: textblock
17303 #: ../fish/guestfish-actions.pod:5300
17304 msgid ""
17305 "I<Note:> Don't use this call to test for availability of features.  In "
17306 "enterprise distributions we backport features from later versions into "
17307 "earlier versions, making this an unreliable way to test for features.  Use "
17308 "L</available> instead."
17309 msgstr ""
17310
17311 #. type: =head2
17312 #: ../fish/guestfish-actions.pod:5306
17313 msgid "vfs-label"
17314 msgstr ""
17315
17316 #. type: verbatim
17317 #: ../fish/guestfish-actions.pod:5308
17318 #, no-wrap
17319 msgid ""
17320 " vfs-label device\n"
17321 "\n"
17322 msgstr ""
17323
17324 #. type: textblock
17325 #: ../fish/guestfish-actions.pod:5310 ../src/guestfs-actions.pod:8154
17326 msgid "This returns the filesystem label of the filesystem on C<device>."
17327 msgstr ""
17328
17329 #. type: textblock
17330 #: ../fish/guestfish-actions.pod:5313 ../src/guestfs-actions.pod:8157
17331 msgid "If the filesystem is unlabeled, this returns the empty string."
17332 msgstr ""
17333
17334 #. type: textblock
17335 #: ../fish/guestfish-actions.pod:5315
17336 msgid "To find a filesystem from the label, use L</findfs-label>."
17337 msgstr ""
17338
17339 #. type: =head2
17340 #: ../fish/guestfish-actions.pod:5317
17341 msgid "vfs-type"
17342 msgstr ""
17343
17344 #. type: verbatim
17345 #: ../fish/guestfish-actions.pod:5319
17346 #, no-wrap
17347 msgid ""
17348 " vfs-type device\n"
17349 "\n"
17350 msgstr ""
17351
17352 #. type: textblock
17353 #: ../fish/guestfish-actions.pod:5321 ../src/guestfs-actions.pod:8172
17354 msgid ""
17355 "This command gets the filesystem type corresponding to the filesystem on "
17356 "C<device>."
17357 msgstr ""
17358
17359 #. type: textblock
17360 #: ../fish/guestfish-actions.pod:5324 ../src/guestfs-actions.pod:8175
17361 msgid ""
17362 "For most filesystems, the result is the name of the Linux VFS module which "
17363 "would be used to mount this filesystem if you mounted it without specifying "
17364 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
17365 msgstr ""
17366
17367 #. type: =head2
17368 #: ../fish/guestfish-actions.pod:5329
17369 msgid "vfs-uuid"
17370 msgstr ""
17371
17372 #. type: verbatim
17373 #: ../fish/guestfish-actions.pod:5331
17374 #, no-wrap
17375 msgid ""
17376 " vfs-uuid device\n"
17377 "\n"
17378 msgstr ""
17379
17380 #. type: textblock
17381 #: ../fish/guestfish-actions.pod:5333 ../src/guestfs-actions.pod:8191
17382 msgid "This returns the filesystem UUID of the filesystem on C<device>."
17383 msgstr ""
17384
17385 #. type: textblock
17386 #: ../fish/guestfish-actions.pod:5336 ../src/guestfs-actions.pod:8194
17387 msgid "If the filesystem does not have a UUID, this returns the empty string."
17388 msgstr ""
17389
17390 #. type: textblock
17391 #: ../fish/guestfish-actions.pod:5338
17392 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
17393 msgstr ""
17394
17395 #. type: =head2
17396 #: ../fish/guestfish-actions.pod:5340
17397 msgid "vg-activate"
17398 msgstr ""
17399
17400 #. type: verbatim
17401 #: ../fish/guestfish-actions.pod:5342
17402 #, no-wrap
17403 msgid ""
17404 " vg-activate true|false 'volgroups ...'\n"
17405 "\n"
17406 msgstr ""
17407
17408 #. type: textblock
17409 #: ../fish/guestfish-actions.pod:5344 ../src/guestfs-actions.pod:8210
17410 msgid ""
17411 "This command activates or (if C<activate> is false) deactivates all logical "
17412 "volumes in the listed volume groups C<volgroups>."
17413 msgstr ""
17414
17415 #. type: textblock
17416 #: ../fish/guestfish-actions.pod:5347 ../src/guestfs-actions.pod:8213
17417 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
17418 msgstr ""
17419
17420 #. type: textblock
17421 #: ../fish/guestfish-actions.pod:5349 ../src/guestfs-actions.pod:8215
17422 msgid ""
17423 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
17424 "activated or deactivated."
17425 msgstr ""
17426
17427 #. type: =head2
17428 #: ../fish/guestfish-actions.pod:5352
17429 msgid "vg-activate-all"
17430 msgstr ""
17431
17432 #. type: verbatim
17433 #: ../fish/guestfish-actions.pod:5354
17434 #, no-wrap
17435 msgid ""
17436 " vg-activate-all true|false\n"
17437 "\n"
17438 msgstr ""
17439
17440 #. type: textblock
17441 #: ../fish/guestfish-actions.pod:5356 ../src/guestfs-actions.pod:8228
17442 msgid ""
17443 "This command activates or (if C<activate> is false) deactivates all logical "
17444 "volumes in all volume groups."
17445 msgstr ""
17446
17447 #. type: textblock
17448 #: ../fish/guestfish-actions.pod:5359 ../src/guestfs-actions.pod:8231
17449 msgid "This command is the same as running C<vgchange -a y|n>"
17450 msgstr ""
17451
17452 #. type: =head2
17453 #: ../fish/guestfish-actions.pod:5361
17454 msgid "vgcreate"
17455 msgstr ""
17456
17457 #. type: verbatim
17458 #: ../fish/guestfish-actions.pod:5363
17459 #, no-wrap
17460 msgid ""
17461 " vgcreate volgroup 'physvols ...'\n"
17462 "\n"
17463 msgstr ""
17464
17465 #. type: textblock
17466 #: ../fish/guestfish-actions.pod:5365 ../src/guestfs-actions.pod:8244
17467 msgid ""
17468 "This creates an LVM volume group called C<volgroup> from the non-empty list "
17469 "of physical volumes C<physvols>."
17470 msgstr ""
17471
17472 #. type: =head2
17473 #: ../fish/guestfish-actions.pod:5368
17474 msgid "vglvuuids"
17475 msgstr ""
17476
17477 #. type: verbatim
17478 #: ../fish/guestfish-actions.pod:5370
17479 #, no-wrap
17480 msgid ""
17481 " vglvuuids vgname\n"
17482 "\n"
17483 msgstr ""
17484
17485 #. type: textblock
17486 #: ../fish/guestfish-actions.pod:5372 ../src/guestfs-actions.pod:8257
17487 msgid ""
17488 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
17489 "volumes created in this volume group."
17490 msgstr ""
17491
17492 #. type: textblock
17493 #: ../fish/guestfish-actions.pod:5375
17494 msgid ""
17495 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
17496 "logical volumes and volume groups."
17497 msgstr ""
17498
17499 #. type: textblock
17500 #: ../fish/guestfish-actions.pod:5378
17501 msgid "See also L</vgpvuuids>."
17502 msgstr ""
17503
17504 #. type: =head2
17505 #: ../fish/guestfish-actions.pod:5380
17506 msgid "vgpvuuids"
17507 msgstr ""
17508
17509 #. type: verbatim
17510 #: ../fish/guestfish-actions.pod:5382
17511 #, no-wrap
17512 msgid ""
17513 " vgpvuuids vgname\n"
17514 "\n"
17515 msgstr ""
17516
17517 #. type: textblock
17518 #: ../fish/guestfish-actions.pod:5384 ../src/guestfs-actions.pod:8277
17519 msgid ""
17520 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
17521 "volumes that this volume group resides on."
17522 msgstr ""
17523
17524 #. type: textblock
17525 #: ../fish/guestfish-actions.pod:5387
17526 msgid ""
17527 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
17528 "physical volumes and volume groups."
17529 msgstr ""
17530
17531 #. type: textblock
17532 #: ../fish/guestfish-actions.pod:5390
17533 msgid "See also L</vglvuuids>."
17534 msgstr ""
17535
17536 #. type: =head2
17537 #: ../fish/guestfish-actions.pod:5392
17538 msgid "vgremove"
17539 msgstr ""
17540
17541 #. type: verbatim
17542 #: ../fish/guestfish-actions.pod:5394
17543 #, no-wrap
17544 msgid ""
17545 " vgremove vgname\n"
17546 "\n"
17547 msgstr ""
17548
17549 #. type: textblock
17550 #: ../fish/guestfish-actions.pod:5396 ../src/guestfs-actions.pod:8297
17551 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
17552 msgstr ""
17553
17554 #. type: textblock
17555 #: ../fish/guestfish-actions.pod:5398 ../src/guestfs-actions.pod:8299
17556 msgid "This also forcibly removes all logical volumes in the volume group (if any)."
17557 msgstr ""
17558
17559 #. type: =head2
17560 #: ../fish/guestfish-actions.pod:5401
17561 msgid "vgrename"
17562 msgstr ""
17563
17564 #. type: verbatim
17565 #: ../fish/guestfish-actions.pod:5403
17566 #, no-wrap
17567 msgid ""
17568 " vgrename volgroup newvolgroup\n"
17569 "\n"
17570 msgstr ""
17571
17572 #. type: textblock
17573 #: ../fish/guestfish-actions.pod:5405 ../src/guestfs-actions.pod:8313
17574 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
17575 msgstr ""
17576
17577 #. type: =head2
17578 #: ../fish/guestfish-actions.pod:5407
17579 msgid "vgs"
17580 msgstr ""
17581
17582 #. type: verbatim
17583 #: ../fish/guestfish-actions.pod:5409
17584 #, no-wrap
17585 msgid ""
17586 " vgs\n"
17587 "\n"
17588 msgstr ""
17589
17590 #. type: textblock
17591 #: ../fish/guestfish-actions.pod:5411 ../src/guestfs-actions.pod:8324
17592 msgid ""
17593 "List all the volumes groups detected.  This is the equivalent of the "
17594 "L<vgs(8)> command."
17595 msgstr ""
17596
17597 #. type: textblock
17598 #: ../fish/guestfish-actions.pod:5414 ../src/guestfs-actions.pod:8327
17599 msgid ""
17600 "This returns a list of just the volume group names that were detected "
17601 "(eg. C<VolGroup00>)."
17602 msgstr ""
17603
17604 #. type: textblock
17605 #: ../fish/guestfish-actions.pod:5417
17606 msgid "See also L</vgs-full>."
17607 msgstr ""
17608
17609 #. type: =head2
17610 #: ../fish/guestfish-actions.pod:5419
17611 msgid "vgs-full"
17612 msgstr ""
17613
17614 #. type: verbatim
17615 #: ../fish/guestfish-actions.pod:5421
17616 #, no-wrap
17617 msgid ""
17618 " vgs-full\n"
17619 "\n"
17620 msgstr ""
17621
17622 #. type: textblock
17623 #: ../fish/guestfish-actions.pod:5423 ../src/guestfs-actions.pod:8343
17624 msgid ""
17625 "List all the volumes groups detected.  This is the equivalent of the "
17626 "L<vgs(8)> command.  The \"full\" version includes all fields."
17627 msgstr ""
17628
17629 #. type: =head2
17630 #: ../fish/guestfish-actions.pod:5426
17631 msgid "vgscan"
17632 msgstr ""
17633
17634 #. type: verbatim
17635 #: ../fish/guestfish-actions.pod:5428
17636 #, no-wrap
17637 msgid ""
17638 " vgscan\n"
17639 "\n"
17640 msgstr ""
17641
17642 #. type: textblock
17643 #: ../fish/guestfish-actions.pod:5430 ../src/guestfs-actions.pod:8357
17644 msgid ""
17645 "This rescans all block devices and rebuilds the list of LVM physical "
17646 "volumes, volume groups and logical volumes."
17647 msgstr ""
17648
17649 #. type: =head2
17650 #: ../fish/guestfish-actions.pod:5433
17651 msgid "vguuid"
17652 msgstr ""
17653
17654 #. type: verbatim
17655 #: ../fish/guestfish-actions.pod:5435
17656 #, no-wrap
17657 msgid ""
17658 " vguuid vgname\n"
17659 "\n"
17660 msgstr ""
17661
17662 #. type: textblock
17663 #: ../fish/guestfish-actions.pod:5437 ../src/guestfs-actions.pod:8370
17664 msgid "This command returns the UUID of the LVM VG named C<vgname>."
17665 msgstr ""
17666
17667 #. type: =head2
17668 #: ../fish/guestfish-actions.pod:5439
17669 msgid "wc-c"
17670 msgstr ""
17671
17672 #. type: verbatim
17673 #: ../fish/guestfish-actions.pod:5441
17674 #, no-wrap
17675 msgid ""
17676 " wc-c path\n"
17677 "\n"
17678 msgstr ""
17679
17680 #. type: textblock
17681 #: ../fish/guestfish-actions.pod:5443 ../src/guestfs-actions.pod:8410
17682 msgid ""
17683 "This command counts the characters in a file, using the C<wc -c> external "
17684 "command."
17685 msgstr ""
17686
17687 #. type: =head2
17688 #: ../fish/guestfish-actions.pod:5446
17689 msgid "wc-l"
17690 msgstr ""
17691
17692 #. type: verbatim
17693 #: ../fish/guestfish-actions.pod:5448
17694 #, no-wrap
17695 msgid ""
17696 " wc-l path\n"
17697 "\n"
17698 msgstr ""
17699
17700 #. type: textblock
17701 #: ../fish/guestfish-actions.pod:5450 ../src/guestfs-actions.pod:8423
17702 msgid ""
17703 "This command counts the lines in a file, using the C<wc -l> external "
17704 "command."
17705 msgstr ""
17706
17707 #. type: =head2
17708 #: ../fish/guestfish-actions.pod:5453
17709 msgid "wc-w"
17710 msgstr ""
17711
17712 #. type: verbatim
17713 #: ../fish/guestfish-actions.pod:5455
17714 #, no-wrap
17715 msgid ""
17716 " wc-w path\n"
17717 "\n"
17718 msgstr ""
17719
17720 #. type: textblock
17721 #: ../fish/guestfish-actions.pod:5457 ../src/guestfs-actions.pod:8436
17722 msgid ""
17723 "This command counts the words in a file, using the C<wc -w> external "
17724 "command."
17725 msgstr ""
17726
17727 #. type: =head2
17728 #: ../fish/guestfish-actions.pod:5460
17729 msgid "write"
17730 msgstr ""
17731
17732 #. type: verbatim
17733 #: ../fish/guestfish-actions.pod:5462
17734 #, no-wrap
17735 msgid ""
17736 " write path content\n"
17737 "\n"
17738 msgstr ""
17739
17740 #. type: textblock
17741 #: ../fish/guestfish-actions.pod:5464 ../src/guestfs-actions.pod:8451
17742 msgid ""
17743 "This call creates a file called C<path>.  The content of the file is the "
17744 "string C<content> (which can contain any 8 bit data)."
17745 msgstr ""
17746
17747 #. type: textblock
17748 #: ../fish/guestfish-actions.pod:5467
17749 msgid "See also L</write-append>."
17750 msgstr ""
17751
17752 #. type: =head2
17753 #: ../fish/guestfish-actions.pod:5472
17754 msgid "write-append"
17755 msgstr ""
17756
17757 #. type: verbatim
17758 #: ../fish/guestfish-actions.pod:5474
17759 #, no-wrap
17760 msgid ""
17761 " write-append path content\n"
17762 "\n"
17763 msgstr ""
17764
17765 #. type: textblock
17766 #: ../fish/guestfish-actions.pod:5476 ../src/guestfs-actions.pod:8471
17767 msgid ""
17768 "This call appends C<content> to the end of file C<path>.  If C<path> does "
17769 "not exist, then a new file is created."
17770 msgstr ""
17771
17772 #. type: textblock
17773 #: ../fish/guestfish-actions.pod:5479
17774 msgid "See also L</write>."
17775 msgstr ""
17776
17777 #. type: =head2
17778 #: ../fish/guestfish-actions.pod:5484
17779 msgid "write-file"
17780 msgstr ""
17781
17782 #. type: verbatim
17783 #: ../fish/guestfish-actions.pod:5486
17784 #, no-wrap
17785 msgid ""
17786 " write-file path content size\n"
17787 "\n"
17788 msgstr ""
17789
17790 #. type: textblock
17791 #: ../fish/guestfish-actions.pod:5488 ../src/guestfs-actions.pod:8498
17792 msgid ""
17793 "This call creates a file called C<path>.  The contents of the file is the "
17794 "string C<content> (which can contain any 8 bit data), with length C<size>."
17795 msgstr ""
17796
17797 #. type: textblock
17798 #: ../fish/guestfish-actions.pod:5492 ../src/guestfs-actions.pod:8502
17799 msgid ""
17800 "As a special case, if C<size> is C<0> then the length is calculated using "
17801 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
17802 msgstr ""
17803
17804 #. type: textblock
17805 #: ../fish/guestfish-actions.pod:5496 ../src/guestfs-actions.pod:8506
17806 msgid ""
17807 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
17808 "I<not> work, even if the length is specified."
17809 msgstr ""
17810
17811 #. type: textblock
17812 #: ../fish/guestfish-actions.pod:5502
17813 msgid "I<This function is deprecated.> In new code, use the L</write> call instead."
17814 msgstr ""
17815
17816 #. type: =head2
17817 #: ../fish/guestfish-actions.pod:5509
17818 msgid "zegrep"
17819 msgstr ""
17820
17821 #. type: verbatim
17822 #: ../fish/guestfish-actions.pod:5511
17823 #, no-wrap
17824 msgid ""
17825 " zegrep regex path\n"
17826 "\n"
17827 msgstr ""
17828
17829 #. type: textblock
17830 #: ../fish/guestfish-actions.pod:5513 ../src/guestfs-actions.pod:8523
17831 msgid "This calls the external C<zegrep> program and returns the matching lines."
17832 msgstr ""
17833
17834 #. type: =head2
17835 #: ../fish/guestfish-actions.pod:5519
17836 msgid "zegrepi"
17837 msgstr ""
17838
17839 #. type: verbatim
17840 #: ../fish/guestfish-actions.pod:5521
17841 #, no-wrap
17842 msgid ""
17843 " zegrepi regex path\n"
17844 "\n"
17845 msgstr ""
17846
17847 #. type: textblock
17848 #: ../fish/guestfish-actions.pod:5523 ../src/guestfs-actions.pod:8542
17849 msgid "This calls the external C<zegrep -i> program and returns the matching lines."
17850 msgstr ""
17851
17852 #. type: =head2
17853 #: ../fish/guestfish-actions.pod:5529
17854 msgid "zero"
17855 msgstr ""
17856
17857 #. type: verbatim
17858 #: ../fish/guestfish-actions.pod:5531
17859 #, no-wrap
17860 msgid ""
17861 " zero device\n"
17862 "\n"
17863 msgstr ""
17864
17865 #. type: textblock
17866 #: ../fish/guestfish-actions.pod:5533 ../src/guestfs-actions.pod:8560
17867 msgid "This command writes zeroes over the first few blocks of C<device>."
17868 msgstr ""
17869
17870 #. type: textblock
17871 #: ../fish/guestfish-actions.pod:5535 ../src/guestfs-actions.pod:8562
17872 msgid ""
17873 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
17874 "securely wipe the device).  It should be sufficient to remove any partition "
17875 "tables, filesystem superblocks and so on."
17876 msgstr ""
17877
17878 #. type: textblock
17879 #: ../fish/guestfish-actions.pod:5539 ../fish/guestfish-actions.pod:5554 ../src/guestfs-actions.pod:8566 ../src/guestfs-actions.pod:8592
17880 msgid ""
17881 "If blocks are already zero, then this command avoids writing zeroes.  This "
17882 "prevents the underlying device from becoming non-sparse or growing "
17883 "unnecessarily."
17884 msgstr ""
17885
17886 #. type: textblock
17887 #: ../fish/guestfish-actions.pod:5543
17888 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
17889 msgstr ""
17890
17891 #. type: =head2
17892 #: ../fish/guestfish-actions.pod:5546
17893 msgid "zero-device"
17894 msgstr ""
17895
17896 #. type: verbatim
17897 #: ../fish/guestfish-actions.pod:5548
17898 #, no-wrap
17899 msgid ""
17900 " zero-device device\n"
17901 "\n"
17902 msgstr ""
17903
17904 #. type: textblock
17905 #: ../fish/guestfish-actions.pod:5550
17906 msgid ""
17907 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
17908 "which just zeroes the first few blocks of a device."
17909 msgstr ""
17910
17911 #. type: =head2
17912 #: ../fish/guestfish-actions.pod:5558
17913 msgid "zerofree"
17914 msgstr ""
17915
17916 #. type: verbatim
17917 #: ../fish/guestfish-actions.pod:5560
17918 #, no-wrap
17919 msgid ""
17920 " zerofree device\n"
17921 "\n"
17922 msgstr ""
17923
17924 #. type: textblock
17925 #: ../fish/guestfish-actions.pod:5562 ../src/guestfs-actions.pod:8611
17926 msgid ""
17927 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
17928 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
17929 "possible to compress the filesystem more effectively."
17930 msgstr ""
17931
17932 #. type: textblock
17933 #: ../fish/guestfish-actions.pod:5567 ../src/guestfs-actions.pod:8616
17934 msgid "You should B<not> run this program if the filesystem is mounted."
17935 msgstr ""
17936
17937 #. type: textblock
17938 #: ../fish/guestfish-actions.pod:5570 ../src/guestfs-actions.pod:8619
17939 msgid ""
17940 "It is possible that using this program can damage the filesystem or data on "
17941 "the filesystem."
17942 msgstr ""
17943
17944 #. type: =head2
17945 #: ../fish/guestfish-actions.pod:5573
17946 msgid "zfgrep"
17947 msgstr ""
17948
17949 #. type: verbatim
17950 #: ../fish/guestfish-actions.pod:5575
17951 #, no-wrap
17952 msgid ""
17953 " zfgrep pattern path\n"
17954 "\n"
17955 msgstr ""
17956
17957 #. type: textblock
17958 #: ../fish/guestfish-actions.pod:5577 ../src/guestfs-actions.pod:8633
17959 msgid "This calls the external C<zfgrep> program and returns the matching lines."
17960 msgstr ""
17961
17962 #. type: =head2
17963 #: ../fish/guestfish-actions.pod:5583
17964 msgid "zfgrepi"
17965 msgstr ""
17966
17967 #. type: verbatim
17968 #: ../fish/guestfish-actions.pod:5585
17969 #, no-wrap
17970 msgid ""
17971 " zfgrepi pattern path\n"
17972 "\n"
17973 msgstr ""
17974
17975 #. type: textblock
17976 #: ../fish/guestfish-actions.pod:5587 ../src/guestfs-actions.pod:8652
17977 msgid "This calls the external C<zfgrep -i> program and returns the matching lines."
17978 msgstr ""
17979
17980 #. type: =head2
17981 #: ../fish/guestfish-actions.pod:5593
17982 msgid "zfile"
17983 msgstr ""
17984
17985 #. type: verbatim
17986 #: ../fish/guestfish-actions.pod:5595
17987 #, no-wrap
17988 msgid ""
17989 " zfile meth path\n"
17990 "\n"
17991 msgstr ""
17992
17993 #. type: textblock
17994 #: ../fish/guestfish-actions.pod:5597 ../src/guestfs-actions.pod:8678
17995 msgid "This command runs C<file> after first decompressing C<path> using C<method>."
17996 msgstr ""
17997
17998 #. type: textblock
17999 #: ../fish/guestfish-actions.pod:5600 ../src/guestfs-actions.pod:8681
18000 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
18001 msgstr ""
18002
18003 #. type: textblock
18004 #: ../fish/guestfish-actions.pod:5602
18005 msgid "Since 1.0.63, use L</file> instead which can now process compressed files."
18006 msgstr ""
18007
18008 #. type: textblock
18009 #: ../fish/guestfish-actions.pod:5605
18010 msgid "I<This function is deprecated.> In new code, use the L</file> call instead."
18011 msgstr ""
18012
18013 #. type: =head2
18014 #: ../fish/guestfish-actions.pod:5612
18015 msgid "zgrep"
18016 msgstr ""
18017
18018 #. type: verbatim
18019 #: ../fish/guestfish-actions.pod:5614
18020 #, no-wrap
18021 msgid ""
18022 " zgrep regex path\n"
18023 "\n"
18024 msgstr ""
18025
18026 #. type: textblock
18027 #: ../fish/guestfish-actions.pod:5616 ../src/guestfs-actions.pod:8698
18028 msgid "This calls the external C<zgrep> program and returns the matching lines."
18029 msgstr ""
18030
18031 #. type: =head2
18032 #: ../fish/guestfish-actions.pod:5622
18033 msgid "zgrepi"
18034 msgstr ""
18035
18036 #. type: verbatim
18037 #: ../fish/guestfish-actions.pod:5624
18038 #, no-wrap
18039 msgid ""
18040 " zgrepi regex path\n"
18041 "\n"
18042 msgstr ""
18043
18044 #. type: textblock
18045 #: ../fish/guestfish-actions.pod:5626 ../src/guestfs-actions.pod:8717
18046 msgid "This calls the external C<zgrep -i> program and returns the matching lines."
18047 msgstr ""
18048
18049 #. type: =head2
18050 #: ../fish/guestfish-commands.pod:1
18051 msgid "alloc"
18052 msgstr ""
18053
18054 #. type: =head2
18055 #: ../fish/guestfish-commands.pod:3
18056 msgid "allocate"
18057 msgstr ""
18058
18059 #. type: verbatim
18060 #: ../fish/guestfish-commands.pod:5
18061 #, no-wrap
18062 msgid ""
18063 " alloc filename size\n"
18064 "\n"
18065 msgstr ""
18066
18067 #. type: textblock
18068 #: ../fish/guestfish-commands.pod:7
18069 msgid ""
18070 "This creates an empty (zeroed) file of the given size, and then adds so it "
18071 "can be further examined."
18072 msgstr ""
18073
18074 #. type: textblock
18075 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
18076 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
18077 msgstr ""
18078
18079 #. type: textblock
18080 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
18081 msgid "Size can be specified using standard suffixes, eg. C<1M>."
18082 msgstr ""
18083
18084 #. type: textblock
18085 #: ../fish/guestfish-commands.pod:14
18086 msgid ""
18087 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
18088 "image, see L</PREPARED DISK IMAGES>."
18089 msgstr ""
18090
18091 #. type: =head2
18092 #: ../fish/guestfish-commands.pod:17
18093 msgid "copy-in"
18094 msgstr ""
18095
18096 #. type: verbatim
18097 #: ../fish/guestfish-commands.pod:19
18098 #, no-wrap
18099 msgid ""
18100 " copy-in local [local ...] /remotedir\n"
18101 "\n"
18102 msgstr ""
18103
18104 #. type: textblock
18105 #: ../fish/guestfish-commands.pod:21
18106 msgid ""
18107 "C<copy-in> copies local files or directories recursively into the disk "
18108 "image, placing them in the directory called C</remotedir> (which must "
18109 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
18110 "other commands as necessary."
18111 msgstr ""
18112
18113 #. type: textblock
18114 #: ../fish/guestfish-commands.pod:26
18115 msgid ""
18116 "Multiple local files and directories can be specified, but the last "
18117 "parameter must always be a remote directory.  Wildcards cannot be used."
18118 msgstr ""
18119
18120 #. type: =head2
18121 #: ../fish/guestfish-commands.pod:30
18122 msgid "copy-out"
18123 msgstr ""
18124
18125 #. type: verbatim
18126 #: ../fish/guestfish-commands.pod:32
18127 #, no-wrap
18128 msgid ""
18129 " copy-out remote [remote ...] localdir\n"
18130 "\n"
18131 msgstr ""
18132
18133 #. type: textblock
18134 #: ../fish/guestfish-commands.pod:34
18135 msgid ""
18136 "C<copy-out> copies remote files or directories recursively out of the disk "
18137 "image, placing them on the host disk in a local directory called C<localdir> "
18138 "(which must exist).  This guestfish meta-command turns into a sequence of "
18139 "L</download>, L</tar-out> and other commands as necessary."
18140 msgstr ""
18141
18142 #. type: textblock
18143 #: ../fish/guestfish-commands.pod:40
18144 msgid ""
18145 "Multiple remote files and directories can be specified, but the last "
18146 "parameter must always be a local directory.  To download to the current "
18147 "directory, use C<.> as in:"
18148 msgstr ""
18149
18150 #. type: verbatim
18151 #: ../fish/guestfish-commands.pod:44
18152 #, no-wrap
18153 msgid ""
18154 " copy-out /home .\n"
18155 "\n"
18156 msgstr ""
18157
18158 #. type: textblock
18159 #: ../fish/guestfish-commands.pod:46
18160 msgid ""
18161 "Wildcards cannot be used in the ordinary command, but you can use them with "
18162 "the help of L</glob> like this:"
18163 msgstr ""
18164
18165 #. type: verbatim
18166 #: ../fish/guestfish-commands.pod:49
18167 #, no-wrap
18168 msgid ""
18169 " glob copy-out /home/* .\n"
18170 "\n"
18171 msgstr ""
18172
18173 #. type: =head2
18174 #: ../fish/guestfish-commands.pod:51
18175 msgid "display"
18176 msgstr ""
18177
18178 #. type: verbatim
18179 #: ../fish/guestfish-commands.pod:53
18180 #, no-wrap
18181 msgid ""
18182 " display filename\n"
18183 "\n"
18184 msgstr ""
18185
18186 #. type: textblock
18187 #: ../fish/guestfish-commands.pod:55
18188 msgid ""
18189 "Use C<display> (a graphical display program) to display an image file.  It "
18190 "downloads the file, and runs C<display> on it."
18191 msgstr ""
18192
18193 #. type: textblock
18194 #: ../fish/guestfish-commands.pod:58
18195 msgid ""
18196 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
18197 "environment variable.  For example to use the GNOME display program:"
18198 msgstr ""
18199
18200 #. type: verbatim
18201 #: ../fish/guestfish-commands.pod:61
18202 #, no-wrap
18203 msgid ""
18204 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
18205 "\n"
18206 msgstr ""
18207
18208 #. type: textblock
18209 #: ../fish/guestfish-commands.pod:63
18210 msgid "See also L<display(1)>."
18211 msgstr ""
18212
18213 #. type: =head2
18214 #: ../fish/guestfish-commands.pod:65
18215 msgid "echo"
18216 msgstr ""
18217
18218 #. type: verbatim
18219 #: ../fish/guestfish-commands.pod:67
18220 #, no-wrap
18221 msgid ""
18222 " echo [params ...]\n"
18223 "\n"
18224 msgstr ""
18225
18226 #. type: textblock
18227 #: ../fish/guestfish-commands.pod:69
18228 msgid "This echos the parameters to the terminal."
18229 msgstr ""
18230
18231 #. type: =head2
18232 #: ../fish/guestfish-commands.pod:71
18233 msgid "edit"
18234 msgstr ""
18235
18236 #. type: =head2
18237 #: ../fish/guestfish-commands.pod:73
18238 msgid "vi"
18239 msgstr ""
18240
18241 #. type: =head2
18242 #: ../fish/guestfish-commands.pod:75
18243 msgid "emacs"
18244 msgstr ""
18245
18246 #. type: verbatim
18247 #: ../fish/guestfish-commands.pod:77
18248 #, no-wrap
18249 msgid ""
18250 " edit filename\n"
18251 "\n"
18252 msgstr ""
18253
18254 #. type: textblock
18255 #: ../fish/guestfish-commands.pod:79
18256 msgid ""
18257 "This is used to edit a file.  It downloads the file, edits it locally using "
18258 "your editor, then uploads the result."
18259 msgstr ""
18260
18261 #. type: textblock
18262 #: ../fish/guestfish-commands.pod:82
18263 msgid ""
18264 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
18265 "or C<emacs> you will get those corresponding editors."
18266 msgstr ""
18267
18268 #. type: =head2
18269 #: ../fish/guestfish-commands.pod:86
18270 msgid "glob"
18271 msgstr ""
18272
18273 #. type: verbatim
18274 #: ../fish/guestfish-commands.pod:88
18275 #, no-wrap
18276 msgid ""
18277 " glob command args...\n"
18278 "\n"
18279 msgstr ""
18280
18281 #. type: textblock
18282 #: ../fish/guestfish-commands.pod:90
18283 msgid ""
18284 "Expand wildcards in any paths in the args list, and run C<command> "
18285 "repeatedly on each matching path."
18286 msgstr ""
18287
18288 #. type: textblock
18289 #: ../fish/guestfish-commands.pod:93
18290 msgid "See L</WILDCARDS AND GLOBBING>."
18291 msgstr ""
18292
18293 #. type: =head2
18294 #: ../fish/guestfish-commands.pod:95
18295 msgid "hexedit"
18296 msgstr ""
18297
18298 #. type: verbatim
18299 #: ../fish/guestfish-commands.pod:97
18300 #, no-wrap
18301 msgid ""
18302 " hexedit <filename|device>\n"
18303 " hexedit <filename|device> <max>\n"
18304 " hexedit <filename|device> <start> <max>\n"
18305 "\n"
18306 msgstr ""
18307
18308 #. type: textblock
18309 #: ../fish/guestfish-commands.pod:101
18310 msgid ""
18311 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
18312 "device."
18313 msgstr ""
18314
18315 #. type: textblock
18316 #: ../fish/guestfish-commands.pod:104
18317 msgid ""
18318 "This command works by downloading potentially the whole file or device, "
18319 "editing it locally, then uploading it.  If the file or device is large, you "
18320 "have to specify which part you wish to edit by using C<max> and/or C<start> "
18321 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
18322 "usual modifiers allowed such as C<1M> (1 megabyte)."
18323 msgstr ""
18324
18325 #. type: textblock
18326 #: ../fish/guestfish-commands.pod:111
18327 msgid "For example to edit the first few sectors of a disk you might do:"
18328 msgstr ""
18329
18330 #. type: verbatim
18331 #: ../fish/guestfish-commands.pod:114
18332 #, no-wrap
18333 msgid ""
18334 " hexedit /dev/sda 1M\n"
18335 "\n"
18336 msgstr ""
18337
18338 #. type: textblock
18339 #: ../fish/guestfish-commands.pod:116
18340 msgid ""
18341 "which would allow you to edit anywhere within the first megabyte of the "
18342 "disk."
18343 msgstr ""
18344
18345 #. type: textblock
18346 #: ../fish/guestfish-commands.pod:119
18347 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
18348 msgstr ""
18349
18350 #. type: verbatim
18351 #: ../fish/guestfish-commands.pod:121
18352 #, no-wrap
18353 msgid ""
18354 " hexedit /dev/sda1 0x400 0x400\n"
18355 "\n"
18356 msgstr ""
18357
18358 #. type: textblock
18359 #: ../fish/guestfish-commands.pod:123
18360 msgid "(assuming the superblock is in the standard location)."
18361 msgstr ""
18362
18363 #. type: textblock
18364 #: ../fish/guestfish-commands.pod:125
18365 msgid ""
18366 "This command requires the external L<hexedit(1)> program.  You can specify "
18367 "another program to use by setting the C<HEXEDITOR> environment variable."
18368 msgstr ""
18369
18370 #. type: textblock
18371 #: ../fish/guestfish-commands.pod:129
18372 msgid "See also L</hexdump>."
18373 msgstr ""
18374
18375 #. type: =head2
18376 #: ../fish/guestfish-commands.pod:131
18377 msgid "lcd"
18378 msgstr ""
18379
18380 #. type: verbatim
18381 #: ../fish/guestfish-commands.pod:133
18382 #, no-wrap
18383 msgid ""
18384 " lcd directory\n"
18385 "\n"
18386 msgstr ""
18387
18388 #. type: textblock
18389 #: ../fish/guestfish-commands.pod:135
18390 msgid "Change the local directory, ie. the current directory of guestfish itself."
18391 msgstr ""
18392
18393 #. type: textblock
18394 #: ../fish/guestfish-commands.pod:138
18395 msgid "Note that C<!cd> won't do what you might expect."
18396 msgstr ""
18397
18398 #. type: =head2
18399 #: ../fish/guestfish-commands.pod:140
18400 msgid "man"
18401 msgstr ""
18402
18403 #. type: =head2
18404 #: ../fish/guestfish-commands.pod:142
18405 msgid "manual"
18406 msgstr ""
18407
18408 #. type: verbatim
18409 #: ../fish/guestfish-commands.pod:144
18410 #, no-wrap
18411 msgid ""
18412 "  man\n"
18413 "\n"
18414 msgstr ""
18415
18416 #. type: textblock
18417 #: ../fish/guestfish-commands.pod:146
18418 msgid "Opens the manual page for guestfish."
18419 msgstr ""
18420
18421 #. type: =head2
18422 #: ../fish/guestfish-commands.pod:148
18423 msgid "more"
18424 msgstr ""
18425
18426 #. type: =head2
18427 #: ../fish/guestfish-commands.pod:150
18428 msgid "less"
18429 msgstr ""
18430
18431 #. type: verbatim
18432 #: ../fish/guestfish-commands.pod:152
18433 #, no-wrap
18434 msgid ""
18435 " more filename\n"
18436 "\n"
18437 msgstr ""
18438
18439 #. type: verbatim
18440 #: ../fish/guestfish-commands.pod:154
18441 #, no-wrap
18442 msgid ""
18443 " less filename\n"
18444 "\n"
18445 msgstr ""
18446
18447 #. type: textblock
18448 #: ../fish/guestfish-commands.pod:156
18449 msgid "This is used to view a file."
18450 msgstr ""
18451
18452 #. type: textblock
18453 #: ../fish/guestfish-commands.pod:158
18454 msgid ""
18455 "The default viewer is C<$PAGER>.  However if you use the alternate command "
18456 "C<less> you will get the C<less> command specifically."
18457 msgstr ""
18458
18459 #. type: =head2
18460 #: ../fish/guestfish-commands.pod:161
18461 msgid "reopen"
18462 msgstr ""
18463
18464 #. type: verbatim
18465 #: ../fish/guestfish-commands.pod:163
18466 #, no-wrap
18467 msgid ""
18468 "  reopen\n"
18469 "\n"
18470 msgstr ""
18471
18472 #. type: textblock
18473 #: ../fish/guestfish-commands.pod:165
18474 msgid ""
18475 "Close and reopen the libguestfs handle.  It is not necessary to use this "
18476 "normally, because the handle is closed properly when guestfish exits.  "
18477 "However this is occasionally useful for testing."
18478 msgstr ""
18479
18480 #. type: =head2
18481 #: ../fish/guestfish-commands.pod:169
18482 msgid "setenv"
18483 msgstr ""
18484
18485 #. type: verbatim
18486 #: ../fish/guestfish-commands.pod:171
18487 #, no-wrap
18488 msgid ""
18489 "  setenv VAR value\n"
18490 "\n"
18491 msgstr ""
18492
18493 #. type: textblock
18494 #: ../fish/guestfish-commands.pod:173
18495 msgid "Set the environment variable C<VAR> to the string C<value>."
18496 msgstr ""
18497
18498 #. type: textblock
18499 #: ../fish/guestfish-commands.pod:175
18500 msgid "To print the value of an environment variable use a shell command such as:"
18501 msgstr ""
18502
18503 #. type: verbatim
18504 #: ../fish/guestfish-commands.pod:178
18505 #, no-wrap
18506 msgid ""
18507 " !echo $VAR\n"
18508 "\n"
18509 msgstr ""
18510
18511 #. type: =head2
18512 #: ../fish/guestfish-commands.pod:180
18513 msgid "sparse"
18514 msgstr ""
18515
18516 #. type: verbatim
18517 #: ../fish/guestfish-commands.pod:182
18518 #, no-wrap
18519 msgid ""
18520 " sparse filename size\n"
18521 "\n"
18522 msgstr ""
18523
18524 #. type: textblock
18525 #: ../fish/guestfish-commands.pod:184
18526 msgid ""
18527 "This creates an empty sparse file of the given size, and then adds so it can "
18528 "be further examined."
18529 msgstr ""
18530
18531 #. type: textblock
18532 #: ../fish/guestfish-commands.pod:187
18533 msgid ""
18534 "In all respects it works the same as the L</alloc> command, except that the "
18535 "image file is allocated sparsely, which means that disk blocks are not "
18536 "assigned to the file until they are needed.  Sparse disk files only use "
18537 "space when written to, but they are slower and there is a danger you could "
18538 "run out of real disk space during a write operation."
18539 msgstr ""
18540
18541 #. type: =head2
18542 #: ../fish/guestfish-commands.pod:197
18543 msgid "supported"
18544 msgstr ""
18545
18546 #. type: verbatim
18547 #: ../fish/guestfish-commands.pod:199
18548 #, no-wrap
18549 msgid ""
18550 " supported\n"
18551 "\n"
18552 msgstr ""
18553
18554 #. type: textblock
18555 #: ../fish/guestfish-commands.pod:201
18556 msgid ""
18557 "This command returns a list of the optional groups known to the daemon, and "
18558 "indicates which ones are supported by this build of the libguestfs "
18559 "appliance."
18560 msgstr ""
18561
18562 #. type: textblock
18563 #: ../fish/guestfish-commands.pod:205
18564 msgid "See also L<guestfs(3)/AVAILABILITY>."
18565 msgstr ""
18566
18567 #. type: =head2
18568 #: ../fish/guestfish-commands.pod:207
18569 msgid "time"
18570 msgstr ""
18571
18572 #. type: verbatim
18573 #: ../fish/guestfish-commands.pod:209
18574 #, no-wrap
18575 msgid ""
18576 " time command args...\n"
18577 "\n"
18578 msgstr ""
18579
18580 #. type: textblock
18581 #: ../fish/guestfish-commands.pod:211
18582 msgid ""
18583 "Run the command as usual, but print the elapsed time afterwards.  This can "
18584 "be useful for benchmarking operations."
18585 msgstr ""
18586
18587 #. type: =head2
18588 #: ../fish/guestfish-commands.pod:214
18589 msgid "unsetenv"
18590 msgstr ""
18591
18592 #. type: verbatim
18593 #: ../fish/guestfish-commands.pod:216
18594 #, no-wrap
18595 msgid ""
18596 "  unsetenv VAR\n"
18597 "\n"
18598 msgstr ""
18599
18600 #. type: textblock
18601 #: ../fish/guestfish-commands.pod:218
18602 msgid "Remove C<VAR> from the environment."
18603 msgstr ""
18604
18605 #. type: textblock
18606 #: ../fish/guestfish.pod:5
18607 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
18608 msgstr ""
18609
18610 #. type: verbatim
18611 #: ../fish/guestfish.pod:9
18612 #, no-wrap
18613 msgid ""
18614 " guestfish [--options] [commands]\n"
18615 "\n"
18616 msgstr ""
18617
18618 #. type: verbatim
18619 #: ../fish/guestfish.pod:11
18620 #, no-wrap
18621 msgid ""
18622 " guestfish\n"
18623 "\n"
18624 msgstr ""
18625
18626 #. type: verbatim
18627 #: ../fish/guestfish.pod:13
18628 #, no-wrap
18629 msgid ""
18630 " guestfish [--ro|--rw] -a disk.img\n"
18631 "\n"
18632 msgstr ""
18633
18634 #. type: verbatim
18635 #: ../fish/guestfish.pod:15
18636 #, no-wrap
18637 msgid ""
18638 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
18639 "\n"
18640 msgstr ""
18641
18642 #. type: verbatim
18643 #: ../fish/guestfish.pod:17
18644 #, no-wrap
18645 msgid ""
18646 " guestfish -d libvirt-domain\n"
18647 "\n"
18648 msgstr ""
18649
18650 #. type: verbatim
18651 #: ../fish/guestfish.pod:19
18652 #, no-wrap
18653 msgid ""
18654 " guestfish [--ro|--rw] -a disk.img -i\n"
18655 "\n"
18656 msgstr ""
18657
18658 #. type: verbatim
18659 #: ../fish/guestfish.pod:21
18660 #, no-wrap
18661 msgid ""
18662 " guestfish -d libvirt-domain -i\n"
18663 "\n"
18664 msgstr ""
18665
18666 #. type: textblock
18667 #: ../fish/guestfish.pod:25
18668 msgid ""
18669 "Using guestfish in read/write mode on live virtual machines can be "
18670 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
18671 "option to use guestfish safely if the disk image or virtual machine might be "
18672 "live."
18673 msgstr ""
18674
18675 #. type: textblock
18676 #: ../fish/guestfish.pod:32
18677 msgid ""
18678 "Guestfish is a shell and command-line tool for examining and modifying "
18679 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
18680 "functionality of the guestfs API, see L<guestfs(3)>."
18681 msgstr ""
18682
18683 #. type: textblock
18684 #: ../fish/guestfish.pod:36
18685 msgid ""
18686 "Guestfish gives you structured access to the libguestfs API, from shell "
18687 "scripts or the command line or interactively.  If you want to rescue a "
18688 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
18689 "command."
18690 msgstr ""
18691
18692 #. type: =head2
18693 #: ../fish/guestfish.pod:43
18694 msgid "As an interactive shell"
18695 msgstr ""
18696
18697 #. type: verbatim
18698 #: ../fish/guestfish.pod:45
18699 #, no-wrap
18700 msgid ""
18701 " $ guestfish\n"
18702 " \n"
18703 msgstr ""
18704
18705 #. type: verbatim
18706 #: ../fish/guestfish.pod:47
18707 #, no-wrap
18708 msgid ""
18709 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
18710 " editing virtual machine filesystems.\n"
18711 " \n"
18712 msgstr ""
18713
18714 #. type: verbatim
18715 #: ../fish/guestfish.pod:50
18716 #, no-wrap
18717 msgid ""
18718 " Type: 'help' for a list of commands\n"
18719 "       'man' to read the manual\n"
18720 "       'quit' to quit the shell\n"
18721 " \n"
18722 msgstr ""
18723
18724 #. type: verbatim
18725 #: ../fish/guestfish.pod:54
18726 #, no-wrap
18727 msgid ""
18728 " ><fs> add-ro disk.img\n"
18729 " ><fs> run\n"
18730 " ><fs> list-filesystems\n"
18731 " /dev/sda1: ext4\n"
18732 " /dev/vg_guest/lv_root: ext4\n"
18733 " /dev/vg_guest/lv_swap: swap\n"
18734 " ><fs> mount /dev/vg_guest/lv_root /\n"
18735 " ><fs> cat /etc/fstab\n"
18736 " # /etc/fstab\n"
18737 " # Created by anaconda\n"
18738 " [...]\n"
18739 " ><fs> exit\n"
18740 "\n"
18741 msgstr ""
18742
18743 #. type: =head2
18744 #: ../fish/guestfish.pod:67
18745 msgid "From shell scripts"
18746 msgstr ""
18747
18748 #. type: textblock
18749 #: ../fish/guestfish.pod:69
18750 msgid "Create a new C</etc/motd> file in a guest or disk image:"
18751 msgstr ""
18752
18753 #. type: verbatim
18754 #: ../fish/guestfish.pod:71
18755 #, no-wrap
18756 msgid ""
18757 " guestfish <<_EOF_\n"
18758 " add disk.img\n"
18759 " run\n"
18760 " mount /dev/vg_guest/lv_root /\n"
18761 " write /etc/motd \"Welcome, new users\"\n"
18762 " _EOF_\n"
18763 "\n"
18764 msgstr ""
18765
18766 #. type: textblock
18767 #: ../fish/guestfish.pod:78
18768 msgid "List the LVM logical volumes in a disk image:"
18769 msgstr ""
18770
18771 #. type: verbatim
18772 #: ../fish/guestfish.pod:80
18773 #, no-wrap
18774 msgid ""
18775 " guestfish -a disk.img --ro <<_EOF_\n"
18776 " run\n"
18777 " lvs\n"
18778 " _EOF_\n"
18779 "\n"
18780 msgstr ""
18781
18782 #. type: textblock
18783 #: ../fish/guestfish.pod:85
18784 msgid "List all the filesystems in a disk image:"
18785 msgstr ""
18786
18787 #. type: verbatim
18788 #: ../fish/guestfish.pod:87
18789 #, no-wrap
18790 msgid ""
18791 " guestfish -a disk.img --ro <<_EOF_\n"
18792 " run\n"
18793 " list-filesystems\n"
18794 " _EOF_\n"
18795 "\n"
18796 msgstr ""
18797
18798 #. type: =head2
18799 #: ../fish/guestfish.pod:92
18800 msgid "On one command line"
18801 msgstr ""
18802
18803 #. type: textblock
18804 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
18805 msgid "Update C</etc/resolv.conf> in a guest:"
18806 msgstr ""
18807
18808 #. type: verbatim
18809 #: ../fish/guestfish.pod:96
18810 #, no-wrap
18811 msgid ""
18812 " guestfish \\\n"
18813 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
18814 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
18815 "\n"
18816 msgstr ""
18817
18818 #. type: textblock
18819 #: ../fish/guestfish.pod:100
18820 msgid "Edit C</boot/grub/grub.conf> interactively:"
18821 msgstr ""
18822
18823 #. type: verbatim
18824 #: ../fish/guestfish.pod:102
18825 #, no-wrap
18826 msgid ""
18827 " guestfish --rw --add disk.img \\\n"
18828 "   --mount /dev/vg_guest/lv_root \\\n"
18829 "   --mount /dev/sda1:/boot \\\n"
18830 "   edit /boot/grub/grub.conf\n"
18831 "\n"
18832 msgstr ""
18833
18834 #. type: =head2
18835 #: ../fish/guestfish.pod:107
18836 msgid "Mount disks automatically"
18837 msgstr ""
18838
18839 #. type: textblock
18840 #: ../fish/guestfish.pod:109
18841 msgid ""
18842 "Use the I<-i> option to automatically mount the disks from a virtual "
18843 "machine:"
18844 msgstr ""
18845
18846 #. type: verbatim
18847 #: ../fish/guestfish.pod:112
18848 #, no-wrap
18849 msgid ""
18850 " guestfish --ro -a disk.img -i cat /etc/group\n"
18851 "\n"
18852 msgstr ""
18853
18854 #. type: verbatim
18855 #: ../fish/guestfish.pod:114
18856 #, no-wrap
18857 msgid ""
18858 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
18859 "\n"
18860 msgstr ""
18861
18862 #. type: textblock
18863 #: ../fish/guestfish.pod:116
18864 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
18865 msgstr ""
18866
18867 #. type: verbatim
18868 #: ../fish/guestfish.pod:118
18869 #, no-wrap
18870 msgid ""
18871 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
18872 "\n"
18873 msgstr ""
18874
18875 #. type: =head2
18876 #: ../fish/guestfish.pod:120
18877 msgid "As a script interpreter"
18878 msgstr ""
18879
18880 #. type: textblock
18881 #: ../fish/guestfish.pod:122
18882 msgid "Create a 100MB disk containing an ext2-formatted partition:"
18883 msgstr ""
18884
18885 #. type: verbatim
18886 #: ../fish/guestfish.pod:124
18887 #, no-wrap
18888 msgid ""
18889 " #!/usr/bin/guestfish -f\n"
18890 " sparse test1.img 100M\n"
18891 " run\n"
18892 " part-disk /dev/sda mbr\n"
18893 " mkfs ext2 /dev/sda1\n"
18894 "\n"
18895 msgstr ""
18896
18897 #. type: =head2
18898 #: ../fish/guestfish.pod:130
18899 msgid "Start with a prepared disk"
18900 msgstr ""
18901
18902 #. type: textblock
18903 #: ../fish/guestfish.pod:132
18904 msgid ""
18905 "An alternate way to create a 100MB disk called C<test1.img> containing a "
18906 "single ext2-formatted partition:"
18907 msgstr ""
18908
18909 #. type: verbatim
18910 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2243
18911 #, no-wrap
18912 msgid ""
18913 " guestfish -N fs\n"
18914 "\n"
18915 msgstr ""
18916
18917 #. type: textblock
18918 #: ../fish/guestfish.pod:137
18919 msgid "To list what is available do:"
18920 msgstr ""
18921
18922 #. type: verbatim
18923 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
18924 #, no-wrap
18925 msgid ""
18926 " guestfish -N help | less\n"
18927 "\n"
18928 msgstr ""
18929
18930 #. type: =head2
18931 #: ../fish/guestfish.pod:141
18932 msgid "Remote control"
18933 msgstr ""
18934
18935 #. type: verbatim
18936 #: ../fish/guestfish.pod:143
18937 #, no-wrap
18938 msgid ""
18939 " eval \"`guestfish --listen`\"\n"
18940 " guestfish --remote add-ro disk.img\n"
18941 " guestfish --remote run\n"
18942 " guestfish --remote lvs\n"
18943 "\n"
18944 msgstr ""
18945
18946 #. type: textblock
18947 #: ../fish/guestfish.pod:154
18948 msgid "Displays general help on options."
18949 msgstr ""
18950
18951 #. type: =item
18952 #: ../fish/guestfish.pod:158
18953 msgid "B<--cmd-help>"
18954 msgstr ""
18955
18956 #. type: textblock
18957 #: ../fish/guestfish.pod:160
18958 msgid "Lists all available guestfish commands."
18959 msgstr ""
18960
18961 #. type: =item
18962 #: ../fish/guestfish.pod:162
18963 msgid "B<-h cmd>"
18964 msgstr ""
18965
18966 #. type: =item
18967 #: ../fish/guestfish.pod:164
18968 msgid "B<--cmd-help cmd>"
18969 msgstr ""
18970
18971 #. type: textblock
18972 #: ../fish/guestfish.pod:166
18973 msgid "Displays detailed help on a single command C<cmd>."
18974 msgstr ""
18975
18976 #. type: =item
18977 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
18978 msgid "B<-a image>"
18979 msgstr ""
18980
18981 #. type: =item
18982 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
18983 msgid "B<--add image>"
18984 msgstr ""
18985
18986 #. type: textblock
18987 #: ../fish/guestfish.pod:172
18988 msgid "Add a block device or virtual machine image to the shell."
18989 msgstr ""
18990
18991 #. type: textblock
18992 #: ../fish/guestfish.pod:177
18993 msgid ""
18994 "Using this flag is mostly equivalent to using the C<add> command, with "
18995 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
18996 "the I<--format=...> flag was given."
18997 msgstr ""
18998
18999 #. type: textblock
19000 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
19001 msgid ""
19002 "When used in conjunction with the I<-d> option, this specifies the libvirt "
19003 "URI to use.  The default is to use the default libvirt connection."
19004 msgstr ""
19005
19006 #. type: =item
19007 #: ../fish/guestfish.pod:189
19008 msgid "B<--csh>"
19009 msgstr ""
19010
19011 #. type: textblock
19012 #: ../fish/guestfish.pod:191
19013 msgid ""
19014 "If using the I<--listen> option and a csh-like shell, use this option.  See "
19015 "section L</REMOTE CONTROL AND CSH> below."
19016 msgstr ""
19017
19018 #. type: =item
19019 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
19020 msgid "B<-d libvirt-domain>"
19021 msgstr ""
19022
19023 #. type: =item
19024 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
19025 msgid "B<--domain libvirt-domain>"
19026 msgstr ""
19027
19028 #. type: textblock
19029 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
19030 msgid ""
19031 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
19032 "used, then any libvirt domain can be used.  However in write mode, only "
19033 "libvirt domains which are shut down can be named here."
19034 msgstr ""
19035
19036 #. type: textblock
19037 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
19038 msgid "Domain UUIDs can be used instead of names."
19039 msgstr ""
19040
19041 #. type: textblock
19042 #: ../fish/guestfish.pod:204
19043 msgid ""
19044 "Using this flag is mostly equivalent to using the C<add-domain> command, "
19045 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
19046 "if the I<--format:...> flag was given."
19047 msgstr ""
19048
19049 #. type: =item
19050 #: ../fish/guestfish.pod:208
19051 msgid "B<-D>"
19052 msgstr ""
19053
19054 #. type: =item
19055 #: ../fish/guestfish.pod:210
19056 msgid "B<--no-dest-paths>"
19057 msgstr ""
19058
19059 #. type: textblock
19060 #: ../fish/guestfish.pod:212
19061 msgid ""
19062 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
19063 "to hit the tab key to complete paths on the guest filesystem, but this "
19064 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
19065 "allow this feature to be disabled."
19066 msgstr ""
19067
19068 #. type: textblock
19069 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
19070 msgid ""
19071 "When prompting for keys and passphrases, guestfish normally turns echoing "
19072 "off so you cannot see what you are typing.  If you are not worried about "
19073 "Tempest attacks and there is no one else in the room you can specify this "
19074 "flag to see what you are typing."
19075 msgstr ""
19076
19077 #. type: =item
19078 #: ../fish/guestfish.pod:224
19079 msgid "B<-f file>"
19080 msgstr ""
19081
19082 #. type: =item
19083 #: ../fish/guestfish.pod:226
19084 msgid "B<--file file>"
19085 msgstr ""
19086
19087 #. type: textblock
19088 #: ../fish/guestfish.pod:228
19089 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
19090 msgstr ""
19091
19092 #. type: verbatim
19093 #: ../fish/guestfish.pod:231
19094 #, no-wrap
19095 msgid ""
19096 " #!/usr/bin/guestfish -f\n"
19097 "\n"
19098 msgstr ""
19099
19100 #. type: verbatim
19101 #: ../fish/guestfish.pod:244
19102 #, no-wrap
19103 msgid ""
19104 " guestfish --format=raw -a disk.img\n"
19105 "\n"
19106 msgstr ""
19107
19108 #. type: verbatim
19109 #: ../fish/guestfish.pod:248
19110 #, no-wrap
19111 msgid ""
19112 " guestfish --format=raw -a disk.img --format -a another.img\n"
19113 "\n"
19114 msgstr ""
19115
19116 #. type: textblock
19117 #: ../fish/guestfish.pod:253
19118 msgid ""
19119 "If you have untrusted raw-format guest disk images, you should use this "
19120 "option to specify the disk format.  This avoids a possible security problem "
19121 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
19122 msgstr ""
19123
19124 #. type: =item
19125 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
19126 msgid "B<--inspector>"
19127 msgstr ""
19128
19129 #. type: textblock
19130 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
19131 msgid ""
19132 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
19133 "system and mount filesystems as they would be mounted on the real virtual "
19134 "machine."
19135 msgstr ""
19136
19137 #. type: textblock
19138 #: ../fish/guestfish.pod:266
19139 msgid "Typical usage is either:"
19140 msgstr ""
19141
19142 #. type: verbatim
19143 #: ../fish/guestfish.pod:268
19144 #, no-wrap
19145 msgid ""
19146 " guestfish -d myguest -i\n"
19147 "\n"
19148 msgstr ""
19149
19150 #. type: textblock
19151 #: ../fish/guestfish.pod:270
19152 msgid "(for an inactive libvirt domain called I<myguest>), or:"
19153 msgstr ""
19154
19155 #. type: verbatim
19156 #: ../fish/guestfish.pod:272
19157 #, no-wrap
19158 msgid ""
19159 " guestfish --ro -d myguest -i\n"
19160 "\n"
19161 msgstr ""
19162
19163 #. type: textblock
19164 #: ../fish/guestfish.pod:274
19165 msgid "(for active domains, readonly), or specify the block device directly:"
19166 msgstr ""
19167
19168 #. type: verbatim
19169 #: ../fish/guestfish.pod:276
19170 #, no-wrap
19171 msgid ""
19172 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
19173 "\n"
19174 msgstr ""
19175
19176 #. type: textblock
19177 #: ../fish/guestfish.pod:278
19178 msgid ""
19179 "Note that the command line syntax changed slightly over older versions of "
19180 "guestfish.  You can still use the old syntax:"
19181 msgstr ""
19182
19183 #. type: verbatim
19184 #: ../fish/guestfish.pod:281
19185 #, no-wrap
19186 msgid ""
19187 " guestfish [--ro] -i disk.img\n"
19188 "\n"
19189 msgstr ""
19190
19191 #. type: verbatim
19192 #: ../fish/guestfish.pod:283
19193 #, no-wrap
19194 msgid ""
19195 " guestfish [--ro] -i libvirt-domain\n"
19196 "\n"
19197 msgstr ""
19198
19199 #. type: textblock
19200 #: ../fish/guestfish.pod:285
19201 msgid ""
19202 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
19203 "then using other commands to mount the filesystems that were found."
19204 msgstr ""
19205
19206 #. type: =item
19207 #: ../fish/guestfish.pod:294
19208 msgid "B<--listen>"
19209 msgstr ""
19210
19211 #. type: textblock
19212 #: ../fish/guestfish.pod:296
19213 msgid ""
19214 "Fork into the background and listen for remote commands.  See section "
19215 "L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
19216 msgstr ""
19217
19218 #. type: =item
19219 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
19220 msgid "B<--live>"
19221 msgstr ""
19222
19223 #. type: textblock
19224 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
19225 msgid ""
19226 "Connect to a live virtual machine.  (Experimental, see "
19227 "L<guestfs(3)/ATTACHING TO RUNNING DAEMONS>)."
19228 msgstr ""
19229
19230 #. type: =item
19231 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
19232 msgid "B<-m dev[:mountpoint[:options]]>"
19233 msgstr ""
19234
19235 #. type: =item
19236 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
19237 msgid "B<--mount dev[:mountpoint[:options]]>"
19238 msgstr ""
19239
19240 #. type: textblock
19241 #: ../fish/guestfish.pod:308
19242 msgid "Mount the named partition or logical volume on the given mountpoint."
19243 msgstr ""
19244
19245 #. type: textblock
19246 #: ../fish/guestfish.pod:310
19247 msgid "If the mountpoint is omitted, it defaults to C</>."
19248 msgstr ""
19249
19250 #. type: textblock
19251 #: ../fish/guestfish.pod:312
19252 msgid "You have to mount something on C</> before most commands will work."
19253 msgstr ""
19254
19255 #. type: textblock
19256 #: ../fish/guestfish.pod:314
19257 msgid ""
19258 "If any I<-m> or I<--mount> options are given, the guest is automatically "
19259 "launched."
19260 msgstr ""
19261
19262 #. type: textblock
19263 #: ../fish/guestfish.pod:317
19264 msgid ""
19265 "If you don't know what filesystems a disk image contains, you can either run "
19266 "guestfish without this option, then list the partitions, filesystems and LVs "
19267 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
19268 "commands), or you can use the L<virt-filesystems(1)> program."
19269 msgstr ""
19270
19271 #. type: textblock
19272 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
19273 msgid ""
19274 "The third (and rarely used) part of the mount parameter is the list of mount "
19275 "options used to mount the underlying filesystem.  If this is not given, then "
19276 "the mount options are either the empty string or C<ro> (the latter if the "
19277 "I<--ro> flag is used).  By specifying the mount options, you override this "
19278 "default choice.  Probably the only time you would use this is to enable ACLs "
19279 "and/or extended attributes if the filesystem can support them:"
19280 msgstr ""
19281
19282 #. type: verbatim
19283 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
19284 #, no-wrap
19285 msgid ""
19286 " -m /dev/sda1:/:acl,user_xattr\n"
19287 "\n"
19288 msgstr ""
19289
19290 #. type: textblock
19291 #: ../fish/guestfish.pod:333
19292 msgid "Using this flag is equivalent to using the C<mount-options> command."
19293 msgstr ""
19294
19295 #. type: =item
19296 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202 ../resize/virt-resize.pod:441
19297 msgid "B<-n>"
19298 msgstr ""
19299
19300 #. type: =item
19301 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
19302 msgid "B<--no-sync>"
19303 msgstr ""
19304
19305 #. type: textblock
19306 #: ../fish/guestfish.pod:339
19307 msgid ""
19308 "Disable autosync.  This is enabled by default.  See the discussion of "
19309 "autosync in the L<guestfs(3)> manpage."
19310 msgstr ""
19311
19312 #. type: =item
19313 #: ../fish/guestfish.pod:342
19314 msgid "B<-N type>"
19315 msgstr ""
19316
19317 #. type: =item
19318 #: ../fish/guestfish.pod:344
19319 msgid "B<--new type>"
19320 msgstr ""
19321
19322 #. type: =item
19323 #: ../fish/guestfish.pod:346
19324 msgid "B<-N help>"
19325 msgstr ""
19326
19327 #. type: textblock
19328 #: ../fish/guestfish.pod:348
19329 msgid ""
19330 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
19331 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
19332 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
19333 "IMAGES> below."
19334 msgstr ""
19335
19336 #. type: =item
19337 #: ../fish/guestfish.pod:353
19338 msgid "B<--progress-bars>"
19339 msgstr ""
19340
19341 #. type: textblock
19342 #: ../fish/guestfish.pod:355
19343 msgid "Enable progress bars, even when guestfish is used non-interactively."
19344 msgstr ""
19345
19346 #. type: textblock
19347 #: ../fish/guestfish.pod:357
19348 msgid ""
19349 "Progress bars are enabled by default when guestfish is used as an "
19350 "interactive shell."
19351 msgstr ""
19352
19353 #. type: =item
19354 #: ../fish/guestfish.pod:360
19355 msgid "B<--no-progress-bars>"
19356 msgstr ""
19357
19358 #. type: textblock
19359 #: ../fish/guestfish.pod:362
19360 msgid "Disable progress bars."
19361 msgstr ""
19362
19363 #. type: =item
19364 #: ../fish/guestfish.pod:364
19365 msgid "B<--remote[=pid]>"
19366 msgstr ""
19367
19368 #. type: textblock
19369 #: ../fish/guestfish.pod:366
19370 msgid ""
19371 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
19372 "CONTROL GUESTFISH OVER A SOCKET> below."
19373 msgstr ""
19374
19375 #. type: =item
19376 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248 ../rescue/virt-rescue.pod:189
19377 msgid "B<-r>"
19378 msgstr ""
19379
19380 #. type: =item
19381 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250 ../rescue/virt-rescue.pod:191
19382 msgid "B<--ro>"
19383 msgstr ""
19384
19385 #. type: textblock
19386 #: ../fish/guestfish.pod:373
19387 msgid ""
19388 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19389 "mounts are done read-only."
19390 msgstr ""
19391
19392 #. type: textblock
19393 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:195
19394 msgid ""
19395 "The option must always be used if the disk image or virtual machine might be "
19396 "running, and is generally recommended in cases where you don't need write "
19397 "access to the disk."
19398 msgstr ""
19399
19400 #. type: textblock
19401 #: ../fish/guestfish.pod:380
19402 msgid ""
19403 "Note that prepared disk images created with I<-N> are not affected by this "
19404 "option.  Also commands like C<add> are not affected - you have to specify "
19405 "the C<readonly:true> option explicitly if you need it."
19406 msgstr ""
19407
19408 #. type: textblock
19409 #: ../fish/guestfish.pod:384
19410 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
19411 msgstr ""
19412
19413 #. type: =item
19414 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262 ../rescue/virt-rescue.pod:201
19415 msgid "B<--selinux>"
19416 msgstr ""
19417
19418 #. type: textblock
19419 #: ../fish/guestfish.pod:388
19420 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
19421 msgstr ""
19422
19423 #. type: textblock
19424 #: ../fish/guestfish.pod:394
19425 msgid ""
19426 "Enable very verbose messages.  This is particularly useful if you find a "
19427 "bug."
19428 msgstr ""
19429
19430 #. type: textblock
19431 #: ../fish/guestfish.pod:401
19432 msgid "Display the guestfish / libguestfs version number and exit."
19433 msgstr ""
19434
19435 #. type: =item
19436 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278 ../rescue/virt-rescue.pod:231
19437 msgid "B<-w>"
19438 msgstr ""
19439
19440 #. type: =item
19441 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280 ../rescue/virt-rescue.pod:233
19442 msgid "B<--rw>"
19443 msgstr ""
19444
19445 #. type: textblock
19446 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
19447 msgid ""
19448 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19449 "mounts are done read-write."
19450 msgstr ""
19451
19452 #. type: textblock
19453 #: ../fish/guestfish.pod:410
19454 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
19455 msgstr ""
19456
19457 #. type: textblock
19458 #: ../fish/guestfish.pod:414
19459 msgid "Echo each command before executing it."
19460 msgstr ""
19461
19462 #. type: =head1
19463 #: ../fish/guestfish.pod:418
19464 msgid "COMMANDS ON COMMAND LINE"
19465 msgstr ""
19466
19467 #. type: textblock
19468 #: ../fish/guestfish.pod:420
19469 msgid "Any additional (non-option) arguments are treated as commands to execute."
19470 msgstr ""
19471
19472 #. type: textblock
19473 #: ../fish/guestfish.pod:423
19474 msgid ""
19475 "Commands to execute should be separated by a colon (C<:>), where the colon "
19476 "is a separate parameter.  Thus:"
19477 msgstr ""
19478
19479 #. type: verbatim
19480 #: ../fish/guestfish.pod:426
19481 #, no-wrap
19482 msgid ""
19483 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
19484 "\n"
19485 msgstr ""
19486
19487 #. type: textblock
19488 #: ../fish/guestfish.pod:428
19489 msgid ""
19490 "If there are no additional arguments, then we enter a shell, either an "
19491 "interactive shell with a prompt (if the input is a terminal) or a "
19492 "non-interactive shell."
19493 msgstr ""
19494
19495 #. type: textblock
19496 #: ../fish/guestfish.pod:432
19497 msgid ""
19498 "In either command line mode or non-interactive shell, the first command that "
19499 "gives an error causes the whole shell to exit.  In interactive mode (with a "
19500 "prompt) if a command fails, you can continue to enter commands."
19501 msgstr ""
19502
19503 #. type: =head1
19504 #: ../fish/guestfish.pod:437
19505 msgid "USING launch (OR run)"
19506 msgstr ""
19507
19508 #. type: textblock
19509 #: ../fish/guestfish.pod:439
19510 msgid ""
19511 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
19512 "then launch it, then mount any disks you need, and finally issue "
19513 "actions/commands.  So the general order of the day is:"
19514 msgstr ""
19515
19516 #. type: textblock
19517 #: ../fish/guestfish.pod:447
19518 msgid "add or -a/--add"
19519 msgstr ""
19520
19521 #. type: textblock
19522 #: ../fish/guestfish.pod:451
19523 msgid "launch (aka run)"
19524 msgstr ""
19525
19526 #. type: textblock
19527 #: ../fish/guestfish.pod:455
19528 msgid "mount or -m/--mount"
19529 msgstr ""
19530
19531 #. type: textblock
19532 #: ../fish/guestfish.pod:459
19533 msgid "any other commands"
19534 msgstr ""
19535
19536 #. type: textblock
19537 #: ../fish/guestfish.pod:463
19538 msgid ""
19539 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
19540 "guest before mounting or performing any other commands."
19541 msgstr ""
19542
19543 #. type: textblock
19544 #: ../fish/guestfish.pod:466
19545 msgid ""
19546 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
19547 "I<--new> options were given then C<run> is done automatically, simply "
19548 "because guestfish can't perform the action you asked for without doing this."
19549 msgstr ""
19550
19551 #. type: =head1
19552 #: ../fish/guestfish.pod:471
19553 msgid "OPENING DISKS FOR READ AND WRITE"
19554 msgstr ""
19555
19556 #. type: textblock
19557 #: ../fish/guestfish.pod:473
19558 msgid ""
19559 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
19560 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
19561 "I<-i> and I<-m> open disk images read-only or for writing."
19562 msgstr ""
19563
19564 #. type: textblock
19565 #: ../fish/guestfish.pod:478
19566 msgid ""
19567 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
19568 "opening disk images supplied on the command line for write.  To open a disk "
19569 "image read-only you have to do I<-a image --ro>."
19570 msgstr ""
19571
19572 #. type: textblock
19573 #: ../fish/guestfish.pod:482
19574 msgid ""
19575 "This matters: If you accidentally open a live VM disk image writable then "
19576 "you will cause irreversible disk corruption."
19577 msgstr ""
19578
19579 #. type: textblock
19580 #: ../fish/guestfish.pod:485
19581 msgid ""
19582 "In a future libguestfs we intend to change the default the other way.  Disk "
19583 "images will be opened read-only.  You will have to either specify "
19584 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
19585 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
19586 "access for disk images specified by those other command line options."
19587 msgstr ""
19588
19589 #. type: textblock
19590 #: ../fish/guestfish.pod:492
19591 msgid ""
19592 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
19593 "which does nothing (it is already the default).  However it is highly "
19594 "recommended that you use this option to indicate that you need write access, "
19595 "and prepare your scripts for the day when this option will be required for "
19596 "write access."
19597 msgstr ""
19598
19599 #. type: textblock
19600 #: ../fish/guestfish.pod:498
19601 msgid ""
19602 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
19603 "other libguestfs program apart from guestfish and guestmount."
19604 msgstr ""
19605
19606 #. type: =head1
19607 #: ../fish/guestfish.pod:501
19608 msgid "QUOTING"
19609 msgstr ""
19610
19611 #. type: textblock
19612 #: ../fish/guestfish.pod:503
19613 msgid ""
19614 "You can quote ordinary parameters using either single or double quotes.  For "
19615 "example:"
19616 msgstr ""
19617
19618 #. type: verbatim
19619 #: ../fish/guestfish.pod:506
19620 #, no-wrap
19621 msgid ""
19622 " add \"file with a space.img\"\n"
19623 "\n"
19624 msgstr ""
19625
19626 #. type: verbatim
19627 #: ../fish/guestfish.pod:508
19628 #, no-wrap
19629 msgid ""
19630 " rm '/file name'\n"
19631 "\n"
19632 msgstr ""
19633
19634 #. type: verbatim
19635 #: ../fish/guestfish.pod:510
19636 #, no-wrap
19637 msgid ""
19638 " rm '/\"'\n"
19639 "\n"
19640 msgstr ""
19641
19642 #. type: textblock
19643 #: ../fish/guestfish.pod:512
19644 msgid ""
19645 "A few commands require a list of strings to be passed.  For these, use a "
19646 "whitespace-separated list, enclosed in quotes.  Strings containing "
19647 "whitespace to be passed through must be enclosed in single quotes.  A "
19648 "literal single quote must be escaped with a backslash."
19649 msgstr ""
19650
19651 #. type: verbatim
19652 #: ../fish/guestfish.pod:517
19653 #, no-wrap
19654 msgid ""
19655 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
19656 " command \"/bin/echo 'foo      bar'\"\n"
19657 " command \"/bin/echo \\'foo\\'\"\n"
19658 "\n"
19659 msgstr ""
19660
19661 #. type: =head2
19662 #: ../fish/guestfish.pod:521
19663 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
19664 msgstr ""
19665
19666 #. type: textblock
19667 #: ../fish/guestfish.pod:523
19668 msgid ""
19669 "In double-quoted arguments (only) use backslash to insert special "
19670 "characters:"
19671 msgstr ""
19672
19673 #. type: =item
19674 #: ../fish/guestfish.pod:528
19675 msgid "C<\\a>"
19676 msgstr ""
19677
19678 #. type: textblock
19679 #: ../fish/guestfish.pod:530
19680 msgid "Alert (bell) character."
19681 msgstr ""
19682
19683 #. type: =item
19684 #: ../fish/guestfish.pod:532
19685 msgid "C<\\b>"
19686 msgstr ""
19687
19688 #. type: textblock
19689 #: ../fish/guestfish.pod:534
19690 msgid "Backspace character."
19691 msgstr ""
19692
19693 #. type: =item
19694 #: ../fish/guestfish.pod:536
19695 msgid "C<\\f>"
19696 msgstr ""
19697
19698 #. type: textblock
19699 #: ../fish/guestfish.pod:538
19700 msgid "Form feed character."
19701 msgstr ""
19702
19703 #. type: =item
19704 #: ../fish/guestfish.pod:540
19705 msgid "C<\\n>"
19706 msgstr ""
19707
19708 #. type: textblock
19709 #: ../fish/guestfish.pod:542
19710 msgid "Newline character."
19711 msgstr ""
19712
19713 #. type: =item
19714 #: ../fish/guestfish.pod:544
19715 msgid "C<\\r>"
19716 msgstr ""
19717
19718 #. type: textblock
19719 #: ../fish/guestfish.pod:546
19720 msgid "Carriage return character."
19721 msgstr ""
19722
19723 #. type: =item
19724 #: ../fish/guestfish.pod:548
19725 msgid "C<\\t>"
19726 msgstr ""
19727
19728 #. type: textblock
19729 #: ../fish/guestfish.pod:550
19730 msgid "Horizontal tab character."
19731 msgstr ""
19732
19733 #. type: =item
19734 #: ../fish/guestfish.pod:552
19735 msgid "C<\\v>"
19736 msgstr ""
19737
19738 #. type: textblock
19739 #: ../fish/guestfish.pod:554
19740 msgid "Vertical tab character."
19741 msgstr ""
19742
19743 #. type: =item
19744 #: ../fish/guestfish.pod:556
19745 msgid "C<\\\">"
19746 msgstr ""
19747
19748 #. type: textblock
19749 #: ../fish/guestfish.pod:558
19750 msgid "A literal double quote character."
19751 msgstr ""
19752
19753 #. type: =item
19754 #: ../fish/guestfish.pod:560
19755 msgid "C<\\ooo>"
19756 msgstr ""
19757
19758 #. type: textblock
19759 #: ../fish/guestfish.pod:562
19760 msgid ""
19761 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
19762 "(unlike C)."
19763 msgstr ""
19764
19765 #. type: =item
19766 #: ../fish/guestfish.pod:565
19767 msgid "C<\\xhh>"
19768 msgstr ""
19769
19770 #. type: textblock
19771 #: ../fish/guestfish.pod:567
19772 msgid "A character with hex value I<hh>.  There must be precisely 2 hex digits."
19773 msgstr ""
19774
19775 #. type: textblock
19776 #: ../fish/guestfish.pod:570
19777 msgid ""
19778 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
19779 "strings."
19780 msgstr ""
19781
19782 #. type: =item
19783 #: ../fish/guestfish.pod:573
19784 msgid "C<\\\\>"
19785 msgstr ""
19786
19787 #. type: textblock
19788 #: ../fish/guestfish.pod:575
19789 msgid "A literal backslash character."
19790 msgstr ""
19791
19792 #. type: =head1
19793 #: ../fish/guestfish.pod:579
19794 msgid "OPTIONAL ARGUMENTS"
19795 msgstr ""
19796
19797 #. type: textblock
19798 #: ../fish/guestfish.pod:581
19799 msgid ""
19800 "Some commands take optional arguments.  These arguments appear in this "
19801 "documentation as C<[argname:..]>.  You can use them as in these examples:"
19802 msgstr ""
19803
19804 #. type: verbatim
19805 #: ../fish/guestfish.pod:585
19806 #, no-wrap
19807 msgid ""
19808 " add-drive-opts filename\n"
19809 "\n"
19810 msgstr ""
19811
19812 #. type: verbatim
19813 #: ../fish/guestfish.pod:587
19814 #, no-wrap
19815 msgid ""
19816 " add-drive-opts filename readonly:true\n"
19817 "\n"
19818 msgstr ""
19819
19820 #. type: verbatim
19821 #: ../fish/guestfish.pod:589
19822 #, no-wrap
19823 msgid ""
19824 " add-drive-opts filename format:qcow2 readonly:false\n"
19825 "\n"
19826 msgstr ""
19827
19828 #. type: textblock
19829 #: ../fish/guestfish.pod:591
19830 msgid ""
19831 "Each optional argument can appear at most once.  All optional arguments must "
19832 "appear after the required ones."
19833 msgstr ""
19834
19835 #. type: =head1
19836 #: ../fish/guestfish.pod:594
19837 msgid "NUMBERS"
19838 msgstr ""
19839
19840 #. type: textblock
19841 #: ../fish/guestfish.pod:596
19842 msgid "This section applies to all commands which can take integers as parameters."
19843 msgstr ""
19844
19845 #. type: =head2
19846 #: ../fish/guestfish.pod:599
19847 msgid "SIZE SUFFIX"
19848 msgstr ""
19849
19850 #. type: textblock
19851 #: ../fish/guestfish.pod:601
19852 msgid ""
19853 "When the command takes a parameter measured in bytes, you can use one of the "
19854 "following suffixes to specify kilobytes, megabytes and larger sizes:"
19855 msgstr ""
19856
19857 #. type: =item
19858 #: ../fish/guestfish.pod:607
19859 msgid "B<k> or B<K> or B<KiB>"
19860 msgstr ""
19861
19862 #. type: textblock
19863 #: ../fish/guestfish.pod:609
19864 msgid "The size in kilobytes (multiplied by 1024)."
19865 msgstr ""
19866
19867 #. type: =item
19868 #: ../fish/guestfish.pod:611
19869 msgid "B<KB>"
19870 msgstr ""
19871
19872 #. type: textblock
19873 #: ../fish/guestfish.pod:613
19874 msgid "The size in SI 1000 byte units."
19875 msgstr ""
19876
19877 #. type: =item
19878 #: ../fish/guestfish.pod:615
19879 msgid "B<M> or B<MiB>"
19880 msgstr ""
19881
19882 #. type: textblock
19883 #: ../fish/guestfish.pod:617
19884 msgid "The size in megabytes (multiplied by 1048576)."
19885 msgstr ""
19886
19887 #. type: =item
19888 #: ../fish/guestfish.pod:619
19889 msgid "B<MB>"
19890 msgstr ""
19891
19892 #. type: textblock
19893 #: ../fish/guestfish.pod:621
19894 msgid "The size in SI 1000000 byte units."
19895 msgstr ""
19896
19897 #. type: =item
19898 #: ../fish/guestfish.pod:623
19899 msgid "B<G> or B<GiB>"
19900 msgstr ""
19901
19902 #. type: textblock
19903 #: ../fish/guestfish.pod:625
19904 msgid "The size in gigabytes (multiplied by 2**30)."
19905 msgstr ""
19906
19907 #. type: =item
19908 #: ../fish/guestfish.pod:627
19909 msgid "B<GB>"
19910 msgstr ""
19911
19912 #. type: textblock
19913 #: ../fish/guestfish.pod:629
19914 msgid "The size in SI 10**9 byte units."
19915 msgstr ""
19916
19917 #. type: =item
19918 #: ../fish/guestfish.pod:631
19919 msgid "B<T> or B<TiB>"
19920 msgstr ""
19921
19922 #. type: textblock
19923 #: ../fish/guestfish.pod:633
19924 msgid "The size in terabytes (multiplied by 2**40)."
19925 msgstr ""
19926
19927 #. type: =item
19928 #: ../fish/guestfish.pod:635
19929 msgid "B<TB>"
19930 msgstr ""
19931
19932 #. type: textblock
19933 #: ../fish/guestfish.pod:637
19934 msgid "The size in SI 10**12 byte units."
19935 msgstr ""
19936
19937 #. type: =item
19938 #: ../fish/guestfish.pod:639
19939 msgid "B<P> or B<PiB>"
19940 msgstr ""
19941
19942 #. type: textblock
19943 #: ../fish/guestfish.pod:641
19944 msgid "The size in petabytes (multiplied by 2**50)."
19945 msgstr ""
19946
19947 #. type: =item
19948 #: ../fish/guestfish.pod:643
19949 msgid "B<PB>"
19950 msgstr ""
19951
19952 #. type: textblock
19953 #: ../fish/guestfish.pod:645
19954 msgid "The size in SI 10**15 byte units."
19955 msgstr ""
19956
19957 #. type: =item
19958 #: ../fish/guestfish.pod:647
19959 msgid "B<E> or B<EiB>"
19960 msgstr ""
19961
19962 #. type: textblock
19963 #: ../fish/guestfish.pod:649
19964 msgid "The size in exabytes (multiplied by 2**60)."
19965 msgstr ""
19966
19967 #. type: =item
19968 #: ../fish/guestfish.pod:651
19969 msgid "B<EB>"
19970 msgstr ""
19971
19972 #. type: textblock
19973 #: ../fish/guestfish.pod:653
19974 msgid "The size in SI 10**18 byte units."
19975 msgstr ""
19976
19977 #. type: =item
19978 #: ../fish/guestfish.pod:655
19979 msgid "B<Z> or B<ZiB>"
19980 msgstr ""
19981
19982 #. type: textblock
19983 #: ../fish/guestfish.pod:657
19984 msgid "The size in zettabytes (multiplied by 2**70)."
19985 msgstr ""
19986
19987 #. type: =item
19988 #: ../fish/guestfish.pod:659
19989 msgid "B<ZB>"
19990 msgstr ""
19991
19992 #. type: textblock
19993 #: ../fish/guestfish.pod:661
19994 msgid "The size in SI 10**21 byte units."
19995 msgstr ""
19996
19997 #. type: =item
19998 #: ../fish/guestfish.pod:663
19999 msgid "B<Y> or B<YiB>"
20000 msgstr ""
20001
20002 #. type: textblock
20003 #: ../fish/guestfish.pod:665
20004 msgid "The size in yottabytes (multiplied by 2**80)."
20005 msgstr ""
20006
20007 #. type: =item
20008 #: ../fish/guestfish.pod:667
20009 msgid "B<YB>"
20010 msgstr ""
20011
20012 #. type: textblock
20013 #: ../fish/guestfish.pod:669
20014 msgid "The size in SI 10**24 byte units."
20015 msgstr ""
20016
20017 #. type: verbatim
20018 #: ../fish/guestfish.pod:675
20019 #, no-wrap
20020 msgid ""
20021 " truncate-size /file 1G\n"
20022 "\n"
20023 msgstr ""
20024
20025 #. type: textblock
20026 #: ../fish/guestfish.pod:677
20027 msgid "would truncate the file to 1 gigabyte."
20028 msgstr ""
20029
20030 #. type: textblock
20031 #: ../fish/guestfish.pod:679
20032 msgid ""
20033 "Be careful because a few commands take sizes in kilobytes or megabytes "
20034 "(eg. the parameter to L</memsize> is specified in megabytes already).  "
20035 "Adding a suffix will probably not do what you expect."
20036 msgstr ""
20037
20038 #. type: =head2
20039 #: ../fish/guestfish.pod:683
20040 msgid "OCTAL AND HEXADECIMAL NUMBERS"
20041 msgstr ""
20042
20043 #. type: textblock
20044 #: ../fish/guestfish.pod:685
20045 msgid ""
20046 "For specifying the radix (base) use the C convention: C<0> to prefix an "
20047 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
20048 msgstr ""
20049
20050 #. type: verbatim
20051 #: ../fish/guestfish.pod:688
20052 #, no-wrap
20053 msgid ""
20054 " 1234      decimal number 1234\n"
20055 " 02322     octal number, equivalent to decimal 1234\n"
20056 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
20057 "\n"
20058 msgstr ""
20059
20060 #. type: textblock
20061 #: ../fish/guestfish.pod:692
20062 msgid ""
20063 "When using the C<chmod> command, you almost always want to specify an octal "
20064 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
20065 "L<chmod(1)> program):"
20066 msgstr ""
20067
20068 #. type: verbatim
20069 #: ../fish/guestfish.pod:696
20070 #, no-wrap
20071 msgid ""
20072 " chmod 0777 /public  # OK\n"
20073 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
20074 "\n"
20075 msgstr ""
20076
20077 #. type: textblock
20078 #: ../fish/guestfish.pod:699
20079 msgid ""
20080 "Commands that return numbers usually print them in decimal, but some "
20081 "commands print numbers in other radices (eg. C<umask> prints the mode in "
20082 "octal, preceeded by C<0>)."
20083 msgstr ""
20084
20085 #. type: =head1
20086 #: ../fish/guestfish.pod:703
20087 msgid "WILDCARDS AND GLOBBING"
20088 msgstr ""
20089
20090 #. type: textblock
20091 #: ../fish/guestfish.pod:705
20092 msgid ""
20093 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
20094 "(globbing) by default.  So for example the following will not do what you "
20095 "expect:"
20096 msgstr ""
20097
20098 #. type: verbatim
20099 #: ../fish/guestfish.pod:709
20100 #, no-wrap
20101 msgid ""
20102 " rm-rf /home/*\n"
20103 "\n"
20104 msgstr ""
20105
20106 #. type: textblock
20107 #: ../fish/guestfish.pod:711
20108 msgid ""
20109 "Assuming you don't have a directory called literally C</home/*> then the "
20110 "above command will return an error."
20111 msgstr ""
20112
20113 #. type: textblock
20114 #: ../fish/guestfish.pod:714
20115 msgid "To perform wildcard expansion, use the C<glob> command."
20116 msgstr ""
20117
20118 #. type: verbatim
20119 #: ../fish/guestfish.pod:716
20120 #, no-wrap
20121 msgid ""
20122 " glob rm-rf /home/*\n"
20123 "\n"
20124 msgstr ""
20125
20126 #. type: textblock
20127 #: ../fish/guestfish.pod:718
20128 msgid ""
20129 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
20130 "many times), equivalent to:"
20131 msgstr ""
20132
20133 #. type: verbatim
20134 #: ../fish/guestfish.pod:721
20135 #, no-wrap
20136 msgid ""
20137 " rm-rf /home/jim\n"
20138 " rm-rf /home/joe\n"
20139 " rm-rf /home/mary\n"
20140 "\n"
20141 msgstr ""
20142
20143 #. type: textblock
20144 #: ../fish/guestfish.pod:725
20145 msgid "C<glob> only works on simple guest paths and not on device names."
20146 msgstr ""
20147
20148 #. type: textblock
20149 #: ../fish/guestfish.pod:727
20150 msgid ""
20151 "If you have several parameters, each containing a wildcard, then glob will "
20152 "perform a Cartesian product."
20153 msgstr ""
20154
20155 #. type: =head1
20156 #: ../fish/guestfish.pod:730
20157 msgid "COMMENTS"
20158 msgstr ""
20159
20160 #. type: textblock
20161 #: ../fish/guestfish.pod:732
20162 msgid ""
20163 "Any line which starts with a I<#> character is treated as a comment and "
20164 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
20165 "a command.  For example:"
20166 msgstr ""
20167
20168 #. type: verbatim
20169 #: ../fish/guestfish.pod:736
20170 #, no-wrap
20171 msgid ""
20172 " # this is a comment\n"
20173 "         # this is a comment\n"
20174 " foo # NOT a comment\n"
20175 "\n"
20176 msgstr ""
20177
20178 #. type: textblock
20179 #: ../fish/guestfish.pod:740
20180 msgid "Blank lines are also ignored."
20181 msgstr ""
20182
20183 #. type: =head1
20184 #: ../fish/guestfish.pod:742
20185 msgid "RUNNING COMMANDS LOCALLY"
20186 msgstr ""
20187
20188 #. type: textblock
20189 #: ../fish/guestfish.pod:744
20190 msgid ""
20191 "Any line which starts with a I<!> character is treated as a command sent to "
20192 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
20193 msgstr ""
20194
20195 #. type: verbatim
20196 #: ../fish/guestfish.pod:748
20197 #, no-wrap
20198 msgid ""
20199 " !mkdir local\n"
20200 " tgz-out /remote local/remote-data.tar.gz\n"
20201 "\n"
20202 msgstr ""
20203
20204 #. type: textblock
20205 #: ../fish/guestfish.pod:751
20206 msgid ""
20207 "will create a directory C<local> on the host, and then export the contents "
20208 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
20209 "(See C<tgz-out>)."
20210 msgstr ""
20211
20212 #. type: textblock
20213 #: ../fish/guestfish.pod:755
20214 msgid ""
20215 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
20216 "effect, due to the way that subprocesses work in Unix."
20217 msgstr ""
20218
20219 #. type: =head2
20220 #: ../fish/guestfish.pod:758
20221 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
20222 msgstr ""
20223
20224 #. type: textblock
20225 #: ../fish/guestfish.pod:760
20226 msgid ""
20227 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
20228 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
20229 "and executed as guestfish commands."
20230 msgstr ""
20231
20232 #. type: textblock
20233 #: ../fish/guestfish.pod:764
20234 msgid ""
20235 "Thus you can use shell script to construct arbitrary guestfish commands "
20236 "which are then parsed by guestfish."
20237 msgstr ""
20238
20239 #. type: textblock
20240 #: ../fish/guestfish.pod:767
20241 msgid ""
20242 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
20243 "through C</foo.100>) using guestfish commands alone.  However this is simple "
20244 "if we use a shell script to create the guestfish commands for us:"
20245 msgstr ""
20246
20247 #. type: verbatim
20248 #: ../fish/guestfish.pod:772
20249 #, no-wrap
20250 msgid ""
20251 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
20252 "\n"
20253 msgstr ""
20254
20255 #. type: textblock
20256 #: ../fish/guestfish.pod:774
20257 msgid "or with names like C</foo.001>:"
20258 msgstr ""
20259
20260 #. type: verbatim
20261 #: ../fish/guestfish.pod:776
20262 #, no-wrap
20263 msgid ""
20264 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
20265 "\n"
20266 msgstr ""
20267
20268 #. type: textblock
20269 #: ../fish/guestfish.pod:778
20270 msgid ""
20271 "When using guestfish interactively it can be helpful to just run the shell "
20272 "script first (ie. remove the initial C<E<lt>> character so it is just an "
20273 "ordinary I<!> local command), see what guestfish commands it would run, and "
20274 "when you are happy with those prepend the C<E<lt>> character to run the "
20275 "guestfish commands for real."
20276 msgstr ""
20277
20278 #. type: =head1
20279 #: ../fish/guestfish.pod:784
20280 msgid "PIPES"
20281 msgstr ""
20282
20283 #. type: textblock
20284 #: ../fish/guestfish.pod:786
20285 msgid ""
20286 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
20287 "command (a guestfish command) to the second command (any host command).  For "
20288 "example:"
20289 msgstr ""
20290
20291 #. type: verbatim
20292 #: ../fish/guestfish.pod:790
20293 #, no-wrap
20294 msgid ""
20295 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
20296 "\n"
20297 msgstr ""
20298
20299 #. type: textblock
20300 #: ../fish/guestfish.pod:792
20301 msgid ""
20302 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
20303 "program).  The above command would list all accounts in the guest filesystem "
20304 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
20305 msgstr ""
20306
20307 #. type: verbatim
20308 #: ../fish/guestfish.pod:797
20309 #, no-wrap
20310 msgid ""
20311 " hexdump /bin/ls | head\n"
20312 " list-devices | tail -1\n"
20313 " tgz-out / - | tar ztf -\n"
20314 "\n"
20315 msgstr ""
20316
20317 #. type: textblock
20318 #: ../fish/guestfish.pod:801
20319 msgid ""
20320 "The space before the pipe symbol is required, any space after the pipe "
20321 "symbol is optional.  Everything after the pipe symbol is just passed "
20322 "straight to the host shell, so it can contain redirections, globs and "
20323 "anything else that makes sense on the host side."
20324 msgstr ""
20325
20326 #. type: textblock
20327 #: ../fish/guestfish.pod:806
20328 msgid ""
20329 "To use a literal argument which begins with a pipe symbol, you have to quote "
20330 "it, eg:"
20331 msgstr ""
20332
20333 #. type: verbatim
20334 #: ../fish/guestfish.pod:809
20335 #, no-wrap
20336 msgid ""
20337 " echo \"|\"\n"
20338 "\n"
20339 msgstr ""
20340
20341 #. type: =head1
20342 #: ../fish/guestfish.pod:811
20343 msgid "HOME DIRECTORIES"
20344 msgstr ""
20345
20346 #. type: textblock
20347 #: ../fish/guestfish.pod:813
20348 msgid ""
20349 "If a parameter starts with the character C<~> then the tilde may be expanded "
20350 "as a home directory path (either C<~> for the current user's home directory, "
20351 "or C<~user> for another user)."
20352 msgstr ""
20353
20354 #. type: textblock
20355 #: ../fish/guestfish.pod:817
20356 msgid ""
20357 "Note that home directory expansion happens for users known I<on the host>, "
20358 "not in the guest filesystem."
20359 msgstr ""
20360
20361 #. type: textblock
20362 #: ../fish/guestfish.pod:820
20363 msgid ""
20364 "To use a literal argument which begins with a tilde, you have to quote it, "
20365 "eg:"
20366 msgstr ""
20367
20368 #. type: verbatim
20369 #: ../fish/guestfish.pod:823
20370 #, no-wrap
20371 msgid ""
20372 " echo \"~\"\n"
20373 "\n"
20374 msgstr ""
20375
20376 #. type: =head2
20377 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:534
20378 msgid "ENCRYPTED DISKS"
20379 msgstr ""
20380
20381 #. type: textblock
20382 #: ../fish/guestfish.pod:827
20383 msgid ""
20384 "Libguestfs has some support for Linux guests encrypted according to the "
20385 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
20386 "disk encryption systems used by modern Linux guests.  Currently only "
20387 "LVM-on-LUKS is supported."
20388 msgstr ""
20389
20390 #. type: textblock
20391 #: ../fish/guestfish.pod:832
20392 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
20393 msgstr ""
20394
20395 #. type: verbatim
20396 #: ../fish/guestfish.pod:834
20397 #, no-wrap
20398 msgid ""
20399 " ><fs> vfs-type /dev/sda2\n"
20400 " crypto_LUKS\n"
20401 "\n"
20402 msgstr ""
20403
20404 #. type: textblock
20405 #: ../fish/guestfish.pod:837
20406 msgid ""
20407 "Then open those devices using L</luks-open>.  This creates a device-mapper "
20408 "device called C</dev/mapper/luksdev>."
20409 msgstr ""
20410
20411 #. type: verbatim
20412 #: ../fish/guestfish.pod:840
20413 #, no-wrap
20414 msgid ""
20415 " ><fs> luks-open /dev/sda2 luksdev\n"
20416 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
20417 "\n"
20418 msgstr ""
20419
20420 #. type: textblock
20421 #: ../fish/guestfish.pod:843
20422 msgid ""
20423 "Finally you have to tell LVM to scan for volume groups on the newly created "
20424 "mapper device:"
20425 msgstr ""
20426
20427 #. type: verbatim
20428 #: ../fish/guestfish.pod:846
20429 #, no-wrap
20430 msgid ""
20431 " vgscan\n"
20432 " vg-activate-all true\n"
20433 "\n"
20434 msgstr ""
20435
20436 #. type: textblock
20437 #: ../fish/guestfish.pod:849
20438 msgid "The logical volume(s) can now be mounted in the usual way."
20439 msgstr ""
20440
20441 #. type: textblock
20442 #: ../fish/guestfish.pod:851
20443 msgid ""
20444 "Before closing a LUKS device you must unmount any logical volumes on it and "
20445 "deactivate the volume groups by calling C<vg-activate false VG> on each "
20446 "one.  Then you can close the mapper device:"
20447 msgstr ""
20448
20449 #. type: verbatim
20450 #: ../fish/guestfish.pod:855
20451 #, no-wrap
20452 msgid ""
20453 " vg-activate false /dev/VG\n"
20454 " luks-close /dev/mapper/luksdev\n"
20455 "\n"
20456 msgstr ""
20457
20458 #. type: textblock
20459 #: ../fish/guestfish.pod:860
20460 msgid ""
20461 "If a path is prefixed with C<win:> then you can use Windows-style drive "
20462 "letters and paths (with some limitations).  The following commands are "
20463 "equivalent:"
20464 msgstr ""
20465
20466 #. type: verbatim
20467 #: ../fish/guestfish.pod:864
20468 #, no-wrap
20469 msgid ""
20470 " file /WINDOWS/system32/config/system.LOG\n"
20471 "\n"
20472 msgstr ""
20473
20474 #. type: verbatim
20475 #: ../fish/guestfish.pod:866
20476 #, no-wrap
20477 msgid ""
20478 " file win:\\windows\\system32\\config\\system.log\n"
20479 "\n"
20480 msgstr ""
20481
20482 #. type: verbatim
20483 #: ../fish/guestfish.pod:868
20484 #, no-wrap
20485 msgid ""
20486 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
20487 "\n"
20488 msgstr ""
20489
20490 #. type: textblock
20491 #: ../fish/guestfish.pod:870
20492 msgid ""
20493 "The parameter is rewritten \"behind the scenes\" by looking up the position "
20494 "where the drive is mounted, prepending that to the path, changing all "
20495 "backslash characters to forward slash, then resolving the result using "
20496 "L</case-sensitive-path>.  For example if the E: drive was mounted on C</e> "
20497 "then the parameter might be rewritten like this:"
20498 msgstr ""
20499
20500 #. type: verbatim
20501 #: ../fish/guestfish.pod:876
20502 #, no-wrap
20503 msgid ""
20504 " win:e:\\foo\\bar => /e/FOO/bar\n"
20505 "\n"
20506 msgstr ""
20507
20508 #. type: textblock
20509 #: ../fish/guestfish.pod:878
20510 msgid "This only works in argument positions that expect a path."
20511 msgstr ""
20512
20513 #. type: =head1
20514 #: ../fish/guestfish.pod:880
20515 msgid "UPLOADING AND DOWNLOADING FILES"
20516 msgstr ""
20517
20518 #. type: textblock
20519 #: ../fish/guestfish.pod:882
20520 msgid ""
20521 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
20522 "others which upload from or download to a local file, you can use the "
20523 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
20524 msgstr ""
20525
20526 #. type: verbatim
20527 #: ../fish/guestfish.pod:886
20528 #, no-wrap
20529 msgid ""
20530 " upload - /foo\n"
20531 "\n"
20532 msgstr ""
20533
20534 #. type: textblock
20535 #: ../fish/guestfish.pod:888
20536 msgid "reads stdin and creates from that a file C</foo> in the disk image, and:"
20537 msgstr ""
20538
20539 #. type: verbatim
20540 #: ../fish/guestfish.pod:891
20541 #, no-wrap
20542 msgid ""
20543 " tar-out /etc - | tar tf -\n"
20544 "\n"
20545 msgstr ""
20546
20547 #. type: textblock
20548 #: ../fish/guestfish.pod:893
20549 msgid ""
20550 "writes the tarball to stdout and then pipes that into the external \"tar\" "
20551 "command (see L</PIPES>)."
20552 msgstr ""
20553
20554 #. type: textblock
20555 #: ../fish/guestfish.pod:896
20556 msgid ""
20557 "When using C<-> to read from stdin, the input is read up to the end of "
20558 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
20559 "some arbitrary end marker:"
20560 msgstr ""
20561
20562 #. type: verbatim
20563 #: ../fish/guestfish.pod:900
20564 #, no-wrap
20565 msgid ""
20566 " upload -<<END /foo\n"
20567 " input line 1\n"
20568 " input line 2\n"
20569 " input line 3\n"
20570 " END\n"
20571 "\n"
20572 msgstr ""
20573
20574 #. type: textblock
20575 #: ../fish/guestfish.pod:906
20576 msgid ""
20577 "Any string of characters can be used instead of C<END>.  The end marker must "
20578 "appear on a line of its own, without any preceeding or following characters "
20579 "(not even spaces)."
20580 msgstr ""
20581
20582 #. type: textblock
20583 #: ../fish/guestfish.pod:910
20584 msgid ""
20585 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
20586 "upload local files (so-called \"FileIn\" parameters in the generator)."
20587 msgstr ""
20588
20589 #. type: =head1
20590 #: ../fish/guestfish.pod:913
20591 msgid "EXIT ON ERROR BEHAVIOUR"
20592 msgstr ""
20593
20594 #. type: textblock
20595 #: ../fish/guestfish.pod:915
20596 msgid ""
20597 "By default, guestfish will ignore any errors when in interactive mode "
20598 "(ie. taking commands from a human over a tty), and will exit on the first "
20599 "error in non-interactive mode (scripts, commands given on the command line)."
20600 msgstr ""
20601
20602 #. type: textblock
20603 #: ../fish/guestfish.pod:920
20604 msgid ""
20605 "If you prefix a command with a I<-> character, then that command will not "
20606 "cause guestfish to exit, even if that (one) command returns an error."
20607 msgstr ""
20608
20609 #. type: =head1
20610 #: ../fish/guestfish.pod:924
20611 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
20612 msgstr ""
20613
20614 #. type: textblock
20615 #: ../fish/guestfish.pod:926
20616 msgid ""
20617 "Guestfish can be remote-controlled over a socket.  This is useful "
20618 "particularly in shell scripts where you want to make several different "
20619 "changes to a filesystem, but you don't want the overhead of starting up a "
20620 "guestfish process each time."
20621 msgstr ""
20622
20623 #. type: textblock
20624 #: ../fish/guestfish.pod:931
20625 msgid "Start a guestfish server process using:"
20626 msgstr ""
20627
20628 #. type: verbatim
20629 #: ../fish/guestfish.pod:933
20630 #, no-wrap
20631 msgid ""
20632 " eval \"`guestfish --listen`\"\n"
20633 "\n"
20634 msgstr ""
20635
20636 #. type: textblock
20637 #: ../fish/guestfish.pod:935
20638 msgid "and then send it commands by doing:"
20639 msgstr ""
20640
20641 #. type: verbatim
20642 #: ../fish/guestfish.pod:937
20643 #, no-wrap
20644 msgid ""
20645 " guestfish --remote cmd [...]\n"
20646 "\n"
20647 msgstr ""
20648
20649 #. type: textblock
20650 #: ../fish/guestfish.pod:939
20651 msgid "To cause the server to exit, send it the exit command:"
20652 msgstr ""
20653
20654 #. type: textblock
20655 #: ../fish/guestfish.pod:943
20656 msgid ""
20657 "Note that the server will normally exit if there is an error in a command.  "
20658 "You can change this in the usual way.  See section L</EXIT ON ERROR "
20659 "BEHAVIOUR>."
20660 msgstr ""
20661
20662 #. type: =head2
20663 #: ../fish/guestfish.pod:947
20664 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
20665 msgstr ""
20666
20667 #. type: textblock
20668 #: ../fish/guestfish.pod:949
20669 msgid ""
20670 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
20671 "is how the I<--remote> option knows where to send the commands.  You can "
20672 "have several guestfish listener processes running using:"
20673 msgstr ""
20674
20675 #. type: verbatim
20676 #: ../fish/guestfish.pod:953
20677 #, no-wrap
20678 msgid ""
20679 " eval \"`guestfish --listen`\"\n"
20680 " pid1=$GUESTFISH_PID\n"
20681 " eval \"`guestfish --listen`\"\n"
20682 " pid2=$GUESTFISH_PID\n"
20683 " ...\n"
20684 " guestfish --remote=$pid1 cmd\n"
20685 " guestfish --remote=$pid2 cmd\n"
20686 "\n"
20687 msgstr ""
20688
20689 #. type: =head2
20690 #: ../fish/guestfish.pod:961
20691 msgid "REMOTE CONTROL AND CSH"
20692 msgstr ""
20693
20694 #. type: textblock
20695 #: ../fish/guestfish.pod:963
20696 msgid ""
20697 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
20698 "option:"
20699 msgstr ""
20700
20701 #. type: verbatim
20702 #: ../fish/guestfish.pod:966
20703 #, no-wrap
20704 msgid ""
20705 " eval \"`guestfish --listen --csh`\"\n"
20706 "\n"
20707 msgstr ""
20708
20709 #. type: =head2
20710 #: ../fish/guestfish.pod:968
20711 msgid "REMOTE CONTROL DETAILS"
20712 msgstr ""
20713
20714 #. type: textblock
20715 #: ../fish/guestfish.pod:970
20716 msgid ""
20717 "Remote control happens over a Unix domain socket called "
20718 "C</tmp/.guestfish-$UID/socket-$PID>, where C<$UID> is the effective user ID "
20719 "of the process, and C<$PID> is the process ID of the server."
20720 msgstr ""
20721
20722 #. type: textblock
20723 #: ../fish/guestfish.pod:974
20724 msgid "Guestfish client and server versions must match exactly."
20725 msgstr ""
20726
20727 #. type: =head2
20728 #: ../fish/guestfish.pod:976
20729 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
20730 msgstr ""
20731
20732 #. type: textblock
20733 #: ../fish/guestfish.pod:978
20734 msgid ""
20735 "From Bash, you can use the following code which creates a guestfish "
20736 "instance, correctly quotes the command line, handles failure to start, and "
20737 "cleans up guestfish when the script exits:"
20738 msgstr ""
20739
20740 #. type: verbatim
20741 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:980
20742 #, no-wrap
20743 msgid ""
20744 " #!/bin/bash -\n"
20745 " \n"
20746 msgstr ""
20747
20748 #. type: verbatim
20749 #: ../fish/guestfish.pod:986
20750 #, no-wrap
20751 msgid ""
20752 " guestfish[0]=\"guestfish\"\n"
20753 " guestfish[1]=\"--listen\"\n"
20754 " guestfish[2]=\"--ro\"\n"
20755 " guestfish[3]=\"-a\"\n"
20756 " guestfish[4]=\"disk.img\"\n"
20757 " \n"
20758 msgstr ""
20759
20760 #. type: verbatim
20761 #: ../fish/guestfish.pod:992
20762 #, no-wrap
20763 msgid ""
20764 " GUESTFISH_PID=\n"
20765 " eval $(\"${guestfish[@]}\")\n"
20766 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
20767 "     echo \"error: guestfish didn't start up, see error messages above\"\n"
20768 "     exit 1\n"
20769 " fi\n"
20770 " \n"
20771 msgstr ""
20772
20773 #. type: verbatim
20774 #: ../fish/guestfish.pod:999
20775 #, no-wrap
20776 msgid ""
20777 " cleanup_guestfish ()\n"
20778 " {\n"
20779 "     guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
20780 " }\n"
20781 " trap cleanup_guestfish EXIT ERR\n"
20782 " \n"
20783 msgstr ""
20784
20785 #. type: verbatim
20786 #: ../fish/guestfish.pod:1005
20787 #, no-wrap
20788 msgid ""
20789 " guestfish --remote -- run\n"
20790 " \n"
20791 msgstr ""
20792
20793 #. type: verbatim
20794 #: ../fish/guestfish.pod:1007
20795 #, no-wrap
20796 msgid ""
20797 " # ...\n"
20798 "\n"
20799 msgstr ""
20800
20801 #. type: =head2
20802 #: ../fish/guestfish.pod:1009
20803 msgid "REMOTE CONTROL RUN COMMAND HANGING"
20804 msgstr ""
20805
20806 #. type: textblock
20807 #: ../fish/guestfish.pod:1011
20808 msgid ""
20809 "Using the C<run> (or C<launch>) command remotely in a command substitution "
20810 "context hangs, ie. don't do (note the backquotes):"
20811 msgstr ""
20812
20813 #. type: verbatim
20814 #: ../fish/guestfish.pod:1014
20815 #, no-wrap
20816 msgid ""
20817 " a=`guestfish --remote run`\n"
20818 "\n"
20819 msgstr ""
20820
20821 #. type: textblock
20822 #: ../fish/guestfish.pod:1016
20823 msgid ""
20824 "Since the C<run> command produces no output on stdout, this is not useful "
20825 "anyway.  For further information see "
20826 "L<https://bugzilla.redhat.com/show_bug.cgi?id=592910>."
20827 msgstr ""
20828
20829 #. type: =head1
20830 #: ../fish/guestfish.pod:1020
20831 msgid "PREPARED DISK IMAGES"
20832 msgstr ""
20833
20834 #. type: textblock
20835 #: ../fish/guestfish.pod:1022
20836 msgid ""
20837 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
20838 "preformatted disk images that guestfish can make for you to save typing.  "
20839 "This is particularly useful for testing purposes.  This option is used "
20840 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
20841 "can be mixed with I<-a>)."
20842 msgstr ""
20843
20844 #. type: textblock
20845 #: ../fish/guestfish.pod:1028
20846 msgid ""
20847 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
20848 "the second and so on.  Existing files in the current directory are "
20849 "I<overwritten>."
20850 msgstr ""
20851
20852 #. type: textblock
20853 #: ../fish/guestfish.pod:1032
20854 msgid ""
20855 "The type briefly describes how the disk should be sized, partitioned, how "
20856 "filesystem(s) should be created, and how content should be added.  "
20857 "Optionally the type can be followed by extra parameters, separated by C<:> "
20858 "(colon) characters.  For example, I<-N fs> creates a default 100MB, "
20859 "sparsely-allocated disk, containing a single partition, with the partition "
20860 "formatted as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem "
20861 "on a 1GB disk instead."
20862 msgstr ""
20863
20864 #. type: textblock
20865 #: ../fish/guestfish.pod:1040
20866 msgid "To list the available types and any extra parameters they take, run:"
20867 msgstr ""
20868
20869 #. type: textblock
20870 #: ../fish/guestfish.pod:1044
20871 msgid ""
20872 "Note that the prepared filesystem is not mounted.  You would usually have to "
20873 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
20874 msgstr ""
20875
20876 #. type: textblock
20877 #: ../fish/guestfish.pod:1048
20878 msgid ""
20879 "If any I<-N> or I<--new> options are given, the guest is automatically "
20880 "launched."
20881 msgstr ""
20882
20883 #. type: textblock
20884 #: ../fish/guestfish.pod:1053
20885 msgid "Create a 100MB disk with an ext4-formatted partition:"
20886 msgstr ""
20887
20888 #. type: verbatim
20889 #: ../fish/guestfish.pod:1055
20890 #, no-wrap
20891 msgid ""
20892 " guestfish -N fs:ext4\n"
20893 "\n"
20894 msgstr ""
20895
20896 #. type: textblock
20897 #: ../fish/guestfish.pod:1057
20898 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
20899 msgstr ""
20900
20901 #. type: verbatim
20902 #: ../fish/guestfish.pod:1059
20903 #, no-wrap
20904 msgid ""
20905 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
20906 "\n"
20907 msgstr ""
20908
20909 #. type: textblock
20910 #: ../fish/guestfish.pod:1061
20911 msgid "Create a blank 200MB disk:"
20912 msgstr ""
20913
20914 #. type: verbatim
20915 #: ../fish/guestfish.pod:1063
20916 #, no-wrap
20917 msgid ""
20918 " guestfish -N disk:200M\n"
20919 "\n"
20920 msgstr ""
20921
20922 #. type: =head1
20923 #: ../fish/guestfish.pod:1065
20924 msgid "PROGRESS BARS"
20925 msgstr ""
20926
20927 #. type: textblock
20928 #: ../fish/guestfish.pod:1067
20929 msgid ""
20930 "Some (not all) long-running commands send progress notification messages as "
20931 "they are running.  Guestfish turns these messages into progress bars."
20932 msgstr ""
20933
20934 #. type: textblock
20935 #: ../fish/guestfish.pod:1071
20936 msgid ""
20937 "When a command that supports progress bars takes longer than two seconds to "
20938 "run, and if progress bars are enabled, then you will see one appearing below "
20939 "the command:"
20940 msgstr ""
20941
20942 #. type: verbatim
20943 #: ../fish/guestfish.pod:1075
20944 #, no-wrap
20945 msgid ""
20946 " ><fs> copy-size /large-file /another-file 2048M\n"
20947 " / 10% [#####-----------------------------------------] 00:30\n"
20948 "\n"
20949 msgstr ""
20950
20951 #. type: textblock
20952 #: ../fish/guestfish.pod:1078
20953 msgid ""
20954 "The spinner on the left hand side moves round once for every progress "
20955 "notification received from the backend.  This is a (reasonably) golden "
20956 "assurance that the command is \"doing something\" even if the progress bar "
20957 "is not moving, because the command is able to send the progress "
20958 "notifications.  When the bar reaches 100% and the command finishes, the "
20959 "spinner disappears."
20960 msgstr ""
20961
20962 #. type: textblock
20963 #: ../fish/guestfish.pod:1085
20964 msgid ""
20965 "Progress bars are enabled by default when guestfish is used interactively.  "
20966 "You can enable them even for non-interactive modes using I<--progress-bars>, "
20967 "and you can disable them completely using I<--no-progress-bars>."
20968 msgstr ""
20969
20970 #. type: =head1
20971 #: ../fish/guestfish.pod:1090
20972 msgid "GUESTFISH COMMANDS"
20973 msgstr ""
20974
20975 #. type: textblock
20976 #: ../fish/guestfish.pod:1092
20977 msgid ""
20978 "The commands in this section are guestfish convenience commands, in other "
20979 "words, they are not part of the L<guestfs(3)> API."
20980 msgstr ""
20981
20982 #. type: =head2
20983 #: ../fish/guestfish.pod:1095
20984 msgid "help"
20985 msgstr ""
20986
20987 #. type: verbatim
20988 #: ../fish/guestfish.pod:1097
20989 #, no-wrap
20990 msgid ""
20991 " help\n"
20992 " help cmd\n"
20993 "\n"
20994 msgstr ""
20995
20996 #. type: textblock
20997 #: ../fish/guestfish.pod:1100
20998 msgid "Without any parameter, this provides general help."
20999 msgstr ""
21000
21001 #. type: textblock
21002 #: ../fish/guestfish.pod:1102
21003 msgid "With a C<cmd> parameter, this displays detailed help for that command."
21004 msgstr ""
21005
21006 #. type: =head2
21007 #: ../fish/guestfish.pod:1104
21008 msgid "quit | exit"
21009 msgstr ""
21010
21011 #. type: textblock
21012 #: ../fish/guestfish.pod:1106
21013 msgid "This exits guestfish.  You can also use C<^D> key."
21014 msgstr ""
21015
21016 #. type: textblock
21017 #: ../fish/guestfish.pod:1108
21018 msgid "@FISH_COMMANDS@"
21019 msgstr ""
21020
21021 #. type: =head1
21022 #: ../fish/guestfish.pod:1110
21023 msgid "COMMANDS"
21024 msgstr ""
21025
21026 #. type: textblock
21027 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1520
21028 msgid "@ACTIONS@"
21029 msgstr ""
21030
21031 #. type: textblock
21032 #: ../fish/guestfish.pod:1116
21033 msgid ""
21034 "guestfish returns 0 if the commands completed without error, or 1 if there "
21035 "was an error."
21036 msgstr ""
21037
21038 #. type: =item
21039 #: ../fish/guestfish.pod:1123
21040 msgid "EDITOR"
21041 msgstr ""
21042
21043 #. type: textblock
21044 #: ../fish/guestfish.pod:1125
21045 msgid ""
21046 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
21047 "C<vi>."
21048 msgstr ""
21049
21050 #. type: =item
21051 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3218
21052 msgid "FEBOOTSTRAP_KERNEL"
21053 msgstr ""
21054
21055 #. type: =item
21056 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3220
21057 msgid "FEBOOTSTRAP_MODULES"
21058 msgstr ""
21059
21060 #. type: textblock
21061 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3222
21062 msgid ""
21063 "These two environment variables allow the kernel that libguestfs uses in the "
21064 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
21065 "most recent host kernel is chosen.  For more information about kernel "
21066 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
21067 "available in febootstrap E<ge> 3.8."
21068 msgstr ""
21069
21070 #. type: =item
21071 #: ../fish/guestfish.pod:1138
21072 msgid "GUESTFISH_DISPLAY_IMAGE"
21073 msgstr ""
21074
21075 #. type: textblock
21076 #: ../fish/guestfish.pod:1140
21077 msgid ""
21078 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
21079 "If not set, it uses L<display(1)>."
21080 msgstr ""
21081
21082 #. type: =item
21083 #: ../fish/guestfish.pod:1143
21084 msgid "GUESTFISH_PID"
21085 msgstr ""
21086
21087 #. type: textblock
21088 #: ../fish/guestfish.pod:1145
21089 msgid ""
21090 "Used with the I<--remote> option to specify the remote guestfish process to "
21091 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
21092 msgstr ""
21093
21094 #. type: =item
21095 #: ../fish/guestfish.pod:1149
21096 msgid "HEXEDITOR"
21097 msgstr ""
21098
21099 #. type: textblock
21100 #: ../fish/guestfish.pod:1151
21101 msgid ""
21102 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
21103 "not specified, the external L<hexedit(1)> program is used."
21104 msgstr ""
21105
21106 #. type: =item
21107 #: ../fish/guestfish.pod:1155
21108 msgid "HOME"
21109 msgstr ""
21110
21111 #. type: textblock
21112 #: ../fish/guestfish.pod:1157
21113 msgid ""
21114 "If compiled with GNU readline support, various files in the home directory "
21115 "can be used.  See L</FILES>."
21116 msgstr ""
21117
21118 #. type: =item
21119 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3228
21120 msgid "LIBGUESTFS_APPEND"
21121 msgstr ""
21122
21123 #. type: textblock
21124 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3230
21125 msgid "Pass additional options to the guest kernel."
21126 msgstr ""
21127
21128 #. type: =item
21129 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3232
21130 msgid "LIBGUESTFS_DEBUG"
21131 msgstr ""
21132
21133 #. type: textblock
21134 #: ../fish/guestfish.pod:1166
21135 msgid ""
21136 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
21137 "effect as using the B<-v> option."
21138 msgstr ""
21139
21140 #. type: =item
21141 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3237
21142 msgid "LIBGUESTFS_MEMSIZE"
21143 msgstr ""
21144
21145 #. type: textblock
21146 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3239
21147 msgid "Set the memory allocated to the qemu process, in megabytes.  For example:"
21148 msgstr ""
21149
21150 #. type: verbatim
21151 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3242
21152 #, no-wrap
21153 msgid ""
21154 " LIBGUESTFS_MEMSIZE=700\n"
21155 "\n"
21156 msgstr ""
21157
21158 #. type: =item
21159 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3244
21160 msgid "LIBGUESTFS_PATH"
21161 msgstr ""
21162
21163 #. type: textblock
21164 #: ../fish/guestfish.pod:1178
21165 msgid ""
21166 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
21167 "the discussion of paths in L<guestfs(3)>."
21168 msgstr ""
21169
21170 #. type: =item
21171 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3249
21172 msgid "LIBGUESTFS_QEMU"
21173 msgstr ""
21174
21175 #. type: textblock
21176 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3251
21177 msgid ""
21178 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
21179 "which was found at compile time by the configure script is used."
21180 msgstr ""
21181
21182 #. type: =item
21183 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3257
21184 msgid "LIBGUESTFS_TRACE"
21185 msgstr ""
21186
21187 #. type: textblock
21188 #: ../fish/guestfish.pod:1189
21189 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
21190 msgstr ""
21191
21192 #. type: =item
21193 #: ../fish/guestfish.pod:1191
21194 msgid "PAGER"
21195 msgstr ""
21196
21197 #. type: textblock
21198 #: ../fish/guestfish.pod:1193
21199 msgid ""
21200 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
21201 "C<more>."
21202 msgstr ""
21203
21204 #. type: =item
21205 #: ../fish/guestfish.pod:1196 ../sparsify/virt-sparsify.pod:260 ../src/guestfs.pod:3262
21206 msgid "TMPDIR"
21207 msgstr ""
21208
21209 #. type: textblock
21210 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3264
21211 msgid ""
21212 "Location of temporary directory, defaults to C</tmp> except for the cached "
21213 "supermin appliance which defaults to C</var/tmp>."
21214 msgstr ""
21215
21216 #. type: textblock
21217 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3267
21218 msgid ""
21219 "If libguestfs was compiled to use the supermin appliance then the real "
21220 "appliance is cached in this directory, shared between all handles belonging "
21221 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
21222 "use in case C</var/tmp> is not large enough."
21223 msgstr ""
21224
21225 #. type: =head1
21226 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297 ../rescue/virt-rescue.pod:310
21227 msgid "FILES"
21228 msgstr ""
21229
21230 #. type: =item
21231 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301 ../rescue/virt-rescue.pod:314
21232 msgid "$HOME/.libguestfs-tools.rc"
21233 msgstr ""
21234
21235 #. type: =item
21236 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303 ../rescue/virt-rescue.pod:316
21237 msgid "/etc/libguestfs-tools.conf"
21238 msgstr ""
21239
21240 #. type: textblock
21241 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305 ../rescue/virt-rescue.pod:318
21242 msgid ""
21243 "This configuration file controls the default read-only or read-write mode "
21244 "(I<--ro> or I<--rw>)."
21245 msgstr ""
21246
21247 #. type: textblock
21248 #: ../fish/guestfish.pod:1220
21249 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
21250 msgstr ""
21251
21252 #. type: =item
21253 #: ../fish/guestfish.pod:1222
21254 msgid "$HOME/.guestfish"
21255 msgstr ""
21256
21257 #. type: textblock
21258 #: ../fish/guestfish.pod:1224
21259 msgid ""
21260 "If compiled with GNU readline support, then the command history is saved in "
21261 "this file."
21262 msgstr ""
21263
21264 #. type: =item
21265 #: ../fish/guestfish.pod:1227
21266 msgid "$HOME/.inputrc"
21267 msgstr ""
21268
21269 #. type: =item
21270 #: ../fish/guestfish.pod:1229
21271 msgid "/etc/inputrc"
21272 msgstr ""
21273
21274 #. type: textblock
21275 #: ../fish/guestfish.pod:1231
21276 msgid ""
21277 "If compiled with GNU readline support, then these files can be used to "
21278 "configure readline.  For further information, please see "
21279 "L<readline(3)/INITIALIZATION FILE>."
21280 msgstr ""
21281
21282 #. type: textblock
21283 #: ../fish/guestfish.pod:1235
21284 msgid "To write rules which only apply to guestfish, use:"
21285 msgstr ""
21286
21287 #. type: verbatim
21288 #: ../fish/guestfish.pod:1237
21289 #, no-wrap
21290 msgid ""
21291 " $if guestfish\n"
21292 " ...\n"
21293 " $endif\n"
21294 "\n"
21295 msgstr ""
21296
21297 #. type: textblock
21298 #: ../fish/guestfish.pod:1241
21299 msgid ""
21300 "Variables that you can set in inputrc that change the behaviour of guestfish "
21301 "in useful ways include:"
21302 msgstr ""
21303
21304 #. type: =item
21305 #: ../fish/guestfish.pod:1246
21306 msgid "completion-ignore-case (default: on)"
21307 msgstr ""
21308
21309 #. type: textblock
21310 #: ../fish/guestfish.pod:1248
21311 msgid ""
21312 "By default, guestfish will ignore case when tab-completing paths on the "
21313 "disk.  Use:"
21314 msgstr ""
21315
21316 #. type: verbatim
21317 #: ../fish/guestfish.pod:1251
21318 #, no-wrap
21319 msgid ""
21320 " set completion-ignore-case off\n"
21321 "\n"
21322 msgstr ""
21323
21324 #. type: textblock
21325 #: ../fish/guestfish.pod:1253
21326 msgid "to make guestfish case sensitive."
21327 msgstr ""
21328
21329 #. type: =item
21330 #: ../fish/guestfish.pod:1257
21331 msgid "test1.img"
21332 msgstr ""
21333
21334 #. type: =item
21335 #: ../fish/guestfish.pod:1259
21336 msgid "test2.img (etc)"
21337 msgstr ""
21338
21339 #. type: textblock
21340 #: ../fish/guestfish.pod:1261
21341 msgid ""
21342 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
21343 "will be created in the file C<test1.img> in the current directory.  The "
21344 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
21345 "the same name will be overwritten."
21346 msgstr ""
21347
21348 #. type: textblock
21349 #: ../fish/guestfish.pod:1270
21350 msgid ""
21351 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, "
21352 "L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, "
21353 "L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, "
21354 "L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, "
21355 "L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, "
21356 "L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, "
21357 "L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<display(1)>, L<hexedit(1)>, "
21358 "L<febootstrap-supermin-helper(8)>."
21359 msgstr ""
21360
21361 #. type: textblock
21362 #: ../fish/guestfish.pod:1302 ../src/guestfs.pod:3360 ../test-tool/libguestfs-test-tool.pod:112
21363 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
21364 msgstr ""
21365
21366 #. type: textblock
21367 #: ../fish/virt-copy-in.pod:5
21368 msgid "virt-copy-in - Copy files and directories into a virtual machine disk image."
21369 msgstr ""
21370
21371 #. type: verbatim
21372 #: ../fish/virt-copy-in.pod:9
21373 #, no-wrap
21374 msgid ""
21375 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
21376 "\n"
21377 msgstr ""
21378
21379 #. type: verbatim
21380 #: ../fish/virt-copy-in.pod:11
21381 #, no-wrap
21382 msgid ""
21383 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
21384 "\n"
21385 msgstr ""
21386
21387 #. type: textblock
21388 #: ../fish/virt-copy-in.pod:15
21389 msgid ""
21390 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
21391 "causing disk corruption.  The virtual machine must be shut down before you "
21392 "use this command."
21393 msgstr ""
21394
21395 #. type: textblock
21396 #: ../fish/virt-copy-in.pod:21
21397 msgid ""
21398 "C<virt-copy-in> copies files and directories from the local disk into a "
21399 "virtual machine disk image or named libvirt domain."
21400 msgstr ""
21401
21402 #. type: textblock
21403 #: ../fish/virt-copy-in.pod:24
21404 msgid ""
21405 "You can give one of more filenames and directories on the command line.  "
21406 "Directories are copied in recursively.  The final parameter must be the "
21407 "destination directory in the disk image which must be an absolute path "
21408 "starting with a C</> character."
21409 msgstr ""
21410
21411 #. type: verbatim
21412 #: ../fish/virt-copy-in.pod:33
21413 #, no-wrap
21414 msgid ""
21415 " virt-copy-in -d MyGuest resolv.conf /etc\n"
21416 "\n"
21417 msgstr ""
21418
21419 #. type: textblock
21420 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
21421 msgid "Upload a home directory to a guest:"
21422 msgstr ""
21423
21424 #. type: verbatim
21425 #: ../fish/virt-copy-in.pod:37
21426 #, no-wrap
21427 msgid ""
21428 " virt-copy-in -d MyGuest skel /home\n"
21429 "\n"
21430 msgstr ""
21431
21432 #. type: =head1
21433 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28 ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
21434 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
21435 msgstr ""
21436
21437 #. type: textblock
21438 #: ../fish/virt-copy-in.pod:41
21439 msgid ""
21440 "This command is just a simple shell script wrapper around the "
21441 "L<guestfish(1)> C<copy-in> command.  For anything more complex than a "
21442 "trivial copy, you are probably better off using guestfish directly."
21443 msgstr ""
21444
21445 #. type: textblock
21446 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36 ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
21447 msgid ""
21448 "Since the shell script just passes options straight to guestfish, read "
21449 "L<guestfish(1)> to see the full list of options."
21450 msgstr ""
21451
21452 #. type: textblock
21453 #: ../fish/virt-copy-in.pod:52
21454 msgid ""
21455 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
21456 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21457 msgstr ""
21458
21459 #. type: textblock
21460 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55 ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
21461 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
21462 msgstr ""
21463
21464 #. type: textblock
21465 #: ../fish/virt-copy-out.pod:5
21466 msgid ""
21467 "virt-copy-out - Copy files and directories out of a virtual machine disk "
21468 "image."
21469 msgstr ""
21470
21471 #. type: verbatim
21472 #: ../fish/virt-copy-out.pod:9
21473 #, no-wrap
21474 msgid ""
21475 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
21476 "\n"
21477 msgstr ""
21478
21479 #. type: verbatim
21480 #: ../fish/virt-copy-out.pod:11
21481 #, no-wrap
21482 msgid ""
21483 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
21484 "\n"
21485 msgstr ""
21486
21487 #. type: textblock
21488 #: ../fish/virt-copy-out.pod:15
21489 msgid ""
21490 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
21491 "image or named libvirt domain."
21492 msgstr ""
21493
21494 #. type: textblock
21495 #: ../fish/virt-copy-out.pod:18
21496 msgid ""
21497 "You can give one of more filenames and directories on the command line.  "
21498 "Directories are copied out recursively."
21499 msgstr ""
21500
21501 #. type: textblock
21502 #: ../fish/virt-copy-out.pod:23
21503 msgid "Download the home directories from a virtual machine:"
21504 msgstr ""
21505
21506 #. type: verbatim
21507 #: ../fish/virt-copy-out.pod:25
21508 #, no-wrap
21509 msgid ""
21510 " mkdir homes\n"
21511 " virt-copy-out -d MyGuest /home homes\n"
21512 "\n"
21513 msgstr ""
21514
21515 #. type: textblock
21516 #: ../fish/virt-copy-out.pod:30
21517 msgid ""
21518 "This command is just a simple shell script wrapper around the "
21519 "L<guestfish(1)> C<copy-out> command.  For anything more complex than a "
21520 "trivial copy, you are probably better off using guestfish directly."
21521 msgstr ""
21522
21523 #. type: textblock
21524 #: ../fish/virt-copy-out.pod:41
21525 msgid ""
21526 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, "
21527 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21528 msgstr ""
21529
21530 #. type: textblock
21531 #: ../fish/virt-tar-in.pod:5
21532 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
21533 msgstr ""
21534
21535 #. type: verbatim
21536 #: ../fish/virt-tar-in.pod:9
21537 #, no-wrap
21538 msgid ""
21539 " virt-tar-in -a disk.img data.tar /destination\n"
21540 "\n"
21541 msgstr ""
21542
21543 #. type: verbatim
21544 #: ../fish/virt-tar-in.pod:11
21545 #, no-wrap
21546 msgid ""
21547 " virt-tar-in -d domain data.tar /destination\n"
21548 "\n"
21549 msgstr ""
21550
21551 #. type: verbatim
21552 #: ../fish/virt-tar-in.pod:13
21553 #, no-wrap
21554 msgid ""
21555 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
21556 "\n"
21557 msgstr ""
21558
21559 #. type: textblock
21560 #: ../fish/virt-tar-in.pod:17
21561 msgid ""
21562 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
21563 "causing disk corruption.  The virtual machine must be shut down before you "
21564 "use this command."
21565 msgstr ""
21566
21567 #. type: textblock
21568 #: ../fish/virt-tar-in.pod:23
21569 msgid ""
21570 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
21571 "image or named libvirt domain."
21572 msgstr ""
21573
21574 #. type: textblock
21575 #: ../fish/virt-tar-in.pod:26
21576 msgid ""
21577 "The first parameter is the tar file.  Use C<-> to read the tar file from "
21578 "standard input.  The second parameter is the absolute target directory to "
21579 "unpack into."
21580 msgstr ""
21581
21582 #. type: verbatim
21583 #: ../fish/virt-tar-in.pod:34
21584 #, no-wrap
21585 msgid ""
21586 " virt-tar-in -d MyGuest homes.tar /home\n"
21587 "\n"
21588 msgstr ""
21589
21590 #. type: textblock
21591 #: ../fish/virt-tar-in.pod:38
21592 msgid ""
21593 "This command is just a simple shell script wrapper around the "
21594 "L<guestfish(1)> C<tar-in> command.  For anything more complex than a trivial "
21595 "copy, you are probably better off using guestfish directly."
21596 msgstr ""
21597
21598 #. type: textblock
21599 #: ../fish/virt-tar-in.pod:49
21600 msgid ""
21601 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21602 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, "
21603 "L<http://libguestfs.org/>."
21604 msgstr ""
21605
21606 #. type: textblock
21607 #: ../fish/virt-tar-out.pod:5
21608 msgid "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
21609 msgstr ""
21610
21611 #. type: verbatim
21612 #: ../fish/virt-tar-out.pod:9
21613 #, no-wrap
21614 msgid ""
21615 " virt-tar-out -a disk.img /dir files.tar\n"
21616 "\n"
21617 msgstr ""
21618
21619 #. type: verbatim
21620 #: ../fish/virt-tar-out.pod:11
21621 #, no-wrap
21622 msgid ""
21623 " virt-tar-out -d domain /dir files.tar\n"
21624 "\n"
21625 msgstr ""
21626
21627 #. type: verbatim
21628 #: ../fish/virt-tar-out.pod:13
21629 #, no-wrap
21630 msgid ""
21631 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
21632 "\n"
21633 msgstr ""
21634
21635 #. type: textblock
21636 #: ../fish/virt-tar-out.pod:17
21637 msgid "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
21638 msgstr ""
21639
21640 #. type: textblock
21641 #: ../fish/virt-tar-out.pod:20
21642 msgid ""
21643 "The first parameter is the absolute path of the virtual machine directory.  "
21644 "The second parameter is the tar file to write.  Use C<-> to write to "
21645 "standard output."
21646 msgstr ""
21647
21648 #. type: textblock
21649 #: ../fish/virt-tar-out.pod:26
21650 msgid "Download the home directories from a guest:"
21651 msgstr ""
21652
21653 #. type: verbatim
21654 #: ../fish/virt-tar-out.pod:28
21655 #, no-wrap
21656 msgid ""
21657 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
21658 "\n"
21659 msgstr ""
21660
21661 #. type: textblock
21662 #: ../fish/virt-tar-out.pod:32
21663 msgid ""
21664 "This command is just a simple shell script wrapper around the "
21665 "L<guestfish(1)> C<tar-out> command.  For anything more complex than a "
21666 "trivial copy, you are probably better off using guestfish directly."
21667 msgstr ""
21668
21669 #. type: textblock
21670 #: ../fish/virt-tar-out.pod:43
21671 msgid ""
21672 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21673 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
21674 msgstr ""
21675
21676 #. type: textblock
21677 #: ../fuse/guestmount.pod:5
21678 msgid "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
21679 msgstr ""
21680
21681 #. type: verbatim
21682 #: ../fuse/guestmount.pod:9
21683 #, no-wrap
21684 msgid ""
21685 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
21686 "\n"
21687 msgstr ""
21688
21689 #. type: verbatim
21690 #: ../fuse/guestmount.pod:11
21691 #, no-wrap
21692 msgid ""
21693 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
21694 "\n"
21695 msgstr ""
21696
21697 #. type: verbatim
21698 #: ../fuse/guestmount.pod:13
21699 #, no-wrap
21700 msgid ""
21701 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
21702 "\n"
21703 msgstr ""
21704
21705 #. type: textblock
21706 #: ../fuse/guestmount.pod:17
21707 msgid ""
21708 "You must I<not> use C<guestmount> in read-write mode on live virtual "
21709 "machines.  If you do this, you risk disk corruption in the VM."
21710 msgstr ""
21711
21712 #. type: textblock
21713 #: ../fuse/guestmount.pod:22
21714 msgid ""
21715 "The guestmount program can be used to mount virtual machine filesystems and "
21716 "other disk images on the host.  It uses libguestfs for access to the guest "
21717 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
21718 "a mountable device."
21719 msgstr ""
21720
21721 #. type: textblock
21722 #: ../fuse/guestmount.pod:27
21723 msgid ""
21724 "Along with other options, you have to give at least one device (I<-a> "
21725 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
21726 "option) or use the I<-i> inspection option or the I<--live> option.  How "
21727 "this works is better explained in the L<guestfish(1)> manual page, or by "
21728 "looking at the examples below."
21729 msgstr ""
21730
21731 #. type: textblock
21732 #: ../fuse/guestmount.pod:33
21733 msgid ""
21734 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
21735 "by you, and the filesystem will not be visible to any other users unless you "
21736 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
21737 "the filesystem, use the C<fusermount -u> command."
21738 msgstr ""
21739
21740 #. type: textblock
21741 #: ../fuse/guestmount.pod:41
21742 msgid ""
21743 "For a typical Windows guest which has its main filesystem on the first "
21744 "partition:"
21745 msgstr ""
21746
21747 #. type: verbatim
21748 #: ../fuse/guestmount.pod:44
21749 #, no-wrap
21750 msgid ""
21751 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
21752 "\n"
21753 msgstr ""
21754
21755 #. type: textblock
21756 #: ../fuse/guestmount.pod:46
21757 msgid ""
21758 "For a typical Linux guest which has a /boot filesystem on the first "
21759 "partition, and the root filesystem on a logical volume:"
21760 msgstr ""
21761
21762 #. type: verbatim
21763 #: ../fuse/guestmount.pod:49
21764 #, no-wrap
21765 msgid ""
21766 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
21767 "\n"
21768 msgstr ""
21769
21770 #. type: textblock
21771 #: ../fuse/guestmount.pod:51
21772 msgid "To get libguestfs to detect guest mountpoints for you:"
21773 msgstr ""
21774
21775 #. type: verbatim
21776 #: ../fuse/guestmount.pod:53
21777 #, no-wrap
21778 msgid ""
21779 " guestmount -a guest.img -i --ro /mnt\n"
21780 "\n"
21781 msgstr ""
21782
21783 #. type: textblock
21784 #: ../fuse/guestmount.pod:55
21785 msgid "For a libvirt guest called \"Guest\" you could do:"
21786 msgstr ""
21787
21788 #. type: verbatim
21789 #: ../fuse/guestmount.pod:57
21790 #, no-wrap
21791 msgid ""
21792 " guestmount -d Guest -i --ro /mnt\n"
21793 "\n"
21794 msgstr ""
21795
21796 #. type: textblock
21797 #: ../fuse/guestmount.pod:59
21798 msgid ""
21799 "If you don't know what filesystems are contained in a guest or disk image, "
21800 "use L<virt-filesystems(1)> first:"
21801 msgstr ""
21802
21803 #. type: verbatim
21804 #: ../fuse/guestmount.pod:62
21805 #, no-wrap
21806 msgid ""
21807 " virt-filesystems MyGuest\n"
21808 "\n"
21809 msgstr ""
21810
21811 #. type: textblock
21812 #: ../fuse/guestmount.pod:64
21813 msgid ""
21814 "If you want to trace the libguestfs calls but without excessive debugging "
21815 "information, we recommend:"
21816 msgstr ""
21817
21818 #. type: verbatim
21819 #: ../fuse/guestmount.pod:67
21820 #, no-wrap
21821 msgid ""
21822 " guestmount [...] --trace /mnt\n"
21823 "\n"
21824 msgstr ""
21825
21826 #. type: textblock
21827 #: ../fuse/guestmount.pod:69
21828 msgid "If you want to debug the program, we recommend:"
21829 msgstr ""
21830
21831 #. type: verbatim
21832 #: ../fuse/guestmount.pod:71
21833 #, no-wrap
21834 msgid ""
21835 " guestmount [...] --trace --verbose /mnt\n"
21836 "\n"
21837 msgstr ""
21838
21839 #. type: =head1
21840 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:96 ../resize/virt-resize.pod:627
21841 msgid "NOTES"
21842 msgstr ""
21843
21844 #. type: =head2
21845 #: ../fuse/guestmount.pod:75
21846 msgid "Other users cannot see the filesystem by default"
21847 msgstr ""
21848
21849 #. type: textblock
21850 #: ../fuse/guestmount.pod:77
21851 msgid ""
21852 "If you mount a filesystem as one user (eg. root), then other users will not "
21853 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
21854 "option when mounting:"
21855 msgstr ""
21856
21857 #. type: verbatim
21858 #: ../fuse/guestmount.pod:81
21859 #, no-wrap
21860 msgid ""
21861 " sudo guestmount [...] -o allow_other /mnt\n"
21862 "\n"
21863 msgstr ""
21864
21865 #. type: =head2
21866 #: ../fuse/guestmount.pod:83
21867 msgid "Enabling FUSE"
21868 msgstr ""
21869
21870 #. type: textblock
21871 #: ../fuse/guestmount.pod:85
21872 msgid ""
21873 "On some distros, you may need to add yourself to a special group "
21874 "(eg. C<fuse>) before you can use any FUSE filesystem.  This is necessary on "
21875 "Debian and derivatives."
21876 msgstr ""
21877
21878 #. type: textblock
21879 #: ../fuse/guestmount.pod:89
21880 msgid ""
21881 "On other distros, no special group is required.  It is not necessary on "
21882 "Fedora or Red Hat Enterprise Linux."
21883 msgstr ""
21884
21885 #. type: textblock
21886 #: ../fuse/guestmount.pod:100
21887 msgid "Add a block device or virtual machine image."
21888 msgstr ""
21889
21890 #. type: =item
21891 #: ../fuse/guestmount.pod:123
21892 msgid "B<--dir-cache-timeout N>"
21893 msgstr ""
21894
21895 #. type: textblock
21896 #: ../fuse/guestmount.pod:125
21897 msgid ""
21898 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
21899 "seconds.  The readdir cache [actually, there are several semi-independent "
21900 "caches] is populated after a readdir(2) call with the stat and extended "
21901 "attributes of the files in the directory, in anticipation that they will be "
21902 "requested soon after."
21903 msgstr ""
21904
21905 #. type: textblock
21906 #: ../fuse/guestmount.pod:131
21907 msgid ""
21908 "There is also a different attribute cache implemented by FUSE (see the FUSE "
21909 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
21910 "requests, only cache existing ones."
21911 msgstr ""
21912
21913 #. type: textblock
21914 #: ../fuse/guestmount.pod:151
21915 msgid ""
21916 "If you have untrusted raw-format guest disk images, you should use this "
21917 "option to specify the disk format.  This avoids a possible security problem "
21918 "with malicious guests (CVE-2010-3851).  See also "
21919 "L<guestfs(3)/guestfs_add_drive_opts>."
21920 msgstr ""
21921
21922 #. type: =item
21923 #: ../fuse/guestmount.pod:156
21924 msgid "B<--fuse-help>"
21925 msgstr ""
21926
21927 #. type: textblock
21928 #: ../fuse/guestmount.pod:158
21929 msgid "Display help on special FUSE options (see I<-o> below)."
21930 msgstr ""
21931
21932 #. type: textblock
21933 #: ../fuse/guestmount.pod:162
21934 msgid "Display brief help and exit."
21935 msgstr ""
21936
21937 #. type: textblock
21938 #: ../fuse/guestmount.pod:186
21939 msgid ""
21940 "Mount the named partition or logical volume on the given mountpoint B<in the "
21941 "guest> (this has nothing to do with mountpoints in the host)."
21942 msgstr ""
21943
21944 #. type: textblock
21945 #: ../fuse/guestmount.pod:189
21946 msgid ""
21947 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
21948 "something on C</>."
21949 msgstr ""
21950
21951 #. type: textblock
21952 #: ../fuse/guestmount.pod:206
21953 msgid ""
21954 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
21955 "unmounted.  If you specify this option, then we don't attempt to sync the "
21956 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
21957 msgstr ""
21958
21959 #. type: =item
21960 #: ../fuse/guestmount.pod:211
21961 msgid "B<-o option>"
21962 msgstr ""
21963
21964 #. type: =item
21965 #: ../fuse/guestmount.pod:213
21966 msgid "B<--option option>"
21967 msgstr ""
21968
21969 #. type: textblock
21970 #: ../fuse/guestmount.pod:215
21971 msgid "Pass extra options to FUSE."
21972 msgstr ""
21973
21974 #. type: textblock
21975 #: ../fuse/guestmount.pod:217
21976 msgid ""
21977 "To get a list of all the extra options supported by FUSE, use the command "
21978 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
21979 "of them are a good idea."
21980 msgstr ""
21981
21982 #. type: verbatim
21983 #: ../fuse/guestmount.pod:221
21984 #, no-wrap
21985 msgid ""
21986 " guestmount --fuse-help\n"
21987 "\n"
21988 msgstr ""
21989
21990 #. type: textblock
21991 #: ../fuse/guestmount.pod:223
21992 msgid "Some potentially useful FUSE options:"
21993 msgstr ""
21994
21995 #. type: =item
21996 #: ../fuse/guestmount.pod:227
21997 msgid "B<-o allow_other>"
21998 msgstr ""
21999
22000 #. type: textblock
22001 #: ../fuse/guestmount.pod:229
22002 msgid "Allow other users to see the filesystem."
22003 msgstr ""
22004
22005 #. type: =item
22006 #: ../fuse/guestmount.pod:231
22007 msgid "B<-o attr_timeout=N>"
22008 msgstr ""
22009
22010 #. type: textblock
22011 #: ../fuse/guestmount.pod:233
22012 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
22013 msgstr ""
22014
22015 #. type: =item
22016 #: ../fuse/guestmount.pod:235
22017 msgid "B<-o kernel_cache>"
22018 msgstr ""
22019
22020 #. type: textblock
22021 #: ../fuse/guestmount.pod:237
22022 msgid ""
22023 "Allow the kernel to cache files (reduces the number of reads that have to go "
22024 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
22025 "afford the extra memory usage."
22026 msgstr ""
22027
22028 #. type: =item
22029 #: ../fuse/guestmount.pod:241
22030 msgid "B<-o uid=N> B<-o gid=N>"
22031 msgstr ""
22032
22033 #. type: textblock
22034 #: ../fuse/guestmount.pod:243
22035 msgid ""
22036 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
22037 "the chosen values."
22038 msgstr ""
22039
22040 #. type: textblock
22041 #: ../fuse/guestmount.pod:252
22042 msgid ""
22043 "Add devices and mount everything read-only.  Also disallow writes and make "
22044 "the disk appear read-only to FUSE."
22045 msgstr ""
22046
22047 #. type: textblock
22048 #: ../fuse/guestmount.pod:255
22049 msgid ""
22050 "This is highly recommended if you are not going to edit the guest disk.  If "
22051 "the guest is running and this option is I<not> supplied, then there is a "
22052 "strong risk of disk corruption in the guest.  We try to prevent this from "
22053 "happening, but it is not always possible."
22054 msgstr ""
22055
22056 #. type: textblock
22057 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:199
22058 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22059 msgstr ""
22060
22061 #. type: textblock
22062 #: ../fuse/guestmount.pod:264
22063 msgid "Enable SELinux support for the guest."
22064 msgstr ""
22065
22066 #. type: textblock
22067 #: ../fuse/guestmount.pod:270
22068 msgid "Enable verbose messages from underlying libguestfs."
22069 msgstr ""
22070
22071 #. type: textblock
22072 #: ../fuse/guestmount.pod:276
22073 msgid "Display the program version and exit."
22074 msgstr ""
22075
22076 #. type: textblock
22077 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308 ../rescue/virt-rescue.pod:238 ../rescue/virt-rescue.pod:321
22078 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22079 msgstr ""
22080
22081 #. type: =item
22082 #: ../fuse/guestmount.pod:289
22083 msgid "B<--trace>"
22084 msgstr ""
22085
22086 #. type: textblock
22087 #: ../fuse/guestmount.pod:291
22088 msgid "Trace libguestfs calls and entry into each FUSE function."
22089 msgstr ""
22090
22091 #. type: textblock
22092 #: ../fuse/guestmount.pod:293
22093 msgid "This also stops the daemon from forking into the background."
22094 msgstr ""
22095
22096 #. type: textblock
22097 #: ../fuse/guestmount.pod:319
22098 msgid ""
22099 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
22100 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, "
22101 "L<http://fuse.sf.net/>."
22102 msgstr ""
22103
22104 #. type: textblock
22105 #: ../fuse/guestmount.pod:334
22106 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
22107 msgstr ""
22108
22109 #. type: textblock
22110 #: ../inspector/virt-inspector.pod:5
22111 msgid ""
22112 "virt-inspector - Display operating system version and other information "
22113 "about a virtual machine"
22114 msgstr ""
22115
22116 #. type: verbatim
22117 #: ../inspector/virt-inspector.pod:9
22118 #, no-wrap
22119 msgid ""
22120 " virt-inspector [--options] -d domname\n"
22121 "\n"
22122 msgstr ""
22123
22124 #. type: verbatim
22125 #: ../inspector/virt-inspector.pod:11
22126 #, no-wrap
22127 msgid ""
22128 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
22129 "\n"
22130 msgstr ""
22131
22132 #. type: verbatim
22133 #: ../inspector/virt-inspector.pod:15
22134 #, no-wrap
22135 msgid ""
22136 " virt-inspector domname\n"
22137 "\n"
22138 msgstr ""
22139
22140 #. type: verbatim
22141 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:148
22142 #, no-wrap
22143 msgid ""
22144 " virt-inspector disk.img [disk.img ...]\n"
22145 "\n"
22146 msgstr ""
22147
22148 #. type: textblock
22149 #: ../inspector/virt-inspector.pod:21
22150 msgid ""
22151 "B<virt-inspector> examines a virtual machine or disk image and tries to "
22152 "determine the version of the operating system and other information about "
22153 "the virtual machine."
22154 msgstr ""
22155
22156 #. type: textblock
22157 #: ../inspector/virt-inspector.pod:25
22158 msgid "Virt-inspector produces XML output for feeding into other programs."
22159 msgstr ""
22160
22161 #. type: textblock
22162 #: ../inspector/virt-inspector.pod:27
22163 msgid ""
22164 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
22165 "the libvirt domain (see: C<virsh list --all>)."
22166 msgstr ""
22167
22168 #. type: textblock
22169 #: ../inspector/virt-inspector.pod:30
22170 msgid ""
22171 "You can also run virt-inspector directly on disk images from a single "
22172 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
22173 "has several block devices, in which case you should list several I<-a> "
22174 "options one after another, with the first corresponding to the guest's "
22175 "C</dev/sda>, the second to the guest's C</dev/sdb> and so on."
22176 msgstr ""
22177
22178 #. type: textblock
22179 #: ../inspector/virt-inspector.pod:37
22180 msgid ""
22181 "You can also run virt-inspector on install disks, live CDs, bootable USB "
22182 "keys and similar."
22183 msgstr ""
22184
22185 #. type: textblock
22186 #: ../inspector/virt-inspector.pod:40
22187 msgid ""
22188 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
22189 "inspect several virtual machines, you have to run virt-inspector several "
22190 "times (for example, from a shell script for-loop)."
22191 msgstr ""
22192
22193 #. type: textblock
22194 #: ../inspector/virt-inspector.pod:45
22195 msgid ""
22196 "Because virt-inspector needs direct access to guest images, it won't "
22197 "normally work over remote libvirt connections."
22198 msgstr ""
22199
22200 #. type: textblock
22201 #: ../inspector/virt-inspector.pod:48
22202 msgid ""
22203 "All of the information available from virt-inspector is also available "
22204 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
22205 "The same information can also be fetched using guestfish or via libguestfs "
22206 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
22207 "WITH OTHER PROGRAMMING LANGUAGES>)."
22208 msgstr ""
22209
22210 #. type: textblock
22211 #: ../inspector/virt-inspector.pod:81
22212 msgid ""
22213 "Libvirt is only used if you specify a C<domname> on the command line.  If "
22214 "you specify guest block devices directly (I<-a>), then libvirt is not used "
22215 "at all."
22216 msgstr ""
22217
22218 #. type: textblock
22219 #: ../inspector/virt-inspector.pod:94
22220 msgid ""
22221 "When prompting for keys and passphrases, virt-inspector normally turns "
22222 "echoing off so you cannot see what you are typing.  If you are not worried "
22223 "about Tempest attacks and there is no one else in the room you can specify "
22224 "this flag to see what you are typing."
22225 msgstr ""
22226
22227 #. type: textblock
22228 #: ../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
22229 msgid ""
22230 "Specify the format of disk images given on the command line.  If this is "
22231 "omitted then the format is autodetected from the content of the disk image."
22232 msgstr ""
22233
22234 #. type: textblock
22235 #: ../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
22236 msgid ""
22237 "If disk images are requested from libvirt, then this program asks libvirt "
22238 "for this information.  In this case, the value of the format parameter is "
22239 "ignored."
22240 msgstr ""
22241
22242 #. type: textblock
22243 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:397 ../resize/virt-resize.pod:489 ../sparsify/virt-sparsify.pod:144 ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102 ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
22244 msgid ""
22245 "If working with untrusted raw-format guest disk images, you should ensure "
22246 "the format is always specified."
22247 msgstr ""
22248
22249 #. type: =item
22250 #: ../inspector/virt-inspector.pod:135
22251 msgid "B<--xpath> query"
22252 msgstr ""
22253
22254 #. type: textblock
22255 #: ../inspector/virt-inspector.pod:137
22256 msgid ""
22257 "Perform an XPath query on the XML on stdin, and print the result on stdout.  "
22258 "In this mode virt-inspector simply runs an XPath query; all other inspection "
22259 "functions are disabled.  See L</XPATH QUERIES> below for some examples."
22260 msgstr ""
22261
22262 #. type: textblock
22263 #: ../inspector/virt-inspector.pod:146
22264 msgid "Previous versions of virt-inspector allowed you to write either:"
22265 msgstr ""
22266
22267 #. type: verbatim
22268 #: ../inspector/virt-inspector.pod:152
22269 #, no-wrap
22270 msgid ""
22271 " virt-inspector guestname\n"
22272 "\n"
22273 msgstr ""
22274
22275 #. type: =head1
22276 #: ../inspector/virt-inspector.pod:160
22277 msgid "XML FORMAT"
22278 msgstr ""
22279
22280 #. type: textblock
22281 #: ../inspector/virt-inspector.pod:162
22282 msgid ""
22283 "The virt-inspector XML is described precisely in a RELAX NG schema file "
22284 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
22285 "just an overview."
22286 msgstr ""
22287
22288 #. type: textblock
22289 #: ../inspector/virt-inspector.pod:166
22290 msgid ""
22291 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
22292 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
22293 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
22294 "which is vanishingly rare in real world VMs."
22295 msgstr ""
22296
22297 #. type: =head2
22298 #: ../inspector/virt-inspector.pod:171
22299 msgid "E<lt>operatingsystemE<gt>"
22300 msgstr ""
22301
22302 #. type: textblock
22303 #: ../inspector/virt-inspector.pod:173
22304 msgid ""
22305 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
22306 "describe the operating system, its architecture, the descriptive \"product "
22307 "name\" string, the type of OS and so on, as in this example:"
22308 msgstr ""
22309
22310 #. type: verbatim
22311 #: ../inspector/virt-inspector.pod:177
22312 #, no-wrap
22313 msgid ""
22314 " <operatingsystems>\n"
22315 "   <operatingsystem>\n"
22316 "     <root>/dev/sda2</root>\n"
22317 "     <name>windows</name>\n"
22318 "     <arch>i386</arch>\n"
22319 "     <distro>windows</distro>\n"
22320 "     <product_name>Windows 7 Enterprise</product_name>\n"
22321 "     <product_variant>Client</product_variant>\n"
22322 "     <major_version>6</major_version>\n"
22323 "     <minor_version>1</minor_version>\n"
22324 "     <windows_systemroot>/Windows</windows_systemroot>\n"
22325 "     <format>installed</format>\n"
22326 "\n"
22327 msgstr ""
22328
22329 #. type: textblock
22330 #: ../inspector/virt-inspector.pod:190
22331 msgid ""
22332 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
22333 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
22334 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
22335 "architecture.  The other fields are fairly self-explanatory, but because "
22336 "these fields are taken directly from the libguestfs inspection API you can "
22337 "find precise information from L<guestfs(3)/INSPECTION>."
22338 msgstr ""
22339
22340 #. type: textblock
22341 #: ../inspector/virt-inspector.pod:198
22342 msgid ""
22343 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
22344 "of view of libguestfs (block devices may have completely different names "
22345 "inside the VM itself)."
22346 msgstr ""
22347
22348 #. type: =head2
22349 #: ../inspector/virt-inspector.pod:202
22350 msgid "E<lt>mountpointsE<gt>"
22351 msgstr ""
22352
22353 #. type: textblock
22354 #: ../inspector/virt-inspector.pod:204
22355 msgid ""
22356 "Un*x-like guests typically have multiple filesystems which are mounted at "
22357 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
22358 "element which looks like this:"
22359 msgstr ""
22360
22361 #. type: verbatim
22362 #: ../inspector/virt-inspector.pod:208
22363 #, no-wrap
22364 msgid ""
22365 " <operatingsystems>\n"
22366 "   <operatingsystem>\n"
22367 "     ...\n"
22368 "     <mountpoints>\n"
22369 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
22370 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
22371 "     </mountpoints>\n"
22372 "\n"
22373 msgstr ""
22374
22375 #. type: textblock
22376 #: ../inspector/virt-inspector.pod:216
22377 msgid ""
22378 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
22379 "and may have completely different names inside the guest.  Only mountable "
22380 "filesystems appear in this list, not things like swap devices."
22381 msgstr ""
22382
22383 #. type: =head2
22384 #: ../inspector/virt-inspector.pod:221
22385 msgid "E<lt>filesystemsE<gt>"
22386 msgstr ""
22387
22388 #. type: textblock
22389 #: ../inspector/virt-inspector.pod:223
22390 msgid ""
22391 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
22392 "filesystems belonging to the guest, including swap and empty partitions.  "
22393 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
22394 "this OS or shared with this OS and other OSes)."
22395 msgstr ""
22396
22397 #. type: textblock
22398 #: ../inspector/virt-inspector.pod:229
22399 msgid "You might see something like this:"
22400 msgstr ""
22401
22402 #. type: verbatim
22403 #: ../inspector/virt-inspector.pod:231
22404 #, no-wrap
22405 msgid ""
22406 " <operatingsystems>\n"
22407 "   <operatingsystem>\n"
22408 "     ...\n"
22409 "     <filesystems>\n"
22410 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22411 "         <type>ext4</type>\n"
22412 "         <label>Fedora-13-x86_64</label>\n"
22413 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
22414 "       </filesystem>\n"
22415 "\n"
22416 msgstr ""
22417
22418 #. type: textblock
22419 #: ../inspector/virt-inspector.pod:241
22420 msgid ""
22421 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
22422 "the label, and the UUID."
22423 msgstr ""
22424
22425 #. type: =head2
22426 #: ../inspector/virt-inspector.pod:244
22427 msgid "E<lt>applicationsE<gt>"
22428 msgstr ""
22429
22430 #. type: textblock
22431 #: ../inspector/virt-inspector.pod:246
22432 msgid ""
22433 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
22434 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
22435 "machine."
22436 msgstr ""
22437
22438 #. type: textblock
22439 #: ../inspector/virt-inspector.pod:250
22440 msgid ""
22441 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
22442 "Typical values would be C<rpm> and C<deb>."
22443 msgstr ""
22444
22445 #. type: textblock
22446 #: ../inspector/virt-inspector.pod:253
22447 msgid ""
22448 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
22449 "Typical values include C<yum>, C<up2date> and C<apt>"
22450 msgstr ""
22451
22452 #. type: textblock
22453 #: ../inspector/virt-inspector.pod:256
22454 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
22455 msgstr ""
22456
22457 #. type: verbatim
22458 #: ../inspector/virt-inspector.pod:259
22459 #, no-wrap
22460 msgid ""
22461 " <operatingsystems>\n"
22462 "   <operatingsystem>\n"
22463 "     ...\n"
22464 "     <applications>\n"
22465 "       <application>\n"
22466 "         <name>coreutils</name>\n"
22467 "         <version>8.5</version>\n"
22468 "         <release>1</release>\n"
22469 "       </application>\n"
22470 "\n"
22471 msgstr ""
22472
22473 #. type: textblock
22474 #: ../inspector/virt-inspector.pod:269
22475 msgid ""
22476 "The version and release fields may not be available for some types guests.  "
22477 "Other fields are possible, see "
22478 "L<guestfs(3)/guestfs_inspect_list_applications>."
22479 msgstr ""
22480
22481 #. type: =head2
22482 #: ../inspector/virt-inspector.pod:273
22483 msgid "E<lt>drive_mappingsE<gt>"
22484 msgstr ""
22485
22486 #. type: textblock
22487 #: ../inspector/virt-inspector.pod:275
22488 msgid ""
22489 "For operating systems like Windows which use drive letters, virt-inspector "
22490 "is able to find out how drive letters map to filesystems."
22491 msgstr ""
22492
22493 #. type: verbatim
22494 #: ../inspector/virt-inspector.pod:279
22495 #, no-wrap
22496 msgid ""
22497 " <operatingsystems>\n"
22498 "   <operatingsystem>\n"
22499 "     ...\n"
22500 "     <drive_mappings>\n"
22501 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
22502 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
22503 "     </drive_mappings>\n"
22504 "\n"
22505 msgstr ""
22506
22507 #. type: textblock
22508 #: ../inspector/virt-inspector.pod:287
22509 msgid ""
22510 "In the example above, drive C maps to the filesystem on the second partition "
22511 "on the first disk, and drive E maps to the filesystem on the first partition "
22512 "on the second disk."
22513 msgstr ""
22514
22515 #. type: textblock
22516 #: ../inspector/virt-inspector.pod:291
22517 msgid ""
22518 "Note that this only covers permanent local filesystem mappings, not things "
22519 "like network shares.  Furthermore NTFS volume mount points may not be listed "
22520 "here."
22521 msgstr ""
22522
22523 #. type: =head2
22524 #: ../inspector/virt-inspector.pod:295
22525 msgid "E<lt>iconE<gt>"
22526 msgstr ""
22527
22528 #. type: textblock
22529 #: ../inspector/virt-inspector.pod:297
22530 msgid ""
22531 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
22532 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
22533 "very large and high quality."
22534 msgstr ""
22535
22536 #. type: verbatim
22537 #: ../inspector/virt-inspector.pod:301
22538 #, no-wrap
22539 msgid ""
22540 " <operatingsystems>\n"
22541 "   <operatingsystem>\n"
22542 "     ...\n"
22543 "     <icon>\n"
22544 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
22545 "       [... many lines of base64 data ...]\n"
22546 "     </icon>\n"
22547 "\n"
22548 msgstr ""
22549
22550 #. type: textblock
22551 #: ../inspector/virt-inspector.pod:309
22552 msgid ""
22553 "To display the icon, you have to extract it and convert the base64 data back "
22554 "to a binary file.  Use an XPath query or simply an editor to extract the "
22555 "data, then use the coreutils L<base64(1)> program to do the conversion back "
22556 "to a PNG file:"
22557 msgstr ""
22558
22559 #. type: verbatim
22560 #: ../inspector/virt-inspector.pod:314
22561 #, no-wrap
22562 msgid ""
22563 " base64 -i -d < icon.data > icon.png\n"
22564 "\n"
22565 msgstr ""
22566
22567 #. type: =head2
22568 #: ../inspector/virt-inspector.pod:316
22569 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
22570 msgstr ""
22571
22572 #. type: textblock
22573 #: ../inspector/virt-inspector.pod:318
22574 msgid ""
22575 "Virt-inspector can detect some operating system installers on install disks, "
22576 "live CDs, bootable USB keys and more."
22577 msgstr ""
22578
22579 #. type: textblock
22580 #: ../inspector/virt-inspector.pod:321
22581 msgid ""
22582 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
22583 "fields may be present to indicate a live CD, network installer, or one part "
22584 "of a multipart CD.  For example:"
22585 msgstr ""
22586
22587 #. type: verbatim
22588 #: ../inspector/virt-inspector.pod:325
22589 #, no-wrap
22590 msgid ""
22591 " <operatingsystems>\n"
22592 "   <operatingsystem>\n"
22593 "     <root>/dev/sda</root>\n"
22594 "     <name>linux</name>\n"
22595 "     <arch>i386</arch>\n"
22596 "     <distro>ubuntu</distro>\n"
22597 "     <product_name>Ubuntu 10.10 &quot;Maverick "
22598 "Meerkat&quot;</product_name>\n"
22599 "     <major_version>10</major_version>\n"
22600 "     <minor_version>10</minor_version>\n"
22601 "     <format>installer</format>\n"
22602 "     <live/>\n"
22603 "\n"
22604 msgstr ""
22605
22606 #. type: =head1
22607 #: ../inspector/virt-inspector.pod:337
22608 msgid "XPATH QUERIES"
22609 msgstr ""
22610
22611 #. type: textblock
22612 #: ../inspector/virt-inspector.pod:339
22613 msgid ""
22614 "Virt-inspector includes built in support for running XPath queries.  The "
22615 "reason for including XPath support directly in virt-inspector is simply that "
22616 "there are no good and widely available command line programs that can do "
22617 "XPath queries.  The only good one is L<xmlstarlet(1)> and that is not "
22618 "available on Red Hat Enterprise Linux."
22619 msgstr ""
22620
22621 #. type: textblock
22622 #: ../inspector/virt-inspector.pod:346
22623 msgid ""
22624 "To perform an XPath query, use the I<--xpath> option.  Note that in this "
22625 "mode, virt-inspector simply reads XML from stdin and outputs the query "
22626 "result on stdout.  All other inspection features are disabled in this mode."
22627 msgstr ""
22628
22629 #. type: verbatim
22630 #: ../inspector/virt-inspector.pod:353
22631 #, no-wrap
22632 msgid ""
22633 " $ virt-inspector -d Guest | virt-inspector --xpath '//filesystems'\n"
22634 " <filesystems>\n"
22635 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22636 "        <type>ext4</type>\n"
22637 " [...]\n"
22638 "\n"
22639 msgstr ""
22640
22641 #. type: verbatim
22642 #: ../inspector/virt-inspector.pod:359
22643 #, no-wrap
22644 msgid ""
22645 " $ virt-inspector -d Guest | \\\n"
22646 "     virt-inspector --xpath "
22647 "\"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
22648 " ext4\n"
22649 "\n"
22650 msgstr ""
22651
22652 #. type: verbatim
22653 #: ../inspector/virt-inspector.pod:363
22654 #, no-wrap
22655 msgid ""
22656 " $ virt-inspector -d Guest | \\\n"
22657 "     virt-inspector --xpath 'string(//icon)' | base64 -i -d | display -\n"
22658 " [displays the guest icon, if there is one]\n"
22659 "\n"
22660 msgstr ""
22661
22662 #. type: =head1
22663 #: ../inspector/virt-inspector.pod:374
22664 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
22665 msgstr ""
22666
22667 #. type: textblock
22668 #: ../inspector/virt-inspector.pod:376
22669 msgid ""
22670 "Early versions of libguestfs shipped with a different virt-inspector program "
22671 "written in Perl (the current version is written in C).  The XML output of "
22672 "the Perl virt-inspector was different and it could also output in other "
22673 "formats like text."
22674 msgstr ""
22675
22676 #. type: textblock
22677 #: ../inspector/virt-inspector.pod:381
22678 msgid "The old virt-inspector is no longer supported or shipped with libguestfs."
22679 msgstr ""
22680
22681 #. type: textblock
22682 #: ../inspector/virt-inspector.pod:384
22683 msgid ""
22684 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
22685 "versions of virt-inspector with different names:"
22686 msgstr ""
22687
22688 #. type: verbatim
22689 #: ../inspector/virt-inspector.pod:387
22690 #, no-wrap
22691 msgid ""
22692 " virt-inspector     Old Perl version.\n"
22693 " virt-inspector2    New C version.\n"
22694 "\n"
22695 msgstr ""
22696
22697 #. type: textblock
22698 #: ../inspector/virt-inspector.pod:397
22699 msgid ""
22700 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, "
22701 "L<base64(1)>, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
22702 msgstr ""
22703
22704 #. type: textblock
22705 #: ../inspector/virt-inspector.pod:414
22706 msgid "Matthew Booth L<mbooth@redhat.com>"
22707 msgstr ""
22708
22709 #. type: textblock
22710 #: ../java/examples/guestfs-java.pod:5
22711 msgid "guestfs-java - How to use libguestfs from Java"
22712 msgstr ""
22713
22714 #. type: verbatim
22715 #: ../java/examples/guestfs-java.pod:9
22716 #, no-wrap
22717 msgid ""
22718 " import com.redhat.et.libguestfs.*;\n"
22719 " \n"
22720 msgstr ""
22721
22722 #. type: verbatim
22723 #: ../java/examples/guestfs-java.pod:11
22724 #, no-wrap
22725 msgid ""
22726 " GuestFS g = new GuestFS ();\n"
22727 " g.add_drive_opts (\"disk.img\", null);\n"
22728 " g.launch ();\n"
22729 "\n"
22730 msgstr ""
22731
22732 #. type: textblock
22733 #: ../java/examples/guestfs-java.pod:17
22734 msgid ""
22735 "This manual page documents how to call libguestfs from the Java programming "
22736 "language.  This page just documents the differences from the C API and gives "
22737 "some examples.  If you are not familiar with using libguestfs, you also need "
22738 "to read L<guestfs(3)>."
22739 msgstr ""
22740
22741 #. type: =head2
22742 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
22743 msgid "CLOSING THE HANDLE"
22744 msgstr ""
22745
22746 #. type: textblock
22747 #: ../java/examples/guestfs-java.pod:24
22748 msgid ""
22749 "The handle is closed when it is reaped by the garbage collector.  Because "
22750 "libguestfs handles include a lot of state, it is also possible to close (and "
22751 "hence free) them explicitly by calling the C<close> method."
22752 msgstr ""
22753
22754 #. type: =head2
22755 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60 ../python/examples/guestfs-python.pod:21 ../ruby/examples/guestfs-ruby.pod:22
22756 msgid "EXCEPTIONS"
22757 msgstr ""
22758
22759 #. type: textblock
22760 #: ../java/examples/guestfs-java.pod:31
22761 msgid ""
22762 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
22763 "exception.  This has a single parameter which is the error message (a "
22764 "C<String>)."
22765 msgstr ""
22766
22767 #. type: textblock
22768 #: ../java/examples/guestfs-java.pod:35
22769 msgid "Calling any method on a closed handle raises the same exception."
22770 msgstr ""
22771
22772 #. type: textblock
22773 #: ../java/examples/guestfs-java.pod:47
22774 msgid ""
22775 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
22776 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
22777 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>, "
22778 "L<http://caml.inria.fr/>."
22779 msgstr ""
22780
22781 #. type: textblock
22782 #: ../ocaml/examples/guestfs-ocaml.pod:5
22783 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
22784 msgstr ""
22785
22786 #. type: textblock
22787 #: ../ocaml/examples/guestfs-ocaml.pod:9
22788 msgid "Module style:"
22789 msgstr ""
22790
22791 #. type: verbatim
22792 #: ../ocaml/examples/guestfs-ocaml.pod:11
22793 #, no-wrap
22794 msgid ""
22795 " let g = Guestfs.create () in\n"
22796 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22797 " Guestfs.launch g;\n"
22798 "\n"
22799 msgstr ""
22800
22801 #. type: textblock
22802 #: ../ocaml/examples/guestfs-ocaml.pod:15
22803 msgid "Object-oriented style:"
22804 msgstr ""
22805
22806 #. type: verbatim
22807 #: ../ocaml/examples/guestfs-ocaml.pod:17
22808 #, no-wrap
22809 msgid ""
22810 " let g = new Guestfs.guestfs () in\n"
22811 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22812 " g#launch ();\n"
22813 "\n"
22814 msgstr ""
22815
22816 #. type: verbatim
22817 #: ../ocaml/examples/guestfs-ocaml.pod:21
22818 #, no-wrap
22819 msgid ""
22820 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
22821 "or:\n"
22822 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
22823 "\n"
22824 msgstr ""
22825
22826 #. type: textblock
22827 #: ../ocaml/examples/guestfs-ocaml.pod:27
22828 msgid ""
22829 "This manual page documents how to call libguestfs from the OCaml programming "
22830 "language.  This page just documents the differences from the C API and gives "
22831 "some examples.  If you are not familiar with using libguestfs, you also need "
22832 "to read L<guestfs(3)>."
22833 msgstr ""
22834
22835 #. type: =head2
22836 #: ../ocaml/examples/guestfs-ocaml.pod:32
22837 msgid "PROGRAMMING STYLES"
22838 msgstr ""
22839
22840 #. type: textblock
22841 #: ../ocaml/examples/guestfs-ocaml.pod:34
22842 msgid ""
22843 "There are two different programming styles supported by the OCaml bindings.  "
22844 "You can use a module style, with each C function mapped to an OCaml "
22845 "function:"
22846 msgstr ""
22847
22848 #. type: verbatim
22849 #: ../ocaml/examples/guestfs-ocaml.pod:38
22850 #, no-wrap
22851 msgid ""
22852 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
22853 "\n"
22854 msgstr ""
22855
22856 #. type: textblock
22857 #: ../ocaml/examples/guestfs-ocaml.pod:40
22858 msgid "becomes:"
22859 msgstr ""
22860
22861 #. type: verbatim
22862 #: ../ocaml/examples/guestfs-ocaml.pod:42
22863 #, no-wrap
22864 msgid ""
22865 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
22866 "\n"
22867 msgstr ""
22868
22869 #. type: textblock
22870 #: ../ocaml/examples/guestfs-ocaml.pod:44
22871 msgid ""
22872 "Alternately you can use an object-oriented style, calling methods on the "
22873 "class C<Guestfs.guestfs>:"
22874 msgstr ""
22875
22876 #. type: verbatim
22877 #: ../ocaml/examples/guestfs-ocaml.pod:47
22878 #, no-wrap
22879 msgid ""
22880 " method set_verbose : bool -> unit\n"
22881 "\n"
22882 msgstr ""
22883
22884 #. type: textblock
22885 #: ../ocaml/examples/guestfs-ocaml.pod:49
22886 msgid ""
22887 "The object-oriented style is usually briefer, and the minor performance "
22888 "penalty isn't noticable in the general overhead of performing libguestfs "
22889 "functions."
22890 msgstr ""
22891
22892 #. type: textblock
22893 #: ../ocaml/examples/guestfs-ocaml.pod:55
22894 msgid ""
22895 "The handle is closed when it is reaped by the garbage collector.  Because "
22896 "libguestfs handles include a lot of state, it is also possible to close (and "
22897 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
22898 "method."
22899 msgstr ""
22900
22901 #. type: textblock
22902 #: ../ocaml/examples/guestfs-ocaml.pod:62
22903 msgid ""
22904 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
22905 "exception.  This has a single parameter which is the error message (a "
22906 "string)."
22907 msgstr ""
22908
22909 #. type: textblock
22910 #: ../ocaml/examples/guestfs-ocaml.pod:66
22911 msgid ""
22912 "Calling any function/method on a closed handle raises "
22913 "C<Guestfs.Handle_closed>.  The single parameter is the name of the function "
22914 "that you called."
22915 msgstr ""
22916
22917 #. type: textblock
22918 #: ../ocaml/examples/guestfs-ocaml.pod:80
22919 msgid ""
22920 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
22921 "L<guestfs-java(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
22922 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>, "
22923 "L<http://caml.inria.fr/>."
22924 msgstr ""
22925
22926 #. type: textblock
22927 #: ../perl/examples/guestfs-perl.pod:5
22928 msgid "guestfs-perl - How to use libguestfs from Perl"
22929 msgstr ""
22930
22931 #. type: verbatim
22932 #: ../perl/examples/guestfs-perl.pod:9
22933 #, no-wrap
22934 msgid ""
22935 " use Sys::Guestfs;\n"
22936 " \n"
22937 msgstr ""
22938
22939 #. type: verbatim
22940 #: ../perl/examples/guestfs-perl.pod:11
22941 #, no-wrap
22942 msgid ""
22943 " my $h = Sys::Guestfs->new ();\n"
22944 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
22945 " $h->launch ();\n"
22946 " $h->mount_options ('', '/dev/sda1', '/');\n"
22947 " $h->touch ('/hello');\n"
22948 " $h->sync ();\n"
22949 "\n"
22950 msgstr ""
22951
22952 #. type: textblock
22953 #: ../perl/examples/guestfs-perl.pod:20
22954 msgid ""
22955 "This manual page documents how to call libguestfs from the Perl programming "
22956 "language.  This page just documents the differences from the C API and gives "
22957 "some examples.  If you are not familiar with using libguestfs, you also need "
22958 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
22959 msgstr ""
22960
22961 #. type: =head2
22962 #: ../perl/examples/guestfs-perl.pod:26
22963 msgid "ERRORS"
22964 msgstr ""
22965
22966 #. type: textblock
22967 #: ../perl/examples/guestfs-perl.pod:28
22968 msgid ""
22969 "Errors from libguestfs functions turn into calls to C<croak> (see "
22970 "L<Carp(3)>)."
22971 msgstr ""
22972
22973 #. type: textblock
22974 #: ../perl/examples/guestfs-perl.pod:41
22975 msgid ""
22976 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, "
22977 "L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, "
22978 "L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, "
22979 "L<http://libguestfs.org/>."
22980 msgstr ""
22981
22982 #. type: textblock
22983 #: ../python/examples/guestfs-python.pod:5
22984 msgid "guestfs-python - How to use libguestfs from Python"
22985 msgstr ""
22986
22987 #. type: verbatim
22988 #: ../python/examples/guestfs-python.pod:9
22989 #, no-wrap
22990 msgid ""
22991 " import guestfs\n"
22992 " g = guestfs.GuestFS ()\n"
22993 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
22994 " g.launch\n"
22995 "\n"
22996 msgstr ""
22997
22998 #. type: textblock
22999 #: ../python/examples/guestfs-python.pod:16
23000 msgid ""
23001 "This manual page documents how to call libguestfs from the Python "
23002 "programming language.  This page just documents the differences from the C "
23003 "API and gives some examples.  If you are not familiar with using libguestfs, "
23004 "you also need to read L<guestfs(3)>."
23005 msgstr ""
23006
23007 #. type: textblock
23008 #: ../python/examples/guestfs-python.pod:23
23009 msgid ""
23010 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
23011 "single string argument which is the error message."
23012 msgstr ""
23013
23014 #. type: =head2
23015 #: ../python/examples/guestfs-python.pod:26
23016 msgid "MORE DOCUMENTATION"
23017 msgstr ""
23018
23019 #. type: textblock
23020 #: ../python/examples/guestfs-python.pod:28
23021 msgid "Type:"
23022 msgstr ""
23023
23024 #. type: verbatim
23025 #: ../python/examples/guestfs-python.pod:30
23026 #, no-wrap
23027 msgid ""
23028 " $ python\n"
23029 " >>> import guestfs\n"
23030 " >>> help (guestfs)\n"
23031 "\n"
23032 msgstr ""
23033
23034 #. type: textblock
23035 #: ../python/examples/guestfs-python.pod:44
23036 msgid ""
23037 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
23038 "L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
23039 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
23040 msgstr ""
23041
23042 #. type: textblock
23043 #: ../rescue/virt-rescue.pod:5
23044 msgid "virt-rescue - Run a rescue shell on a virtual machine"
23045 msgstr ""
23046
23047 #. type: verbatim
23048 #: ../rescue/virt-rescue.pod:9
23049 #, no-wrap
23050 msgid ""
23051 " virt-rescue [--options] -d domname\n"
23052 "\n"
23053 msgstr ""
23054
23055 #. type: verbatim
23056 #: ../rescue/virt-rescue.pod:11
23057 #, no-wrap
23058 msgid ""
23059 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
23060 "\n"
23061 msgstr ""
23062
23063 #. type: verbatim
23064 #: ../rescue/virt-rescue.pod:13
23065 #, no-wrap
23066 msgid ""
23067 " virt-rescue --suggest (-d domname | -a disk.img ...)\n"
23068 "\n"
23069 msgstr ""
23070
23071 #. type: verbatim
23072 #: ../rescue/virt-rescue.pod:17
23073 #, no-wrap
23074 msgid ""
23075 " virt-rescue [--options] domname\n"
23076 "\n"
23077 msgstr ""
23078
23079 #. type: verbatim
23080 #: ../rescue/virt-rescue.pod:19
23081 #, no-wrap
23082 msgid ""
23083 " virt-rescue [--options] disk.img [disk.img ...]\n"
23084 "\n"
23085 msgstr ""
23086
23087 #. type: textblock
23088 #: ../rescue/virt-rescue.pod:23
23089 msgid ""
23090 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
23091 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
23092 "you from doing this, but doesn't catch all cases."
23093 msgstr ""
23094
23095 #. type: textblock
23096 #: ../rescue/virt-rescue.pod:27
23097 msgid ""
23098 "However if you use the I<--ro> (read only) option, then you can attach a "
23099 "shell to a live virtual machine.  The results might be strange or "
23100 "inconsistent at times but you won't get disk corruption."
23101 msgstr ""
23102
23103 #. type: textblock
23104 #: ../rescue/virt-rescue.pod:33
23105 msgid ""
23106 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
23107 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
23108 "recovery tools which you can use to examine or rescue a virtual machine or "
23109 "disk image."
23110 msgstr ""
23111
23112 #. type: textblock
23113 #: ../rescue/virt-rescue.pod:38
23114 msgid ""
23115 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
23116 "on disk image(s):"
23117 msgstr ""
23118
23119 #. type: verbatim
23120 #: ../rescue/virt-rescue.pod:41
23121 #, no-wrap
23122 msgid ""
23123 " virt-rescue -d GuestName\n"
23124 "\n"
23125 msgstr ""
23126
23127 #. type: verbatim
23128 #: ../rescue/virt-rescue.pod:43
23129 #, no-wrap
23130 msgid ""
23131 " virt-rescue --ro -a /path/to/disk.img\n"
23132 "\n"
23133 msgstr ""
23134
23135 #. type: verbatim
23136 #: ../rescue/virt-rescue.pod:45
23137 #, no-wrap
23138 msgid ""
23139 " virt-rescue -a /dev/sdc\n"
23140 "\n"
23141 msgstr ""
23142
23143 #. type: textblock
23144 #: ../rescue/virt-rescue.pod:47
23145 msgid "For live VMs you I<must> use the --ro option."
23146 msgstr ""
23147
23148 #. type: textblock
23149 #: ../rescue/virt-rescue.pod:49
23150 msgid ""
23151 "When you run virt-rescue on a virtual machine or disk image, you are placed "
23152 "in an interactive bash shell where you can use many ordinary Linux "
23153 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
23154 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
23155 "is an empty directory called C</sysroot> where you can mount filesystems."
23156 msgstr ""
23157
23158 #. type: textblock
23159 #: ../rescue/virt-rescue.pod:56
23160 msgid ""
23161 "You can get virt-rescue to suggest mount commands for you by using the "
23162 "I<--suggest> option (in another terminal):"
23163 msgstr ""
23164
23165 #. type: verbatim
23166 #: ../rescue/virt-rescue.pod:59
23167 #, no-wrap
23168 msgid ""
23169 " $ virt-rescue --suggest -d Fedora15\n"
23170 " Inspecting the virtual machine or disk image ...\n"
23171 " \n"
23172 msgstr ""
23173
23174 #. type: verbatim
23175 #: ../rescue/virt-rescue.pod:62
23176 #, no-wrap
23177 msgid ""
23178 " This disk contains one or more operating systems.  You can use these\n"
23179 " mount commands in virt-rescue (at the ><rescue> prompt) to mount the\n"
23180 " filesystems.\n"
23181 " \n"
23182 msgstr ""
23183
23184 #. type: verbatim
23185 #: ../rescue/virt-rescue.pod:66
23186 #, no-wrap
23187 msgid ""
23188 " # /dev/vg_f15x32/lv_root is the root of a linux operating system\n"
23189 " # type: linux, distro: fedora, version: 15.0\n"
23190 " # Fedora release 15 (Lovelock)\n"
23191 " \n"
23192 msgstr ""
23193
23194 #. type: verbatim
23195 #: ../rescue/virt-rescue.pod:70
23196 #, no-wrap
23197 msgid ""
23198 " mount /dev/vg_f15x32/lv_root /sysroot/\n"
23199 " mount /dev/vda1 /sysroot/boot\n"
23200 " mount --bind /dev /sysroot/dev\n"
23201 " mount --bind /dev/pts /sysroot/dev/pts\n"
23202 " mount --bind /proc /sysroot/proc\n"
23203 " mount --bind /sys /sysroot/sys\n"
23204 "\n"
23205 msgstr ""
23206
23207 #. type: textblock
23208 #: ../rescue/virt-rescue.pod:77
23209 msgid ""
23210 "Another way is to list the logical volumes (with L<lvs(8)>) and partitions "
23211 "(with L<parted(8)>) and mount them by hand:"
23212 msgstr ""
23213
23214 #. type: verbatim
23215 #: ../rescue/virt-rescue.pod:80
23216 #, no-wrap
23217 msgid ""
23218 " ><rescue> lvs\n"
23219 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
23220 " lv_root vg_f15x32 -wi-a-   8.83G\n"
23221 " lv_swap vg_f15x32 -wi-a- 992.00M\n"
23222 " ><rescue> mount /dev/vg_f15x32/lv_root /sysroot\n"
23223 " ><rescue> mount /dev/vda1 /sysroot/boot\n"
23224 " ><rescue> ls /sysroot\n"
23225 "\n"
23226 msgstr ""
23227
23228 #. type: textblock
23229 #: ../rescue/virt-rescue.pod:88
23230 msgid "Another command to list available filesystems is L<virt-filesystems(1)>."
23231 msgstr ""
23232
23233 #. type: textblock
23234 #: ../rescue/virt-rescue.pod:91
23235 msgid ""
23236 "To run commands in a Linux guest (for example, grub), you should chroot into "
23237 "the /sysroot directory first:"
23238 msgstr ""
23239
23240 #. type: verbatim
23241 #: ../rescue/virt-rescue.pod:94
23242 #, no-wrap
23243 msgid ""
23244 " ><rescue> chroot /sysroot\n"
23245 "\n"
23246 msgstr ""
23247
23248 #. type: textblock
23249 #: ../rescue/virt-rescue.pod:98
23250 msgid ""
23251 "Virt-rescue can be used on I<any> disk image file or device, not just a "
23252 "virtual machine.  For example you can use it on a blank file if you want to "
23253 "partition that file (although we would recommend using L<guestfish(1)> "
23254 "instead as it is more suitable for this purpose).  You can even use "
23255 "virt-rescue on things like SD cards."
23256 msgstr ""
23257
23258 #. type: textblock
23259 #: ../rescue/virt-rescue.pod:104
23260 msgid ""
23261 "Virt-rescue does not require root.  You only need to run it as root if you "
23262 "need root to open the disk image."
23263 msgstr ""
23264
23265 #. type: textblock
23266 #: ../rescue/virt-rescue.pod:107
23267 msgid ""
23268 "This tool is just designed for quick interactive hacking on a virtual "
23269 "machine.  For more structured access to a virtual machine disk image, you "
23270 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
23271 "make scripted changes to guests, use L<guestfish(1)>."
23272 msgstr ""
23273
23274 #. type: =item
23275 #: ../rescue/virt-rescue.pod:131
23276 msgid "B<--append kernelopts>"
23277 msgstr ""
23278
23279 #. type: textblock
23280 #: ../rescue/virt-rescue.pod:133
23281 msgid "Pass additional options to the rescue kernel."
23282 msgstr ""
23283
23284 #. type: verbatim
23285 #: ../rescue/virt-rescue.pod:163
23286 #, no-wrap
23287 msgid ""
23288 " virt-rescue --format=raw -a disk.img\n"
23289 "\n"
23290 msgstr ""
23291
23292 #. type: verbatim
23293 #: ../rescue/virt-rescue.pod:167
23294 #, no-wrap
23295 msgid ""
23296 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
23297 "\n"
23298 msgstr ""
23299
23300 #. type: =item
23301 #: ../rescue/virt-rescue.pod:176
23302 msgid "B<-m MB>"
23303 msgstr ""
23304
23305 #. type: =item
23306 #: ../rescue/virt-rescue.pod:178
23307 msgid "B<--memsize MB>"
23308 msgstr ""
23309
23310 #. type: textblock
23311 #: ../rescue/virt-rescue.pod:180
23312 msgid ""
23313 "Change the amount of memory allocated to the rescue system.  The default is "
23314 "set by libguestfs and is small but adequate for running system tools.  The "
23315 "occasional program might need more memory.  The parameter is specified in "
23316 "megabytes."
23317 msgstr ""
23318
23319 #. type: =item
23320 #: ../rescue/virt-rescue.pod:185
23321 msgid "B<--network>"
23322 msgstr ""
23323
23324 #. type: textblock
23325 #: ../rescue/virt-rescue.pod:187
23326 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
23327 msgstr ""
23328
23329 #. type: textblock
23330 #: ../rescue/virt-rescue.pod:193
23331 msgid "Open the image read-only."
23332 msgstr ""
23333
23334 #. type: textblock
23335 #: ../rescue/virt-rescue.pod:203
23336 msgid ""
23337 "Enable SELinux in the rescue appliance.  You should read "
23338 "L<guestfs(3)/SELINUX> before using this option."
23339 msgstr ""
23340
23341 #. type: =item
23342 #: ../rescue/virt-rescue.pod:206
23343 msgid "B<--smp> N"
23344 msgstr ""
23345
23346 #. type: textblock
23347 #: ../rescue/virt-rescue.pod:208
23348 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
23349 msgstr ""
23350
23351 #. type: =item
23352 #: ../rescue/virt-rescue.pod:210
23353 msgid "B<--suggest>"
23354 msgstr ""
23355
23356 #. type: textblock
23357 #: ../rescue/virt-rescue.pod:212
23358 msgid ""
23359 "Inspect the disk image and suggest what mount commands should be used to "
23360 "mount the disks.  You should use the I<--suggest> option in a second "
23361 "terminal, then paste the commands into another virt-rescue."
23362 msgstr ""
23363
23364 #. type: textblock
23365 #: ../rescue/virt-rescue.pod:216
23366 msgid ""
23367 "This option implies I<--ro> and is safe to use even if the guest is up or if "
23368 "another virt-rescue is running."
23369 msgstr ""
23370
23371 #. type: textblock
23372 #: ../rescue/virt-rescue.pod:235
23373 msgid ""
23374 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
23375 "are done read-write."
23376 msgstr ""
23377
23378 #. type: textblock
23379 #: ../rescue/virt-rescue.pod:248
23380 msgid "Previous versions of virt-rescue allowed you to write either:"
23381 msgstr ""
23382
23383 #. type: verbatim
23384 #: ../rescue/virt-rescue.pod:250
23385 #, no-wrap
23386 msgid ""
23387 " virt-rescue disk.img [disk.img ...]\n"
23388 "\n"
23389 msgstr ""
23390
23391 #. type: verbatim
23392 #: ../rescue/virt-rescue.pod:254
23393 #, no-wrap
23394 msgid ""
23395 " virt-rescue guestname\n"
23396 "\n"
23397 msgstr ""
23398
23399 #. type: =head1
23400 #: ../rescue/virt-rescue.pod:262
23401 msgid "NETWORK"
23402 msgstr ""
23403
23404 #. type: textblock
23405 #: ../rescue/virt-rescue.pod:264
23406 msgid ""
23407 "Adding the I<--network> option enables QEMU user networking in the rescue "
23408 "appliance.  There are some differences between user networking and ordinary "
23409 "networking:"
23410 msgstr ""
23411
23412 #. type: =item
23413 #: ../rescue/virt-rescue.pod:270
23414 msgid "ping does not work"
23415 msgstr ""
23416
23417 #. type: textblock
23418 #: ../rescue/virt-rescue.pod:272
23419 msgid ""
23420 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
23421 "send the ping packets, and because virt-rescue must be able to run as "
23422 "non-root, QEMU user networking is not able to emulate the L<ping(8)> "
23423 "command.  The ping command will appear to resolve addresses but will not be "
23424 "able to send or receive any packets.  This does not mean that the network is "
23425 "not working."
23426 msgstr ""
23427
23428 #. type: =item
23429 #: ../rescue/virt-rescue.pod:279
23430 msgid "cannot receive connections"
23431 msgstr ""
23432
23433 #. type: textblock
23434 #: ../rescue/virt-rescue.pod:281
23435 msgid "QEMU user networking cannot receive incoming connections."
23436 msgstr ""
23437
23438 #. type: =item
23439 #: ../rescue/virt-rescue.pod:283
23440 msgid "making TCP connections"
23441 msgstr ""
23442
23443 #. type: textblock
23444 #: ../rescue/virt-rescue.pod:285
23445 msgid ""
23446 "The virt-rescue appliance needs to be small and so does not include many "
23447 "network tools.  In particular there is no L<telnet(1)> command.  You can "
23448 "make TCP connections from the shell using the magical "
23449 "C</dev/tcp/E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
23450 msgstr ""
23451
23452 #. type: verbatim
23453 #: ../rescue/virt-rescue.pod:290
23454 #, no-wrap
23455 msgid ""
23456 " exec 3<>/dev/tcp/redhat.com/80\n"
23457 " echo \"GET /\" >&3\n"
23458 " cat <&3\n"
23459 "\n"
23460 msgstr ""
23461
23462 #. type: textblock
23463 #: ../rescue/virt-rescue.pod:294
23464 msgid "See L<bash(1)> for more details."
23465 msgstr ""
23466
23467 #. type: textblock
23468 #: ../rescue/virt-rescue.pod:300
23469 msgid ""
23470 "Several environment variables affect virt-rescue.  See "
23471 "L<guestfs(3)/ENVIRONMENT VARIABLES> for the complete list."
23472 msgstr ""
23473
23474 #. type: textblock
23475 #: ../rescue/virt-rescue.pod:327
23476 msgid ""
23477 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
23478 "L<virt-filesystems(1)>, L<http://libguestfs.org/>."
23479 msgstr ""
23480
23481 #. type: textblock
23482 #: ../resize/virt-resize.pod:5
23483 msgid "virt-resize - Resize a virtual machine disk"
23484 msgstr ""
23485
23486 #. type: verbatim
23487 #: ../resize/virt-resize.pod:9
23488 #, no-wrap
23489 msgid ""
23490 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
23491 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
23492 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
23493 "\n"
23494 msgstr ""
23495
23496 #. type: textblock
23497 #: ../resize/virt-resize.pod:15
23498 msgid ""
23499 "Virt-resize is a tool which can resize a virtual machine disk, making it "
23500 "larger or smaller overall, and resizing or deleting any partitions contained "
23501 "within."
23502 msgstr ""
23503
23504 #. type: textblock
23505 #: ../resize/virt-resize.pod:19
23506 msgid ""
23507 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
23508 "not> be used on live virtual machines - for consistent results, shut the "
23509 "virtual machine down before resizing it."
23510 msgstr ""
23511
23512 #. type: textblock
23513 #: ../resize/virt-resize.pod:23
23514 msgid ""
23515 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
23516 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
23517 msgstr ""
23518
23519 #. type: =item
23520 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:603 ../sparsify/virt-sparsify.pod:227 ../src/guestfs.pod:484 ../src/guestfs.pod:1302 ../src/guestfs.pod:1441 ../src/guestfs.pod:2690
23521 msgid "1."
23522 msgstr ""
23523
23524 #. type: textblock
23525 #: ../resize/virt-resize.pod:33
23526 msgid ""
23527 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
23528 "fill the extra 5GB of space."
23529 msgstr ""
23530
23531 #. type: verbatim
23532 #: ../resize/virt-resize.pod:36
23533 #, no-wrap
23534 msgid ""
23535 " virt-filesystems --long -h --all -a olddisk\n"
23536 " \n"
23537 msgstr ""
23538
23539 #. type: verbatim
23540 #: ../resize/virt-resize.pod:38
23541 #, no-wrap
23542 msgid ""
23543 " truncate -r olddisk newdisk\n"
23544 " truncate -s +5G newdisk\n"
23545 " \n"
23546 msgstr ""
23547
23548 #. type: verbatim
23549 #: ../resize/virt-resize.pod:41
23550 #, no-wrap
23551 msgid ""
23552 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
23553 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
23554 "\n"
23555 msgstr ""
23556
23557 #. type: =item
23558 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:610 ../sparsify/virt-sparsify.pod:234 ../src/guestfs.pod:490 ../src/guestfs.pod:1306 ../src/guestfs.pod:1445 ../src/guestfs.pod:2715
23559 msgid "2."
23560 msgstr ""
23561
23562 #. type: textblock
23563 #: ../resize/virt-resize.pod:46
23564 msgid ""
23565 "As above, but make the /boot partition 200MB bigger, while giving the "
23566 "remaining space to /dev/sda2:"
23567 msgstr ""
23568
23569 #. type: verbatim
23570 #: ../resize/virt-resize.pod:49
23571 #, no-wrap
23572 msgid ""
23573 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23574 "   olddisk newdisk\n"
23575 "\n"
23576 msgstr ""
23577
23578 #. type: =item
23579 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:616 ../sparsify/virt-sparsify.pod:240 ../src/guestfs.pod:501 ../src/guestfs.pod:1451
23580 msgid "3."
23581 msgstr ""
23582
23583 #. type: textblock
23584 #: ../resize/virt-resize.pod:54
23585 msgid ""
23586 "As in the first example, but expand a logical volume as the final step.  "
23587 "This is what you would typically use for Linux guests that use LVM:"
23588 msgstr ""
23589
23590 #. type: verbatim
23591 #: ../resize/virt-resize.pod:58
23592 #, no-wrap
23593 msgid ""
23594 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
23595 "   olddisk newdisk\n"
23596 "\n"
23597 msgstr ""
23598
23599 #. type: =item
23600 #: ../resize/virt-resize.pod:61
23601 msgid "4."
23602 msgstr ""
23603
23604 #. type: textblock
23605 #: ../resize/virt-resize.pod:63
23606 msgid ""
23607 "As in the first example, but the output format will be qcow2 instead of a "
23608 "raw disk:"
23609 msgstr ""
23610
23611 #. type: verbatim
23612 #: ../resize/virt-resize.pod:66
23613 #, no-wrap
23614 msgid ""
23615 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
23616 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
23617 "\n"
23618 msgstr ""
23619
23620 #. type: =head1
23621 #: ../resize/virt-resize.pod:71
23622 msgid "DETAILED USAGE"
23623 msgstr ""
23624
23625 #. type: =head2
23626 #: ../resize/virt-resize.pod:73
23627 msgid "EXPANDING A VIRTUAL MACHINE DISK"
23628 msgstr ""
23629
23630 #. type: =item
23631 #: ../resize/virt-resize.pod:77
23632 msgid "1. Shut down the virtual machine"
23633 msgstr ""
23634
23635 #. type: =item
23636 #: ../resize/virt-resize.pod:79
23637 msgid "2. Locate input disk image"
23638 msgstr ""
23639
23640 #. type: textblock
23641 #: ../resize/virt-resize.pod:81
23642 msgid ""
23643 "Locate the input disk image (ie. the file or device on the host containing "
23644 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
23645 "dumpxml> like this to find the disk image name:"
23646 msgstr ""
23647
23648 #. type: verbatim
23649 #: ../resize/virt-resize.pod:85
23650 #, no-wrap
23651 msgid ""
23652 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
23653 " Found 1 nodes:\n"
23654 " -- NODE --\n"
23655 " <source dev=\"/dev/vg/lv_guest\" />\n"
23656 "\n"
23657 msgstr ""
23658
23659 #. type: =item
23660 #: ../resize/virt-resize.pod:90
23661 msgid "3. Look at current sizing"
23662 msgstr ""
23663
23664 #. type: textblock
23665 #: ../resize/virt-resize.pod:92
23666 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
23667 msgstr ""
23668
23669 #. type: verbatim
23670 #: ../resize/virt-resize.pod:95
23671 #, no-wrap
23672 msgid ""
23673 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
23674 " Name       Type       Size  Parent\n"
23675 " /dev/sda1  partition  101M  /dev/sda\n"
23676 " /dev/sda2  partition  7.9G  /dev/sda\n"
23677 " /dev/sda   device     8.0G  -\n"
23678 "\n"
23679 msgstr ""
23680
23681 #. type: textblock
23682 #: ../resize/virt-resize.pod:101
23683 msgid ""
23684 "(This example is a virtual machine with an 8 GB disk which we would like to "
23685 "expand up to 10 GB)."
23686 msgstr ""
23687
23688 #. type: =item
23689 #: ../resize/virt-resize.pod:104
23690 msgid "4. Create output disk"
23691 msgstr ""
23692
23693 #. type: textblock
23694 #: ../resize/virt-resize.pod:106
23695 msgid ""
23696 "Virt-resize cannot do in-place disk modifications.  You have to have space "
23697 "to store the resized output disk."
23698 msgstr ""
23699
23700 #. type: textblock
23701 #: ../resize/virt-resize.pod:109
23702 msgid "To store the resized disk image in a file, create a file of a suitable size:"
23703 msgstr ""
23704
23705 #. type: verbatim
23706 #: ../resize/virt-resize.pod:112
23707 #, no-wrap
23708 msgid ""
23709 " # rm -f outdisk\n"
23710 " # truncate -s 10G outdisk\n"
23711 "\n"
23712 msgstr ""
23713
23714 #. type: textblock
23715 #: ../resize/virt-resize.pod:115
23716 msgid "Or use L<lvcreate(1)> to create a logical volume:"
23717 msgstr ""
23718
23719 #. type: verbatim
23720 #: ../resize/virt-resize.pod:117
23721 #, no-wrap
23722 msgid ""
23723 " # lvcreate -L 10G -n lv_name vg_name\n"
23724 "\n"
23725 msgstr ""
23726
23727 #. type: textblock
23728 #: ../resize/virt-resize.pod:119
23729 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
23730 msgstr ""
23731
23732 #. type: verbatim
23733 #: ../resize/virt-resize.pod:121
23734 #, no-wrap
23735 msgid ""
23736 " # virsh pool-list\n"
23737 " # virsh vol-create-as poolname newvol 10G\n"
23738 "\n"
23739 msgstr ""
23740
23741 #. type: =item
23742 #: ../resize/virt-resize.pod:124
23743 msgid "5. Resize"
23744 msgstr ""
23745
23746 #. type: textblock
23747 #: ../resize/virt-resize.pod:126
23748 msgid ""
23749 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
23750 "file) and the output disk.  The output disk is the one created in the "
23751 "previous step."
23752 msgstr ""
23753
23754 #. type: verbatim
23755 #: ../resize/virt-resize.pod:130
23756 #, no-wrap
23757 msgid ""
23758 " # virt-resize indisk outdisk\n"
23759 "\n"
23760 msgstr ""
23761
23762 #. type: textblock
23763 #: ../resize/virt-resize.pod:132
23764 msgid ""
23765 "This command just copies disk image C<indisk> to disk image C<outdisk> "
23766 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
23767 "larger, then an extra, empty partition is created at the end of the disk "
23768 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
23769 "error."
23770 msgstr ""
23771
23772 #. type: textblock
23773 #: ../resize/virt-resize.pod:138
23774 msgid ""
23775 "More realistically you'd want to expand existing partitions in the disk "
23776 "image by passing extra options (for the full list see the L</OPTIONS> "
23777 "section below)."
23778 msgstr ""
23779
23780 #. type: textblock
23781 #: ../resize/virt-resize.pod:142
23782 msgid ""
23783 "L</--expand> is the most useful option.  It expands the named partition "
23784 "within the disk to fill any extra space:"
23785 msgstr ""
23786
23787 #. type: verbatim
23788 #: ../resize/virt-resize.pod:145
23789 #, no-wrap
23790 msgid ""
23791 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
23792 "\n"
23793 msgstr ""
23794
23795 #. type: textblock
23796 #: ../resize/virt-resize.pod:147
23797 msgid ""
23798 "(In this case, an extra partition is I<not> created at the end of the disk, "
23799 "because there will be no unused space)."
23800 msgstr ""
23801
23802 #. type: textblock
23803 #: ../resize/virt-resize.pod:150
23804 msgid ""
23805 "L</--resize> is the other commonly used option.  The following would "
23806 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
23807 "rest of the available space:"
23808 msgstr ""
23809
23810 #. type: verbatim
23811 #: ../resize/virt-resize.pod:154
23812 #, no-wrap
23813 msgid ""
23814 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23815 "     indisk outdisk\n"
23816 "\n"
23817 msgstr ""
23818
23819 #. type: textblock
23820 #: ../resize/virt-resize.pod:157
23821 msgid ""
23822 "If the expanded partition in the image contains a filesystem or LVM PV, then "
23823 "if virt-resize knows how, it will resize the contents, the equivalent of "
23824 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
23825 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
23826 "filesystems, so you would have to online resize them after booting the "
23827 "guest."
23828 msgstr ""
23829
23830 #. type: textblock
23831 #: ../resize/virt-resize.pod:164
23832 msgid "Other options are covered below."
23833 msgstr ""
23834
23835 #. type: =item
23836 #: ../resize/virt-resize.pod:166
23837 msgid "6. Test"
23838 msgstr ""
23839
23840 #. type: textblock
23841 #: ../resize/virt-resize.pod:168
23842 msgid "Thoroughly test the new disk image I<before> discarding the old one."
23843 msgstr ""
23844
23845 #. type: textblock
23846 #: ../resize/virt-resize.pod:170
23847 msgid "If you are using libvirt, edit the XML to point at the new disk:"
23848 msgstr ""
23849
23850 #. type: verbatim
23851 #: ../resize/virt-resize.pod:172
23852 #, no-wrap
23853 msgid ""
23854 " # virsh edit guestname\n"
23855 "\n"
23856 msgstr ""
23857
23858 #. type: textblock
23859 #: ../resize/virt-resize.pod:174
23860 msgid ""
23861 "Change E<lt>source ...E<gt>, see "
23862 "L<http://libvirt.org/formatdomain.html#elementsDisks>"
23863 msgstr ""
23864
23865 #. type: textblock
23866 #: ../resize/virt-resize.pod:177
23867 msgid "Then start up the domain with the new, resized disk:"
23868 msgstr ""
23869
23870 #. type: verbatim
23871 #: ../resize/virt-resize.pod:179
23872 #, no-wrap
23873 msgid ""
23874 " # virsh start guestname\n"
23875 "\n"
23876 msgstr ""
23877
23878 #. type: textblock
23879 #: ../resize/virt-resize.pod:181
23880 msgid ""
23881 "and check that it still works.  See also the L</NOTES> section below for "
23882 "additional information."
23883 msgstr ""
23884
23885 #. type: =item
23886 #: ../resize/virt-resize.pod:184
23887 msgid "7. Resize LVs etc inside the guest"
23888 msgstr ""
23889
23890 #. type: textblock
23891 #: ../resize/virt-resize.pod:186
23892 msgid "(This can also be done offline using L<guestfish(1)>)"
23893 msgstr ""
23894
23895 #. type: textblock
23896 #: ../resize/virt-resize.pod:188
23897 msgid ""
23898 "Once the guest has booted you should see the new space available, at least "
23899 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
23900 "may need to resize LVs inside PVs, and also resize filesystem types that "
23901 "virt-resize does not know how to expand."
23902 msgstr ""
23903
23904 #. type: =head2
23905 #: ../resize/virt-resize.pod:195
23906 msgid "SHRINKING A VIRTUAL MACHINE DISK"
23907 msgstr ""
23908
23909 #. type: textblock
23910 #: ../resize/virt-resize.pod:197
23911 msgid ""
23912 "Shrinking is somewhat more complex than expanding, and only an overview is "
23913 "given here."
23914 msgstr ""
23915
23916 #. type: textblock
23917 #: ../resize/virt-resize.pod:200
23918 msgid ""
23919 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
23920 "filesystems).  The user has to shrink content before passing the disk image "
23921 "to virt-resize, and virt-resize will check that the content has been shrunk "
23922 "properly."
23923 msgstr ""
23924
23925 #. type: textblock
23926 #: ../resize/virt-resize.pod:205
23927 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
23928 msgstr ""
23929
23930 #. type: textblock
23931 #: ../resize/virt-resize.pod:207
23932 msgid ""
23933 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
23934 "steps 3 and 4 above to allocate a new disk image."
23935 msgstr ""
23936
23937 #. type: textblock
23938 #: ../resize/virt-resize.pod:210
23939 msgid "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
23940 msgstr ""
23941
23942 #. type: =head2
23943 #: ../resize/virt-resize.pod:213
23944 msgid "IGNORING OR DELETING PARTITIONS"
23945 msgstr ""
23946
23947 #. type: textblock
23948 #: ../resize/virt-resize.pod:215
23949 msgid ""
23950 "virt-resize also gives a convenient way to ignore or delete partitions when "
23951 "copying from the input disk to the output disk.  Ignoring a partition speeds "
23952 "up the copy where you don't care about the existing contents of a "
23953 "partition.  Deleting a partition removes it completely, but note that it "
23954 "also renumbers any partitions after the one which is deleted, which can "
23955 "leave some guests unbootable."
23956 msgstr ""
23957
23958 #. type: =head2
23959 #: ../resize/virt-resize.pod:222
23960 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
23961 msgstr ""
23962
23963 #. type: textblock
23964 #: ../resize/virt-resize.pod:224
23965 msgid ""
23966 "If the input disk is in qcow2 format, then you may prefer that the output is "
23967 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
23968 "the fly.  The output format is simply determined by the format of the empty "
23969 "output container that you provide.  Thus to create qcow2 output, use:"
23970 msgstr ""
23971
23972 #. type: verbatim
23973 #: ../resize/virt-resize.pod:230
23974 #, no-wrap
23975 msgid ""
23976 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
23977 "\n"
23978 msgstr ""
23979
23980 #. type: textblock
23981 #: ../resize/virt-resize.pod:232
23982 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
23983 msgstr ""
23984
23985 #. type: textblock
23986 #: ../resize/virt-resize.pod:234
23987 msgid "Similarly, to get non-sparse raw output use:"
23988 msgstr ""
23989
23990 #. type: verbatim
23991 #: ../resize/virt-resize.pod:236
23992 #, no-wrap
23993 msgid ""
23994 " fallocate -l size outdisk\n"
23995 "\n"
23996 msgstr ""
23997
23998 #. type: textblock
23999 #: ../resize/virt-resize.pod:238
24000 msgid ""
24001 "(on older systems that don't have the L<fallocate(1)> command use C<dd "
24002 "if=/dev/zero of=outdisk bs=1M count=..>)"
24003 msgstr ""
24004
24005 #. type: =head2
24006 #: ../resize/virt-resize.pod:241
24007 msgid "LOGICAL PARTITIONS"
24008 msgstr ""
24009
24010 #. type: textblock
24011 #: ../resize/virt-resize.pod:243
24012 msgid ""
24013 "Logical partitions (a.k.a. C</dev/sda5+> on disks using DOS partition "
24014 "tables) cannot be resized."
24015 msgstr ""
24016
24017 #. type: textblock
24018 #: ../resize/virt-resize.pod:246
24019 msgid ""
24020 "To understand what is going on, firstly one of the four partitions "
24021 "C</dev/sda1-4> will have MBR partition type C<05> or C<0f>.  This is called "
24022 "the B<extended partition>.  Use L<virt-filesystems(1)> to see the MBR "
24023 "partition type."
24024 msgstr ""
24025
24026 #. type: textblock
24027 #: ../resize/virt-resize.pod:251
24028 msgid "Logical partitions live inside the extended partition."
24029 msgstr ""
24030
24031 #. type: textblock
24032 #: ../resize/virt-resize.pod:253
24033 msgid ""
24034 "The extended partition can be expanded, but not shrunk (unless you force it, "
24035 "which is not advisable).  When the extended partition is copied across, all "
24036 "the logical partitions contained inside are copied over implicitly.  "
24037 "Virt-resize does not look inside the extended partition, so it copies the "
24038 "logical partitions blindly."
24039 msgstr ""
24040
24041 #. type: textblock
24042 #: ../resize/virt-resize.pod:259
24043 msgid ""
24044 "You cannot specify a logical partition (C</dev/sda5+>) at all on the command "
24045 "line.  Doing so will give an error."
24046 msgstr ""
24047
24048 #. type: textblock
24049 #: ../resize/virt-resize.pod:268 ../sparsify/virt-sparsify.pod:105
24050 msgid "Display help."
24051 msgstr ""
24052
24053 #. type: =item
24054 #: ../resize/virt-resize.pod:270
24055 msgid "B<--align-first auto>"
24056 msgstr ""
24057
24058 #. type: =item
24059 #: ../resize/virt-resize.pod:272
24060 msgid "B<--align-first never>"
24061 msgstr ""
24062
24063 #. type: =item
24064 #: ../resize/virt-resize.pod:274
24065 msgid "B<--align-first always>"
24066 msgstr ""
24067
24068 #. type: textblock
24069 #: ../resize/virt-resize.pod:276
24070 msgid ""
24071 "Align the first partition for improved performance (see also the "
24072 "I<--alignment> option)."
24073 msgstr ""
24074
24075 #. type: textblock
24076 #: ../resize/virt-resize.pod:279
24077 msgid ""
24078 "The default is I<--align-first auto> which only aligns the first partition "
24079 "if it is safe to do so.  That is, only when we know how to fix the "
24080 "bootloader automatically, and at the moment that can only be done for "
24081 "Windows guests."
24082 msgstr ""
24083
24084 #. type: textblock
24085 #: ../resize/virt-resize.pod:284
24086 msgid ""
24087 "I<--align-first never> means we never move the first partition.  This is the "
24088 "safest option.  Try this if the guest does not boot after resizing."
24089 msgstr ""
24090
24091 #. type: textblock
24092 #: ../resize/virt-resize.pod:288
24093 msgid ""
24094 "I<--align-first always> means we always align the first partition (if it "
24095 "needs to be aligned).  For some guests this will break the bootloader, "
24096 "making the guest unbootable."
24097 msgstr ""
24098
24099 #. type: =item
24100 #: ../resize/virt-resize.pod:292
24101 msgid "B<--alignment N>"
24102 msgstr ""
24103
24104 #. type: textblock
24105 #: ../resize/virt-resize.pod:294
24106 msgid ""
24107 "Set the alignment of partitions to C<N> sectors.  The default in virt-resize "
24108 "E<lt> 1.13.19 was 64 sectors, and after that is 128 sectors."
24109 msgstr ""
24110
24111 #. type: textblock
24112 #: ../resize/virt-resize.pod:298
24113 msgid ""
24114 "Assuming 512 byte sector size inside the guest, here are some suitable "
24115 "values for this:"
24116 msgstr ""
24117
24118 #. type: =item
24119 #: ../resize/virt-resize.pod:303
24120 msgid "I<--alignment 1> (512 bytes)"
24121 msgstr ""
24122
24123 #. type: textblock
24124 #: ../resize/virt-resize.pod:305
24125 msgid ""
24126 "The partitions would be packed together as closely as possible, but would be "
24127 "completely unaligned.  In some cases this can cause very poor performance.  "
24128 "See L<virt-alignment-scan(1)> for further details."
24129 msgstr ""
24130
24131 #. type: =item
24132 #: ../resize/virt-resize.pod:309
24133 msgid "I<--alignment 8> (4K)"
24134 msgstr ""
24135
24136 #. type: textblock
24137 #: ../resize/virt-resize.pod:311
24138 msgid ""
24139 "This would be the minimum acceptable alignment for reasonable performance on "
24140 "modern hosts."
24141 msgstr ""
24142
24143 #. type: =item
24144 #: ../resize/virt-resize.pod:314
24145 msgid "I<--alignment 128> (64K)"
24146 msgstr ""
24147
24148 #. type: textblock
24149 #: ../resize/virt-resize.pod:316
24150 msgid ""
24151 "This alignment provides good performance when the host is using high end "
24152 "network storage."
24153 msgstr ""
24154
24155 #. type: =item
24156 #: ../resize/virt-resize.pod:319
24157 msgid "I<--alignment 2048> (1M)"
24158 msgstr ""
24159
24160 #. type: textblock
24161 #: ../resize/virt-resize.pod:321
24162 msgid ""
24163 "This is the standard alignment used by all newly installed guests since "
24164 "around 2008."
24165 msgstr ""
24166
24167 #. type: =item
24168 #: ../resize/virt-resize.pod:326
24169 msgid "B<-d>"
24170 msgstr ""
24171
24172 #. type: =item
24173 #: ../resize/virt-resize.pod:328 ../tools/virt-make-fs.pl:177 ../tools/virt-win-reg.pl:120
24174 msgid "B<--debug>"
24175 msgstr ""
24176
24177 #. type: textblock
24178 #: ../resize/virt-resize.pod:330 ../tools/virt-win-reg.pl:122
24179 msgid "Enable debugging messages."
24180 msgstr ""
24181
24182 #. type: =item
24183 #: ../resize/virt-resize.pod:332 ../sparsify/virt-sparsify.pod:131
24184 msgid "B<--debug-gc>"
24185 msgstr ""
24186
24187 #. type: textblock
24188 #: ../resize/virt-resize.pod:334
24189 msgid ""
24190 "Debug garbage collection and memory allocation.  This is only useful when "
24191 "debugging memory problems in virt-resize or the OCaml libguestfs bindings."
24192 msgstr ""
24193
24194 #. type: =item
24195 #: ../resize/virt-resize.pod:338
24196 msgid "B<--delete part>"
24197 msgstr ""
24198
24199 #. type: textblock
24200 #: ../resize/virt-resize.pod:340
24201 msgid ""
24202 "Delete the named partition.  It would be more accurate to describe this as "
24203 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
24204 "the original disk image is left intact."
24205 msgstr ""
24206
24207 #. type: textblock
24208 #: ../resize/virt-resize.pod:344
24209 msgid ""
24210 "Note that when you delete a partition, then anything contained in the "
24211 "partition is also deleted.  Furthermore, this causes any partitions that "
24212 "come after to be I<renumbered>, which can easily make your guest unbootable."
24213 msgstr ""
24214
24215 #. type: textblock
24216 #: ../resize/virt-resize.pod:349 ../resize/virt-resize.pod:410 ../resize/virt-resize.pod:537 ../sparsify/virt-sparsify.pod:157
24217 msgid "You can give this option multiple times."
24218 msgstr ""
24219
24220 #. type: =item
24221 #: ../resize/virt-resize.pod:351
24222 msgid "B<--expand part>"
24223 msgstr ""
24224
24225 #. type: textblock
24226 #: ../resize/virt-resize.pod:353
24227 msgid ""
24228 "Expand the named partition so it uses up all extra space (space left over "
24229 "after any other resize changes that you request have been done)."
24230 msgstr ""
24231
24232 #. type: textblock
24233 #: ../resize/virt-resize.pod:356
24234 msgid ""
24235 "If virt-resize knows how, it will expand the direct content of the "
24236 "partition.  For example, if the partition is an LVM PV, it will expand the "
24237 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
24238 "content it doesn't know about alone."
24239 msgstr ""
24240
24241 #. type: textblock
24242 #: ../resize/virt-resize.pod:361
24243 msgid "Currently virt-resize can resize:"
24244 msgstr ""
24245
24246 #. type: textblock
24247 #: ../resize/virt-resize.pod:367
24248 msgid "ext2, ext3 and ext4 filesystems."
24249 msgstr ""
24250
24251 #. type: textblock
24252 #: ../resize/virt-resize.pod:371
24253 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
24254 msgstr ""
24255
24256 #. type: textblock
24257 #: ../resize/virt-resize.pod:373
24258 msgid ""
24259 "The filesystem must have been shut down consistently last time it was used.  "
24260 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
24261 "consistency check, so at the first boot after resizing Windows will check "
24262 "the disk."
24263 msgstr ""
24264
24265 #. type: textblock
24266 #: ../resize/virt-resize.pod:380
24267 msgid ""
24268 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
24269 "inside the PV, but see the I<--LV-expand> option.  The user could also "
24270 "resize LVs as desired after boot."
24271 msgstr ""
24272
24273 #. type: textblock
24274 #: ../resize/virt-resize.pod:386
24275 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
24276 msgstr ""
24277
24278 #. type: textblock
24279 #: ../resize/virt-resize.pod:390 ../resize/virt-resize.pod:565
24280 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
24281 msgstr ""
24282
24283 #. type: =item
24284 #: ../resize/virt-resize.pod:392 ../sparsify/virt-sparsify.pod:137 ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92 ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
24285 msgid "B<--format> raw"
24286 msgstr ""
24287
24288 #. type: textblock
24289 #: ../resize/virt-resize.pod:394 ../sparsify/virt-sparsify.pod:141
24290 msgid ""
24291 "Specify the format of the input disk image.  If this flag is not given then "
24292 "it is auto-detected from the image itself."
24293 msgstr ""
24294
24295 #. type: textblock
24296 #: ../resize/virt-resize.pod:400
24297 msgid ""
24298 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
24299 "AND NON-SPARSE RAW FORMATS>."
24300 msgstr ""
24301
24302 #. type: =item
24303 #: ../resize/virt-resize.pod:403
24304 msgid "B<--ignore part>"
24305 msgstr ""
24306
24307 #. type: textblock
24308 #: ../resize/virt-resize.pod:405
24309 msgid ""
24310 "Ignore the named partition.  Effectively this means the partition is "
24311 "allocated on the destination disk, but the content is not copied across from "
24312 "the source disk.  The content of the partition will be blank (all zero "
24313 "bytes)."
24314 msgstr ""
24315
24316 #. type: =item
24317 #: ../resize/virt-resize.pod:412
24318 msgid "B<--LV-expand logvol>"
24319 msgstr ""
24320
24321 #. type: textblock
24322 #: ../resize/virt-resize.pod:414
24323 msgid ""
24324 "This takes the logical volume and, as a final step, expands it to fill all "
24325 "the space available in its volume group.  A typical usage, assuming a Linux "
24326 "guest with a single PV C</dev/sda2> and a root device called "
24327 "C</dev/vg_guest/lv_root> would be:"
24328 msgstr ""
24329
24330 #. type: verbatim
24331 #: ../resize/virt-resize.pod:419
24332 #, no-wrap
24333 msgid ""
24334 " virt-resize indisk outdisk \\\n"
24335 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
24336 "\n"
24337 msgstr ""
24338
24339 #. type: textblock
24340 #: ../resize/virt-resize.pod:422
24341 msgid ""
24342 "This would first expand the partition (and PV), and then expand the root "
24343 "device to fill the extra space in the PV."
24344 msgstr ""
24345
24346 #. type: textblock
24347 #: ../resize/virt-resize.pod:425
24348 msgid ""
24349 "The contents of the LV are also resized if virt-resize knows how to do "
24350 "that.  You can stop virt-resize from trying to expand the content by using "
24351 "the option I<--no-expand-content>."
24352 msgstr ""
24353
24354 #. type: textblock
24355 #: ../resize/virt-resize.pod:429
24356 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
24357 msgstr ""
24358
24359 #. type: textblock
24360 #: ../resize/virt-resize.pod:431
24361 msgid ""
24362 "You can give this option multiple times, I<but> it doesn't make sense to do "
24363 "this unless the logical volumes you specify are all in different volume "
24364 "groups."
24365 msgstr ""
24366
24367 #. type: =item
24368 #: ../resize/virt-resize.pod:435 ../sparsify/virt-sparsify.pod:159
24369 msgid "B<--machine-readable>"
24370 msgstr ""
24371
24372 #. type: textblock
24373 #: ../resize/virt-resize.pod:437 ../sparsify/virt-sparsify.pod:161
24374 msgid ""
24375 "This option is used to make the output more machine friendly when being "
24376 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
24377 msgstr ""
24378
24379 #. type: =item
24380 #: ../resize/virt-resize.pod:443
24381 msgid "B<--dryrun>"
24382 msgstr ""
24383
24384 #. type: textblock
24385 #: ../resize/virt-resize.pod:445
24386 msgid "Print a summary of what would be done, but don't do anything."
24387 msgstr ""
24388
24389 #. type: =item
24390 #: ../resize/virt-resize.pod:447
24391 msgid "B<--no-copy-boot-loader>"
24392 msgstr ""
24393
24394 #. type: textblock
24395 #: ../resize/virt-resize.pod:449
24396 msgid ""
24397 "By default, virt-resize copies over some sectors at the start of the disk "
24398 "(up to the beginning of the first partition).  Commonly these sectors "
24399 "contain the Master Boot Record (MBR) and the boot loader, and are required "
24400 "in order for the guest to boot correctly."
24401 msgstr ""
24402
24403 #. type: textblock
24404 #: ../resize/virt-resize.pod:454
24405 msgid ""
24406 "If you specify this flag, then this initial copy is not done.  You may need "
24407 "to reinstall the boot loader in this case."
24408 msgstr ""
24409
24410 #. type: =item
24411 #: ../resize/virt-resize.pod:457
24412 msgid "B<--no-extra-partition>"
24413 msgstr ""
24414
24415 #. type: textblock
24416 #: ../resize/virt-resize.pod:459
24417 msgid ""
24418 "By default, virt-resize creates an extra partition if there is any extra, "
24419 "unused space after all resizing has happened.  Use this option to prevent "
24420 "the extra partition from being created.  If you do this then the extra space "
24421 "will be inaccessible until you run fdisk, parted, or some other partitioning "
24422 "tool in the guest."
24423 msgstr ""
24424
24425 #. type: textblock
24426 #: ../resize/virt-resize.pod:465
24427 msgid ""
24428 "Note that if the surplus space is smaller than 10 MB, no extra partition "
24429 "will be created."
24430 msgstr ""
24431
24432 #. type: =item
24433 #: ../resize/virt-resize.pod:468
24434 msgid "B<--no-expand-content>"
24435 msgstr ""
24436
24437 #. type: textblock
24438 #: ../resize/virt-resize.pod:470
24439 msgid ""
24440 "By default, virt-resize will try to expand the direct contents of "
24441 "partitions, if it knows how (see I<--expand> option above)."
24442 msgstr ""
24443
24444 #. type: textblock
24445 #: ../resize/virt-resize.pod:473
24446 msgid ""
24447 "If you give the I<--no-expand-content> option then virt-resize will not "
24448 "attempt this."
24449 msgstr ""
24450
24451 #. type: =item
24452 #: ../resize/virt-resize.pod:476
24453 msgid "B<--ntfsresize-force>"
24454 msgstr ""
24455
24456 #. type: textblock
24457 #: ../resize/virt-resize.pod:478
24458 msgid ""
24459 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
24460 "the NTFS disk is marked as needing a consistency check.  You have to use "
24461 "this option if you want to resize a Windows guest multiple times without "
24462 "booting into Windows between each resize."
24463 msgstr ""
24464
24465 #. type: =item
24466 #: ../resize/virt-resize.pod:484
24467 msgid "B<--output-format> raw"
24468 msgstr ""
24469
24470 #. type: textblock
24471 #: ../resize/virt-resize.pod:486
24472 msgid ""
24473 "Specify the format of the output disk image.  If this flag is not given then "
24474 "it is auto-detected from the image itself."
24475 msgstr ""
24476
24477 #. type: textblock
24478 #: ../resize/virt-resize.pod:492
24479 msgid ""
24480 "Note that this option I<does not create> the output format.  This option "
24481 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
24482 "need to create the output disk with the right format.  See L</QCOW2 AND "
24483 "NON-SPARSE RAW FORMATS>."
24484 msgstr ""
24485
24486 #. type: textblock
24487 #: ../resize/virt-resize.pod:501
24488 msgid "Don't print the summary."
24489 msgstr ""
24490
24491 #. type: =item
24492 #: ../resize/virt-resize.pod:503
24493 msgid "B<--resize part=size>"
24494 msgstr ""
24495
24496 #. type: textblock
24497 #: ../resize/virt-resize.pod:505
24498 msgid ""
24499 "Resize the named partition (expanding or shrinking it) so that it has the "
24500 "given size."
24501 msgstr ""
24502
24503 #. type: textblock
24504 #: ../resize/virt-resize.pod:508
24505 msgid ""
24506 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
24507 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
24508 "size; or as a relative number or percentage.  For example:"
24509 msgstr ""
24510
24511 #. type: verbatim
24512 #: ../resize/virt-resize.pod:514
24513 #, no-wrap
24514 msgid ""
24515 " --resize /dev/sda2=10G\n"
24516 "\n"
24517 msgstr ""
24518
24519 #. type: verbatim
24520 #: ../resize/virt-resize.pod:516
24521 #, no-wrap
24522 msgid ""
24523 " --resize /dev/sda4=90%\n"
24524 "\n"
24525 msgstr ""
24526
24527 #. type: verbatim
24528 #: ../resize/virt-resize.pod:518
24529 #, no-wrap
24530 msgid ""
24531 " --resize /dev/sda2=+1G\n"
24532 "\n"
24533 msgstr ""
24534
24535 #. type: verbatim
24536 #: ../resize/virt-resize.pod:520
24537 #, no-wrap
24538 msgid ""
24539 " --resize /dev/sda2=-200M\n"
24540 "\n"
24541 msgstr ""
24542
24543 #. type: verbatim
24544 #: ../resize/virt-resize.pod:522
24545 #, no-wrap
24546 msgid ""
24547 " --resize /dev/sda1=+128K\n"
24548 "\n"
24549 msgstr ""
24550
24551 #. type: verbatim
24552 #: ../resize/virt-resize.pod:524
24553 #, no-wrap
24554 msgid ""
24555 " --resize /dev/sda1=+10%\n"
24556 "\n"
24557 msgstr ""
24558
24559 #. type: verbatim
24560 #: ../resize/virt-resize.pod:526
24561 #, no-wrap
24562 msgid ""
24563 " --resize /dev/sda1=-10%\n"
24564 "\n"
24565 msgstr ""
24566
24567 #. type: textblock
24568 #: ../resize/virt-resize.pod:528
24569 msgid ""
24570 "You can increase the size of any partition.  Virt-resize will expand the "
24571 "direct content of the partition if it knows how (see I<--expand> below)."
24572 msgstr ""
24573
24574 #. type: textblock
24575 #: ../resize/virt-resize.pod:532
24576 msgid ""
24577 "You can only I<decrease> the size of partitions that contain filesystems or "
24578 "PVs which have already been shrunk.  Virt-resize will check this has been "
24579 "done before proceeding, or else will print an error (see also "
24580 "I<--resize-force>)."
24581 msgstr ""
24582
24583 #. type: =item
24584 #: ../resize/virt-resize.pod:539
24585 msgid "B<--resize-force part=size>"
24586 msgstr ""
24587
24588 #. type: textblock
24589 #: ../resize/virt-resize.pod:541
24590 msgid ""
24591 "This is the same as I<--resize> except that it will let you decrease the "
24592 "size of any partition.  Generally this means you will lose any data which "
24593 "was at the end of the partition you shrink, but you may not care about that "
24594 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
24595 "as a swap partition)."
24596 msgstr ""
24597
24598 #. type: textblock
24599 #: ../resize/virt-resize.pod:547
24600 msgid "See also the I<--ignore> option."
24601 msgstr ""
24602
24603 #. type: =item
24604 #: ../resize/virt-resize.pod:549
24605 msgid "B<--shrink part>"
24606 msgstr ""
24607
24608 #. type: textblock
24609 #: ../resize/virt-resize.pod:551
24610 msgid ""
24611 "Shrink the named partition until the overall disk image fits in the "
24612 "destination.  The named partition B<must> contain a filesystem or PV which "
24613 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
24614 "online tools).  Virt-resize will check this and give an error if it has not "
24615 "been done."
24616 msgstr ""
24617
24618 #. type: textblock
24619 #: ../resize/virt-resize.pod:557
24620 msgid ""
24621 "The amount by which the overall disk must be shrunk (after carrying out all "
24622 "other operations requested by the user) is called the \"deficit\".  For "
24623 "example, a straight copy (assume no other operations)  from a 5GB disk image "
24624 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
24625 "would give an error unless the user specified a partition to shrink and that "
24626 "partition had more than a gigabyte of free space."
24627 msgstr ""
24628
24629 #. type: =head1
24630 #: ../resize/virt-resize.pod:575 ../sparsify/virt-sparsify.pod:201
24631 msgid "MACHINE READABLE OUTPUT"
24632 msgstr ""
24633
24634 #. type: textblock
24635 #: ../resize/virt-resize.pod:577
24636 msgid ""
24637 "The I<--machine-readable> option can be used to make the output more machine "
24638 "friendly, which is useful when calling virt-resize from other programs, GUIs "
24639 "etc."
24640 msgstr ""
24641
24642 #. type: textblock
24643 #: ../resize/virt-resize.pod:581 ../sparsify/virt-sparsify.pod:207
24644 msgid "There are two ways to use this option."
24645 msgstr ""
24646
24647 #. type: textblock
24648 #: ../resize/virt-resize.pod:583
24649 msgid ""
24650 "Firstly use the option on its own to query the capabilities of the "
24651 "virt-resize binary.  Typical output looks like this:"
24652 msgstr ""
24653
24654 #. type: verbatim
24655 #: ../resize/virt-resize.pod:586
24656 #, no-wrap
24657 msgid ""
24658 " $ virt-resize --machine-readable\n"
24659 " virt-resize\n"
24660 " ntfsresize-force\n"
24661 " 32bitok\n"
24662 " ntfs\n"
24663 " btrfs\n"
24664 "\n"
24665 msgstr ""
24666
24667 #. type: textblock
24668 #: ../resize/virt-resize.pod:593 ../sparsify/virt-sparsify.pod:217
24669 msgid ""
24670 "A list of features is printed, one per line, and the program exits with "
24671 "status 0."
24672 msgstr ""
24673
24674 #. type: textblock
24675 #: ../resize/virt-resize.pod:596 ../sparsify/virt-sparsify.pod:220
24676 msgid ""
24677 "Secondly use the option in conjunction with other options to make the "
24678 "regular program output more machine friendly."
24679 msgstr ""
24680
24681 #. type: textblock
24682 #: ../resize/virt-resize.pod:599 ../sparsify/virt-sparsify.pod:223
24683 msgid "At the moment this means:"
24684 msgstr ""
24685
24686 #. type: textblock
24687 #: ../resize/virt-resize.pod:605 ../sparsify/virt-sparsify.pod:229
24688 msgid ""
24689 "Progress bar messages can be parsed from stdout by looking for this regular "
24690 "expression:"
24691 msgstr ""
24692
24693 #. type: verbatim
24694 #: ../resize/virt-resize.pod:608 ../sparsify/virt-sparsify.pod:232
24695 #, no-wrap
24696 msgid ""
24697 " ^[0-9]+/[0-9]+$\n"
24698 "\n"
24699 msgstr ""
24700
24701 #. type: textblock
24702 #: ../resize/virt-resize.pod:612 ../sparsify/virt-sparsify.pod:236
24703 msgid ""
24704 "The calling program should treat messages sent to stdout (except for "
24705 "progress bar messages) as status messages.  They can be logged and/or "
24706 "displayed to the user."
24707 msgstr ""
24708
24709 #. type: textblock
24710 #: ../resize/virt-resize.pod:618
24711 msgid ""
24712 "The calling program should treat messages sent to stderr as error messages.  "
24713 "In addition, virt-resize exits with a non-zero status code if there was a "
24714 "fatal error."
24715 msgstr ""
24716
24717 #. type: textblock
24718 #: ../resize/virt-resize.pod:624
24719 msgid ""
24720 "Versions of the program prior to 1.13.9 did not support the "
24721 "I<--machine-readable> option and will return an error."
24722 msgstr ""
24723
24724 #. type: =head2
24725 #: ../resize/virt-resize.pod:629
24726 msgid "\"Partition 1 does not end on cylinder boundary.\""
24727 msgstr ""
24728
24729 #. type: textblock
24730 #: ../resize/virt-resize.pod:631
24731 msgid ""
24732 "Virt-resize aligns partitions to multiples of 128 sectors (see the "
24733 "I<--alignment> parameter).  Usually this means the partitions will not be "
24734 "aligned to the ancient CHS geometry.  However CHS geometry is meaningless "
24735 "for disks manufactured since the early 1990s, and doubly so for virtual hard "
24736 "drives.  Alignment of partitions to cylinders is not required by any modern "
24737 "operating system."
24738 msgstr ""
24739
24740 #. type: =head2
24741 #: ../resize/virt-resize.pod:638
24742 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
24743 msgstr ""
24744
24745 #. type: textblock
24746 #: ../resize/virt-resize.pod:640
24747 msgid ""
24748 "In Windows Vista and later versions, Microsoft switched to using a separate "
24749 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
24750 "and C</dev/sda2> is the main (C:) drive.  Resizing the first (boot) "
24751 "partition causes the bootloader to fail with C<0xC0000225> error.  Resizing "
24752 "the second partition (ie. C: drive)  should work."
24753 msgstr ""
24754
24755 #. type: textblock
24756 #: ../resize/virt-resize.pod:647
24757 msgid ""
24758 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
24759 "NTFS partitions have been expanded.  This is just a safety check and (unless "
24760 "it find errors) is nothing to worry about."
24761 msgstr ""
24762
24763 #. type: =head2
24764 #: ../resize/virt-resize.pod:651
24765 msgid "GUEST BOOT STUCK AT \"GRUB\""
24766 msgstr ""
24767
24768 #. type: textblock
24769 #: ../resize/virt-resize.pod:653
24770 msgid ""
24771 "If a Linux guest does not boot after resizing, and the boot is stuck after "
24772 "printing C<GRUB> on the console, try reinstalling grub."
24773 msgstr ""
24774
24775 #. type: verbatim
24776 #: ../resize/virt-resize.pod:656
24777 #, no-wrap
24778 msgid ""
24779 " guestfish -i -a newdisk\n"
24780 " ><fs> cat /boot/grub/device.map\n"
24781 " # check the contents of this file are sensible or\n"
24782 " # edit the file if necessary\n"
24783 " ><fs> grub-install / /dev/vda\n"
24784 " ><fs> exit\n"
24785 "\n"
24786 msgstr ""
24787
24788 #. type: textblock
24789 #: ../resize/virt-resize.pod:663
24790 msgid ""
24791 "For more flexible guest reconfiguration, including if you need to specify "
24792 "other parameters to grub-install, use L<virt-rescue(1)>."
24793 msgstr ""
24794
24795 #. type: =head1
24796 #: ../resize/virt-resize.pod:666
24797 msgid "ALTERNATIVE TOOLS"
24798 msgstr ""
24799
24800 #. type: textblock
24801 #: ../resize/virt-resize.pod:668
24802 msgid ""
24803 "There are several proprietary tools for resizing partitions.  We won't "
24804 "mention any here."
24805 msgstr ""
24806
24807 #. type: textblock
24808 #: ../resize/virt-resize.pod:671
24809 msgid ""
24810 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
24811 "operations on disk images.  They can resize and move partitions, but I don't "
24812 "think they can do anything with the contents, and they certainly don't "
24813 "understand LVM."
24814 msgstr ""
24815
24816 #. type: textblock
24817 #: ../resize/virt-resize.pod:676
24818 msgid ""
24819 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
24820 "but at a much lower level.  You will probably end up hand-calculating sector "
24821 "offsets, which is something that virt-resize was designed to avoid.  If you "
24822 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
24823 "I<--debug> flag."
24824 msgstr ""
24825
24826 #. type: textblock
24827 #: ../resize/virt-resize.pod:696
24828 msgid ""
24829 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, "
24830 "L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, "
24831 "L<ntfsresize(8)>, L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, "
24832 "L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, "
24833 "L<virt-sparsify(1)>, L<virt-alignment-scan(1)>, L<http://libguestfs.org/>."
24834 msgstr ""
24835
24836 #. type: textblock
24837 #: ../ruby/examples/guestfs-ruby.pod:5
24838 msgid "guestfs-ruby - How to use libguestfs from Ruby"
24839 msgstr ""
24840
24841 #. type: verbatim
24842 #: ../ruby/examples/guestfs-ruby.pod:9
24843 #, no-wrap
24844 msgid ""
24845 " require 'guestfs'\n"
24846 " g = Guestfs::Guestfs.new()\n"
24847 " g.add_drive_opts(\"disk.img\",\n"
24848 "                  :readonly => 1, :format => \"raw\")\n"
24849 " g.launch()\n"
24850 "\n"
24851 msgstr ""
24852
24853 #. type: textblock
24854 #: ../ruby/examples/guestfs-ruby.pod:17
24855 msgid ""
24856 "This manual page documents how to call libguestfs from the Ruby programming "
24857 "language.  This page just documents the differences from the C API and gives "
24858 "some examples.  If you are not familiar with using libguestfs, you also need "
24859 "to read L<guestfs(3)>."
24860 msgstr ""
24861
24862 #. type: textblock
24863 #: ../ruby/examples/guestfs-ruby.pod:24
24864 msgid ""
24865 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
24866 "This has a single parameter which is the error message (a string)."
24867 msgstr ""
24868
24869 #. type: textblock
24870 #: ../ruby/examples/guestfs-ruby.pod:38
24871 msgid ""
24872 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
24873 "L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
24874 "L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
24875 msgstr ""
24876
24877 #. type: textblock
24878 #: ../sparsify/virt-sparsify.pod:5
24879 msgid "virt-sparsify - Make a virtual machine disk sparse"
24880 msgstr ""
24881
24882 #. type: verbatim
24883 #: ../sparsify/virt-sparsify.pod:9
24884 #, no-wrap
24885 msgid ""
24886 " virt-sparsify [--options] indisk outdisk\n"
24887 "\n"
24888 msgstr ""
24889
24890 #. type: textblock
24891 #: ../sparsify/virt-sparsify.pod:13
24892 msgid ""
24893 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
24894 "image) sparse a.k.a. thin-provisioned.  This means that free space within "
24895 "the disk image can be converted back to free space on the host."
24896 msgstr ""
24897
24898 #. type: textblock
24899 #: ../sparsify/virt-sparsify.pod:18
24900 msgid ""
24901 "Virt-sparsify can locate and sparsify free space in most filesystems "
24902 "(eg. ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
24903 msgstr ""
24904
24905 #. type: textblock
24906 #: ../sparsify/virt-sparsify.pod:21
24907 msgid ""
24908 "Virt-sparsify can also convert between some disk formats, for example "
24909 "converting a raw disk image to a thin-provisioned qcow2 image."
24910 msgstr ""
24911
24912 #. type: textblock
24913 #: ../sparsify/virt-sparsify.pod:24
24914 msgid ""
24915 "Virt-sparsify can operate on any disk image, not just ones from virtual "
24916 "machines.  If a virtual machine has more than one attached disk, you must "
24917 "sparsify each one separately."
24918 msgstr ""
24919
24920 #. type: =head2
24921 #: ../sparsify/virt-sparsify.pod:28
24922 msgid "IMPORTANT LIMITATIONS"
24923 msgstr ""
24924
24925 #. type: textblock
24926 #: ../sparsify/virt-sparsify.pod:34
24927 msgid ""
24928 "Virt-sparsify does not do in-place modifications.  It copies from a source "
24929 "image to a destination image, leaving the source unchanged.  I<Check that "
24930 "the sparsification was successful before deleting the source image>."
24931 msgstr ""
24932
24933 #. type: textblock
24934 #: ../sparsify/virt-sparsify.pod:41
24935 msgid "The virtual machine I<must be shut down> before using this tool."
24936 msgstr ""
24937
24938 #. type: textblock
24939 #: ../sparsify/virt-sparsify.pod:45
24940 msgid ""
24941 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
24942 "(1 temporary copy + 1 destination image).  This is in the worst case and "
24943 "usually much less space is required."
24944 msgstr ""
24945
24946 #. type: textblock
24947 #: ../sparsify/virt-sparsify.pod:51
24948 msgid "Virt-sparsify cannot resize disk images.  To do that, use L<virt-resize(1)>."
24949 msgstr ""
24950
24951 #. type: textblock
24952 #: ../sparsify/virt-sparsify.pod:56
24953 msgid "Virt-sparsify cannot handle encrypted disks."
24954 msgstr ""
24955
24956 #. type: textblock
24957 #: ../sparsify/virt-sparsify.pod:60
24958 msgid ""
24959 "Virt-sparsify cannot yet sparsify the space between partitions.  Note that "
24960 "this space is often used for critical items like bootloaders so it's not "
24961 "really unused."
24962 msgstr ""
24963
24964 #. type: textblock
24965 #: ../sparsify/virt-sparsify.pod:66
24966 msgid ""
24967 "Virt-sparsify does not yet know how to sparsify swapspace.  It is not safe "
24968 "to do this unless we can be sure there is no hibernation data, so at the "
24969 "moment swap partitions are ignored."
24970 msgstr ""
24971
24972 #. type: textblock
24973 #: ../sparsify/virt-sparsify.pod:72
24974 msgid ""
24975 "You may also want to read the manual pages for the associated tools "
24976 "L<virt-filesystems(1)> and L<virt-df(1)> before starting."
24977 msgstr ""
24978
24979 #. type: textblock
24980 #: ../sparsify/virt-sparsify.pod:77
24981 msgid "Typical usage is:"
24982 msgstr ""
24983
24984 #. type: verbatim
24985 #: ../sparsify/virt-sparsify.pod:79
24986 #, no-wrap
24987 msgid ""
24988 " virt-sparsify indisk outdisk\n"
24989 "\n"
24990 msgstr ""
24991
24992 #. type: textblock
24993 #: ../sparsify/virt-sparsify.pod:81
24994 msgid ""
24995 "which copies C<indisk> to C<outdisk>, making the output sparse.  C<outdisk> "
24996 "is created, or overwritten if it already exists.  The format of the input "
24997 "disk is detected (eg. qcow2) and the same format is used for the output "
24998 "disk."
24999 msgstr ""
25000
25001 #. type: textblock
25002 #: ../sparsify/virt-sparsify.pod:86
25003 msgid "To convert between formats, use the I<--convert> option:"
25004 msgstr ""
25005
25006 #. type: verbatim
25007 #: ../sparsify/virt-sparsify.pod:88
25008 #, no-wrap
25009 msgid ""
25010 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
25011 "\n"
25012 msgstr ""
25013
25014 #. type: textblock
25015 #: ../sparsify/virt-sparsify.pod:90
25016 msgid ""
25017 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
25018 "can find within the source disk image.  You can get it to ignore (don't zero "
25019 "free space on) certain filesystems by doing:"
25020 msgstr ""
25021
25022 #. type: verbatim
25023 #: ../sparsify/virt-sparsify.pod:94
25024 #, no-wrap
25025 msgid ""
25026 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
25027 "\n"
25028 msgstr ""
25029
25030 #. type: textblock
25031 #: ../sparsify/virt-sparsify.pod:96
25032 msgid "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
25033 msgstr ""
25034
25035 #. type: =item
25036 #: ../sparsify/virt-sparsify.pod:107
25037 msgid "B<--compress>"
25038 msgstr ""
25039
25040 #. type: textblock
25041 #: ../sparsify/virt-sparsify.pod:109
25042 msgid ""
25043 "Compress the output file.  This I<only> works if the output format is "
25044 "C<qcow2>."
25045 msgstr ""
25046
25047 #. type: =item
25048 #: ../sparsify/virt-sparsify.pod:112
25049 msgid "B<--convert> raw"
25050 msgstr ""
25051
25052 #. type: =item
25053 #: ../sparsify/virt-sparsify.pod:114
25054 msgid "B<--convert> qcow2"
25055 msgstr ""
25056
25057 #. type: =item
25058 #: ../sparsify/virt-sparsify.pod:116
25059 msgid "B<--convert> [other formats]"
25060 msgstr ""
25061
25062 #. type: textblock
25063 #: ../sparsify/virt-sparsify.pod:118
25064 msgid ""
25065 "Use C<output-format> as the format for the destination image.  If this is "
25066 "not specified, then the input format is used."
25067 msgstr ""
25068
25069 #. type: textblock
25070 #: ../sparsify/virt-sparsify.pod:121
25071 msgid "Supported and known-working output formats are: C<raw>, C<qcow2>, C<vdi>."
25072 msgstr ""
25073
25074 #. type: textblock
25075 #: ../sparsify/virt-sparsify.pod:123
25076 msgid ""
25077 "You can also use any format supported by the L<qemu-img(1)> program, "
25078 "eg. C<vmdk>, but support for other formats is reliant on qemu."
25079 msgstr ""
25080
25081 #. type: textblock
25082 #: ../sparsify/virt-sparsify.pod:126
25083 msgid ""
25084 "Specifying the I<--convert> option is usually a good idea, because then "
25085 "virt-sparsify doesn't need to try to guess the input format."
25086 msgstr ""
25087
25088 #. type: textblock
25089 #: ../sparsify/virt-sparsify.pod:129
25090 msgid "For fine-tuning the output format, see: I<--compress>, I<-o>."
25091 msgstr ""
25092
25093 #. type: textblock
25094 #: ../sparsify/virt-sparsify.pod:133
25095 msgid ""
25096 "Debug garbage collection and memory allocation.  This is only useful when "
25097 "debugging memory problems in virt-sparsify or the OCaml libguestfs bindings."
25098 msgstr ""
25099
25100 #. type: =item
25101 #: ../sparsify/virt-sparsify.pod:139
25102 msgid "B<--format> qcow2"
25103 msgstr ""
25104
25105 #. type: =item
25106 #: ../sparsify/virt-sparsify.pod:147
25107 msgid "B<--ignore> filesystem"
25108 msgstr ""
25109
25110 #. type: =item
25111 #: ../sparsify/virt-sparsify.pod:149
25112 msgid "B<--ignore> volgroup"
25113 msgstr ""
25114
25115 #. type: textblock
25116 #: ../sparsify/virt-sparsify.pod:151
25117 msgid ""
25118 "Ignore the named filesystem.  Free space on the filesystem will not be "
25119 "zeroed, but existing blocks of zeroes will still be sparsified."
25120 msgstr ""
25121
25122 #. type: textblock
25123 #: ../sparsify/virt-sparsify.pod:154
25124 msgid ""
25125 "In the second form, this ignores the named volume group.  Use the volume "
25126 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
25127 msgstr ""
25128
25129 #. type: =item
25130 #: ../sparsify/virt-sparsify.pod:165
25131 msgid "B<-o> option[,option,...]"
25132 msgstr ""
25133
25134 #. type: textblock
25135 #: ../sparsify/virt-sparsify.pod:167
25136 msgid ""
25137 "Pass I<-o> option(s) to the L<qemu-img(1)> command to fine-tune the output "
25138 "format.  Options available depend on the output format (see I<--convert>) "
25139 "and the installed version of the qemu-img program."
25140 msgstr ""
25141
25142 #. type: textblock
25143 #: ../sparsify/virt-sparsify.pod:171
25144 msgid ""
25145 "You should use I<-o> at most once.  To pass multiple options, separate them "
25146 "with commas, eg:"
25147 msgstr ""
25148
25149 #. type: verbatim
25150 #: ../sparsify/virt-sparsify.pod:174
25151 #, no-wrap
25152 msgid ""
25153 " virt-sparsify --convert qcow2 \\\n"
25154 "   -o cluster_size=512,preallocation=metadata ...\n"
25155 "\n"
25156 msgstr ""
25157
25158 #. type: textblock
25159 #: ../sparsify/virt-sparsify.pod:181
25160 msgid "This disables progress bars and other unnecessary output."
25161 msgstr ""
25162
25163 #. type: textblock
25164 #: ../sparsify/virt-sparsify.pod:203
25165 msgid ""
25166 "The I<--machine-readable> option can be used to make the output more machine "
25167 "friendly, which is useful when calling virt-sparsify from other programs, "
25168 "GUIs etc."
25169 msgstr ""
25170
25171 #. type: textblock
25172 #: ../sparsify/virt-sparsify.pod:209
25173 msgid ""
25174 "Firstly use the option on its own to query the capabilities of the "
25175 "virt-sparsify binary.  Typical output looks like this:"
25176 msgstr ""
25177
25178 #. type: verbatim
25179 #: ../sparsify/virt-sparsify.pod:212
25180 #, no-wrap
25181 msgid ""
25182 " $ virt-sparsify --machine-readable\n"
25183 " virt-sparsify\n"
25184 " ntfs\n"
25185 " btrfs\n"
25186 "\n"
25187 msgstr ""
25188
25189 #. type: textblock
25190 #: ../sparsify/virt-sparsify.pod:242
25191 msgid ""
25192 "The calling program should treat messages sent to stderr as error messages.  "
25193 "In addition, virt-sparsify exits with a non-zero status code if there was a "
25194 "fatal error."
25195 msgstr ""
25196
25197 #. type: textblock
25198 #: ../sparsify/virt-sparsify.pod:248
25199 msgid ""
25200 "All versions of virt-sparsify have supported the I<--machine-readable> "
25201 "option."
25202 msgstr ""
25203
25204 #. type: textblock
25205 #: ../sparsify/virt-sparsify.pod:262
25206 msgid ""
25207 "Location of the temporary directory used for the potentially large temporary "
25208 "overlay file."
25209 msgstr ""
25210
25211 #. type: textblock
25212 #: ../sparsify/virt-sparsify.pod:265
25213 msgid ""
25214 "You should ensure there is enough free space in the worst case for a full "
25215 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
25216 "to another directory that has enough space."
25217 msgstr ""
25218
25219 #. type: textblock
25220 #: ../sparsify/virt-sparsify.pod:269
25221 msgid "This defaults to C</tmp>."
25222 msgstr ""
25223
25224 #. type: textblock
25225 #: ../sparsify/virt-sparsify.pod:273
25226 msgid "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
25227 msgstr ""
25228
25229 #. type: textblock
25230 #: ../sparsify/virt-sparsify.pod:277
25231 msgid ""
25232 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
25233 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, "
25234 "L<qemu-img(1)>, L<http://libguestfs.org/>."
25235 msgstr ""
25236
25237 #. type: =head2
25238 #: ../src/guestfs-actions.pod:1
25239 msgid "guestfs_add_cdrom"
25240 msgstr ""
25241
25242 #. type: verbatim
25243 #: ../src/guestfs-actions.pod:3
25244 #, no-wrap
25245 msgid ""
25246 " int\n"
25247 " guestfs_add_cdrom (guestfs_h *g,\n"
25248 "                    const char *filename);\n"
25249 "\n"
25250 msgstr ""
25251
25252 #. type: textblock
25253 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:302 ../src/guestfs-actions.pod:323
25254 msgid ""
25255 "I<This function is deprecated.> In new code, use the "
25256 "L</guestfs_add_drive_opts> call instead."
25257 msgstr ""
25258
25259 #. type: textblock
25260 #: ../src/guestfs-actions.pod:24
25261 msgid ""
25262 "This call checks for the existence of C<filename>.  This stops you from "
25263 "specifying other types of drive which are supported by qemu such as C<nbd:> "
25264 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
25265 "instead."
25266 msgstr ""
25267
25268 #. type: textblock
25269 #: ../src/guestfs-actions.pod:31
25270 msgid ""
25271 "If you just want to add an ISO file (often you use this as an efficient way "
25272 "to transfer large files into the guest), then you should probably use "
25273 "C<guestfs_add_drive_ro> instead."
25274 msgstr ""
25275
25276 #. type: textblock
25277 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:187 ../src/guestfs-actions.pod:254 ../src/guestfs-actions.pod:291 ../src/guestfs-actions.pod:312 ../src/guestfs-actions.pod:333 ../src/guestfs-actions.pod:346 ../src/guestfs-actions.pod:360 ../src/guestfs-actions.pod:480 ../src/guestfs-actions.pod:500 ../src/guestfs-actions.pod:514 ../src/guestfs-actions.pod:559 ../src/guestfs-actions.pod:587 ../src/guestfs-actions.pod:605 ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:705 ../src/guestfs-actions.pod:719 ../src/guestfs-actions.pod:773 ../src/guestfs-actions.pod:872 ../src/guestfs-actions.pod:890 ../src/guestfs-actions.pod:904 ../src/guestfs-actions.pod:918 ../src/guestfs-actions.pod:955 ../src/guestfs-actions.pod:1138 ../src/guestfs-actions.pod:1158 ../src/guestfs-actions.pod:1176 ../src/guestfs-actions.pod:1266 ../src/guestfs-actions.pod:1325 ../src/guestfs-actions.pod:1371 ../src/guestfs-actions.pod:1411 ../src/guestfs-actions.pod:1464 ../src/guestfs-actions.pod:1517 ../src/guestfs-actions.pod:1575 ../src/guestfs-actions.pod:1629 ../src/guestfs-actions.pod:1648 ../src/guestfs-actions.pod:1662 ../src/guestfs-actions.pod:1690 ../src/guestfs-actions.pod:1760 ../src/guestfs-actions.pod:1791 ../src/guestfs-actions.pod:1816 ../src/guestfs-actions.pod:1858 ../src/guestfs-actions.pod:1971 ../src/guestfs-actions.pod:1998 ../src/guestfs-actions.pod:2213 ../src/guestfs-actions.pod:2235 ../src/guestfs-actions.pod:2322 ../src/guestfs-actions.pod:2830 ../src/guestfs-actions.pod:2974 ../src/guestfs-actions.pod:3035 ../src/guestfs-actions.pod:3070 ../src/guestfs-actions.pod:4131 ../src/guestfs-actions.pod:4146 ../src/guestfs-actions.pod:4171 ../src/guestfs-actions.pod:4373 ../src/guestfs-actions.pod:4387 ../src/guestfs-actions.pod:4400 ../src/guestfs-actions.pod:4414 ../src/guestfs-actions.pod:4429 ../src/guestfs-actions.pod:4465 ../src/guestfs-actions.pod:4537 ../src/guestfs-actions.pod:4557 ../src/guestfs-actions.pod:4574 ../src/guestfs-actions.pod:4594 ../src/guestfs-actions.pod:4614 ../src/guestfs-actions.pod:4649 ../src/guestfs-actions.pod:4668 ../src/guestfs-actions.pod:4687 ../src/guestfs-actions.pod:4722 ../src/guestfs-actions.pod:4734 ../src/guestfs-actions.pod:4767 ../src/guestfs-actions.pod:4783 ../src/guestfs-actions.pod:4796 ../src/guestfs-actions.pod:4811 ../src/guestfs-actions.pod:4828 ../src/guestfs-actions.pod:4986 ../src/guestfs-actions.pod:5060 ../src/guestfs-actions.pod:5070 ../src/guestfs-actions.pod:5090 ../src/guestfs-actions.pod:5103 ../src/guestfs-actions.pod:5154 ../src/guestfs-actions.pod:5172 ../src/guestfs-actions.pod:5190 ../src/guestfs-actions.pod:5206 ../src/guestfs-actions.pod:5220 ../src/guestfs-actions.pod:5234 ../src/guestfs-actions.pod:5251 ../src/guestfs-actions.pod:5266 ../src/guestfs-actions.pod:5293 ../src/guestfs-actions.pod:5356 ../src/guestfs-actions.pod:5429 ../src/guestfs-actions.pod:5460 ../src/guestfs-actions.pod:5479 ../src/guestfs-actions.pod:5498 ../src/guestfs-actions.pod:5510 ../src/guestfs-actions.pod:5527 ../src/guestfs-actions.pod:5540 ../src/guestfs-actions.pod:5555 ../src/guestfs-actions.pod:5570 ../src/guestfs-actions.pod:5602 ../src/guestfs-actions.pod:5628 ../src/guestfs-actions.pod:5667 ../src/guestfs-actions.pod:5687 ../src/guestfs-actions.pod:5701 ../src/guestfs-actions.pod:5718 ../src/guestfs-actions.pod:5767 ../src/guestfs-actions.pod:5820 ../src/guestfs-actions.pod:5867 ../src/guestfs-actions.pod:5910 ../src/guestfs-actions.pod:5938 ../src/guestfs-actions.pod:5955 ../src/guestfs-actions.pod:5973 ../src/guestfs-actions.pod:6110 ../src/guestfs-actions.pod:6167 ../src/guestfs-actions.pod:6189 ../src/guestfs-actions.pod:6207 ../src/guestfs-actions.pod:6259 ../src/guestfs-actions.pod:6325 ../src/guestfs-actions.pod:6342 ../src/guestfs-actions.pod:6355 ../src/guestfs-actions.pod:6369 ../src/guestfs-actions.pod:6658 ../src/guestfs-actions.pod:6677 ../src/guestfs-actions.pod:6696 ../src/guestfs-actions.pod:6710 ../src/guestfs-actions.pod:6722 ../src/guestfs-actions.pod:6736 ../src/guestfs-actions.pod:6748 ../src/guestfs-actions.pod:6762 ../src/guestfs-actions.pod:6778 ../src/guestfs-actions.pod:6796 ../src/guestfs-actions.pod:6815 ../src/guestfs-actions.pod:6834 ../src/guestfs-actions.pod:6864 ../src/guestfs-actions.pod:6882 ../src/guestfs-actions.pod:6905 ../src/guestfs-actions.pod:6923 ../src/guestfs-actions.pod:6942 ../src/guestfs-actions.pod:6963 ../src/guestfs-actions.pod:6982 ../src/guestfs-actions.pod:6999 ../src/guestfs-actions.pod:7018 ../src/guestfs-actions.pod:7046 ../src/guestfs-actions.pod:7070 ../src/guestfs-actions.pod:7089 ../src/guestfs-actions.pod:7105 ../src/guestfs-actions.pod:7129 ../src/guestfs-actions.pod:7148 ../src/guestfs-actions.pod:7163 ../src/guestfs-actions.pod:7182 ../src/guestfs-actions.pod:7226 ../src/guestfs-actions.pod:7253 ../src/guestfs-actions.pod:7283 ../src/guestfs-actions.pod:7395 ../src/guestfs-actions.pod:7516 ../src/guestfs-actions.pod:7528 ../src/guestfs-actions.pod:7541 ../src/guestfs-actions.pod:7554 ../src/guestfs-actions.pod:7576 ../src/guestfs-actions.pod:7589 ../src/guestfs-actions.pod:7602 ../src/guestfs-actions.pod:7615 ../src/guestfs-actions.pod:7630 ../src/guestfs-actions.pod:7689 ../src/guestfs-actions.pod:7706 ../src/guestfs-actions.pod:7722 ../src/guestfs-actions.pod:7738 ../src/guestfs-actions.pod:7755 ../src/guestfs-actions.pod:7768 ../src/guestfs-actions.pod:7788 ../src/guestfs-actions.pod:7888 ../src/guestfs-actions.pod:7946 ../src/guestfs-actions.pod:7960 ../src/guestfs-actions.pod:8001 ../src/guestfs-actions.pod:8014 ../src/guestfs-actions.pod:8032 ../src/guestfs-actions.pod:8066 ../src/guestfs-actions.pod:8102 ../src/guestfs-actions.pod:8218 ../src/guestfs-actions.pod:8233 ../src/guestfs-actions.pod:8247 ../src/guestfs-actions.pod:8302 ../src/guestfs-actions.pod:8315 ../src/guestfs-actions.pod:8360 ../src/guestfs-actions.pod:8400 ../src/guestfs-actions.pod:8456 ../src/guestfs-actions.pod:8476 ../src/guestfs-actions.pod:8509 ../src/guestfs-actions.pod:8573 ../src/guestfs-actions.pod:8596 ../src/guestfs-actions.pod:8622
25278 msgid "This function returns 0 on success or -1 on error."
25279 msgstr ""
25280
25281 #. type: textblock
25282 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:189 ../src/guestfs-actions.pod:1373 ../src/guestfs-actions.pod:2436 ../src/guestfs-actions.pod:2534 ../src/guestfs-actions.pod:2659 ../src/guestfs-actions.pod:4133 ../src/guestfs-actions.pod:4153 ../src/guestfs-actions.pod:5604 ../src/guestfs-actions.pod:6884 ../src/guestfs-actions.pod:7001 ../src/guestfs-actions.pod:7150 ../src/guestfs-actions.pod:7632 ../src/guestfs-actions.pod:7757 ../src/guestfs-actions.pod:8402
25283 msgid "(Added in 0.3)"
25284 msgstr ""
25285
25286 #. type: =head2
25287 #: ../src/guestfs-actions.pod:41
25288 msgid "guestfs_add_domain"
25289 msgstr ""
25290
25291 #. type: verbatim
25292 #: ../src/guestfs-actions.pod:43
25293 #, no-wrap
25294 msgid ""
25295 " int\n"
25296 " guestfs_add_domain (guestfs_h *g,\n"
25297 "                     const char *dom,\n"
25298 "                     ...);\n"
25299 "\n"
25300 msgstr ""
25301
25302 #. type: textblock
25303 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:198 ../src/guestfs-actions.pod:929 ../src/guestfs-actions.pod:1253 ../src/guestfs-actions.pod:1305 ../src/guestfs-actions.pod:1383 ../src/guestfs-actions.pod:1452 ../src/guestfs-actions.pod:1505 ../src/guestfs-actions.pod:1558 ../src/guestfs-actions.pod:3327 ../src/guestfs-actions.pod:4921 ../src/guestfs-actions.pod:5305 ../src/guestfs-actions.pod:5614 ../src/guestfs-actions.pod:5831 ../src/guestfs-actions.pod:7799
25304 msgid ""
25305 "You may supply a list of optional arguments to this call.  Use zero or more "
25306 "of the following pairs of parameters, and terminate the list with C<-1> on "
25307 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
25308 msgstr ""
25309
25310 #. type: verbatim
25311 #: ../src/guestfs-actions.pod:53
25312 #, no-wrap
25313 msgid ""
25314 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
25315 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
25316 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
25317 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
25318 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
25319 " GUESTFS_ADD_DOMAIN_READONLYDISK, const char *readonlydisk,\n"
25320 "\n"
25321 msgstr ""
25322
25323 #. type: textblock
25324 #: ../src/guestfs-actions.pod:60
25325 msgid ""
25326 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
25327 "It works by connecting to libvirt, requesting the domain and domain XML from "
25328 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
25329 "one."
25330 msgstr ""
25331
25332 #. type: textblock
25333 #: ../src/guestfs-actions.pod:141
25334 msgid ""
25335 "The other optional parameters are passed directly through to "
25336 "C<guestfs_add_drive_opts>."
25337 msgstr ""
25338
25339 #. type: textblock
25340 #: ../src/guestfs-actions.pod:144 ../src/guestfs-actions.pod:403 ../src/guestfs-actions.pod:573 ../src/guestfs-actions.pod:790 ../src/guestfs-actions.pod:821 ../src/guestfs-actions.pod:839 ../src/guestfs-actions.pod:858 ../src/guestfs-actions.pod:1836 ../src/guestfs-actions.pod:2192 ../src/guestfs-actions.pod:2395 ../src/guestfs-actions.pod:2506 ../src/guestfs-actions.pod:2557 ../src/guestfs-actions.pod:2609 ../src/guestfs-actions.pod:2623 ../src/guestfs-actions.pod:2646 ../src/guestfs-actions.pod:2961 ../src/guestfs-actions.pod:3445 ../src/guestfs-actions.pod:3463 ../src/guestfs-actions.pod:5790 ../src/guestfs-actions.pod:6007 ../src/guestfs-actions.pod:6245 ../src/guestfs-actions.pod:6439 ../src/guestfs-actions.pod:6465 ../src/guestfs-actions.pod:7987 ../src/guestfs-actions.pod:8413 ../src/guestfs-actions.pod:8426 ../src/guestfs-actions.pod:8439
25341 msgid "On error this function returns -1."
25342 msgstr ""
25343
25344 #. type: textblock
25345 #: ../src/guestfs-actions.pod:146
25346 msgid "(Added in 1.7.4)"
25347 msgstr ""
25348
25349 #. type: =head2
25350 #: ../src/guestfs-actions.pod:148
25351 msgid "guestfs_add_domain_va"
25352 msgstr ""
25353
25354 #. type: verbatim
25355 #: ../src/guestfs-actions.pod:150
25356 #, no-wrap
25357 msgid ""
25358 " int\n"
25359 " guestfs_add_domain_va (guestfs_h *g,\n"
25360 "                        const char *dom,\n"
25361 "                        va_list args);\n"
25362 "\n"
25363 msgstr ""
25364
25365 #. type: textblock
25366 #: ../src/guestfs-actions.pod:155
25367 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
25368 msgstr ""
25369
25370 #. type: textblock
25371 #: ../src/guestfs-actions.pod:157 ../src/guestfs-actions.pod:168 ../src/guestfs-actions.pod:267 ../src/guestfs-actions.pod:278 ../src/guestfs-actions.pod:968 ../src/guestfs-actions.pod:979 ../src/guestfs-actions.pod:1281 ../src/guestfs-actions.pod:1294 ../src/guestfs-actions.pod:1340 ../src/guestfs-actions.pod:1353 ../src/guestfs-actions.pod:1430 ../src/guestfs-actions.pod:1442 ../src/guestfs-actions.pod:1483 ../src/guestfs-actions.pod:1495 ../src/guestfs-actions.pod:1536 ../src/guestfs-actions.pod:1548 ../src/guestfs-actions.pod:1594 ../src/guestfs-actions.pod:1606 ../src/guestfs-actions.pod:3411 ../src/guestfs-actions.pod:3423 ../src/guestfs-actions.pod:4998 ../src/guestfs-actions.pod:5010 ../src/guestfs-actions.pod:5370 ../src/guestfs-actions.pod:5382 ../src/guestfs-actions.pod:5642 ../src/guestfs-actions.pod:5654 ../src/guestfs-actions.pod:5880 ../src/guestfs-actions.pod:5891 ../src/guestfs-actions.pod:7901 ../src/guestfs-actions.pod:7912
25372 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
25373 msgstr ""
25374
25375 #. type: =head2
25376 #: ../src/guestfs-actions.pod:159
25377 msgid "guestfs_add_domain_argv"
25378 msgstr ""
25379
25380 #. type: verbatim
25381 #: ../src/guestfs-actions.pod:161
25382 #, no-wrap
25383 msgid ""
25384 " int\n"
25385 " guestfs_add_domain_argv (guestfs_h *g,\n"
25386 "                          const char *dom,\n"
25387 "                          const struct guestfs_add_domain_argv *optargs);\n"
25388 "\n"
25389 msgstr ""
25390
25391 #. type: textblock
25392 #: ../src/guestfs-actions.pod:166
25393 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
25394 msgstr ""
25395
25396 #. type: =head2
25397 #: ../src/guestfs-actions.pod:170
25398 msgid "guestfs_add_drive"
25399 msgstr ""
25400
25401 #. type: verbatim
25402 #: ../src/guestfs-actions.pod:172
25403 #, no-wrap
25404 msgid ""
25405 " int\n"
25406 " guestfs_add_drive (guestfs_h *g,\n"
25407 "                    const char *filename);\n"
25408 "\n"
25409 msgstr ""
25410
25411 #. type: textblock
25412 #: ../src/guestfs-actions.pod:176
25413 msgid ""
25414 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
25415 "optional parameters, so the disk is added writable, with the format being "
25416 "detected automatically."
25417 msgstr ""
25418
25419 #. type: textblock
25420 #: ../src/guestfs-actions.pod:180
25421 msgid ""
25422 "Automatic detection of the format opens you up to a potential security hole "
25423 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
25424 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
25425 "you should think about replacing calls to this function with calls to "
25426 "C<guestfs_add_drive_opts>, and specifying the format."
25427 msgstr ""
25428
25429 #. type: =head2
25430 #: ../src/guestfs-actions.pod:191
25431 msgid "guestfs_add_drive_opts"
25432 msgstr ""
25433
25434 #. type: verbatim
25435 #: ../src/guestfs-actions.pod:193
25436 #, no-wrap
25437 msgid ""
25438 " int\n"
25439 " guestfs_add_drive_opts (guestfs_h *g,\n"
25440 "                         const char *filename,\n"
25441 "                         ...);\n"
25442 "\n"
25443 msgstr ""
25444
25445 #. type: verbatim
25446 #: ../src/guestfs-actions.pod:203
25447 #, no-wrap
25448 msgid ""
25449 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
25450 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
25451 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
25452 " GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
25453 "\n"
25454 msgstr ""
25455
25456 #. type: textblock
25457 #: ../src/guestfs-actions.pod:233
25458 msgid ""
25459 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
25460 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
25461 "Possible formats include C<raw> and C<qcow2>."
25462 msgstr ""
25463
25464 #. type: textblock
25465 #: ../src/guestfs-actions.pod:244
25466 msgid ""
25467 "This rarely-used option lets you emulate the behaviour of the deprecated "
25468 "C<guestfs_add_drive_with_if> call (q.v.)"
25469 msgstr ""
25470
25471 #. type: textblock
25472 #: ../src/guestfs-actions.pod:256
25473 msgid "(Added in 1.5.23)"
25474 msgstr ""
25475
25476 #. type: =head2
25477 #: ../src/guestfs-actions.pod:258
25478 msgid "guestfs_add_drive_opts_va"
25479 msgstr ""
25480
25481 #. type: verbatim
25482 #: ../src/guestfs-actions.pod:260
25483 #, no-wrap
25484 msgid ""
25485 " int\n"
25486 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
25487 "                            const char *filename,\n"
25488 "                            va_list args);\n"
25489 "\n"
25490 msgstr ""
25491
25492 #. type: textblock
25493 #: ../src/guestfs-actions.pod:265
25494 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
25495 msgstr ""
25496
25497 #. type: =head2
25498 #: ../src/guestfs-actions.pod:269
25499 msgid "guestfs_add_drive_opts_argv"
25500 msgstr ""
25501
25502 #. type: verbatim
25503 #: ../src/guestfs-actions.pod:271
25504 #, no-wrap
25505 msgid ""
25506 " int\n"
25507 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
25508 "                              const char *filename,\n"
25509 "                              const struct guestfs_add_drive_opts_argv "
25510 "*optargs);\n"
25511 "\n"
25512 msgstr ""
25513
25514 #. type: textblock
25515 #: ../src/guestfs-actions.pod:276
25516 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
25517 msgstr ""
25518
25519 #. type: =head2
25520 #: ../src/guestfs-actions.pod:280
25521 msgid "guestfs_add_drive_ro"
25522 msgstr ""
25523
25524 #. type: verbatim
25525 #: ../src/guestfs-actions.pod:282
25526 #, no-wrap
25527 msgid ""
25528 " int\n"
25529 " guestfs_add_drive_ro (guestfs_h *g,\n"
25530 "                       const char *filename);\n"
25531 "\n"
25532 msgstr ""
25533
25534 #. type: textblock
25535 #: ../src/guestfs-actions.pod:286
25536 msgid ""
25537 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
25538 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
25539 "disk is added read-only, with the format being detected automatically."
25540 msgstr ""
25541
25542 #. type: textblock
25543 #: ../src/guestfs-actions.pod:293
25544 msgid "(Added in 1.0.38)"
25545 msgstr ""
25546
25547 #. type: =head2
25548 #: ../src/guestfs-actions.pod:295
25549 msgid "guestfs_add_drive_ro_with_if"
25550 msgstr ""
25551
25552 #. type: verbatim
25553 #: ../src/guestfs-actions.pod:297
25554 #, no-wrap
25555 msgid ""
25556 " int\n"
25557 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
25558 "                               const char *filename,\n"
25559 "                               const char *iface);\n"
25560 "\n"
25561 msgstr ""
25562
25563 #. type: textblock
25564 #: ../src/guestfs-actions.pod:309
25565 msgid ""
25566 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
25567 "QEMU interface emulation to use at run time."
25568 msgstr ""
25569
25570 #. type: textblock
25571 #: ../src/guestfs-actions.pod:314 ../src/guestfs-actions.pod:335 ../src/guestfs-actions.pod:2920
25572 msgid "(Added in 1.0.84)"
25573 msgstr ""
25574
25575 #. type: =head2
25576 #: ../src/guestfs-actions.pod:316
25577 msgid "guestfs_add_drive_with_if"
25578 msgstr ""
25579
25580 #. type: verbatim
25581 #: ../src/guestfs-actions.pod:318
25582 #, no-wrap
25583 msgid ""
25584 " int\n"
25585 " guestfs_add_drive_with_if (guestfs_h *g,\n"
25586 "                            const char *filename,\n"
25587 "                            const char *iface);\n"
25588 "\n"
25589 msgstr ""
25590
25591 #. type: textblock
25592 #: ../src/guestfs-actions.pod:330
25593 msgid ""
25594 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
25595 "QEMU interface emulation to use at run time."
25596 msgstr ""
25597
25598 #. type: =head2
25599 #: ../src/guestfs-actions.pod:337
25600 msgid "guestfs_aug_clear"
25601 msgstr ""
25602
25603 #. type: verbatim
25604 #: ../src/guestfs-actions.pod:339
25605 #, no-wrap
25606 msgid ""
25607 " int\n"
25608 " guestfs_aug_clear (guestfs_h *g,\n"
25609 "                    const char *augpath);\n"
25610 "\n"
25611 msgstr ""
25612
25613 #. type: textblock
25614 #: ../src/guestfs-actions.pod:348 ../src/guestfs-actions.pod:2648
25615 msgid "(Added in 1.3.4)"
25616 msgstr ""
25617
25618 #. type: =head2
25619 #: ../src/guestfs-actions.pod:350
25620 msgid "guestfs_aug_close"
25621 msgstr ""
25622
25623 #. type: verbatim
25624 #: ../src/guestfs-actions.pod:352
25625 #, no-wrap
25626 msgid ""
25627 " int\n"
25628 " guestfs_aug_close (guestfs_h *g);\n"
25629 "\n"
25630 msgstr ""
25631
25632 #. type: textblock
25633 #: ../src/guestfs-actions.pod:355
25634 msgid ""
25635 "Close the current Augeas handle and free up any resources used by it.  After "
25636 "calling this, you have to call C<guestfs_aug_init> again before you can use "
25637 "any other Augeas functions."
25638 msgstr ""
25639
25640 #. type: textblock
25641 #: ../src/guestfs-actions.pod:362 ../src/guestfs-actions.pod:387 ../src/guestfs-actions.pod:405 ../src/guestfs-actions.pod:419 ../src/guestfs-actions.pod:482 ../src/guestfs-actions.pod:502 ../src/guestfs-actions.pod:516 ../src/guestfs-actions.pod:547 ../src/guestfs-actions.pod:561 ../src/guestfs-actions.pod:575 ../src/guestfs-actions.pod:589 ../src/guestfs-actions.pod:607 ../src/guestfs-actions.pod:6516
25642 msgid "(Added in 0.7)"
25643 msgstr ""
25644
25645 #. type: =head2
25646 #: ../src/guestfs-actions.pod:364
25647 msgid "guestfs_aug_defnode"
25648 msgstr ""
25649
25650 #. type: verbatim
25651 #: ../src/guestfs-actions.pod:366
25652 #, no-wrap
25653 msgid ""
25654 " struct guestfs_int_bool *\n"
25655 " guestfs_aug_defnode (guestfs_h *g,\n"
25656 "                      const char *name,\n"
25657 "                      const char *expr,\n"
25658 "                      const char *val);\n"
25659 "\n"
25660 msgstr ""
25661
25662 #. type: textblock
25663 #: ../src/guestfs-actions.pod:375
25664 msgid ""
25665 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
25666 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
25667 "containing that single node."
25668 msgstr ""
25669
25670 #. type: textblock
25671 #: ../src/guestfs-actions.pod:383
25672 msgid ""
25673 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
25674 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
25675 msgstr ""
25676
25677 #. type: =head2
25678 #: ../src/guestfs-actions.pod:389
25679 msgid "guestfs_aug_defvar"
25680 msgstr ""
25681
25682 #. type: verbatim
25683 #: ../src/guestfs-actions.pod:391
25684 #, no-wrap
25685 msgid ""
25686 " int\n"
25687 " guestfs_aug_defvar (guestfs_h *g,\n"
25688 "                     const char *name,\n"
25689 "                     const char *expr);\n"
25690 "\n"
25691 msgstr ""
25692
25693 #. type: =head2
25694 #: ../src/guestfs-actions.pod:407
25695 msgid "guestfs_aug_get"
25696 msgstr ""
25697
25698 #. type: verbatim
25699 #: ../src/guestfs-actions.pod:409
25700 #, no-wrap
25701 msgid ""
25702 " char *\n"
25703 " guestfs_aug_get (guestfs_h *g,\n"
25704 "                  const char *augpath);\n"
25705 "\n"
25706 msgstr ""
25707
25708 #. type: textblock
25709 #: ../src/guestfs-actions.pod:416 ../src/guestfs-actions.pod:1019 ../src/guestfs-actions.pod:1037 ../src/guestfs-actions.pod:1097 ../src/guestfs-actions.pod:1113 ../src/guestfs-actions.pod:1216 ../src/guestfs-actions.pod:1705 ../src/guestfs-actions.pod:1722 ../src/guestfs-actions.pod:1741 ../src/guestfs-actions.pod:1875 ../src/guestfs-actions.pod:2063 ../src/guestfs-actions.pod:2175 ../src/guestfs-actions.pod:2338 ../src/guestfs-actions.pod:2355 ../src/guestfs-actions.pod:2422 ../src/guestfs-actions.pod:2465 ../src/guestfs-actions.pod:2486 ../src/guestfs-actions.pod:2671 ../src/guestfs-actions.pod:2885 ../src/guestfs-actions.pod:3089 ../src/guestfs-actions.pod:3191 ../src/guestfs-actions.pod:3295 ../src/guestfs-actions.pod:3314 ../src/guestfs-actions.pod:3529 ../src/guestfs-actions.pod:3557 ../src/guestfs-actions.pod:3578 ../src/guestfs-actions.pod:3612 ../src/guestfs-actions.pod:3679 ../src/guestfs-actions.pod:3699 ../src/guestfs-actions.pod:3719 ../src/guestfs-actions.pod:4359 ../src/guestfs-actions.pod:4706 ../src/guestfs-actions.pod:4873 ../src/guestfs-actions.pod:5132 ../src/guestfs-actions.pod:6025 ../src/guestfs-actions.pod:6226 ../src/guestfs-actions.pod:6414 ../src/guestfs-actions.pod:6592 ../src/guestfs-actions.pod:6641 ../src/guestfs-actions.pod:7301 ../src/guestfs-actions.pod:7317 ../src/guestfs-actions.pod:7341 ../src/guestfs-actions.pod:7365 ../src/guestfs-actions.pod:8161 ../src/guestfs-actions.pod:8180 ../src/guestfs-actions.pod:8198 ../src/guestfs-actions.pod:8372 ../src/guestfs-actions.pod:8686
25710 msgid ""
25711 "This function returns a string, or NULL on error.  I<The caller must free "
25712 "the returned string after use>."
25713 msgstr ""
25714
25715 #. type: =head2
25716 #: ../src/guestfs-actions.pod:421
25717 msgid "guestfs_aug_init"
25718 msgstr ""
25719
25720 #. type: verbatim
25721 #: ../src/guestfs-actions.pod:423
25722 #, no-wrap
25723 msgid ""
25724 " int\n"
25725 " guestfs_aug_init (guestfs_h *g,\n"
25726 "                   const char *root,\n"
25727 "                   int flags);\n"
25728 "\n"
25729 msgstr ""
25730
25731 #. type: textblock
25732 #: ../src/guestfs-actions.pod:432
25733 msgid "You must call this before using any other C<guestfs_aug_*> commands."
25734 msgstr ""
25735
25736 #. type: textblock
25737 #: ../src/guestfs-actions.pod:457
25738 msgid ""
25739 "This option is only useful when debugging Augeas lenses.  Use of this option "
25740 "may require additional memory for the libguestfs appliance.  You may need to "
25741 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
25742 "C<guestfs_set_memsize>."
25743 msgstr ""
25744
25745 #. type: textblock
25746 #: ../src/guestfs-actions.pod:472
25747 msgid "Do not load the tree in C<guestfs_aug_init>."
25748 msgstr ""
25749
25750 #. type: textblock
25751 #: ../src/guestfs-actions.pod:476
25752 msgid "To close the handle, you can call C<guestfs_aug_close>."
25753 msgstr ""
25754
25755 #. type: =head2
25756 #: ../src/guestfs-actions.pod:484
25757 msgid "guestfs_aug_insert"
25758 msgstr ""
25759
25760 #. type: verbatim
25761 #: ../src/guestfs-actions.pod:486
25762 #, no-wrap
25763 msgid ""
25764 " int\n"
25765 " guestfs_aug_insert (guestfs_h *g,\n"
25766 "                     const char *augpath,\n"
25767 "                     const char *label,\n"
25768 "                     int before);\n"
25769 "\n"
25770 msgstr ""
25771
25772 #. type: =head2
25773 #: ../src/guestfs-actions.pod:504
25774 msgid "guestfs_aug_load"
25775 msgstr ""
25776
25777 #. type: verbatim
25778 #: ../src/guestfs-actions.pod:506
25779 #, no-wrap
25780 msgid ""
25781 " int\n"
25782 " guestfs_aug_load (guestfs_h *g);\n"
25783 "\n"
25784 msgstr ""
25785
25786 #. type: =head2
25787 #: ../src/guestfs-actions.pod:518
25788 msgid "guestfs_aug_ls"
25789 msgstr ""
25790
25791 #. type: verbatim
25792 #: ../src/guestfs-actions.pod:520
25793 #, no-wrap
25794 msgid ""
25795 " char **\n"
25796 " guestfs_aug_ls (guestfs_h *g,\n"
25797 "                 const char *augpath);\n"
25798 "\n"
25799 msgstr ""
25800
25801 #. type: textblock
25802 #: ../src/guestfs-actions.pod:524
25803 msgid ""
25804 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
25805 "sorting the resulting nodes into alphabetical order."
25806 msgstr ""
25807
25808 #. type: textblock
25809 #: ../src/guestfs-actions.pod:527 ../src/guestfs-actions.pod:543 ../src/guestfs-actions.pod:689 ../src/guestfs-actions.pod:1235 ../src/guestfs-actions.pod:1890 ../src/guestfs-actions.pod:1909 ../src/guestfs-actions.pod:2012 ../src/guestfs-actions.pod:2031 ../src/guestfs-actions.pod:2277 ../src/guestfs-actions.pod:2743 ../src/guestfs-actions.pod:2759 ../src/guestfs-actions.pod:2778 ../src/guestfs-actions.pod:2843 ../src/guestfs-actions.pod:2867 ../src/guestfs-actions.pod:2938 ../src/guestfs-actions.pod:2987 ../src/guestfs-actions.pod:3256 ../src/guestfs-actions.pod:3631 ../src/guestfs-actions.pod:3915 ../src/guestfs-actions.pod:4229 ../src/guestfs-actions.pod:4246 ../src/guestfs-actions.pod:4266 ../src/guestfs-actions.pod:4321 ../src/guestfs-actions.pod:4341 ../src/guestfs-actions.pod:4446 ../src/guestfs-actions.pod:4845 ../src/guestfs-actions.pod:5751 ../src/guestfs-actions.pod:6386 ../src/guestfs-actions.pod:6512 ../src/guestfs-actions.pod:6626 ../src/guestfs-actions.pod:7381 ../src/guestfs-actions.pod:7442 ../src/guestfs-actions.pod:7497 ../src/guestfs-actions.pod:7643 ../src/guestfs-actions.pod:7667 ../src/guestfs-actions.pod:8265 ../src/guestfs-actions.pod:8285 ../src/guestfs-actions.pod:8332 ../src/guestfs-actions.pod:8526 ../src/guestfs-actions.pod:8545 ../src/guestfs-actions.pod:8636 ../src/guestfs-actions.pod:8655 ../src/guestfs-actions.pod:8701 ../src/guestfs-actions.pod:8720
25810 msgid ""
25811 "This function returns a NULL-terminated array of strings (like "
25812 "L<environ(3)>), or NULL if there was an error.  I<The caller must free the "
25813 "strings and the array after use>."
25814 msgstr ""
25815
25816 #. type: textblock
25817 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:1160 ../src/guestfs-actions.pod:1178 ../src/guestfs-actions.pod:1947 ../src/guestfs-actions.pod:3993 ../src/guestfs-actions.pod:4024 ../src/guestfs-actions.pod:4689 ../src/guestfs-actions.pod:4736 ../src/guestfs-actions.pod:5072 ../src/guestfs-actions.pod:5105 ../src/guestfs-actions.pod:5268 ../src/guestfs-actions.pod:5755 ../src/guestfs-actions.pod:6327 ../src/guestfs-actions.pod:6724 ../src/guestfs-actions.pod:6738 ../src/guestfs-actions.pod:6750 ../src/guestfs-actions.pod:7228 ../src/guestfs-actions.pod:8003 ../src/guestfs-actions.pod:8016 ../src/guestfs-actions.pod:8249 ../src/guestfs-actions.pod:8514
25818 msgid "(Added in 0.8)"
25819 msgstr ""
25820
25821 #. type: =head2
25822 #: ../src/guestfs-actions.pod:533
25823 msgid "guestfs_aug_match"
25824 msgstr ""
25825
25826 #. type: verbatim
25827 #: ../src/guestfs-actions.pod:535
25828 #, no-wrap
25829 msgid ""
25830 " char **\n"
25831 " guestfs_aug_match (guestfs_h *g,\n"
25832 "                    const char *augpath);\n"
25833 "\n"
25834 msgstr ""
25835
25836 #. type: =head2
25837 #: ../src/guestfs-actions.pod:549
25838 msgid "guestfs_aug_mv"
25839 msgstr ""
25840
25841 #. type: verbatim
25842 #: ../src/guestfs-actions.pod:551
25843 #, no-wrap
25844 msgid ""
25845 " int\n"
25846 " guestfs_aug_mv (guestfs_h *g,\n"
25847 "                 const char *src,\n"
25848 "                 const char *dest);\n"
25849 "\n"
25850 msgstr ""
25851
25852 #. type: =head2
25853 #: ../src/guestfs-actions.pod:563
25854 msgid "guestfs_aug_rm"
25855 msgstr ""
25856
25857 #. type: verbatim
25858 #: ../src/guestfs-actions.pod:565
25859 #, no-wrap
25860 msgid ""
25861 " int\n"
25862 " guestfs_aug_rm (guestfs_h *g,\n"
25863 "                 const char *augpath);\n"
25864 "\n"
25865 msgstr ""
25866
25867 #. type: =head2
25868 #: ../src/guestfs-actions.pod:577
25869 msgid "guestfs_aug_save"
25870 msgstr ""
25871
25872 #. type: verbatim
25873 #: ../src/guestfs-actions.pod:579
25874 #, no-wrap
25875 msgid ""
25876 " int\n"
25877 " guestfs_aug_save (guestfs_h *g);\n"
25878 "\n"
25879 msgstr ""
25880
25881 #. type: textblock
25882 #: ../src/guestfs-actions.pod:584
25883 msgid ""
25884 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
25885 "are saved."
25886 msgstr ""
25887
25888 #. type: =head2
25889 #: ../src/guestfs-actions.pod:591
25890 msgid "guestfs_aug_set"
25891 msgstr ""
25892
25893 #. type: verbatim
25894 #: ../src/guestfs-actions.pod:593
25895 #, no-wrap
25896 msgid ""
25897 " int\n"
25898 " guestfs_aug_set (guestfs_h *g,\n"
25899 "                  const char *augpath,\n"
25900 "                  const char *val);\n"
25901 "\n"
25902 msgstr ""
25903
25904 #. type: textblock
25905 #: ../src/guestfs-actions.pod:600
25906 msgid ""
25907 "In the Augeas API, it is possible to clear a node by setting the value to "
25908 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
25909 "this call.  Instead you must use the C<guestfs_aug_clear> call."
25910 msgstr ""
25911
25912 #. type: =head2
25913 #: ../src/guestfs-actions.pod:609
25914 msgid "guestfs_available"
25915 msgstr ""
25916
25917 #. type: verbatim
25918 #: ../src/guestfs-actions.pod:611
25919 #, no-wrap
25920 msgid ""
25921 " int\n"
25922 " guestfs_available (guestfs_h *g,\n"
25923 "                    char *const *groups);\n"
25924 "\n"
25925 msgstr ""
25926
25927 #. type: textblock
25928 #: ../src/guestfs-actions.pod:619
25929 msgid ""
25930 "The libguestfs groups, and the functions that those groups correspond to, "
25931 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
25932 "runtime by calling C<guestfs_available_all_groups>."
25933 msgstr ""
25934
25935 #. type: textblock
25936 #: ../src/guestfs-actions.pod:643
25937 msgid "You must call C<guestfs_launch> before calling this function."
25938 msgstr ""
25939
25940 #. type: textblock
25941 #: ../src/guestfs-actions.pod:665
25942 msgid ""
25943 "This call was added in version C<1.0.80>.  In previous versions of "
25944 "libguestfs all you could do would be to speculatively execute a command to "
25945 "find out if the daemon implemented it.  See also C<guestfs_version>."
25946 msgstr ""
25947
25948 #. type: textblock
25949 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:1692
25950 msgid "(Added in 1.0.80)"
25951 msgstr ""
25952
25953 #. type: =head2
25954 #: ../src/guestfs-actions.pod:676
25955 msgid "guestfs_available_all_groups"
25956 msgstr ""
25957
25958 #. type: verbatim
25959 #: ../src/guestfs-actions.pod:678
25960 #, no-wrap
25961 msgid ""
25962 " char **\n"
25963 " guestfs_available_all_groups (guestfs_h *g);\n"
25964 "\n"
25965 msgstr ""
25966
25967 #. type: textblock
25968 #: ../src/guestfs-actions.pod:681
25969 msgid ""
25970 "This command returns a list of all optional groups that this daemon knows "
25971 "about.  Note this returns both supported and unsupported groups.  To find "
25972 "out which ones the daemon can actually support you have to call "
25973 "C<guestfs_available> on each member of the returned list."
25974 msgstr ""
25975
25976 #. type: textblock
25977 #: ../src/guestfs-actions.pod:687
25978 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
25979 msgstr ""
25980
25981 #. type: textblock
25982 #: ../src/guestfs-actions.pod:693
25983 msgid "(Added in 1.3.15)"
25984 msgstr ""
25985
25986 #. type: =head2
25987 #: ../src/guestfs-actions.pod:695
25988 msgid "guestfs_base64_in"
25989 msgstr ""
25990
25991 #. type: verbatim
25992 #: ../src/guestfs-actions.pod:697
25993 #, no-wrap
25994 msgid ""
25995 " int\n"
25996 " guestfs_base64_in (guestfs_h *g,\n"
25997 "                    const char *base64file,\n"
25998 "                    const char *filename);\n"
25999 "\n"
26000 msgstr ""
26001
26002 #. type: textblock
26003 #: ../src/guestfs-actions.pod:707 ../src/guestfs-actions.pod:721
26004 msgid "(Added in 1.3.5)"
26005 msgstr ""
26006
26007 #. type: =head2
26008 #: ../src/guestfs-actions.pod:709
26009 msgid "guestfs_base64_out"
26010 msgstr ""
26011
26012 #. type: verbatim
26013 #: ../src/guestfs-actions.pod:711
26014 #, no-wrap
26015 msgid ""
26016 " int\n"
26017 " guestfs_base64_out (guestfs_h *g,\n"
26018 "                     const char *filename,\n"
26019 "                     const char *base64file);\n"
26020 "\n"
26021 msgstr ""
26022
26023 #. type: =head2
26024 #: ../src/guestfs-actions.pod:723
26025 msgid "guestfs_blkid"
26026 msgstr ""
26027
26028 #. type: verbatim
26029 #: ../src/guestfs-actions.pod:725
26030 #, no-wrap
26031 msgid ""
26032 " char **\n"
26033 " guestfs_blkid (guestfs_h *g,\n"
26034 "                const char *device);\n"
26035 "\n"
26036 msgstr ""
26037
26038 #. type: textblock
26039 #: ../src/guestfs-actions.pod:756 ../src/guestfs-actions.pod:3231 ../src/guestfs-actions.pod:3499 ../src/guestfs-actions.pod:4306 ../src/guestfs-actions.pod:5045 ../src/guestfs-actions.pod:5731 ../src/guestfs-actions.pod:7928
26040 msgid ""
26041 "This function returns a NULL-terminated array of strings, or NULL if there "
26042 "was an error.  The array of strings will always have length C<2n+1>, where "
26043 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
26044 "caller must free the strings and the array after use>."
26045 msgstr ""
26046
26047 #. type: =head2
26048 #: ../src/guestfs-actions.pod:762
26049 msgid "guestfs_blockdev_flushbufs"
26050 msgstr ""
26051
26052 #. type: verbatim
26053 #: ../src/guestfs-actions.pod:764
26054 #, no-wrap
26055 msgid ""
26056 " int\n"
26057 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
26058 "                             const char *device);\n"
26059 "\n"
26060 msgstr ""
26061
26062 #. type: textblock
26063 #: ../src/guestfs-actions.pod:775 ../src/guestfs-actions.pod:792 ../src/guestfs-actions.pod:807 ../src/guestfs-actions.pod:823 ../src/guestfs-actions.pod:841 ../src/guestfs-actions.pod:860 ../src/guestfs-actions.pod:874 ../src/guestfs-actions.pod:892 ../src/guestfs-actions.pod:906 ../src/guestfs-actions.pod:920
26064 msgid "(Added in 0.9.3)"
26065 msgstr ""
26066
26067 #. type: =head2
26068 #: ../src/guestfs-actions.pod:777
26069 msgid "guestfs_blockdev_getbsz"
26070 msgstr ""
26071
26072 #. type: verbatim
26073 #: ../src/guestfs-actions.pod:779
26074 #, no-wrap
26075 msgid ""
26076 " int\n"
26077 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
26078 "                          const char *device);\n"
26079 "\n"
26080 msgstr ""
26081
26082 #. type: =head2
26083 #: ../src/guestfs-actions.pod:794
26084 msgid "guestfs_blockdev_getro"
26085 msgstr ""
26086
26087 #. type: verbatim
26088 #: ../src/guestfs-actions.pod:796
26089 #, no-wrap
26090 msgid ""
26091 " int\n"
26092 " guestfs_blockdev_getro (guestfs_h *g,\n"
26093 "                         const char *device);\n"
26094 "\n"
26095 msgstr ""
26096
26097 #. type: textblock
26098 #: ../src/guestfs-actions.pod:805 ../src/guestfs-actions.pod:1930 ../src/guestfs-actions.pod:1945 ../src/guestfs-actions.pod:2434 ../src/guestfs-actions.pod:2445 ../src/guestfs-actions.pod:2517 ../src/guestfs-actions.pod:2543 ../src/guestfs-actions.pod:2583 ../src/guestfs-actions.pod:2598 ../src/guestfs-actions.pod:2634 ../src/guestfs-actions.pod:2657 ../src/guestfs-actions.pod:3736 ../src/guestfs-actions.pod:3752 ../src/guestfs-actions.pod:3770 ../src/guestfs-actions.pod:3932 ../src/guestfs-actions.pod:3946 ../src/guestfs-actions.pod:3961 ../src/guestfs-actions.pod:3975 ../src/guestfs-actions.pod:3991 ../src/guestfs-actions.pod:4006 ../src/guestfs-actions.pod:4022 ../src/guestfs-actions.pod:4036 ../src/guestfs-actions.pod:4049 ../src/guestfs-actions.pod:4063 ../src/guestfs-actions.pod:4078 ../src/guestfs-actions.pod:4093 ../src/guestfs-actions.pod:4106 ../src/guestfs-actions.pod:4120 ../src/guestfs-actions.pod:5989
26099 msgid "This function returns a C truth value on success or -1 on error."
26100 msgstr ""
26101
26102 #. type: =head2
26103 #: ../src/guestfs-actions.pod:809
26104 msgid "guestfs_blockdev_getsize64"
26105 msgstr ""
26106
26107 #. type: verbatim
26108 #: ../src/guestfs-actions.pod:811
26109 #, no-wrap
26110 msgid ""
26111 " int64_t\n"
26112 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
26113 "                             const char *device);\n"
26114 "\n"
26115 msgstr ""
26116
26117 #. type: textblock
26118 #: ../src/guestfs-actions.pod:817
26119 msgid "See also C<guestfs_blockdev_getsz>."
26120 msgstr ""
26121
26122 #. type: =head2
26123 #: ../src/guestfs-actions.pod:825
26124 msgid "guestfs_blockdev_getss"
26125 msgstr ""
26126
26127 #. type: verbatim
26128 #: ../src/guestfs-actions.pod:827
26129 #, no-wrap
26130 msgid ""
26131 " int\n"
26132 " guestfs_blockdev_getss (guestfs_h *g,\n"
26133 "                         const char *device);\n"
26134 "\n"
26135 msgstr ""
26136
26137 #. type: textblock
26138 #: ../src/guestfs-actions.pod:834
26139 msgid ""
26140 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
26141 "that)."
26142 msgstr ""
26143
26144 #. type: =head2
26145 #: ../src/guestfs-actions.pod:843
26146 msgid "guestfs_blockdev_getsz"
26147 msgstr ""
26148
26149 #. type: verbatim
26150 #: ../src/guestfs-actions.pod:845
26151 #, no-wrap
26152 msgid ""
26153 " int64_t\n"
26154 " guestfs_blockdev_getsz (guestfs_h *g,\n"
26155 "                         const char *device);\n"
26156 "\n"
26157 msgstr ""
26158
26159 #. type: textblock
26160 #: ../src/guestfs-actions.pod:852
26161 msgid ""
26162 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
26163 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
26164 msgstr ""
26165
26166 #. type: =head2
26167 #: ../src/guestfs-actions.pod:862
26168 msgid "guestfs_blockdev_rereadpt"
26169 msgstr ""
26170
26171 #. type: verbatim
26172 #: ../src/guestfs-actions.pod:864
26173 #, no-wrap
26174 msgid ""
26175 " int\n"
26176 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
26177 "                            const char *device);\n"
26178 "\n"
26179 msgstr ""
26180
26181 #. type: =head2
26182 #: ../src/guestfs-actions.pod:876
26183 msgid "guestfs_blockdev_setbsz"
26184 msgstr ""
26185
26186 #. type: verbatim
26187 #: ../src/guestfs-actions.pod:878
26188 #, no-wrap
26189 msgid ""
26190 " int\n"
26191 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
26192 "                          const char *device,\n"
26193 "                          int blocksize);\n"
26194 "\n"
26195 msgstr ""
26196
26197 #. type: =head2
26198 #: ../src/guestfs-actions.pod:894
26199 msgid "guestfs_blockdev_setro"
26200 msgstr ""
26201
26202 #. type: verbatim
26203 #: ../src/guestfs-actions.pod:896
26204 #, no-wrap
26205 msgid ""
26206 " int\n"
26207 " guestfs_blockdev_setro (guestfs_h *g,\n"
26208 "                         const char *device);\n"
26209 "\n"
26210 msgstr ""
26211
26212 #. type: =head2
26213 #: ../src/guestfs-actions.pod:908
26214 msgid "guestfs_blockdev_setrw"
26215 msgstr ""
26216
26217 #. type: verbatim
26218 #: ../src/guestfs-actions.pod:910
26219 #, no-wrap
26220 msgid ""
26221 " int\n"
26222 " guestfs_blockdev_setrw (guestfs_h *g,\n"
26223 "                         const char *device);\n"
26224 "\n"
26225 msgstr ""
26226
26227 #. type: =head2
26228 #: ../src/guestfs-actions.pod:922
26229 msgid "guestfs_btrfs_filesystem_resize"
26230 msgstr ""
26231
26232 #. type: verbatim
26233 #: ../src/guestfs-actions.pod:924
26234 #, no-wrap
26235 msgid ""
26236 " int\n"
26237 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
26238 "                                  const char *mountpoint,\n"
26239 "                                  ...);\n"
26240 "\n"
26241 msgstr ""
26242
26243 #. type: verbatim
26244 #: ../src/guestfs-actions.pod:934
26245 #, no-wrap
26246 msgid ""
26247 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
26248 "\n"
26249 msgstr ""
26250
26251 #. type: textblock
26252 #: ../src/guestfs-actions.pod:957
26253 msgid "(Added in 1.11.17)"
26254 msgstr ""
26255
26256 #. type: =head2
26257 #: ../src/guestfs-actions.pod:959
26258 msgid "guestfs_btrfs_filesystem_resize_va"
26259 msgstr ""
26260
26261 #. type: verbatim
26262 #: ../src/guestfs-actions.pod:961
26263 #, no-wrap
26264 msgid ""
26265 " int\n"
26266 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
26267 "                                     const char *mountpoint,\n"
26268 "                                     va_list args);\n"
26269 "\n"
26270 msgstr ""
26271
26272 #. type: textblock
26273 #: ../src/guestfs-actions.pod:966
26274 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
26275 msgstr ""
26276
26277 #. type: =head2
26278 #: ../src/guestfs-actions.pod:970
26279 msgid "guestfs_btrfs_filesystem_resize_argv"
26280 msgstr ""
26281
26282 #. type: verbatim
26283 #: ../src/guestfs-actions.pod:972
26284 #, no-wrap
26285 msgid ""
26286 " int\n"
26287 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
26288 "                                       const char *mountpoint,\n"
26289 "                                       const struct "
26290 "guestfs_btrfs_filesystem_resize_argv *optargs);\n"
26291 "\n"
26292 msgstr ""
26293
26294 #. type: textblock
26295 #: ../src/guestfs-actions.pod:977
26296 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
26297 msgstr ""
26298
26299 #. type: =head2
26300 #: ../src/guestfs-actions.pod:981
26301 msgid "guestfs_case_sensitive_path"
26302 msgstr ""
26303
26304 #. type: verbatim
26305 #: ../src/guestfs-actions.pod:983
26306 #, no-wrap
26307 msgid ""
26308 " char *\n"
26309 " guestfs_case_sensitive_path (guestfs_h *g,\n"
26310 "                              const char *path);\n"
26311 "\n"
26312 msgstr ""
26313
26314 #. type: textblock
26315 #: ../src/guestfs-actions.pod:1009
26316 msgid ""
26317 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return "
26318 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
26319 "how the directories were originally created under Windows)."
26320 msgstr ""
26321
26322 #. type: textblock
26323 #: ../src/guestfs-actions.pod:1017
26324 msgid "See also C<guestfs_realpath>."
26325 msgstr ""
26326
26327 #. type: textblock
26328 #: ../src/guestfs-actions.pod:1022 ../src/guestfs-actions.pod:8183
26329 msgid "(Added in 1.0.75)"
26330 msgstr ""
26331
26332 #. type: =head2
26333 #: ../src/guestfs-actions.pod:1024
26334 msgid "guestfs_cat"
26335 msgstr ""
26336
26337 #. type: verbatim
26338 #: ../src/guestfs-actions.pod:1026
26339 #, no-wrap
26340 msgid ""
26341 " char *\n"
26342 " guestfs_cat (guestfs_h *g,\n"
26343 "              const char *path);\n"
26344 "\n"
26345 msgstr ""
26346
26347 #. type: textblock
26348 #: ../src/guestfs-actions.pod:1032
26349 msgid ""
26350 "Note that this function cannot correctly handle binary files (specifically, "
26351 "files containing C<\\0> character which is treated as end of string).  For "
26352 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
26353 "functions which have a more complex interface."
26354 msgstr ""
26355
26356 #. type: textblock
26357 #: ../src/guestfs-actions.pod:1043 ../src/guestfs-actions.pod:4250 ../src/guestfs-actions.pod:4345 ../src/guestfs-actions.pod:4362 ../src/guestfs-actions.pod:4450 ../src/guestfs-actions.pod:4849 ../src/guestfs-actions.pod:4863 ../src/guestfs-actions.pod:6390 ../src/guestfs-actions.pod:6404 ../src/guestfs-actions.pod:8336 ../src/guestfs-actions.pod:8350
26358 msgid "(Added in 0.4)"
26359 msgstr ""
26360
26361 #. type: =head2
26362 #: ../src/guestfs-actions.pod:1045
26363 msgid "guestfs_checksum"
26364 msgstr ""
26365
26366 #. type: verbatim
26367 #: ../src/guestfs-actions.pod:1047
26368 #, no-wrap
26369 msgid ""
26370 " char *\n"
26371 " guestfs_checksum (guestfs_h *g,\n"
26372 "                   const char *csumtype,\n"
26373 "                   const char *path);\n"
26374 "\n"
26375 msgstr ""
26376
26377 #. type: textblock
26378 #: ../src/guestfs-actions.pod:1093
26379 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
26380 msgstr ""
26381
26382 #. type: textblock
26383 #: ../src/guestfs-actions.pod:1095
26384 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
26385 msgstr ""
26386
26387 #. type: textblock
26388 #: ../src/guestfs-actions.pod:1100 ../src/guestfs-actions.pod:1767 ../src/guestfs-actions.pod:2625 ../src/guestfs-actions.pod:3948 ../src/guestfs-actions.pod:3977 ../src/guestfs-actions.pod:4038 ../src/guestfs-actions.pod:4065 ../src/guestfs-actions.pod:8039
26389 msgid "(Added in 1.0.2)"
26390 msgstr ""
26391
26392 #. type: =head2
26393 #: ../src/guestfs-actions.pod:1102
26394 msgid "guestfs_checksum_device"
26395 msgstr ""
26396
26397 #. type: verbatim
26398 #: ../src/guestfs-actions.pod:1104
26399 #, no-wrap
26400 msgid ""
26401 " char *\n"
26402 " guestfs_checksum_device (guestfs_h *g,\n"
26403 "                          const char *csumtype,\n"
26404 "                          const char *device);\n"
26405 "\n"
26406 msgstr ""
26407
26408 #. type: textblock
26409 #: ../src/guestfs-actions.pod:1109
26410 msgid ""
26411 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
26412 "device named C<device>.  For the types of checksums supported see the "
26413 "C<guestfs_checksum> command."
26414 msgstr ""
26415
26416 #. type: textblock
26417 #: ../src/guestfs-actions.pod:1116 ../src/guestfs-actions.pod:5822 ../src/guestfs-actions.pod:5957 ../src/guestfs-actions.pod:5991 ../src/guestfs-actions.pod:6009 ../src/guestfs-actions.pod:6191 ../src/guestfs-actions.pod:7948 ../src/guestfs-actions.pod:7962 ../src/guestfs-actions.pod:8362
26418 msgid "(Added in 1.3.2)"
26419 msgstr ""
26420
26421 #. type: =head2
26422 #: ../src/guestfs-actions.pod:1118
26423 msgid "guestfs_checksums_out"
26424 msgstr ""
26425
26426 #. type: verbatim
26427 #: ../src/guestfs-actions.pod:1120
26428 #, no-wrap
26429 msgid ""
26430 " int\n"
26431 " guestfs_checksums_out (guestfs_h *g,\n"
26432 "                        const char *csumtype,\n"
26433 "                        const char *directory,\n"
26434 "                        const char *sumsfile);\n"
26435 "\n"
26436 msgstr ""
26437
26438 #. type: textblock
26439 #: ../src/guestfs-actions.pod:1140
26440 msgid "(Added in 1.3.7)"
26441 msgstr ""
26442
26443 #. type: =head2
26444 #: ../src/guestfs-actions.pod:1142
26445 msgid "guestfs_chmod"
26446 msgstr ""
26447
26448 #. type: verbatim
26449 #: ../src/guestfs-actions.pod:1144
26450 #, no-wrap
26451 msgid ""
26452 " int\n"
26453 " guestfs_chmod (guestfs_h *g,\n"
26454 "                int mode,\n"
26455 "                const char *path);\n"
26456 "\n"
26457 msgstr ""
26458
26459 #. type: =head2
26460 #: ../src/guestfs-actions.pod:1162
26461 msgid "guestfs_chown"
26462 msgstr ""
26463
26464 #. type: verbatim
26465 #: ../src/guestfs-actions.pod:1164
26466 #, no-wrap
26467 msgid ""
26468 " int\n"
26469 " guestfs_chown (guestfs_h *g,\n"
26470 "                int owner,\n"
26471 "                int group,\n"
26472 "                const char *path);\n"
26473 "\n"
26474 msgstr ""
26475
26476 #. type: =head2
26477 #: ../src/guestfs-actions.pod:1180
26478 msgid "guestfs_command"
26479 msgstr ""
26480
26481 #. type: verbatim
26482 #: ../src/guestfs-actions.pod:1182
26483 #, no-wrap
26484 msgid ""
26485 " char *\n"
26486 " guestfs_command (guestfs_h *g,\n"
26487 "                  char *const *arguments);\n"
26488 "\n"
26489 msgstr ""
26490
26491 #. type: textblock
26492 #: ../src/guestfs-actions.pod:1191
26493 msgid ""
26494 "The single parameter is an argv-style list of arguments.  The first element "
26495 "is the name of the program to run.  Subsequent elements are parameters.  The "
26496 "list must be non-empty (ie. must contain a program name).  Note that the "
26497 "command runs directly, and is I<not> invoked via the shell (see "
26498 "C<guestfs_sh>)."
26499 msgstr ""
26500
26501 #. type: textblock
26502 #: ../src/guestfs-actions.pod:1222 ../src/guestfs-actions.pod:1242 ../src/guestfs-actions.pod:2066
26503 msgid "(Added in 0.9.1)"
26504 msgstr ""
26505
26506 #. type: =head2
26507 #: ../src/guestfs-actions.pod:1224
26508 msgid "guestfs_command_lines"
26509 msgstr ""
26510
26511 #. type: verbatim
26512 #: ../src/guestfs-actions.pod:1226
26513 #, no-wrap
26514 msgid ""
26515 " char **\n"
26516 " guestfs_command_lines (guestfs_h *g,\n"
26517 "                        char *const *arguments);\n"
26518 "\n"
26519 msgstr ""
26520
26521 #. type: textblock
26522 #: ../src/guestfs-actions.pod:1230
26523 msgid ""
26524 "This is the same as C<guestfs_command>, but splits the result into a list of "
26525 "lines."
26526 msgstr ""
26527
26528 #. type: textblock
26529 #: ../src/guestfs-actions.pod:1233
26530 msgid "See also: C<guestfs_sh_lines>"
26531 msgstr ""
26532
26533 #. type: =head2
26534 #: ../src/guestfs-actions.pod:1244
26535 msgid "guestfs_compress_device_out"
26536 msgstr ""
26537
26538 #. type: verbatim
26539 #: ../src/guestfs-actions.pod:1246
26540 #, no-wrap
26541 msgid ""
26542 " int\n"
26543 " guestfs_compress_device_out (guestfs_h *g,\n"
26544 "                              const char *ctype,\n"
26545 "                              const char *device,\n"
26546 "                              const char *zdevice,\n"
26547 "                              ...);\n"
26548 "\n"
26549 msgstr ""
26550
26551 #. type: verbatim
26552 #: ../src/guestfs-actions.pod:1258
26553 #, no-wrap
26554 msgid ""
26555 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
26556 "\n"
26557 msgstr ""
26558
26559 #. type: textblock
26560 #: ../src/guestfs-actions.pod:1263
26561 msgid ""
26562 "The C<ctype> and optional C<level> parameters have the same meaning as in "
26563 "C<guestfs_compress_out>."
26564 msgstr ""
26565
26566 #. type: textblock
26567 #: ../src/guestfs-actions.pod:1268 ../src/guestfs-actions.pod:1327 ../src/guestfs-actions.pod:2611 ../src/guestfs-actions.pod:7107
26568 msgid "(Added in 1.13.15)"
26569 msgstr ""
26570
26571 #. type: =head2
26572 #: ../src/guestfs-actions.pod:1270
26573 msgid "guestfs_compress_device_out_va"
26574 msgstr ""
26575
26576 #. type: verbatim
26577 #: ../src/guestfs-actions.pod:1272
26578 #, no-wrap
26579 msgid ""
26580 " int\n"
26581 " guestfs_compress_device_out_va (guestfs_h *g,\n"
26582 "                                 const char *ctype,\n"
26583 "                                 const char *device,\n"
26584 "                                 const char *zdevice,\n"
26585 "                                 va_list args);\n"
26586 "\n"
26587 msgstr ""
26588
26589 #. type: textblock
26590 #: ../src/guestfs-actions.pod:1279
26591 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
26592 msgstr ""
26593
26594 #. type: =head2
26595 #: ../src/guestfs-actions.pod:1283
26596 msgid "guestfs_compress_device_out_argv"
26597 msgstr ""
26598
26599 #. type: verbatim
26600 #: ../src/guestfs-actions.pod:1285
26601 #, no-wrap
26602 msgid ""
26603 " int\n"
26604 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
26605 "                                   const char *ctype,\n"
26606 "                                   const char *device,\n"
26607 "                                   const char *zdevice,\n"
26608 "                                   const struct "
26609 "guestfs_compress_device_out_argv *optargs);\n"
26610 "\n"
26611 msgstr ""
26612
26613 #. type: textblock
26614 #: ../src/guestfs-actions.pod:1292
26615 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
26616 msgstr ""
26617
26618 #. type: =head2
26619 #: ../src/guestfs-actions.pod:1296
26620 msgid "guestfs_compress_out"
26621 msgstr ""
26622
26623 #. type: verbatim
26624 #: ../src/guestfs-actions.pod:1298
26625 #, no-wrap
26626 msgid ""
26627 " int\n"
26628 " guestfs_compress_out (guestfs_h *g,\n"
26629 "                       const char *ctype,\n"
26630 "                       const char *file,\n"
26631 "                       const char *zfile,\n"
26632 "                       ...);\n"
26633 "\n"
26634 msgstr ""
26635
26636 #. type: verbatim
26637 #: ../src/guestfs-actions.pod:1310
26638 #, no-wrap
26639 msgid ""
26640 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
26641 "\n"
26642 msgstr ""
26643
26644 #. type: =head2
26645 #: ../src/guestfs-actions.pod:1329
26646 msgid "guestfs_compress_out_va"
26647 msgstr ""
26648
26649 #. type: verbatim
26650 #: ../src/guestfs-actions.pod:1331
26651 #, no-wrap
26652 msgid ""
26653 " int\n"
26654 " guestfs_compress_out_va (guestfs_h *g,\n"
26655 "                          const char *ctype,\n"
26656 "                          const char *file,\n"
26657 "                          const char *zfile,\n"
26658 "                          va_list args);\n"
26659 "\n"
26660 msgstr ""
26661
26662 #. type: textblock
26663 #: ../src/guestfs-actions.pod:1338
26664 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
26665 msgstr ""
26666
26667 #. type: =head2
26668 #: ../src/guestfs-actions.pod:1342
26669 msgid "guestfs_compress_out_argv"
26670 msgstr ""
26671
26672 #. type: verbatim
26673 #: ../src/guestfs-actions.pod:1344
26674 #, no-wrap
26675 msgid ""
26676 " int\n"
26677 " guestfs_compress_out_argv (guestfs_h *g,\n"
26678 "                            const char *ctype,\n"
26679 "                            const char *file,\n"
26680 "                            const char *zfile,\n"
26681 "                            const struct guestfs_compress_out_argv "
26682 "*optargs);\n"
26683 "\n"
26684 msgstr ""
26685
26686 #. type: textblock
26687 #: ../src/guestfs-actions.pod:1351
26688 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
26689 msgstr ""
26690
26691 #. type: =head2
26692 #: ../src/guestfs-actions.pod:1355
26693 msgid "guestfs_config"
26694 msgstr ""
26695
26696 #. type: verbatim
26697 #: ../src/guestfs-actions.pod:1357
26698 #, no-wrap
26699 msgid ""
26700 " int\n"
26701 " guestfs_config (guestfs_h *g,\n"
26702 "                 const char *qemuparam,\n"
26703 "                 const char *qemuvalue);\n"
26704 "\n"
26705 msgstr ""
26706
26707 #. type: =head2
26708 #: ../src/guestfs-actions.pod:1375
26709 msgid "guestfs_copy_device_to_device"
26710 msgstr ""
26711
26712 #. type: verbatim
26713 #: ../src/guestfs-actions.pod:1377
26714 #, no-wrap
26715 msgid ""
26716 " int\n"
26717 " guestfs_copy_device_to_device (guestfs_h *g,\n"
26718 "                                const char *src,\n"
26719 "                                const char *dest,\n"
26720 "                                ...);\n"
26721 "\n"
26722 msgstr ""
26723
26724 #. type: verbatim
26725 #: ../src/guestfs-actions.pod:1388
26726 #, no-wrap
26727 msgid ""
26728 " GUESTFS_COPY_DEVICE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
26729 " GUESTFS_COPY_DEVICE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
26730 " GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, int64_t size,\n"
26731 "\n"
26732 msgstr ""
26733
26734 #. type: textblock
26735 #: ../src/guestfs-actions.pod:1392
26736 msgid ""
26737 "The four calls C<guestfs_copy_device_to_device>, "
26738 "C<guestfs_copy_device_to_file>, C<guestfs_copy_file_to_device>, and "
26739 "C<guestfs_copy_file_to_file> let you copy from a source (device|file) to a "
26740 "destination (device|file)."
26741 msgstr ""
26742
26743 #. type: textblock
26744 #: ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:1466 ../src/guestfs-actions.pod:1519 ../src/guestfs-actions.pod:1577 ../src/guestfs-actions.pod:1631 ../src/guestfs-actions.pod:1762 ../src/guestfs-actions.pod:1793 ../src/guestfs-actions.pod:1838 ../src/guestfs-actions.pod:2215 ../src/guestfs-actions.pod:2237 ../src/guestfs-actions.pod:4148 ../src/guestfs-actions.pod:8034 ../src/guestfs-actions.pod:8068 ../src/guestfs-actions.pod:8575 ../src/guestfs-actions.pod:8598
26745 msgid ""
26746 "This long-running command can generate progress notification messages so "
26747 "that the caller can display a progress bar or indicator.  To receive these "
26748 "messages, the caller must register a progress event callback.  See "
26749 "L<guestfs(3)/GUESTFS_EVENT_PROGRESS>."
26750 msgstr ""
26751
26752 #. type: textblock
26753 #: ../src/guestfs-actions.pod:1418 ../src/guestfs-actions.pod:1471 ../src/guestfs-actions.pod:1524 ../src/guestfs-actions.pod:1582 ../src/guestfs-actions.pod:6247
26754 msgid "(Added in 1.13.25)"
26755 msgstr ""
26756
26757 #. type: =head2
26758 #: ../src/guestfs-actions.pod:1420
26759 msgid "guestfs_copy_device_to_device_va"
26760 msgstr ""
26761
26762 #. type: verbatim
26763 #: ../src/guestfs-actions.pod:1422
26764 #, no-wrap
26765 msgid ""
26766 " int\n"
26767 " guestfs_copy_device_to_device_va (guestfs_h *g,\n"
26768 "                                   const char *src,\n"
26769 "                                   const char *dest,\n"
26770 "                                   va_list args);\n"
26771 "\n"
26772 msgstr ""
26773
26774 #. type: textblock
26775 #: ../src/guestfs-actions.pod:1428
26776 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_device>."
26777 msgstr ""
26778
26779 #. type: =head2
26780 #: ../src/guestfs-actions.pod:1432
26781 msgid "guestfs_copy_device_to_device_argv"
26782 msgstr ""
26783
26784 #. type: verbatim
26785 #: ../src/guestfs-actions.pod:1434
26786 #, no-wrap
26787 msgid ""
26788 " int\n"
26789 " guestfs_copy_device_to_device_argv (guestfs_h *g,\n"
26790 "                                     const char *src,\n"
26791 "                                     const char *dest,\n"
26792 "                                     const struct "
26793 "guestfs_copy_device_to_device_argv *optargs);\n"
26794 "\n"
26795 msgstr ""
26796
26797 #. type: textblock
26798 #: ../src/guestfs-actions.pod:1440
26799 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_device>."
26800 msgstr ""
26801
26802 #. type: =head2
26803 #: ../src/guestfs-actions.pod:1444
26804 msgid "guestfs_copy_device_to_file"
26805 msgstr ""
26806
26807 #. type: verbatim
26808 #: ../src/guestfs-actions.pod:1446
26809 #, no-wrap
26810 msgid ""
26811 " int\n"
26812 " guestfs_copy_device_to_file (guestfs_h *g,\n"
26813 "                              const char *src,\n"
26814 "                              const char *dest,\n"
26815 "                              ...);\n"
26816 "\n"
26817 msgstr ""
26818
26819 #. type: verbatim
26820 #: ../src/guestfs-actions.pod:1457
26821 #, no-wrap
26822 msgid ""
26823 " GUESTFS_COPY_DEVICE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
26824 " GUESTFS_COPY_DEVICE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
26825 " GUESTFS_COPY_DEVICE_TO_FILE_SIZE, int64_t size,\n"
26826 "\n"
26827 msgstr ""
26828
26829 #. type: textblock
26830 #: ../src/guestfs-actions.pod:1461 ../src/guestfs-actions.pod:1514 ../src/guestfs-actions.pod:1567
26831 msgid "See C<guestfs_copy_device_to_device> for a general overview of this call."
26832 msgstr ""
26833
26834 #. type: =head2
26835 #: ../src/guestfs-actions.pod:1473
26836 msgid "guestfs_copy_device_to_file_va"
26837 msgstr ""
26838
26839 #. type: verbatim
26840 #: ../src/guestfs-actions.pod:1475
26841 #, no-wrap
26842 msgid ""
26843 " int\n"
26844 " guestfs_copy_device_to_file_va (guestfs_h *g,\n"
26845 "                                 const char *src,\n"
26846 "                                 const char *dest,\n"
26847 "                                 va_list args);\n"
26848 "\n"
26849 msgstr ""
26850
26851 #. type: textblock
26852 #: ../src/guestfs-actions.pod:1481
26853 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_file>."
26854 msgstr ""
26855
26856 #. type: =head2
26857 #: ../src/guestfs-actions.pod:1485
26858 msgid "guestfs_copy_device_to_file_argv"
26859 msgstr ""
26860
26861 #. type: verbatim
26862 #: ../src/guestfs-actions.pod:1487
26863 #, no-wrap
26864 msgid ""
26865 " int\n"
26866 " guestfs_copy_device_to_file_argv (guestfs_h *g,\n"
26867 "                                   const char *src,\n"
26868 "                                   const char *dest,\n"
26869 "                                   const struct "
26870 "guestfs_copy_device_to_file_argv *optargs);\n"
26871 "\n"
26872 msgstr ""
26873
26874 #. type: textblock
26875 #: ../src/guestfs-actions.pod:1493
26876 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_file>."
26877 msgstr ""
26878
26879 #. type: =head2
26880 #: ../src/guestfs-actions.pod:1497
26881 msgid "guestfs_copy_file_to_device"
26882 msgstr ""
26883
26884 #. type: verbatim
26885 #: ../src/guestfs-actions.pod:1499
26886 #, no-wrap
26887 msgid ""
26888 " int\n"
26889 " guestfs_copy_file_to_device (guestfs_h *g,\n"
26890 "                              const char *src,\n"
26891 "                              const char *dest,\n"
26892 "                              ...);\n"
26893 "\n"
26894 msgstr ""
26895
26896 #. type: verbatim
26897 #: ../src/guestfs-actions.pod:1510
26898 #, no-wrap
26899 msgid ""
26900 " GUESTFS_COPY_FILE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
26901 " GUESTFS_COPY_FILE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
26902 " GUESTFS_COPY_FILE_TO_DEVICE_SIZE, int64_t size,\n"
26903 "\n"
26904 msgstr ""
26905
26906 #. type: =head2
26907 #: ../src/guestfs-actions.pod:1526
26908 msgid "guestfs_copy_file_to_device_va"
26909 msgstr ""
26910
26911 #. type: verbatim
26912 #: ../src/guestfs-actions.pod:1528
26913 #, no-wrap
26914 msgid ""
26915 " int\n"
26916 " guestfs_copy_file_to_device_va (guestfs_h *g,\n"
26917 "                                 const char *src,\n"
26918 "                                 const char *dest,\n"
26919 "                                 va_list args);\n"
26920 "\n"
26921 msgstr ""
26922
26923 #. type: textblock
26924 #: ../src/guestfs-actions.pod:1534
26925 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_device>."
26926 msgstr ""
26927
26928 #. type: =head2
26929 #: ../src/guestfs-actions.pod:1538
26930 msgid "guestfs_copy_file_to_device_argv"
26931 msgstr ""
26932
26933 #. type: verbatim
26934 #: ../src/guestfs-actions.pod:1540
26935 #, no-wrap
26936 msgid ""
26937 " int\n"
26938 " guestfs_copy_file_to_device_argv (guestfs_h *g,\n"
26939 "                                   const char *src,\n"
26940 "                                   const char *dest,\n"
26941 "                                   const struct "
26942 "guestfs_copy_file_to_device_argv *optargs);\n"
26943 "\n"
26944 msgstr ""
26945
26946 #. type: textblock
26947 #: ../src/guestfs-actions.pod:1546
26948 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_device>."
26949 msgstr ""
26950
26951 #. type: =head2
26952 #: ../src/guestfs-actions.pod:1550
26953 msgid "guestfs_copy_file_to_file"
26954 msgstr ""
26955
26956 #. type: verbatim
26957 #: ../src/guestfs-actions.pod:1552
26958 #, no-wrap
26959 msgid ""
26960 " int\n"
26961 " guestfs_copy_file_to_file (guestfs_h *g,\n"
26962 "                            const char *src,\n"
26963 "                            const char *dest,\n"
26964 "                            ...);\n"
26965 "\n"
26966 msgstr ""
26967
26968 #. type: verbatim
26969 #: ../src/guestfs-actions.pod:1563
26970 #, no-wrap
26971 msgid ""
26972 " GUESTFS_COPY_FILE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
26973 " GUESTFS_COPY_FILE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
26974 " GUESTFS_COPY_FILE_TO_FILE_SIZE, int64_t size,\n"
26975 "\n"
26976 msgstr ""
26977
26978 #. type: textblock
26979 #: ../src/guestfs-actions.pod:1570
26980 msgid ""
26981 "This is B<not> the function you want for copying files.  This is for copying "
26982 "blocks within existing files.  See C<guestfs_cp>, C<guestfs_cp_a> and "
26983 "C<guestfs_mv> for general file copying and moving functions."
26984 msgstr ""
26985
26986 #. type: =head2
26987 #: ../src/guestfs-actions.pod:1584
26988 msgid "guestfs_copy_file_to_file_va"
26989 msgstr ""
26990
26991 #. type: verbatim
26992 #: ../src/guestfs-actions.pod:1586
26993 #, no-wrap
26994 msgid ""
26995 " int\n"
26996 " guestfs_copy_file_to_file_va (guestfs_h *g,\n"
26997 "                               const char *src,\n"
26998 "                               const char *dest,\n"
26999 "                               va_list args);\n"
27000 "\n"
27001 msgstr ""
27002
27003 #. type: textblock
27004 #: ../src/guestfs-actions.pod:1592
27005 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_file>."
27006 msgstr ""
27007
27008 #. type: =head2
27009 #: ../src/guestfs-actions.pod:1596
27010 msgid "guestfs_copy_file_to_file_argv"
27011 msgstr ""
27012
27013 #. type: verbatim
27014 #: ../src/guestfs-actions.pod:1598
27015 #, no-wrap
27016 msgid ""
27017 " int\n"
27018 " guestfs_copy_file_to_file_argv (guestfs_h *g,\n"
27019 "                                 const char *src,\n"
27020 "                                 const char *dest,\n"
27021 "                                 const struct guestfs_copy_file_to_file_argv "
27022 "*optargs);\n"
27023 "\n"
27024 msgstr ""
27025
27026 #. type: textblock
27027 #: ../src/guestfs-actions.pod:1604
27028 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_file>."
27029 msgstr ""
27030
27031 #. type: =head2
27032 #: ../src/guestfs-actions.pod:1608
27033 msgid "guestfs_copy_size"
27034 msgstr ""
27035
27036 #. type: verbatim
27037 #: ../src/guestfs-actions.pod:1610
27038 #, no-wrap
27039 msgid ""
27040 " int\n"
27041 " guestfs_copy_size (guestfs_h *g,\n"
27042 "                    const char *src,\n"
27043 "                    const char *dest,\n"
27044 "                    int64_t size);\n"
27045 "\n"
27046 msgstr ""
27047
27048 #. type: textblock
27049 #: ../src/guestfs-actions.pod:1616 ../src/guestfs-actions.pod:1673
27050 msgid ""
27051 "I<This function is deprecated.> In new code, use the "
27052 "L</guestfs_copy_device_to_device> call instead."
27053 msgstr ""
27054
27055 #. type: textblock
27056 #: ../src/guestfs-actions.pod:1636 ../src/guestfs-actions.pod:4876 ../src/guestfs-actions.pod:6417 ../src/guestfs-actions.pod:8269 ../src/guestfs-actions.pod:8289 ../src/guestfs-actions.pod:8375
27057 msgid "(Added in 1.0.87)"
27058 msgstr ""
27059
27060 #. type: =head2
27061 #: ../src/guestfs-actions.pod:1638
27062 msgid "guestfs_cp"
27063 msgstr ""
27064
27065 #. type: verbatim
27066 #: ../src/guestfs-actions.pod:1640
27067 #, no-wrap
27068 msgid ""
27069 " int\n"
27070 " guestfs_cp (guestfs_h *g,\n"
27071 "             const char *src,\n"
27072 "             const char *dest);\n"
27073 "\n"
27074 msgstr ""
27075
27076 #. type: textblock
27077 #: ../src/guestfs-actions.pod:1650 ../src/guestfs-actions.pod:1664 ../src/guestfs-actions.pod:1744 ../src/guestfs-actions.pod:1818 ../src/guestfs-actions.pod:1932 ../src/guestfs-actions.pod:5769 ../src/guestfs-actions.pod:6261
27078 msgid "(Added in 1.0.18)"
27079 msgstr ""
27080
27081 #. type: =head2
27082 #: ../src/guestfs-actions.pod:1652
27083 msgid "guestfs_cp_a"
27084 msgstr ""
27085
27086 #. type: verbatim
27087 #: ../src/guestfs-actions.pod:1654
27088 #, no-wrap
27089 msgid ""
27090 " int\n"
27091 " guestfs_cp_a (guestfs_h *g,\n"
27092 "               const char *src,\n"
27093 "               const char *dest);\n"
27094 "\n"
27095 msgstr ""
27096
27097 #. type: =head2
27098 #: ../src/guestfs-actions.pod:1666
27099 msgid "guestfs_dd"
27100 msgstr ""
27101
27102 #. type: verbatim
27103 #: ../src/guestfs-actions.pod:1668
27104 #, no-wrap
27105 msgid ""
27106 " int\n"
27107 " guestfs_dd (guestfs_h *g,\n"
27108 "             const char *src,\n"
27109 "             const char *dest);\n"
27110 "\n"
27111 msgstr ""
27112
27113 #. type: textblock
27114 #: ../src/guestfs-actions.pod:1685
27115 msgid ""
27116 "If the destination is a device, it must be as large or larger than the "
27117 "source file or device, otherwise the copy will fail.  This command cannot do "
27118 "partial copies (see C<guestfs_copy_device_to_device>)."
27119 msgstr ""
27120
27121 #. type: =head2
27122 #: ../src/guestfs-actions.pod:1694
27123 msgid "guestfs_df"
27124 msgstr ""
27125
27126 #. type: verbatim
27127 #: ../src/guestfs-actions.pod:1696
27128 #, no-wrap
27129 msgid ""
27130 " char *\n"
27131 " guestfs_df (guestfs_h *g);\n"
27132 "\n"
27133 msgstr ""
27134
27135 #. type: textblock
27136 #: ../src/guestfs-actions.pod:1701 ../src/guestfs-actions.pod:1718
27137 msgid ""
27138 "This command is mostly useful for interactive sessions.  It is I<not> "
27139 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
27140 "from programs."
27141 msgstr ""
27142
27143 #. type: textblock
27144 #: ../src/guestfs-actions.pod:1708 ../src/guestfs-actions.pod:1725 ../src/guestfs-actions.pod:1843 ../src/guestfs-actions.pod:2850 ../src/guestfs-actions.pod:2874 ../src/guestfs-actions.pod:2942 ../src/guestfs-actions.pod:5135 ../src/guestfs-actions.pod:5669 ../src/guestfs-actions.pod:7650 ../src/guestfs-actions.pod:7674 ../src/guestfs-actions.pod:8415 ../src/guestfs-actions.pod:8428 ../src/guestfs-actions.pod:8441
27145 msgid "(Added in 1.0.54)"
27146 msgstr ""
27147
27148 #. type: =head2
27149 #: ../src/guestfs-actions.pod:1710
27150 msgid "guestfs_df_h"
27151 msgstr ""
27152
27153 #. type: verbatim
27154 #: ../src/guestfs-actions.pod:1712
27155 #, no-wrap
27156 msgid ""
27157 " char *\n"
27158 " guestfs_df_h (guestfs_h *g);\n"
27159 "\n"
27160 msgstr ""
27161
27162 #. type: =head2
27163 #: ../src/guestfs-actions.pod:1727
27164 msgid "guestfs_dmesg"
27165 msgstr ""
27166
27167 #. type: verbatim
27168 #: ../src/guestfs-actions.pod:1729
27169 #, no-wrap
27170 msgid ""
27171 " char *\n"
27172 " guestfs_dmesg (guestfs_h *g);\n"
27173 "\n"
27174 msgstr ""
27175
27176 #. type: textblock
27177 #: ../src/guestfs-actions.pod:1736
27178 msgid ""
27179 "Another way to get the same information is to enable verbose messages with "
27180 "C<guestfs_set_verbose> or by setting the environment variable "
27181 "C<LIBGUESTFS_DEBUG=1> before running the program."
27182 msgstr ""
27183
27184 #. type: =head2
27185 #: ../src/guestfs-actions.pod:1746
27186 msgid "guestfs_download"
27187 msgstr ""
27188
27189 #. type: verbatim
27190 #: ../src/guestfs-actions.pod:1748
27191 #, no-wrap
27192 msgid ""
27193 " int\n"
27194 " guestfs_download (guestfs_h *g,\n"
27195 "                   const char *remotefilename,\n"
27196 "                   const char *filename);\n"
27197 "\n"
27198 msgstr ""
27199
27200 #. type: textblock
27201 #: ../src/guestfs-actions.pod:1758
27202 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
27203 msgstr ""
27204
27205 #. type: =head2
27206 #: ../src/guestfs-actions.pod:1769
27207 msgid "guestfs_download_offset"
27208 msgstr ""
27209
27210 #. type: verbatim
27211 #: ../src/guestfs-actions.pod:1771
27212 #, no-wrap
27213 msgid ""
27214 " int\n"
27215 " guestfs_download_offset (guestfs_h *g,\n"
27216 "                          const char *remotefilename,\n"
27217 "                          const char *filename,\n"
27218 "                          int64_t offset,\n"
27219 "                          int64_t size);\n"
27220 "\n"
27221 msgstr ""
27222
27223 #. type: textblock
27224 #: ../src/guestfs-actions.pod:1784
27225 msgid ""
27226 "Note that there is no limit on the amount of data that can be downloaded "
27227 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
27228 "full amount unless an error occurs."
27229 msgstr ""
27230
27231 #. type: textblock
27232 #: ../src/guestfs-actions.pod:1789
27233 msgid "See also C<guestfs_download>, C<guestfs_pread>."
27234 msgstr ""
27235
27236 #. type: textblock
27237 #: ../src/guestfs-actions.pod:1798 ../src/guestfs-actions.pod:8073
27238 msgid "(Added in 1.5.17)"
27239 msgstr ""
27240
27241 #. type: =head2
27242 #: ../src/guestfs-actions.pod:1800
27243 msgid "guestfs_drop_caches"
27244 msgstr ""
27245
27246 #. type: verbatim
27247 #: ../src/guestfs-actions.pod:1802
27248 #, no-wrap
27249 msgid ""
27250 " int\n"
27251 " guestfs_drop_caches (guestfs_h *g,\n"
27252 "                      int whattodrop);\n"
27253 "\n"
27254 msgstr ""
27255
27256 #. type: =head2
27257 #: ../src/guestfs-actions.pod:1820
27258 msgid "guestfs_du"
27259 msgstr ""
27260
27261 #. type: verbatim
27262 #: ../src/guestfs-actions.pod:1822
27263 #, no-wrap
27264 msgid ""
27265 " int64_t\n"
27266 " guestfs_du (guestfs_h *g,\n"
27267 "             const char *path);\n"
27268 "\n"
27269 msgstr ""
27270
27271 #. type: =head2
27272 #: ../src/guestfs-actions.pod:1845
27273 msgid "guestfs_e2fsck_f"
27274 msgstr ""
27275
27276 #. type: verbatim
27277 #: ../src/guestfs-actions.pod:1847
27278 #, no-wrap
27279 msgid ""
27280 " int\n"
27281 " guestfs_e2fsck_f (guestfs_h *g,\n"
27282 "                   const char *device);\n"
27283 "\n"
27284 msgstr ""
27285
27286 #. type: textblock
27287 #: ../src/guestfs-actions.pod:1855
27288 msgid ""
27289 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
27290 "Normally you should use C<guestfs_fsck>."
27291 msgstr ""
27292
27293 #. type: textblock
27294 #: ../src/guestfs-actions.pod:1860
27295 msgid "(Added in 1.0.29)"
27296 msgstr ""
27297
27298 #. type: =head2
27299 #: ../src/guestfs-actions.pod:1862
27300 msgid "guestfs_echo_daemon"
27301 msgstr ""
27302
27303 #. type: verbatim
27304 #: ../src/guestfs-actions.pod:1864
27305 #, no-wrap
27306 msgid ""
27307 " char *\n"
27308 " guestfs_echo_daemon (guestfs_h *g,\n"
27309 "                      char *const *words);\n"
27310 "\n"
27311 msgstr ""
27312
27313 #. type: textblock
27314 #: ../src/guestfs-actions.pod:1873
27315 msgid "See also C<guestfs_ping_daemon>."
27316 msgstr ""
27317
27318 #. type: textblock
27319 #: ../src/guestfs-actions.pod:1878 ../src/guestfs-actions.pod:2636 ../src/guestfs-actions.pod:7131
27320 msgid "(Added in 1.0.69)"
27321 msgstr ""
27322
27323 #. type: =head2
27324 #: ../src/guestfs-actions.pod:1880
27325 msgid "guestfs_egrep"
27326 msgstr ""
27327
27328 #. type: verbatim
27329 #: ../src/guestfs-actions.pod:1882
27330 #, no-wrap
27331 msgid ""
27332 " char **\n"
27333 " guestfs_egrep (guestfs_h *g,\n"
27334 "                const char *regex,\n"
27335 "                const char *path);\n"
27336 "\n"
27337 msgstr ""
27338
27339 #. type: textblock
27340 #: ../src/guestfs-actions.pod:1897 ../src/guestfs-actions.pod:1916 ../src/guestfs-actions.pod:1973 ../src/guestfs-actions.pod:2019 ../src/guestfs-actions.pod:2038 ../src/guestfs-actions.pod:2766 ../src/guestfs-actions.pod:2785 ../src/guestfs-actions.pod:2963 ../src/guestfs-actions.pod:2976 ../src/guestfs-actions.pod:2991 ../src/guestfs-actions.pod:3037 ../src/guestfs-actions.pod:3059 ../src/guestfs-actions.pod:3072 ../src/guestfs-actions.pod:4375 ../src/guestfs-actions.pod:4389 ../src/guestfs-actions.pod:4402 ../src/guestfs-actions.pod:4416 ../src/guestfs-actions.pod:5557 ../src/guestfs-actions.pod:6595 ../src/guestfs-actions.pod:6644 ../src/guestfs-actions.pod:7518 ../src/guestfs-actions.pod:7530 ../src/guestfs-actions.pod:7543 ../src/guestfs-actions.pod:7556 ../src/guestfs-actions.pod:7578 ../src/guestfs-actions.pod:7591 ../src/guestfs-actions.pod:7604 ../src/guestfs-actions.pod:7617 ../src/guestfs-actions.pod:8533 ../src/guestfs-actions.pod:8552 ../src/guestfs-actions.pod:8643 ../src/guestfs-actions.pod:8662 ../src/guestfs-actions.pod:8708 ../src/guestfs-actions.pod:8727
27341 msgid "(Added in 1.0.66)"
27342 msgstr ""
27343
27344 #. type: =head2
27345 #: ../src/guestfs-actions.pod:1899
27346 msgid "guestfs_egrepi"
27347 msgstr ""
27348
27349 #. type: verbatim
27350 #: ../src/guestfs-actions.pod:1901
27351 #, no-wrap
27352 msgid ""
27353 " char **\n"
27354 " guestfs_egrepi (guestfs_h *g,\n"
27355 "                 const char *regex,\n"
27356 "                 const char *path);\n"
27357 "\n"
27358 msgstr ""
27359
27360 #. type: =head2
27361 #: ../src/guestfs-actions.pod:1918
27362 msgid "guestfs_equal"
27363 msgstr ""
27364
27365 #. type: verbatim
27366 #: ../src/guestfs-actions.pod:1920
27367 #, no-wrap
27368 msgid ""
27369 " int\n"
27370 " guestfs_equal (guestfs_h *g,\n"
27371 "                const char *file1,\n"
27372 "                const char *file2);\n"
27373 "\n"
27374 msgstr ""
27375
27376 #. type: =head2
27377 #: ../src/guestfs-actions.pod:1934
27378 msgid "guestfs_exists"
27379 msgstr ""
27380
27381 #. type: verbatim
27382 #: ../src/guestfs-actions.pod:1936
27383 #, no-wrap
27384 msgid ""
27385 " int\n"
27386 " guestfs_exists (guestfs_h *g,\n"
27387 "                 const char *path);\n"
27388 "\n"
27389 msgstr ""
27390
27391 #. type: textblock
27392 #: ../src/guestfs-actions.pod:1943
27393 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
27394 msgstr ""
27395
27396 #. type: =head2
27397 #: ../src/guestfs-actions.pod:1949
27398 msgid "guestfs_fallocate"
27399 msgstr ""
27400
27401 #. type: verbatim
27402 #: ../src/guestfs-actions.pod:1951
27403 #, no-wrap
27404 msgid ""
27405 " int\n"
27406 " guestfs_fallocate (guestfs_h *g,\n"
27407 "                    const char *path,\n"
27408 "                    int len);\n"
27409 "\n"
27410 msgstr ""
27411
27412 #. type: textblock
27413 #: ../src/guestfs-actions.pod:1956
27414 msgid ""
27415 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
27416 "call instead."
27417 msgstr ""
27418
27419 #. type: =head2
27420 #: ../src/guestfs-actions.pod:1975
27421 msgid "guestfs_fallocate64"
27422 msgstr ""
27423
27424 #. type: verbatim
27425 #: ../src/guestfs-actions.pod:1977
27426 #, no-wrap
27427 msgid ""
27428 " int\n"
27429 " guestfs_fallocate64 (guestfs_h *g,\n"
27430 "                      const char *path,\n"
27431 "                      int64_t len);\n"
27432 "\n"
27433 msgstr ""
27434
27435 #. type: textblock
27436 #: ../src/guestfs-actions.pod:1986
27437 msgid ""
27438 "Note that this call allocates disk blocks for the file.  To create a sparse "
27439 "file use C<guestfs_truncate_size> instead."
27440 msgstr ""
27441
27442 #. type: textblock
27443 #: ../src/guestfs-actions.pod:1989
27444 msgid ""
27445 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
27446 "oversight it only allowed 30 bit lengths to be specified, effectively "
27447 "limiting the maximum size of files created through that call to 1GB."
27448 msgstr ""
27449
27450 #. type: textblock
27451 #: ../src/guestfs-actions.pod:2000
27452 msgid "(Added in 1.3.17)"
27453 msgstr ""
27454
27455 #. type: =head2
27456 #: ../src/guestfs-actions.pod:2002
27457 msgid "guestfs_fgrep"
27458 msgstr ""
27459
27460 #. type: verbatim
27461 #: ../src/guestfs-actions.pod:2004
27462 #, no-wrap
27463 msgid ""
27464 " char **\n"
27465 " guestfs_fgrep (guestfs_h *g,\n"
27466 "                const char *pattern,\n"
27467 "                const char *path);\n"
27468 "\n"
27469 msgstr ""
27470
27471 #. type: =head2
27472 #: ../src/guestfs-actions.pod:2021
27473 msgid "guestfs_fgrepi"
27474 msgstr ""
27475
27476 #. type: verbatim
27477 #: ../src/guestfs-actions.pod:2023
27478 #, no-wrap
27479 msgid ""
27480 " char **\n"
27481 " guestfs_fgrepi (guestfs_h *g,\n"
27482 "                 const char *pattern,\n"
27483 "                 const char *path);\n"
27484 "\n"
27485 msgstr ""
27486
27487 #. type: =head2
27488 #: ../src/guestfs-actions.pod:2040
27489 msgid "guestfs_file"
27490 msgstr ""
27491
27492 #. type: verbatim
27493 #: ../src/guestfs-actions.pod:2042
27494 #, no-wrap
27495 msgid ""
27496 " char *\n"
27497 " guestfs_file (guestfs_h *g,\n"
27498 "               const char *path);\n"
27499 "\n"
27500 msgstr ""
27501
27502 #. type: textblock
27503 #: ../src/guestfs-actions.pod:2060
27504 msgid ""
27505 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
27506 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
27507 msgstr ""
27508
27509 #. type: =head2
27510 #: ../src/guestfs-actions.pod:2068
27511 msgid "guestfs_file_architecture"
27512 msgstr ""
27513
27514 #. type: verbatim
27515 #: ../src/guestfs-actions.pod:2070
27516 #, no-wrap
27517 msgid ""
27518 " char *\n"
27519 " guestfs_file_architecture (guestfs_h *g,\n"
27520 "                            const char *filename);\n"
27521 "\n"
27522 msgstr ""
27523
27524 #. type: textblock
27525 #: ../src/guestfs-actions.pod:2178 ../src/guestfs-actions.pod:2341 ../src/guestfs-actions.pod:2358 ../src/guestfs-actions.pod:3092 ../src/guestfs-actions.pod:3194 ../src/guestfs-actions.pod:3260 ../src/guestfs-actions.pod:3447 ../src/guestfs-actions.pod:3465 ../src/guestfs-actions.pod:3505 ../src/guestfs-actions.pod:3581 ../src/guestfs-actions.pod:3682 ../src/guestfs-actions.pod:3919 ../src/guestfs-actions.pod:4051
27526 msgid "(Added in 1.5.3)"
27527 msgstr ""
27528
27529 #. type: =head2
27530 #: ../src/guestfs-actions.pod:2180
27531 msgid "guestfs_filesize"
27532 msgstr ""
27533
27534 #. type: verbatim
27535 #: ../src/guestfs-actions.pod:2182
27536 #, no-wrap
27537 msgid ""
27538 " int64_t\n"
27539 " guestfs_filesize (guestfs_h *g,\n"
27540 "                   const char *file);\n"
27541 "\n"
27542 msgstr ""
27543
27544 #. type: textblock
27545 #: ../src/guestfs-actions.pod:2188
27546 msgid ""
27547 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
27548 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
27549 "devices, use C<guestfs_blockdev_getsize64>."
27550 msgstr ""
27551
27552 #. type: textblock
27553 #: ../src/guestfs-actions.pod:2194
27554 msgid "(Added in 1.0.82)"
27555 msgstr ""
27556
27557 #. type: =head2
27558 #: ../src/guestfs-actions.pod:2196
27559 msgid "guestfs_fill"
27560 msgstr ""
27561
27562 #. type: verbatim
27563 #: ../src/guestfs-actions.pod:2198
27564 #, no-wrap
27565 msgid ""
27566 " int\n"
27567 " guestfs_fill (guestfs_h *g,\n"
27568 "               int c,\n"
27569 "               int len,\n"
27570 "               const char *path);\n"
27571 "\n"
27572 msgstr ""
27573
27574 #. type: textblock
27575 #: ../src/guestfs-actions.pod:2208
27576 msgid ""
27577 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
27578 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
27579 "bytes use C<guestfs_fill_pattern>."
27580 msgstr ""
27581
27582 #. type: textblock
27583 #: ../src/guestfs-actions.pod:2220
27584 msgid "(Added in 1.0.79)"
27585 msgstr ""
27586
27587 #. type: =head2
27588 #: ../src/guestfs-actions.pod:2222
27589 msgid "guestfs_fill_pattern"
27590 msgstr ""
27591
27592 #. type: verbatim
27593 #: ../src/guestfs-actions.pod:2224
27594 #, no-wrap
27595 msgid ""
27596 " int\n"
27597 " guestfs_fill_pattern (guestfs_h *g,\n"
27598 "                       const char *pattern,\n"
27599 "                       int len,\n"
27600 "                       const char *path);\n"
27601 "\n"
27602 msgstr ""
27603
27604 #. type: textblock
27605 #: ../src/guestfs-actions.pod:2230
27606 msgid ""
27607 "This function is like C<guestfs_fill> except that it creates a new file of "
27608 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
27609 "pattern is truncated if necessary to ensure the length of the file is "
27610 "exactly C<len> bytes."
27611 msgstr ""
27612
27613 #. type: textblock
27614 #: ../src/guestfs-actions.pod:2242
27615 msgid "(Added in 1.3.12)"
27616 msgstr ""
27617
27618 #. type: =head2
27619 #: ../src/guestfs-actions.pod:2244
27620 msgid "guestfs_find"
27621 msgstr ""
27622
27623 #. type: verbatim
27624 #: ../src/guestfs-actions.pod:2246
27625 #, no-wrap
27626 msgid ""
27627 " char **\n"
27628 " guestfs_find (guestfs_h *g,\n"
27629 "               const char *directory);\n"
27630 "\n"
27631 msgstr ""
27632
27633 #. type: textblock
27634 #: ../src/guestfs-actions.pod:2262
27635 msgid "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
27636 msgstr ""
27637
27638 #. type: textblock
27639 #: ../src/guestfs-actions.pod:2275
27640 msgid "See also C<guestfs_find0>."
27641 msgstr ""
27642
27643 #. type: textblock
27644 #: ../src/guestfs-actions.pod:2284 ../src/guestfs-actions.pod:4813 ../src/guestfs-actions.pod:6679
27645 msgid "(Added in 1.0.27)"
27646 msgstr ""
27647
27648 #. type: =head2
27649 #: ../src/guestfs-actions.pod:2286
27650 msgid "guestfs_find0"
27651 msgstr ""
27652
27653 #. type: verbatim
27654 #: ../src/guestfs-actions.pod:2288
27655 #, no-wrap
27656 msgid ""
27657 " int\n"
27658 " guestfs_find0 (guestfs_h *g,\n"
27659 "                const char *directory,\n"
27660 "                const char *files);\n"
27661 "\n"
27662 msgstr ""
27663
27664 #. type: textblock
27665 #: ../src/guestfs-actions.pod:2297
27666 msgid ""
27667 "This command works the same way as C<guestfs_find> with the following "
27668 "exceptions:"
27669 msgstr ""
27670
27671 #. type: textblock
27672 #: ../src/guestfs-actions.pod:2324
27673 msgid "(Added in 1.0.74)"
27674 msgstr ""
27675
27676 #. type: =head2
27677 #: ../src/guestfs-actions.pod:2326
27678 msgid "guestfs_findfs_label"
27679 msgstr ""
27680
27681 #. type: verbatim
27682 #: ../src/guestfs-actions.pod:2328
27683 #, no-wrap
27684 msgid ""
27685 " char *\n"
27686 " guestfs_findfs_label (guestfs_h *g,\n"
27687 "                       const char *label);\n"
27688 "\n"
27689 msgstr ""
27690
27691 #. type: textblock
27692 #: ../src/guestfs-actions.pod:2336
27693 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
27694 msgstr ""
27695
27696 #. type: =head2
27697 #: ../src/guestfs-actions.pod:2343
27698 msgid "guestfs_findfs_uuid"
27699 msgstr ""
27700
27701 #. type: verbatim
27702 #: ../src/guestfs-actions.pod:2345
27703 #, no-wrap
27704 msgid ""
27705 " char *\n"
27706 " guestfs_findfs_uuid (guestfs_h *g,\n"
27707 "                      const char *uuid);\n"
27708 "\n"
27709 msgstr ""
27710
27711 #. type: textblock
27712 #: ../src/guestfs-actions.pod:2353
27713 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
27714 msgstr ""
27715
27716 #. type: =head2
27717 #: ../src/guestfs-actions.pod:2360
27718 msgid "guestfs_fsck"
27719 msgstr ""
27720
27721 #. type: verbatim
27722 #: ../src/guestfs-actions.pod:2362
27723 #, no-wrap
27724 msgid ""
27725 " int\n"
27726 " guestfs_fsck (guestfs_h *g,\n"
27727 "               const char *fstype,\n"
27728 "               const char *device);\n"
27729 "\n"
27730 msgstr ""
27731
27732 #. type: textblock
27733 #: ../src/guestfs-actions.pod:2397 ../src/guestfs-actions.pod:8580
27734 msgid "(Added in 1.0.16)"
27735 msgstr ""
27736
27737 #. type: =head2
27738 #: ../src/guestfs-actions.pod:2399
27739 msgid "guestfs_get_append"
27740 msgstr ""
27741
27742 #. type: verbatim
27743 #: ../src/guestfs-actions.pod:2401
27744 #, no-wrap
27745 msgid ""
27746 " const char *\n"
27747 " guestfs_get_append (guestfs_h *g);\n"
27748 "\n"
27749 msgstr ""
27750
27751 #. type: textblock
27752 #: ../src/guestfs-actions.pod:2409
27753 msgid ""
27754 "This function returns a string which may be NULL.  There is no way to return "
27755 "an error from this function.  The string is owned by the guest handle and "
27756 "must I<not> be freed."
27757 msgstr ""
27758
27759 #. type: textblock
27760 #: ../src/guestfs-actions.pod:2413 ../src/guestfs-actions.pod:6357 ../src/guestfs-actions.pod:6836 ../src/guestfs-actions.pod:7285 ../src/guestfs-actions.pod:7304 ../src/guestfs-actions.pod:7320 ../src/guestfs-actions.pod:7344 ../src/guestfs-actions.pod:8220 ../src/guestfs-actions.pod:8235 ../src/guestfs-actions.pod:8624
27761 msgid "(Added in 1.0.26)"
27762 msgstr ""
27763
27764 #. type: =head2
27765 #: ../src/guestfs-actions.pod:2415
27766 msgid "guestfs_get_attach_method"
27767 msgstr ""
27768
27769 #. type: verbatim
27770 #: ../src/guestfs-actions.pod:2417
27771 #, no-wrap
27772 msgid ""
27773 " char *\n"
27774 " guestfs_get_attach_method (guestfs_h *g);\n"
27775 "\n"
27776 msgstr ""
27777
27778 #. type: textblock
27779 #: ../src/guestfs-actions.pod:2420
27780 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
27781 msgstr ""
27782
27783 #. type: textblock
27784 #: ../src/guestfs-actions.pod:2425 ../src/guestfs-actions.pod:6866
27785 msgid "(Added in 1.9.8)"
27786 msgstr ""
27787
27788 #. type: =head2
27789 #: ../src/guestfs-actions.pod:2427
27790 msgid "guestfs_get_autosync"
27791 msgstr ""
27792
27793 #. type: verbatim
27794 #: ../src/guestfs-actions.pod:2429
27795 #, no-wrap
27796 msgid ""
27797 " int\n"
27798 " guestfs_get_autosync (guestfs_h *g);\n"
27799 "\n"
27800 msgstr ""
27801
27802 #. type: =head2
27803 #: ../src/guestfs-actions.pod:2438
27804 msgid "guestfs_get_direct"
27805 msgstr ""
27806
27807 #. type: verbatim
27808 #: ../src/guestfs-actions.pod:2440
27809 #, no-wrap
27810 msgid ""
27811 " int\n"
27812 " guestfs_get_direct (guestfs_h *g);\n"
27813 "\n"
27814 msgstr ""
27815
27816 #. type: textblock
27817 #: ../src/guestfs-actions.pod:2447 ../src/guestfs-actions.pod:6907
27818 msgid "(Added in 1.0.72)"
27819 msgstr ""
27820
27821 #. type: =head2
27822 #: ../src/guestfs-actions.pod:2449
27823 msgid "guestfs_get_e2label"
27824 msgstr ""
27825
27826 #. type: verbatim
27827 #: ../src/guestfs-actions.pod:2451
27828 #, no-wrap
27829 msgid ""
27830 " char *\n"
27831 " guestfs_get_e2label (guestfs_h *g,\n"
27832 "                      const char *device);\n"
27833 "\n"
27834 msgstr ""
27835
27836 #. type: textblock
27837 #: ../src/guestfs-actions.pod:2455
27838 msgid ""
27839 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
27840 "call instead."
27841 msgstr ""
27842
27843 #. type: textblock
27844 #: ../src/guestfs-actions.pod:2468 ../src/guestfs-actions.pod:2489 ../src/guestfs-actions.pod:6925 ../src/guestfs-actions.pod:6944
27845 msgid "(Added in 1.0.15)"
27846 msgstr ""
27847
27848 #. type: =head2
27849 #: ../src/guestfs-actions.pod:2470
27850 msgid "guestfs_get_e2uuid"
27851 msgstr ""
27852
27853 #. type: verbatim
27854 #: ../src/guestfs-actions.pod:2472
27855 #, no-wrap
27856 msgid ""
27857 " char *\n"
27858 " guestfs_get_e2uuid (guestfs_h *g,\n"
27859 "                     const char *device);\n"
27860 "\n"
27861 msgstr ""
27862
27863 #. type: textblock
27864 #: ../src/guestfs-actions.pod:2476
27865 msgid ""
27866 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
27867 "call instead."
27868 msgstr ""
27869
27870 #. type: =head2
27871 #: ../src/guestfs-actions.pod:2491
27872 msgid "guestfs_get_memsize"
27873 msgstr ""
27874
27875 #. type: verbatim
27876 #: ../src/guestfs-actions.pod:2493
27877 #, no-wrap
27878 msgid ""
27879 " int\n"
27880 " guestfs_get_memsize (guestfs_h *g);\n"
27881 "\n"
27882 msgstr ""
27883
27884 #. type: textblock
27885 #: ../src/guestfs-actions.pod:2499
27886 msgid ""
27887 "If C<guestfs_set_memsize> was not called on this handle, and if "
27888 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
27889 "value for memsize."
27890 msgstr ""
27891
27892 #. type: textblock
27893 #: ../src/guestfs-actions.pod:2508 ../src/guestfs-actions.pod:5253 ../src/guestfs-actions.pod:5462 ../src/guestfs-actions.pod:5481 ../src/guestfs-actions.pod:5500 ../src/guestfs-actions.pod:5512 ../src/guestfs-actions.pod:5529 ../src/guestfs-actions.pod:5542 ../src/guestfs-actions.pod:6582 ../src/guestfs-actions.pod:6965 ../src/guestfs-actions.pod:7255 ../src/guestfs-actions.pod:7989
27894 msgid "(Added in 1.0.55)"
27895 msgstr ""
27896
27897 #. type: =head2
27898 #: ../src/guestfs-actions.pod:2510
27899 msgid "guestfs_get_network"
27900 msgstr ""
27901
27902 #. type: verbatim
27903 #: ../src/guestfs-actions.pod:2512
27904 #, no-wrap
27905 msgid ""
27906 " int\n"
27907 " guestfs_get_network (guestfs_h *g);\n"
27908 "\n"
27909 msgstr ""
27910
27911 #. type: textblock
27912 #: ../src/guestfs-actions.pod:2519 ../src/guestfs-actions.pod:6984
27913 msgid "(Added in 1.5.4)"
27914 msgstr ""
27915
27916 #. type: =head2
27917 #: ../src/guestfs-actions.pod:2521
27918 msgid "guestfs_get_path"
27919 msgstr ""
27920
27921 #. type: verbatim
27922 #: ../src/guestfs-actions.pod:2523
27923 #, no-wrap
27924 msgid ""
27925 " const char *\n"
27926 " guestfs_get_path (guestfs_h *g);\n"
27927 "\n"
27928 msgstr ""
27929
27930 #. type: textblock
27931 #: ../src/guestfs-actions.pod:2531 ../src/guestfs-actions.pod:2571
27932 msgid ""
27933 "This function returns a string, or NULL on error.  The string is owned by "
27934 "the guest handle and must I<not> be freed."
27935 msgstr ""
27936
27937 #. type: =head2
27938 #: ../src/guestfs-actions.pod:2536
27939 msgid "guestfs_get_pgroup"
27940 msgstr ""
27941
27942 #. type: verbatim
27943 #: ../src/guestfs-actions.pod:2538
27944 #, no-wrap
27945 msgid ""
27946 " int\n"
27947 " guestfs_get_pgroup (guestfs_h *g);\n"
27948 "\n"
27949 msgstr ""
27950
27951 #. type: textblock
27952 #: ../src/guestfs-actions.pod:2545 ../src/guestfs-actions.pod:7020 ../src/guestfs-actions.pod:8481
27953 msgid "(Added in 1.11.18)"
27954 msgstr ""
27955
27956 #. type: =head2
27957 #: ../src/guestfs-actions.pod:2547
27958 msgid "guestfs_get_pid"
27959 msgstr ""
27960
27961 #. type: verbatim
27962 #: ../src/guestfs-actions.pod:2549
27963 #, no-wrap
27964 msgid ""
27965 " int\n"
27966 " guestfs_get_pid (guestfs_h *g);\n"
27967 "\n"
27968 msgstr ""
27969
27970 #. type: textblock
27971 #: ../src/guestfs-actions.pod:2559
27972 msgid "(Added in 1.0.56)"
27973 msgstr ""
27974
27975 #. type: =head2
27976 #: ../src/guestfs-actions.pod:2561
27977 msgid "guestfs_get_qemu"
27978 msgstr ""
27979
27980 #. type: verbatim
27981 #: ../src/guestfs-actions.pod:2563
27982 #, no-wrap
27983 msgid ""
27984 " const char *\n"
27985 " guestfs_get_qemu (guestfs_h *g);\n"
27986 "\n"
27987 msgstr ""
27988
27989 #. type: textblock
27990 #: ../src/guestfs-actions.pod:2574 ../src/guestfs-actions.pod:7048
27991 msgid "(Added in 1.0.6)"
27992 msgstr ""
27993
27994 #. type: =head2
27995 #: ../src/guestfs-actions.pod:2576
27996 msgid "guestfs_get_recovery_proc"
27997 msgstr ""
27998
27999 #. type: verbatim
28000 #: ../src/guestfs-actions.pod:2578
28001 #, no-wrap
28002 msgid ""
28003 " int\n"
28004 " guestfs_get_recovery_proc (guestfs_h *g);\n"
28005 "\n"
28006 msgstr ""
28007
28008 #. type: textblock
28009 #: ../src/guestfs-actions.pod:2585 ../src/guestfs-actions.pod:4173 ../src/guestfs-actions.pod:4517 ../src/guestfs-actions.pod:4911 ../src/guestfs-actions.pod:5092 ../src/guestfs-actions.pod:6287 ../src/guestfs-actions.pod:6630 ../src/guestfs-actions.pod:7072 ../src/guestfs-actions.pod:7770 ../src/guestfs-actions.pod:7790 ../src/guestfs-actions.pod:8104
28010 msgid "(Added in 1.0.77)"
28011 msgstr ""
28012
28013 #. type: =head2
28014 #: ../src/guestfs-actions.pod:2587
28015 msgid "guestfs_get_selinux"
28016 msgstr ""
28017
28018 #. type: verbatim
28019 #: ../src/guestfs-actions.pod:2589
28020 #, no-wrap
28021 msgid ""
28022 " int\n"
28023 " guestfs_get_selinux (guestfs_h *g);\n"
28024 "\n"
28025 msgstr ""
28026
28027 #. type: textblock
28028 #: ../src/guestfs-actions.pod:2592
28029 msgid ""
28030 "This returns the current setting of the selinux flag which is passed to the "
28031 "appliance at boot time.  See C<guestfs_set_selinux>."
28032 msgstr ""
28033
28034 #. type: textblock
28035 #: ../src/guestfs-actions.pod:2600 ../src/guestfs-actions.pod:2674 ../src/guestfs-actions.pod:7091 ../src/guestfs-actions.pod:7165
28036 msgid "(Added in 1.0.67)"
28037 msgstr ""
28038
28039 #. type: =head2
28040 #: ../src/guestfs-actions.pod:2602
28041 msgid "guestfs_get_smp"
28042 msgstr ""
28043
28044 #. type: verbatim
28045 #: ../src/guestfs-actions.pod:2604
28046 #, no-wrap
28047 msgid ""
28048 " int\n"
28049 " guestfs_get_smp (guestfs_h *g);\n"
28050 "\n"
28051 msgstr ""
28052
28053 #. type: =head2
28054 #: ../src/guestfs-actions.pod:2613
28055 msgid "guestfs_get_state"
28056 msgstr ""
28057
28058 #. type: verbatim
28059 #: ../src/guestfs-actions.pod:2615
28060 #, no-wrap
28061 msgid ""
28062 " int\n"
28063 " guestfs_get_state (guestfs_h *g);\n"
28064 "\n"
28065 msgstr ""
28066
28067 #. type: =head2
28068 #: ../src/guestfs-actions.pod:2627
28069 msgid "guestfs_get_trace"
28070 msgstr ""
28071
28072 #. type: verbatim
28073 #: ../src/guestfs-actions.pod:2629
28074 #, no-wrap
28075 msgid ""
28076 " int\n"
28077 " guestfs_get_trace (guestfs_h *g);\n"
28078 "\n"
28079 msgstr ""
28080
28081 #. type: =head2
28082 #: ../src/guestfs-actions.pod:2638
28083 msgid "guestfs_get_umask"
28084 msgstr ""
28085
28086 #. type: verbatim
28087 #: ../src/guestfs-actions.pod:2640
28088 #, no-wrap
28089 msgid ""
28090 " int\n"
28091 " guestfs_get_umask (guestfs_h *g);\n"
28092 "\n"
28093 msgstr ""
28094
28095 #. type: textblock
28096 #: ../src/guestfs-actions.pod:2643
28097 msgid ""
28098 "Return the current umask.  By default the umask is C<022> unless it has been "
28099 "set by calling C<guestfs_umask>."
28100 msgstr ""
28101
28102 #. type: =head2
28103 #: ../src/guestfs-actions.pod:2650
28104 msgid "guestfs_get_verbose"
28105 msgstr ""
28106
28107 #. type: verbatim
28108 #: ../src/guestfs-actions.pod:2652
28109 #, no-wrap
28110 msgid ""
28111 " int\n"
28112 " guestfs_get_verbose (guestfs_h *g);\n"
28113 "\n"
28114 msgstr ""
28115
28116 #. type: =head2
28117 #: ../src/guestfs-actions.pod:2661
28118 msgid "guestfs_getcon"
28119 msgstr ""
28120
28121 #. type: verbatim
28122 #: ../src/guestfs-actions.pod:2663
28123 #, no-wrap
28124 msgid ""
28125 " char *\n"
28126 " guestfs_getcon (guestfs_h *g);\n"
28127 "\n"
28128 msgstr ""
28129
28130 #. type: textblock
28131 #: ../src/guestfs-actions.pod:2668
28132 msgid "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
28133 msgstr ""
28134
28135 #. type: =head2
28136 #: ../src/guestfs-actions.pod:2676
28137 msgid "guestfs_getxattr"
28138 msgstr ""
28139
28140 #. type: verbatim
28141 #: ../src/guestfs-actions.pod:2678
28142 #, no-wrap
28143 msgid ""
28144 " char *\n"
28145 " guestfs_getxattr (guestfs_h *g,\n"
28146 "                   const char *path,\n"
28147 "                   const char *name,\n"
28148 "                   size_t *size_r);\n"
28149 "\n"
28150 msgstr ""
28151
28152 #. type: textblock
28153 #: ../src/guestfs-actions.pod:2684
28154 msgid ""
28155 "Get a single extended attribute from file C<path> named C<name>.  This call "
28156 "follows symlinks.  If you want to lookup an extended attribute for the "
28157 "symlink itself, use C<guestfs_lgetxattr>."
28158 msgstr ""
28159
28160 #. type: textblock
28161 #: ../src/guestfs-actions.pod:2688 ../src/guestfs-actions.pod:4187
28162 msgid ""
28163 "Normally it is better to get all extended attributes from a file in one go "
28164 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
28165 "implementations are buggy and do not provide a way to list out attributes.  "
28166 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
28167 "extended attributes you want in advance and call this function."
28168 msgstr ""
28169
28170 #. type: textblock
28171 #: ../src/guestfs-actions.pod:2698
28172 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
28173 msgstr ""
28174
28175 #. type: textblock
28176 #: ../src/guestfs-actions.pod:2700 ../src/guestfs-actions.pod:2913 ../src/guestfs-actions.pod:3395 ../src/guestfs-actions.pod:4199 ../src/guestfs-actions.pod:6280 ../src/guestfs-actions.pod:6306 ../src/guestfs-actions.pod:6487
28177 msgid ""
28178 "This function returns a buffer, or NULL on error.  The size of the returned "
28179 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
28180 "after use>."
28181 msgstr ""
28182
28183 #. type: textblock
28184 #: ../src/guestfs-actions.pod:2704 ../src/guestfs-actions.pod:4203
28185 msgid "(Added in 1.7.24)"
28186 msgstr ""
28187
28188 #. type: =head2
28189 #: ../src/guestfs-actions.pod:2706
28190 msgid "guestfs_getxattrs"
28191 msgstr ""
28192
28193 #. type: verbatim
28194 #: ../src/guestfs-actions.pod:2708
28195 #, no-wrap
28196 msgid ""
28197 " struct guestfs_xattr_list *\n"
28198 " guestfs_getxattrs (guestfs_h *g,\n"
28199 "                    const char *path);\n"
28200 "\n"
28201 msgstr ""
28202
28203 #. type: textblock
28204 #: ../src/guestfs-actions.pod:2718
28205 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
28206 msgstr ""
28207
28208 #. type: textblock
28209 #: ../src/guestfs-actions.pod:2720 ../src/guestfs-actions.pod:4215 ../src/guestfs-actions.pod:4907
28210 msgid ""
28211 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
28212 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
28213 msgstr ""
28214
28215 #. type: textblock
28216 #: ../src/guestfs-actions.pod:2724 ../src/guestfs-actions.pod:4219 ../src/guestfs-actions.pod:4431 ../src/guestfs-actions.pod:4467 ../src/guestfs-actions.pod:6660 ../src/guestfs-actions.pod:7184 ../src/guestfs-actions.pod:8689
28217 msgid "(Added in 1.0.59)"
28218 msgstr ""
28219
28220 #. type: =head2
28221 #: ../src/guestfs-actions.pod:2726
28222 msgid "guestfs_glob_expand"
28223 msgstr ""
28224
28225 #. type: verbatim
28226 #: ../src/guestfs-actions.pod:2728
28227 #, no-wrap
28228 msgid ""
28229 " char **\n"
28230 " guestfs_glob_expand (guestfs_h *g,\n"
28231 "                      const char *pattern);\n"
28232 "\n"
28233 msgstr ""
28234
28235 #. type: textblock
28236 #: ../src/guestfs-actions.pod:2747 ../src/guestfs-actions.pod:7368 ../src/guestfs-actions.pod:7385
28237 msgid "(Added in 1.0.50)"
28238 msgstr ""
28239
28240 #. type: =head2
28241 #: ../src/guestfs-actions.pod:2749
28242 msgid "guestfs_grep"
28243 msgstr ""
28244
28245 #. type: verbatim
28246 #: ../src/guestfs-actions.pod:2751
28247 #, no-wrap
28248 msgid ""
28249 " char **\n"
28250 " guestfs_grep (guestfs_h *g,\n"
28251 "               const char *regex,\n"
28252 "               const char *path);\n"
28253 "\n"
28254 msgstr ""
28255
28256 #. type: =head2
28257 #: ../src/guestfs-actions.pod:2768
28258 msgid "guestfs_grepi"
28259 msgstr ""
28260
28261 #. type: verbatim
28262 #: ../src/guestfs-actions.pod:2770
28263 #, no-wrap
28264 msgid ""
28265 " char **\n"
28266 " guestfs_grepi (guestfs_h *g,\n"
28267 "                const char *regex,\n"
28268 "                const char *path);\n"
28269 "\n"
28270 msgstr ""
28271
28272 #. type: =head2
28273 #: ../src/guestfs-actions.pod:2787
28274 msgid "guestfs_grub_install"
28275 msgstr ""
28276
28277 #. type: verbatim
28278 #: ../src/guestfs-actions.pod:2789
28279 #, no-wrap
28280 msgid ""
28281 " int\n"
28282 " guestfs_grub_install (guestfs_h *g,\n"
28283 "                       const char *root,\n"
28284 "                       const char *device);\n"
28285 "\n"
28286 msgstr ""
28287
28288 #. type: textblock
28289 #: ../src/guestfs-actions.pod:2832
28290 msgid "(Added in 1.0.17)"
28291 msgstr ""
28292
28293 #. type: =head2
28294 #: ../src/guestfs-actions.pod:2834
28295 msgid "guestfs_head"
28296 msgstr ""
28297
28298 #. type: verbatim
28299 #: ../src/guestfs-actions.pod:2836
28300 #, no-wrap
28301 msgid ""
28302 " char **\n"
28303 " guestfs_head (guestfs_h *g,\n"
28304 "               const char *path);\n"
28305 "\n"
28306 msgstr ""
28307
28308 #. type: =head2
28309 #: ../src/guestfs-actions.pod:2852
28310 msgid "guestfs_head_n"
28311 msgstr ""
28312
28313 #. type: verbatim
28314 #: ../src/guestfs-actions.pod:2854
28315 #, no-wrap
28316 msgid ""
28317 " char **\n"
28318 " guestfs_head_n (guestfs_h *g,\n"
28319 "                 int nrlines,\n"
28320 "                 const char *path);\n"
28321 "\n"
28322 msgstr ""
28323
28324 #. type: =head2
28325 #: ../src/guestfs-actions.pod:2876
28326 msgid "guestfs_hexdump"
28327 msgstr ""
28328
28329 #. type: verbatim
28330 #: ../src/guestfs-actions.pod:2878
28331 #, no-wrap
28332 msgid ""
28333 " char *\n"
28334 " guestfs_hexdump (guestfs_h *g,\n"
28335 "                  const char *path);\n"
28336 "\n"
28337 msgstr ""
28338
28339 #. type: textblock
28340 #: ../src/guestfs-actions.pod:2891 ../src/guestfs-actions.pod:7449 ../src/guestfs-actions.pod:7504
28341 msgid "(Added in 1.0.22)"
28342 msgstr ""
28343
28344 #. type: =head2
28345 #: ../src/guestfs-actions.pod:2893
28346 msgid "guestfs_initrd_cat"
28347 msgstr ""
28348
28349 #. type: verbatim
28350 #: ../src/guestfs-actions.pod:2895
28351 #, no-wrap
28352 msgid ""
28353 " char *\n"
28354 " guestfs_initrd_cat (guestfs_h *g,\n"
28355 "                     const char *initrdpath,\n"
28356 "                     const char *filename,\n"
28357 "                     size_t *size_r);\n"
28358 "\n"
28359 msgstr ""
28360
28361 #. type: textblock
28362 #: ../src/guestfs-actions.pod:2911
28363 msgid "See also C<guestfs_initrd_list>."
28364 msgstr ""
28365
28366 #. type: =head2
28367 #: ../src/guestfs-actions.pod:2922
28368 msgid "guestfs_initrd_list"
28369 msgstr ""
28370
28371 #. type: verbatim
28372 #: ../src/guestfs-actions.pod:2924
28373 #, no-wrap
28374 msgid ""
28375 " char **\n"
28376 " guestfs_initrd_list (guestfs_h *g,\n"
28377 "                      const char *path);\n"
28378 "\n"
28379 msgstr ""
28380
28381 #. type: =head2
28382 #: ../src/guestfs-actions.pod:2944
28383 msgid "guestfs_inotify_add_watch"
28384 msgstr ""
28385
28386 #. type: verbatim
28387 #: ../src/guestfs-actions.pod:2946
28388 #, no-wrap
28389 msgid ""
28390 " int64_t\n"
28391 " guestfs_inotify_add_watch (guestfs_h *g,\n"
28392 "                            const char *path,\n"
28393 "                            int mask);\n"
28394 "\n"
28395 msgstr ""
28396
28397 #. type: =head2
28398 #: ../src/guestfs-actions.pod:2965
28399 msgid "guestfs_inotify_close"
28400 msgstr ""
28401
28402 #. type: verbatim
28403 #: ../src/guestfs-actions.pod:2967
28404 #, no-wrap
28405 msgid ""
28406 " int\n"
28407 " guestfs_inotify_close (guestfs_h *g);\n"
28408 "\n"
28409 msgstr ""
28410
28411 #. type: =head2
28412 #: ../src/guestfs-actions.pod:2978
28413 msgid "guestfs_inotify_files"
28414 msgstr ""
28415
28416 #. type: verbatim
28417 #: ../src/guestfs-actions.pod:2980
28418 #, no-wrap
28419 msgid ""
28420 " char **\n"
28421 " guestfs_inotify_files (guestfs_h *g);\n"
28422 "\n"
28423 msgstr ""
28424
28425 #. type: textblock
28426 #: ../src/guestfs-actions.pod:2983
28427 msgid ""
28428 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
28429 "returns a list of pathnames of objects that were touched.  The returned "
28430 "pathnames are sorted and deduplicated."
28431 msgstr ""
28432
28433 #. type: =head2
28434 #: ../src/guestfs-actions.pod:2993
28435 msgid "guestfs_inotify_init"
28436 msgstr ""
28437
28438 #. type: verbatim
28439 #: ../src/guestfs-actions.pod:2995
28440 #, no-wrap
28441 msgid ""
28442 " int\n"
28443 " guestfs_inotify_init (guestfs_h *g,\n"
28444 "                       int maxevents);\n"
28445 "\n"
28446 msgstr ""
28447
28448 #. type: textblock
28449 #: ../src/guestfs-actions.pod:3003
28450 msgid ""
28451 "C<maxevents> is the maximum number of events which will be queued up between "
28452 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
28453 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
28454 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
28455 "throws away events, but records the fact that it threw them away by setting "
28456 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
28457 "C<guestfs_inotify_read>)."
28458 msgstr ""
28459
28460 #. type: textblock
28461 #: ../src/guestfs-actions.pod:3013
28462 msgid ""
28463 "Before any events are generated, you have to add some watches to the "
28464 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
28465 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
28466 msgstr ""
28467
28468 #. type: textblock
28469 #: ../src/guestfs-actions.pod:3019
28470 msgid ""
28471 "Queued up events should be read periodically by calling "
28472 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
28473 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
28474 "often enough then you risk the internal queue overflowing."
28475 msgstr ""
28476
28477 #. type: textblock
28478 #: ../src/guestfs-actions.pod:3026
28479 msgid ""
28480 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
28481 "This also removes any watches automatically."
28482 msgstr ""
28483
28484 #. type: =head2
28485 #: ../src/guestfs-actions.pod:3039
28486 msgid "guestfs_inotify_read"
28487 msgstr ""
28488
28489 #. type: verbatim
28490 #: ../src/guestfs-actions.pod:3041
28491 #, no-wrap
28492 msgid ""
28493 " struct guestfs_inotify_event_list *\n"
28494 " guestfs_inotify_read (guestfs_h *g);\n"
28495 "\n"
28496 msgstr ""
28497
28498 #. type: textblock
28499 #: ../src/guestfs-actions.pod:3055
28500 msgid ""
28501 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
28502 "there was an error.  I<The caller must call "
28503 "C<guestfs_free_inotify_event_list> after use>."
28504 msgstr ""
28505
28506 #. type: =head2
28507 #: ../src/guestfs-actions.pod:3061
28508 msgid "guestfs_inotify_rm_watch"
28509 msgstr ""
28510
28511 #. type: verbatim
28512 #: ../src/guestfs-actions.pod:3063
28513 #, no-wrap
28514 msgid ""
28515 " int\n"
28516 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
28517 "                           int wd);\n"
28518 "\n"
28519 msgstr ""
28520
28521 #. type: textblock
28522 #: ../src/guestfs-actions.pod:3067
28523 msgid ""
28524 "Remove a previously defined inotify watch.  See "
28525 "C<guestfs_inotify_add_watch>."
28526 msgstr ""
28527
28528 #. type: =head2
28529 #: ../src/guestfs-actions.pod:3074
28530 msgid "guestfs_inspect_get_arch"
28531 msgstr ""
28532
28533 #. type: verbatim
28534 #: ../src/guestfs-actions.pod:3076
28535 #, no-wrap
28536 msgid ""
28537 " char *\n"
28538 " guestfs_inspect_get_arch (guestfs_h *g,\n"
28539 "                           const char *root);\n"
28540 "\n"
28541 msgstr ""
28542
28543 #. type: textblock
28544 #: ../src/guestfs-actions.pod:3080
28545 msgid ""
28546 "This returns the architecture of the inspected operating system.  The "
28547 "possible return values are listed under C<guestfs_file_architecture>."
28548 msgstr ""
28549
28550 #. type: =head2
28551 #: ../src/guestfs-actions.pod:3094
28552 msgid "guestfs_inspect_get_distro"
28553 msgstr ""
28554
28555 #. type: verbatim
28556 #: ../src/guestfs-actions.pod:3096
28557 #, no-wrap
28558 msgid ""
28559 " char *\n"
28560 " guestfs_inspect_get_distro (guestfs_h *g,\n"
28561 "                             const char *root);\n"
28562 "\n"
28563 msgstr ""
28564
28565 #. type: =head2
28566 #: ../src/guestfs-actions.pod:3196
28567 msgid "guestfs_inspect_get_drive_mappings"
28568 msgstr ""
28569
28570 #. type: verbatim
28571 #: ../src/guestfs-actions.pod:3198
28572 #, no-wrap
28573 msgid ""
28574 " char **\n"
28575 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
28576 "                                     const char *root);\n"
28577 "\n"
28578 msgstr ""
28579
28580 #. type: textblock
28581 #: ../src/guestfs-actions.pod:3227
28582 msgid ""
28583 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28584 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
28585 msgstr ""
28586
28587 #. type: textblock
28588 #: ../src/guestfs-actions.pod:3237 ../src/guestfs-actions.pod:3702
28589 msgid "(Added in 1.9.17)"
28590 msgstr ""
28591
28592 #. type: =head2
28593 #: ../src/guestfs-actions.pod:3239
28594 msgid "guestfs_inspect_get_filesystems"
28595 msgstr ""
28596
28597 #. type: verbatim
28598 #: ../src/guestfs-actions.pod:3241
28599 #, no-wrap
28600 msgid ""
28601 " char **\n"
28602 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
28603 "                                  const char *root);\n"
28604 "\n"
28605 msgstr ""
28606
28607 #. type: textblock
28608 #: ../src/guestfs-actions.pod:3253
28609 msgid ""
28610 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28611 "C<guestfs_inspect_get_mountpoints>."
28612 msgstr ""
28613
28614 #. type: =head2
28615 #: ../src/guestfs-actions.pod:3262
28616 msgid "guestfs_inspect_get_format"
28617 msgstr ""
28618
28619 #. type: verbatim
28620 #: ../src/guestfs-actions.pod:3264
28621 #, no-wrap
28622 msgid ""
28623 " char *\n"
28624 " guestfs_inspect_get_format (guestfs_h *g,\n"
28625 "                             const char *root);\n"
28626 "\n"
28627 msgstr ""
28628
28629 #. type: textblock
28630 #: ../src/guestfs-actions.pod:3298 ../src/guestfs-actions.pod:3738 ../src/guestfs-actions.pod:3754 ../src/guestfs-actions.pod:3772 ../src/guestfs-actions.pod:6698
28631 msgid "(Added in 1.9.4)"
28632 msgstr ""
28633
28634 #. type: =head2
28635 #: ../src/guestfs-actions.pod:3300
28636 msgid "guestfs_inspect_get_hostname"
28637 msgstr ""
28638
28639 #. type: verbatim
28640 #: ../src/guestfs-actions.pod:3302
28641 #, no-wrap
28642 msgid ""
28643 " char *\n"
28644 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
28645 "                               const char *root);\n"
28646 "\n"
28647 msgstr ""
28648
28649 #. type: textblock
28650 #: ../src/guestfs-actions.pod:3317
28651 msgid "(Added in 1.7.9)"
28652 msgstr ""
28653
28654 #. type: =head2
28655 #: ../src/guestfs-actions.pod:3319
28656 msgid "guestfs_inspect_get_icon"
28657 msgstr ""
28658
28659 #. type: verbatim
28660 #: ../src/guestfs-actions.pod:3321
28661 #, no-wrap
28662 msgid ""
28663 " char *\n"
28664 " guestfs_inspect_get_icon (guestfs_h *g,\n"
28665 "                           const char *root,\n"
28666 "                           size_t *size_r,\n"
28667 "                           ...);\n"
28668 "\n"
28669 msgstr ""
28670
28671 #. type: verbatim
28672 #: ../src/guestfs-actions.pod:3332
28673 #, no-wrap
28674 msgid ""
28675 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
28676 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
28677 "\n"
28678 msgstr ""
28679
28680 #. type: textblock
28681 #: ../src/guestfs-actions.pod:3399 ../src/guestfs-actions.pod:4233 ../src/guestfs-actions.pod:5630
28682 msgid "(Added in 1.11.12)"
28683 msgstr ""
28684
28685 #. type: =head2
28686 #: ../src/guestfs-actions.pod:3401
28687 msgid "guestfs_inspect_get_icon_va"
28688 msgstr ""
28689
28690 #. type: verbatim
28691 #: ../src/guestfs-actions.pod:3403
28692 #, no-wrap
28693 msgid ""
28694 " char *\n"
28695 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
28696 "                              const char *root,\n"
28697 "                              size_t *size_r,\n"
28698 "                              va_list args);\n"
28699 "\n"
28700 msgstr ""
28701
28702 #. type: textblock
28703 #: ../src/guestfs-actions.pod:3409
28704 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
28705 msgstr ""
28706
28707 #. type: =head2
28708 #: ../src/guestfs-actions.pod:3413
28709 msgid "guestfs_inspect_get_icon_argv"
28710 msgstr ""
28711
28712 #. type: verbatim
28713 #: ../src/guestfs-actions.pod:3415
28714 #, no-wrap
28715 msgid ""
28716 " char *\n"
28717 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
28718 "                                const char *root,\n"
28719 "                                size_t *size_r,\n"
28720 "                                const struct guestfs_inspect_get_icon_argv "
28721 "*optargs);\n"
28722 "\n"
28723 msgstr ""
28724
28725 #. type: textblock
28726 #: ../src/guestfs-actions.pod:3421
28727 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
28728 msgstr ""
28729
28730 #. type: =head2
28731 #: ../src/guestfs-actions.pod:3425
28732 msgid "guestfs_inspect_get_major_version"
28733 msgstr ""
28734
28735 #. type: verbatim
28736 #: ../src/guestfs-actions.pod:3427
28737 #, no-wrap
28738 msgid ""
28739 " int\n"
28740 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
28741 "                                    const char *root);\n"
28742 "\n"
28743 msgstr ""
28744
28745 #. type: =head2
28746 #: ../src/guestfs-actions.pod:3449
28747 msgid "guestfs_inspect_get_minor_version"
28748 msgstr ""
28749
28750 #. type: verbatim
28751 #: ../src/guestfs-actions.pod:3451
28752 #, no-wrap
28753 msgid ""
28754 " int\n"
28755 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
28756 "                                    const char *root);\n"
28757 "\n"
28758 msgstr ""
28759
28760 #. type: textblock
28761 #: ../src/guestfs-actions.pod:3460
28762 msgid ""
28763 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28764 "C<guestfs_inspect_get_major_version>."
28765 msgstr ""
28766
28767 #. type: =head2
28768 #: ../src/guestfs-actions.pod:3467
28769 msgid "guestfs_inspect_get_mountpoints"
28770 msgstr ""
28771
28772 #. type: verbatim
28773 #: ../src/guestfs-actions.pod:3469
28774 #, no-wrap
28775 msgid ""
28776 " char **\n"
28777 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
28778 "                                  const char *root);\n"
28779 "\n"
28780 msgstr ""
28781
28782 #. type: textblock
28783 #: ../src/guestfs-actions.pod:3490
28784 msgid ""
28785 "For operating systems like Windows which still use drive letters, this call "
28786 "will only return an entry for the first drive \"mounted on\" C</>.  For "
28787 "information about the mapping of drive letters to partitions, see "
28788 "C<guestfs_inspect_get_drive_mappings>."
28789 msgstr ""
28790
28791 #. type: textblock
28792 #: ../src/guestfs-actions.pod:3496
28793 msgid ""
28794 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28795 "C<guestfs_inspect_get_filesystems>."
28796 msgstr ""
28797
28798 #. type: =head2
28799 #: ../src/guestfs-actions.pod:3507
28800 msgid "guestfs_inspect_get_package_format"
28801 msgstr ""
28802
28803 #. type: verbatim
28804 #: ../src/guestfs-actions.pod:3509
28805 #, no-wrap
28806 msgid ""
28807 " char *\n"
28808 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
28809 "                                     const char *root);\n"
28810 "\n"
28811 msgstr ""
28812
28813 #. type: textblock
28814 #: ../src/guestfs-actions.pod:3513
28815 msgid ""
28816 "This function and C<guestfs_inspect_get_package_management> return the "
28817 "package format and package management tool used by the inspected operating "
28818 "system.  For example for Fedora these functions would return C<rpm> (package "
28819 "format) and C<yum> (package management)."
28820 msgstr ""
28821
28822 #. type: textblock
28823 #: ../src/guestfs-actions.pod:3532 ../src/guestfs-actions.pod:3560
28824 msgid "(Added in 1.7.5)"
28825 msgstr ""
28826
28827 #. type: =head2
28828 #: ../src/guestfs-actions.pod:3534
28829 msgid "guestfs_inspect_get_package_management"
28830 msgstr ""
28831
28832 #. type: verbatim
28833 #: ../src/guestfs-actions.pod:3536
28834 #, no-wrap
28835 msgid ""
28836 " char *\n"
28837 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
28838 "                                         const char *root);\n"
28839 "\n"
28840 msgstr ""
28841
28842 #. type: textblock
28843 #: ../src/guestfs-actions.pod:3540
28844 msgid ""
28845 "C<guestfs_inspect_get_package_format> and this function return the package "
28846 "format and package management tool used by the inspected operating system.  "
28847 "For example for Fedora these functions would return C<rpm> (package format) "
28848 "and C<yum> (package management)."
28849 msgstr ""
28850
28851 #. type: =head2
28852 #: ../src/guestfs-actions.pod:3562
28853 msgid "guestfs_inspect_get_product_name"
28854 msgstr ""
28855
28856 #. type: verbatim
28857 #: ../src/guestfs-actions.pod:3564
28858 #, no-wrap
28859 msgid ""
28860 " char *\n"
28861 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
28862 "                                   const char *root);\n"
28863 "\n"
28864 msgstr ""
28865
28866 #. type: =head2
28867 #: ../src/guestfs-actions.pod:3583
28868 msgid "guestfs_inspect_get_product_variant"
28869 msgstr ""
28870
28871 #. type: verbatim
28872 #: ../src/guestfs-actions.pod:3585
28873 #, no-wrap
28874 msgid ""
28875 " char *\n"
28876 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
28877 "                                      const char *root);\n"
28878 "\n"
28879 msgstr ""
28880
28881 #. type: textblock
28882 #: ../src/guestfs-actions.pod:3608
28883 msgid ""
28884 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28885 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
28886 msgstr ""
28887
28888 #. type: textblock
28889 #: ../src/guestfs-actions.pod:3615
28890 msgid "(Added in 1.9.13)"
28891 msgstr ""
28892
28893 #. type: =head2
28894 #: ../src/guestfs-actions.pod:3617
28895 msgid "guestfs_inspect_get_roots"
28896 msgstr ""
28897
28898 #. type: verbatim
28899 #: ../src/guestfs-actions.pod:3619
28900 #, no-wrap
28901 msgid ""
28902 " char **\n"
28903 " guestfs_inspect_get_roots (guestfs_h *g);\n"
28904 "\n"
28905 msgstr ""
28906
28907 #. type: textblock
28908 #: ../src/guestfs-actions.pod:3622
28909 msgid ""
28910 "This function is a convenient way to get the list of root devices, as "
28911 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
28912 "the whole inspection process."
28913 msgstr ""
28914
28915 #. type: textblock
28916 #: ../src/guestfs-actions.pod:3626
28917 msgid ""
28918 "This returns an empty list if either no root devices were found or the "
28919 "caller has not called C<guestfs_inspect_os>."
28920 msgstr ""
28921
28922 #. type: textblock
28923 #: ../src/guestfs-actions.pod:3635
28924 msgid "(Added in 1.7.3)"
28925 msgstr ""
28926
28927 #. type: =head2
28928 #: ../src/guestfs-actions.pod:3637
28929 msgid "guestfs_inspect_get_type"
28930 msgstr ""
28931
28932 #. type: verbatim
28933 #: ../src/guestfs-actions.pod:3639
28934 #, no-wrap
28935 msgid ""
28936 " char *\n"
28937 " guestfs_inspect_get_type (guestfs_h *g,\n"
28938 "                           const char *root);\n"
28939 "\n"
28940 msgstr ""
28941
28942 #. type: =head2
28943 #: ../src/guestfs-actions.pod:3684
28944 msgid "guestfs_inspect_get_windows_current_control_set"
28945 msgstr ""
28946
28947 #. type: verbatim
28948 #: ../src/guestfs-actions.pod:3686
28949 #, no-wrap
28950 msgid ""
28951 " char *\n"
28952 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
28953 "                                                  const char *root);\n"
28954 "\n"
28955 msgstr ""
28956
28957 #. type: =head2
28958 #: ../src/guestfs-actions.pod:3704
28959 msgid "guestfs_inspect_get_windows_systemroot"
28960 msgstr ""
28961
28962 #. type: verbatim
28963 #: ../src/guestfs-actions.pod:3706
28964 #, no-wrap
28965 msgid ""
28966 " char *\n"
28967 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
28968 "                                         const char *root);\n"
28969 "\n"
28970 msgstr ""
28971
28972 #. type: textblock
28973 #: ../src/guestfs-actions.pod:3722
28974 msgid "(Added in 1.5.25)"
28975 msgstr ""
28976
28977 #. type: =head2
28978 #: ../src/guestfs-actions.pod:3724
28979 msgid "guestfs_inspect_is_live"
28980 msgstr ""
28981
28982 #. type: verbatim
28983 #: ../src/guestfs-actions.pod:3726
28984 #, no-wrap
28985 msgid ""
28986 " int\n"
28987 " guestfs_inspect_is_live (guestfs_h *g,\n"
28988 "                          const char *root);\n"
28989 "\n"
28990 msgstr ""
28991
28992 #. type: textblock
28993 #: ../src/guestfs-actions.pod:3730
28994 msgid ""
28995 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28996 "disk), then this returns true if a live image was detected on the disk."
28997 msgstr ""
28998
28999 #. type: =head2
29000 #: ../src/guestfs-actions.pod:3740
29001 msgid "guestfs_inspect_is_multipart"
29002 msgstr ""
29003
29004 #. type: verbatim
29005 #: ../src/guestfs-actions.pod:3742
29006 #, no-wrap
29007 msgid ""
29008 " int\n"
29009 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
29010 "                               const char *root);\n"
29011 "\n"
29012 msgstr ""
29013
29014 #. type: textblock
29015 #: ../src/guestfs-actions.pod:3746
29016 msgid ""
29017 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29018 "disk), then this returns true if the disk is part of a set."
29019 msgstr ""
29020
29021 #. type: =head2
29022 #: ../src/guestfs-actions.pod:3756
29023 msgid "guestfs_inspect_is_netinst"
29024 msgstr ""
29025
29026 #. type: verbatim
29027 #: ../src/guestfs-actions.pod:3758
29028 #, no-wrap
29029 msgid ""
29030 " int\n"
29031 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
29032 "                             const char *root);\n"
29033 "\n"
29034 msgstr ""
29035
29036 #. type: textblock
29037 #: ../src/guestfs-actions.pod:3762
29038 msgid ""
29039 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29040 "disk), then this returns true if the disk is a network installer, ie. not a "
29041 "self-contained install CD but one which is likely to require network access "
29042 "to complete the install."
29043 msgstr ""
29044
29045 #. type: =head2
29046 #: ../src/guestfs-actions.pod:3774
29047 msgid "guestfs_inspect_list_applications"
29048 msgstr ""
29049
29050 #. type: verbatim
29051 #: ../src/guestfs-actions.pod:3776
29052 #, no-wrap
29053 msgid ""
29054 " struct guestfs_application_list *\n"
29055 " guestfs_inspect_list_applications (guestfs_h *g,\n"
29056 "                                    const char *root);\n"
29057 "\n"
29058 msgstr ""
29059
29060 #. type: textblock
29061 #: ../src/guestfs-actions.pod:3782
29062 msgid ""
29063 "I<Note:> This call works differently from other parts of the inspection "
29064 "API.  You have to call C<guestfs_inspect_os>, then "
29065 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
29066 "this.  Listing applications is a significantly more difficult operation "
29067 "which requires access to the full filesystem.  Also note that unlike the "
29068 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
29069 "the libguestfs handle, this call actually reads parts of the mounted "
29070 "filesystems during the call."
29071 msgstr ""
29072
29073 #. type: textblock
29074 #: ../src/guestfs-actions.pod:3872
29075 msgid ""
29076 "This function returns a C<struct guestfs_application_list *>, or NULL if "
29077 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
29078 "after use>."
29079 msgstr ""
29080
29081 #. type: textblock
29082 #: ../src/guestfs-actions.pod:3876
29083 msgid "(Added in 1.7.8)"
29084 msgstr ""
29085
29086 #. type: =head2
29087 #: ../src/guestfs-actions.pod:3878
29088 msgid "guestfs_inspect_os"
29089 msgstr ""
29090
29091 #. type: verbatim
29092 #: ../src/guestfs-actions.pod:3880
29093 #, no-wrap
29094 msgid ""
29095 " char **\n"
29096 " guestfs_inspect_os (guestfs_h *g);\n"
29097 "\n"
29098 msgstr ""
29099
29100 #. type: textblock
29101 #: ../src/guestfs-actions.pod:3896
29102 msgid ""
29103 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
29104 "functions in order to query further information about each operating system, "
29105 "such as the name and version."
29106 msgstr ""
29107
29108 #. type: textblock
29109 #: ../src/guestfs-actions.pod:3901
29110 msgid ""
29111 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
29112 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
29113 "the contents.  This should be called with no disks currently mounted.  The "
29114 "function may also use Augeas, so any existing Augeas handle will be closed."
29115 msgstr ""
29116
29117 #. type: textblock
29118 #: ../src/guestfs-actions.pod:3913 ../src/guestfs-actions.pod:4244 ../src/guestfs-actions.pod:4339
29119 msgid "See also C<guestfs_list_filesystems>."
29120 msgstr ""
29121
29122 #. type: =head2
29123 #: ../src/guestfs-actions.pod:3921
29124 msgid "guestfs_is_blockdev"
29125 msgstr ""
29126
29127 #. type: verbatim
29128 #: ../src/guestfs-actions.pod:3923
29129 #, no-wrap
29130 msgid ""
29131 " int\n"
29132 " guestfs_is_blockdev (guestfs_h *g,\n"
29133 "                      const char *path);\n"
29134 "\n"
29135 msgstr ""
29136
29137 #. type: textblock
29138 #: ../src/guestfs-actions.pod:3930 ../src/guestfs-actions.pod:3959 ../src/guestfs-actions.pod:3989 ../src/guestfs-actions.pod:4004 ../src/guestfs-actions.pod:4020 ../src/guestfs-actions.pod:4076 ../src/guestfs-actions.pod:4091
29139 msgid "See also C<guestfs_stat>."
29140 msgstr ""
29141
29142 #. type: textblock
29143 #: ../src/guestfs-actions.pod:3934 ../src/guestfs-actions.pod:3963 ../src/guestfs-actions.pod:4008 ../src/guestfs-actions.pod:4080 ../src/guestfs-actions.pod:4095
29144 msgid "(Added in 1.5.10)"
29145 msgstr ""
29146
29147 #. type: =head2
29148 #: ../src/guestfs-actions.pod:3936
29149 msgid "guestfs_is_busy"
29150 msgstr ""
29151
29152 #. type: verbatim
29153 #: ../src/guestfs-actions.pod:3938
29154 #, no-wrap
29155 msgid ""
29156 " int\n"
29157 " guestfs_is_busy (guestfs_h *g);\n"
29158 "\n"
29159 msgstr ""
29160
29161 #. type: =head2
29162 #: ../src/guestfs-actions.pod:3950
29163 msgid "guestfs_is_chardev"
29164 msgstr ""
29165
29166 #. type: verbatim
29167 #: ../src/guestfs-actions.pod:3952
29168 #, no-wrap
29169 msgid ""
29170 " int\n"
29171 " guestfs_is_chardev (guestfs_h *g,\n"
29172 "                     const char *path);\n"
29173 "\n"
29174 msgstr ""
29175
29176 #. type: =head2
29177 #: ../src/guestfs-actions.pod:3965
29178 msgid "guestfs_is_config"
29179 msgstr ""
29180
29181 #. type: verbatim
29182 #: ../src/guestfs-actions.pod:3967
29183 #, no-wrap
29184 msgid ""
29185 " int\n"
29186 " guestfs_is_config (guestfs_h *g);\n"
29187 "\n"
29188 msgstr ""
29189
29190 #. type: =head2
29191 #: ../src/guestfs-actions.pod:3979
29192 msgid "guestfs_is_dir"
29193 msgstr ""
29194
29195 #. type: verbatim
29196 #: ../src/guestfs-actions.pod:3981
29197 #, no-wrap
29198 msgid ""
29199 " int\n"
29200 " guestfs_is_dir (guestfs_h *g,\n"
29201 "                 const char *path);\n"
29202 "\n"
29203 msgstr ""
29204
29205 #. type: =head2
29206 #: ../src/guestfs-actions.pod:3995
29207 msgid "guestfs_is_fifo"
29208 msgstr ""
29209
29210 #. type: verbatim
29211 #: ../src/guestfs-actions.pod:3997
29212 #, no-wrap
29213 msgid ""
29214 " int\n"
29215 " guestfs_is_fifo (guestfs_h *g,\n"
29216 "                  const char *path);\n"
29217 "\n"
29218 msgstr ""
29219
29220 #. type: =head2
29221 #: ../src/guestfs-actions.pod:4010
29222 msgid "guestfs_is_file"
29223 msgstr ""
29224
29225 #. type: verbatim
29226 #: ../src/guestfs-actions.pod:4012
29227 #, no-wrap
29228 msgid ""
29229 " int\n"
29230 " guestfs_is_file (guestfs_h *g,\n"
29231 "                  const char *path);\n"
29232 "\n"
29233 msgstr ""
29234
29235 #. type: =head2
29236 #: ../src/guestfs-actions.pod:4026
29237 msgid "guestfs_is_launching"
29238 msgstr ""
29239
29240 #. type: verbatim
29241 #: ../src/guestfs-actions.pod:4028
29242 #, no-wrap
29243 msgid ""
29244 " int\n"
29245 " guestfs_is_launching (guestfs_h *g);\n"
29246 "\n"
29247 msgstr ""
29248
29249 #. type: =head2
29250 #: ../src/guestfs-actions.pod:4040
29251 msgid "guestfs_is_lv"
29252 msgstr ""
29253
29254 #. type: verbatim
29255 #: ../src/guestfs-actions.pod:4042
29256 #, no-wrap
29257 msgid ""
29258 " int\n"
29259 " guestfs_is_lv (guestfs_h *g,\n"
29260 "                const char *device);\n"
29261 "\n"
29262 msgstr ""
29263
29264 #. type: =head2
29265 #: ../src/guestfs-actions.pod:4053
29266 msgid "guestfs_is_ready"
29267 msgstr ""
29268
29269 #. type: verbatim
29270 #: ../src/guestfs-actions.pod:4055
29271 #, no-wrap
29272 msgid ""
29273 " int\n"
29274 " guestfs_is_ready (guestfs_h *g);\n"
29275 "\n"
29276 msgstr ""
29277
29278 #. type: =head2
29279 #: ../src/guestfs-actions.pod:4067
29280 msgid "guestfs_is_socket"
29281 msgstr ""
29282
29283 #. type: verbatim
29284 #: ../src/guestfs-actions.pod:4069
29285 #, no-wrap
29286 msgid ""
29287 " int\n"
29288 " guestfs_is_socket (guestfs_h *g,\n"
29289 "                    const char *path);\n"
29290 "\n"
29291 msgstr ""
29292
29293 #. type: =head2
29294 #: ../src/guestfs-actions.pod:4082
29295 msgid "guestfs_is_symlink"
29296 msgstr ""
29297
29298 #. type: verbatim
29299 #: ../src/guestfs-actions.pod:4084
29300 #, no-wrap
29301 msgid ""
29302 " int\n"
29303 " guestfs_is_symlink (guestfs_h *g,\n"
29304 "                     const char *path);\n"
29305 "\n"
29306 msgstr ""
29307
29308 #. type: =head2
29309 #: ../src/guestfs-actions.pod:4097
29310 msgid "guestfs_is_zero"
29311 msgstr ""
29312
29313 #. type: verbatim
29314 #: ../src/guestfs-actions.pod:4099
29315 #, no-wrap
29316 msgid ""
29317 " int\n"
29318 " guestfs_is_zero (guestfs_h *g,\n"
29319 "                  const char *path);\n"
29320 "\n"
29321 msgstr ""
29322
29323 #. type: textblock
29324 #: ../src/guestfs-actions.pod:4108 ../src/guestfs-actions.pod:4122
29325 msgid "(Added in 1.11.8)"
29326 msgstr ""
29327
29328 #. type: =head2
29329 #: ../src/guestfs-actions.pod:4110
29330 msgid "guestfs_is_zero_device"
29331 msgstr ""
29332
29333 #. type: verbatim
29334 #: ../src/guestfs-actions.pod:4112
29335 #, no-wrap
29336 msgid ""
29337 " int\n"
29338 " guestfs_is_zero_device (guestfs_h *g,\n"
29339 "                         const char *device);\n"
29340 "\n"
29341 msgstr ""
29342
29343 #. type: =head2
29344 #: ../src/guestfs-actions.pod:4124
29345 msgid "guestfs_kill_subprocess"
29346 msgstr ""
29347
29348 #. type: verbatim
29349 #: ../src/guestfs-actions.pod:4126
29350 #, no-wrap
29351 msgid ""
29352 " int\n"
29353 " guestfs_kill_subprocess (guestfs_h *g);\n"
29354 "\n"
29355 msgstr ""
29356
29357 #. type: =head2
29358 #: ../src/guestfs-actions.pod:4135
29359 msgid "guestfs_launch"
29360 msgstr ""
29361
29362 #. type: verbatim
29363 #: ../src/guestfs-actions.pod:4137
29364 #, no-wrap
29365 msgid ""
29366 " int\n"
29367 " guestfs_launch (guestfs_h *g);\n"
29368 "\n"
29369 msgstr ""
29370
29371 #. type: =head2
29372 #: ../src/guestfs-actions.pod:4155
29373 msgid "guestfs_lchown"
29374 msgstr ""
29375
29376 #. type: verbatim
29377 #: ../src/guestfs-actions.pod:4157
29378 #, no-wrap
29379 msgid ""
29380 " int\n"
29381 " guestfs_lchown (guestfs_h *g,\n"
29382 "                 int owner,\n"
29383 "                 int group,\n"
29384 "                 const char *path);\n"
29385 "\n"
29386 msgstr ""
29387
29388 #. type: textblock
29389 #: ../src/guestfs-actions.pod:4163
29390 msgid ""
29391 "Change the file owner to C<owner> and group to C<group>.  This is like "
29392 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
29393 "changed, not the target."
29394 msgstr ""
29395
29396 #. type: =head2
29397 #: ../src/guestfs-actions.pod:4175
29398 msgid "guestfs_lgetxattr"
29399 msgstr ""
29400
29401 #. type: verbatim
29402 #: ../src/guestfs-actions.pod:4177
29403 #, no-wrap
29404 msgid ""
29405 " char *\n"
29406 " guestfs_lgetxattr (guestfs_h *g,\n"
29407 "                    const char *path,\n"
29408 "                    const char *name,\n"
29409 "                    size_t *size_r);\n"
29410 "\n"
29411 msgstr ""
29412
29413 #. type: textblock
29414 #: ../src/guestfs-actions.pod:4197
29415 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
29416 msgstr ""
29417
29418 #. type: =head2
29419 #: ../src/guestfs-actions.pod:4205
29420 msgid "guestfs_lgetxattrs"
29421 msgstr ""
29422
29423 #. type: verbatim
29424 #: ../src/guestfs-actions.pod:4207
29425 #, no-wrap
29426 msgid ""
29427 " struct guestfs_xattr_list *\n"
29428 " guestfs_lgetxattrs (guestfs_h *g,\n"
29429 "                     const char *path);\n"
29430 "\n"
29431 msgstr ""
29432
29433 #. type: textblock
29434 #: ../src/guestfs-actions.pod:4211
29435 msgid ""
29436 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
29437 "then it returns the extended attributes of the link itself."
29438 msgstr ""
29439
29440 #. type: =head2
29441 #: ../src/guestfs-actions.pod:4221
29442 msgid "guestfs_list_9p"
29443 msgstr ""
29444
29445 #. type: verbatim
29446 #: ../src/guestfs-actions.pod:4223
29447 #, no-wrap
29448 msgid ""
29449 " char **\n"
29450 " guestfs_list_9p (guestfs_h *g);\n"
29451 "\n"
29452 msgstr ""
29453
29454 #. type: =head2
29455 #: ../src/guestfs-actions.pod:4235
29456 msgid "guestfs_list_devices"
29457 msgstr ""
29458
29459 #. type: verbatim
29460 #: ../src/guestfs-actions.pod:4237
29461 #, no-wrap
29462 msgid ""
29463 " char **\n"
29464 " guestfs_list_devices (guestfs_h *g);\n"
29465 "\n"
29466 msgstr ""
29467
29468 #. type: =head2
29469 #: ../src/guestfs-actions.pod:4252
29470 msgid "guestfs_list_dm_devices"
29471 msgstr ""
29472
29473 #. type: verbatim
29474 #: ../src/guestfs-actions.pod:4254
29475 #, no-wrap
29476 msgid ""
29477 " char **\n"
29478 " guestfs_list_dm_devices (guestfs_h *g);\n"
29479 "\n"
29480 msgstr ""
29481
29482 #. type: textblock
29483 #: ../src/guestfs-actions.pod:4259
29484 msgid ""
29485 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
29486 "previous call to C<guestfs_luks_open>."
29487 msgstr ""
29488
29489 #. type: textblock
29490 #: ../src/guestfs-actions.pod:4262
29491 msgid ""
29492 "Device mapper devices which correspond to logical volumes are I<not> "
29493 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
29494 "volumes."
29495 msgstr ""
29496
29497 #. type: textblock
29498 #: ../src/guestfs-actions.pod:4270 ../src/guestfs-actions.pod:5869
29499 msgid "(Added in 1.11.15)"
29500 msgstr ""
29501
29502 #. type: =head2
29503 #: ../src/guestfs-actions.pod:4272
29504 msgid "guestfs_list_filesystems"
29505 msgstr ""
29506
29507 #. type: verbatim
29508 #: ../src/guestfs-actions.pod:4274
29509 #, no-wrap
29510 msgid ""
29511 " char **\n"
29512 " guestfs_list_filesystems (guestfs_h *g);\n"
29513 "\n"
29514 msgstr ""
29515
29516 #. type: textblock
29517 #: ../src/guestfs-actions.pod:4294
29518 msgid ""
29519 "This command runs other libguestfs commands, which might include "
29520 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
29521 "soon after launch and only when nothing is mounted."
29522 msgstr ""
29523
29524 #. type: textblock
29525 #: ../src/guestfs-actions.pod:4298
29526 msgid ""
29527 "Not all of the filesystems returned will be mountable.  In particular, swap "
29528 "partitions are returned in the list.  Also this command does not check that "
29529 "each filesystem found is valid and mountable, and some filesystems might be "
29530 "mountable but require special options.  Filesystems may not all belong to a "
29531 "single logical operating system (use C<guestfs_inspect_os> to look for "
29532 "OSes)."
29533 msgstr ""
29534
29535 #. type: textblock
29536 #: ../src/guestfs-actions.pod:4312 ../src/guestfs-actions.pod:6229
29537 msgid "(Added in 1.5.15)"
29538 msgstr ""
29539
29540 #. type: =head2
29541 #: ../src/guestfs-actions.pod:4314
29542 msgid "guestfs_list_md_devices"
29543 msgstr ""
29544
29545 #. type: verbatim
29546 #: ../src/guestfs-actions.pod:4316
29547 #, no-wrap
29548 msgid ""
29549 " char **\n"
29550 " guestfs_list_md_devices (guestfs_h *g);\n"
29551 "\n"
29552 msgstr ""
29553
29554 #. type: textblock
29555 #: ../src/guestfs-actions.pod:4325 ../src/guestfs-actions.pod:7890
29556 msgid "(Added in 1.15.4)"
29557 msgstr ""
29558
29559 #. type: =head2
29560 #: ../src/guestfs-actions.pod:4327
29561 msgid "guestfs_list_partitions"
29562 msgstr ""
29563
29564 #. type: verbatim
29565 #: ../src/guestfs-actions.pod:4329
29566 #, no-wrap
29567 msgid ""
29568 " char **\n"
29569 " guestfs_list_partitions (guestfs_h *g);\n"
29570 "\n"
29571 msgstr ""
29572
29573 #. type: textblock
29574 #: ../src/guestfs-actions.pod:4336
29575 msgid ""
29576 "This does not return logical volumes.  For that you will need to call "
29577 "C<guestfs_lvs>."
29578 msgstr ""
29579
29580 #. type: =head2
29581 #: ../src/guestfs-actions.pod:4347
29582 msgid "guestfs_ll"
29583 msgstr ""
29584
29585 #. type: verbatim
29586 #: ../src/guestfs-actions.pod:4349
29587 #, no-wrap
29588 msgid ""
29589 " char *\n"
29590 " guestfs_ll (guestfs_h *g,\n"
29591 "             const char *directory);\n"
29592 "\n"
29593 msgstr ""
29594
29595 #. type: =head2
29596 #: ../src/guestfs-actions.pod:4364
29597 msgid "guestfs_ln"
29598 msgstr ""
29599
29600 #. type: verbatim
29601 #: ../src/guestfs-actions.pod:4366
29602 #, no-wrap
29603 msgid ""
29604 " int\n"
29605 " guestfs_ln (guestfs_h *g,\n"
29606 "             const char *target,\n"
29607 "             const char *linkname);\n"
29608 "\n"
29609 msgstr ""
29610
29611 #. type: =head2
29612 #: ../src/guestfs-actions.pod:4377
29613 msgid "guestfs_ln_f"
29614 msgstr ""
29615
29616 #. type: verbatim
29617 #: ../src/guestfs-actions.pod:4379
29618 #, no-wrap
29619 msgid ""
29620 " int\n"
29621 " guestfs_ln_f (guestfs_h *g,\n"
29622 "               const char *target,\n"
29623 "               const char *linkname);\n"
29624 "\n"
29625 msgstr ""
29626
29627 #. type: =head2
29628 #: ../src/guestfs-actions.pod:4391
29629 msgid "guestfs_ln_s"
29630 msgstr ""
29631
29632 #. type: verbatim
29633 #: ../src/guestfs-actions.pod:4393
29634 #, no-wrap
29635 msgid ""
29636 " int\n"
29637 " guestfs_ln_s (guestfs_h *g,\n"
29638 "               const char *target,\n"
29639 "               const char *linkname);\n"
29640 "\n"
29641 msgstr ""
29642
29643 #. type: =head2
29644 #: ../src/guestfs-actions.pod:4404
29645 msgid "guestfs_ln_sf"
29646 msgstr ""
29647
29648 #. type: verbatim
29649 #: ../src/guestfs-actions.pod:4406
29650 #, no-wrap
29651 msgid ""
29652 " int\n"
29653 " guestfs_ln_sf (guestfs_h *g,\n"
29654 "                const char *target,\n"
29655 "                const char *linkname);\n"
29656 "\n"
29657 msgstr ""
29658
29659 #. type: =head2
29660 #: ../src/guestfs-actions.pod:4418
29661 msgid "guestfs_lremovexattr"
29662 msgstr ""
29663
29664 #. type: verbatim
29665 #: ../src/guestfs-actions.pod:4420
29666 #, no-wrap
29667 msgid ""
29668 " int\n"
29669 " guestfs_lremovexattr (guestfs_h *g,\n"
29670 "                       const char *xattr,\n"
29671 "                       const char *path);\n"
29672 "\n"
29673 msgstr ""
29674
29675 #. type: textblock
29676 #: ../src/guestfs-actions.pod:4425
29677 msgid ""
29678 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
29679 "link, then it removes an extended attribute of the link itself."
29680 msgstr ""
29681
29682 #. type: =head2
29683 #: ../src/guestfs-actions.pod:4433
29684 msgid "guestfs_ls"
29685 msgstr ""
29686
29687 #. type: verbatim
29688 #: ../src/guestfs-actions.pod:4435
29689 #, no-wrap
29690 msgid ""
29691 " char **\n"
29692 " guestfs_ls (guestfs_h *g,\n"
29693 "             const char *directory);\n"
29694 "\n"
29695 msgstr ""
29696
29697 #. type: textblock
29698 #: ../src/guestfs-actions.pod:4443
29699 msgid ""
29700 "This command is mostly useful for interactive sessions.  Programs should "
29701 "probably use C<guestfs_readdir> instead."
29702 msgstr ""
29703
29704 #. type: =head2
29705 #: ../src/guestfs-actions.pod:4452
29706 msgid "guestfs_lsetxattr"
29707 msgstr ""
29708
29709 #. type: verbatim
29710 #: ../src/guestfs-actions.pod:4454
29711 #, no-wrap
29712 msgid ""
29713 " int\n"
29714 " guestfs_lsetxattr (guestfs_h *g,\n"
29715 "                    const char *xattr,\n"
29716 "                    const char *val,\n"
29717 "                    int vallen,\n"
29718 "                    const char *path);\n"
29719 "\n"
29720 msgstr ""
29721
29722 #. type: textblock
29723 #: ../src/guestfs-actions.pod:4461
29724 msgid ""
29725 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
29726 "then it sets an extended attribute of the link itself."
29727 msgstr ""
29728
29729 #. type: =head2
29730 #: ../src/guestfs-actions.pod:4469
29731 msgid "guestfs_lstat"
29732 msgstr ""
29733
29734 #. type: verbatim
29735 #: ../src/guestfs-actions.pod:4471
29736 #, no-wrap
29737 msgid ""
29738 " struct guestfs_stat *\n"
29739 " guestfs_lstat (guestfs_h *g,\n"
29740 "                const char *path);\n"
29741 "\n"
29742 msgstr ""
29743
29744 #. type: textblock
29745 #: ../src/guestfs-actions.pod:4477
29746 msgid ""
29747 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
29748 "link, then the link is stat-ed, not the file it refers to."
29749 msgstr ""
29750
29751 #. type: textblock
29752 #: ../src/guestfs-actions.pod:4483 ../src/guestfs-actions.pod:7409
29753 msgid ""
29754 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
29755 "error.  I<The caller must call C<guestfs_free_stat> after use>."
29756 msgstr ""
29757
29758 #. type: textblock
29759 #: ../src/guestfs-actions.pod:4487 ../src/guestfs-actions.pod:7413 ../src/guestfs-actions.pod:7431 ../src/guestfs-actions.pod:7934
29760 msgid "(Added in 0.9.2)"
29761 msgstr ""
29762
29763 #. type: =head2
29764 #: ../src/guestfs-actions.pod:4489
29765 msgid "guestfs_lstatlist"
29766 msgstr ""
29767
29768 #. type: verbatim
29769 #: ../src/guestfs-actions.pod:4491
29770 #, no-wrap
29771 msgid ""
29772 " struct guestfs_stat_list *\n"
29773 " guestfs_lstatlist (guestfs_h *g,\n"
29774 "                    const char *path,\n"
29775 "                    char *const *names);\n"
29776 "\n"
29777 msgstr ""
29778
29779 #. type: textblock
29780 #: ../src/guestfs-actions.pod:4496
29781 msgid ""
29782 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
29783 "files, where all files are in the directory C<path>.  C<names> is the list "
29784 "of files from this directory."
29785 msgstr ""
29786
29787 #. type: textblock
29788 #: ../src/guestfs-actions.pod:4505
29789 msgid ""
29790 "This call is intended for programs that want to efficiently list a directory "
29791 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
29792 "for a similarly efficient call for getting extended attributes.  Very long "
29793 "directory listings might cause the protocol message size to be exceeded, "
29794 "causing this call to fail.  The caller must split up such requests into "
29795 "smaller groups of names."
29796 msgstr ""
29797
29798 #. type: textblock
29799 #: ../src/guestfs-actions.pod:4513
29800 msgid ""
29801 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
29802 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
29803 msgstr ""
29804
29805 #. type: =head2
29806 #: ../src/guestfs-actions.pod:4519
29807 msgid "guestfs_luks_add_key"
29808 msgstr ""
29809
29810 #. type: verbatim
29811 #: ../src/guestfs-actions.pod:4521
29812 #, no-wrap
29813 msgid ""
29814 " int\n"
29815 " guestfs_luks_add_key (guestfs_h *g,\n"
29816 "                       const char *device,\n"
29817 "                       const char *key,\n"
29818 "                       const char *newkey,\n"
29819 "                       int keyslot);\n"
29820 "\n"
29821 msgstr ""
29822
29823 #. type: textblock
29824 #: ../src/guestfs-actions.pod:4533
29825 msgid ""
29826 "Note that if C<keyslot> already contains a key, then this command will "
29827 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
29828 msgstr ""
29829
29830 #. type: textblock
29831 #: ../src/guestfs-actions.pod:4539 ../src/guestfs-actions.pod:4576 ../src/guestfs-actions.pod:4596 ../src/guestfs-actions.pod:4616 ../src/guestfs-actions.pod:4651 ../src/guestfs-actions.pod:4670
29832 msgid ""
29833 "This function takes a key or passphrase parameter which could contain "
29834 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
29835 "information."
29836 msgstr ""
29837
29838 #. type: textblock
29839 #: ../src/guestfs-actions.pod:4543 ../src/guestfs-actions.pod:4580 ../src/guestfs-actions.pod:4600 ../src/guestfs-actions.pod:4620
29840 msgid "(Added in 1.5.2)"
29841 msgstr ""
29842
29843 #. type: =head2
29844 #: ../src/guestfs-actions.pod:4545
29845 msgid "guestfs_luks_close"
29846 msgstr ""
29847
29848 #. type: verbatim
29849 #: ../src/guestfs-actions.pod:4547
29850 #, no-wrap
29851 msgid ""
29852 " int\n"
29853 " guestfs_luks_close (guestfs_h *g,\n"
29854 "                     const char *device);\n"
29855 "\n"
29856 msgstr ""
29857
29858 #. type: textblock
29859 #: ../src/guestfs-actions.pod:4551
29860 msgid ""
29861 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
29862 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
29863 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
29864 "underlying block device."
29865 msgstr ""
29866
29867 #. type: textblock
29868 #: ../src/guestfs-actions.pod:4559 ../src/guestfs-actions.pod:4655 ../src/guestfs-actions.pod:4674 ../src/guestfs-actions.pod:4724 ../src/guestfs-actions.pod:4769
29869 msgid "(Added in 1.5.1)"
29870 msgstr ""
29871
29872 #. type: =head2
29873 #: ../src/guestfs-actions.pod:4561
29874 msgid "guestfs_luks_format"
29875 msgstr ""
29876
29877 #. type: verbatim
29878 #: ../src/guestfs-actions.pod:4563
29879 #, no-wrap
29880 msgid ""
29881 " int\n"
29882 " guestfs_luks_format (guestfs_h *g,\n"
29883 "                      const char *device,\n"
29884 "                      const char *key,\n"
29885 "                      int keyslot);\n"
29886 "\n"
29887 msgstr ""
29888
29889 #. type: =head2
29890 #: ../src/guestfs-actions.pod:4582
29891 msgid "guestfs_luks_format_cipher"
29892 msgstr ""
29893
29894 #. type: verbatim
29895 #: ../src/guestfs-actions.pod:4584
29896 #, no-wrap
29897 msgid ""
29898 " int\n"
29899 " guestfs_luks_format_cipher (guestfs_h *g,\n"
29900 "                             const char *device,\n"
29901 "                             const char *key,\n"
29902 "                             int keyslot,\n"
29903 "                             const char *cipher);\n"
29904 "\n"
29905 msgstr ""
29906
29907 #. type: textblock
29908 #: ../src/guestfs-actions.pod:4591
29909 msgid ""
29910 "This command is the same as C<guestfs_luks_format> but it also allows you to "
29911 "set the C<cipher> used."
29912 msgstr ""
29913
29914 #. type: =head2
29915 #: ../src/guestfs-actions.pod:4602
29916 msgid "guestfs_luks_kill_slot"
29917 msgstr ""
29918
29919 #. type: verbatim
29920 #: ../src/guestfs-actions.pod:4604
29921 #, no-wrap
29922 msgid ""
29923 " int\n"
29924 " guestfs_luks_kill_slot (guestfs_h *g,\n"
29925 "                         const char *device,\n"
29926 "                         const char *key,\n"
29927 "                         int keyslot);\n"
29928 "\n"
29929 msgstr ""
29930
29931 #. type: =head2
29932 #: ../src/guestfs-actions.pod:4622
29933 msgid "guestfs_luks_open"
29934 msgstr ""
29935
29936 #. type: verbatim
29937 #: ../src/guestfs-actions.pod:4624
29938 #, no-wrap
29939 msgid ""
29940 " int\n"
29941 " guestfs_luks_open (guestfs_h *g,\n"
29942 "                    const char *device,\n"
29943 "                    const char *key,\n"
29944 "                    const char *mapname);\n"
29945 "\n"
29946 msgstr ""
29947
29948 #. type: textblock
29949 #: ../src/guestfs-actions.pod:4642
29950 msgid ""
29951 "If this block device contains LVM volume groups, then calling "
29952 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
29953 "visible."
29954 msgstr ""
29955
29956 #. type: textblock
29957 #: ../src/guestfs-actions.pod:4646
29958 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
29959 msgstr ""
29960
29961 #. type: =head2
29962 #: ../src/guestfs-actions.pod:4657
29963 msgid "guestfs_luks_open_ro"
29964 msgstr ""
29965
29966 #. type: verbatim
29967 #: ../src/guestfs-actions.pod:4659
29968 #, no-wrap
29969 msgid ""
29970 " int\n"
29971 " guestfs_luks_open_ro (guestfs_h *g,\n"
29972 "                       const char *device,\n"
29973 "                       const char *key,\n"
29974 "                       const char *mapname);\n"
29975 "\n"
29976 msgstr ""
29977
29978 #. type: textblock
29979 #: ../src/guestfs-actions.pod:4665
29980 msgid ""
29981 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
29982 "created."
29983 msgstr ""
29984
29985 #. type: =head2
29986 #: ../src/guestfs-actions.pod:4676
29987 msgid "guestfs_lvcreate"
29988 msgstr ""
29989
29990 #. type: verbatim
29991 #: ../src/guestfs-actions.pod:4678
29992 #, no-wrap
29993 msgid ""
29994 " int\n"
29995 " guestfs_lvcreate (guestfs_h *g,\n"
29996 "                   const char *logvol,\n"
29997 "                   const char *volgroup,\n"
29998 "                   int mbytes);\n"
29999 "\n"
30000 msgstr ""
30001
30002 #. type: =head2
30003 #: ../src/guestfs-actions.pod:4691
30004 msgid "guestfs_lvm_canonical_lv_name"
30005 msgstr ""
30006
30007 #. type: verbatim
30008 #: ../src/guestfs-actions.pod:4693
30009 #, no-wrap
30010 msgid ""
30011 " char *\n"
30012 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
30013 "                                const char *lvname);\n"
30014 "\n"
30015 msgstr ""
30016
30017 #. type: textblock
30018 #: ../src/guestfs-actions.pod:4704
30019 msgid "See also C<guestfs_is_lv>."
30020 msgstr ""
30021
30022 #. type: textblock
30023 #: ../src/guestfs-actions.pod:4709
30024 msgid "(Added in 1.5.24)"
30025 msgstr ""
30026
30027 #. type: =head2
30028 #: ../src/guestfs-actions.pod:4711
30029 msgid "guestfs_lvm_clear_filter"
30030 msgstr ""
30031
30032 #. type: verbatim
30033 #: ../src/guestfs-actions.pod:4713
30034 #, no-wrap
30035 msgid ""
30036 " int\n"
30037 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
30038 "\n"
30039 msgstr ""
30040
30041 #. type: textblock
30042 #: ../src/guestfs-actions.pod:4716
30043 msgid ""
30044 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
30045 "see every block device."
30046 msgstr ""
30047
30048 #. type: =head2
30049 #: ../src/guestfs-actions.pod:4726
30050 msgid "guestfs_lvm_remove_all"
30051 msgstr ""
30052
30053 #. type: verbatim
30054 #: ../src/guestfs-actions.pod:4728
30055 #, no-wrap
30056 msgid ""
30057 " int\n"
30058 " guestfs_lvm_remove_all (guestfs_h *g);\n"
30059 "\n"
30060 msgstr ""
30061
30062 #. type: =head2
30063 #: ../src/guestfs-actions.pod:4738
30064 msgid "guestfs_lvm_set_filter"
30065 msgstr ""
30066
30067 #. type: verbatim
30068 #: ../src/guestfs-actions.pod:4740
30069 #, no-wrap
30070 msgid ""
30071 " int\n"
30072 " guestfs_lvm_set_filter (guestfs_h *g,\n"
30073 "                         char *const *devices);\n"
30074 "\n"
30075 msgstr ""
30076
30077 #. type: =head2
30078 #: ../src/guestfs-actions.pod:4771
30079 msgid "guestfs_lvremove"
30080 msgstr ""
30081
30082 #. type: verbatim
30083 #: ../src/guestfs-actions.pod:4773
30084 #, no-wrap
30085 msgid ""
30086 " int\n"
30087 " guestfs_lvremove (guestfs_h *g,\n"
30088 "                   const char *device);\n"
30089 "\n"
30090 msgstr ""
30091
30092 #. type: textblock
30093 #: ../src/guestfs-actions.pod:4785 ../src/guestfs-actions.pod:6344 ../src/guestfs-actions.pod:8304
30094 msgid "(Added in 1.0.13)"
30095 msgstr ""
30096
30097 #. type: =head2
30098 #: ../src/guestfs-actions.pod:4787
30099 msgid "guestfs_lvrename"
30100 msgstr ""
30101
30102 #. type: verbatim
30103 #: ../src/guestfs-actions.pod:4789
30104 #, no-wrap
30105 msgid ""
30106 " int\n"
30107 " guestfs_lvrename (guestfs_h *g,\n"
30108 "                   const char *logvol,\n"
30109 "                   const char *newlogvol);\n"
30110 "\n"
30111 msgstr ""
30112
30113 #. type: textblock
30114 #: ../src/guestfs-actions.pod:4798 ../src/guestfs-actions.pod:8317
30115 msgid "(Added in 1.0.83)"
30116 msgstr ""
30117
30118 #. type: =head2
30119 #: ../src/guestfs-actions.pod:4800
30120 msgid "guestfs_lvresize"
30121 msgstr ""
30122
30123 #. type: verbatim
30124 #: ../src/guestfs-actions.pod:4802
30125 #, no-wrap
30126 msgid ""
30127 " int\n"
30128 " guestfs_lvresize (guestfs_h *g,\n"
30129 "                   const char *device,\n"
30130 "                   int mbytes);\n"
30131 "\n"
30132 msgstr ""
30133
30134 #. type: =head2
30135 #: ../src/guestfs-actions.pod:4815
30136 msgid "guestfs_lvresize_free"
30137 msgstr ""
30138
30139 #. type: verbatim
30140 #: ../src/guestfs-actions.pod:4817
30141 #, no-wrap
30142 msgid ""
30143 " int\n"
30144 " guestfs_lvresize_free (guestfs_h *g,\n"
30145 "                        const char *lv,\n"
30146 "                        int percent);\n"
30147 "\n"
30148 msgstr ""
30149
30150 #. type: textblock
30151 #: ../src/guestfs-actions.pod:4830
30152 msgid "(Added in 1.3.3)"
30153 msgstr ""
30154
30155 #. type: =head2
30156 #: ../src/guestfs-actions.pod:4832
30157 msgid "guestfs_lvs"
30158 msgstr ""
30159
30160 #. type: verbatim
30161 #: ../src/guestfs-actions.pod:4834
30162 #, no-wrap
30163 msgid ""
30164 " char **\n"
30165 " guestfs_lvs (guestfs_h *g);\n"
30166 "\n"
30167 msgstr ""
30168
30169 #. type: textblock
30170 #: ../src/guestfs-actions.pod:4843
30171 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
30172 msgstr ""
30173
30174 #. type: =head2
30175 #: ../src/guestfs-actions.pod:4851
30176 msgid "guestfs_lvs_full"
30177 msgstr ""
30178
30179 #. type: verbatim
30180 #: ../src/guestfs-actions.pod:4853
30181 #, no-wrap
30182 msgid ""
30183 " struct guestfs_lvm_lv_list *\n"
30184 " guestfs_lvs_full (guestfs_h *g);\n"
30185 "\n"
30186 msgstr ""
30187
30188 #. type: textblock
30189 #: ../src/guestfs-actions.pod:4859
30190 msgid ""
30191 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
30192 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after "
30193 "use>."
30194 msgstr ""
30195
30196 #. type: =head2
30197 #: ../src/guestfs-actions.pod:4865
30198 msgid "guestfs_lvuuid"
30199 msgstr ""
30200
30201 #. type: verbatim
30202 #: ../src/guestfs-actions.pod:4867
30203 #, no-wrap
30204 msgid ""
30205 " char *\n"
30206 " guestfs_lvuuid (guestfs_h *g,\n"
30207 "                 const char *device);\n"
30208 "\n"
30209 msgstr ""
30210
30211 #. type: =head2
30212 #: ../src/guestfs-actions.pod:4878
30213 msgid "guestfs_lxattrlist"
30214 msgstr ""
30215
30216 #. type: verbatim
30217 #: ../src/guestfs-actions.pod:4880
30218 #, no-wrap
30219 msgid ""
30220 " struct guestfs_xattr_list *\n"
30221 " guestfs_lxattrlist (guestfs_h *g,\n"
30222 "                     const char *path,\n"
30223 "                     char *const *names);\n"
30224 "\n"
30225 msgstr ""
30226
30227 #. type: textblock
30228 #: ../src/guestfs-actions.pod:4899
30229 msgid ""
30230 "This call is intended for programs that want to efficiently list a directory "
30231 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
30232 "a similarly efficient call for getting standard stats.  Very long directory "
30233 "listings might cause the protocol message size to be exceeded, causing this "
30234 "call to fail.  The caller must split up such requests into smaller groups of "
30235 "names."
30236 msgstr ""
30237
30238 #. type: =head2
30239 #: ../src/guestfs-actions.pod:4913
30240 msgid "guestfs_md_create"
30241 msgstr ""
30242
30243 #. type: verbatim
30244 #: ../src/guestfs-actions.pod:4915
30245 #, no-wrap
30246 msgid ""
30247 " int\n"
30248 " guestfs_md_create (guestfs_h *g,\n"
30249 "                    const char *name,\n"
30250 "                    char *const *devices,\n"
30251 "                    ...);\n"
30252 "\n"
30253 msgstr ""
30254
30255 #. type: verbatim
30256 #: ../src/guestfs-actions.pod:4926
30257 #, no-wrap
30258 msgid ""
30259 " GUESTFS_MD_CREATE_MISSINGBITMAP, int64_t missingbitmap,\n"
30260 " GUESTFS_MD_CREATE_NRDEVICES, int nrdevices,\n"
30261 " GUESTFS_MD_CREATE_SPARE, int spare,\n"
30262 " GUESTFS_MD_CREATE_CHUNK, int64_t chunk,\n"
30263 " GUESTFS_MD_CREATE_LEVEL, const char *level,\n"
30264 "\n"
30265 msgstr ""
30266
30267 #. type: =head2
30268 #: ../src/guestfs-actions.pod:4988
30269 msgid "guestfs_md_create_va"
30270 msgstr ""
30271
30272 #. type: verbatim
30273 #: ../src/guestfs-actions.pod:4990
30274 #, no-wrap
30275 msgid ""
30276 " int\n"
30277 " guestfs_md_create_va (guestfs_h *g,\n"
30278 "                       const char *name,\n"
30279 "                       char *const *devices,\n"
30280 "                       va_list args);\n"
30281 "\n"
30282 msgstr ""
30283
30284 #. type: textblock
30285 #: ../src/guestfs-actions.pod:4996
30286 msgid "This is the \"va_list variant\" of L</guestfs_md_create>."
30287 msgstr ""
30288
30289 #. type: =head2
30290 #: ../src/guestfs-actions.pod:5000
30291 msgid "guestfs_md_create_argv"
30292 msgstr ""
30293
30294 #. type: verbatim
30295 #: ../src/guestfs-actions.pod:5002
30296 #, no-wrap
30297 msgid ""
30298 " int\n"
30299 " guestfs_md_create_argv (guestfs_h *g,\n"
30300 "                         const char *name,\n"
30301 "                         char *const *devices,\n"
30302 "                         const struct guestfs_md_create_argv *optargs);\n"
30303 "\n"
30304 msgstr ""
30305
30306 #. type: textblock
30307 #: ../src/guestfs-actions.pod:5008
30308 msgid "This is the \"argv variant\" of L</guestfs_md_create>."
30309 msgstr ""
30310
30311 #. type: =head2
30312 #: ../src/guestfs-actions.pod:5012
30313 msgid "guestfs_md_detail"
30314 msgstr ""
30315
30316 #. type: verbatim
30317 #: ../src/guestfs-actions.pod:5014
30318 #, no-wrap
30319 msgid ""
30320 " char **\n"
30321 " guestfs_md_detail (guestfs_h *g,\n"
30322 "                    const char *md);\n"
30323 "\n"
30324 msgstr ""
30325
30326 #. type: =head2
30327 #: ../src/guestfs-actions.pod:5051
30328 msgid "guestfs_md_stop"
30329 msgstr ""
30330
30331 #. type: verbatim
30332 #: ../src/guestfs-actions.pod:5053
30333 #, no-wrap
30334 msgid ""
30335 " int\n"
30336 " guestfs_md_stop (guestfs_h *g,\n"
30337 "                  const char *md);\n"
30338 "\n"
30339 msgstr ""
30340
30341 #. type: =head2
30342 #: ../src/guestfs-actions.pod:5062
30343 msgid "guestfs_mkdir"
30344 msgstr ""
30345
30346 #. type: verbatim
30347 #: ../src/guestfs-actions.pod:5064
30348 #, no-wrap
30349 msgid ""
30350 " int\n"
30351 " guestfs_mkdir (guestfs_h *g,\n"
30352 "                const char *path);\n"
30353 "\n"
30354 msgstr ""
30355
30356 #. type: =head2
30357 #: ../src/guestfs-actions.pod:5074
30358 msgid "guestfs_mkdir_mode"
30359 msgstr ""
30360
30361 #. type: verbatim
30362 #: ../src/guestfs-actions.pod:5076
30363 #, no-wrap
30364 msgid ""
30365 " int\n"
30366 " guestfs_mkdir_mode (guestfs_h *g,\n"
30367 "                     const char *path,\n"
30368 "                     int mode);\n"
30369 "\n"
30370 msgstr ""
30371
30372 #. type: textblock
30373 #: ../src/guestfs-actions.pod:5088
30374 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
30375 msgstr ""
30376
30377 #. type: =head2
30378 #: ../src/guestfs-actions.pod:5094
30379 msgid "guestfs_mkdir_p"
30380 msgstr ""
30381
30382 #. type: verbatim
30383 #: ../src/guestfs-actions.pod:5096
30384 #, no-wrap
30385 msgid ""
30386 " int\n"
30387 " guestfs_mkdir_p (guestfs_h *g,\n"
30388 "                  const char *path);\n"
30389 "\n"
30390 msgstr ""
30391
30392 #. type: =head2
30393 #: ../src/guestfs-actions.pod:5107
30394 msgid "guestfs_mkdtemp"
30395 msgstr ""
30396
30397 #. type: verbatim
30398 #: ../src/guestfs-actions.pod:5109
30399 #, no-wrap
30400 msgid ""
30401 " char *\n"
30402 " guestfs_mkdtemp (guestfs_h *g,\n"
30403 "                  const char *template);\n"
30404 "\n"
30405 msgstr ""
30406
30407 #. type: =head2
30408 #: ../src/guestfs-actions.pod:5137
30409 msgid "guestfs_mke2fs_J"
30410 msgstr ""
30411
30412 #. type: verbatim
30413 #: ../src/guestfs-actions.pod:5139
30414 #, no-wrap
30415 msgid ""
30416 " int\n"
30417 " guestfs_mke2fs_J (guestfs_h *g,\n"
30418 "                   const char *fstype,\n"
30419 "                   int blocksize,\n"
30420 "                   const char *device,\n"
30421 "                   const char *journal);\n"
30422 "\n"
30423 msgstr ""
30424
30425 #. type: textblock
30426 #: ../src/guestfs-actions.pod:5152
30427 msgid "See also C<guestfs_mke2journal>."
30428 msgstr ""
30429
30430 #. type: textblock
30431 #: ../src/guestfs-actions.pod:5156 ../src/guestfs-actions.pod:5174 ../src/guestfs-actions.pod:5192 ../src/guestfs-actions.pod:5208 ../src/guestfs-actions.pod:5222 ../src/guestfs-actions.pod:5236 ../src/guestfs-actions.pod:5295 ../src/guestfs-actions.pod:5572
30432 msgid "(Added in 1.0.68)"
30433 msgstr ""
30434
30435 #. type: =head2
30436 #: ../src/guestfs-actions.pod:5158
30437 msgid "guestfs_mke2fs_JL"
30438 msgstr ""
30439
30440 #. type: verbatim
30441 #: ../src/guestfs-actions.pod:5160
30442 #, no-wrap
30443 msgid ""
30444 " int\n"
30445 " guestfs_mke2fs_JL (guestfs_h *g,\n"
30446 "                    const char *fstype,\n"
30447 "                    int blocksize,\n"
30448 "                    const char *device,\n"
30449 "                    const char *label);\n"
30450 "\n"
30451 msgstr ""
30452
30453 #. type: textblock
30454 #: ../src/guestfs-actions.pod:5170
30455 msgid "See also C<guestfs_mke2journal_L>."
30456 msgstr ""
30457
30458 #. type: =head2
30459 #: ../src/guestfs-actions.pod:5176
30460 msgid "guestfs_mke2fs_JU"
30461 msgstr ""
30462
30463 #. type: verbatim
30464 #: ../src/guestfs-actions.pod:5178
30465 #, no-wrap
30466 msgid ""
30467 " int\n"
30468 " guestfs_mke2fs_JU (guestfs_h *g,\n"
30469 "                    const char *fstype,\n"
30470 "                    int blocksize,\n"
30471 "                    const char *device,\n"
30472 "                    const char *uuid);\n"
30473 "\n"
30474 msgstr ""
30475
30476 #. type: textblock
30477 #: ../src/guestfs-actions.pod:5188
30478 msgid "See also C<guestfs_mke2journal_U>."
30479 msgstr ""
30480
30481 #. type: =head2
30482 #: ../src/guestfs-actions.pod:5194
30483 msgid "guestfs_mke2journal"
30484 msgstr ""
30485
30486 #. type: verbatim
30487 #: ../src/guestfs-actions.pod:5196
30488 #, no-wrap
30489 msgid ""
30490 " int\n"
30491 " guestfs_mke2journal (guestfs_h *g,\n"
30492 "                      int blocksize,\n"
30493 "                      const char *device);\n"
30494 "\n"
30495 msgstr ""
30496
30497 #. type: =head2
30498 #: ../src/guestfs-actions.pod:5210
30499 msgid "guestfs_mke2journal_L"
30500 msgstr ""
30501
30502 #. type: verbatim
30503 #: ../src/guestfs-actions.pod:5212
30504 #, no-wrap
30505 msgid ""
30506 " int\n"
30507 " guestfs_mke2journal_L (guestfs_h *g,\n"
30508 "                        int blocksize,\n"
30509 "                        const char *label,\n"
30510 "                        const char *device);\n"
30511 "\n"
30512 msgstr ""
30513
30514 #. type: =head2
30515 #: ../src/guestfs-actions.pod:5224
30516 msgid "guestfs_mke2journal_U"
30517 msgstr ""
30518
30519 #. type: verbatim
30520 #: ../src/guestfs-actions.pod:5226
30521 #, no-wrap
30522 msgid ""
30523 " int\n"
30524 " guestfs_mke2journal_U (guestfs_h *g,\n"
30525 "                        int blocksize,\n"
30526 "                        const char *uuid,\n"
30527 "                        const char *device);\n"
30528 "\n"
30529 msgstr ""
30530
30531 #. type: =head2
30532 #: ../src/guestfs-actions.pod:5238
30533 msgid "guestfs_mkfifo"
30534 msgstr ""
30535
30536 #. type: verbatim
30537 #: ../src/guestfs-actions.pod:5240
30538 #, no-wrap
30539 msgid ""
30540 " int\n"
30541 " guestfs_mkfifo (guestfs_h *g,\n"
30542 "                 int mode,\n"
30543 "                 const char *path);\n"
30544 "\n"
30545 msgstr ""
30546
30547 #. type: textblock
30548 #: ../src/guestfs-actions.pod:5245
30549 msgid ""
30550 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
30551 "is just a convenient wrapper around C<guestfs_mknod>."
30552 msgstr ""
30553
30554 #. type: =head2
30555 #: ../src/guestfs-actions.pod:5255
30556 msgid "guestfs_mkfs"
30557 msgstr ""
30558
30559 #. type: verbatim
30560 #: ../src/guestfs-actions.pod:5257
30561 #, no-wrap
30562 msgid ""
30563 " int\n"
30564 " guestfs_mkfs (guestfs_h *g,\n"
30565 "               const char *fstype,\n"
30566 "               const char *device);\n"
30567 "\n"
30568 msgstr ""
30569
30570 #. type: =head2
30571 #: ../src/guestfs-actions.pod:5270
30572 msgid "guestfs_mkfs_b"
30573 msgstr ""
30574
30575 #. type: verbatim
30576 #: ../src/guestfs-actions.pod:5272
30577 #, no-wrap
30578 msgid ""
30579 " int\n"
30580 " guestfs_mkfs_b (guestfs_h *g,\n"
30581 "                 const char *fstype,\n"
30582 "                 int blocksize,\n"
30583 "                 const char *device);\n"
30584 "\n"
30585 msgstr ""
30586
30587 #. type: textblock
30588 #: ../src/guestfs-actions.pod:5278
30589 msgid ""
30590 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
30591 "call instead."
30592 msgstr ""
30593
30594 #. type: textblock
30595 #: ../src/guestfs-actions.pod:5285
30596 msgid ""
30597 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
30598 "block size of the resulting filesystem.  Supported block sizes depend on the "
30599 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
30600 msgstr ""
30601
30602 #. type: =head2
30603 #: ../src/guestfs-actions.pod:5297
30604 msgid "guestfs_mkfs_opts"
30605 msgstr ""
30606
30607 #. type: verbatim
30608 #: ../src/guestfs-actions.pod:5299
30609 #, no-wrap
30610 msgid ""
30611 " int\n"
30612 " guestfs_mkfs_opts (guestfs_h *g,\n"
30613 "                    const char *fstype,\n"
30614 "                    const char *device,\n"
30615 "                    ...);\n"
30616 "\n"
30617 msgstr ""
30618
30619 #. type: verbatim
30620 #: ../src/guestfs-actions.pod:5310
30621 #, no-wrap
30622 msgid ""
30623 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
30624 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
30625 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
30626 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
30627 "\n"
30628 msgstr ""
30629
30630 #. type: textblock
30631 #: ../src/guestfs-actions.pod:5358
30632 msgid "(Added in 1.7.19)"
30633 msgstr ""
30634
30635 #. type: =head2
30636 #: ../src/guestfs-actions.pod:5360
30637 msgid "guestfs_mkfs_opts_va"
30638 msgstr ""
30639
30640 #. type: verbatim
30641 #: ../src/guestfs-actions.pod:5362
30642 #, no-wrap
30643 msgid ""
30644 " int\n"
30645 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
30646 "                       const char *fstype,\n"
30647 "                       const char *device,\n"
30648 "                       va_list args);\n"
30649 "\n"
30650 msgstr ""
30651
30652 #. type: textblock
30653 #: ../src/guestfs-actions.pod:5368
30654 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
30655 msgstr ""
30656
30657 #. type: =head2
30658 #: ../src/guestfs-actions.pod:5372
30659 msgid "guestfs_mkfs_opts_argv"
30660 msgstr ""
30661
30662 #. type: verbatim
30663 #: ../src/guestfs-actions.pod:5374
30664 #, no-wrap
30665 msgid ""
30666 " int\n"
30667 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
30668 "                         const char *fstype,\n"
30669 "                         const char *device,\n"
30670 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
30671 "\n"
30672 msgstr ""
30673
30674 #. type: textblock
30675 #: ../src/guestfs-actions.pod:5380
30676 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
30677 msgstr ""
30678
30679 #. type: =head2
30680 #: ../src/guestfs-actions.pod:5384
30681 msgid "guestfs_mkmountpoint"
30682 msgstr ""
30683
30684 #. type: verbatim
30685 #: ../src/guestfs-actions.pod:5386
30686 #, no-wrap
30687 msgid ""
30688 " int\n"
30689 " guestfs_mkmountpoint (guestfs_h *g,\n"
30690 "                       const char *exemptpath);\n"
30691 "\n"
30692 msgstr ""
30693
30694 #. type: textblock
30695 #: ../src/guestfs-actions.pod:5390
30696 msgid ""
30697 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
30698 "that can be used to create extra mountpoints before mounting the first "
30699 "filesystem."
30700 msgstr ""
30701
30702 #. type: textblock
30703 #: ../src/guestfs-actions.pod:5414
30704 msgid ""
30705 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
30706 "may get unexpected errors if you try to mix these calls.  It is safest to "
30707 "manually unmount filesystems and remove mountpoints after use."
30708 msgstr ""
30709
30710 #. type: textblock
30711 #: ../src/guestfs-actions.pod:5418
30712 msgid ""
30713 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
30714 "first, so for this to work for manual mountpoints, you must ensure that the "
30715 "innermost mountpoints have the longest pathnames, as in the example code "
30716 "above."
30717 msgstr ""
30718
30719 #. type: textblock
30720 #: ../src/guestfs-actions.pod:5425
30721 msgid ""
30722 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
30723 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
30724 "can also trigger these issues."
30725 msgstr ""
30726
30727 #. type: textblock
30728 #: ../src/guestfs-actions.pod:5431 ../src/guestfs-actions.pod:5737 ../src/guestfs-actions.pod:6764
30729 msgid "(Added in 1.0.62)"
30730 msgstr ""
30731
30732 #. type: =head2
30733 #: ../src/guestfs-actions.pod:5433
30734 msgid "guestfs_mknod"
30735 msgstr ""
30736
30737 #. type: verbatim
30738 #: ../src/guestfs-actions.pod:5435
30739 #, no-wrap
30740 msgid ""
30741 " int\n"
30742 " guestfs_mknod (guestfs_h *g,\n"
30743 "                int mode,\n"
30744 "                int devmajor,\n"
30745 "                int devminor,\n"
30746 "                const char *path);\n"
30747 "\n"
30748 msgstr ""
30749
30750 #. type: textblock
30751 #: ../src/guestfs-actions.pod:5450
30752 msgid ""
30753 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
30754 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
30755 "regular file).  These constants are available in the standard Linux header "
30756 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
30757 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
30758 "the appropriate constant for you."
30759 msgstr ""
30760
30761 #. type: =head2
30762 #: ../src/guestfs-actions.pod:5464
30763 msgid "guestfs_mknod_b"
30764 msgstr ""
30765
30766 #. type: verbatim
30767 #: ../src/guestfs-actions.pod:5466
30768 #, no-wrap
30769 msgid ""
30770 " int\n"
30771 " guestfs_mknod_b (guestfs_h *g,\n"
30772 "                  int mode,\n"
30773 "                  int devmajor,\n"
30774 "                  int devminor,\n"
30775 "                  const char *path);\n"
30776 "\n"
30777 msgstr ""
30778
30779 #. type: textblock
30780 #: ../src/guestfs-actions.pod:5473
30781 msgid ""
30782 "This call creates a block device node called C<path> with mode C<mode> and "
30783 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
30784 "wrapper around C<guestfs_mknod>."
30785 msgstr ""
30786
30787 #. type: =head2
30788 #: ../src/guestfs-actions.pod:5483
30789 msgid "guestfs_mknod_c"
30790 msgstr ""
30791
30792 #. type: verbatim
30793 #: ../src/guestfs-actions.pod:5485
30794 #, no-wrap
30795 msgid ""
30796 " int\n"
30797 " guestfs_mknod_c (guestfs_h *g,\n"
30798 "                  int mode,\n"
30799 "                  int devmajor,\n"
30800 "                  int devminor,\n"
30801 "                  const char *path);\n"
30802 "\n"
30803 msgstr ""
30804
30805 #. type: textblock
30806 #: ../src/guestfs-actions.pod:5492
30807 msgid ""
30808 "This call creates a char device node called C<path> with mode C<mode> and "
30809 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
30810 "wrapper around C<guestfs_mknod>."
30811 msgstr ""
30812
30813 #. type: =head2
30814 #: ../src/guestfs-actions.pod:5502
30815 msgid "guestfs_mkswap"
30816 msgstr ""
30817
30818 #. type: verbatim
30819 #: ../src/guestfs-actions.pod:5504
30820 #, no-wrap
30821 msgid ""
30822 " int\n"
30823 " guestfs_mkswap (guestfs_h *g,\n"
30824 "                 const char *device);\n"
30825 "\n"
30826 msgstr ""
30827
30828 #. type: =head2
30829 #: ../src/guestfs-actions.pod:5514
30830 msgid "guestfs_mkswap_L"
30831 msgstr ""
30832
30833 #. type: verbatim
30834 #: ../src/guestfs-actions.pod:5516
30835 #, no-wrap
30836 msgid ""
30837 " int\n"
30838 " guestfs_mkswap_L (guestfs_h *g,\n"
30839 "                   const char *label,\n"
30840 "                   const char *device);\n"
30841 "\n"
30842 msgstr ""
30843
30844 #. type: =head2
30845 #: ../src/guestfs-actions.pod:5531
30846 msgid "guestfs_mkswap_U"
30847 msgstr ""
30848
30849 #. type: verbatim
30850 #: ../src/guestfs-actions.pod:5533
30851 #, no-wrap
30852 msgid ""
30853 " int\n"
30854 " guestfs_mkswap_U (guestfs_h *g,\n"
30855 "                   const char *uuid,\n"
30856 "                   const char *device);\n"
30857 "\n"
30858 msgstr ""
30859
30860 #. type: =head2
30861 #: ../src/guestfs-actions.pod:5544
30862 msgid "guestfs_mkswap_file"
30863 msgstr ""
30864
30865 #. type: verbatim
30866 #: ../src/guestfs-actions.pod:5546
30867 #, no-wrap
30868 msgid ""
30869 " int\n"
30870 " guestfs_mkswap_file (guestfs_h *g,\n"
30871 "                      const char *path);\n"
30872 "\n"
30873 msgstr ""
30874
30875 #. type: textblock
30876 #: ../src/guestfs-actions.pod:5552
30877 msgid ""
30878 "This command just writes a swap file signature to an existing file.  To "
30879 "create the file itself, use something like C<guestfs_fallocate>."
30880 msgstr ""
30881
30882 #. type: =head2
30883 #: ../src/guestfs-actions.pod:5559
30884 msgid "guestfs_modprobe"
30885 msgstr ""
30886
30887 #. type: verbatim
30888 #: ../src/guestfs-actions.pod:5561
30889 #, no-wrap
30890 msgid ""
30891 " int\n"
30892 " guestfs_modprobe (guestfs_h *g,\n"
30893 "                   const char *modulename);\n"
30894 "\n"
30895 msgstr ""
30896
30897 #. type: =head2
30898 #: ../src/guestfs-actions.pod:5574
30899 msgid "guestfs_mount"
30900 msgstr ""
30901
30902 #. type: verbatim
30903 #: ../src/guestfs-actions.pod:5576
30904 #, no-wrap
30905 msgid ""
30906 " int\n"
30907 " guestfs_mount (guestfs_h *g,\n"
30908 "                const char *device,\n"
30909 "                const char *mountpoint);\n"
30910 "\n"
30911 msgstr ""
30912
30913 #. type: textblock
30914 #: ../src/guestfs-actions.pod:5595
30915 msgid ""
30916 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
30917 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
30918 "problems for users.  If your program might need to work with older versions "
30919 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
30920 "for the first parameter if you don't want any options)."
30921 msgstr ""
30922
30923 #. type: =head2
30924 #: ../src/guestfs-actions.pod:5606
30925 msgid "guestfs_mount_9p"
30926 msgstr ""
30927
30928 #. type: verbatim
30929 #: ../src/guestfs-actions.pod:5608
30930 #, no-wrap
30931 msgid ""
30932 " int\n"
30933 " guestfs_mount_9p (guestfs_h *g,\n"
30934 "                   const char *mounttag,\n"
30935 "                   const char *mountpoint,\n"
30936 "                   ...);\n"
30937 "\n"
30938 msgstr ""
30939
30940 #. type: verbatim
30941 #: ../src/guestfs-actions.pod:5619
30942 #, no-wrap
30943 msgid ""
30944 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
30945 "\n"
30946 msgstr ""
30947
30948 #. type: =head2
30949 #: ../src/guestfs-actions.pod:5632
30950 msgid "guestfs_mount_9p_va"
30951 msgstr ""
30952
30953 #. type: verbatim
30954 #: ../src/guestfs-actions.pod:5634
30955 #, no-wrap
30956 msgid ""
30957 " int\n"
30958 " guestfs_mount_9p_va (guestfs_h *g,\n"
30959 "                      const char *mounttag,\n"
30960 "                      const char *mountpoint,\n"
30961 "                      va_list args);\n"
30962 "\n"
30963 msgstr ""
30964
30965 #. type: textblock
30966 #: ../src/guestfs-actions.pod:5640
30967 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
30968 msgstr ""
30969
30970 #. type: =head2
30971 #: ../src/guestfs-actions.pod:5644
30972 msgid "guestfs_mount_9p_argv"
30973 msgstr ""
30974
30975 #. type: verbatim
30976 #: ../src/guestfs-actions.pod:5646
30977 #, no-wrap
30978 msgid ""
30979 " int\n"
30980 " guestfs_mount_9p_argv (guestfs_h *g,\n"
30981 "                        const char *mounttag,\n"
30982 "                        const char *mountpoint,\n"
30983 "                        const struct guestfs_mount_9p_argv *optargs);\n"
30984 "\n"
30985 msgstr ""
30986
30987 #. type: textblock
30988 #: ../src/guestfs-actions.pod:5652
30989 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
30990 msgstr ""
30991
30992 #. type: =head2
30993 #: ../src/guestfs-actions.pod:5656
30994 msgid "guestfs_mount_loop"
30995 msgstr ""
30996
30997 #. type: verbatim
30998 #: ../src/guestfs-actions.pod:5658
30999 #, no-wrap
31000 msgid ""
31001 " int\n"
31002 " guestfs_mount_loop (guestfs_h *g,\n"
31003 "                     const char *file,\n"
31004 "                     const char *mountpoint);\n"
31005 "\n"
31006 msgstr ""
31007
31008 #. type: =head2
31009 #: ../src/guestfs-actions.pod:5671
31010 msgid "guestfs_mount_options"
31011 msgstr ""
31012
31013 #. type: verbatim
31014 #: ../src/guestfs-actions.pod:5673
31015 #, no-wrap
31016 msgid ""
31017 " int\n"
31018 " guestfs_mount_options (guestfs_h *g,\n"
31019 "                        const char *options,\n"
31020 "                        const char *device,\n"
31021 "                        const char *mountpoint);\n"
31022 "\n"
31023 msgstr ""
31024
31025 #. type: textblock
31026 #: ../src/guestfs-actions.pod:5679
31027 msgid ""
31028 "This is the same as the C<guestfs_mount> command, but it allows you to set "
31029 "the mount options as for the L<mount(8)> I<-o> flag."
31030 msgstr ""
31031
31032 #. type: textblock
31033 #: ../src/guestfs-actions.pod:5689 ../src/guestfs-actions.pod:5703 ../src/guestfs-actions.pod:5720
31034 msgid "(Added in 1.0.10)"
31035 msgstr ""
31036
31037 #. type: =head2
31038 #: ../src/guestfs-actions.pod:5691
31039 msgid "guestfs_mount_ro"
31040 msgstr ""
31041
31042 #. type: verbatim
31043 #: ../src/guestfs-actions.pod:5693
31044 #, no-wrap
31045 msgid ""
31046 " int\n"
31047 " guestfs_mount_ro (guestfs_h *g,\n"
31048 "                   const char *device,\n"
31049 "                   const char *mountpoint);\n"
31050 "\n"
31051 msgstr ""
31052
31053 #. type: textblock
31054 #: ../src/guestfs-actions.pod:5698
31055 msgid ""
31056 "This is the same as the C<guestfs_mount> command, but it mounts the "
31057 "filesystem with the read-only (I<-o ro>) flag."
31058 msgstr ""
31059
31060 #. type: =head2
31061 #: ../src/guestfs-actions.pod:5705
31062 msgid "guestfs_mount_vfs"
31063 msgstr ""
31064
31065 #. type: verbatim
31066 #: ../src/guestfs-actions.pod:5707
31067 #, no-wrap
31068 msgid ""
31069 " int\n"
31070 " guestfs_mount_vfs (guestfs_h *g,\n"
31071 "                    const char *options,\n"
31072 "                    const char *vfstype,\n"
31073 "                    const char *device,\n"
31074 "                    const char *mountpoint);\n"
31075 "\n"
31076 msgstr ""
31077
31078 #. type: textblock
31079 #: ../src/guestfs-actions.pod:5714
31080 msgid ""
31081 "This is the same as the C<guestfs_mount> command, but it allows you to set "
31082 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and "
31083 "I<-t> flags."
31084 msgstr ""
31085
31086 #. type: =head2
31087 #: ../src/guestfs-actions.pod:5722
31088 msgid "guestfs_mountpoints"
31089 msgstr ""
31090
31091 #. type: verbatim
31092 #: ../src/guestfs-actions.pod:5724
31093 #, no-wrap
31094 msgid ""
31095 " char **\n"
31096 " guestfs_mountpoints (guestfs_h *g);\n"
31097 "\n"
31098 msgstr ""
31099
31100 #. type: textblock
31101 #: ../src/guestfs-actions.pod:5727
31102 msgid ""
31103 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
31104 "devices.  This one returns a hash table (map) of device name to directory "
31105 "where the device is mounted."
31106 msgstr ""
31107
31108 #. type: =head2
31109 #: ../src/guestfs-actions.pod:5739
31110 msgid "guestfs_mounts"
31111 msgstr ""
31112
31113 #. type: verbatim
31114 #: ../src/guestfs-actions.pod:5741
31115 #, no-wrap
31116 msgid ""
31117 " char **\n"
31118 " guestfs_mounts (guestfs_h *g);\n"
31119 "\n"
31120 msgstr ""
31121
31122 #. type: textblock
31123 #: ../src/guestfs-actions.pod:5749
31124 msgid "See also: C<guestfs_mountpoints>"
31125 msgstr ""
31126
31127 #. type: =head2
31128 #: ../src/guestfs-actions.pod:5757
31129 msgid "guestfs_mv"
31130 msgstr ""
31131
31132 #. type: verbatim
31133 #: ../src/guestfs-actions.pod:5759
31134 #, no-wrap
31135 msgid ""
31136 " int\n"
31137 " guestfs_mv (guestfs_h *g,\n"
31138 "             const char *src,\n"
31139 "             const char *dest);\n"
31140 "\n"
31141 msgstr ""
31142
31143 #. type: =head2
31144 #: ../src/guestfs-actions.pod:5771
31145 msgid "guestfs_ntfs_3g_probe"
31146 msgstr ""
31147
31148 #. type: verbatim
31149 #: ../src/guestfs-actions.pod:5773
31150 #, no-wrap
31151 msgid ""
31152 " int\n"
31153 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
31154 "                        int rw,\n"
31155 "                        const char *device);\n"
31156 "\n"
31157 msgstr ""
31158
31159 #. type: textblock
31160 #: ../src/guestfs-actions.pod:5792
31161 msgid "(Added in 1.0.43)"
31162 msgstr ""
31163
31164 #. type: =head2
31165 #: ../src/guestfs-actions.pod:5794
31166 msgid "guestfs_ntfsresize"
31167 msgstr ""
31168
31169 #. type: verbatim
31170 #: ../src/guestfs-actions.pod:5796
31171 #, no-wrap
31172 msgid ""
31173 " int\n"
31174 " guestfs_ntfsresize (guestfs_h *g,\n"
31175 "                     const char *device);\n"
31176 "\n"
31177 msgstr ""
31178
31179 #. type: textblock
31180 #: ../src/guestfs-actions.pod:5800 ../src/guestfs-actions.pod:5900
31181 msgid ""
31182 "I<This function is deprecated.> In new code, use the "
31183 "L</guestfs_ntfsresize_opts> call instead."
31184 msgstr ""
31185
31186 #. type: =head2
31187 #: ../src/guestfs-actions.pod:5824
31188 msgid "guestfs_ntfsresize_opts"
31189 msgstr ""
31190
31191 #. type: verbatim
31192 #: ../src/guestfs-actions.pod:5826
31193 #, no-wrap
31194 msgid ""
31195 " int\n"
31196 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
31197 "                          const char *device,\n"
31198 "                          ...);\n"
31199 "\n"
31200 msgstr ""
31201
31202 #. type: verbatim
31203 #: ../src/guestfs-actions.pod:5836
31204 #, no-wrap
31205 msgid ""
31206 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
31207 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
31208 "\n"
31209 msgstr ""
31210
31211 #. type: textblock
31212 #: ../src/guestfs-actions.pod:5856
31213 msgid ""
31214 "After the resize operation, the filesystem is always marked as requiring a "
31215 "consistency check (for safety).  You have to boot into Windows to perform "
31216 "this check and clear this condition.  If you I<don't> set the C<force> "
31217 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
31218 "times on a single filesystem without booting into Windows between each "
31219 "resize."
31220 msgstr ""
31221
31222 #. type: =head2
31223 #: ../src/guestfs-actions.pod:5871
31224 msgid "guestfs_ntfsresize_opts_va"
31225 msgstr ""
31226
31227 #. type: verbatim
31228 #: ../src/guestfs-actions.pod:5873
31229 #, no-wrap
31230 msgid ""
31231 " int\n"
31232 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
31233 "                             const char *device,\n"
31234 "                             va_list args);\n"
31235 "\n"
31236 msgstr ""
31237
31238 #. type: textblock
31239 #: ../src/guestfs-actions.pod:5878
31240 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
31241 msgstr ""
31242
31243 #. type: =head2
31244 #: ../src/guestfs-actions.pod:5882
31245 msgid "guestfs_ntfsresize_opts_argv"
31246 msgstr ""
31247
31248 #. type: verbatim
31249 #: ../src/guestfs-actions.pod:5884
31250 #, no-wrap
31251 msgid ""
31252 " int\n"
31253 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
31254 "                               const char *device,\n"
31255 "                               const struct guestfs_ntfsresize_opts_argv "
31256 "*optargs);\n"
31257 "\n"
31258 msgstr ""
31259
31260 #. type: textblock
31261 #: ../src/guestfs-actions.pod:5889
31262 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
31263 msgstr ""
31264
31265 #. type: =head2
31266 #: ../src/guestfs-actions.pod:5893
31267 msgid "guestfs_ntfsresize_size"
31268 msgstr ""
31269
31270 #. type: verbatim
31271 #: ../src/guestfs-actions.pod:5895
31272 #, no-wrap
31273 msgid ""
31274 " int\n"
31275 " guestfs_ntfsresize_size (guestfs_h *g,\n"
31276 "                          const char *device,\n"
31277 "                          int64_t size);\n"
31278 "\n"
31279 msgstr ""
31280
31281 #. type: textblock
31282 #: ../src/guestfs-actions.pod:5907
31283 msgid ""
31284 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
31285 "to specify the new size (in bytes) explicitly."
31286 msgstr ""
31287
31288 #. type: textblock
31289 #: ../src/guestfs-actions.pod:5912 ../src/guestfs-actions.pod:6371 ../src/guestfs-actions.pod:6444 ../src/guestfs-actions.pod:6712 ../src/guestfs-actions.pod:8461
31290 msgid "(Added in 1.3.14)"
31291 msgstr ""
31292
31293 #. type: =head2
31294 #: ../src/guestfs-actions.pod:5914
31295 msgid "guestfs_part_add"
31296 msgstr ""
31297
31298 #. type: verbatim
31299 #: ../src/guestfs-actions.pod:5916
31300 #, no-wrap
31301 msgid ""
31302 " int\n"
31303 " guestfs_part_add (guestfs_h *g,\n"
31304 "                   const char *device,\n"
31305 "                   const char *prlogex,\n"
31306 "                   int64_t startsect,\n"
31307 "                   int64_t endsect);\n"
31308 "\n"
31309 msgstr ""
31310
31311 #. type: textblock
31312 #: ../src/guestfs-actions.pod:5923
31313 msgid ""
31314 "This command adds a partition to C<device>.  If there is no partition table "
31315 "on the device, call C<guestfs_part_init> first."
31316 msgstr ""
31317
31318 #. type: textblock
31319 #: ../src/guestfs-actions.pod:5935
31320 msgid ""
31321 "Creating a partition which covers the whole disk is not so easy.  Use "
31322 "C<guestfs_part_disk> to do that."
31323 msgstr ""
31324
31325 #. type: textblock
31326 #: ../src/guestfs-actions.pod:5940 ../src/guestfs-actions.pod:5975 ../src/guestfs-actions.pod:6028 ../src/guestfs-actions.pod:6112 ../src/guestfs-actions.pod:6150 ../src/guestfs-actions.pod:6169 ../src/guestfs-actions.pod:6209
31327 msgid "(Added in 1.0.78)"
31328 msgstr ""
31329
31330 #. type: =head2
31331 #: ../src/guestfs-actions.pod:5942
31332 msgid "guestfs_part_del"
31333 msgstr ""
31334
31335 #. type: verbatim
31336 #: ../src/guestfs-actions.pod:5944
31337 #, no-wrap
31338 msgid ""
31339 " int\n"
31340 " guestfs_part_del (guestfs_h *g,\n"
31341 "                   const char *device,\n"
31342 "                   int partnum);\n"
31343 "\n"
31344 msgstr ""
31345
31346 #. type: =head2
31347 #: ../src/guestfs-actions.pod:5959
31348 msgid "guestfs_part_disk"
31349 msgstr ""
31350
31351 #. type: verbatim
31352 #: ../src/guestfs-actions.pod:5961
31353 #, no-wrap
31354 msgid ""
31355 " int\n"
31356 " guestfs_part_disk (guestfs_h *g,\n"
31357 "                    const char *device,\n"
31358 "                    const char *parttype);\n"
31359 "\n"
31360 msgstr ""
31361
31362 #. type: textblock
31363 #: ../src/guestfs-actions.pod:5966
31364 msgid ""
31365 "This command is simply a combination of C<guestfs_part_init> followed by "
31366 "C<guestfs_part_add> to create a single primary partition covering the whole "
31367 "disk."
31368 msgstr ""
31369
31370 #. type: textblock
31371 #: ../src/guestfs-actions.pod:5970
31372 msgid ""
31373 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
31374 "possible values are described in C<guestfs_part_init>."
31375 msgstr ""
31376
31377 #. type: =head2
31378 #: ../src/guestfs-actions.pod:5977
31379 msgid "guestfs_part_get_bootable"
31380 msgstr ""
31381
31382 #. type: verbatim
31383 #: ../src/guestfs-actions.pod:5979
31384 #, no-wrap
31385 msgid ""
31386 " int\n"
31387 " guestfs_part_get_bootable (guestfs_h *g,\n"
31388 "                            const char *device,\n"
31389 "                            int partnum);\n"
31390 "\n"
31391 msgstr ""
31392
31393 #. type: textblock
31394 #: ../src/guestfs-actions.pod:5987
31395 msgid "See also C<guestfs_part_set_bootable>."
31396 msgstr ""
31397
31398 #. type: =head2
31399 #: ../src/guestfs-actions.pod:5993
31400 msgid "guestfs_part_get_mbr_id"
31401 msgstr ""
31402
31403 #. type: verbatim
31404 #: ../src/guestfs-actions.pod:5995
31405 #, no-wrap
31406 msgid ""
31407 " int\n"
31408 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
31409 "                          const char *device,\n"
31410 "                          int partnum);\n"
31411 "\n"
31412 msgstr ""
31413
31414 #. type: textblock
31415 #: ../src/guestfs-actions.pod:6003 ../src/guestfs-actions.pod:6185
31416 msgid ""
31417 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
31418 "undefined results for other partition table types (see "
31419 "C<guestfs_part_get_parttype>)."
31420 msgstr ""
31421
31422 #. type: =head2
31423 #: ../src/guestfs-actions.pod:6011
31424 msgid "guestfs_part_get_parttype"
31425 msgstr ""
31426
31427 #. type: verbatim
31428 #: ../src/guestfs-actions.pod:6013
31429 #, no-wrap
31430 msgid ""
31431 " char *\n"
31432 " guestfs_part_get_parttype (guestfs_h *g,\n"
31433 "                            const char *device);\n"
31434 "\n"
31435 msgstr ""
31436
31437 #. type: textblock
31438 #: ../src/guestfs-actions.pod:6020
31439 msgid ""
31440 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
31441 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
31442 "possible, although unusual.  See C<guestfs_part_init> for a full list."
31443 msgstr ""
31444
31445 #. type: =head2
31446 #: ../src/guestfs-actions.pod:6030
31447 msgid "guestfs_part_init"
31448 msgstr ""
31449
31450 #. type: verbatim
31451 #: ../src/guestfs-actions.pod:6032
31452 #, no-wrap
31453 msgid ""
31454 " int\n"
31455 " guestfs_part_init (guestfs_h *g,\n"
31456 "                    const char *device,\n"
31457 "                    const char *parttype);\n"
31458 "\n"
31459 msgstr ""
31460
31461 #. type: textblock
31462 #: ../src/guestfs-actions.pod:6041
31463 msgid ""
31464 "Initially there are no partitions.  Following this, you should call "
31465 "C<guestfs_part_add> for each partition required."
31466 msgstr ""
31467
31468 #. type: =head2
31469 #: ../src/guestfs-actions.pod:6114
31470 msgid "guestfs_part_list"
31471 msgstr ""
31472
31473 #. type: verbatim
31474 #: ../src/guestfs-actions.pod:6116
31475 #, no-wrap
31476 msgid ""
31477 " struct guestfs_partition_list *\n"
31478 " guestfs_part_list (guestfs_h *g,\n"
31479 "                    const char *device);\n"
31480 "\n"
31481 msgstr ""
31482
31483 #. type: textblock
31484 #: ../src/guestfs-actions.pod:6133
31485 msgid ""
31486 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
31487 "the device's sector size, see C<guestfs_blockdev_getss>."
31488 msgstr ""
31489
31490 #. type: textblock
31491 #: ../src/guestfs-actions.pod:6146
31492 msgid ""
31493 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
31494 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
31495 "use>."
31496 msgstr ""
31497
31498 #. type: =head2
31499 #: ../src/guestfs-actions.pod:6152
31500 msgid "guestfs_part_set_bootable"
31501 msgstr ""
31502
31503 #. type: verbatim
31504 #: ../src/guestfs-actions.pod:6154
31505 #, no-wrap
31506 msgid ""
31507 " int\n"
31508 " guestfs_part_set_bootable (guestfs_h *g,\n"
31509 "                            const char *device,\n"
31510 "                            int partnum,\n"
31511 "                            int bootable);\n"
31512 "\n"
31513 msgstr ""
31514
31515 #. type: =head2
31516 #: ../src/guestfs-actions.pod:6171
31517 msgid "guestfs_part_set_mbr_id"
31518 msgstr ""
31519
31520 #. type: verbatim
31521 #: ../src/guestfs-actions.pod:6173
31522 #, no-wrap
31523 msgid ""
31524 " int\n"
31525 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
31526 "                          const char *device,\n"
31527 "                          int partnum,\n"
31528 "                          int idbyte);\n"
31529 "\n"
31530 msgstr ""
31531
31532 #. type: =head2
31533 #: ../src/guestfs-actions.pod:6193
31534 msgid "guestfs_part_set_name"
31535 msgstr ""
31536
31537 #. type: verbatim
31538 #: ../src/guestfs-actions.pod:6195
31539 #, no-wrap
31540 msgid ""
31541 " int\n"
31542 " guestfs_part_set_name (guestfs_h *g,\n"
31543 "                        const char *device,\n"
31544 "                        int partnum,\n"
31545 "                        const char *name);\n"
31546 "\n"
31547 msgstr ""
31548
31549 #. type: =head2
31550 #: ../src/guestfs-actions.pod:6211
31551 msgid "guestfs_part_to_dev"
31552 msgstr ""
31553
31554 #. type: verbatim
31555 #: ../src/guestfs-actions.pod:6213
31556 #, no-wrap
31557 msgid ""
31558 " char *\n"
31559 " guestfs_part_to_dev (guestfs_h *g,\n"
31560 "                      const char *partition);\n"
31561 "\n"
31562 msgstr ""
31563
31564 #. type: textblock
31565 #: ../src/guestfs-actions.pod:6221 ../src/guestfs-actions.pod:6240
31566 msgid ""
31567 "The named partition must exist, for example as a string returned from "
31568 "C<guestfs_list_partitions>."
31569 msgstr ""
31570
31571 #. type: textblock
31572 #: ../src/guestfs-actions.pod:6224
31573 msgid "See also C<guestfs_part_to_partnum>."
31574 msgstr ""
31575
31576 #. type: =head2
31577 #: ../src/guestfs-actions.pod:6231
31578 msgid "guestfs_part_to_partnum"
31579 msgstr ""
31580
31581 #. type: verbatim
31582 #: ../src/guestfs-actions.pod:6233
31583 #, no-wrap
31584 msgid ""
31585 " int\n"
31586 " guestfs_part_to_partnum (guestfs_h *g,\n"
31587 "                          const char *partition);\n"
31588 "\n"
31589 msgstr ""
31590
31591 #. type: textblock
31592 #: ../src/guestfs-actions.pod:6243
31593 msgid "See also C<guestfs_part_to_dev>."
31594 msgstr ""
31595
31596 #. type: =head2
31597 #: ../src/guestfs-actions.pod:6249
31598 msgid "guestfs_ping_daemon"
31599 msgstr ""
31600
31601 #. type: verbatim
31602 #: ../src/guestfs-actions.pod:6251
31603 #, no-wrap
31604 msgid ""
31605 " int\n"
31606 " guestfs_ping_daemon (guestfs_h *g);\n"
31607 "\n"
31608 msgstr ""
31609
31610 #. type: =head2
31611 #: ../src/guestfs-actions.pod:6263
31612 msgid "guestfs_pread"
31613 msgstr ""
31614
31615 #. type: verbatim
31616 #: ../src/guestfs-actions.pod:6265
31617 #, no-wrap
31618 msgid ""
31619 " char *\n"
31620 " guestfs_pread (guestfs_h *g,\n"
31621 "                const char *path,\n"
31622 "                int count,\n"
31623 "                int64_t offset,\n"
31624 "                size_t *size_r);\n"
31625 "\n"
31626 msgstr ""
31627
31628 #. type: textblock
31629 #: ../src/guestfs-actions.pod:6278
31630 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
31631 msgstr ""
31632
31633 #. type: =head2
31634 #: ../src/guestfs-actions.pod:6289
31635 msgid "guestfs_pread_device"
31636 msgstr ""
31637
31638 #. type: verbatim
31639 #: ../src/guestfs-actions.pod:6291
31640 #, no-wrap
31641 msgid ""
31642 " char *\n"
31643 " guestfs_pread_device (guestfs_h *g,\n"
31644 "                       const char *device,\n"
31645 "                       int count,\n"
31646 "                       int64_t offset,\n"
31647 "                       size_t *size_r);\n"
31648 "\n"
31649 msgstr ""
31650
31651 #. type: textblock
31652 #: ../src/guestfs-actions.pod:6304
31653 msgid "See also C<guestfs_pread>."
31654 msgstr ""
31655
31656 #. type: textblock
31657 #: ../src/guestfs-actions.pod:6313
31658 msgid "(Added in 1.5.21)"
31659 msgstr ""
31660
31661 #. type: =head2
31662 #: ../src/guestfs-actions.pod:6315
31663 msgid "guestfs_pvcreate"
31664 msgstr ""
31665
31666 #. type: verbatim
31667 #: ../src/guestfs-actions.pod:6317
31668 #, no-wrap
31669 msgid ""
31670 " int\n"
31671 " guestfs_pvcreate (guestfs_h *g,\n"
31672 "                   const char *device);\n"
31673 "\n"
31674 msgstr ""
31675
31676 #. type: =head2
31677 #: ../src/guestfs-actions.pod:6329
31678 msgid "guestfs_pvremove"
31679 msgstr ""
31680
31681 #. type: verbatim
31682 #: ../src/guestfs-actions.pod:6331
31683 #, no-wrap
31684 msgid ""
31685 " int\n"
31686 " guestfs_pvremove (guestfs_h *g,\n"
31687 "                   const char *device);\n"
31688 "\n"
31689 msgstr ""
31690
31691 #. type: =head2
31692 #: ../src/guestfs-actions.pod:6346
31693 msgid "guestfs_pvresize"
31694 msgstr ""
31695
31696 #. type: verbatim
31697 #: ../src/guestfs-actions.pod:6348
31698 #, no-wrap
31699 msgid ""
31700 " int\n"
31701 " guestfs_pvresize (guestfs_h *g,\n"
31702 "                   const char *device);\n"
31703 "\n"
31704 msgstr ""
31705
31706 #. type: =head2
31707 #: ../src/guestfs-actions.pod:6359
31708 msgid "guestfs_pvresize_size"
31709 msgstr ""
31710
31711 #. type: verbatim
31712 #: ../src/guestfs-actions.pod:6361
31713 #, no-wrap
31714 msgid ""
31715 " int\n"
31716 " guestfs_pvresize_size (guestfs_h *g,\n"
31717 "                        const char *device,\n"
31718 "                        int64_t size);\n"
31719 "\n"
31720 msgstr ""
31721
31722 #. type: textblock
31723 #: ../src/guestfs-actions.pod:6366
31724 msgid ""
31725 "This command is the same as C<guestfs_pvresize> except that it allows you to "
31726 "specify the new size (in bytes) explicitly."
31727 msgstr ""
31728
31729 #. type: =head2
31730 #: ../src/guestfs-actions.pod:6373
31731 msgid "guestfs_pvs"
31732 msgstr ""
31733
31734 #. type: verbatim
31735 #: ../src/guestfs-actions.pod:6375
31736 #, no-wrap
31737 msgid ""
31738 " char **\n"
31739 " guestfs_pvs (guestfs_h *g);\n"
31740 "\n"
31741 msgstr ""
31742
31743 #. type: textblock
31744 #: ../src/guestfs-actions.pod:6384
31745 msgid "See also C<guestfs_pvs_full>."
31746 msgstr ""
31747
31748 #. type: =head2
31749 #: ../src/guestfs-actions.pod:6392
31750 msgid "guestfs_pvs_full"
31751 msgstr ""
31752
31753 #. type: verbatim
31754 #: ../src/guestfs-actions.pod:6394
31755 #, no-wrap
31756 msgid ""
31757 " struct guestfs_lvm_pv_list *\n"
31758 " guestfs_pvs_full (guestfs_h *g);\n"
31759 "\n"
31760 msgstr ""
31761
31762 #. type: textblock
31763 #: ../src/guestfs-actions.pod:6400
31764 msgid ""
31765 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
31766 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after "
31767 "use>."
31768 msgstr ""
31769
31770 #. type: =head2
31771 #: ../src/guestfs-actions.pod:6406
31772 msgid "guestfs_pvuuid"
31773 msgstr ""
31774
31775 #. type: verbatim
31776 #: ../src/guestfs-actions.pod:6408
31777 #, no-wrap
31778 msgid ""
31779 " char *\n"
31780 " guestfs_pvuuid (guestfs_h *g,\n"
31781 "                 const char *device);\n"
31782 "\n"
31783 msgstr ""
31784
31785 #. type: =head2
31786 #: ../src/guestfs-actions.pod:6419
31787 msgid "guestfs_pwrite"
31788 msgstr ""
31789
31790 #. type: verbatim
31791 #: ../src/guestfs-actions.pod:6421
31792 #, no-wrap
31793 msgid ""
31794 " int\n"
31795 " guestfs_pwrite (guestfs_h *g,\n"
31796 "                 const char *path,\n"
31797 "                 const char *content,\n"
31798 "                 size_t content_size,\n"
31799 "                 int64_t offset);\n"
31800 "\n"
31801 msgstr ""
31802
31803 #. type: textblock
31804 #: ../src/guestfs-actions.pod:6437
31805 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
31806 msgstr ""
31807
31808 #. type: =head2
31809 #: ../src/guestfs-actions.pod:6446
31810 msgid "guestfs_pwrite_device"
31811 msgstr ""
31812
31813 #. type: verbatim
31814 #: ../src/guestfs-actions.pod:6448
31815 #, no-wrap
31816 msgid ""
31817 " int\n"
31818 " guestfs_pwrite_device (guestfs_h *g,\n"
31819 "                        const char *device,\n"
31820 "                        const char *content,\n"
31821 "                        size_t content_size,\n"
31822 "                        int64_t offset);\n"
31823 "\n"
31824 msgstr ""
31825
31826 #. type: textblock
31827 #: ../src/guestfs-actions.pod:6463
31828 msgid "See also C<guestfs_pwrite>."
31829 msgstr ""
31830
31831 #. type: textblock
31832 #: ../src/guestfs-actions.pod:6470
31833 msgid "(Added in 1.5.20)"
31834 msgstr ""
31835
31836 #. type: =head2
31837 #: ../src/guestfs-actions.pod:6472
31838 msgid "guestfs_read_file"
31839 msgstr ""
31840
31841 #. type: verbatim
31842 #: ../src/guestfs-actions.pod:6474
31843 #, no-wrap
31844 msgid ""
31845 " char *\n"
31846 " guestfs_read_file (guestfs_h *g,\n"
31847 "                    const char *path,\n"
31848 "                    size_t *size_r);\n"
31849 "\n"
31850 msgstr ""
31851
31852 #. type: textblock
31853 #: ../src/guestfs-actions.pod:6482
31854 msgid ""
31855 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
31856 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
31857 "function is limited in the total size of file that can be handled."
31858 msgstr ""
31859
31860 #. type: textblock
31861 #: ../src/guestfs-actions.pod:6494
31862 msgid "(Added in 1.0.63)"
31863 msgstr ""
31864
31865 #. type: =head2
31866 #: ../src/guestfs-actions.pod:6496
31867 msgid "guestfs_read_lines"
31868 msgstr ""
31869
31870 #. type: verbatim
31871 #: ../src/guestfs-actions.pod:6498
31872 #, no-wrap
31873 msgid ""
31874 " char **\n"
31875 " guestfs_read_lines (guestfs_h *g,\n"
31876 "                     const char *path);\n"
31877 "\n"
31878 msgstr ""
31879
31880 #. type: textblock
31881 #: ../src/guestfs-actions.pod:6507
31882 msgid ""
31883 "Note that this function cannot correctly handle binary files (specifically, "
31884 "files containing C<\\0> character which is treated as end of line).  For "
31885 "those you need to use the C<guestfs_read_file> function which has a more "
31886 "complex interface."
31887 msgstr ""
31888
31889 #. type: =head2
31890 #: ../src/guestfs-actions.pod:6518
31891 msgid "guestfs_readdir"
31892 msgstr ""
31893
31894 #. type: verbatim
31895 #: ../src/guestfs-actions.pod:6520
31896 #, no-wrap
31897 msgid ""
31898 " struct guestfs_dirent_list *\n"
31899 " guestfs_readdir (guestfs_h *g,\n"
31900 "                  const char *dir);\n"
31901 "\n"
31902 msgstr ""
31903
31904 #. type: textblock
31905 #: ../src/guestfs-actions.pod:6574
31906 msgid ""
31907 "This function is primarily intended for use by programs.  To get a simple "
31908 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
31909 "consumption, use C<guestfs_ll>."
31910 msgstr ""
31911
31912 #. type: textblock
31913 #: ../src/guestfs-actions.pod:6578
31914 msgid ""
31915 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
31916 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after "
31917 "use>."
31918 msgstr ""
31919
31920 #. type: =head2
31921 #: ../src/guestfs-actions.pod:6584
31922 msgid "guestfs_readlink"
31923 msgstr ""
31924
31925 #. type: verbatim
31926 #: ../src/guestfs-actions.pod:6586
31927 #, no-wrap
31928 msgid ""
31929 " char *\n"
31930 " guestfs_readlink (guestfs_h *g,\n"
31931 "                   const char *path);\n"
31932 "\n"
31933 msgstr ""
31934
31935 #. type: =head2
31936 #: ../src/guestfs-actions.pod:6597
31937 msgid "guestfs_readlinklist"
31938 msgstr ""
31939
31940 #. type: verbatim
31941 #: ../src/guestfs-actions.pod:6599
31942 #, no-wrap
31943 msgid ""
31944 " char **\n"
31945 " guestfs_readlinklist (guestfs_h *g,\n"
31946 "                       const char *path,\n"
31947 "                       char *const *names);\n"
31948 "\n"
31949 msgstr ""
31950
31951 #. type: =head2
31952 #: ../src/guestfs-actions.pod:6632
31953 msgid "guestfs_realpath"
31954 msgstr ""
31955
31956 #. type: verbatim
31957 #: ../src/guestfs-actions.pod:6634
31958 #, no-wrap
31959 msgid ""
31960 " char *\n"
31961 " guestfs_realpath (guestfs_h *g,\n"
31962 "                   const char *path);\n"
31963 "\n"
31964 msgstr ""
31965
31966 #. type: =head2
31967 #: ../src/guestfs-actions.pod:6646
31968 msgid "guestfs_removexattr"
31969 msgstr ""
31970
31971 #. type: verbatim
31972 #: ../src/guestfs-actions.pod:6648
31973 #, no-wrap
31974 msgid ""
31975 " int\n"
31976 " guestfs_removexattr (guestfs_h *g,\n"
31977 "                      const char *xattr,\n"
31978 "                      const char *path);\n"
31979 "\n"
31980 msgstr ""
31981
31982 #. type: textblock
31983 #: ../src/guestfs-actions.pod:6656
31984 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
31985 msgstr ""
31986
31987 #. type: =head2
31988 #: ../src/guestfs-actions.pod:6662
31989 msgid "guestfs_resize2fs"
31990 msgstr ""
31991
31992 #. type: verbatim
31993 #: ../src/guestfs-actions.pod:6664
31994 #, no-wrap
31995 msgid ""
31996 " int\n"
31997 " guestfs_resize2fs (guestfs_h *g,\n"
31998 "                    const char *device);\n"
31999 "\n"
32000 msgstr ""
32001
32002 #. type: textblock
32003 #: ../src/guestfs-actions.pod:6671
32004 msgid ""
32005 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
32006 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
32007 "sometimes gives an error about this and sometimes not.  In any case, it is "
32008 "always safe to call C<guestfs_e2fsck_f> before calling this function."
32009 msgstr ""
32010
32011 #. type: =head2
32012 #: ../src/guestfs-actions.pod:6681
32013 msgid "guestfs_resize2fs_M"
32014 msgstr ""
32015
32016 #. type: verbatim
32017 #: ../src/guestfs-actions.pod:6683
32018 #, no-wrap
32019 msgid ""
32020 " int\n"
32021 " guestfs_resize2fs_M (guestfs_h *g,\n"
32022 "                      const char *device);\n"
32023 "\n"
32024 msgstr ""
32025
32026 #. type: textblock
32027 #: ../src/guestfs-actions.pod:6687
32028 msgid ""
32029 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
32030 "resized to its minimum size.  This works like the I<-M> option to the "
32031 "C<resize2fs> command."
32032 msgstr ""
32033
32034 #. type: textblock
32035 #: ../src/guestfs-actions.pod:6691
32036 msgid ""
32037 "To get the resulting size of the filesystem you should call "
32038 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
32039 "These two numbers, multiplied together, give the resulting size of the "
32040 "minimal filesystem in bytes."
32041 msgstr ""
32042
32043 #. type: =head2
32044 #: ../src/guestfs-actions.pod:6700
32045 msgid "guestfs_resize2fs_size"
32046 msgstr ""
32047
32048 #. type: verbatim
32049 #: ../src/guestfs-actions.pod:6702
32050 #, no-wrap
32051 msgid ""
32052 " int\n"
32053 " guestfs_resize2fs_size (guestfs_h *g,\n"
32054 "                         const char *device,\n"
32055 "                         int64_t size);\n"
32056 "\n"
32057 msgstr ""
32058
32059 #. type: textblock
32060 #: ../src/guestfs-actions.pod:6707
32061 msgid ""
32062 "This command is the same as C<guestfs_resize2fs> except that it allows you "
32063 "to specify the new size (in bytes) explicitly."
32064 msgstr ""
32065
32066 #. type: =head2
32067 #: ../src/guestfs-actions.pod:6714
32068 msgid "guestfs_rm"
32069 msgstr ""
32070
32071 #. type: verbatim
32072 #: ../src/guestfs-actions.pod:6716
32073 #, no-wrap
32074 msgid ""
32075 " int\n"
32076 " guestfs_rm (guestfs_h *g,\n"
32077 "             const char *path);\n"
32078 "\n"
32079 msgstr ""
32080
32081 #. type: =head2
32082 #: ../src/guestfs-actions.pod:6726
32083 msgid "guestfs_rm_rf"
32084 msgstr ""
32085
32086 #. type: verbatim
32087 #: ../src/guestfs-actions.pod:6728
32088 #, no-wrap
32089 msgid ""
32090 " int\n"
32091 " guestfs_rm_rf (guestfs_h *g,\n"
32092 "                const char *path);\n"
32093 "\n"
32094 msgstr ""
32095
32096 #. type: =head2
32097 #: ../src/guestfs-actions.pod:6740
32098 msgid "guestfs_rmdir"
32099 msgstr ""
32100
32101 #. type: verbatim
32102 #: ../src/guestfs-actions.pod:6742
32103 #, no-wrap
32104 msgid ""
32105 " int\n"
32106 " guestfs_rmdir (guestfs_h *g,\n"
32107 "                const char *path);\n"
32108 "\n"
32109 msgstr ""
32110
32111 #. type: =head2
32112 #: ../src/guestfs-actions.pod:6752
32113 msgid "guestfs_rmmountpoint"
32114 msgstr ""
32115
32116 #. type: verbatim
32117 #: ../src/guestfs-actions.pod:6754
32118 #, no-wrap
32119 msgid ""
32120 " int\n"
32121 " guestfs_rmmountpoint (guestfs_h *g,\n"
32122 "                       const char *exemptpath);\n"
32123 "\n"
32124 msgstr ""
32125
32126 #. type: textblock
32127 #: ../src/guestfs-actions.pod:6758
32128 msgid ""
32129 "This calls removes a mountpoint that was previously created with "
32130 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
32131 msgstr ""
32132
32133 #. type: =head2
32134 #: ../src/guestfs-actions.pod:6766
32135 msgid "guestfs_scrub_device"
32136 msgstr ""
32137
32138 #. type: verbatim
32139 #: ../src/guestfs-actions.pod:6768
32140 #, no-wrap
32141 msgid ""
32142 " int\n"
32143 " guestfs_scrub_device (guestfs_h *g,\n"
32144 "                       const char *device);\n"
32145 "\n"
32146 msgstr ""
32147
32148 #. type: textblock
32149 #: ../src/guestfs-actions.pod:6780 ../src/guestfs-actions.pod:6798 ../src/guestfs-actions.pod:6817
32150 msgid "(Added in 1.0.52)"
32151 msgstr ""
32152
32153 #. type: =head2
32154 #: ../src/guestfs-actions.pod:6782
32155 msgid "guestfs_scrub_file"
32156 msgstr ""
32157
32158 #. type: verbatim
32159 #: ../src/guestfs-actions.pod:6784
32160 #, no-wrap
32161 msgid ""
32162 " int\n"
32163 " guestfs_scrub_file (guestfs_h *g,\n"
32164 "                     const char *file);\n"
32165 "\n"
32166 msgstr ""
32167
32168 #. type: =head2
32169 #: ../src/guestfs-actions.pod:6800
32170 msgid "guestfs_scrub_freespace"
32171 msgstr ""
32172
32173 #. type: verbatim
32174 #: ../src/guestfs-actions.pod:6802
32175 #, no-wrap
32176 msgid ""
32177 " int\n"
32178 " guestfs_scrub_freespace (guestfs_h *g,\n"
32179 "                          const char *dir);\n"
32180 "\n"
32181 msgstr ""
32182
32183 #. type: textblock
32184 #: ../src/guestfs-actions.pod:6806
32185 msgid ""
32186 "This command creates the directory C<dir> and then fills it with files until "
32187 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
32188 "and deletes them.  The intention is to scrub any free space on the partition "
32189 "containing C<dir>."
32190 msgstr ""
32191
32192 #. type: =head2
32193 #: ../src/guestfs-actions.pod:6819
32194 msgid "guestfs_set_append"
32195 msgstr ""
32196
32197 #. type: verbatim
32198 #: ../src/guestfs-actions.pod:6821
32199 #, no-wrap
32200 msgid ""
32201 " int\n"
32202 " guestfs_set_append (guestfs_h *g,\n"
32203 "                     const char *append);\n"
32204 "\n"
32205 msgstr ""
32206
32207 #. type: =head2
32208 #: ../src/guestfs-actions.pod:6838
32209 msgid "guestfs_set_attach_method"
32210 msgstr ""
32211
32212 #. type: verbatim
32213 #: ../src/guestfs-actions.pod:6840
32214 #, no-wrap
32215 msgid ""
32216 " int\n"
32217 " guestfs_set_attach_method (guestfs_h *g,\n"
32218 "                            const char *attachmethod);\n"
32219 "\n"
32220 msgstr ""
32221
32222 #. type: =head2
32223 #: ../src/guestfs-actions.pod:6868
32224 msgid "guestfs_set_autosync"
32225 msgstr ""
32226
32227 #. type: verbatim
32228 #: ../src/guestfs-actions.pod:6870
32229 #, no-wrap
32230 msgid ""
32231 " int\n"
32232 " guestfs_set_autosync (guestfs_h *g,\n"
32233 "                       int autosync);\n"
32234 "\n"
32235 msgstr ""
32236
32237 #. type: =head2
32238 #: ../src/guestfs-actions.pod:6886
32239 msgid "guestfs_set_direct"
32240 msgstr ""
32241
32242 #. type: verbatim
32243 #: ../src/guestfs-actions.pod:6888
32244 #, no-wrap
32245 msgid ""
32246 " int\n"
32247 " guestfs_set_direct (guestfs_h *g,\n"
32248 "                     int direct);\n"
32249 "\n"
32250 msgstr ""
32251
32252 #. type: textblock
32253 #: ../src/guestfs-actions.pod:6896
32254 msgid ""
32255 "One consequence of this is that log messages aren't caught by the library "
32256 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
32257 "stdout."
32258 msgstr ""
32259
32260 #. type: =head2
32261 #: ../src/guestfs-actions.pod:6909
32262 msgid "guestfs_set_e2label"
32263 msgstr ""
32264
32265 #. type: verbatim
32266 #: ../src/guestfs-actions.pod:6911
32267 #, no-wrap
32268 msgid ""
32269 " int\n"
32270 " guestfs_set_e2label (guestfs_h *g,\n"
32271 "                      const char *device,\n"
32272 "                      const char *label);\n"
32273 "\n"
32274 msgstr ""
32275
32276 #. type: textblock
32277 #: ../src/guestfs-actions.pod:6920
32278 msgid ""
32279 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
32280 "the existing label on a filesystem."
32281 msgstr ""
32282
32283 #. type: =head2
32284 #: ../src/guestfs-actions.pod:6927
32285 msgid "guestfs_set_e2uuid"
32286 msgstr ""
32287
32288 #. type: verbatim
32289 #: ../src/guestfs-actions.pod:6929
32290 #, no-wrap
32291 msgid ""
32292 " int\n"
32293 " guestfs_set_e2uuid (guestfs_h *g,\n"
32294 "                     const char *device,\n"
32295 "                     const char *uuid);\n"
32296 "\n"
32297 msgstr ""
32298
32299 #. type: textblock
32300 #: ../src/guestfs-actions.pod:6939
32301 msgid ""
32302 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
32303 "the existing UUID of a filesystem."
32304 msgstr ""
32305
32306 #. type: =head2
32307 #: ../src/guestfs-actions.pod:6946
32308 msgid "guestfs_set_memsize"
32309 msgstr ""
32310
32311 #. type: verbatim
32312 #: ../src/guestfs-actions.pod:6948
32313 #, no-wrap
32314 msgid ""
32315 " int\n"
32316 " guestfs_set_memsize (guestfs_h *g,\n"
32317 "                      int memsize);\n"
32318 "\n"
32319 msgstr ""
32320
32321 #. type: textblock
32322 #: ../src/guestfs-actions.pod:6952
32323 msgid ""
32324 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
32325 "This only has any effect if called before C<guestfs_launch>."
32326 msgstr ""
32327
32328 #. type: =head2
32329 #: ../src/guestfs-actions.pod:6967
32330 msgid "guestfs_set_network"
32331 msgstr ""
32332
32333 #. type: verbatim
32334 #: ../src/guestfs-actions.pod:6969
32335 #, no-wrap
32336 msgid ""
32337 " int\n"
32338 " guestfs_set_network (guestfs_h *g,\n"
32339 "                      int network);\n"
32340 "\n"
32341 msgstr ""
32342
32343 #. type: textblock
32344 #: ../src/guestfs-actions.pod:6979
32345 msgid ""
32346 "You must call this before calling C<guestfs_launch>, otherwise it has no "
32347 "effect."
32348 msgstr ""
32349
32350 #. type: =head2
32351 #: ../src/guestfs-actions.pod:6986
32352 msgid "guestfs_set_path"
32353 msgstr ""
32354
32355 #. type: verbatim
32356 #: ../src/guestfs-actions.pod:6988
32357 #, no-wrap
32358 msgid ""
32359 " int\n"
32360 " guestfs_set_path (guestfs_h *g,\n"
32361 "                   const char *searchpath);\n"
32362 "\n"
32363 msgstr ""
32364
32365 #. type: =head2
32366 #: ../src/guestfs-actions.pod:7003
32367 msgid "guestfs_set_pgroup"
32368 msgstr ""
32369
32370 #. type: verbatim
32371 #: ../src/guestfs-actions.pod:7005
32372 #, no-wrap
32373 msgid ""
32374 " int\n"
32375 " guestfs_set_pgroup (guestfs_h *g,\n"
32376 "                     int pgroup);\n"
32377 "\n"
32378 msgstr ""
32379
32380 #. type: =head2
32381 #: ../src/guestfs-actions.pod:7022
32382 msgid "guestfs_set_qemu"
32383 msgstr ""
32384
32385 #. type: verbatim
32386 #: ../src/guestfs-actions.pod:7024
32387 #, no-wrap
32388 msgid ""
32389 " int\n"
32390 " guestfs_set_qemu (guestfs_h *g,\n"
32391 "                   const char *qemu);\n"
32392 "\n"
32393 msgstr ""
32394
32395 #. type: =head2
32396 #: ../src/guestfs-actions.pod:7050
32397 msgid "guestfs_set_recovery_proc"
32398 msgstr ""
32399
32400 #. type: verbatim
32401 #: ../src/guestfs-actions.pod:7052
32402 #, no-wrap
32403 msgid ""
32404 " int\n"
32405 " guestfs_set_recovery_proc (guestfs_h *g,\n"
32406 "                            int recoveryproc);\n"
32407 "\n"
32408 msgstr ""
32409
32410 #. type: textblock
32411 #: ../src/guestfs-actions.pod:7056
32412 msgid ""
32413 "If this is called with the parameter C<false> then C<guestfs_launch> does "
32414 "not create a recovery process.  The purpose of the recovery process is to "
32415 "stop runaway qemu processes in the case where the main program aborts "
32416 "abruptly."
32417 msgstr ""
32418
32419 #. type: textblock
32420 #: ../src/guestfs-actions.pod:7061
32421 msgid ""
32422 "This only has any effect if called before C<guestfs_launch>, and the default "
32423 "is true."
32424 msgstr ""
32425
32426 #. type: =head2
32427 #: ../src/guestfs-actions.pod:7074
32428 msgid "guestfs_set_selinux"
32429 msgstr ""
32430
32431 #. type: verbatim
32432 #: ../src/guestfs-actions.pod:7076
32433 #, no-wrap
32434 msgid ""
32435 " int\n"
32436 " guestfs_set_selinux (guestfs_h *g,\n"
32437 "                      int selinux);\n"
32438 "\n"
32439 msgstr ""
32440
32441 #. type: =head2
32442 #: ../src/guestfs-actions.pod:7093
32443 msgid "guestfs_set_smp"
32444 msgstr ""
32445
32446 #. type: verbatim
32447 #: ../src/guestfs-actions.pod:7095
32448 #, no-wrap
32449 msgid ""
32450 " int\n"
32451 " guestfs_set_smp (guestfs_h *g,\n"
32452 "                  int smp);\n"
32453 "\n"
32454 msgstr ""
32455
32456 #. type: textblock
32457 #: ../src/guestfs-actions.pod:7103
32458 msgid "This function must be called before C<guestfs_launch>."
32459 msgstr ""
32460
32461 #. type: =head2
32462 #: ../src/guestfs-actions.pod:7109
32463 msgid "guestfs_set_trace"
32464 msgstr ""
32465
32466 #. type: verbatim
32467 #: ../src/guestfs-actions.pod:7111
32468 #, no-wrap
32469 msgid ""
32470 " int\n"
32471 " guestfs_set_trace (guestfs_h *g,\n"
32472 "                    int trace);\n"
32473 "\n"
32474 msgstr ""
32475
32476 #. type: textblock
32477 #: ../src/guestfs-actions.pod:7125
32478 msgid ""
32479 "Trace messages are normally sent to C<stderr>, unless you register a "
32480 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
32481 msgstr ""
32482
32483 #. type: =head2
32484 #: ../src/guestfs-actions.pod:7133
32485 msgid "guestfs_set_verbose"
32486 msgstr ""
32487
32488 #. type: verbatim
32489 #: ../src/guestfs-actions.pod:7135
32490 #, no-wrap
32491 msgid ""
32492 " int\n"
32493 " guestfs_set_verbose (guestfs_h *g,\n"
32494 "                      int verbose);\n"
32495 "\n"
32496 msgstr ""
32497
32498 #. type: textblock
32499 #: ../src/guestfs-actions.pod:7144
32500 msgid ""
32501 "Verbose messages are normally sent to C<stderr>, unless you register a "
32502 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
32503 msgstr ""
32504
32505 #. type: =head2
32506 #: ../src/guestfs-actions.pod:7152
32507 msgid "guestfs_setcon"
32508 msgstr ""
32509
32510 #. type: verbatim
32511 #: ../src/guestfs-actions.pod:7154
32512 #, no-wrap
32513 msgid ""
32514 " int\n"
32515 " guestfs_setcon (guestfs_h *g,\n"
32516 "                 const char *context);\n"
32517 "\n"
32518 msgstr ""
32519
32520 #. type: =head2
32521 #: ../src/guestfs-actions.pod:7167
32522 msgid "guestfs_setxattr"
32523 msgstr ""
32524
32525 #. type: verbatim
32526 #: ../src/guestfs-actions.pod:7169
32527 #, no-wrap
32528 msgid ""
32529 " int\n"
32530 " guestfs_setxattr (guestfs_h *g,\n"
32531 "                   const char *xattr,\n"
32532 "                   const char *val,\n"
32533 "                   int vallen,\n"
32534 "                   const char *path);\n"
32535 "\n"
32536 msgstr ""
32537
32538 #. type: textblock
32539 #: ../src/guestfs-actions.pod:7180
32540 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
32541 msgstr ""
32542
32543 #. type: =head2
32544 #: ../src/guestfs-actions.pod:7186
32545 msgid "guestfs_sfdisk"
32546 msgstr ""
32547
32548 #. type: verbatim
32549 #: ../src/guestfs-actions.pod:7188
32550 #, no-wrap
32551 msgid ""
32552 " int\n"
32553 " guestfs_sfdisk (guestfs_h *g,\n"
32554 "                 const char *device,\n"
32555 "                 int cyls,\n"
32556 "                 int heads,\n"
32557 "                 int sectors,\n"
32558 "                 char *const *lines);\n"
32559 "\n"
32560 msgstr ""
32561
32562 #. type: textblock
32563 #: ../src/guestfs-actions.pod:7196 ../src/guestfs-actions.pod:7237 ../src/guestfs-actions.pod:7268
32564 msgid ""
32565 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
32566 "call instead."
32567 msgstr ""
32568
32569 #. type: textblock
32570 #: ../src/guestfs-actions.pod:7223
32571 msgid "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
32572 msgstr ""
32573
32574 #. type: =head2
32575 #: ../src/guestfs-actions.pod:7230
32576 msgid "guestfs_sfdiskM"
32577 msgstr ""
32578
32579 #. type: verbatim
32580 #: ../src/guestfs-actions.pod:7232
32581 #, no-wrap
32582 msgid ""
32583 " int\n"
32584 " guestfs_sfdiskM (guestfs_h *g,\n"
32585 "                  const char *device,\n"
32586 "                  char *const *lines);\n"
32587 "\n"
32588 msgstr ""
32589
32590 #. type: textblock
32591 #: ../src/guestfs-actions.pod:7244
32592 msgid ""
32593 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
32594 "partition sizes are specified in megabytes only (rounded to the nearest "
32595 "cylinder) and you don't need to specify the cyls, heads and sectors "
32596 "parameters which were rarely if ever used anyway."
32597 msgstr ""
32598
32599 #. type: textblock
32600 #: ../src/guestfs-actions.pod:7250
32601 msgid ""
32602 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
32603 "C<guestfs_part_disk>"
32604 msgstr ""
32605
32606 #. type: =head2
32607 #: ../src/guestfs-actions.pod:7257
32608 msgid "guestfs_sfdisk_N"
32609 msgstr ""
32610
32611 #. type: verbatim
32612 #: ../src/guestfs-actions.pod:7259
32613 #, no-wrap
32614 msgid ""
32615 " int\n"
32616 " guestfs_sfdisk_N (guestfs_h *g,\n"
32617 "                   const char *device,\n"
32618 "                   int partnum,\n"
32619 "                   int cyls,\n"
32620 "                   int heads,\n"
32621 "                   int sectors,\n"
32622 "                   const char *line);\n"
32623 "\n"
32624 msgstr ""
32625
32626 #. type: textblock
32627 #: ../src/guestfs-actions.pod:7278
32628 msgid ""
32629 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
32630 "for the cyls/heads/sectors parameters."
32631 msgstr ""
32632
32633 #. type: textblock
32634 #: ../src/guestfs-actions.pod:7281
32635 msgid "See also: C<guestfs_part_add>"
32636 msgstr ""
32637
32638 #. type: =head2
32639 #: ../src/guestfs-actions.pod:7287
32640 msgid "guestfs_sfdisk_disk_geometry"
32641 msgstr ""
32642
32643 #. type: verbatim
32644 #: ../src/guestfs-actions.pod:7289
32645 #, no-wrap
32646 msgid ""
32647 " char *\n"
32648 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
32649 "                               const char *device);\n"
32650 "\n"
32651 msgstr ""
32652
32653 #. type: textblock
32654 #: ../src/guestfs-actions.pod:7293
32655 msgid ""
32656 "This displays the disk geometry of C<device> read from the partition table.  "
32657 "Especially in the case where the underlying block device has been resized, "
32658 "this can be different from the kernel's idea of the geometry (see "
32659 "C<guestfs_sfdisk_kernel_geometry>)."
32660 msgstr ""
32661
32662 #. type: =head2
32663 #: ../src/guestfs-actions.pod:7306
32664 msgid "guestfs_sfdisk_kernel_geometry"
32665 msgstr ""
32666
32667 #. type: verbatim
32668 #: ../src/guestfs-actions.pod:7308
32669 #, no-wrap
32670 msgid ""
32671 " char *\n"
32672 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
32673 "                                 const char *device);\n"
32674 "\n"
32675 msgstr ""
32676
32677 #. type: =head2
32678 #: ../src/guestfs-actions.pod:7322
32679 msgid "guestfs_sfdisk_l"
32680 msgstr ""
32681
32682 #. type: verbatim
32683 #: ../src/guestfs-actions.pod:7324
32684 #, no-wrap
32685 msgid ""
32686 " char *\n"
32687 " guestfs_sfdisk_l (guestfs_h *g,\n"
32688 "                   const char *device);\n"
32689 "\n"
32690 msgstr ""
32691
32692 #. type: textblock
32693 #: ../src/guestfs-actions.pod:7328
32694 msgid ""
32695 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
32696 "call instead."
32697 msgstr ""
32698
32699 #. type: textblock
32700 #: ../src/guestfs-actions.pod:7339
32701 msgid "See also: C<guestfs_part_list>"
32702 msgstr ""
32703
32704 #. type: =head2
32705 #: ../src/guestfs-actions.pod:7346
32706 msgid "guestfs_sh"
32707 msgstr ""
32708
32709 #. type: verbatim
32710 #: ../src/guestfs-actions.pod:7348
32711 #, no-wrap
32712 msgid ""
32713 " char *\n"
32714 " guestfs_sh (guestfs_h *g,\n"
32715 "             const char *command);\n"
32716 "\n"
32717 msgstr ""
32718
32719 #. type: textblock
32720 #: ../src/guestfs-actions.pod:7355
32721 msgid "This is like C<guestfs_command>, but passes the command to:"
32722 msgstr ""
32723
32724 #. type: textblock
32725 #: ../src/guestfs-actions.pod:7363
32726 msgid "All the provisos about C<guestfs_command> apply to this call."
32727 msgstr ""
32728
32729 #. type: =head2
32730 #: ../src/guestfs-actions.pod:7370
32731 msgid "guestfs_sh_lines"
32732 msgstr ""
32733
32734 #. type: verbatim
32735 #: ../src/guestfs-actions.pod:7372
32736 #, no-wrap
32737 msgid ""
32738 " char **\n"
32739 " guestfs_sh_lines (guestfs_h *g,\n"
32740 "                   const char *command);\n"
32741 "\n"
32742 msgstr ""
32743
32744 #. type: textblock
32745 #: ../src/guestfs-actions.pod:7376
32746 msgid ""
32747 "This is the same as C<guestfs_sh>, but splits the result into a list of "
32748 "lines."
32749 msgstr ""
32750
32751 #. type: textblock
32752 #: ../src/guestfs-actions.pod:7379
32753 msgid "See also: C<guestfs_command_lines>"
32754 msgstr ""
32755
32756 #. type: =head2
32757 #: ../src/guestfs-actions.pod:7387
32758 msgid "guestfs_sleep"
32759 msgstr ""
32760
32761 #. type: verbatim
32762 #: ../src/guestfs-actions.pod:7389
32763 #, no-wrap
32764 msgid ""
32765 " int\n"
32766 " guestfs_sleep (guestfs_h *g,\n"
32767 "                int secs);\n"
32768 "\n"
32769 msgstr ""
32770
32771 #. type: textblock
32772 #: ../src/guestfs-actions.pod:7397
32773 msgid "(Added in 1.0.41)"
32774 msgstr ""
32775
32776 #. type: =head2
32777 #: ../src/guestfs-actions.pod:7399 ../src/guestfs-structs.pod:109
32778 msgid "guestfs_stat"
32779 msgstr ""
32780
32781 #. type: verbatim
32782 #: ../src/guestfs-actions.pod:7401
32783 #, no-wrap
32784 msgid ""
32785 " struct guestfs_stat *\n"
32786 " guestfs_stat (guestfs_h *g,\n"
32787 "               const char *path);\n"
32788 "\n"
32789 msgstr ""
32790
32791 #. type: =head2
32792 #: ../src/guestfs-actions.pod:7415 ../src/guestfs-structs.pod:135
32793 msgid "guestfs_statvfs"
32794 msgstr ""
32795
32796 #. type: verbatim
32797 #: ../src/guestfs-actions.pod:7417
32798 #, no-wrap
32799 msgid ""
32800 " struct guestfs_statvfs *\n"
32801 " guestfs_statvfs (guestfs_h *g,\n"
32802 "                  const char *path);\n"
32803 "\n"
32804 msgstr ""
32805
32806 #. type: textblock
32807 #: ../src/guestfs-actions.pod:7427
32808 msgid ""
32809 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
32810 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
32811 msgstr ""
32812
32813 #. type: =head2
32814 #: ../src/guestfs-actions.pod:7433
32815 msgid "guestfs_strings"
32816 msgstr ""
32817
32818 #. type: verbatim
32819 #: ../src/guestfs-actions.pod:7435
32820 #, no-wrap
32821 msgid ""
32822 " char **\n"
32823 " guestfs_strings (guestfs_h *g,\n"
32824 "                  const char *path);\n"
32825 "\n"
32826 msgstr ""
32827
32828 #. type: =head2
32829 #: ../src/guestfs-actions.pod:7451
32830 msgid "guestfs_strings_e"
32831 msgstr ""
32832
32833 #. type: verbatim
32834 #: ../src/guestfs-actions.pod:7453
32835 #, no-wrap
32836 msgid ""
32837 " char **\n"
32838 " guestfs_strings_e (guestfs_h *g,\n"
32839 "                    const char *encoding,\n"
32840 "                    const char *path);\n"
32841 "\n"
32842 msgstr ""
32843
32844 #. type: textblock
32845 #: ../src/guestfs-actions.pod:7458
32846 msgid ""
32847 "This is like the C<guestfs_strings> command, but allows you to specify the "
32848 "encoding of strings that are looked for in the source file C<path>."
32849 msgstr ""
32850
32851 #. type: textblock
32852 #: ../src/guestfs-actions.pod:7468
32853 msgid ""
32854 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
32855 "ISO-8859-X (this is what C<guestfs_strings> uses)."
32856 msgstr ""
32857
32858 #. type: =head2
32859 #: ../src/guestfs-actions.pod:7506
32860 msgid "guestfs_swapoff_device"
32861 msgstr ""
32862
32863 #. type: verbatim
32864 #: ../src/guestfs-actions.pod:7508
32865 #, no-wrap
32866 msgid ""
32867 " int\n"
32868 " guestfs_swapoff_device (guestfs_h *g,\n"
32869 "                         const char *device);\n"
32870 "\n"
32871 msgstr ""
32872
32873 #. type: textblock
32874 #: ../src/guestfs-actions.pod:7512
32875 msgid ""
32876 "This command disables the libguestfs appliance swap device or partition "
32877 "named C<device>.  See C<guestfs_swapon_device>."
32878 msgstr ""
32879
32880 #. type: =head2
32881 #: ../src/guestfs-actions.pod:7520
32882 msgid "guestfs_swapoff_file"
32883 msgstr ""
32884
32885 #. type: verbatim
32886 #: ../src/guestfs-actions.pod:7522
32887 #, no-wrap
32888 msgid ""
32889 " int\n"
32890 " guestfs_swapoff_file (guestfs_h *g,\n"
32891 "                       const char *file);\n"
32892 "\n"
32893 msgstr ""
32894
32895 #. type: =head2
32896 #: ../src/guestfs-actions.pod:7532
32897 msgid "guestfs_swapoff_label"
32898 msgstr ""
32899
32900 #. type: verbatim
32901 #: ../src/guestfs-actions.pod:7534
32902 #, no-wrap
32903 msgid ""
32904 " int\n"
32905 " guestfs_swapoff_label (guestfs_h *g,\n"
32906 "                        const char *label);\n"
32907 "\n"
32908 msgstr ""
32909
32910 #. type: =head2
32911 #: ../src/guestfs-actions.pod:7545
32912 msgid "guestfs_swapoff_uuid"
32913 msgstr ""
32914
32915 #. type: verbatim
32916 #: ../src/guestfs-actions.pod:7547
32917 #, no-wrap
32918 msgid ""
32919 " int\n"
32920 " guestfs_swapoff_uuid (guestfs_h *g,\n"
32921 "                       const char *uuid);\n"
32922 "\n"
32923 msgstr ""
32924
32925 #. type: =head2
32926 #: ../src/guestfs-actions.pod:7558
32927 msgid "guestfs_swapon_device"
32928 msgstr ""
32929
32930 #. type: verbatim
32931 #: ../src/guestfs-actions.pod:7560
32932 #, no-wrap
32933 msgid ""
32934 " int\n"
32935 " guestfs_swapon_device (guestfs_h *g,\n"
32936 "                        const char *device);\n"
32937 "\n"
32938 msgstr ""
32939
32940 #. type: textblock
32941 #: ../src/guestfs-actions.pod:7564
32942 msgid ""
32943 "This command enables the libguestfs appliance to use the swap device or "
32944 "partition named C<device>.  The increased memory is made available for all "
32945 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
32946 msgstr ""
32947
32948 #. type: =head2
32949 #: ../src/guestfs-actions.pod:7580
32950 msgid "guestfs_swapon_file"
32951 msgstr ""
32952
32953 #. type: verbatim
32954 #: ../src/guestfs-actions.pod:7582
32955 #, no-wrap
32956 msgid ""
32957 " int\n"
32958 " guestfs_swapon_file (guestfs_h *g,\n"
32959 "                      const char *file);\n"
32960 "\n"
32961 msgstr ""
32962
32963 #. type: textblock
32964 #: ../src/guestfs-actions.pod:7586
32965 msgid ""
32966 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
32967 "notes."
32968 msgstr ""
32969
32970 #. type: =head2
32971 #: ../src/guestfs-actions.pod:7593
32972 msgid "guestfs_swapon_label"
32973 msgstr ""
32974
32975 #. type: verbatim
32976 #: ../src/guestfs-actions.pod:7595
32977 #, no-wrap
32978 msgid ""
32979 " int\n"
32980 " guestfs_swapon_label (guestfs_h *g,\n"
32981 "                       const char *label);\n"
32982 "\n"
32983 msgstr ""
32984
32985 #. type: textblock
32986 #: ../src/guestfs-actions.pod:7599
32987 msgid ""
32988 "This command enables swap to a labeled swap partition.  See "
32989 "C<guestfs_swapon_device> for other notes."
32990 msgstr ""
32991
32992 #. type: =head2
32993 #: ../src/guestfs-actions.pod:7606
32994 msgid "guestfs_swapon_uuid"
32995 msgstr ""
32996
32997 #. type: verbatim
32998 #: ../src/guestfs-actions.pod:7608
32999 #, no-wrap
33000 msgid ""
33001 " int\n"
33002 " guestfs_swapon_uuid (guestfs_h *g,\n"
33003 "                      const char *uuid);\n"
33004 "\n"
33005 msgstr ""
33006
33007 #. type: textblock
33008 #: ../src/guestfs-actions.pod:7612
33009 msgid ""
33010 "This command enables swap to a swap partition with the given UUID.  See "
33011 "C<guestfs_swapon_device> for other notes."
33012 msgstr ""
33013
33014 #. type: =head2
33015 #: ../src/guestfs-actions.pod:7619
33016 msgid "guestfs_sync"
33017 msgstr ""
33018
33019 #. type: verbatim
33020 #: ../src/guestfs-actions.pod:7621
33021 #, no-wrap
33022 msgid ""
33023 " int\n"
33024 " guestfs_sync (guestfs_h *g);\n"
33025 "\n"
33026 msgstr ""
33027
33028 #. type: =head2
33029 #: ../src/guestfs-actions.pod:7634
33030 msgid "guestfs_tail"
33031 msgstr ""
33032
33033 #. type: verbatim
33034 #: ../src/guestfs-actions.pod:7636
33035 #, no-wrap
33036 msgid ""
33037 " char **\n"
33038 " guestfs_tail (guestfs_h *g,\n"
33039 "               const char *path);\n"
33040 "\n"
33041 msgstr ""
33042
33043 #. type: =head2
33044 #: ../src/guestfs-actions.pod:7652
33045 msgid "guestfs_tail_n"
33046 msgstr ""
33047
33048 #. type: verbatim
33049 #: ../src/guestfs-actions.pod:7654
33050 #, no-wrap
33051 msgid ""
33052 " char **\n"
33053 " guestfs_tail_n (guestfs_h *g,\n"
33054 "                 int nrlines,\n"
33055 "                 const char *path);\n"
33056 "\n"
33057 msgstr ""
33058
33059 #. type: =head2
33060 #: ../src/guestfs-actions.pod:7676
33061 msgid "guestfs_tar_in"
33062 msgstr ""
33063
33064 #. type: verbatim
33065 #: ../src/guestfs-actions.pod:7678
33066 #, no-wrap
33067 msgid ""
33068 " int\n"
33069 " guestfs_tar_in (guestfs_h *g,\n"
33070 "                 const char *tarfile,\n"
33071 "                 const char *directory);\n"
33072 "\n"
33073 msgstr ""
33074
33075 #. type: textblock
33076 #: ../src/guestfs-actions.pod:7686
33077 msgid "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
33078 msgstr ""
33079
33080 #. type: textblock
33081 #: ../src/guestfs-actions.pod:7691 ../src/guestfs-actions.pod:7708 ../src/guestfs-actions.pod:7724 ../src/guestfs-actions.pod:7740
33082 msgid "(Added in 1.0.3)"
33083 msgstr ""
33084
33085 #. type: =head2
33086 #: ../src/guestfs-actions.pod:7693
33087 msgid "guestfs_tar_out"
33088 msgstr ""
33089
33090 #. type: verbatim
33091 #: ../src/guestfs-actions.pod:7695
33092 #, no-wrap
33093 msgid ""
33094 " int\n"
33095 " guestfs_tar_out (guestfs_h *g,\n"
33096 "                  const char *directory,\n"
33097 "                  const char *tarfile);\n"
33098 "\n"
33099 msgstr ""
33100
33101 #. type: textblock
33102 #: ../src/guestfs-actions.pod:7703
33103 msgid ""
33104 "To download a compressed tarball, use C<guestfs_tgz_out> or "
33105 "C<guestfs_txz_out>."
33106 msgstr ""
33107
33108 #. type: =head2
33109 #: ../src/guestfs-actions.pod:7710
33110 msgid "guestfs_tgz_in"
33111 msgstr ""
33112
33113 #. type: verbatim
33114 #: ../src/guestfs-actions.pod:7712
33115 #, no-wrap
33116 msgid ""
33117 " int\n"
33118 " guestfs_tgz_in (guestfs_h *g,\n"
33119 "                 const char *tarball,\n"
33120 "                 const char *directory);\n"
33121 "\n"
33122 msgstr ""
33123
33124 #. type: textblock
33125 #: ../src/guestfs-actions.pod:7720
33126 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
33127 msgstr ""
33128
33129 #. type: =head2
33130 #: ../src/guestfs-actions.pod:7726
33131 msgid "guestfs_tgz_out"
33132 msgstr ""
33133
33134 #. type: verbatim
33135 #: ../src/guestfs-actions.pod:7728
33136 #, no-wrap
33137 msgid ""
33138 " int\n"
33139 " guestfs_tgz_out (guestfs_h *g,\n"
33140 "                  const char *directory,\n"
33141 "                  const char *tarball);\n"
33142 "\n"
33143 msgstr ""
33144
33145 #. type: textblock
33146 #: ../src/guestfs-actions.pod:7736
33147 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
33148 msgstr ""
33149
33150 #. type: =head2
33151 #: ../src/guestfs-actions.pod:7742
33152 msgid "guestfs_touch"
33153 msgstr ""
33154
33155 #. type: verbatim
33156 #: ../src/guestfs-actions.pod:7744
33157 #, no-wrap
33158 msgid ""
33159 " int\n"
33160 " guestfs_touch (guestfs_h *g,\n"
33161 "                const char *path);\n"
33162 "\n"
33163 msgstr ""
33164
33165 #. type: =head2
33166 #: ../src/guestfs-actions.pod:7759
33167 msgid "guestfs_truncate"
33168 msgstr ""
33169
33170 #. type: verbatim
33171 #: ../src/guestfs-actions.pod:7761
33172 #, no-wrap
33173 msgid ""
33174 " int\n"
33175 " guestfs_truncate (guestfs_h *g,\n"
33176 "                   const char *path);\n"
33177 "\n"
33178 msgstr ""
33179
33180 #. type: =head2
33181 #: ../src/guestfs-actions.pod:7772
33182 msgid "guestfs_truncate_size"
33183 msgstr ""
33184
33185 #. type: verbatim
33186 #: ../src/guestfs-actions.pod:7774
33187 #, no-wrap
33188 msgid ""
33189 " int\n"
33190 " guestfs_truncate_size (guestfs_h *g,\n"
33191 "                        const char *path,\n"
33192 "                        int64_t size);\n"
33193 "\n"
33194 msgstr ""
33195
33196 #. type: textblock
33197 #: ../src/guestfs-actions.pod:7782
33198 msgid ""
33199 "If the current file size is less than C<size> then the file is extended to "
33200 "the required size with zero bytes.  This creates a sparse file (ie. disk "
33201 "blocks are not allocated for the file until you write to it).  To create a "
33202 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
33203 msgstr ""
33204
33205 #. type: =head2
33206 #: ../src/guestfs-actions.pod:7792
33207 msgid "guestfs_tune2fs"
33208 msgstr ""
33209
33210 #. type: verbatim
33211 #: ../src/guestfs-actions.pod:7794
33212 #, no-wrap
33213 msgid ""
33214 " int\n"
33215 " guestfs_tune2fs (guestfs_h *g,\n"
33216 "                  const char *device,\n"
33217 "                  ...);\n"
33218 "\n"
33219 msgstr ""
33220
33221 #. type: verbatim
33222 #: ../src/guestfs-actions.pod:7804
33223 #, no-wrap
33224 msgid ""
33225 " GUESTFS_TUNE2FS_FORCE, int force,\n"
33226 " GUESTFS_TUNE2FS_MAXMOUNTCOUNT, int maxmountcount,\n"
33227 " GUESTFS_TUNE2FS_MOUNTCOUNT, int mountcount,\n"
33228 " GUESTFS_TUNE2FS_ERRORBEHAVIOR, const char *errorbehavior,\n"
33229 " GUESTFS_TUNE2FS_GROUP, int64_t group,\n"
33230 " GUESTFS_TUNE2FS_INTERVALBETWEENCHECKS, int intervalbetweenchecks,\n"
33231 " GUESTFS_TUNE2FS_RESERVEDBLOCKSPERCENTAGE, int reservedblockspercentage,\n"
33232 " GUESTFS_TUNE2FS_LASTMOUNTEDDIRECTORY, const char *lastmounteddirectory,\n"
33233 " GUESTFS_TUNE2FS_RESERVEDBLOCKSCOUNT, int64_t reservedblockscount,\n"
33234 " GUESTFS_TUNE2FS_USER, int64_t user,\n"
33235 "\n"
33236 msgstr ""
33237
33238 #. type: textblock
33239 #: ../src/guestfs-actions.pod:7884
33240 msgid ""
33241 "To get the current values of filesystem parameters, see "
33242 "C<guestfs_tune2fs_l>.  For precise details of how tune2fs works, see the "
33243 "L<tune2fs(8)> man page."
33244 msgstr ""
33245
33246 #. type: =head2
33247 #: ../src/guestfs-actions.pod:7892
33248 msgid "guestfs_tune2fs_va"
33249 msgstr ""
33250
33251 #. type: verbatim
33252 #: ../src/guestfs-actions.pod:7894
33253 #, no-wrap
33254 msgid ""
33255 " int\n"
33256 " guestfs_tune2fs_va (guestfs_h *g,\n"
33257 "                     const char *device,\n"
33258 "                     va_list args);\n"
33259 "\n"
33260 msgstr ""
33261
33262 #. type: textblock
33263 #: ../src/guestfs-actions.pod:7899
33264 msgid "This is the \"va_list variant\" of L</guestfs_tune2fs>."
33265 msgstr ""
33266
33267 #. type: =head2
33268 #: ../src/guestfs-actions.pod:7903
33269 msgid "guestfs_tune2fs_argv"
33270 msgstr ""
33271
33272 #. type: verbatim
33273 #: ../src/guestfs-actions.pod:7905
33274 #, no-wrap
33275 msgid ""
33276 " int\n"
33277 " guestfs_tune2fs_argv (guestfs_h *g,\n"
33278 "                       const char *device,\n"
33279 "                       const struct guestfs_tune2fs_argv *optargs);\n"
33280 "\n"
33281 msgstr ""
33282
33283 #. type: textblock
33284 #: ../src/guestfs-actions.pod:7910
33285 msgid "This is the \"argv variant\" of L</guestfs_tune2fs>."
33286 msgstr ""
33287
33288 #. type: =head2
33289 #: ../src/guestfs-actions.pod:7914
33290 msgid "guestfs_tune2fs_l"
33291 msgstr ""
33292
33293 #. type: verbatim
33294 #: ../src/guestfs-actions.pod:7916
33295 #, no-wrap
33296 msgid ""
33297 " char **\n"
33298 " guestfs_tune2fs_l (guestfs_h *g,\n"
33299 "                    const char *device);\n"
33300 "\n"
33301 msgstr ""
33302
33303 #. type: =head2
33304 #: ../src/guestfs-actions.pod:7936
33305 msgid "guestfs_txz_in"
33306 msgstr ""
33307
33308 #. type: verbatim
33309 #: ../src/guestfs-actions.pod:7938
33310 #, no-wrap
33311 msgid ""
33312 " int\n"
33313 " guestfs_txz_in (guestfs_h *g,\n"
33314 "                 const char *tarball,\n"
33315 "                 const char *directory);\n"
33316 "\n"
33317 msgstr ""
33318
33319 #. type: =head2
33320 #: ../src/guestfs-actions.pod:7950
33321 msgid "guestfs_txz_out"
33322 msgstr ""
33323
33324 #. type: verbatim
33325 #: ../src/guestfs-actions.pod:7952
33326 #, no-wrap
33327 msgid ""
33328 " int\n"
33329 " guestfs_txz_out (guestfs_h *g,\n"
33330 "                  const char *directory,\n"
33331 "                  const char *tarball);\n"
33332 "\n"
33333 msgstr ""
33334
33335 #. type: =head2
33336 #: ../src/guestfs-actions.pod:7964
33337 msgid "guestfs_umask"
33338 msgstr ""
33339
33340 #. type: verbatim
33341 #: ../src/guestfs-actions.pod:7966
33342 #, no-wrap
33343 msgid ""
33344 " int\n"
33345 " guestfs_umask (guestfs_h *g,\n"
33346 "                int mask);\n"
33347 "\n"
33348 msgstr ""
33349
33350 #. type: textblock
33351 #: ../src/guestfs-actions.pod:7982
33352 msgid ""
33353 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
33354 "C<guestfs_mkdir>."
33355 msgstr ""
33356
33357 #. type: =head2
33358 #: ../src/guestfs-actions.pod:7991
33359 msgid "guestfs_umount"
33360 msgstr ""
33361
33362 #. type: verbatim
33363 #: ../src/guestfs-actions.pod:7993
33364 #, no-wrap
33365 msgid ""
33366 " int\n"
33367 " guestfs_umount (guestfs_h *g,\n"
33368 "                 const char *pathordevice);\n"
33369 "\n"
33370 msgstr ""
33371
33372 #. type: =head2
33373 #: ../src/guestfs-actions.pod:8005
33374 msgid "guestfs_umount_all"
33375 msgstr ""
33376
33377 #. type: verbatim
33378 #: ../src/guestfs-actions.pod:8007
33379 #, no-wrap
33380 msgid ""
33381 " int\n"
33382 " guestfs_umount_all (guestfs_h *g);\n"
33383 "\n"
33384 msgstr ""
33385
33386 #. type: =head2
33387 #: ../src/guestfs-actions.pod:8018
33388 msgid "guestfs_upload"
33389 msgstr ""
33390
33391 #. type: verbatim
33392 #: ../src/guestfs-actions.pod:8020
33393 #, no-wrap
33394 msgid ""
33395 " int\n"
33396 " guestfs_upload (guestfs_h *g,\n"
33397 "                 const char *filename,\n"
33398 "                 const char *remotefilename);\n"
33399 "\n"
33400 msgstr ""
33401
33402 #. type: textblock
33403 #: ../src/guestfs-actions.pod:8030
33404 msgid "See also C<guestfs_download>."
33405 msgstr ""
33406
33407 #. type: =head2
33408 #: ../src/guestfs-actions.pod:8041
33409 msgid "guestfs_upload_offset"
33410 msgstr ""
33411
33412 #. type: verbatim
33413 #: ../src/guestfs-actions.pod:8043
33414 #, no-wrap
33415 msgid ""
33416 " int\n"
33417 " guestfs_upload_offset (guestfs_h *g,\n"
33418 "                        const char *filename,\n"
33419 "                        const char *remotefilename,\n"
33420 "                        int64_t offset);\n"
33421 "\n"
33422 msgstr ""
33423
33424 #. type: textblock
33425 #: ../src/guestfs-actions.pod:8059
33426 msgid ""
33427 "Note that there is no limit on the amount of data that can be uploaded with "
33428 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
33429 "full amount unless an error occurs."
33430 msgstr ""
33431
33432 #. type: textblock
33433 #: ../src/guestfs-actions.pod:8064
33434 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
33435 msgstr ""
33436
33437 #. type: =head2
33438 #: ../src/guestfs-actions.pod:8075
33439 msgid "guestfs_utimens"
33440 msgstr ""
33441
33442 #. type: verbatim
33443 #: ../src/guestfs-actions.pod:8077
33444 #, no-wrap
33445 msgid ""
33446 " int\n"
33447 " guestfs_utimens (guestfs_h *g,\n"
33448 "                  const char *path,\n"
33449 "                  int64_t atsecs,\n"
33450 "                  int64_t atnsecs,\n"
33451 "                  int64_t mtsecs,\n"
33452 "                  int64_t mtnsecs);\n"
33453 "\n"
33454 msgstr ""
33455
33456 #. type: =head2
33457 #: ../src/guestfs-actions.pod:8106 ../src/guestfs-structs.pod:175
33458 msgid "guestfs_version"
33459 msgstr ""
33460
33461 #. type: verbatim
33462 #: ../src/guestfs-actions.pod:8108
33463 #, no-wrap
33464 msgid ""
33465 " struct guestfs_version *\n"
33466 " guestfs_version (guestfs_h *g);\n"
33467 "\n"
33468 msgstr ""
33469
33470 #. type: textblock
33471 #: ../src/guestfs-actions.pod:8136
33472 msgid ""
33473 "I<Note:> Don't use this call to test for availability of features.  In "
33474 "enterprise distributions we backport features from later versions into "
33475 "earlier versions, making this an unreliable way to test for features.  Use "
33476 "C<guestfs_available> instead."
33477 msgstr ""
33478
33479 #. type: textblock
33480 #: ../src/guestfs-actions.pod:8142
33481 msgid ""
33482 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
33483 "error.  I<The caller must call C<guestfs_free_version> after use>."
33484 msgstr ""
33485
33486 #. type: textblock
33487 #: ../src/guestfs-actions.pod:8146
33488 msgid "(Added in 1.0.58)"
33489 msgstr ""
33490
33491 #. type: =head2
33492 #: ../src/guestfs-actions.pod:8148
33493 msgid "guestfs_vfs_label"
33494 msgstr ""
33495
33496 #. type: verbatim
33497 #: ../src/guestfs-actions.pod:8150
33498 #, no-wrap
33499 msgid ""
33500 " char *\n"
33501 " guestfs_vfs_label (guestfs_h *g,\n"
33502 "                    const char *device);\n"
33503 "\n"
33504 msgstr ""
33505
33506 #. type: textblock
33507 #: ../src/guestfs-actions.pod:8159
33508 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
33509 msgstr ""
33510
33511 #. type: textblock
33512 #: ../src/guestfs-actions.pod:8164 ../src/guestfs-actions.pod:8201
33513 msgid "(Added in 1.3.18)"
33514 msgstr ""
33515
33516 #. type: =head2
33517 #: ../src/guestfs-actions.pod:8166
33518 msgid "guestfs_vfs_type"
33519 msgstr ""
33520
33521 #. type: verbatim
33522 #: ../src/guestfs-actions.pod:8168
33523 #, no-wrap
33524 msgid ""
33525 " char *\n"
33526 " guestfs_vfs_type (guestfs_h *g,\n"
33527 "                   const char *device);\n"
33528 "\n"
33529 msgstr ""
33530
33531 #. type: =head2
33532 #: ../src/guestfs-actions.pod:8185
33533 msgid "guestfs_vfs_uuid"
33534 msgstr ""
33535
33536 #. type: verbatim
33537 #: ../src/guestfs-actions.pod:8187
33538 #, no-wrap
33539 msgid ""
33540 " char *\n"
33541 " guestfs_vfs_uuid (guestfs_h *g,\n"
33542 "                   const char *device);\n"
33543 "\n"
33544 msgstr ""
33545
33546 #. type: textblock
33547 #: ../src/guestfs-actions.pod:8196
33548 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
33549 msgstr ""
33550
33551 #. type: =head2
33552 #: ../src/guestfs-actions.pod:8203
33553 msgid "guestfs_vg_activate"
33554 msgstr ""
33555
33556 #. type: verbatim
33557 #: ../src/guestfs-actions.pod:8205
33558 #, no-wrap
33559 msgid ""
33560 " int\n"
33561 " guestfs_vg_activate (guestfs_h *g,\n"
33562 "                      int activate,\n"
33563 "                      char *const *volgroups);\n"
33564 "\n"
33565 msgstr ""
33566
33567 #. type: =head2
33568 #: ../src/guestfs-actions.pod:8222
33569 msgid "guestfs_vg_activate_all"
33570 msgstr ""
33571
33572 #. type: verbatim
33573 #: ../src/guestfs-actions.pod:8224
33574 #, no-wrap
33575 msgid ""
33576 " int\n"
33577 " guestfs_vg_activate_all (guestfs_h *g,\n"
33578 "                          int activate);\n"
33579 "\n"
33580 msgstr ""
33581
33582 #. type: =head2
33583 #: ../src/guestfs-actions.pod:8237
33584 msgid "guestfs_vgcreate"
33585 msgstr ""
33586
33587 #. type: verbatim
33588 #: ../src/guestfs-actions.pod:8239
33589 #, no-wrap
33590 msgid ""
33591 " int\n"
33592 " guestfs_vgcreate (guestfs_h *g,\n"
33593 "                   const char *volgroup,\n"
33594 "                   char *const *physvols);\n"
33595 "\n"
33596 msgstr ""
33597
33598 #. type: =head2
33599 #: ../src/guestfs-actions.pod:8251
33600 msgid "guestfs_vglvuuids"
33601 msgstr ""
33602
33603 #. type: verbatim
33604 #: ../src/guestfs-actions.pod:8253
33605 #, no-wrap
33606 msgid ""
33607 " char **\n"
33608 " guestfs_vglvuuids (guestfs_h *g,\n"
33609 "                    const char *vgname);\n"
33610 "\n"
33611 msgstr ""
33612
33613 #. type: textblock
33614 #: ../src/guestfs-actions.pod:8260
33615 msgid ""
33616 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
33617 "associate logical volumes and volume groups."
33618 msgstr ""
33619
33620 #. type: textblock
33621 #: ../src/guestfs-actions.pod:8263
33622 msgid "See also C<guestfs_vgpvuuids>."
33623 msgstr ""
33624
33625 #. type: =head2
33626 #: ../src/guestfs-actions.pod:8271
33627 msgid "guestfs_vgpvuuids"
33628 msgstr ""
33629
33630 #. type: verbatim
33631 #: ../src/guestfs-actions.pod:8273
33632 #, no-wrap
33633 msgid ""
33634 " char **\n"
33635 " guestfs_vgpvuuids (guestfs_h *g,\n"
33636 "                    const char *vgname);\n"
33637 "\n"
33638 msgstr ""
33639
33640 #. type: textblock
33641 #: ../src/guestfs-actions.pod:8280
33642 msgid ""
33643 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
33644 "associate physical volumes and volume groups."
33645 msgstr ""
33646
33647 #. type: textblock
33648 #: ../src/guestfs-actions.pod:8283
33649 msgid "See also C<guestfs_vglvuuids>."
33650 msgstr ""
33651
33652 #. type: =head2
33653 #: ../src/guestfs-actions.pod:8291
33654 msgid "guestfs_vgremove"
33655 msgstr ""
33656
33657 #. type: verbatim
33658 #: ../src/guestfs-actions.pod:8293
33659 #, no-wrap
33660 msgid ""
33661 " int\n"
33662 " guestfs_vgremove (guestfs_h *g,\n"
33663 "                   const char *vgname);\n"
33664 "\n"
33665 msgstr ""
33666
33667 #. type: =head2
33668 #: ../src/guestfs-actions.pod:8306
33669 msgid "guestfs_vgrename"
33670 msgstr ""
33671
33672 #. type: verbatim
33673 #: ../src/guestfs-actions.pod:8308
33674 #, no-wrap
33675 msgid ""
33676 " int\n"
33677 " guestfs_vgrename (guestfs_h *g,\n"
33678 "                   const char *volgroup,\n"
33679 "                   const char *newvolgroup);\n"
33680 "\n"
33681 msgstr ""
33682
33683 #. type: =head2
33684 #: ../src/guestfs-actions.pod:8319
33685 msgid "guestfs_vgs"
33686 msgstr ""
33687
33688 #. type: verbatim
33689 #: ../src/guestfs-actions.pod:8321
33690 #, no-wrap
33691 msgid ""
33692 " char **\n"
33693 " guestfs_vgs (guestfs_h *g);\n"
33694 "\n"
33695 msgstr ""
33696
33697 #. type: textblock
33698 #: ../src/guestfs-actions.pod:8330
33699 msgid "See also C<guestfs_vgs_full>."
33700 msgstr ""
33701
33702 #. type: =head2
33703 #: ../src/guestfs-actions.pod:8338
33704 msgid "guestfs_vgs_full"
33705 msgstr ""
33706
33707 #. type: verbatim
33708 #: ../src/guestfs-actions.pod:8340
33709 #, no-wrap
33710 msgid ""
33711 " struct guestfs_lvm_vg_list *\n"
33712 " guestfs_vgs_full (guestfs_h *g);\n"
33713 "\n"
33714 msgstr ""
33715
33716 #. type: textblock
33717 #: ../src/guestfs-actions.pod:8346
33718 msgid ""
33719 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
33720 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after "
33721 "use>."
33722 msgstr ""
33723
33724 #. type: =head2
33725 #: ../src/guestfs-actions.pod:8352
33726 msgid "guestfs_vgscan"
33727 msgstr ""
33728
33729 #. type: verbatim
33730 #: ../src/guestfs-actions.pod:8354
33731 #, no-wrap
33732 msgid ""
33733 " int\n"
33734 " guestfs_vgscan (guestfs_h *g);\n"
33735 "\n"
33736 msgstr ""
33737
33738 #. type: =head2
33739 #: ../src/guestfs-actions.pod:8364
33740 msgid "guestfs_vguuid"
33741 msgstr ""
33742
33743 #. type: verbatim
33744 #: ../src/guestfs-actions.pod:8366
33745 #, no-wrap
33746 msgid ""
33747 " char *\n"
33748 " guestfs_vguuid (guestfs_h *g,\n"
33749 "                 const char *vgname);\n"
33750 "\n"
33751 msgstr ""
33752
33753 #. type: =head2
33754 #: ../src/guestfs-actions.pod:8377
33755 msgid "guestfs_wait_ready"
33756 msgstr ""
33757
33758 #. type: verbatim
33759 #: ../src/guestfs-actions.pod:8379
33760 #, no-wrap
33761 msgid ""
33762 " int\n"
33763 " guestfs_wait_ready (guestfs_h *g);\n"
33764 "\n"
33765 msgstr ""
33766
33767 #. type: textblock
33768 #: ../src/guestfs-actions.pod:8382
33769 msgid ""
33770 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
33771 "instead."
33772 msgstr ""
33773
33774 #. type: textblock
33775 #: ../src/guestfs-actions.pod:8389
33776 msgid "This function is a no op."
33777 msgstr ""
33778
33779 #. type: textblock
33780 #: ../src/guestfs-actions.pod:8391
33781 msgid ""
33782 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
33783 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
33784 "is no longer necessary because C<guestfs_launch> now does the waiting."
33785 msgstr ""
33786
33787 #. type: textblock
33788 #: ../src/guestfs-actions.pod:8396
33789 msgid ""
33790 "If you see any calls to this function in code then you can just remove them, "
33791 "unless you want to retain compatibility with older versions of the API."
33792 msgstr ""
33793
33794 #. type: =head2
33795 #: ../src/guestfs-actions.pod:8404
33796 msgid "guestfs_wc_c"
33797 msgstr ""
33798
33799 #. type: verbatim
33800 #: ../src/guestfs-actions.pod:8406
33801 #, no-wrap
33802 msgid ""
33803 " int\n"
33804 " guestfs_wc_c (guestfs_h *g,\n"
33805 "               const char *path);\n"
33806 "\n"
33807 msgstr ""
33808
33809 #. type: =head2
33810 #: ../src/guestfs-actions.pod:8417
33811 msgid "guestfs_wc_l"
33812 msgstr ""
33813
33814 #. type: verbatim
33815 #: ../src/guestfs-actions.pod:8419
33816 #, no-wrap
33817 msgid ""
33818 " int\n"
33819 " guestfs_wc_l (guestfs_h *g,\n"
33820 "               const char *path);\n"
33821 "\n"
33822 msgstr ""
33823
33824 #. type: =head2
33825 #: ../src/guestfs-actions.pod:8430
33826 msgid "guestfs_wc_w"
33827 msgstr ""
33828
33829 #. type: verbatim
33830 #: ../src/guestfs-actions.pod:8432
33831 #, no-wrap
33832 msgid ""
33833 " int\n"
33834 " guestfs_wc_w (guestfs_h *g,\n"
33835 "               const char *path);\n"
33836 "\n"
33837 msgstr ""
33838
33839 #. type: =head2
33840 #: ../src/guestfs-actions.pod:8443
33841 msgid "guestfs_write"
33842 msgstr ""
33843
33844 #. type: verbatim
33845 #: ../src/guestfs-actions.pod:8445
33846 #, no-wrap
33847 msgid ""
33848 " int\n"
33849 " guestfs_write (guestfs_h *g,\n"
33850 "                const char *path,\n"
33851 "                const char *content,\n"
33852 "                size_t content_size);\n"
33853 "\n"
33854 msgstr ""
33855
33856 #. type: textblock
33857 #: ../src/guestfs-actions.pod:8454
33858 msgid "See also C<guestfs_write_append>."
33859 msgstr ""
33860
33861 #. type: =head2
33862 #: ../src/guestfs-actions.pod:8463
33863 msgid "guestfs_write_append"
33864 msgstr ""
33865
33866 #. type: verbatim
33867 #: ../src/guestfs-actions.pod:8465
33868 #, no-wrap
33869 msgid ""
33870 " int\n"
33871 " guestfs_write_append (guestfs_h *g,\n"
33872 "                       const char *path,\n"
33873 "                       const char *content,\n"
33874 "                       size_t content_size);\n"
33875 "\n"
33876 msgstr ""
33877
33878 #. type: textblock
33879 #: ../src/guestfs-actions.pod:8474
33880 msgid "See also C<guestfs_write>."
33881 msgstr ""
33882
33883 #. type: =head2
33884 #: ../src/guestfs-actions.pod:8483
33885 msgid "guestfs_write_file"
33886 msgstr ""
33887
33888 #. type: verbatim
33889 #: ../src/guestfs-actions.pod:8485
33890 #, no-wrap
33891 msgid ""
33892 " int\n"
33893 " guestfs_write_file (guestfs_h *g,\n"
33894 "                     const char *path,\n"
33895 "                     const char *content,\n"
33896 "                     int size);\n"
33897 "\n"
33898 msgstr ""
33899
33900 #. type: textblock
33901 #: ../src/guestfs-actions.pod:8491
33902 msgid ""
33903 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
33904 "instead."
33905 msgstr ""
33906
33907 #. type: =head2
33908 #: ../src/guestfs-actions.pod:8516
33909 msgid "guestfs_zegrep"
33910 msgstr ""
33911
33912 #. type: verbatim
33913 #: ../src/guestfs-actions.pod:8518
33914 #, no-wrap
33915 msgid ""
33916 " char **\n"
33917 " guestfs_zegrep (guestfs_h *g,\n"
33918 "                 const char *regex,\n"
33919 "                 const char *path);\n"
33920 "\n"
33921 msgstr ""
33922
33923 #. type: =head2
33924 #: ../src/guestfs-actions.pod:8535
33925 msgid "guestfs_zegrepi"
33926 msgstr ""
33927
33928 #. type: verbatim
33929 #: ../src/guestfs-actions.pod:8537
33930 #, no-wrap
33931 msgid ""
33932 " char **\n"
33933 " guestfs_zegrepi (guestfs_h *g,\n"
33934 "                  const char *regex,\n"
33935 "                  const char *path);\n"
33936 "\n"
33937 msgstr ""
33938
33939 #. type: =head2
33940 #: ../src/guestfs-actions.pod:8554
33941 msgid "guestfs_zero"
33942 msgstr ""
33943
33944 #. type: verbatim
33945 #: ../src/guestfs-actions.pod:8556
33946 #, no-wrap
33947 msgid ""
33948 " int\n"
33949 " guestfs_zero (guestfs_h *g,\n"
33950 "               const char *device);\n"
33951 "\n"
33952 msgstr ""
33953
33954 #. type: textblock
33955 #: ../src/guestfs-actions.pod:8570
33956 msgid ""
33957 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
33958 "C<guestfs_is_zero_device>"
33959 msgstr ""
33960
33961 #. type: =head2
33962 #: ../src/guestfs-actions.pod:8582
33963 msgid "guestfs_zero_device"
33964 msgstr ""
33965
33966 #. type: verbatim
33967 #: ../src/guestfs-actions.pod:8584
33968 #, no-wrap
33969 msgid ""
33970 " int\n"
33971 " guestfs_zero_device (guestfs_h *g,\n"
33972 "                      const char *device);\n"
33973 "\n"
33974 msgstr ""
33975
33976 #. type: textblock
33977 #: ../src/guestfs-actions.pod:8588
33978 msgid ""
33979 "This command writes zeroes over the entire C<device>.  Compare with "
33980 "C<guestfs_zero> which just zeroes the first few blocks of a device."
33981 msgstr ""
33982
33983 #. type: textblock
33984 #: ../src/guestfs-actions.pod:8603
33985 msgid "(Added in 1.3.1)"
33986 msgstr ""
33987
33988 #. type: =head2
33989 #: ../src/guestfs-actions.pod:8605
33990 msgid "guestfs_zerofree"
33991 msgstr ""
33992
33993 #. type: verbatim
33994 #: ../src/guestfs-actions.pod:8607
33995 #, no-wrap
33996 msgid ""
33997 " int\n"
33998 " guestfs_zerofree (guestfs_h *g,\n"
33999 "                   const char *device);\n"
34000 "\n"
34001 msgstr ""
34002
34003 #. type: =head2
34004 #: ../src/guestfs-actions.pod:8626
34005 msgid "guestfs_zfgrep"
34006 msgstr ""
34007
34008 #. type: verbatim
34009 #: ../src/guestfs-actions.pod:8628
34010 #, no-wrap
34011 msgid ""
34012 " char **\n"
34013 " guestfs_zfgrep (guestfs_h *g,\n"
34014 "                 const char *pattern,\n"
34015 "                 const char *path);\n"
34016 "\n"
34017 msgstr ""
34018
34019 #. type: =head2
34020 #: ../src/guestfs-actions.pod:8645
34021 msgid "guestfs_zfgrepi"
34022 msgstr ""
34023
34024 #. type: verbatim
34025 #: ../src/guestfs-actions.pod:8647
34026 #, no-wrap
34027 msgid ""
34028 " char **\n"
34029 " guestfs_zfgrepi (guestfs_h *g,\n"
34030 "                  const char *pattern,\n"
34031 "                  const char *path);\n"
34032 "\n"
34033 msgstr ""
34034
34035 #. type: =head2
34036 #: ../src/guestfs-actions.pod:8664
34037 msgid "guestfs_zfile"
34038 msgstr ""
34039
34040 #. type: verbatim
34041 #: ../src/guestfs-actions.pod:8666
34042 #, no-wrap
34043 msgid ""
34044 " char *\n"
34045 " guestfs_zfile (guestfs_h *g,\n"
34046 "                const char *meth,\n"
34047 "                const char *path);\n"
34048 "\n"
34049 msgstr ""
34050
34051 #. type: textblock
34052 #: ../src/guestfs-actions.pod:8671
34053 msgid ""
34054 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
34055 "instead."
34056 msgstr ""
34057
34058 #. type: textblock
34059 #: ../src/guestfs-actions.pod:8683
34060 msgid ""
34061 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
34062 "files."
34063 msgstr ""
34064
34065 #. type: =head2
34066 #: ../src/guestfs-actions.pod:8691
34067 msgid "guestfs_zgrep"
34068 msgstr ""
34069
34070 #. type: verbatim
34071 #: ../src/guestfs-actions.pod:8693
34072 #, no-wrap
34073 msgid ""
34074 " char **\n"
34075 " guestfs_zgrep (guestfs_h *g,\n"
34076 "                const char *regex,\n"
34077 "                const char *path);\n"
34078 "\n"
34079 msgstr ""
34080
34081 #. type: =head2
34082 #: ../src/guestfs-actions.pod:8710
34083 msgid "guestfs_zgrepi"
34084 msgstr ""
34085
34086 #. type: verbatim
34087 #: ../src/guestfs-actions.pod:8712
34088 #, no-wrap
34089 msgid ""
34090 " char **\n"
34091 " guestfs_zgrepi (guestfs_h *g,\n"
34092 "                 const char *regex,\n"
34093 "                 const char *path);\n"
34094 "\n"
34095 msgstr ""
34096
34097 #. type: =item
34098 #: ../src/guestfs-availability.pod:3
34099 msgid "B<augeas>"
34100 msgstr ""
34101
34102 #. type: textblock
34103 #: ../src/guestfs-availability.pod:5
34104 msgid ""
34105 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> "
34106 "L</guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> "
34107 "L</guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> "
34108 "L</guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> "
34109 "L</guestfs_aug_rm> L</guestfs_aug_save> L</guestfs_aug_set>"
34110 msgstr ""
34111
34112 #. type: =item
34113 #: ../src/guestfs-availability.pod:21
34114 msgid "B<btrfs>"
34115 msgstr ""
34116
34117 #. type: textblock
34118 #: ../src/guestfs-availability.pod:23
34119 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
34120 msgstr ""
34121
34122 #. type: =item
34123 #: ../src/guestfs-availability.pod:26
34124 msgid "B<grub>"
34125 msgstr ""
34126
34127 #. type: textblock
34128 #: ../src/guestfs-availability.pod:28
34129 msgid "The following functions: L</guestfs_grub_install>"
34130 msgstr ""
34131
34132 #. type: =item
34133 #: ../src/guestfs-availability.pod:31
34134 msgid "B<inotify>"
34135 msgstr ""
34136
34137 #. type: textblock
34138 #: ../src/guestfs-availability.pod:33
34139 msgid ""
34140 "The following functions: L</guestfs_inotify_add_watch> "
34141 "L</guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> "
34142 "L</guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
34143 msgstr ""
34144
34145 #. type: =item
34146 #: ../src/guestfs-availability.pod:41
34147 msgid "B<linuxfsuuid>"
34148 msgstr ""
34149
34150 #. type: textblock
34151 #: ../src/guestfs-availability.pod:43
34152 msgid ""
34153 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> "
34154 "L</guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
34155 msgstr ""
34156
34157 #. type: =item
34158 #: ../src/guestfs-availability.pod:50
34159 msgid "B<linuxmodules>"
34160 msgstr ""
34161
34162 #. type: textblock
34163 #: ../src/guestfs-availability.pod:52
34164 msgid "The following functions: L</guestfs_modprobe>"
34165 msgstr ""
34166
34167 #. type: =item
34168 #: ../src/guestfs-availability.pod:55
34169 msgid "B<linuxxattrs>"
34170 msgstr ""
34171
34172 #. type: textblock
34173 #: ../src/guestfs-availability.pod:57
34174 msgid ""
34175 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> "
34176 "L</guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> "
34177 "L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> "
34178 "L</guestfs_setxattr>"
34179 msgstr ""
34180
34181 #. type: =item
34182 #: ../src/guestfs-availability.pod:68
34183 msgid "B<luks>"
34184 msgstr ""
34185
34186 #. type: textblock
34187 #: ../src/guestfs-availability.pod:70
34188 msgid ""
34189 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> "
34190 "L</guestfs_luks_format> L</guestfs_luks_format_cipher> "
34191 "L</guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
34192 msgstr ""
34193
34194 #. type: =item
34195 #: ../src/guestfs-availability.pod:79
34196 msgid "B<lvm2>"
34197 msgstr ""
34198
34199 #. type: textblock
34200 #: ../src/guestfs-availability.pod:81
34201 msgid ""
34202 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> "
34203 "L</guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> "
34204 "L</guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> "
34205 "L</guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> "
34206 "L</guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> "
34207 "L</guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> "
34208 "L</guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> "
34209 "L</guestfs_vgs_full>"
34210 msgstr ""
34211
34212 #. type: =item
34213 #: ../src/guestfs-availability.pod:104
34214 msgid "B<mdadm>"
34215 msgstr ""
34216
34217 #. type: textblock
34218 #: ../src/guestfs-availability.pod:106
34219 msgid ""
34220 "The following functions: L</guestfs_md_create> L</guestfs_md_detail> "
34221 "L</guestfs_md_stop>"
34222 msgstr ""
34223
34224 #. type: =item
34225 #: ../src/guestfs-availability.pod:111
34226 msgid "B<mknod>"
34227 msgstr ""
34228
34229 #. type: textblock
34230 #: ../src/guestfs-availability.pod:113
34231 msgid ""
34232 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> "
34233 "L</guestfs_mknod_b> L</guestfs_mknod_c>"
34234 msgstr ""
34235
34236 #. type: =item
34237 #: ../src/guestfs-availability.pod:119
34238 msgid "B<ntfs3g>"
34239 msgstr ""
34240
34241 #. type: textblock
34242 #: ../src/guestfs-availability.pod:121
34243 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
34244 msgstr ""
34245
34246 #. type: =item
34247 #: ../src/guestfs-availability.pod:124
34248 msgid "B<ntfsprogs>"
34249 msgstr ""
34250
34251 #. type: textblock
34252 #: ../src/guestfs-availability.pod:126
34253 msgid ""
34254 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
34255 "L</guestfs_ntfsresize_size>"
34256 msgstr ""
34257
34258 #. type: =item
34259 #: ../src/guestfs-availability.pod:131
34260 msgid "B<realpath>"
34261 msgstr ""
34262
34263 #. type: textblock
34264 #: ../src/guestfs-availability.pod:133
34265 msgid "The following functions: L</guestfs_realpath>"
34266 msgstr ""
34267
34268 #. type: =item
34269 #: ../src/guestfs-availability.pod:136
34270 msgid "B<scrub>"
34271 msgstr ""
34272
34273 #. type: textblock
34274 #: ../src/guestfs-availability.pod:138
34275 msgid ""
34276 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> "
34277 "L</guestfs_scrub_freespace>"
34278 msgstr ""
34279
34280 #. type: =item
34281 #: ../src/guestfs-availability.pod:143
34282 msgid "B<selinux>"
34283 msgstr ""
34284
34285 #. type: textblock
34286 #: ../src/guestfs-availability.pod:145
34287 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
34288 msgstr ""
34289
34290 #. type: =item
34291 #: ../src/guestfs-availability.pod:149
34292 msgid "B<xz>"
34293 msgstr ""
34294
34295 #. type: textblock
34296 #: ../src/guestfs-availability.pod:151
34297 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
34298 msgstr ""
34299
34300 #. type: =item
34301 #: ../src/guestfs-availability.pod:155
34302 msgid "B<zerofree>"
34303 msgstr ""
34304
34305 #. type: textblock
34306 #: ../src/guestfs-availability.pod:157
34307 msgid "The following functions: L</guestfs_zerofree>"
34308 msgstr ""
34309
34310 #. type: =head2
34311 #: ../src/guestfs-structs.pod:1
34312 msgid "guestfs_int_bool"
34313 msgstr ""
34314
34315 #. type: verbatim
34316 #: ../src/guestfs-structs.pod:3
34317 #, no-wrap
34318 msgid ""
34319 " struct guestfs_int_bool {\n"
34320 "   int32_t i;\n"
34321 "   int32_t b;\n"
34322 " };\n"
34323 " \n"
34324 msgstr ""
34325
34326 #. type: verbatim
34327 #: ../src/guestfs-structs.pod:8
34328 #, no-wrap
34329 msgid ""
34330 " struct guestfs_int_bool_list {\n"
34331 "   uint32_t len; /* Number of elements in list. */\n"
34332 "   struct guestfs_int_bool *val; /* Elements. */\n"
34333 " };\n"
34334 " \n"
34335 msgstr ""
34336
34337 #. type: verbatim
34338 #: ../src/guestfs-structs.pod:13
34339 #, no-wrap
34340 msgid ""
34341 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
34342 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
34343 "\n"
34344 msgstr ""
34345
34346 #. type: =head2
34347 #: ../src/guestfs-structs.pod:16
34348 msgid "guestfs_lvm_pv"
34349 msgstr ""
34350
34351 #. type: verbatim
34352 #: ../src/guestfs-structs.pod:18
34353 #, no-wrap
34354 msgid ""
34355 " struct guestfs_lvm_pv {\n"
34356 "   char *pv_name;\n"
34357 "   /* The next field is NOT nul-terminated, be careful when printing it: "
34358 "*/\n"
34359 "   char pv_uuid[32];\n"
34360 "   char *pv_fmt;\n"
34361 "   uint64_t pv_size;\n"
34362 "   uint64_t dev_size;\n"
34363 "   uint64_t pv_free;\n"
34364 "   uint64_t pv_used;\n"
34365 "   char *pv_attr;\n"
34366 "   int64_t pv_pe_count;\n"
34367 "   int64_t pv_pe_alloc_count;\n"
34368 "   char *pv_tags;\n"
34369 "   uint64_t pe_start;\n"
34370 "   int64_t pv_mda_count;\n"
34371 "   uint64_t pv_mda_free;\n"
34372 " };\n"
34373 " \n"
34374 msgstr ""
34375
34376 #. type: verbatim
34377 #: ../src/guestfs-structs.pod:36
34378 #, no-wrap
34379 msgid ""
34380 " struct guestfs_lvm_pv_list {\n"
34381 "   uint32_t len; /* Number of elements in list. */\n"
34382 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
34383 " };\n"
34384 " \n"
34385 msgstr ""
34386
34387 #. type: verbatim
34388 #: ../src/guestfs-structs.pod:41
34389 #, no-wrap
34390 msgid ""
34391 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
34392 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
34393 "\n"
34394 msgstr ""
34395
34396 #. type: =head2
34397 #: ../src/guestfs-structs.pod:44
34398 msgid "guestfs_lvm_vg"
34399 msgstr ""
34400
34401 #. type: verbatim
34402 #: ../src/guestfs-structs.pod:46
34403 #, no-wrap
34404 msgid ""
34405 " struct guestfs_lvm_vg {\n"
34406 "   char *vg_name;\n"
34407 "   /* The next field is NOT nul-terminated, be careful when printing it: "
34408 "*/\n"
34409 "   char vg_uuid[32];\n"
34410 "   char *vg_fmt;\n"
34411 "   char *vg_attr;\n"
34412 "   uint64_t vg_size;\n"
34413 "   uint64_t vg_free;\n"
34414 "   char *vg_sysid;\n"
34415 "   uint64_t vg_extent_size;\n"
34416 "   int64_t vg_extent_count;\n"
34417 "   int64_t vg_free_count;\n"
34418 "   int64_t max_lv;\n"
34419 "   int64_t max_pv;\n"
34420 "   int64_t pv_count;\n"
34421 "   int64_t lv_count;\n"
34422 "   int64_t snap_count;\n"
34423 "   int64_t vg_seqno;\n"
34424 "   char *vg_tags;\n"
34425 "   int64_t vg_mda_count;\n"
34426 "   uint64_t vg_mda_free;\n"
34427 " };\n"
34428 " \n"
34429 msgstr ""
34430
34431 #. type: verbatim
34432 #: ../src/guestfs-structs.pod:69
34433 #, no-wrap
34434 msgid ""
34435 " struct guestfs_lvm_vg_list {\n"
34436 "   uint32_t len; /* Number of elements in list. */\n"
34437 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
34438 " };\n"
34439 " \n"
34440 msgstr ""
34441
34442 #. type: verbatim
34443 #: ../src/guestfs-structs.pod:74
34444 #, no-wrap
34445 msgid ""
34446 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
34447 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
34448 "\n"
34449 msgstr ""
34450
34451 #. type: =head2
34452 #: ../src/guestfs-structs.pod:77
34453 msgid "guestfs_lvm_lv"
34454 msgstr ""
34455
34456 #. type: verbatim
34457 #: ../src/guestfs-structs.pod:79
34458 #, no-wrap
34459 msgid ""
34460 " struct guestfs_lvm_lv {\n"
34461 "   char *lv_name;\n"
34462 "   /* The next field is NOT nul-terminated, be careful when printing it: "
34463 "*/\n"
34464 "   char lv_uuid[32];\n"
34465 "   char *lv_attr;\n"
34466 "   int64_t lv_major;\n"
34467 "   int64_t lv_minor;\n"
34468 "   int64_t lv_kernel_major;\n"
34469 "   int64_t lv_kernel_minor;\n"
34470 "   uint64_t lv_size;\n"
34471 "   int64_t seg_count;\n"
34472 "   char *origin;\n"
34473 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
34474 "   float snap_percent;\n"
34475 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
34476 "   float copy_percent;\n"
34477 "   char *move_pv;\n"
34478 "   char *lv_tags;\n"
34479 "   char *mirror_log;\n"
34480 "   char *modules;\n"
34481 " };\n"
34482 " \n"
34483 msgstr ""
34484
34485 #. type: verbatim
34486 #: ../src/guestfs-structs.pod:101
34487 #, no-wrap
34488 msgid ""
34489 " struct guestfs_lvm_lv_list {\n"
34490 "   uint32_t len; /* Number of elements in list. */\n"
34491 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
34492 " };\n"
34493 " \n"
34494 msgstr ""
34495
34496 #. type: verbatim
34497 #: ../src/guestfs-structs.pod:106
34498 #, no-wrap
34499 msgid ""
34500 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
34501 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
34502 "\n"
34503 msgstr ""
34504
34505 #. type: verbatim
34506 #: ../src/guestfs-structs.pod:111
34507 #, no-wrap
34508 msgid ""
34509 " struct guestfs_stat {\n"
34510 "   int64_t dev;\n"
34511 "   int64_t ino;\n"
34512 "   int64_t mode;\n"
34513 "   int64_t nlink;\n"
34514 "   int64_t uid;\n"
34515 "   int64_t gid;\n"
34516 "   int64_t rdev;\n"
34517 "   int64_t size;\n"
34518 "   int64_t blksize;\n"
34519 "   int64_t blocks;\n"
34520 "   int64_t atime;\n"
34521 "   int64_t mtime;\n"
34522 "   int64_t ctime;\n"
34523 " };\n"
34524 " \n"
34525 msgstr ""
34526
34527 #. type: verbatim
34528 #: ../src/guestfs-structs.pod:127
34529 #, no-wrap
34530 msgid ""
34531 " struct guestfs_stat_list {\n"
34532 "   uint32_t len; /* Number of elements in list. */\n"
34533 "   struct guestfs_stat *val; /* Elements. */\n"
34534 " };\n"
34535 " \n"
34536 msgstr ""
34537
34538 #. type: verbatim
34539 #: ../src/guestfs-structs.pod:132
34540 #, no-wrap
34541 msgid ""
34542 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
34543 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
34544 "\n"
34545 msgstr ""
34546
34547 #. type: verbatim
34548 #: ../src/guestfs-structs.pod:137
34549 #, no-wrap
34550 msgid ""
34551 " struct guestfs_statvfs {\n"
34552 "   int64_t bsize;\n"
34553 "   int64_t frsize;\n"
34554 "   int64_t blocks;\n"
34555 "   int64_t bfree;\n"
34556 "   int64_t bavail;\n"
34557 "   int64_t files;\n"
34558 "   int64_t ffree;\n"
34559 "   int64_t favail;\n"
34560 "   int64_t fsid;\n"
34561 "   int64_t flag;\n"
34562 "   int64_t namemax;\n"
34563 " };\n"
34564 " \n"
34565 msgstr ""
34566
34567 #. type: verbatim
34568 #: ../src/guestfs-structs.pod:151
34569 #, no-wrap
34570 msgid ""
34571 " struct guestfs_statvfs_list {\n"
34572 "   uint32_t len; /* Number of elements in list. */\n"
34573 "   struct guestfs_statvfs *val; /* Elements. */\n"
34574 " };\n"
34575 " \n"
34576 msgstr ""
34577
34578 #. type: verbatim
34579 #: ../src/guestfs-structs.pod:156
34580 #, no-wrap
34581 msgid ""
34582 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
34583 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
34584 "\n"
34585 msgstr ""
34586
34587 #. type: =head2
34588 #: ../src/guestfs-structs.pod:159
34589 msgid "guestfs_dirent"
34590 msgstr ""
34591
34592 #. type: verbatim
34593 #: ../src/guestfs-structs.pod:161
34594 #, no-wrap
34595 msgid ""
34596 " struct guestfs_dirent {\n"
34597 "   int64_t ino;\n"
34598 "   char ftyp;\n"
34599 "   char *name;\n"
34600 " };\n"
34601 " \n"
34602 msgstr ""
34603
34604 #. type: verbatim
34605 #: ../src/guestfs-structs.pod:167
34606 #, no-wrap
34607 msgid ""
34608 " struct guestfs_dirent_list {\n"
34609 "   uint32_t len; /* Number of elements in list. */\n"
34610 "   struct guestfs_dirent *val; /* Elements. */\n"
34611 " };\n"
34612 " \n"
34613 msgstr ""
34614
34615 #. type: verbatim
34616 #: ../src/guestfs-structs.pod:172
34617 #, no-wrap
34618 msgid ""
34619 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
34620 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
34621 "\n"
34622 msgstr ""
34623
34624 #. type: verbatim
34625 #: ../src/guestfs-structs.pod:177
34626 #, no-wrap
34627 msgid ""
34628 " struct guestfs_version {\n"
34629 "   int64_t major;\n"
34630 "   int64_t minor;\n"
34631 "   int64_t release;\n"
34632 "   char *extra;\n"
34633 " };\n"
34634 " \n"
34635 msgstr ""
34636
34637 #. type: verbatim
34638 #: ../src/guestfs-structs.pod:184
34639 #, no-wrap
34640 msgid ""
34641 " struct guestfs_version_list {\n"
34642 "   uint32_t len; /* Number of elements in list. */\n"
34643 "   struct guestfs_version *val; /* Elements. */\n"
34644 " };\n"
34645 " \n"
34646 msgstr ""
34647
34648 #. type: verbatim
34649 #: ../src/guestfs-structs.pod:189
34650 #, no-wrap
34651 msgid ""
34652 " void guestfs_free_version (struct guestfs_free_version *);\n"
34653 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
34654 "\n"
34655 msgstr ""
34656
34657 #. type: =head2
34658 #: ../src/guestfs-structs.pod:192
34659 msgid "guestfs_xattr"
34660 msgstr ""
34661
34662 #. type: verbatim
34663 #: ../src/guestfs-structs.pod:194
34664 #, no-wrap
34665 msgid ""
34666 " struct guestfs_xattr {\n"
34667 "   char *attrname;\n"
34668 "   /* The next two fields describe a byte array. */\n"
34669 "   uint32_t attrval_len;\n"
34670 "   char *attrval;\n"
34671 " };\n"
34672 " \n"
34673 msgstr ""
34674
34675 #. type: verbatim
34676 #: ../src/guestfs-structs.pod:201
34677 #, no-wrap
34678 msgid ""
34679 " struct guestfs_xattr_list {\n"
34680 "   uint32_t len; /* Number of elements in list. */\n"
34681 "   struct guestfs_xattr *val; /* Elements. */\n"
34682 " };\n"
34683 " \n"
34684 msgstr ""
34685
34686 #. type: verbatim
34687 #: ../src/guestfs-structs.pod:206
34688 #, no-wrap
34689 msgid ""
34690 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
34691 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
34692 "\n"
34693 msgstr ""
34694
34695 #. type: =head2
34696 #: ../src/guestfs-structs.pod:209
34697 msgid "guestfs_inotify_event"
34698 msgstr ""
34699
34700 #. type: verbatim
34701 #: ../src/guestfs-structs.pod:211
34702 #, no-wrap
34703 msgid ""
34704 " struct guestfs_inotify_event {\n"
34705 "   int64_t in_wd;\n"
34706 "   uint32_t in_mask;\n"
34707 "   uint32_t in_cookie;\n"
34708 "   char *in_name;\n"
34709 " };\n"
34710 " \n"
34711 msgstr ""
34712
34713 #. type: verbatim
34714 #: ../src/guestfs-structs.pod:218
34715 #, no-wrap
34716 msgid ""
34717 " struct guestfs_inotify_event_list {\n"
34718 "   uint32_t len; /* Number of elements in list. */\n"
34719 "   struct guestfs_inotify_event *val; /* Elements. */\n"
34720 " };\n"
34721 " \n"
34722 msgstr ""
34723
34724 #. type: verbatim
34725 #: ../src/guestfs-structs.pod:223
34726 #, no-wrap
34727 msgid ""
34728 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
34729 " void guestfs_free_inotify_event_list (struct "
34730 "guestfs_free_inotify_event_list *);\n"
34731 "\n"
34732 msgstr ""
34733
34734 #. type: =head2
34735 #: ../src/guestfs-structs.pod:226
34736 msgid "guestfs_partition"
34737 msgstr ""
34738
34739 #. type: verbatim
34740 #: ../src/guestfs-structs.pod:228
34741 #, no-wrap
34742 msgid ""
34743 " struct guestfs_partition {\n"
34744 "   int32_t part_num;\n"
34745 "   uint64_t part_start;\n"
34746 "   uint64_t part_end;\n"
34747 "   uint64_t part_size;\n"
34748 " };\n"
34749 " \n"
34750 msgstr ""
34751
34752 #. type: verbatim
34753 #: ../src/guestfs-structs.pod:235
34754 #, no-wrap
34755 msgid ""
34756 " struct guestfs_partition_list {\n"
34757 "   uint32_t len; /* Number of elements in list. */\n"
34758 "   struct guestfs_partition *val; /* Elements. */\n"
34759 " };\n"
34760 " \n"
34761 msgstr ""
34762
34763 #. type: verbatim
34764 #: ../src/guestfs-structs.pod:240
34765 #, no-wrap
34766 msgid ""
34767 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
34768 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
34769 "\n"
34770 msgstr ""
34771
34772 #. type: =head2
34773 #: ../src/guestfs-structs.pod:243
34774 msgid "guestfs_application"
34775 msgstr ""
34776
34777 #. type: verbatim
34778 #: ../src/guestfs-structs.pod:245
34779 #, no-wrap
34780 msgid ""
34781 " struct guestfs_application {\n"
34782 "   char *app_name;\n"
34783 "   char *app_display_name;\n"
34784 "   int32_t app_epoch;\n"
34785 "   char *app_version;\n"
34786 "   char *app_release;\n"
34787 "   char *app_install_path;\n"
34788 "   char *app_trans_path;\n"
34789 "   char *app_publisher;\n"
34790 "   char *app_url;\n"
34791 "   char *app_source_package;\n"
34792 "   char *app_summary;\n"
34793 "   char *app_description;\n"
34794 " };\n"
34795 " \n"
34796 msgstr ""
34797
34798 #. type: verbatim
34799 #: ../src/guestfs-structs.pod:260
34800 #, no-wrap
34801 msgid ""
34802 " struct guestfs_application_list {\n"
34803 "   uint32_t len; /* Number of elements in list. */\n"
34804 "   struct guestfs_application *val; /* Elements. */\n"
34805 " };\n"
34806 " \n"
34807 msgstr ""
34808
34809 #. type: verbatim
34810 #: ../src/guestfs-structs.pod:265
34811 #, no-wrap
34812 msgid ""
34813 " void guestfs_free_application (struct guestfs_free_application *);\n"
34814 " void guestfs_free_application_list (struct guestfs_free_application_list "
34815 "*);\n"
34816 "\n"
34817 msgstr ""
34818
34819 #. type: textblock
34820 #: ../src/guestfs.pod:5
34821 msgid "guestfs - Library for accessing and modifying virtual machine images"
34822 msgstr ""
34823
34824 #. type: verbatim
34825 #: ../src/guestfs.pod:11
34826 #, no-wrap
34827 msgid ""
34828 " guestfs_h *g = guestfs_create ();\n"
34829 " guestfs_add_drive (g, \"guest.img\");\n"
34830 " guestfs_launch (g);\n"
34831 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34832 " guestfs_touch (g, \"/hello\");\n"
34833 " guestfs_umount (g, \"/\");\n"
34834 " guestfs_close (g);\n"
34835 "\n"
34836 msgstr ""
34837
34838 #. type: textblock
34839 #: ../src/guestfs.pod:25
34840 msgid ""
34841 "Libguestfs is a library for accessing and modifying guest disk images.  "
34842 "Amongst the things this is good for: making batch configuration changes to "
34843 "guests, getting disk used/free statistics (see also: virt-df), migrating "
34844 "between virtualization systems (see also: virt-p2v), performing partial "
34845 "backups, performing partial guest clones, cloning guests and changing "
34846 "registry/UUID/hostname info, and much else besides."
34847 msgstr ""
34848
34849 #. type: textblock
34850 #: ../src/guestfs.pod:33
34851 msgid ""
34852 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
34853 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
34854 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
34855 "qcow2, vmdk."
34856 msgstr ""
34857
34858 #. type: textblock
34859 #: ../src/guestfs.pod:38
34860 msgid ""
34861 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
34862 "what filesystem is in each LV, etc.).  It can also run commands in the "
34863 "context of the guest.  Also you can access filesystems over FUSE."
34864 msgstr ""
34865
34866 #. type: textblock
34867 #: ../src/guestfs.pod:43
34868 msgid ""
34869 "Libguestfs is a library that can be linked with C and C++ management "
34870 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
34871 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
34872 "command line."
34873 msgstr ""
34874
34875 #. type: textblock
34876 #: ../src/guestfs.pod:48
34877 msgid ""
34878 "You don't need to be root to use libguestfs, although obviously you do need "
34879 "enough permissions to access the disk images."
34880 msgstr ""
34881
34882 #. type: textblock
34883 #: ../src/guestfs.pod:51
34884 msgid ""
34885 "Libguestfs is a large API because it can do many things.  For a gentle "
34886 "introduction, please read the L</API OVERVIEW> section next."
34887 msgstr ""
34888
34889 #. type: textblock
34890 #: ../src/guestfs.pod:54
34891 msgid ""
34892 "There are also some example programs in the L<guestfs-examples(3)> manual "
34893 "page."
34894 msgstr ""
34895
34896 #. type: =head1
34897 #: ../src/guestfs.pod:57
34898 msgid "API OVERVIEW"
34899 msgstr ""
34900
34901 #. type: textblock
34902 #: ../src/guestfs.pod:59
34903 msgid ""
34904 "This section provides a gentler overview of the libguestfs API.  We also try "
34905 "to group API calls together, where that may not be obvious from reading "
34906 "about the individual calls in the main section of this manual."
34907 msgstr ""
34908
34909 #. type: =head2
34910 #: ../src/guestfs.pod:64
34911 msgid "HANDLES"
34912 msgstr ""
34913
34914 #. type: textblock
34915 #: ../src/guestfs.pod:66
34916 msgid ""
34917 "Before you can use libguestfs calls, you have to create a handle.  Then you "
34918 "must add at least one disk image to the handle, followed by launching the "
34919 "handle, then performing whatever operations you want, and finally closing "
34920 "the handle.  By convention we use the single letter C<g> for the name of the "
34921 "handle variable, although of course you can use any name you want."
34922 msgstr ""
34923
34924 #. type: textblock
34925 #: ../src/guestfs.pod:73
34926 msgid "The general structure of all libguestfs-using programs looks like this:"
34927 msgstr ""
34928
34929 #. type: verbatim
34930 #: ../src/guestfs.pod:76
34931 #, no-wrap
34932 msgid ""
34933 " guestfs_h *g = guestfs_create ();\n"
34934 " \n"
34935 msgstr ""
34936
34937 #. type: verbatim
34938 #: ../src/guestfs.pod:78
34939 #, no-wrap
34940 msgid ""
34941 " /* Call guestfs_add_drive additional times if there are\n"
34942 "  * multiple disk images.\n"
34943 "  */\n"
34944 " guestfs_add_drive (g, \"guest.img\");\n"
34945 " \n"
34946 msgstr ""
34947
34948 #. type: verbatim
34949 #: ../src/guestfs.pod:83
34950 #, no-wrap
34951 msgid ""
34952 " /* Most manipulation calls won't work until you've launched\n"
34953 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
34954 "  * and _before_ other commands.\n"
34955 "  */\n"
34956 " guestfs_launch (g);\n"
34957 " \n"
34958 msgstr ""
34959
34960 #. type: verbatim
34961 #: ../src/guestfs.pod:89
34962 #, no-wrap
34963 msgid ""
34964 " /* Now you can examine what partitions, LVs etc are available.\n"
34965 "  */\n"
34966 " char **partitions = guestfs_list_partitions (g);\n"
34967 " char **logvols = guestfs_lvs (g);\n"
34968 " \n"
34969 msgstr ""
34970
34971 #. type: verbatim
34972 #: ../src/guestfs.pod:94
34973 #, no-wrap
34974 msgid ""
34975 " /* To access a filesystem in the image, you must mount it.\n"
34976 "  */\n"
34977 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34978 " \n"
34979 msgstr ""
34980
34981 #. type: verbatim
34982 #: ../src/guestfs.pod:98
34983 #, no-wrap
34984 msgid ""
34985 " /* Now you can perform filesystem actions on the guest\n"
34986 "  * disk image.\n"
34987 "  */\n"
34988 " guestfs_touch (g, \"/hello\");\n"
34989 " \n"
34990 msgstr ""
34991
34992 #. type: verbatim
34993 #: ../src/guestfs.pod:103
34994 #, no-wrap
34995 msgid ""
34996 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
34997 "  * it is done automatically when you close the handle.  See\n"
34998 "  * discussion of autosync in this page.\n"
34999 "  */\n"
35000 " guestfs_sync (g);\n"
35001 " \n"
35002 msgstr ""
35003
35004 #. type: verbatim
35005 #: ../src/guestfs.pod:109
35006 #, no-wrap
35007 msgid ""
35008 " /* Close the handle 'g'. */\n"
35009 " guestfs_close (g);\n"
35010 "\n"
35011 msgstr ""
35012
35013 #. type: textblock
35014 #: ../src/guestfs.pod:112
35015 msgid ""
35016 "The code above doesn't include any error checking.  In real code you should "
35017 "check return values carefully for errors.  In general all functions that "
35018 "return integers return C<-1> on error, and all functions that return "
35019 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
35020 "how to handle errors, and consult the documentation for each function call "
35021 "below to see precisely how they return error indications.  See "
35022 "L<guestfs-examples(3)> for fully worked examples."
35023 msgstr ""
35024
35025 #. type: =head2
35026 #: ../src/guestfs.pod:121
35027 msgid "DISK IMAGES"
35028 msgstr ""
35029
35030 #. type: textblock
35031 #: ../src/guestfs.pod:123
35032 msgid ""
35033 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
35034 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
35035 "actual block device, or simply an empty file of zeroes that you have created "
35036 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
35037 "of these."
35038 msgstr ""
35039
35040 #. type: textblock
35041 #: ../src/guestfs.pod:129
35042 msgid ""
35043 "The call you should use in modern code for adding drives is "
35044 "L</guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
35045 "specifying that the format is raw, do:"
35046 msgstr ""
35047
35048 #. type: verbatim
35049 #: ../src/guestfs.pod:133
35050 #, no-wrap
35051 msgid ""
35052 " guestfs_add_drive_opts (g, filename,\n"
35053 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35054 "                         -1);\n"
35055 "\n"
35056 msgstr ""
35057
35058 #. type: textblock
35059 #: ../src/guestfs.pod:137
35060 msgid "You can add a disk read-only using:"
35061 msgstr ""
35062
35063 #. type: verbatim
35064 #: ../src/guestfs.pod:139
35065 #, no-wrap
35066 msgid ""
35067 " guestfs_add_drive_opts (g, filename,\n"
35068 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35069 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35070 "                         -1);\n"
35071 "\n"
35072 msgstr ""
35073
35074 #. type: textblock
35075 #: ../src/guestfs.pod:144
35076 msgid ""
35077 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
35078 "libguestfs won't modify the file."
35079 msgstr ""
35080
35081 #. type: textblock
35082 #: ../src/guestfs.pod:147
35083 msgid ""
35084 "Be extremely cautious if the disk image is in use, eg. if it is being used "
35085 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
35086 "corruption, but adding it read-only is safe."
35087 msgstr ""
35088
35089 #. type: textblock
35090 #: ../src/guestfs.pod:151
35091 msgid ""
35092 "You must add at least one disk image, and you may add multiple disk images.  "
35093 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
35094 "first one you added), C</dev/sdb> (for the second one you added), etc."
35095 msgstr ""
35096
35097 #. type: textblock
35098 #: ../src/guestfs.pod:156
35099 msgid ""
35100 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
35101 "can call L</guestfs_list_devices> to get a list of the device names, in the "
35102 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
35103 msgstr ""
35104
35105 #. type: =head2
35106 #: ../src/guestfs.pod:161
35107 msgid "MOUNTING"
35108 msgstr ""
35109
35110 #. type: textblock
35111 #: ../src/guestfs.pod:163
35112 msgid ""
35113 "Before you can read or write files, create directories and so on in a disk "
35114 "image that contains filesystems, you have to mount those filesystems using "
35115 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
35116 "a disk image contains (for example) one partition with a filesystem on that "
35117 "partition, then you can mount it directly:"
35118 msgstr ""
35119
35120 #. type: verbatim
35121 #: ../src/guestfs.pod:170
35122 #, no-wrap
35123 msgid ""
35124 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
35125 "\n"
35126 msgstr ""
35127
35128 #. type: textblock
35129 #: ../src/guestfs.pod:172
35130 msgid ""
35131 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
35132 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
35133 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
35134 "that these are libguestfs virtual devices, and are nothing to do with host "
35135 "devices."
35136 msgstr ""
35137
35138 #. type: textblock
35139 #: ../src/guestfs.pod:178
35140 msgid ""
35141 "If you are given a disk image and you don't know what it contains then you "
35142 "have to find out.  Libguestfs can do that too: use "
35143 "L</guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions "
35144 "and LVs, and either try mounting each to see what is mountable, or else "
35145 "examine them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
35146 "filesystems, use L</guestfs_list_filesystems>."
35147 msgstr ""
35148
35149 #. type: textblock
35150 #: ../src/guestfs.pod:186
35151 msgid ""
35152 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
35153 "L</INSPECTION> below).  But you might find it easier to look at higher level "
35154 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
35155 msgstr ""
35156
35157 #. type: textblock
35158 #: ../src/guestfs.pod:191
35159 msgid ""
35160 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
35161 "several other variations of the C<guestfs_mount_*> call."
35162 msgstr ""
35163
35164 #. type: =head2
35165 #: ../src/guestfs.pod:194
35166 msgid "FILESYSTEM ACCESS AND MODIFICATION"
35167 msgstr ""
35168
35169 #. type: textblock
35170 #: ../src/guestfs.pod:196
35171 msgid ""
35172 "The majority of the libguestfs API consists of fairly low-level calls for "
35173 "accessing and modifying the files, directories, symlinks etc on mounted "
35174 "filesystems.  There are over a hundred such calls which you can find listed "
35175 "in detail below in this man page, and we don't even pretend to cover them "
35176 "all in this overview."
35177 msgstr ""
35178
35179 #. type: textblock
35180 #: ../src/guestfs.pod:202
35181 msgid ""
35182 "Specify filenames as full paths, starting with C<\"/\"> and including the "
35183 "mount point."
35184 msgstr ""
35185
35186 #. type: textblock
35187 #: ../src/guestfs.pod:205
35188 msgid ""
35189 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
35190 "the file called C<\"etc/passwd\"> then you could do:"
35191 msgstr ""
35192
35193 #. type: verbatim
35194 #: ../src/guestfs.pod:208
35195 #, no-wrap
35196 msgid ""
35197 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
35198 "\n"
35199 msgstr ""
35200
35201 #. type: textblock
35202 #: ../src/guestfs.pod:210
35203 msgid ""
35204 "This would return C<data> as a newly allocated buffer containing the full "
35205 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
35206 "or C<NULL> if there was an error."
35207 msgstr ""
35208
35209 #. type: textblock
35210 #: ../src/guestfs.pod:214
35211 msgid ""
35212 "As another example, to create a top-level directory on that filesystem "
35213 "called C<\"var\"> you would do:"
35214 msgstr ""
35215
35216 #. type: verbatim
35217 #: ../src/guestfs.pod:217
35218 #, no-wrap
35219 msgid ""
35220 " guestfs_mkdir (g, \"/var\");\n"
35221 "\n"
35222 msgstr ""
35223
35224 #. type: textblock
35225 #: ../src/guestfs.pod:219
35226 msgid "To create a symlink you could do:"
35227 msgstr ""
35228
35229 #. type: verbatim
35230 #: ../src/guestfs.pod:221
35231 #, no-wrap
35232 msgid ""
35233 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
35234 "               \"/etc/rc3.d/S30portmap\");\n"
35235 "\n"
35236 msgstr ""
35237
35238 #. type: textblock
35239 #: ../src/guestfs.pod:224
35240 msgid ""
35241 "Libguestfs will reject attempts to use relative paths and there is no "
35242 "concept of a current working directory."
35243 msgstr ""
35244
35245 #. type: textblock
35246 #: ../src/guestfs.pod:227
35247 msgid ""
35248 "Libguestfs can return errors in many situations: for example if the "
35249 "filesystem isn't writable, or if a file or directory that you requested "
35250 "doesn't exist.  If you are using the C API (documented here)  you have to "
35251 "check for those error conditions after each call.  (Other language bindings "
35252 "turn these errors into exceptions)."
35253 msgstr ""
35254
35255 #. type: textblock
35256 #: ../src/guestfs.pod:233
35257 msgid ""
35258 "File writes are affected by the per-handle umask, set by calling "
35259 "L</guestfs_umask> and defaulting to 022.  See L</UMASK>."
35260 msgstr ""
35261
35262 #. type: =head2
35263 #: ../src/guestfs.pod:236
35264 msgid "PARTITIONING"
35265 msgstr ""
35266
35267 #. type: textblock
35268 #: ../src/guestfs.pod:238
35269 msgid ""
35270 "Libguestfs contains API calls to read, create and modify partition tables on "
35271 "disk images."
35272 msgstr ""
35273
35274 #. type: textblock
35275 #: ../src/guestfs.pod:241
35276 msgid ""
35277 "In the common case where you want to create a single partition covering the "
35278 "whole disk, you should use the L</guestfs_part_disk> call:"
35279 msgstr ""
35280
35281 #. type: verbatim
35282 #: ../src/guestfs.pod:245
35283 #, no-wrap
35284 msgid ""
35285 " const char *parttype = \"mbr\";\n"
35286 " if (disk_is_larger_than_2TB)\n"
35287 "   parttype = \"gpt\";\n"
35288 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
35289 "\n"
35290 msgstr ""
35291
35292 #. type: textblock
35293 #: ../src/guestfs.pod:250
35294 msgid ""
35295 "Obviously this effectively wipes anything that was on that disk image "
35296 "before."
35297 msgstr ""
35298
35299 #. type: =head2
35300 #: ../src/guestfs.pod:253
35301 msgid "LVM2"
35302 msgstr ""
35303
35304 #. type: textblock
35305 #: ../src/guestfs.pod:255
35306 msgid ""
35307 "Libguestfs provides access to a large part of the LVM2 API, such as "
35308 "L</guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense "
35309 "unless you familiarize yourself with the concepts of physical volumes, "
35310 "volume groups and logical volumes."
35311 msgstr ""
35312
35313 #. type: textblock
35314 #: ../src/guestfs.pod:260
35315 msgid ""
35316 "This author strongly recommends reading the LVM HOWTO, online at "
35317 "L<http://tldp.org/HOWTO/LVM-HOWTO/>."
35318 msgstr ""
35319
35320 #. type: =head2
35321 #: ../src/guestfs.pod:263
35322 msgid "DOWNLOADING"
35323 msgstr ""
35324
35325 #. type: textblock
35326 #: ../src/guestfs.pod:265
35327 msgid ""
35328 "Use L</guestfs_cat> to download small, text only files.  This call is "
35329 "limited to files which are less than 2 MB and which cannot contain any ASCII "
35330 "NUL (C<\\0>) characters.  However the API is very simple to use."
35331 msgstr ""
35332
35333 #. type: textblock
35334 #: ../src/guestfs.pod:269
35335 msgid ""
35336 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
35337 "bit data, since it returns a (pointer, size) pair.  However it is still "
35338 "limited to \"small\" files, less than 2 MB."
35339 msgstr ""
35340
35341 #. type: textblock
35342 #: ../src/guestfs.pod:273
35343 msgid ""
35344 "L</guestfs_download> can be used to download any file, with no limits on "
35345 "content or size (even files larger than 4 GB)."
35346 msgstr ""
35347
35348 #. type: textblock
35349 #: ../src/guestfs.pod:276
35350 msgid "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
35351 msgstr ""
35352
35353 #. type: =head2
35354 #: ../src/guestfs.pod:279
35355 msgid "UPLOADING"
35356 msgstr ""
35357
35358 #. type: textblock
35359 #: ../src/guestfs.pod:281
35360 msgid ""
35361 "It's often the case that you want to write a file or files to the disk "
35362 "image."
35363 msgstr ""
35364
35365 #. type: textblock
35366 #: ../src/guestfs.pod:284
35367 msgid ""
35368 "To write a small file with fixed content, use L</guestfs_write>.  To create "
35369 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or "
35370 "L</guestfs_fallocate64> (with all disk blocks allocated).  There are a "
35371 "variety of other functions for creating test files, for example "
35372 "L</guestfs_fill> and L</guestfs_fill_pattern>."
35373 msgstr ""
35374
35375 #. type: textblock
35376 #: ../src/guestfs.pod:290
35377 msgid ""
35378 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
35379 "file content or size (even files larger than 4 GB)."
35380 msgstr ""
35381
35382 #. type: textblock
35383 #: ../src/guestfs.pod:293
35384 msgid "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
35385 msgstr ""
35386
35387 #. type: textblock
35388 #: ../src/guestfs.pod:295
35389 msgid ""
35390 "However the fastest way to upload I<large numbers of arbitrary files> is to "
35391 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and "
35392 "L<mkisofs(8)>), then attach this using L</guestfs_add_drive_ro>.  If you add "
35393 "the drive in a predictable way (eg. adding it last after all other drives) "
35394 "then you can get the device name from L</guestfs_list_devices> and mount it "
35395 "directly using L</guestfs_mount_ro>.  Note that squashfs images are "
35396 "sometimes non-portable between kernel versions, and they don't support "
35397 "labels or UUIDs.  If you want to pre-build an image or you need to mount it "
35398 "using a label or UUID, use an ISO image instead."
35399 msgstr ""
35400
35401 #. type: =head2
35402 #: ../src/guestfs.pod:306
35403 msgid "COPYING"
35404 msgstr ""
35405
35406 #. type: textblock
35407 #: ../src/guestfs.pod:308
35408 msgid ""
35409 "There are various different commands for copying between files and devices "
35410 "and in and out of the guest filesystem.  These are summarised in the table "
35411 "below."
35412 msgstr ""
35413
35414 #. type: =item
35415 #: ../src/guestfs.pod:314
35416 msgid "B<file> to B<file>"
35417 msgstr ""
35418
35419 #. type: textblock
35420 #: ../src/guestfs.pod:316
35421 msgid ""
35422 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
35423 "directories recursively."
35424 msgstr ""
35425
35426 #. type: textblock
35427 #: ../src/guestfs.pod:319
35428 msgid "To copy part of a file (offset and size) use L</guestfs_copy_file_to_file>."
35429 msgstr ""
35430
35431 #. type: =item
35432 #: ../src/guestfs.pod:322
35433 msgid "B<file> to B<device>"
35434 msgstr ""
35435
35436 #. type: =item
35437 #: ../src/guestfs.pod:324
35438 msgid "B<device> to B<file>"
35439 msgstr ""
35440
35441 #. type: =item
35442 #: ../src/guestfs.pod:326
35443 msgid "B<device> to B<device>"
35444 msgstr ""
35445
35446 #. type: textblock
35447 #: ../src/guestfs.pod:328
35448 msgid ""
35449 "Use L</guestfs_copy_file_to_device>, L</guestfs_copy_device_to_file>, or "
35450 "L</guestfs_copy_device_to_device>."
35451 msgstr ""
35452
35453 #. type: textblock
35454 #: ../src/guestfs.pod:331
35455 msgid "Example: duplicate the contents of an LV:"
35456 msgstr ""
35457
35458 #. type: verbatim
35459 #: ../src/guestfs.pod:333
35460 #, no-wrap
35461 msgid ""
35462 " guestfs_copy_device_to_device (g,\n"
35463 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
35464 "         /* -1 marks the end of the list of optional parameters */\n"
35465 "         -1);\n"
35466 "\n"
35467 msgstr ""
35468
35469 #. type: textblock
35470 #: ../src/guestfs.pod:338
35471 msgid ""
35472 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
35473 "(C</dev/VG/Original>).  To copy less than the whole source device, use the "
35474 "optional C<size> parameter:"
35475 msgstr ""
35476
35477 #. type: verbatim
35478 #: ../src/guestfs.pod:342
35479 #, no-wrap
35480 msgid ""
35481 " guestfs_copy_device_to_device (g,\n"
35482 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
35483 "         GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, 10000,\n"
35484 "         -1);\n"
35485 "\n"
35486 msgstr ""
35487
35488 #. type: =item
35489 #: ../src/guestfs.pod:347
35490 msgid "B<file on the host> to B<file or device>"
35491 msgstr ""
35492
35493 #. type: textblock
35494 #: ../src/guestfs.pod:349
35495 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
35496 msgstr ""
35497
35498 #. type: =item
35499 #: ../src/guestfs.pod:351
35500 msgid "B<file or device> to B<file on the host>"
35501 msgstr ""
35502
35503 #. type: textblock
35504 #: ../src/guestfs.pod:353
35505 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
35506 msgstr ""
35507
35508 #. type: =head2
35509 #: ../src/guestfs.pod:357
35510 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
35511 msgstr ""
35512
35513 #. type: textblock
35514 #: ../src/guestfs.pod:359
35515 msgid ""
35516 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, "
35517 "L</guestfs_tar_out> etc appear to only take filenames as arguments, so it "
35518 "appears you can only upload and download to files.  However many Un*x-like "
35519 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, "
35520 "C</dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, "
35521 "stderr, and arbitrary file descriptor N."
35522 msgstr ""
35523
35524 #. type: textblock
35525 #: ../src/guestfs.pod:367
35526 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
35527 msgstr ""
35528
35529 #. type: verbatim
35530 #: ../src/guestfs.pod:370
35531 #, no-wrap
35532 msgid ""
35533 " guestfs_download (g, filename, \"/dev/stdout\");\n"
35534 "\n"
35535 msgstr ""
35536
35537 #. type: textblock
35538 #: ../src/guestfs.pod:372
35539 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
35540 msgstr ""
35541
35542 #. type: verbatim
35543 #: ../src/guestfs.pod:374
35544 #, no-wrap
35545 msgid ""
35546 " char devfd[64];\n"
35547 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
35548 " guestfs_tar_out (g, \"/\", devfd);\n"
35549 "\n"
35550 msgstr ""
35551
35552 #. type: =head2
35553 #: ../src/guestfs.pod:378
35554 msgid "LISTING FILES"
35555 msgstr ""
35556
35557 #. type: textblock
35558 #: ../src/guestfs.pod:380
35559 msgid ""
35560 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
35561 "L<guestfish(1)>-equivalent command C<ll>)."
35562 msgstr ""
35563
35564 #. type: textblock
35565 #: ../src/guestfs.pod:383
35566 msgid ""
35567 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
35568 "programs, as a flat list of strings."
35569 msgstr ""
35570
35571 #. type: textblock
35572 #: ../src/guestfs.pod:386
35573 msgid ""
35574 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
35575 "directory, plus additional information about each one.  It is more "
35576 "equivalent to using the L<readdir(3)> call on a local filesystem."
35577 msgstr ""
35578
35579 #. type: textblock
35580 #: ../src/guestfs.pod:390
35581 msgid ""
35582 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list "
35583 "files."
35584 msgstr ""
35585
35586 #. type: =head2
35587 #: ../src/guestfs.pod:393
35588 msgid "RUNNING COMMANDS"
35589 msgstr ""
35590
35591 #. type: textblock
35592 #: ../src/guestfs.pod:395
35593 msgid ""
35594 "Although libguestfs is primarily an API for manipulating files inside guest "
35595 "images, we also provide some limited facilities for running commands inside "
35596 "guests."
35597 msgstr ""
35598
35599 #. type: textblock
35600 #: ../src/guestfs.pod:399
35601 msgid "There are many limitations to this:"
35602 msgstr ""
35603
35604 #. type: textblock
35605 #: ../src/guestfs.pod:405
35606 msgid ""
35607 "The kernel version that the command runs under will be different from what "
35608 "it expects."
35609 msgstr ""
35610
35611 #. type: textblock
35612 #: ../src/guestfs.pod:410
35613 msgid ""
35614 "If the command needs to communicate with daemons, then most likely they "
35615 "won't be running."
35616 msgstr ""
35617
35618 #. type: textblock
35619 #: ../src/guestfs.pod:415
35620 msgid "The command will be running in limited memory."
35621 msgstr ""
35622
35623 #. type: textblock
35624 #: ../src/guestfs.pod:419
35625 msgid ""
35626 "The network may not be available unless you enable it (see "
35627 "L</guestfs_set_network>)."
35628 msgstr ""
35629
35630 #. type: textblock
35631 #: ../src/guestfs.pod:424
35632 msgid "Only supports Linux guests (not Windows, BSD, etc)."
35633 msgstr ""
35634
35635 #. type: textblock
35636 #: ../src/guestfs.pod:428
35637 msgid "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
35638 msgstr ""
35639
35640 #. type: textblock
35641 #: ../src/guestfs.pod:433
35642 msgid ""
35643 "For SELinux guests, you may need to enable SELinux and load policy first.  "
35644 "See L</SELINUX> in this manpage."
35645 msgstr ""
35646
35647 #. type: textblock
35648 #: ../src/guestfs.pod:438
35649 msgid ""
35650 "I<Security:> It is not safe to run commands from untrusted, possibly "
35651 "malicious guests.  These commands may attempt to exploit your program by "
35652 "sending unexpected output.  They could also try to exploit the Linux kernel "
35653 "or qemu provided by the libguestfs appliance.  They could use the network "
35654 "provided by the libguestfs appliance to bypass ordinary network partitions "
35655 "and firewalls.  They could use the elevated privileges or different SELinux "
35656 "context of your program to their advantage."
35657 msgstr ""
35658
35659 #. type: textblock
35660 #: ../src/guestfs.pod:447
35661 msgid ""
35662 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
35663 "(a script which runs when the guest next boots normally), and to have this "
35664 "script run the commands you want in the normal context of the running guest, "
35665 "network security and so on.  For information about other security issues, "
35666 "see L</SECURITY>."
35667 msgstr ""
35668
35669 #. type: textblock
35670 #: ../src/guestfs.pod:455
35671 msgid ""
35672 "The two main API calls to run commands are L</guestfs_command> and "
35673 "L</guestfs_sh> (there are also variations)."
35674 msgstr ""
35675
35676 #. type: textblock
35677 #: ../src/guestfs.pod:458
35678 msgid ""
35679 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
35680 "shell globs, redirections, etc will work."
35681 msgstr ""
35682
35683 #. type: =head2
35684 #: ../src/guestfs.pod:461
35685 msgid "CONFIGURATION FILES"
35686 msgstr ""
35687
35688 #. type: textblock
35689 #: ../src/guestfs.pod:463
35690 msgid ""
35691 "To read and write configuration files in Linux guest filesystems, we "
35692 "strongly recommend using Augeas.  For example, Augeas understands how to "
35693 "read and write, say, a Linux shadow password file or X.org configuration "
35694 "file, and so avoids you having to write that code."
35695 msgstr ""
35696
35697 #. type: textblock
35698 #: ../src/guestfs.pod:468
35699 msgid ""
35700 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
35701 "document Augeas itself here because there is excellent documentation on the "
35702 "L<http://augeas.net/> website."
35703 msgstr ""
35704
35705 #. type: textblock
35706 #: ../src/guestfs.pod:472
35707 msgid ""
35708 "If you don't want to use Augeas (you fool!) then try calling "
35709 "L</guestfs_read_lines> to get the file as a list of lines which you can "
35710 "iterate over."
35711 msgstr ""
35712
35713 #. type: =head2
35714 #: ../src/guestfs.pod:476
35715 msgid "SELINUX"
35716 msgstr ""
35717
35718 #. type: textblock
35719 #: ../src/guestfs.pod:478
35720 msgid ""
35721 "We support SELinux guests.  To ensure that labeling happens correctly in "
35722 "SELinux guests, you need to enable SELinux and load the guest's policy:"
35723 msgstr ""
35724
35725 #. type: textblock
35726 #: ../src/guestfs.pod:486
35727 msgid "Before launching, do:"
35728 msgstr ""
35729
35730 #. type: verbatim
35731 #: ../src/guestfs.pod:488
35732 #, no-wrap
35733 msgid ""
35734 " guestfs_set_selinux (g, 1);\n"
35735 "\n"
35736 msgstr ""
35737
35738 #. type: textblock
35739 #: ../src/guestfs.pod:492
35740 msgid ""
35741 "After mounting the guest's filesystem(s), load the policy.  This is best "
35742 "done by running the L<load_policy(8)> command in the guest itself:"
35743 msgstr ""
35744
35745 #. type: verbatim
35746 #: ../src/guestfs.pod:496
35747 #, no-wrap
35748 msgid ""
35749 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
35750 "\n"
35751 msgstr ""
35752
35753 #. type: textblock
35754 #: ../src/guestfs.pod:498
35755 msgid ""
35756 "(Older versions of C<load_policy> require you to specify the name of the "
35757 "policy file)."
35758 msgstr ""
35759
35760 #. type: textblock
35761 #: ../src/guestfs.pod:503
35762 msgid ""
35763 "Optionally, set the security context for the API.  The correct security "
35764 "context to use can only be known by inspecting the guest.  As an example:"
35765 msgstr ""
35766
35767 #. type: verbatim
35768 #: ../src/guestfs.pod:507
35769 #, no-wrap
35770 msgid ""
35771 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
35772 "\n"
35773 msgstr ""
35774
35775 #. type: textblock
35776 #: ../src/guestfs.pod:511
35777 msgid "This will work for running commands and editing existing files."
35778 msgstr ""
35779
35780 #. type: textblock
35781 #: ../src/guestfs.pod:513
35782 msgid ""
35783 "When new files are created, you may need to label them explicitly, for "
35784 "example by running the external command C<restorecon pathname>."
35785 msgstr ""
35786
35787 #. type: =head2
35788 #: ../src/guestfs.pod:517
35789 msgid "UMASK"
35790 msgstr ""
35791
35792 #. type: textblock
35793 #: ../src/guestfs.pod:519
35794 msgid ""
35795 "Certain calls are affected by the current file mode creation mask (the "
35796 "\"umask\").  In particular ones which create files or directories, such as "
35797 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
35798 "either the default mode that the file is created with or modifies the mode "
35799 "that you supply."
35800 msgstr ""
35801
35802 #. type: textblock
35803 #: ../src/guestfs.pod:525
35804 msgid ""
35805 "The default umask is C<022>, so files are created with modes such as C<0644> "
35806 "and directories with C<0755>."
35807 msgstr ""
35808
35809 #. type: textblock
35810 #: ../src/guestfs.pod:528
35811 msgid ""
35812 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
35813 "(call C<guestfs_umask (g, 0)> early after launching).  Or call "
35814 "L</guestfs_chmod> after creating each file or directory."
35815 msgstr ""
35816
35817 #. type: textblock
35818 #: ../src/guestfs.pod:532
35819 msgid "For more information about umask, see L<umask(2)>."
35820 msgstr ""
35821
35822 #. type: textblock
35823 #: ../src/guestfs.pod:536
35824 msgid ""
35825 "Libguestfs allows you to access Linux guests which have been encrypted using "
35826 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
35827 "standard.  This includes nearly all whole disk encryption systems used by "
35828 "modern Linux guests."
35829 msgstr ""
35830
35831 #. type: textblock
35832 #: ../src/guestfs.pod:542
35833 msgid ""
35834 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
35835 "returns the string C<crypto_LUKS>)."
35836 msgstr ""
35837
35838 #. type: textblock
35839 #: ../src/guestfs.pod:545
35840 msgid ""
35841 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
35842 "will require the passphrase!"
35843 msgstr ""
35844
35845 #. type: textblock
35846 #: ../src/guestfs.pod:548
35847 msgid ""
35848 "Opening a LUKS device creates a new device mapper device called "
35849 "C</dev/mapper/mapname> (where C<mapname> is the string you supply to "
35850 "L</guestfs_luks_open>).  Reads and writes to this mapper device are "
35851 "decrypted from and encrypted to the underlying block device respectively."
35852 msgstr ""
35853
35854 #. type: textblock
35855 #: ../src/guestfs.pod:554
35856 msgid ""
35857 "LVM volume groups on the device can be made visible by calling "
35858 "L</guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical "
35859 "volume(s) can now be mounted in the usual way."
35860 msgstr ""
35861
35862 #. type: textblock
35863 #: ../src/guestfs.pod:558
35864 msgid ""
35865 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
35866 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
35867 "[\"/dev/VG\"])>.  Then close the mapper device by calling "
35868 "L</guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
35869 "underlying encrypted block device)."
35870 msgstr ""
35871
35872 #. type: =head2
35873 #: ../src/guestfs.pod:565
35874 msgid "INSPECTION"
35875 msgstr ""
35876
35877 #. type: textblock
35878 #: ../src/guestfs.pod:567
35879 msgid ""
35880 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
35881 "contains operating systems, an install CD or a live CD.  (These APIs used to "
35882 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
35883 "version 1.5.3 the most frequently used part of this library has been "
35884 "rewritten in C and moved into the core code)."
35885 msgstr ""
35886
35887 #. type: textblock
35888 #: ../src/guestfs.pod:574
35889 msgid ""
35890 "Add all disks belonging to the unknown virtual machine and call "
35891 "L</guestfs_launch> in the usual way."
35892 msgstr ""
35893
35894 #. type: textblock
35895 #: ../src/guestfs.pod:577
35896 msgid ""
35897 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
35898 "and certain heuristics, and returns a list of operating systems that were "
35899 "found.  An empty list means none were found.  A single element is the root "
35900 "filesystem of the operating system.  For dual- or multi-boot guests, "
35901 "multiple roots can be returned, each one corresponding to a separate "
35902 "operating system.  (Multi-boot virtual machines are extremely rare in the "
35903 "world of virtualization, but since this scenario can happen, we have built "
35904 "libguestfs to deal with it.)"
35905 msgstr ""
35906
35907 #. type: textblock
35908 #: ../src/guestfs.pod:586
35909 msgid ""
35910 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
35911 "to get additional details about that operating system.  For example, call "
35912 "L</guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
35913 "Windows and Linux-based operating systems respectively."
35914 msgstr ""
35915
35916 #. type: textblock
35917 #: ../src/guestfs.pod:592
35918 msgid ""
35919 "Un*x-like and Linux-based operating systems usually consist of several "
35920 "filesystems which are mounted at boot time (for example, a separate boot "
35921 "partition mounted on C</boot>).  The inspection rules are able to detect how "
35922 "filesystems correspond to mount points.  Call "
35923 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
35924 "hash table like this example:"
35925 msgstr ""
35926
35927 #. type: verbatim
35928 #: ../src/guestfs.pod:599
35929 #, no-wrap
35930 msgid ""
35931 " /boot => /dev/sda1\n"
35932 " /     => /dev/vg_guest/lv_root\n"
35933 " /usr  => /dev/vg_guest/lv_usr\n"
35934 "\n"
35935 msgstr ""
35936
35937 #. type: textblock
35938 #: ../src/guestfs.pod:603
35939 msgid ""
35940 "The caller can then make calls to L</guestfs_mount_options> to mount the "
35941 "filesystems as suggested."
35942 msgstr ""
35943
35944 #. type: textblock
35945 #: ../src/guestfs.pod:606
35946 msgid ""
35947 "Be careful to mount filesystems in the right order (eg. C</> before "
35948 "C</usr>).  Sorting the keys of the hash by length, shortest first, should "
35949 "work."
35950 msgstr ""
35951
35952 #. type: textblock
35953 #: ../src/guestfs.pod:610
35954 msgid ""
35955 "Inspection currently only works for some common operating systems.  "
35956 "Contributors are welcome to send patches for other operating systems that we "
35957 "currently cannot detect."
35958 msgstr ""
35959
35960 #. type: textblock
35961 #: ../src/guestfs.pod:614
35962 msgid ""
35963 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
35964 "for more details.  The L</guestfs_inspect_os> function just ignores any "
35965 "encrypted devices."
35966 msgstr ""
35967
35968 #. type: textblock
35969 #: ../src/guestfs.pod:618
35970 msgid ""
35971 "A note on the implementation: The call L</guestfs_inspect_os> performs "
35972 "inspection and caches the results in the guest handle.  Subsequent calls to "
35973 "C<guestfs_inspect_get_*> return this cached information, but I<do not> "
35974 "re-read the disks.  If you change the content of the guest disks, you can "
35975 "redo inspection by calling L</guestfs_inspect_os> again.  "
35976 "(L</guestfs_inspect_list_applications> works a little differently from the "
35977 "other calls and does read the disks.  See documentation for that function "
35978 "for details)."
35979 msgstr ""
35980
35981 #. type: =head3
35982 #: ../src/guestfs.pod:627
35983 msgid "INSPECTING INSTALL DISKS"
35984 msgstr ""
35985
35986 #. type: textblock
35987 #: ../src/guestfs.pod:629
35988 msgid ""
35989 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
35990 "CDs and more."
35991 msgstr ""
35992
35993 #. type: textblock
35994 #: ../src/guestfs.pod:632
35995 msgid ""
35996 "Call L</guestfs_inspect_get_format> to return the format of the operating "
35997 "system, which currently can be C<installed> (a regular operating system) or "
35998 "C<installer> (some sort of install disk)."
35999 msgstr ""
36000
36001 #. type: textblock
36002 #: ../src/guestfs.pod:636
36003 msgid ""
36004 "Further information is available about the operating system that can be "
36005 "installed using the regular inspection APIs like "
36006 "L</guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> "
36007 "etc."
36008 msgstr ""
36009
36010 #. type: textblock
36011 #: ../src/guestfs.pod:641
36012 msgid ""
36013 "Some additional information specific to installer disks is also available "
36014 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and "
36015 "L</guestfs_inspect_is_multipart> calls."
36016 msgstr ""
36017
36018 #. type: =head2
36019 #: ../src/guestfs.pod:646
36020 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
36021 msgstr ""
36022
36023 #. type: textblock
36024 #: ../src/guestfs.pod:648
36025 msgid ""
36026 "Libguestfs can mount NTFS partitions.  It does this using the "
36027 "L<http://www.ntfs-3g.org/> driver."
36028 msgstr ""
36029
36030 #. type: =head3
36031 #: ../src/guestfs.pod:651
36032 msgid "DRIVE LETTERS AND PATHS"
36033 msgstr ""
36034
36035 #. type: textblock
36036 #: ../src/guestfs.pod:653
36037 msgid ""
36038 "DOS and Windows still use drive letters, and the filesystems are always "
36039 "treated as case insensitive by Windows itself, and therefore you might find "
36040 "a Windows configuration file referring to a path like "
36041 "C<c:\\windows\\system32>.  When the filesystem is mounted in libguestfs, "
36042 "that directory might be referred to as C</WINDOWS/System32>."
36043 msgstr ""
36044
36045 #. type: textblock
36046 #: ../src/guestfs.pod:659
36047 msgid ""
36048 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
36049 "L</guestfs_inspect_get_drive_mappings>)"
36050 msgstr ""
36051
36052 #. type: textblock
36053 #: ../src/guestfs.pod:662
36054 msgid ""
36055 "Dealing with separator characters (backslash vs forward slash) is outside "
36056 "the scope of libguestfs, but usually a simple character replacement will "
36057 "work."
36058 msgstr ""
36059
36060 #. type: textblock
36061 #: ../src/guestfs.pod:666
36062 msgid ""
36063 "To resolve the case insensitivity of paths, call "
36064 "L</guestfs_case_sensitive_path>."
36065 msgstr ""
36066
36067 #. type: =head3
36068 #: ../src/guestfs.pod:669
36069 msgid "ACCESSING THE WINDOWS REGISTRY"
36070 msgstr ""
36071
36072 #. type: textblock
36073 #: ../src/guestfs.pod:671
36074 msgid ""
36075 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
36076 "files, through the library C<hivex> which is part of the libguestfs project "
36077 "although ships as a separate tarball.  You have to locate and download the "
36078 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
36079 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and "
36080 "L<virt-win-reg(1)> for more help on this issue."
36081 msgstr ""
36082
36083 #. type: =head3
36084 #: ../src/guestfs.pod:679
36085 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
36086 msgstr ""
36087
36088 #. type: textblock
36089 #: ../src/guestfs.pod:681
36090 msgid ""
36091 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
36092 "provide something which looks like a Linux symlink.  The way it tries to do "
36093 "the rewriting is described here:"
36094 msgstr ""
36095
36096 #. type: textblock
36097 #: ../src/guestfs.pod:685
36098 msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-symbolic-links/>"
36099 msgstr ""
36100
36101 #. type: textblock
36102 #: ../src/guestfs.pod:687
36103 msgid ""
36104 "The essential problem is that ntfs-3g simply does not have enough "
36105 "information to do a correct job.  NTFS links can contain drive letters and "
36106 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
36107 "It is almost certainly the case that libguestfs callers should ignore what "
36108 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
36109 msgstr ""
36110
36111 #. type: textblock
36112 #: ../src/guestfs.pod:694
36113 msgid ""
36114 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use "
36115 "L</guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
36116 "attribute, and read the raw reparse data from that (you can find the format "
36117 "documented in various places around the web)."
36118 msgstr ""
36119
36120 #. type: =head3
36121 #: ../src/guestfs.pod:699
36122 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
36123 msgstr ""
36124
36125 #. type: textblock
36126 #: ../src/guestfs.pod:701
36127 msgid ""
36128 "There are other useful extended attributes that can be read from ntfs-3g "
36129 "filesystems (using L</guestfs_getxattr>).  See:"
36130 msgstr ""
36131
36132 #. type: textblock
36133 #: ../src/guestfs.pod:704
36134 msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
36135 msgstr ""
36136
36137 #. type: =head2
36138 #: ../src/guestfs.pod:706
36139 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
36140 msgstr ""
36141
36142 #. type: textblock
36143 #: ../src/guestfs.pod:708
36144 msgid ""
36145 "Although we don't want to discourage you from using the C API, we will "
36146 "mention here that the same API is also available in other languages."
36147 msgstr ""
36148
36149 #. type: textblock
36150 #: ../src/guestfs.pod:711
36151 msgid ""
36152 "The API is broadly identical in all supported languages.  This means that "
36153 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
36154 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
36155 "OCaml.  In other words, a straightforward, predictable isomorphism between "
36156 "each language."
36157 msgstr ""
36158
36159 #. type: textblock
36160 #: ../src/guestfs.pod:717
36161 msgid ""
36162 "Error messages are automatically transformed into exceptions if the language "
36163 "supports it."
36164 msgstr ""
36165
36166 #. type: textblock
36167 #: ../src/guestfs.pod:720
36168 msgid ""
36169 "We don't try to \"object orientify\" parts of the API in OO languages, "
36170 "although contributors are welcome to write higher level APIs above what we "
36171 "provide in their favourite languages if they wish."
36172 msgstr ""
36173
36174 #. type: =item
36175 #: ../src/guestfs.pod:726
36176 msgid "B<C++>"
36177 msgstr ""
36178
36179 #. type: textblock
36180 #: ../src/guestfs.pod:728
36181 msgid ""
36182 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
36183 "identical to the C API.  C++ classes and exceptions are not used."
36184 msgstr ""
36185
36186 #. type: =item
36187 #: ../src/guestfs.pod:732
36188 msgid "B<C#>"
36189 msgstr ""
36190
36191 #. type: textblock
36192 #: ../src/guestfs.pod:734
36193 msgid ""
36194 "The C# bindings are highly experimental.  Please read the warnings at the "
36195 "top of C<csharp/Libguestfs.cs>."
36196 msgstr ""
36197
36198 #. type: =item
36199 #: ../src/guestfs.pod:737
36200 msgid "B<Erlang>"
36201 msgstr ""
36202
36203 #. type: textblock
36204 #: ../src/guestfs.pod:739
36205 msgid "See L<guestfs-erlang(3)>."
36206 msgstr ""
36207
36208 #. type: =item
36209 #: ../src/guestfs.pod:741
36210 msgid "B<Haskell>"
36211 msgstr ""
36212
36213 #. type: textblock
36214 #: ../src/guestfs.pod:743
36215 msgid ""
36216 "This is the only language binding that is working but incomplete.  Only "
36217 "calls which return simple integers have been bound in Haskell, and we are "
36218 "looking for help to complete this binding."
36219 msgstr ""
36220
36221 #. type: =item
36222 #: ../src/guestfs.pod:747
36223 msgid "B<Java>"
36224 msgstr ""
36225
36226 #. type: textblock
36227 #: ../src/guestfs.pod:749
36228 msgid ""
36229 "Full documentation is contained in the Javadoc which is distributed with "
36230 "libguestfs.  For examples, see L<guestfs-java(3)>."
36231 msgstr ""
36232
36233 #. type: =item
36234 #: ../src/guestfs.pod:752
36235 msgid "B<OCaml>"
36236 msgstr ""
36237
36238 #. type: textblock
36239 #: ../src/guestfs.pod:754
36240 msgid "See L<guestfs-ocaml(3)>."
36241 msgstr ""
36242
36243 #. type: =item
36244 #: ../src/guestfs.pod:756
36245 msgid "B<Perl>"
36246 msgstr ""
36247
36248 #. type: textblock
36249 #: ../src/guestfs.pod:758
36250 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
36251 msgstr ""
36252
36253 #. type: =item
36254 #: ../src/guestfs.pod:760
36255 msgid "B<PHP>"
36256 msgstr ""
36257
36258 #. type: textblock
36259 #: ../src/guestfs.pod:762
36260 msgid ""
36261 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
36262 "the php-libguestfs package for your distribution."
36263 msgstr ""
36264
36265 #. type: textblock
36266 #: ../src/guestfs.pod:765
36267 msgid "The PHP binding only works correctly on 64 bit machines."
36268 msgstr ""
36269
36270 #. type: =item
36271 #: ../src/guestfs.pod:767
36272 msgid "B<Python>"
36273 msgstr ""
36274
36275 #. type: textblock
36276 #: ../src/guestfs.pod:769
36277 msgid "See L<guestfs-python(3)>."
36278 msgstr ""
36279
36280 #. type: =item
36281 #: ../src/guestfs.pod:771
36282 msgid "B<Ruby>"
36283 msgstr ""
36284
36285 #. type: textblock
36286 #: ../src/guestfs.pod:773
36287 msgid "See L<guestfs-ruby(3)>."
36288 msgstr ""
36289
36290 #. type: =item
36291 #: ../src/guestfs.pod:775
36292 msgid "B<shell scripts>"
36293 msgstr ""
36294
36295 #. type: textblock
36296 #: ../src/guestfs.pod:777
36297 msgid "See L<guestfish(1)>."
36298 msgstr ""
36299
36300 #. type: =head2
36301 #: ../src/guestfs.pod:781
36302 msgid "LIBGUESTFS GOTCHAS"
36303 msgstr ""
36304
36305 #. type: textblock
36306 #: ../src/guestfs.pod:783
36307 msgid ""
36308 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
36309 "system [...] that works in the way it is documented but is counterintuitive "
36310 "and almost invites mistakes.\""
36311 msgstr ""
36312
36313 #. type: textblock
36314 #: ../src/guestfs.pod:787
36315 msgid ""
36316 "Since we developed libguestfs and the associated tools, there are several "
36317 "things we would have designed differently, but are now stuck with for "
36318 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
36319 "release, you can expect these to change.  Beware of them."
36320 msgstr ""
36321
36322 #. type: =item
36323 #: ../src/guestfs.pod:795
36324 msgid "Autosync / forgetting to sync."
36325 msgstr ""
36326
36327 #. type: textblock
36328 #: ../src/guestfs.pod:797
36329 msgid ""
36330 "I<Update:> Autosync is enabled by default for all API users starting from "
36331 "libguestfs 1.5.24.  This section only applies to older versions."
36332 msgstr ""
36333
36334 #. type: textblock
36335 #: ../src/guestfs.pod:800
36336 msgid ""
36337 "When modifying a filesystem from C or another language, you B<must> unmount "
36338 "all filesystems and call L</guestfs_sync> explicitly before you close the "
36339 "libguestfs handle.  You can also call:"
36340 msgstr ""
36341
36342 #. type: verbatim
36343 #: ../src/guestfs.pod:804
36344 #, no-wrap
36345 msgid ""
36346 " guestfs_set_autosync (g, 1);\n"
36347 "\n"
36348 msgstr ""
36349
36350 #. type: textblock
36351 #: ../src/guestfs.pod:806
36352 msgid ""
36353 "to have the unmount/sync done automatically for you when the handle 'g' is "
36354 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> "
36355 "q.v.)"
36356 msgstr ""
36357
36358 #. type: textblock
36359 #: ../src/guestfs.pod:810
36360 msgid ""
36361 "If you forget to do this, then it is entirely possible that your changes "
36362 "won't be written out, or will be partially written, or (very rarely) that "
36363 "you'll get disk corruption."
36364 msgstr ""
36365
36366 #. type: textblock
36367 #: ../src/guestfs.pod:814
36368 msgid ""
36369 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
36370 "guestfish scripts that forget to sync will work just fine, which can make "
36371 "this very puzzling if you are trying to debug a problem."
36372 msgstr ""
36373
36374 #. type: =item
36375 #: ../src/guestfs.pod:818
36376 msgid "Mount option C<-o sync> should not be the default."
36377 msgstr ""
36378
36379 #. type: textblock
36380 #: ../src/guestfs.pod:820
36381 msgid ""
36382 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
36383 "libguestfs 1.13.16.  This section only applies to older versions."
36384 msgstr ""
36385
36386 #. type: textblock
36387 #: ../src/guestfs.pod:823
36388 msgid ""
36389 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
36390 "However C<-o sync> does not add any reliability benefit, but does have a "
36391 "very large performance impact."
36392 msgstr ""
36393
36394 #. type: textblock
36395 #: ../src/guestfs.pod:827
36396 msgid ""
36397 "The work around is to use L</guestfs_mount_options> and set the mount "
36398 "options that you actually want to use."
36399 msgstr ""
36400
36401 #. type: =item
36402 #: ../src/guestfs.pod:830
36403 msgid "Read-only should be the default."
36404 msgstr ""
36405
36406 #. type: textblock
36407 #: ../src/guestfs.pod:832
36408 msgid ""
36409 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
36410 "specify I<--rw> if you want to make changes to the image."
36411 msgstr ""
36412
36413 #. type: textblock
36414 #: ../src/guestfs.pod:835
36415 msgid "This would reduce the potential to corrupt live VM images."
36416 msgstr ""
36417
36418 #. type: textblock
36419 #: ../src/guestfs.pod:837
36420 msgid ""
36421 "Note that many filesystems change the disk when you just mount and unmount, "
36422 "even if you didn't perform any writes.  You need to use "
36423 "L</guestfs_add_drive_ro> to guarantee that the disk is not changed."
36424 msgstr ""
36425
36426 #. type: =item
36427 #: ../src/guestfs.pod:841
36428 msgid "guestfish command line is hard to use."
36429 msgstr ""
36430
36431 #. type: textblock
36432 #: ../src/guestfs.pod:843
36433 msgid ""
36434 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
36435 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
36436 "exist, so it fails.  In earlier versions of guestfish the error message was "
36437 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
36438 "we should have used C<guestfish -c command> to run commands."
36439 msgstr ""
36440
36441 #. type: =item
36442 #: ../src/guestfs.pod:850
36443 msgid "guestfish megabyte modifiers don't work right on all commands"
36444 msgstr ""
36445
36446 #. type: textblock
36447 #: ../src/guestfs.pod:852
36448 msgid ""
36449 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
36450 "other modifiers).  What guestfish actually does is to multiply the number "
36451 "part by the modifier part and pass the result to the C API.  However this "
36452 "doesn't work for a few APIs which aren't expecting bytes, but are already "
36453 "expecting some other unit (eg. megabytes)."
36454 msgstr ""
36455
36456 #. type: textblock
36457 #: ../src/guestfs.pod:859
36458 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
36459 msgstr ""
36460
36461 #. type: verbatim
36462 #: ../src/guestfs.pod:861
36463 #, no-wrap
36464 msgid ""
36465 " lvcreate LV VG 100M\n"
36466 "\n"
36467 msgstr ""
36468
36469 #. type: textblock
36470 #: ../src/guestfs.pod:863
36471 msgid ""
36472 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
36473 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
36474 "megabytes * megabytes) logical volume.  The error message you get from this "
36475 "is also a little obscure."
36476 msgstr ""
36477
36478 #. type: textblock
36479 #: ../src/guestfs.pod:868
36480 msgid ""
36481 "This could be fixed in the generator by specially marking parameters and "
36482 "return values which take bytes or other units."
36483 msgstr ""
36484
36485 #. type: =item
36486 #: ../src/guestfs.pod:871
36487 msgid "Ambiguity between devices and paths"
36488 msgstr ""
36489
36490 #. type: textblock
36491 #: ../src/guestfs.pod:873
36492 msgid ""
36493 "There is a subtle ambiguity in the API between a device name "
36494 "(eg. C</dev/sdb2>) and a similar pathname.  A file might just happen to be "
36495 "called C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
36496 msgstr ""
36497
36498 #. type: textblock
36499 #: ../src/guestfs.pod:878
36500 msgid ""
36501 "In the current API we usually resolve this ambiguity by having two separate "
36502 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
36503 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
36504 "detecting if the path supplied begins with C</dev/>."
36505 msgstr ""
36506
36507 #. type: textblock
36508 #: ../src/guestfs.pod:884
36509 msgid ""
36510 "To avoid both the ambiguity and the need to duplicate some calls, we could "
36511 "make paths/devices into structured names.  One way to do this would be to "
36512 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
36513 "aspect of grub.  Another way would be to use a structured type, equivalent "
36514 "to this OCaml type:"
36515 msgstr ""
36516
36517 #. type: verbatim
36518 #: ../src/guestfs.pod:890
36519 #, no-wrap
36520 msgid ""
36521 " type path = Path of string | Device of int | Partition of int * int\n"
36522 "\n"
36523 msgstr ""
36524
36525 #. type: textblock
36526 #: ../src/guestfs.pod:892
36527 msgid "which would allow you to pass arguments like:"
36528 msgstr ""
36529
36530 #. type: verbatim
36531 #: ../src/guestfs.pod:894
36532 #, no-wrap
36533 msgid ""
36534 " Path \"/foo/bar\"\n"
36535 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
36536 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
36537 " Path \"/dev/sdb2\"    (* not a device *)\n"
36538 "\n"
36539 msgstr ""
36540
36541 #. type: textblock
36542 #: ../src/guestfs.pod:899
36543 msgid ""
36544 "As you can see there are still problems to resolve even with this "
36545 "representation.  Also consider how it might work in guestfish."
36546 msgstr ""
36547
36548 #. type: =head2
36549 #: ../src/guestfs.pod:904
36550 msgid "KEYS AND PASSPHRASES"
36551 msgstr ""
36552
36553 #. type: textblock
36554 #: ../src/guestfs.pod:906
36555 msgid ""
36556 "Certain libguestfs calls take a parameter that contains sensitive key "
36557 "material, passed in as a C string."
36558 msgstr ""
36559
36560 #. type: textblock
36561 #: ../src/guestfs.pod:909
36562 msgid ""
36563 "In the future we would hope to change the libguestfs implementation so that "
36564 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
36565 "swap.  However this is I<not> done at the moment, because of the complexity "
36566 "of such an implementation."
36567 msgstr ""
36568
36569 #. type: textblock
36570 #: ../src/guestfs.pod:914
36571 msgid ""
36572 "Therefore you should be aware that any key parameter you pass to libguestfs "
36573 "might end up being written out to the swap partition.  If this is a concern, "
36574 "scrub the swap partition or don't use libguestfs on encrypted devices."
36575 msgstr ""
36576
36577 #. type: =head2
36578 #: ../src/guestfs.pod:919
36579 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
36580 msgstr ""
36581
36582 #. type: textblock
36583 #: ../src/guestfs.pod:921
36584 msgid ""
36585 "All high-level libguestfs actions are synchronous.  If you want to use "
36586 "libguestfs asynchronously then you must create a thread."
36587 msgstr ""
36588
36589 #. type: textblock
36590 #: ../src/guestfs.pod:924
36591 msgid ""
36592 "Only use the handle from a single thread.  Either use the handle exclusively "
36593 "from one thread, or provide your own mutex so that two threads cannot issue "
36594 "calls on the same handle at the same time."
36595 msgstr ""
36596
36597 #. type: textblock
36598 #: ../src/guestfs.pod:928
36599 msgid ""
36600 "See the graphical program guestfs-browser for one possible architecture for "
36601 "multithreaded programs using libvirt and libguestfs."
36602 msgstr ""
36603
36604 #. type: =head2
36605 #: ../src/guestfs.pod:931
36606 msgid "PATH"
36607 msgstr ""
36608
36609 #. type: textblock
36610 #: ../src/guestfs.pod:933
36611 msgid ""
36612 "Libguestfs needs a supermin appliance, which it finds by looking along an "
36613 "internal path."
36614 msgstr ""
36615
36616 #. type: textblock
36617 #: ../src/guestfs.pod:936
36618 msgid ""
36619 "By default it looks for these in the directory C<$libdir/guestfs> "
36620 "(eg. C</usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
36621 msgstr ""
36622
36623 #. type: textblock
36624 #: ../src/guestfs.pod:939
36625 msgid ""
36626 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
36627 "to change the directories that libguestfs will search in.  The value is a "
36628 "colon-separated list of paths.  The current directory is I<not> searched "
36629 "unless the path contains an empty element or C<.>.  For example "
36630 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
36631 "then C</usr/lib/guestfs>."
36632 msgstr ""
36633
36634 #. type: =head2
36635 #: ../src/guestfs.pod:946
36636 msgid "QEMU WRAPPERS"
36637 msgstr ""
36638
36639 #. type: textblock
36640 #: ../src/guestfs.pod:948
36641 msgid ""
36642 "If you want to compile your own qemu, run qemu from a non-standard location, "
36643 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
36644 "around qemu."
36645 msgstr ""
36646
36647 #. type: textblock
36648 #: ../src/guestfs.pod:952
36649 msgid ""
36650 "There is one important rule to remember: you I<must C<exec qemu>> as the "
36651 "last command in the shell script (so that qemu replaces the shell and "
36652 "becomes the direct child of the libguestfs-using program).  If you don't do "
36653 "this, then the qemu process won't be cleaned up correctly."
36654 msgstr ""
36655
36656 #. type: textblock
36657 #: ../src/guestfs.pod:957
36658 msgid ""
36659 "Here is an example of a wrapper, where I have built my own copy of qemu from "
36660 "source:"
36661 msgstr ""
36662
36663 #. type: verbatim
36664 #: ../src/guestfs.pod:960
36665 #, no-wrap
36666 msgid ""
36667 " #!/bin/sh -\n"
36668 " qemudir=/home/rjones/d/qemu\n"
36669 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios "
36670 "\"$@\"\n"
36671 "\n"
36672 msgstr ""
36673
36674 #. type: textblock
36675 #: ../src/guestfs.pod:964
36676 msgid ""
36677 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
36678 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
36679 "example:"
36680 msgstr ""
36681
36682 #. type: verbatim
36683 #: ../src/guestfs.pod:968
36684 #, no-wrap
36685 msgid ""
36686 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
36687 "\n"
36688 msgstr ""
36689
36690 #. type: textblock
36691 #: ../src/guestfs.pod:970
36692 msgid ""
36693 "Note that libguestfs also calls qemu with the -help and -version options in "
36694 "order to determine features."
36695 msgstr ""
36696
36697 #. type: textblock
36698 #: ../src/guestfs.pod:973
36699 msgid ""
36700 "Wrappers can also be used to edit the options passed to qemu.  In the "
36701 "following example, the C<-machine ...> option (C<-machine> and the following "
36702 "argument) are removed from the command line and replaced with C<-machine "
36703 "pc,accel=tcg>.  The while loop iterates over the options until it finds the "
36704 "right one to remove, putting the remaining options into the C<args> array."
36705 msgstr ""
36706
36707 #. type: verbatim
36708 #: ../src/guestfs.pod:982
36709 #, no-wrap
36710 msgid ""
36711 " i=0\n"
36712 " while [ $# -gt 0 ]; do\n"
36713 "     case \"$1\" in\n"
36714 "     -machine)\n"
36715 "         shift 2;;\n"
36716 "     *)\n"
36717 "         args[i]=\"$1\"\n"
36718 "         (( i++ ))\n"
36719 "         shift ;;\n"
36720 "     esac\n"
36721 " done\n"
36722 " \n"
36723 msgstr ""
36724
36725 #. type: verbatim
36726 #: ../src/guestfs.pod:994
36727 #, no-wrap
36728 msgid ""
36729 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
36730 "\n"
36731 msgstr ""
36732
36733 #. type: =head2
36734 #: ../src/guestfs.pod:996
36735 msgid "ATTACHING TO RUNNING DAEMONS"
36736 msgstr ""
36737
36738 #. type: textblock
36739 #: ../src/guestfs.pod:998
36740 msgid ""
36741 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
36742 "babies.  Use with caution."
36743 msgstr ""
36744
36745 #. type: textblock
36746 #: ../src/guestfs.pod:1001
36747 msgid ""
36748 "I<Note (2):> This section explains how to attach to a running daemon from a "
36749 "low level perspective.  For most users, simply using virt tools such as "
36750 "L<guestfish(1)> with the I<--live> option will \"just work\"."
36751 msgstr ""
36752
36753 #. type: =head3
36754 #: ../src/guestfs.pod:1005
36755 msgid "Using guestfs_set_attach_method"
36756 msgstr ""
36757
36758 #. type: textblock
36759 #: ../src/guestfs.pod:1007
36760 msgid ""
36761 "By calling L</guestfs_set_attach_method> you can change how the library "
36762 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read "
36763 "L</ARCHITECTURE> for some background)."
36764 msgstr ""
36765
36766 #. type: textblock
36767 #: ../src/guestfs.pod:1011
36768 msgid ""
36769 "The normal attach method is C<appliance>, where a small appliance is created "
36770 "containing the daemon, and then the library connects to this."
36771 msgstr ""
36772
36773 #. type: textblock
36774 #: ../src/guestfs.pod:1014
36775 msgid ""
36776 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
36777 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
36778 "daemon over the Unix domain socket."
36779 msgstr ""
36780
36781 #. type: textblock
36782 #: ../src/guestfs.pod:1018
36783 msgid ""
36784 "The normal use for this is to connect to a running virtual machine that "
36785 "contains a C<guestfsd> daemon, and send commands so you can read and write "
36786 "files inside the live virtual machine."
36787 msgstr ""
36788
36789 #. type: =head3
36790 #: ../src/guestfs.pod:1022
36791 msgid "Using guestfs_add_domain with live flag"
36792 msgstr ""
36793
36794 #. type: textblock
36795 #: ../src/guestfs.pod:1024
36796 msgid ""
36797 "L</guestfs_add_domain> provides some help for getting the correct attach "
36798 "method.  If you pass the C<live> option to this function, then (if the "
36799 "virtual machine is running) it will examine the libvirt XML looking for a "
36800 "virtio-serial channel to connect to:"
36801 msgstr ""
36802
36803 #. type: verbatim
36804 #: ../src/guestfs.pod:1030
36805 #, no-wrap
36806 msgid ""
36807 " <domain>\n"
36808 "   ...\n"
36809 "   <devices>\n"
36810 "     ...\n"
36811 "     <channel type='unix'>\n"
36812 "       <source mode='bind' path='/path/to/socket'/>\n"
36813 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
36814 "     </channel>\n"
36815 "     ...\n"
36816 "   </devices>\n"
36817 " </domain>\n"
36818 "\n"
36819 msgstr ""
36820
36821 #. type: textblock
36822 #: ../src/guestfs.pod:1042
36823 msgid ""
36824 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
36825 "method to C<unix:/path/to/socket>."
36826 msgstr ""
36827
36828 #. type: textblock
36829 #: ../src/guestfs.pod:1045
36830 msgid ""
36831 "Some of the libguestfs tools (including guestfish) support a I<--live> "
36832 "option which is passed through to L</guestfs_add_domain> thus allowing you "
36833 "to attach to and modify live virtual machines."
36834 msgstr ""
36835
36836 #. type: textblock
36837 #: ../src/guestfs.pod:1049
36838 msgid ""
36839 "The virtual machine needs to have been set up beforehand so that it has the "
36840 "virtio-serial channel and so that guestfsd is running inside it."
36841 msgstr ""
36842
36843 #. type: =head2
36844 #: ../src/guestfs.pod:1053
36845 msgid "ABI GUARANTEE"
36846 msgstr ""
36847
36848 #. type: textblock
36849 #: ../src/guestfs.pod:1055
36850 msgid ""
36851 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
36852 "actions as outlined in this section.  Although we will deprecate some "
36853 "actions, for example if they get replaced by newer calls, we will keep the "
36854 "old actions forever.  This allows you the developer to program in confidence "
36855 "against the libguestfs API."
36856 msgstr ""
36857
36858 #. type: =head2
36859 #: ../src/guestfs.pod:1061
36860 msgid "BLOCK DEVICE NAMING"
36861 msgstr ""
36862
36863 #. type: textblock
36864 #: ../src/guestfs.pod:1063
36865 msgid ""
36866 "In the kernel there is now quite a profusion of schemata for naming block "
36867 "devices (in this context, by I<block device> I mean a physical or virtual "
36868 "hard drive).  The original Linux IDE driver used names starting with "
36869 "C</dev/hd*>.  SCSI devices have historically used a different naming scheme, "
36870 "C</dev/sd*>.  When the Linux kernel I<libata> driver became a popular "
36871 "replacement for the old IDE driver (particularly for SATA devices) those "
36872 "devices also used the C</dev/sd*> scheme.  Additionally we now have virtual "
36873 "machines with paravirtualized drivers.  This has created several different "
36874 "naming systems, such as C</dev/vd*> for virtio disks and C</dev/xvd*> for "
36875 "Xen PV disks."
36876 msgstr ""
36877
36878 #. type: textblock
36879 #: ../src/guestfs.pod:1075
36880 msgid ""
36881 "As discussed above, libguestfs uses a qemu appliance running an embedded "
36882 "Linux kernel to access block devices.  We can run a variety of appliances "
36883 "based on a variety of Linux kernels."
36884 msgstr ""
36885
36886 #. type: textblock
36887 #: ../src/guestfs.pod:1079
36888 msgid ""
36889 "This causes a problem for libguestfs because many API calls use device or "
36890 "partition names.  Working scripts and the recipe (example) scripts that we "
36891 "make available over the internet could fail if the naming scheme changes."
36892 msgstr ""
36893
36894 #. type: textblock
36895 #: ../src/guestfs.pod:1084
36896 msgid ""
36897 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
36898 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
36899 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
36900 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
36901 msgstr ""
36902
36903 #. type: textblock
36904 #: ../src/guestfs.pod:1090
36905 msgid ""
36906 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
36907 "L</guestfs_list_partitions> and similar calls return the true names of the "
36908 "devices and partitions as known to the appliance."
36909 msgstr ""
36910
36911 #. type: =head3
36912 #: ../src/guestfs.pod:1095
36913 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
36914 msgstr ""
36915
36916 #. type: textblock
36917 #: ../src/guestfs.pod:1097
36918 msgid ""
36919 "Usually this translation is transparent.  However in some (very rare)  cases "
36920 "you may need to know the exact algorithm.  Such cases include where you use "
36921 "L</guestfs_config> to add a mixture of virtio and IDE devices to the "
36922 "qemu-based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> "
36923 "devices."
36924 msgstr ""
36925
36926 #. type: textblock
36927 #: ../src/guestfs.pod:1103
36928 msgid ""
36929 "The algorithm is applied only to I<parameters> which are known to be either "
36930 "device or partition names.  Return values from functions such as "
36931 "L</guestfs_list_devices> are never changed."
36932 msgstr ""
36933
36934 #. type: textblock
36935 #: ../src/guestfs.pod:1111
36936 msgid "Is the string a parameter which is a device or partition name?"
36937 msgstr ""
36938
36939 #. type: textblock
36940 #: ../src/guestfs.pod:1115
36941 msgid "Does the string begin with C</dev/sd>?"
36942 msgstr ""
36943
36944 #. type: textblock
36945 #: ../src/guestfs.pod:1119
36946 msgid ""
36947 "Does the named device exist? If so, we use that device.  However if I<not> "
36948 "then we continue with this algorithm."
36949 msgstr ""
36950
36951 #. type: textblock
36952 #: ../src/guestfs.pod:1124
36953 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
36954 msgstr ""
36955
36956 #. type: textblock
36957 #: ../src/guestfs.pod:1126
36958 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
36959 msgstr ""
36960
36961 #. type: textblock
36962 #: ../src/guestfs.pod:1128
36963 msgid "If that named device exists, use it.  If not, continue."
36964 msgstr ""
36965
36966 #. type: textblock
36967 #: ../src/guestfs.pod:1132
36968 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
36969 msgstr ""
36970
36971 #. type: textblock
36972 #: ../src/guestfs.pod:1134
36973 msgid "If that named device exists, use it.  If not, return an error."
36974 msgstr ""
36975
36976 #. type: =head3
36977 #: ../src/guestfs.pod:1138
36978 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
36979 msgstr ""
36980
36981 #. type: textblock
36982 #: ../src/guestfs.pod:1140
36983 msgid ""
36984 "Although the standard naming scheme and automatic translation is useful for "
36985 "simple programs and guestfish scripts, for larger programs it is best not to "
36986 "rely on this mechanism."
36987 msgstr ""
36988
36989 #. type: textblock
36990 #: ../src/guestfs.pod:1144
36991 msgid ""
36992 "Where possible for maximum future portability programs using libguestfs "
36993 "should use these future-proof techniques:"
36994 msgstr ""
36995
36996 #. type: textblock
36997 #: ../src/guestfs.pod:1151
36998 msgid ""
36999 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
37000 "device names, and then use those names directly."
37001 msgstr ""
37002
37003 #. type: textblock
37004 #: ../src/guestfs.pod:1154
37005 msgid "Since those device names exist by definition, they will never be translated."
37006 msgstr ""
37007
37008 #. type: textblock
37009 #: ../src/guestfs.pod:1159
37010 msgid ""
37011 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
37012 "filesystem labels."
37013 msgstr ""
37014
37015 #. type: textblock
37016 #: ../src/guestfs.pod:1166
37017 msgid ""
37018 "This section discusses security implications of using libguestfs, "
37019 "particularly with untrusted or malicious guests or disk images."
37020 msgstr ""
37021
37022 #. type: =head2
37023 #: ../src/guestfs.pod:1169
37024 msgid "GENERAL SECURITY CONSIDERATIONS"
37025 msgstr ""
37026
37027 #. type: textblock
37028 #: ../src/guestfs.pod:1171
37029 msgid ""
37030 "Be careful with any files or data that you download from a guest (by "
37031 "\"download\" we mean not just the L</guestfs_download> command but any "
37032 "command that reads files, filenames, directories or anything else from a "
37033 "disk image).  An attacker could manipulate the data to fool your program "
37034 "into doing the wrong thing.  Consider cases such as:"
37035 msgstr ""
37036
37037 #. type: textblock
37038 #: ../src/guestfs.pod:1181
37039 msgid "the data (file etc) not being present"
37040 msgstr ""
37041
37042 #. type: textblock
37043 #: ../src/guestfs.pod:1185
37044 msgid "being present but empty"
37045 msgstr ""
37046
37047 #. type: textblock
37048 #: ../src/guestfs.pod:1189
37049 msgid "being much larger than normal"
37050 msgstr ""
37051
37052 #. type: textblock
37053 #: ../src/guestfs.pod:1193
37054 msgid "containing arbitrary 8 bit data"
37055 msgstr ""
37056
37057 #. type: textblock
37058 #: ../src/guestfs.pod:1197
37059 msgid "being in an unexpected character encoding"
37060 msgstr ""
37061
37062 #. type: textblock
37063 #: ../src/guestfs.pod:1201
37064 msgid "containing homoglyphs."
37065 msgstr ""
37066
37067 #. type: =head2
37068 #: ../src/guestfs.pod:1205
37069 msgid "SECURITY OF MOUNTING FILESYSTEMS"
37070 msgstr ""
37071
37072 #. type: textblock
37073 #: ../src/guestfs.pod:1207
37074 msgid ""
37075 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
37076 "(VFS) module can sometimes be escalated into exploits by deliberately "
37077 "creating a malicious, malformed filesystem.  These exploits are very severe "
37078 "for two reasons.  Firstly there are very many filesystem drivers in the "
37079 "kernel, and many of them are infrequently used and not much developer "
37080 "attention has been paid to the code.  Linux userspace helps potential "
37081 "crackers by detecting the filesystem type and automatically choosing the "
37082 "right VFS driver, even if that filesystem type is obscure or unexpected for "
37083 "the administrator.  Secondly, a kernel-level exploit is like a local root "
37084 "exploit (worse in some ways), giving immediate and total access to the "
37085 "system right down to the hardware level."
37086 msgstr ""
37087
37088 #. type: textblock
37089 #: ../src/guestfs.pod:1220
37090 msgid ""
37091 "That explains why you should never mount a filesystem from an untrusted "
37092 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
37093 "inside a qemu virtual machine, usually running as a non-root user.  The "
37094 "attacker would need to write a filesystem which first exploited the kernel, "
37095 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
37096 "the libguestfs protocol, and finally to be as serious as the host kernel "
37097 "exploit it would need to escalate its privileges to root.  This multi-step "
37098 "escalation, performed by a static piece of data, is thought to be extremely "
37099 "hard to do, although we never say 'never' about security issues."
37100 msgstr ""
37101
37102 #. type: textblock
37103 #: ../src/guestfs.pod:1231
37104 msgid ""
37105 "In any case callers can reduce the attack surface by forcing the filesystem "
37106 "type when mounting (use L</guestfs_mount_vfs>)."
37107 msgstr ""
37108
37109 #. type: =head2
37110 #: ../src/guestfs.pod:1234
37111 msgid "PROTOCOL SECURITY"
37112 msgstr ""
37113
37114 #. type: textblock
37115 #: ../src/guestfs.pod:1236
37116 msgid ""
37117 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
37118 "defined upper message size.  However a program that uses libguestfs must "
37119 "also take care - for example you can write a program that downloads a binary "
37120 "from a disk image and executes it locally, and no amount of protocol "
37121 "security will save you from the consequences."
37122 msgstr ""
37123
37124 #. type: =head2
37125 #: ../src/guestfs.pod:1242
37126 msgid "INSPECTION SECURITY"
37127 msgstr ""
37128
37129 #. type: textblock
37130 #: ../src/guestfs.pod:1244
37131 msgid ""
37132 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
37133 "directly from the guest, and these could contain any 8 bit data.  Callers "
37134 "should be careful to escape these before printing them to a structured file "
37135 "(for example, use HTML escaping if creating a web page)."
37136 msgstr ""
37137
37138 #. type: textblock
37139 #: ../src/guestfs.pod:1250
37140 msgid ""
37141 "Guest configuration may be altered in unusual ways by the administrator of "
37142 "the virtual machine, and may not reflect reality (particularly for untrusted "
37143 "or actively malicious guests).  For example we parse the hostname from "
37144 "configuration files like C</etc/sysconfig/network> that we find in the "
37145 "guest, but the guest administrator can easily manipulate these files to "
37146 "provide the wrong hostname."
37147 msgstr ""
37148
37149 #. type: textblock
37150 #: ../src/guestfs.pod:1258
37151 msgid ""
37152 "The inspection API parses guest configuration using two external libraries: "
37153 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
37154 "designed to be robust in the face of malicious data, although denial of "
37155 "service attacks are still possible, for example with oversized configuration "
37156 "files."
37157 msgstr ""
37158
37159 #. type: =head2
37160 #: ../src/guestfs.pod:1264
37161 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
37162 msgstr ""
37163
37164 #. type: textblock
37165 #: ../src/guestfs.pod:1266
37166 msgid ""
37167 "Be very cautious about running commands from the guest.  By running a "
37168 "command in the guest, you are giving CPU time to a binary that you do not "
37169 "control, under the same user account as the library, albeit wrapped in qemu "
37170 "virtualization.  More information and alternatives can be found in the "
37171 "section L</RUNNING COMMANDS>."
37172 msgstr ""
37173
37174 #. type: =head2
37175 #: ../src/guestfs.pod:1272
37176 msgid "CVE-2010-3851"
37177 msgstr ""
37178
37179 #. type: textblock
37180 #: ../src/guestfs.pod:1274
37181 msgid "https://bugzilla.redhat.com/642934"
37182 msgstr ""
37183
37184 #. type: textblock
37185 #: ../src/guestfs.pod:1276
37186 msgid ""
37187 "This security bug concerns the automatic disk format detection that qemu "
37188 "does on disk images."
37189 msgstr ""
37190
37191 #. type: textblock
37192 #: ../src/guestfs.pod:1279
37193 msgid ""
37194 "A raw disk image is just the raw bytes, there is no header.  Other disk "
37195 "images like qcow2 contain a special header.  Qemu deals with this by looking "
37196 "for one of the known headers, and if none is found then assuming the disk "
37197 "image must be raw."
37198 msgstr ""
37199
37200 #. type: textblock
37201 #: ../src/guestfs.pod:1284
37202 msgid ""
37203 "This allows a guest which has been given a raw disk image to write some "
37204 "other header.  At next boot (or when the disk image is accessed by "
37205 "libguestfs) qemu would do autodetection and think the disk image format was, "
37206 "say, qcow2 based on the header written by the guest."
37207 msgstr ""
37208
37209 #. type: textblock
37210 #: ../src/guestfs.pod:1289
37211 msgid ""
37212 "This in itself would not be a problem, but qcow2 offers many features, one "
37213 "of which is to allow a disk image to refer to another image (called the "
37214 "\"backing disk\").  It does this by placing the path to the backing disk "
37215 "into the qcow2 header.  This path is not validated and could point to any "
37216 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
37217 "\"holes\" in the qcow2 disk image, which of course is completely under the "
37218 "control of the attacker."
37219 msgstr ""
37220
37221 #. type: textblock
37222 #: ../src/guestfs.pod:1297
37223 msgid "In libguestfs this is rather hard to exploit except under two circumstances:"
37224 msgstr ""
37225
37226 #. type: textblock
37227 #: ../src/guestfs.pod:1304
37228 msgid "You have enabled the network or have opened the disk in write mode."
37229 msgstr ""
37230
37231 #. type: textblock
37232 #: ../src/guestfs.pod:1308
37233 msgid ""
37234 "You are also running untrusted code from the guest (see L</RUNNING "
37235 "COMMANDS>)."
37236 msgstr ""
37237
37238 #. type: textblock
37239 #: ../src/guestfs.pod:1313
37240 msgid ""
37241 "The way to avoid this is to specify the expected disk format when adding "
37242 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
37243 "should always do this if the disk is raw format, and it's a good idea for "
37244 "other cases too."
37245 msgstr ""
37246
37247 #. type: textblock
37248 #: ../src/guestfs.pod:1318
37249 msgid ""
37250 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
37251 "format is fetched from libvirt and passed through."
37252 msgstr ""
37253
37254 #. type: textblock
37255 #: ../src/guestfs.pod:1321
37256 msgid ""
37257 "For libguestfs tools, use the I<--format> command line parameter as "
37258 "appropriate."
37259 msgstr ""
37260
37261 #. type: =head1
37262 #: ../src/guestfs.pod:1324
37263 msgid "CONNECTION MANAGEMENT"
37264 msgstr ""
37265
37266 #. type: =head2
37267 #: ../src/guestfs.pod:1326
37268 msgid "guestfs_h *"
37269 msgstr ""
37270
37271 #. type: textblock
37272 #: ../src/guestfs.pod:1328
37273 msgid ""
37274 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
37275 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
37276 "handle and release all resources used."
37277 msgstr ""
37278
37279 #. type: textblock
37280 #: ../src/guestfs.pod:1332
37281 msgid ""
37282 "For information on using multiple handles and threads, see the section "
37283 "L</MULTIPLE HANDLES AND MULTIPLE THREADS> above."
37284 msgstr ""
37285
37286 #. type: =head2
37287 #: ../src/guestfs.pod:1335
37288 msgid "guestfs_create"
37289 msgstr ""
37290
37291 #. type: verbatim
37292 #: ../src/guestfs.pod:1337
37293 #, no-wrap
37294 msgid ""
37295 " guestfs_h *guestfs_create (void);\n"
37296 "\n"
37297 msgstr ""
37298
37299 #. type: textblock
37300 #: ../src/guestfs.pod:1339
37301 msgid "Create a connection handle."
37302 msgstr ""
37303
37304 #. type: textblock
37305 #: ../src/guestfs.pod:1341
37306 msgid ""
37307 "On success this returns a non-NULL pointer to a handle.  On error it returns "
37308 "NULL."
37309 msgstr ""
37310
37311 #. type: textblock
37312 #: ../src/guestfs.pod:1344
37313 msgid ""
37314 "You have to \"configure\" the handle after creating it.  This includes "
37315 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
37316 "handle at least once."
37317 msgstr ""
37318
37319 #. type: textblock
37320 #: ../src/guestfs.pod:1348
37321 msgid "After configuring the handle, you have to call L</guestfs_launch>."
37322 msgstr ""
37323
37324 #. type: textblock
37325 #: ../src/guestfs.pod:1350
37326 msgid ""
37327 "You may also want to configure error handling for the handle.  See the "
37328 "L</ERROR HANDLING> section below."
37329 msgstr ""
37330
37331 #. type: =head2
37332 #: ../src/guestfs.pod:1353
37333 msgid "guestfs_close"
37334 msgstr ""
37335
37336 #. type: verbatim
37337 #: ../src/guestfs.pod:1355
37338 #, no-wrap
37339 msgid ""
37340 " void guestfs_close (guestfs_h *g);\n"
37341 "\n"
37342 msgstr ""
37343
37344 #. type: textblock
37345 #: ../src/guestfs.pod:1357
37346 msgid "This closes the connection handle and frees up all resources used."
37347 msgstr ""
37348
37349 #. type: textblock
37350 #: ../src/guestfs.pod:1359
37351 msgid ""
37352 "If autosync was set on the handle and the handle was launched, then this "
37353 "implicitly calls various functions to unmount filesystems and sync the "
37354 "disk.  See L</guestfs_set_autosync> for more details."
37355 msgstr ""
37356
37357 #. type: textblock
37358 #: ../src/guestfs.pod:1363
37359 msgid "If a close callback was set on the handle, then it is called."
37360 msgstr ""
37361
37362 #. type: =head1
37363 #: ../src/guestfs.pod:1365
37364 msgid "ERROR HANDLING"
37365 msgstr ""
37366
37367 #. type: textblock
37368 #: ../src/guestfs.pod:1367
37369 msgid ""
37370 "API functions can return errors.  For example, almost all functions that "
37371 "return C<int> will return C<-1> to indicate an error."
37372 msgstr ""
37373
37374 #. type: textblock
37375 #: ../src/guestfs.pod:1370
37376 msgid ""
37377 "Additional information is available for errors: an error message string and "
37378 "optionally an error number (errno) if the thing that failed was a system "
37379 "call."
37380 msgstr ""
37381
37382 #. type: textblock
37383 #: ../src/guestfs.pod:1374
37384 msgid ""
37385 "You can get at the additional information about the last error on the handle "
37386 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
37387 "up an error handler with L</guestfs_set_error_handler>."
37388 msgstr ""
37389
37390 #. type: textblock
37391 #: ../src/guestfs.pod:1379
37392 msgid ""
37393 "When the handle is created, a default error handler is installed which "
37394 "prints the error message string to C<stderr>.  For small short-running "
37395 "command line programs it is sufficient to do:"
37396 msgstr ""
37397
37398 #. type: verbatim
37399 #: ../src/guestfs.pod:1383
37400 #, no-wrap
37401 msgid ""
37402 " if (guestfs_launch (g) == -1)\n"
37403 "   exit (EXIT_FAILURE);\n"
37404 "\n"
37405 msgstr ""
37406
37407 #. type: textblock
37408 #: ../src/guestfs.pod:1386
37409 msgid ""
37410 "since the default error handler will ensure that an error message has been "
37411 "printed to C<stderr> before the program exits."
37412 msgstr ""
37413
37414 #. type: textblock
37415 #: ../src/guestfs.pod:1389
37416 msgid ""
37417 "For other programs the caller will almost certainly want to install an "
37418 "alternate error handler or do error handling in-line like this:"
37419 msgstr ""
37420
37421 #. type: verbatim
37422 #: ../src/guestfs.pod:1392
37423 #, no-wrap
37424 msgid ""
37425 " /* This disables the default behaviour of printing errors\n"
37426 "    on stderr. */\n"
37427 " guestfs_set_error_handler (g, NULL, NULL);\n"
37428 " \n"
37429 msgstr ""
37430
37431 #. type: verbatim
37432 #: ../src/guestfs.pod:1396
37433 #, no-wrap
37434 msgid ""
37435 " if (guestfs_launch (g) == -1) {\n"
37436 "   /* Examine the error message and print it etc. */\n"
37437 "   char *msg = guestfs_last_error (g);\n"
37438 "   int errnum = guestfs_last_errno (g);\n"
37439 "   fprintf (stderr, \"%s\", msg);\n"
37440 "   if (errnum != 0)\n"
37441 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
37442 "   fprintf (stderr, \"\\n\");\n"
37443 "   /* ... */\n"
37444 " }\n"
37445 "\n"
37446 msgstr ""
37447
37448 #. type: textblock
37449 #: ../src/guestfs.pod:1407
37450 msgid ""
37451 "Out of memory errors are handled differently.  The default action is to call "
37452 "L<abort(3)>.  If this is undesirable, then you can set a handler using "
37453 "L</guestfs_set_out_of_memory_handler>."
37454 msgstr ""
37455
37456 #. type: textblock
37457 #: ../src/guestfs.pod:1411
37458 msgid ""
37459 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
37460 "because there is no handle if this happens there is no way to get additional "
37461 "error information.  However L</guestfs_create> is supposed to be a "
37462 "lightweight operation which can only fail because of insufficient memory (it "
37463 "returns NULL in this case)."
37464 msgstr ""
37465
37466 #. type: =head2
37467 #: ../src/guestfs.pod:1417
37468 msgid "guestfs_last_error"
37469 msgstr ""
37470
37471 #. type: verbatim
37472 #: ../src/guestfs.pod:1419
37473 #, no-wrap
37474 msgid ""
37475 " const char *guestfs_last_error (guestfs_h *g);\n"
37476 "\n"
37477 msgstr ""
37478
37479 #. type: textblock
37480 #: ../src/guestfs.pod:1421
37481 msgid ""
37482 "This returns the last error message that happened on C<g>.  If there has not "
37483 "been an error since the handle was created, then this returns C<NULL>."
37484 msgstr ""
37485
37486 #. type: textblock
37487 #: ../src/guestfs.pod:1425
37488 msgid ""
37489 "The lifetime of the returned string is until the next error occurs, or "
37490 "L</guestfs_close> is called."
37491 msgstr ""
37492
37493 #. type: =head2
37494 #: ../src/guestfs.pod:1428
37495 msgid "guestfs_last_errno"
37496 msgstr ""
37497
37498 #. type: verbatim
37499 #: ../src/guestfs.pod:1430
37500 #, no-wrap
37501 msgid ""
37502 " int guestfs_last_errno (guestfs_h *g);\n"
37503 "\n"
37504 msgstr ""
37505
37506 #. type: textblock
37507 #: ../src/guestfs.pod:1432
37508 msgid "This returns the last error number (errno) that happened on C<g>."
37509 msgstr ""
37510
37511 #. type: textblock
37512 #: ../src/guestfs.pod:1434
37513 msgid "If successful, an errno integer not equal to zero is returned."
37514 msgstr ""
37515
37516 #. type: textblock
37517 #: ../src/guestfs.pod:1436
37518 msgid "If no error, this returns 0.  This call can return 0 in three situations:"
37519 msgstr ""
37520
37521 #. type: textblock
37522 #: ../src/guestfs.pod:1443
37523 msgid "There has not been any error on the handle."
37524 msgstr ""
37525
37526 #. type: textblock
37527 #: ../src/guestfs.pod:1447
37528 msgid ""
37529 "There has been an error but the errno was meaningless.  This corresponds to "
37530 "the case where the error did not come from a failed system call, but for "
37531 "some other reason."
37532 msgstr ""
37533
37534 #. type: textblock
37535 #: ../src/guestfs.pod:1453
37536 msgid ""
37537 "There was an error from a failed system call, but for some reason the errno "
37538 "was not captured and returned.  This usually indicates a bug in libguestfs."
37539 msgstr ""
37540
37541 #. type: textblock
37542 #: ../src/guestfs.pod:1459
37543 msgid ""
37544 "Libguestfs tries to convert the errno from inside the applicance into a "
37545 "corresponding errno for the caller (not entirely trivial: the appliance "
37546 "might be running a completely different operating system from the library "
37547 "and error numbers are not standardized across Un*xen).  If this could not be "
37548 "done, then the error is translated to C<EINVAL>.  In practice this should "
37549 "only happen in very rare circumstances."
37550 msgstr ""
37551
37552 #. type: =head2
37553 #: ../src/guestfs.pod:1467
37554 msgid "guestfs_set_error_handler"
37555 msgstr ""
37556
37557 #. type: verbatim
37558 #: ../src/guestfs.pod:1469
37559 #, no-wrap
37560 msgid ""
37561 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
37562 "                                           void *opaque,\n"
37563 "                                           const char *msg);\n"
37564 " void guestfs_set_error_handler (guestfs_h *g,\n"
37565 "                                 guestfs_error_handler_cb cb,\n"
37566 "                                 void *opaque);\n"
37567 "\n"
37568 msgstr ""
37569
37570 #. type: textblock
37571 #: ../src/guestfs.pod:1476
37572 msgid ""
37573 "The callback C<cb> will be called if there is an error.  The parameters "
37574 "passed to the callback are an opaque data pointer and the error message "
37575 "string."
37576 msgstr ""
37577
37578 #. type: textblock
37579 #: ../src/guestfs.pod:1480
37580 msgid ""
37581 "C<errno> is not passed to the callback.  To get that the callback must call "
37582 "L</guestfs_last_errno>."
37583 msgstr ""
37584
37585 #. type: textblock
37586 #: ../src/guestfs.pod:1483
37587 msgid ""
37588 "Note that the message string C<msg> is freed as soon as the callback "
37589 "function returns, so if you want to stash it somewhere you must make your "
37590 "own copy."
37591 msgstr ""
37592
37593 #. type: textblock
37594 #: ../src/guestfs.pod:1487
37595 msgid "The default handler prints messages on C<stderr>."
37596 msgstr ""
37597
37598 #. type: textblock
37599 #: ../src/guestfs.pod:1489
37600 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
37601 msgstr ""
37602
37603 #. type: =head2
37604 #: ../src/guestfs.pod:1491
37605 msgid "guestfs_get_error_handler"
37606 msgstr ""
37607
37608 #. type: verbatim
37609 #: ../src/guestfs.pod:1493
37610 #, no-wrap
37611 msgid ""
37612 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
37613 "                                                     void **opaque_rtn);\n"
37614 "\n"
37615 msgstr ""
37616
37617 #. type: textblock
37618 #: ../src/guestfs.pod:1496
37619 msgid "Returns the current error handler callback."
37620 msgstr ""
37621
37622 #. type: =head2
37623 #: ../src/guestfs.pod:1498
37624 msgid "guestfs_set_out_of_memory_handler"
37625 msgstr ""
37626
37627 #. type: verbatim
37628 #: ../src/guestfs.pod:1500
37629 #, no-wrap
37630 msgid ""
37631 " typedef void (*guestfs_abort_cb) (void);\n"
37632 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
37633 "                                         guestfs_abort_cb);\n"
37634 "\n"
37635 msgstr ""
37636
37637 #. type: textblock
37638 #: ../src/guestfs.pod:1504
37639 msgid ""
37640 "The callback C<cb> will be called if there is an out of memory situation.  "
37641 "I<Note this callback must not return>."
37642 msgstr ""
37643
37644 #. type: textblock
37645 #: ../src/guestfs.pod:1507
37646 msgid "The default is to call L<abort(3)>."
37647 msgstr ""
37648
37649 #. type: textblock
37650 #: ../src/guestfs.pod:1509
37651 msgid "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
37652 msgstr ""
37653
37654 #. type: =head2
37655 #: ../src/guestfs.pod:1512
37656 msgid "guestfs_get_out_of_memory_handler"
37657 msgstr ""
37658
37659 #. type: verbatim
37660 #: ../src/guestfs.pod:1514
37661 #, no-wrap
37662 msgid ""
37663 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
37664 "\n"
37665 msgstr ""
37666
37667 #. type: textblock
37668 #: ../src/guestfs.pod:1516
37669 msgid "This returns the current out of memory handler."
37670 msgstr ""
37671
37672 #. type: =head1
37673 #: ../src/guestfs.pod:1518
37674 msgid "API CALLS"
37675 msgstr ""
37676
37677 #. type: =head1
37678 #: ../src/guestfs.pod:1522
37679 msgid "STRUCTURES"
37680 msgstr ""
37681
37682 #. type: textblock
37683 #: ../src/guestfs.pod:1524
37684 msgid "@STRUCTS@"
37685 msgstr ""
37686
37687 #. type: =head1
37688 #: ../src/guestfs.pod:1526
37689 msgid "AVAILABILITY"
37690 msgstr ""
37691
37692 #. type: =head2
37693 #: ../src/guestfs.pod:1528
37694 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
37695 msgstr ""
37696
37697 #. type: textblock
37698 #: ../src/guestfs.pod:1530
37699 msgid ""
37700 "Using L</guestfs_available> you can test availability of the following "
37701 "groups of functions.  This test queries the appliance to see if the "
37702 "appliance you are currently using supports the functionality."
37703 msgstr ""
37704
37705 #. type: textblock
37706 #: ../src/guestfs.pod:1535
37707 msgid "@AVAILABILITY@"
37708 msgstr ""
37709
37710 #. type: =head2
37711 #: ../src/guestfs.pod:1537
37712 msgid "GUESTFISH supported COMMAND"
37713 msgstr ""
37714
37715 #. type: textblock
37716 #: ../src/guestfs.pod:1539
37717 msgid ""
37718 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
37719 "prints out the available groups and whether they are supported by this build "
37720 "of libguestfs.  Note however that you have to do C<run> first."
37721 msgstr ""
37722
37723 #. type: =head2
37724 #: ../src/guestfs.pod:1544
37725 msgid "SINGLE CALLS AT COMPILE TIME"
37726 msgstr ""
37727
37728 #. type: textblock
37729 #: ../src/guestfs.pod:1546
37730 msgid ""
37731 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
37732 "function, such as:"
37733 msgstr ""
37734
37735 #. type: verbatim
37736 #: ../src/guestfs.pod:1549
37737 #, no-wrap
37738 msgid ""
37739 " #define LIBGUESTFS_HAVE_DD 1\n"
37740 "\n"
37741 msgstr ""
37742
37743 #. type: textblock
37744 #: ../src/guestfs.pod:1551
37745 msgid "if L</guestfs_dd> is available."
37746 msgstr ""
37747
37748 #. type: textblock
37749 #: ../src/guestfs.pod:1553
37750 msgid ""
37751 "Before version 1.5.8, if you needed to test whether a single libguestfs "
37752 "function is available at compile time, we recommended using build tools such "
37753 "as autoconf or cmake.  For example in autotools you could use:"
37754 msgstr ""
37755
37756 #. type: verbatim
37757 #: ../src/guestfs.pod:1558
37758 #, no-wrap
37759 msgid ""
37760 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
37761 " AC_CHECK_FUNCS([guestfs_dd])\n"
37762 "\n"
37763 msgstr ""
37764
37765 #. type: textblock
37766 #: ../src/guestfs.pod:1561
37767 msgid ""
37768 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
37769 "in your program."
37770 msgstr ""
37771
37772 #. type: =head2
37773 #: ../src/guestfs.pod:1564
37774 msgid "SINGLE CALLS AT RUN TIME"
37775 msgstr ""
37776
37777 #. type: textblock
37778 #: ../src/guestfs.pod:1566
37779 msgid ""
37780 "Testing at compile time doesn't guarantee that a function really exists in "
37781 "the library.  The reason is that you might be dynamically linked against a "
37782 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
37783 "This situation unfortunately results in a segmentation fault, which is a "
37784 "shortcoming of the C dynamic linking system itself."
37785 msgstr ""
37786
37787 #. type: textblock
37788 #: ../src/guestfs.pod:1573
37789 msgid ""
37790 "You can use L<dlopen(3)> to test if a function is available at run time, as "
37791 "in this example program (note that you still need the compile time check as "
37792 "well):"
37793 msgstr ""
37794
37795 #. type: verbatim
37796 #: ../src/guestfs.pod:1577
37797 #, no-wrap
37798 msgid ""
37799 " #include <stdio.h>\n"
37800 " #include <stdlib.h>\n"
37801 " #include <unistd.h>\n"
37802 " #include <dlfcn.h>\n"
37803 " #include <guestfs.h>\n"
37804 " \n"
37805 msgstr ""
37806
37807 #. type: verbatim
37808 #: ../src/guestfs.pod:1583
37809 #, no-wrap
37810 msgid ""
37811 " main ()\n"
37812 " {\n"
37813 " #ifdef LIBGUESTFS_HAVE_DD\n"
37814 "   void *dl;\n"
37815 "   int has_function;\n"
37816 " \n"
37817 msgstr ""
37818
37819 #. type: verbatim
37820 #: ../src/guestfs.pod:1589
37821 #, no-wrap
37822 msgid ""
37823 "   /* Test if the function guestfs_dd is really available. */\n"
37824 "   dl = dlopen (NULL, RTLD_LAZY);\n"
37825 "   if (!dl) {\n"
37826 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
37827 "     exit (EXIT_FAILURE);\n"
37828 "   }\n"
37829 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
37830 "   dlclose (dl);\n"
37831 " \n"
37832 msgstr ""
37833
37834 #. type: verbatim
37835 #: ../src/guestfs.pod:1598
37836 #, no-wrap
37837 msgid ""
37838 "   if (!has_function)\n"
37839 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
37840 "   else {\n"
37841 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
37842 "     /* Now it's safe to call\n"
37843 "     guestfs_dd (g, \"foo\", \"bar\");\n"
37844 "     */\n"
37845 "   }\n"
37846 " #else\n"
37847 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
37848 " #endif\n"
37849 "  }\n"
37850 "\n"
37851 msgstr ""
37852
37853 #. type: textblock
37854 #: ../src/guestfs.pod:1611
37855 msgid ""
37856 "You may think the above is an awful lot of hassle, and it is.  There are "
37857 "other ways outside of the C linking system to ensure that this kind of "
37858 "incompatibility never arises, such as using package versioning:"
37859 msgstr ""
37860
37861 #. type: verbatim
37862 #: ../src/guestfs.pod:1616
37863 #, no-wrap
37864 msgid ""
37865 " Requires: libguestfs >= 1.0.80\n"
37866 "\n"
37867 msgstr ""
37868
37869 #. type: =head1
37870 #: ../src/guestfs.pod:1618
37871 msgid "CALLS WITH OPTIONAL ARGUMENTS"
37872 msgstr ""
37873
37874 #. type: textblock
37875 #: ../src/guestfs.pod:1620
37876 msgid ""
37877 "A recent feature of the API is the introduction of calls which take optional "
37878 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
37879 "takes variable arguments (ie. C<...>), as in this example:"
37880 msgstr ""
37881
37882 #. type: verbatim
37883 #: ../src/guestfs.pod:1625
37884 #, no-wrap
37885 msgid ""
37886 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
37887 "\n"
37888 msgstr ""
37889
37890 #. type: textblock
37891 #: ../src/guestfs.pod:1627
37892 msgid ""
37893 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
37894 "call with no optional arguments specified:"
37895 msgstr ""
37896
37897 #. type: verbatim
37898 #: ../src/guestfs.pod:1630
37899 #, no-wrap
37900 msgid ""
37901 " guestfs_add_drive_opts (g, filename, -1);\n"
37902 "\n"
37903 msgstr ""
37904
37905 #. type: textblock
37906 #: ../src/guestfs.pod:1632
37907 msgid "With a single optional argument:"
37908 msgstr ""
37909
37910 #. type: verbatim
37911 #: ../src/guestfs.pod:1634
37912 #, no-wrap
37913 msgid ""
37914 " guestfs_add_drive_opts (g, filename,\n"
37915 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37916 "                         -1);\n"
37917 "\n"
37918 msgstr ""
37919
37920 #. type: textblock
37921 #: ../src/guestfs.pod:1638
37922 msgid "With two:"
37923 msgstr ""
37924
37925 #. type: verbatim
37926 #: ../src/guestfs.pod:1640
37927 #, no-wrap
37928 msgid ""
37929 " guestfs_add_drive_opts (g, filename,\n"
37930 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37931 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
37932 "                         -1);\n"
37933 "\n"
37934 msgstr ""
37935
37936 #. type: textblock
37937 #: ../src/guestfs.pod:1645
37938 msgid ""
37939 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
37940 "happen!"
37941 msgstr ""
37942
37943 #. type: =head2
37944 #: ../src/guestfs.pod:1648
37945 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
37946 msgstr ""
37947
37948 #. type: textblock
37949 #: ../src/guestfs.pod:1650
37950 msgid ""
37951 "The second variant has the same name with the suffix C<_va>, which works the "
37952 "same way but takes a C<va_list>.  See the C manual for details.  For the "
37953 "example function, this is declared:"
37954 msgstr ""
37955
37956 #. type: verbatim
37957 #: ../src/guestfs.pod:1654
37958 #, no-wrap
37959 msgid ""
37960 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
37961 "                                va_list args);\n"
37962 "\n"
37963 msgstr ""
37964
37965 #. type: =head2
37966 #: ../src/guestfs.pod:1657
37967 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
37968 msgstr ""
37969
37970 #. type: textblock
37971 #: ../src/guestfs.pod:1659
37972 msgid ""
37973 "The third variant is useful where you need to construct these calls.  You "
37974 "pass in a structure where you fill in the optional fields.  The structure "
37975 "has a bitmask as the first element which you must set to indicate which "
37976 "fields you have filled in.  For our example function the structure and call "
37977 "are declared:"
37978 msgstr ""
37979
37980 #. type: verbatim
37981 #: ../src/guestfs.pod:1665
37982 #, no-wrap
37983 msgid ""
37984 " struct guestfs_add_drive_opts_argv {\n"
37985 "   uint64_t bitmask;\n"
37986 "   int readonly;\n"
37987 "   const char *format;\n"
37988 "   /* ... */\n"
37989 " };\n"
37990 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
37991 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
37992 "\n"
37993 msgstr ""
37994
37995 #. type: textblock
37996 #: ../src/guestfs.pod:1674
37997 msgid "You could call it like this:"
37998 msgstr ""
37999
38000 #. type: verbatim
38001 #: ../src/guestfs.pod:1676
38002 #, no-wrap
38003 msgid ""
38004 " struct guestfs_add_drive_opts_argv optargs = {\n"
38005 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
38006 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
38007 "   .readonly = 1,\n"
38008 "   .format = \"qcow2\"\n"
38009 " };\n"
38010 " \n"
38011 msgstr ""
38012
38013 #. type: verbatim
38014 #: ../src/guestfs.pod:1683
38015 #, no-wrap
38016 msgid ""
38017 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
38018 "\n"
38019 msgstr ""
38020
38021 #. type: textblock
38022 #: ../src/guestfs.pod:1691
38023 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
38024 msgstr ""
38025
38026 #. type: textblock
38027 #: ../src/guestfs.pod:1696
38028 msgid "You do not need to fill in all fields of the structure."
38029 msgstr ""
38030
38031 #. type: textblock
38032 #: ../src/guestfs.pod:1700
38033 msgid ""
38034 "There must be a one-to-one correspondence between fields of the structure "
38035 "that are filled in, and bits set in the bitmask."
38036 msgstr ""
38037
38038 #. type: =head2
38039 #: ../src/guestfs.pod:1705
38040 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
38041 msgstr ""
38042
38043 #. type: textblock
38044 #: ../src/guestfs.pod:1707
38045 msgid ""
38046 "In other languages, optional arguments are expressed in the way that is "
38047 "natural for that language.  We refer you to the language-specific "
38048 "documentation for more details on that."
38049 msgstr ""
38050
38051 #. type: textblock
38052 #: ../src/guestfs.pod:1711
38053 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
38054 msgstr ""
38055
38056 #. type: =head2
38057 #: ../src/guestfs.pod:1713
38058 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
38059 msgstr ""
38060
38061 #. type: textblock
38062 #: ../src/guestfs.pod:1715
38063 msgid ""
38064 "B<Note:> This section documents the generic event mechanism introduced in "
38065 "libguestfs 1.10, which you should use in new code if possible.  The old "
38066 "functions C<guestfs_set_log_message_callback>, "
38067 "C<guestfs_set_subprocess_quit_callback>, "
38068 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
38069 "C<guestfs_set_progress_callback> are no longer documented in this manual "
38070 "page.  Because of the ABI guarantee, the old functions continue to work."
38071 msgstr ""
38072
38073 #. type: textblock
38074 #: ../src/guestfs.pod:1724
38075 msgid ""
38076 "Handles generate events when certain things happen, such as log messages "
38077 "being generated, progress messages during long-running operations, or the "
38078 "handle being closed.  The API calls described below let you register a "
38079 "callback to be called when events happen.  You can register multiple "
38080 "callbacks (for the same, different or overlapping sets of events), and "
38081 "individually remove callbacks.  If callbacks are not removed, then they "
38082 "remain in force until the handle is closed."
38083 msgstr ""
38084
38085 #. type: textblock
38086 #: ../src/guestfs.pod:1732
38087 msgid ""
38088 "In the current implementation, events are only generated synchronously: that "
38089 "means that events (and hence callbacks) can only happen while you are in the "
38090 "middle of making another libguestfs call.  The callback is called in the "
38091 "same thread."
38092 msgstr ""
38093
38094 #. type: textblock
38095 #: ../src/guestfs.pod:1737
38096 msgid ""
38097 "Events may contain a payload, usually nothing (void), an array of 64 bit "
38098 "unsigned integers, or a message buffer.  Payloads are discussed later on."
38099 msgstr ""
38100
38101 #. type: =head3
38102 #: ../src/guestfs.pod:1741
38103 msgid "CLASSES OF EVENTS"
38104 msgstr ""
38105
38106 #. type: =item
38107 #: ../src/guestfs.pod:1745
38108 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
38109 msgstr ""
38110
38111 #. type: textblock
38112 #: ../src/guestfs.pod:1748
38113 msgid ""
38114 "The callback function will be called while the handle is being closed "
38115 "(synchronously from L</guestfs_close>)."
38116 msgstr ""
38117
38118 #. type: textblock
38119 #: ../src/guestfs.pod:1751
38120 msgid ""
38121 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
38122 "handles that are open when the program exits.  This means that this callback "
38123 "might be called indirectly from L<exit(3)>, which can cause unexpected "
38124 "problems in higher-level languages (eg. if your HLL interpreter has already "
38125 "been cleaned up by the time this is called, and if your callback then jumps "
38126 "into some HLL function)."
38127 msgstr ""
38128
38129 #. type: textblock
38130 #: ../src/guestfs.pod:1758
38131 msgid ""
38132 "If no callback is registered: the handle is closed without any callback "
38133 "being invoked."
38134 msgstr ""
38135
38136 #. type: =item
38137 #: ../src/guestfs.pod:1761
38138 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
38139 msgstr ""
38140
38141 #. type: textblock
38142 #: ../src/guestfs.pod:1764
38143 msgid ""
38144 "The callback function will be called when the child process quits, either "
38145 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
38146 "corresponds to a transition from any state to the CONFIG state)."
38147 msgstr ""
38148
38149 #. type: textblock
38150 #: ../src/guestfs.pod:1768 ../src/guestfs.pod:1777 ../src/guestfs.pod:1894
38151 msgid "If no callback is registered: the event is ignored."
38152 msgstr ""
38153
38154 #. type: =item
38155 #: ../src/guestfs.pod:1770
38156 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
38157 msgstr ""
38158
38159 #. type: textblock
38160 #: ../src/guestfs.pod:1773
38161 msgid ""
38162 "The callback function will be called when the child process becomes ready "
38163 "first time after it has been launched.  (This corresponds to a transition "
38164 "from LAUNCHING to the READY state)."
38165 msgstr ""
38166
38167 #. type: =item
38168 #: ../src/guestfs.pod:1779
38169 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
38170 msgstr ""
38171
38172 #. type: textblock
38173 #: ../src/guestfs.pod:1782
38174 msgid ""
38175 "Some long-running operations can generate progress messages.  If this "
38176 "callback is registered, then it will be called each time a progress message "
38177 "is generated (usually two seconds after the operation started, and three "
38178 "times per second thereafter until it completes, although the frequency may "
38179 "change in future versions)."
38180 msgstr ""
38181
38182 #. type: textblock
38183 #: ../src/guestfs.pod:1788
38184 msgid ""
38185 "The callback receives in the payload four unsigned 64 bit numbers which are "
38186 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
38187 msgstr ""
38188
38189 #. type: textblock
38190 #: ../src/guestfs.pod:1791
38191 msgid ""
38192 "The units of C<total> are not defined, although for some operations C<total> "
38193 "may relate in some way to the amount of data to be transferred (eg. in bytes "
38194 "or megabytes), and C<position> may be the portion which has been "
38195 "transferred."
38196 msgstr ""
38197
38198 #. type: textblock
38199 #: ../src/guestfs.pod:1796
38200 msgid "The only defined and stable parts of the API are:"
38201 msgstr ""
38202
38203 #. type: textblock
38204 #: ../src/guestfs.pod:1802
38205 msgid ""
38206 "The callback can display to the user some type of progress bar or indicator "
38207 "which shows the ratio of C<position>:C<total>."
38208 msgstr ""
38209
38210 #. type: textblock
38211 #: ../src/guestfs.pod:1807
38212 msgid "0 E<lt>= C<position> E<lt>= C<total>"
38213 msgstr ""
38214
38215 #. type: textblock
38216 #: ../src/guestfs.pod:1811
38217 msgid ""
38218 "If any progress notification is sent during a call, then a final progress "
38219 "notification is always sent when C<position> = C<total> (I<unless> the call "
38220 "fails with an error)."
38221 msgstr ""
38222
38223 #. type: textblock
38224 #: ../src/guestfs.pod:1815
38225 msgid ""
38226 "This is to simplify caller code, so callers can easily set the progress "
38227 "indicator to \"100%\" at the end of the operation, without requiring special "
38228 "code to detect this case."
38229 msgstr ""
38230
38231 #. type: textblock
38232 #: ../src/guestfs.pod:1821
38233 msgid ""
38234 "For some calls we are unable to estimate the progress of the call, but we "
38235 "can still generate progress messages to indicate activity.  This is known as "
38236 "\"pulse mode\", and is directly supported by certain progress bar "
38237 "implementations (eg. GtkProgressBar)."
38238 msgstr ""
38239
38240 #. type: textblock
38241 #: ../src/guestfs.pod:1826
38242 msgid ""
38243 "For these calls, zero or more progress messages are generated with "
38244 "C<position = 0> and C<total = 1>, followed by a final message with "
38245 "C<position = total = 1>."
38246 msgstr ""
38247
38248 #. type: textblock
38249 #: ../src/guestfs.pod:1830
38250 msgid ""
38251 "As noted above, if the call fails with an error then the final message may "
38252 "not be generated."
38253 msgstr ""
38254
38255 #. type: textblock
38256 #: ../src/guestfs.pod:1835
38257 msgid ""
38258 "The callback also receives the procedure number (C<proc_nr>) and serial "
38259 "number (C<serial>) of the call.  These are only useful for debugging "
38260 "protocol issues, and the callback can normally ignore them.  The callback "
38261 "may want to print these numbers in error messages or debugging messages."
38262 msgstr ""
38263
38264 #. type: textblock
38265 #: ../src/guestfs.pod:1841
38266 msgid "If no callback is registered: progress messages are discarded."
38267 msgstr ""
38268
38269 #. type: =item
38270 #: ../src/guestfs.pod:1843
38271 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
38272 msgstr ""
38273
38274 #. type: textblock
38275 #: ../src/guestfs.pod:1846
38276 msgid ""
38277 "The callback function is called whenever a log message is generated by qemu, "
38278 "the appliance kernel, guestfsd (daemon), or utility programs."
38279 msgstr ""
38280
38281 #. type: textblock
38282 #: ../src/guestfs.pod:1849
38283 msgid ""
38284 "If the verbose flag (L</guestfs_set_verbose>) is set before launch "
38285 "(L</guestfs_launch>) then additional debug messages are generated."
38286 msgstr ""
38287
38288 #. type: textblock
38289 #: ../src/guestfs.pod:1852 ../src/guestfs.pod:1866
38290 msgid ""
38291 "If no callback is registered: the messages are discarded unless the verbose "
38292 "flag is set in which case they are sent to stderr.  You can override the "
38293 "printing of verbose messages to stderr by setting up a callback."
38294 msgstr ""
38295
38296 #. type: =item
38297 #: ../src/guestfs.pod:1857
38298 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
38299 msgstr ""
38300
38301 #. type: textblock
38302 #: ../src/guestfs.pod:1860
38303 msgid ""
38304 "The callback function is called whenever a log message is generated by the "
38305 "library part of libguestfs."
38306 msgstr ""
38307
38308 #. type: textblock
38309 #: ../src/guestfs.pod:1863
38310 msgid ""
38311 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
38312 "messages are generated."
38313 msgstr ""
38314
38315 #. type: =item
38316 #: ../src/guestfs.pod:1871
38317 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
38318 msgstr ""
38319
38320 #. type: textblock
38321 #: ../src/guestfs.pod:1874
38322 msgid ""
38323 "The callback function is called whenever a trace message is generated.  This "
38324 "only applies if the trace flag (L</guestfs_set_trace>) is set."
38325 msgstr ""
38326
38327 #. type: textblock
38328 #: ../src/guestfs.pod:1877
38329 msgid ""
38330 "If no callback is registered: the messages are sent to stderr.  You can "
38331 "override the printing of trace messages to stderr by setting up a callback."
38332 msgstr ""
38333
38334 #. type: =item
38335 #: ../src/guestfs.pod:1881
38336 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
38337 msgstr ""
38338
38339 #. type: textblock
38340 #: ../src/guestfs.pod:1884
38341 msgid "The callback function is called whenever a libguestfs function is entered."
38342 msgstr ""
38343
38344 #. type: textblock
38345 #: ../src/guestfs.pod:1887
38346 msgid ""
38347 "The payload is a string which contains the name of the function that we are "
38348 "entering (not including C<guestfs_> prefix)."
38349 msgstr ""
38350
38351 #. type: textblock
38352 #: ../src/guestfs.pod:1890
38353 msgid ""
38354 "Note that libguestfs functions can call themselves, so you may see many "
38355 "events from a single call.  A few libguestfs functions do not generate this "
38356 "event."
38357 msgstr ""
38358
38359 #. type: =head3
38360 #: ../src/guestfs.pod:1898
38361 msgid "guestfs_set_event_callback"
38362 msgstr ""
38363
38364 #. type: verbatim
38365 #: ../src/guestfs.pod:1900
38366 #, no-wrap
38367 msgid ""
38368 " int guestfs_set_event_callback (guestfs_h *g,\n"
38369 "                                 guestfs_event_callback cb,\n"
38370 "                                 uint64_t event_bitmask,\n"
38371 "                                 int flags,\n"
38372 "                                 void *opaque);\n"
38373 "\n"
38374 msgstr ""
38375
38376 #. type: textblock
38377 #: ../src/guestfs.pod:1906
38378 msgid ""
38379 "This function registers a callback (C<cb>) for all event classes in the "
38380 "C<event_bitmask>."
38381 msgstr ""
38382
38383 #. type: textblock
38384 #: ../src/guestfs.pod:1909
38385 msgid ""
38386 "For example, to register for all log message events, you could call this "
38387 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
38388 "To register a single callback for all possible classes of events, use "
38389 "C<GUESTFS_EVENT_ALL>."
38390 msgstr ""
38391
38392 #. type: textblock
38393 #: ../src/guestfs.pod:1915
38394 msgid "C<flags> should always be passed as 0."
38395 msgstr ""
38396
38397 #. type: textblock
38398 #: ../src/guestfs.pod:1917
38399 msgid ""
38400 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
38401 "it for any purpose."
38402 msgstr ""
38403
38404 #. type: textblock
38405 #: ../src/guestfs.pod:1920
38406 msgid ""
38407 "The return value is the event handle (an integer) which you can use to "
38408 "delete the callback (see below)."
38409 msgstr ""
38410
38411 #. type: textblock
38412 #: ../src/guestfs.pod:1923
38413 msgid ""
38414 "If there is an error, this function returns C<-1>, and sets the error in the "
38415 "handle in the usual way (see L</guestfs_last_error> etc.)"
38416 msgstr ""
38417
38418 #. type: textblock
38419 #: ../src/guestfs.pod:1926
38420 msgid ""
38421 "Callbacks remain in effect until they are deleted, or until the handle is "
38422 "closed."
38423 msgstr ""
38424
38425 #. type: textblock
38426 #: ../src/guestfs.pod:1929
38427 msgid ""
38428 "In the case where multiple callbacks are registered for a particular event "
38429 "class, all of the callbacks are called.  The order in which multiple "
38430 "callbacks are called is not defined."
38431 msgstr ""
38432
38433 #. type: =head3
38434 #: ../src/guestfs.pod:1933
38435 msgid "guestfs_delete_event_callback"
38436 msgstr ""
38437
38438 #. type: verbatim
38439 #: ../src/guestfs.pod:1935
38440 #, no-wrap
38441 msgid ""
38442 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
38443 "\n"
38444 msgstr ""
38445
38446 #. type: textblock
38447 #: ../src/guestfs.pod:1937
38448 msgid ""
38449 "Delete a callback that was previously registered.  C<event_handle> should be "
38450 "the integer that was returned by a previous call to "
38451 "C<guestfs_set_event_callback> on the same handle."
38452 msgstr ""
38453
38454 #. type: =head3
38455 #: ../src/guestfs.pod:1941
38456 msgid "guestfs_event_callback"
38457 msgstr ""
38458
38459 #. type: verbatim
38460 #: ../src/guestfs.pod:1943
38461 #, no-wrap
38462 msgid ""
38463 " typedef void (*guestfs_event_callback) (\n"
38464 "                  guestfs_h *g,\n"
38465 "                  void *opaque,\n"
38466 "                  uint64_t event,\n"
38467 "                  int event_handle,\n"
38468 "                  int flags,\n"
38469 "                  const char *buf, size_t buf_len,\n"
38470 "                  const uint64_t *array, size_t array_len);\n"
38471 "\n"
38472 msgstr ""
38473
38474 #. type: textblock
38475 #: ../src/guestfs.pod:1952
38476 msgid "This is the type of the event callback function that you have to provide."
38477 msgstr ""
38478
38479 #. type: textblock
38480 #: ../src/guestfs.pod:1955
38481 msgid ""
38482 "The basic parameters are: the handle (C<g>), the opaque user pointer "
38483 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
38484 "handle, and C<flags> which in the current API you should ignore."
38485 msgstr ""
38486
38487 #. type: textblock
38488 #: ../src/guestfs.pod:1959
38489 msgid ""
38490 "The remaining parameters contain the event payload (if any).  Each event may "
38491 "contain a payload, which usually relates to the event class, but for future "
38492 "proofing your code should be written to handle any payload for any event "
38493 "class."
38494 msgstr ""
38495
38496 #. type: textblock
38497 #: ../src/guestfs.pod:1964
38498 msgid ""
38499 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
38500 "there is no message buffer).  Note that this message buffer can contain "
38501 "arbitrary 8 bit data, including NUL bytes."
38502 msgstr ""
38503
38504 #. type: textblock
38505 #: ../src/guestfs.pod:1968
38506 msgid ""
38507 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
38508 "moment this is only used for progress messages."
38509 msgstr ""
38510
38511 #. type: =head3
38512 #: ../src/guestfs.pod:1971
38513 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
38514 msgstr ""
38515
38516 #. type: textblock
38517 #: ../src/guestfs.pod:1973
38518 msgid ""
38519 "One motivation for the generic event API was to allow GUI programs to "
38520 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
38521 "unconditionally to C<stderr>."
38522 msgstr ""
38523
38524 #. type: textblock
38525 #: ../src/guestfs.pod:1977
38526 msgid ""
38527 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
38528 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
38529 "messages are not events; you must capture error messages separately)."
38530 msgstr ""
38531
38532 #. type: textblock
38533 #: ../src/guestfs.pod:1982
38534 msgid ""
38535 "Programs have to set up a callback to capture the classes of events of "
38536 "interest:"
38537 msgstr ""
38538
38539 #. type: verbatim
38540 #: ../src/guestfs.pod:1985
38541 #, no-wrap
38542 msgid ""
38543 " int eh =\n"
38544 "   guestfs_set_event_callback\n"
38545 "     (g, message_callback,\n"
38546 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
38547 "      GUESTFS_EVENT_TRACE,\n"
38548 "      0, NULL) == -1)\n"
38549 " if (eh == -1) {\n"
38550 "   // handle error in the usual way\n"
38551 " }\n"
38552 "\n"
38553 msgstr ""
38554
38555 #. type: textblock
38556 #: ../src/guestfs.pod:1995
38557 msgid ""
38558 "The callback can then direct messages to the appropriate place.  In this "
38559 "example, messages are directed to syslog:"
38560 msgstr ""
38561
38562 #. type: verbatim
38563 #: ../src/guestfs.pod:1998
38564 #, no-wrap
38565 msgid ""
38566 " static void\n"
38567 " message_callback (\n"
38568 "         guestfs_h *g,\n"
38569 "         void *opaque,\n"
38570 "         uint64_t event,\n"
38571 "         int event_handle,\n"
38572 "         int flags,\n"
38573 "         const char *buf, size_t buf_len,\n"
38574 "         const uint64_t *array, size_t array_len)\n"
38575 " {\n"
38576 "   const int priority = LOG_USER|LOG_INFO;\n"
38577 "   if (buf_len > 0)\n"
38578 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
38579 " }\n"
38580 "\n"
38581 msgstr ""
38582
38583 #. type: =head1
38584 #: ../src/guestfs.pod:2013
38585 msgid "CANCELLING LONG TRANSFERS"
38586 msgstr ""
38587
38588 #. type: textblock
38589 #: ../src/guestfs.pod:2015
38590 msgid ""
38591 "Some operations can be cancelled by the caller while they are in progress.  "
38592 "Currently only operations that involve uploading or downloading data can be "
38593 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
38594 "parameters in the generator)."
38595 msgstr ""
38596
38597 #. type: =head2
38598 #: ../src/guestfs.pod:2020
38599 msgid "guestfs_user_cancel"
38600 msgstr ""
38601
38602 #. type: verbatim
38603 #: ../src/guestfs.pod:2022
38604 #, no-wrap
38605 msgid ""
38606 " void guestfs_user_cancel (guestfs_h *g);\n"
38607 "\n"
38608 msgstr ""
38609
38610 #. type: textblock
38611 #: ../src/guestfs.pod:2024
38612 msgid "C<guestfs_user_cancel> cancels the current upload or download operation."
38613 msgstr ""
38614
38615 #. type: textblock
38616 #: ../src/guestfs.pod:2027
38617 msgid ""
38618 "Unlike most other libguestfs calls, this function is signal safe and thread "
38619 "safe.  You can call it from a signal handler or from another thread, without "
38620 "needing to do any locking."
38621 msgstr ""
38622
38623 #. type: textblock
38624 #: ../src/guestfs.pod:2031
38625 msgid ""
38626 "The transfer that was in progress (if there is one) will stop shortly "
38627 "afterwards, and will return an error.  The errno (see "
38628 "L</guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
38629 "out if the operation was cancelled or failed because of another error."
38630 msgstr ""
38631
38632 #. type: textblock
38633 #: ../src/guestfs.pod:2037
38634 msgid ""
38635 "No cleanup is performed: for example, if a file was being uploaded then "
38636 "after cancellation there may be a partially uploaded file.  It is the "
38637 "caller's responsibility to clean up if necessary."
38638 msgstr ""
38639
38640 #. type: textblock
38641 #: ../src/guestfs.pod:2041
38642 msgid "There are two common places that you might call C<guestfs_user_cancel>."
38643 msgstr ""
38644
38645 #. type: textblock
38646 #: ../src/guestfs.pod:2043
38647 msgid ""
38648 "In an interactive text-based program, you might call it from a C<SIGINT> "
38649 "signal handler so that pressing C<^C> cancels the current operation.  (You "
38650 "also need to call L</guestfs_set_pgroup> so that child processes don't "
38651 "receive the C<^C> signal)."
38652 msgstr ""
38653
38654 #. type: textblock
38655 #: ../src/guestfs.pod:2048
38656 msgid ""
38657 "In a graphical program, when the main thread is displaying a progress bar "
38658 "with a cancel button, wire up the cancel button to call this function."
38659 msgstr ""
38660
38661 #. type: =head1
38662 #: ../src/guestfs.pod:2052
38663 msgid "PRIVATE DATA AREA"
38664 msgstr ""
38665
38666 #. type: textblock
38667 #: ../src/guestfs.pod:2054
38668 msgid ""
38669 "You can attach named pieces of private data to the libguestfs handle, fetch "
38670 "them by name, and walk over them, for the lifetime of the handle.  This is "
38671 "called the private data area and is only available from the C API."
38672 msgstr ""
38673
38674 #. type: textblock
38675 #: ../src/guestfs.pod:2059
38676 msgid "To attach a named piece of data, use the following call:"
38677 msgstr ""
38678
38679 #. type: verbatim
38680 #: ../src/guestfs.pod:2061
38681 #, no-wrap
38682 msgid ""
38683 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
38684 "\n"
38685 msgstr ""
38686
38687 #. type: textblock
38688 #: ../src/guestfs.pod:2063
38689 msgid ""
38690 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
38691 "pointer (which can be C<NULL>).  Any previous item with the same key is "
38692 "overwritten."
38693 msgstr ""
38694
38695 #. type: textblock
38696 #: ../src/guestfs.pod:2067
38697 msgid ""
38698 "You can use any C<key> you want, but your key should I<not> start with an "
38699 "underscore character.  Keys beginning with an underscore character are "
38700 "reserved for internal libguestfs purposes (eg. for implementing language "
38701 "bindings).  It is recommended that you prefix the key with some unique "
38702 "string to avoid collisions with other users."
38703 msgstr ""
38704
38705 #. type: textblock
38706 #: ../src/guestfs.pod:2073
38707 msgid "To retrieve the pointer, use:"
38708 msgstr ""
38709
38710 #. type: verbatim
38711 #: ../src/guestfs.pod:2075
38712 #, no-wrap
38713 msgid ""
38714 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
38715 "\n"
38716 msgstr ""
38717
38718 #. type: textblock
38719 #: ../src/guestfs.pod:2077
38720 msgid ""
38721 "This function returns C<NULL> if either no data is found associated with "
38722 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
38723 "C<NULL>."
38724 msgstr ""
38725
38726 #. type: textblock
38727 #: ../src/guestfs.pod:2081
38728 msgid ""
38729 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
38730 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
38731 "all.  In particular, libguestfs does I<not> try to free the data when the "
38732 "handle is closed.  If the data must be freed, then the caller must either "
38733 "free it before calling L</guestfs_close> or must set up a close callback to "
38734 "do it (see L</GUESTFS_EVENT_CLOSE>)."
38735 msgstr ""
38736
38737 #. type: textblock
38738 #: ../src/guestfs.pod:2088
38739 msgid "To walk over all entries, use these two functions:"
38740 msgstr ""
38741
38742 #. type: verbatim
38743 #: ../src/guestfs.pod:2090
38744 #, no-wrap
38745 msgid ""
38746 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
38747 "\n"
38748 msgstr ""
38749
38750 #. type: verbatim
38751 #: ../src/guestfs.pod:2092
38752 #, no-wrap
38753 msgid ""
38754 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
38755 "\n"
38756 msgstr ""
38757
38758 #. type: textblock
38759 #: ../src/guestfs.pod:2094
38760 msgid ""
38761 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
38762 "not have any particular meaning -- keys are not returned in any defined "
38763 "order).  A pointer to the key is returned in C<*key_rtn> and the "
38764 "corresponding data pointer is returned from the function.  C<NULL> is "
38765 "returned if there are no keys stored in the handle."
38766 msgstr ""
38767
38768 #. type: textblock
38769 #: ../src/guestfs.pod:2100
38770 msgid ""
38771 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
38772 "value of this function is also C<NULL> is there are no further entries to "
38773 "return."
38774 msgstr ""
38775
38776 #. type: textblock
38777 #: ../src/guestfs.pod:2104
38778 msgid "Notes about walking over entries:"
38779 msgstr ""
38780
38781 #. type: textblock
38782 #: ../src/guestfs.pod:2110
38783 msgid "You must not call C<guestfs_set_private> while walking over the entries."
38784 msgstr ""
38785
38786 #. type: textblock
38787 #: ../src/guestfs.pod:2115
38788 msgid ""
38789 "The handle maintains an internal iterator which is reset when you call "
38790 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
38791 "call C<guestfs_set_private>."
38792 msgstr ""
38793
38794 #. type: textblock
38795 #: ../src/guestfs.pod:2121
38796 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
38797 msgstr ""
38798
38799 #. type: verbatim
38800 #: ../src/guestfs.pod:2123
38801 #, no-wrap
38802 msgid ""
38803 " guestfs_set_private (g, key, NULL);\n"
38804 "\n"
38805 msgstr ""
38806
38807 #. type: textblock
38808 #: ../src/guestfs.pod:2125
38809 msgid "then that C<key> is not returned when walking."
38810 msgstr ""
38811
38812 #. type: textblock
38813 #: ../src/guestfs.pod:2129
38814 msgid ""
38815 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
38816 "C<guestfs_next_private> or C<guestfs_set_private>."
38817 msgstr ""
38818
38819 #. type: textblock
38820 #: ../src/guestfs.pod:2135
38821 msgid ""
38822 "The following example code shows how to print all keys and data pointers "
38823 "that are associated with the handle C<g>:"
38824 msgstr ""
38825
38826 #. type: verbatim
38827 #: ../src/guestfs.pod:2138
38828 #, no-wrap
38829 msgid ""
38830 " const char *key;\n"
38831 " void *data = guestfs_first_private (g, &key);\n"
38832 " while (data != NULL)\n"
38833 "   {\n"
38834 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
38835 "     data = guestfs_next_private (g, &key);\n"
38836 "   }\n"
38837 "\n"
38838 msgstr ""
38839
38840 #. type: textblock
38841 #: ../src/guestfs.pod:2146
38842 msgid ""
38843 "More commonly you are only interested in keys that begin with an "
38844 "application-specific prefix C<foo_>.  Modify the loop like so:"
38845 msgstr ""
38846
38847 #. type: verbatim
38848 #: ../src/guestfs.pod:2149
38849 #, no-wrap
38850 msgid ""
38851 " const char *key;\n"
38852 " void *data = guestfs_first_private (g, &key);\n"
38853 " while (data != NULL)\n"
38854 "   {\n"
38855 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
38856 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
38857 "     data = guestfs_next_private (g, &key);\n"
38858 "   }\n"
38859 "\n"
38860 msgstr ""
38861
38862 #. type: textblock
38863 #: ../src/guestfs.pod:2158
38864 msgid ""
38865 "If you need to modify keys while walking, then you have to jump back to the "
38866 "beginning of the loop.  For example, to delete all keys prefixed with "
38867 "C<foo_>:"
38868 msgstr ""
38869
38870 #. type: verbatim
38871 #: ../src/guestfs.pod:2162
38872 #, no-wrap
38873 msgid ""
38874 "  const char *key;\n"
38875 "  void *data;\n"
38876 " again:\n"
38877 "  data = guestfs_first_private (g, &key);\n"
38878 "  while (data != NULL)\n"
38879 "    {\n"
38880 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
38881 "        {\n"
38882 "          guestfs_set_private (g, key, NULL);\n"
38883 "          /* note that 'key' pointer is now invalid, and so is\n"
38884 "             the internal iterator */\n"
38885 "          goto again;\n"
38886 "        }\n"
38887 "      data = guestfs_next_private (g, &key);\n"
38888 "    }\n"
38889 "\n"
38890 msgstr ""
38891
38892 #. type: textblock
38893 #: ../src/guestfs.pod:2178
38894 msgid ""
38895 "Note that the above loop is guaranteed to terminate because the keys are "
38896 "being deleted, but other manipulations of keys within the loop might not "
38897 "terminate unless you also maintain an indication of which keys have been "
38898 "visited."
38899 msgstr ""
38900
38901 #. type: =head1
38902 #: ../src/guestfs.pod:2183
38903 msgid "SYSTEMTAP"
38904 msgstr ""
38905
38906 #. type: textblock
38907 #: ../src/guestfs.pod:2185
38908 msgid ""
38909 "The libguestfs C library can be probed using systemtap or DTrace.  This is "
38910 "true of any library, not just libguestfs.  However libguestfs also contains "
38911 "static markers to help in probing internal operations."
38912 msgstr ""
38913
38914 #. type: textblock
38915 #: ../src/guestfs.pod:2189
38916 msgid "You can list all the static markers by doing:"
38917 msgstr ""
38918
38919 #. type: verbatim
38920 #: ../src/guestfs.pod:2191
38921 #, no-wrap
38922 msgid ""
38923 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
38924 "              .provider(\"guestfs\").mark(\"*\")'\n"
38925 "\n"
38926 msgstr ""
38927
38928 #. type: textblock
38929 #: ../src/guestfs.pod:2194
38930 msgid ""
38931 "B<Note:> These static markers are I<not> part of the stable API and may "
38932 "change in future versions."
38933 msgstr ""
38934
38935 #. type: =head2
38936 #: ../src/guestfs.pod:2197
38937 msgid "SYSTEMTAP SCRIPT EXAMPLE"
38938 msgstr ""
38939
38940 #. type: textblock
38941 #: ../src/guestfs.pod:2199
38942 msgid ""
38943 "This script contains examples of displaying both the static markers and some "
38944 "ordinary C entry points:"
38945 msgstr ""
38946
38947 #. type: verbatim
38948 #: ../src/guestfs.pod:2202
38949 #, no-wrap
38950 msgid ""
38951 " global last;\n"
38952 " \n"
38953 msgstr ""
38954
38955 #. type: verbatim
38956 #: ../src/guestfs.pod:2204
38957 #, no-wrap
38958 msgid ""
38959 " function display_time () {\n"
38960 "       now = gettimeofday_us ();\n"
38961 "       delta = 0;\n"
38962 "       if (last > 0)\n"
38963 "             delta = now - last;\n"
38964 "       last = now;\n"
38965 " \n"
38966 msgstr ""
38967
38968 #. type: verbatim
38969 #: ../src/guestfs.pod:2211
38970 #, no-wrap
38971 msgid ""
38972 "       printf (\"%d (+%d):\", now, delta);\n"
38973 " }\n"
38974 " \n"
38975 msgstr ""
38976
38977 #. type: verbatim
38978 #: ../src/guestfs.pod:2214
38979 #, no-wrap
38980 msgid ""
38981 " probe begin {\n"
38982 "       last = 0;\n"
38983 "       printf (\"ready\\n\");\n"
38984 " }\n"
38985 " \n"
38986 msgstr ""
38987
38988 #. type: verbatim
38989 #: ../src/guestfs.pod:2219
38990 #, no-wrap
38991 msgid ""
38992 " /* Display all calls to static markers. */\n"
38993 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
38994 "           .provider(\"guestfs\").mark(\"*\") ? {\n"
38995 "       display_time();\n"
38996 "       printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
38997 " }\n"
38998 " \n"
38999 msgstr ""
39000
39001 #. type: verbatim
39002 #: ../src/guestfs.pod:2226
39003 #, no-wrap
39004 msgid ""
39005 " /* Display all calls to guestfs_mkfs* functions. */\n"
39006 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
39007 "           .function(\"guestfs_mkfs*\") ? {\n"
39008 "       display_time();\n"
39009 "       printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
39010 " }\n"
39011 "\n"
39012 msgstr ""
39013
39014 #. type: textblock
39015 #: ../src/guestfs.pod:2233
39016 msgid ""
39017 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
39018 "program.  Note that you either have to be root, or you have to add yourself "
39019 "to several special stap groups.  Consult the systemtap documentation for "
39020 "more information."
39021 msgstr ""
39022
39023 #. type: verbatim
39024 #: ../src/guestfs.pod:2238
39025 #, no-wrap
39026 msgid ""
39027 " # stap /tmp/test.stap\n"
39028 " ready\n"
39029 "\n"
39030 msgstr ""
39031
39032 #. type: textblock
39033 #: ../src/guestfs.pod:2241
39034 msgid "In another terminal, run a guestfish command such as this:"
39035 msgstr ""
39036
39037 #. type: textblock
39038 #: ../src/guestfs.pod:2245
39039 msgid "In the first terminal, stap trace output similar to this is shown:"
39040 msgstr ""
39041
39042 #. type: verbatim
39043 #: ../src/guestfs.pod:2247
39044 #, no-wrap
39045 msgid ""
39046 " 1318248056692655 (+0):\tlaunch_start\n"
39047 " 1318248056692850 (+195):       launch_build_appliance_start\n"
39048 " 1318248056818285 (+125435):    launch_build_appliance_end\n"
39049 " 1318248056838059 (+19774):     launch_run_qemu\n"
39050 " 1318248061071167 (+4233108):   launch_end\n"
39051 " 1318248061280324 (+209157):    guestfs_mkfs g=0x1024ab0 fstype=0x46116f "
39052 "device=0x1024e60\n"
39053 "\n"
39054 msgstr ""
39055
39056 #. type: =end
39057 #: ../src/guestfs.pod:2254 ../src/guestfs.pod:2259
39058 msgid "html"
39059 msgstr ""
39060
39061 #. type: textblock
39062 #: ../src/guestfs.pod:2256
39063 msgid ""
39064 "<!-- old anchor for the next section --> <a "
39065 "name=\"state_machine_and_low_level_event_api\"/>"
39066 msgstr ""
39067
39068 #. type: =head1
39069 #: ../src/guestfs.pod:2261
39070 msgid "ARCHITECTURE"
39071 msgstr ""
39072
39073 #. type: textblock
39074 #: ../src/guestfs.pod:2263
39075 msgid ""
39076 "Internally, libguestfs is implemented by running an appliance (a special "
39077 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
39078 "process of the main program."
39079 msgstr ""
39080
39081 #. type: verbatim
39082 #: ../src/guestfs.pod:2267
39083 #, no-wrap
39084 msgid ""
39085 "  ___________________\n"
39086 " /                   \\\n"
39087 " | main program      |\n"
39088 " |                   |\n"
39089 " |                   |           child process / appliance\n"
39090 " |                   |           __________________________\n"
39091 " |                   |          / qemu                     \\\n"
39092 " +-------------------+   RPC    |      +-----------------+ |\n"
39093 " | libguestfs     <--------------------> guestfsd        | |\n"
39094 " |                   |          |      +-----------------+ |\n"
39095 " \\___________________/          |      | Linux kernel    | |\n"
39096 "                                |      +--^--------------+ |\n"
39097 "                                \\_________|________________/\n"
39098 "                                          |\n"
39099 "                                   _______v______\n"
39100 "                                  /              \\\n"
39101 "                                  | Device or    |\n"
39102 "                                  | disk image   |\n"
39103 "                                  \\______________/\n"
39104 "\n"
39105 msgstr ""
39106
39107 #. type: textblock
39108 #: ../src/guestfs.pod:2287
39109 msgid ""
39110 "The library, linked to the main program, creates the child process and hence "
39111 "the appliance in the L</guestfs_launch> function."
39112 msgstr ""
39113
39114 #. type: textblock
39115 #: ../src/guestfs.pod:2290
39116 msgid ""
39117 "Inside the appliance is a Linux kernel and a complete stack of userspace "
39118 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
39119 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
39120 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
39121 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
39122 "attached to the qemu process which translates device access by the "
39123 "appliance's Linux kernel into accesses to the image."
39124 msgstr ""
39125
39126 #. type: textblock
39127 #: ../src/guestfs.pod:2299
39128 msgid ""
39129 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
39130 "Although the disk image you are attached to might also be used by some "
39131 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
39132 "care if both libguestfs's qemu process and your virtual machine are trying "
39133 "to update the disk image at the same time, since these usually results in "
39134 "massive disk corruption)."
39135 msgstr ""
39136
39137 #. type: =head1
39138 #: ../src/guestfs.pod:2306
39139 msgid "STATE MACHINE"
39140 msgstr ""
39141
39142 #. type: textblock
39143 #: ../src/guestfs.pod:2308
39144 msgid "libguestfs uses a state machine to model the child process:"
39145 msgstr ""
39146
39147 #. type: verbatim
39148 #: ../src/guestfs.pod:2310
39149 #, no-wrap
39150 msgid ""
39151 "                         |\n"
39152 "                    guestfs_create\n"
39153 "                         |\n"
39154 "                         |\n"
39155 "                     ____V_____\n"
39156 "                    /          \\\n"
39157 "                    |  CONFIG  |\n"
39158 "                    \\__________/\n"
39159 "                     ^ ^   ^  \\\n"
39160 "                    /  |    \\  \\ guestfs_launch\n"
39161 "                   /   |    _\\__V______\n"
39162 "                  /    |   /           \\\n"
39163 "                 /     |   | LAUNCHING |\n"
39164 "                /      |   \\___________/\n"
39165 "               /       |       /\n"
39166 "              /        |  guestfs_launch\n"
39167 "             /         |     /\n"
39168 "    ______  /        __|____V\n"
39169 "   /      \\ ------> /        \\\n"
39170 "   | BUSY |         | READY  |\n"
39171 "   \\______/ <------ \\________/\n"
39172 "\n"
39173 msgstr ""
39174
39175 #. type: textblock
39176 #: ../src/guestfs.pod:2332
39177 msgid ""
39178 "The normal transitions are (1) CONFIG (when the handle is created, but there "
39179 "is no child process), (2) LAUNCHING (when the child process is booting up), "
39180 "(3) alternating between READY and BUSY as commands are issued to, and "
39181 "carried out by, the child process."
39182 msgstr ""
39183
39184 #. type: textblock
39185 #: ../src/guestfs.pod:2337
39186 msgid ""
39187 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
39188 "asynchronously at any time (eg. due to some internal error), and that causes "
39189 "the state to transition back to CONFIG."
39190 msgstr ""
39191
39192 #. type: textblock
39193 #: ../src/guestfs.pod:2341
39194 msgid ""
39195 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
39196 "issued when in the CONFIG state."
39197 msgstr ""
39198
39199 #. type: textblock
39200 #: ../src/guestfs.pod:2344
39201 msgid ""
39202 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
39203 "L</guestfs_launch> blocks until the child process is READY to accept "
39204 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
39205 "moves the state from CONFIG to LAUNCHING while it is running."
39206 msgstr ""
39207
39208 #. type: textblock
39209 #: ../src/guestfs.pod:2350
39210 msgid ""
39211 "API actions such as L</guestfs_mount> can only be issued when in the READY "
39212 "state.  These API calls block waiting for the command to be carried out "
39213 "(ie. the state to transition to BUSY and then back to READY).  There are no "
39214 "non-blocking versions, and no way to issue more than one command per handle "
39215 "at the same time."
39216 msgstr ""
39217
39218 #. type: textblock
39219 #: ../src/guestfs.pod:2356
39220 msgid ""
39221 "Finally, the child process sends asynchronous messages back to the main "
39222 "program, such as kernel log messages.  You can register a callback to "
39223 "receive these messages."
39224 msgstr ""
39225
39226 #. type: =head1
39227 #: ../src/guestfs.pod:2360
39228 msgid "INTERNALS"
39229 msgstr ""
39230
39231 #. type: =head2
39232 #: ../src/guestfs.pod:2362
39233 msgid "APPLIANCE BOOT PROCESS"
39234 msgstr ""
39235
39236 #. type: textblock
39237 #: ../src/guestfs.pod:2364
39238 msgid ""
39239 "This process has evolved and continues to evolve.  The description here "
39240 "corresponds only to the current version of libguestfs and is provided for "
39241 "information only."
39242 msgstr ""
39243
39244 #. type: textblock
39245 #: ../src/guestfs.pod:2368
39246 msgid ""
39247 "In order to follow the stages involved below, enable libguestfs debugging "
39248 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
39249 msgstr ""
39250
39251 #. type: =item
39252 #: ../src/guestfs.pod:2373
39253 msgid "Create the appliance"
39254 msgstr ""
39255
39256 #. type: textblock
39257 #: ../src/guestfs.pod:2375
39258 msgid ""
39259 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
39260 "initrd and the appliance."
39261 msgstr ""
39262
39263 #. type: textblock
39264 #: ../src/guestfs.pod:2378
39265 msgid ""
39266 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
39267 "directory if C<TMPDIR> is set)."
39268 msgstr ""
39269
39270 #. type: textblock
39271 #: ../src/guestfs.pod:2381
39272 msgid ""
39273 "For a complete description of how the appliance is created and cached, read "
39274 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
39275 msgstr ""
39276
39277 #. type: =item
39278 #: ../src/guestfs.pod:2385
39279 msgid "Start qemu and boot the kernel"
39280 msgstr ""
39281
39282 #. type: textblock
39283 #: ../src/guestfs.pod:2387
39284 msgid "qemu is invoked to boot the kernel."
39285 msgstr ""
39286
39287 #. type: =item
39288 #: ../src/guestfs.pod:2389
39289 msgid "Run the initrd"
39290 msgstr ""
39291
39292 #. type: textblock
39293 #: ../src/guestfs.pod:2391
39294 msgid ""
39295 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
39296 "appliance.  The purpose of the initrd is to load enough kernel modules in "
39297 "order that the appliance itself can be mounted and started."
39298 msgstr ""
39299
39300 #. type: textblock
39301 #: ../src/guestfs.pod:2395
39302 msgid ""
39303 "The initrd is a cpio archive called "
39304 "C</var/tmp/.guestfs-E<lt>UIDE<gt>/initrd>."
39305 msgstr ""
39306
39307 #. type: textblock
39308 #: ../src/guestfs.pod:2398
39309 msgid ""
39310 "When the initrd has started you will see messages showing that kernel "
39311 "modules are being loaded, similar to this:"
39312 msgstr ""
39313
39314 #. type: verbatim
39315 #: ../src/guestfs.pod:2401
39316 #, no-wrap
39317 msgid ""
39318 " febootstrap: ext2 mini initrd starting up\n"
39319 " febootstrap: mounting /sys\n"
39320 " febootstrap: internal insmod libcrc32c.ko\n"
39321 " febootstrap: internal insmod crc32c-intel.ko\n"
39322 "\n"
39323 msgstr ""
39324
39325 #. type: =item
39326 #: ../src/guestfs.pod:2406
39327 msgid "Find and mount the appliance device"
39328 msgstr ""
39329
39330 #. type: textblock
39331 #: ../src/guestfs.pod:2408
39332 msgid ""
39333 "The appliance is a sparse file containing an ext2 filesystem which contains "
39334 "a familiar (although reduced in size) Linux operating system.  It would "
39335 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
39336 msgstr ""
39337
39338 #. type: textblock
39339 #: ../src/guestfs.pod:2412
39340 msgid ""
39341 "The regular disks being inspected by libguestfs are the first devices "
39342 "exposed by qemu (eg. as C</dev/vda>)."
39343 msgstr ""
39344
39345 #. type: textblock
39346 #: ../src/guestfs.pod:2415
39347 msgid ""
39348 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
39349 "there was only one regular disk)."
39350 msgstr ""
39351
39352 #. type: textblock
39353 #: ../src/guestfs.pod:2418
39354 msgid ""
39355 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
39356 "and switch root into the appliance, and run C</init> from the appliance."
39357 msgstr ""
39358
39359 #. type: textblock
39360 #: ../src/guestfs.pod:2422
39361 msgid "If this works successfully you will see messages such as:"
39362 msgstr ""
39363
39364 #. type: verbatim
39365 #: ../src/guestfs.pod:2424
39366 #, no-wrap
39367 msgid ""
39368 " febootstrap: picked /sys/block/vdb/dev as root device\n"
39369 " febootstrap: creating /dev/root as block special 252:16\n"
39370 " febootstrap: mounting new root on /root\n"
39371 " febootstrap: chroot\n"
39372 " Starting /init script ...\n"
39373 "\n"
39374 msgstr ""
39375
39376 #. type: textblock
39377 #: ../src/guestfs.pod:2430
39378 msgid ""
39379 "Note that C<Starting /init script ...> indicates that the appliance's init "
39380 "script is now running."
39381 msgstr ""
39382
39383 #. type: =item
39384 #: ../src/guestfs.pod:2433
39385 msgid "Initialize the appliance"
39386 msgstr ""
39387
39388 #. type: textblock
39389 #: ../src/guestfs.pod:2435
39390 msgid ""
39391 "The appliance itself now initializes itself.  This involves starting certain "
39392 "processes like C<udev>, possibly printing some debug information, and "
39393 "finally running the daemon (C<guestfsd>)."
39394 msgstr ""
39395
39396 #. type: =item
39397 #: ../src/guestfs.pod:2439
39398 msgid "The daemon"
39399 msgstr ""
39400
39401 #. type: textblock
39402 #: ../src/guestfs.pod:2441
39403 msgid ""
39404 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
39405 "should see:"
39406 msgstr ""
39407
39408 #. type: verbatim
39409 #: ../src/guestfs.pod:2444
39410 #, no-wrap
39411 msgid ""
39412 " verbose daemon enabled\n"
39413 "\n"
39414 msgstr ""
39415
39416 #. type: textblock
39417 #: ../src/guestfs.pod:2446
39418 msgid ""
39419 "The daemon expects to see a named virtio-serial port exposed by qemu and "
39420 "connected on the other end to the library."
39421 msgstr ""
39422
39423 #. type: textblock
39424 #: ../src/guestfs.pod:2449
39425 msgid ""
39426 "The daemon connects to this port (and hence to the library) and sends a four "
39427 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
39428 "protocol (see below)."
39429 msgstr ""
39430
39431 #. type: =head2
39432 #: ../src/guestfs.pod:2455
39433 msgid "COMMUNICATION PROTOCOL"
39434 msgstr ""
39435
39436 #. type: textblock
39437 #: ../src/guestfs.pod:2457
39438 msgid ""
39439 "Don't rely on using this protocol directly.  This section documents how it "
39440 "currently works, but it may change at any time."
39441 msgstr ""
39442
39443 #. type: textblock
39444 #: ../src/guestfs.pod:2460
39445 msgid ""
39446 "The protocol used to talk between the library and the daemon running inside "
39447 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
39448 "1014, RFC 1832, RFC 4506)."
39449 msgstr ""
39450
39451 #. type: textblock
39452 #: ../src/guestfs.pod:2464
39453 msgid ""
39454 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
39455 "this file is automatically generated)."
39456 msgstr ""
39457
39458 #. type: textblock
39459 #: ../src/guestfs.pod:2467
39460 msgid ""
39461 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
39462 "and C<FileOut> parameters, which are handled with very simple request/reply "
39463 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
39464 "parameters, which use the same request and reply messages, but they may also "
39465 "be followed by files sent using a chunked encoding."
39466 msgstr ""
39467
39468 #. type: =head3
39469 #: ../src/guestfs.pod:2474
39470 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
39471 msgstr ""
39472
39473 #. type: textblock
39474 #: ../src/guestfs.pod:2476
39475 msgid "For ordinary functions, the request message is:"
39476 msgstr ""
39477
39478 #. type: verbatim
39479 #: ../src/guestfs.pod:2478
39480 #, no-wrap
39481 msgid ""
39482 " total length (header + arguments,\n"
39483 "      but not including the length word itself)\n"
39484 " struct guestfs_message_header (encoded as XDR)\n"
39485 " struct guestfs_<foo>_args (encoded as XDR)\n"
39486 "\n"
39487 msgstr ""
39488
39489 #. type: textblock
39490 #: ../src/guestfs.pod:2483
39491 msgid ""
39492 "The total length field allows the daemon to allocate a fixed size buffer "
39493 "into which it slurps the rest of the message.  As a result, the total length "
39494 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
39495 "effective size of any request is limited to somewhere under this size."
39496 msgstr ""
39497
39498 #. type: textblock
39499 #: ../src/guestfs.pod:2489
39500 msgid ""
39501 "Note also that many functions don't take any arguments, in which case the "
39502 "C<guestfs_I<foo>_args> is completely omitted."
39503 msgstr ""
39504
39505 #. type: textblock
39506 #: ../src/guestfs.pod:2492
39507 msgid ""
39508 "The header contains the procedure number (C<guestfs_proc>) which is how the "
39509 "receiver knows what type of args structure to expect, or none at all."
39510 msgstr ""
39511
39512 #. type: textblock
39513 #: ../src/guestfs.pod:2496
39514 msgid ""
39515 "For functions that take optional arguments, the optional arguments are "
39516 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
39517 "arguments.  A bitmask in the header indicates which optional arguments are "
39518 "meaningful.  The bitmask is also checked to see if it contains bits set "
39519 "which the daemon does not know about (eg. if more optional arguments were "
39520 "added in a later version of the library), and this causes the call to be "
39521 "rejected."
39522 msgstr ""
39523
39524 #. type: textblock
39525 #: ../src/guestfs.pod:2504
39526 msgid "The reply message for ordinary functions is:"
39527 msgstr ""
39528
39529 #. type: verbatim
39530 #: ../src/guestfs.pod:2506
39531 #, no-wrap
39532 msgid ""
39533 " total length (header + ret,\n"
39534 "      but not including the length word itself)\n"
39535 " struct guestfs_message_header (encoded as XDR)\n"
39536 " struct guestfs_<foo>_ret (encoded as XDR)\n"
39537 "\n"
39538 msgstr ""
39539
39540 #. type: textblock
39541 #: ../src/guestfs.pod:2511
39542 msgid ""
39543 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
39544 "functions that return no formal return values."
39545 msgstr ""
39546
39547 #. type: textblock
39548 #: ../src/guestfs.pod:2514
39549 msgid "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
39550 msgstr ""
39551
39552 #. type: textblock
39553 #: ../src/guestfs.pod:2517
39554 msgid ""
39555 "In the case of an error, a flag is set in the header, and the reply message "
39556 "is slightly changed:"
39557 msgstr ""
39558
39559 #. type: verbatim
39560 #: ../src/guestfs.pod:2520
39561 #, no-wrap
39562 msgid ""
39563 " total length (header + error,\n"
39564 "      but not including the length word itself)\n"
39565 " struct guestfs_message_header (encoded as XDR)\n"
39566 " struct guestfs_message_error (encoded as XDR)\n"
39567 "\n"
39568 msgstr ""
39569
39570 #. type: textblock
39571 #: ../src/guestfs.pod:2525
39572 msgid ""
39573 "The C<guestfs_message_error> structure contains the error message as a "
39574 "string."
39575 msgstr ""
39576
39577 #. type: =head3
39578 #: ../src/guestfs.pod:2528
39579 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
39580 msgstr ""
39581
39582 #. type: textblock
39583 #: ../src/guestfs.pod:2530
39584 msgid ""
39585 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
39586 "The normal request message is sent (see above).  However this is followed by "
39587 "a sequence of file chunks."
39588 msgstr ""
39589
39590 #. type: verbatim
39591 #: ../src/guestfs.pod:2534
39592 #, no-wrap
39593 msgid ""
39594 " total length (header + arguments,\n"
39595 "      but not including the length word itself,\n"
39596 "      and not including the chunks)\n"
39597 " struct guestfs_message_header (encoded as XDR)\n"
39598 " struct guestfs_<foo>_args (encoded as XDR)\n"
39599 " sequence of chunks for FileIn param #0\n"
39600 " sequence of chunks for FileIn param #1 etc.\n"
39601 "\n"
39602 msgstr ""
39603
39604 #. type: textblock
39605 #: ../src/guestfs.pod:2542
39606 msgid "The \"sequence of chunks\" is:"
39607 msgstr ""
39608
39609 #. type: verbatim
39610 #: ../src/guestfs.pod:2544
39611 #, no-wrap
39612 msgid ""
39613 " length of chunk (not including length word itself)\n"
39614 " struct guestfs_chunk (encoded as XDR)\n"
39615 " length of chunk\n"
39616 " struct guestfs_chunk (encoded as XDR)\n"
39617 "   ...\n"
39618 " length of chunk\n"
39619 " struct guestfs_chunk (with data.data_len == 0)\n"
39620 "\n"
39621 msgstr ""
39622
39623 #. type: textblock
39624 #: ../src/guestfs.pod:2552
39625 msgid ""
39626 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
39627 "is set in the final chunk to indicate either successful completion or early "
39628 "cancellation."
39629 msgstr ""
39630
39631 #. type: textblock
39632 #: ../src/guestfs.pod:2556
39633 msgid ""
39634 "At time of writing there are no functions that have more than one FileIn "
39635 "parameter.  However this is (theoretically) supported, by sending the "
39636 "sequence of chunks for each FileIn parameter one after another (from left to "
39637 "right)."
39638 msgstr ""
39639
39640 #. type: textblock
39641 #: ../src/guestfs.pod:2561
39642 msgid ""
39643 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
39644 "transfer.  The library does this by sending a chunk with a special flag set "
39645 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
39646 "RPC, does I<not> send any reply, and goes back to reading the next request."
39647 msgstr ""
39648
39649 #. type: textblock
39650 #: ../src/guestfs.pod:2567
39651 msgid ""
39652 "The daemon may also cancel.  It does this by writing a special word "
39653 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
39654 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
39655 "cancel chunk).  The special word is chosen so that even if cancellation "
39656 "happens right at the end of the transfer (after the library has finished "
39657 "writing and has started listening for the reply), the \"spurious\" cancel "
39658 "flag will not be confused with the reply message."
39659 msgstr ""
39660
39661 #. type: textblock
39662 #: ../src/guestfs.pod:2576
39663 msgid ""
39664 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
39665 "limit), and also files where the size is not known in advance (eg. from "
39666 "pipes or sockets).  However the chunks are rather small "
39667 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
39668 "to keep much in memory."
39669 msgstr ""
39670
39671 #. type: =head3
39672 #: ../src/guestfs.pod:2582
39673 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
39674 msgstr ""
39675
39676 #. type: textblock
39677 #: ../src/guestfs.pod:2584
39678 msgid ""
39679 "The protocol for FileOut parameters is exactly the same as for FileIn "
39680 "parameters, but with the roles of daemon and library reversed."
39681 msgstr ""
39682
39683 #. type: verbatim
39684 #: ../src/guestfs.pod:2587
39685 #, no-wrap
39686 msgid ""
39687 " total length (header + ret,\n"
39688 "      but not including the length word itself,\n"
39689 "      and not including the chunks)\n"
39690 " struct guestfs_message_header (encoded as XDR)\n"
39691 " struct guestfs_<foo>_ret (encoded as XDR)\n"
39692 " sequence of chunks for FileOut param #0\n"
39693 " sequence of chunks for FileOut param #1 etc.\n"
39694 "\n"
39695 msgstr ""
39696
39697 #. type: =head3
39698 #: ../src/guestfs.pod:2595
39699 msgid "INITIAL MESSAGE"
39700 msgstr ""
39701
39702 #. type: textblock
39703 #: ../src/guestfs.pod:2597
39704 msgid ""
39705 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
39706 "which indicates that the guest and daemon is alive.  This is what "
39707 "L</guestfs_launch> waits for."
39708 msgstr ""
39709
39710 #. type: =head3
39711 #: ../src/guestfs.pod:2601
39712 msgid "PROGRESS NOTIFICATION MESSAGES"
39713 msgstr ""
39714
39715 #. type: textblock
39716 #: ../src/guestfs.pod:2603
39717 msgid ""
39718 "The daemon may send progress notification messages at any time.  These are "
39719 "distinguished by the normal length word being replaced by "
39720 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
39721 msgstr ""
39722
39723 #. type: textblock
39724 #: ../src/guestfs.pod:2607
39725 msgid ""
39726 "The library turns them into progress callbacks (see "
39727 "L</GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards "
39728 "them if not."
39729 msgstr ""
39730
39731 #. type: textblock
39732 #: ../src/guestfs.pod:2611
39733 msgid ""
39734 "The daemon self-limits the frequency of progress messages it sends (see "
39735 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
39736 "messages."
39737 msgstr ""
39738
39739 #. type: =head1
39740 #: ../src/guestfs.pod:2615
39741 msgid "LIBGUESTFS VERSION NUMBERS"
39742 msgstr ""
39743
39744 #. type: textblock
39745 #: ../src/guestfs.pod:2617
39746 msgid ""
39747 "Since April 2010, libguestfs has started to make separate development and "
39748 "stable releases, along with corresponding branches in our git repository.  "
39749 "These separate releases can be identified by version number:"
39750 msgstr ""
39751
39752 #. type: verbatim
39753 #: ../src/guestfs.pod:2622
39754 #, no-wrap
39755 msgid ""
39756 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
39757 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
39758 "       |\n"
39759 "       v\n"
39760 " 1  .  3  .  5\n"
39761 " ^           ^\n"
39762 " |           |\n"
39763 " |           `-------- sub-version\n"
39764 " |\n"
39765 " `------ always '1' because we don't change the ABI\n"
39766 "\n"
39767 msgstr ""
39768
39769 #. type: textblock
39770 #: ../src/guestfs.pod:2633
39771 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
39772 msgstr ""
39773
39774 #. type: textblock
39775 #: ../src/guestfs.pod:2635
39776 msgid ""
39777 "As time passes we cherry pick fixes from the development branch and backport "
39778 "those into the stable branch, the effect being that the stable branch should "
39779 "get more stable and less buggy over time.  So the stable releases are ideal "
39780 "for people who don't need new features but would just like the software to "
39781 "work."
39782 msgstr ""
39783
39784 #. type: textblock
39785 #: ../src/guestfs.pod:2641
39786 msgid "Our criteria for backporting changes are:"
39787 msgstr ""
39788
39789 #. type: textblock
39790 #: ../src/guestfs.pod:2647
39791 msgid ""
39792 "Documentation changes which don't affect any code are backported unless the "
39793 "documentation refers to a future feature which is not in stable."
39794 msgstr ""
39795
39796 #. type: textblock
39797 #: ../src/guestfs.pod:2653
39798 msgid ""
39799 "Bug fixes which are not controversial, fix obvious problems, and have been "
39800 "well tested are backported."
39801 msgstr ""
39802
39803 #. type: textblock
39804 #: ../src/guestfs.pod:2658
39805 msgid ""
39806 "Simple rearrangements of code which shouldn't affect how it works get "
39807 "backported.  This is so that the code in the two branches doesn't get too "
39808 "far out of step, allowing us to backport future fixes more easily."
39809 msgstr ""
39810
39811 #. type: textblock
39812 #: ../src/guestfs.pod:2664
39813 msgid ""
39814 "We I<don't> backport new features, new APIs, new tools etc, except in one "
39815 "exceptional case: the new feature is required in order to implement an "
39816 "important bug fix."
39817 msgstr ""
39818
39819 #. type: textblock
39820 #: ../src/guestfs.pod:2670
39821 msgid ""
39822 "A new stable branch starts when we think the new features in development are "
39823 "substantial and compelling enough over the current stable branch to warrant "
39824 "it.  When that happens we create new stable and development versions 1.N.0 "
39825 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
39826 "stable at this point, but by backporting fixes from development, that branch "
39827 "will stabilize over time."
39828 msgstr ""
39829
39830 #. type: =head1
39831 #: ../src/guestfs.pod:2678
39832 msgid "EXTENDING LIBGUESTFS"
39833 msgstr ""
39834
39835 #. type: =head2
39836 #: ../src/guestfs.pod:2680
39837 msgid "ADDING A NEW API ACTION"
39838 msgstr ""
39839
39840 #. type: textblock
39841 #: ../src/guestfs.pod:2682
39842 msgid ""
39843 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
39844 "documentation) are generated, and this makes it easy to extend the "
39845 "libguestfs API."
39846 msgstr ""
39847
39848 #. type: textblock
39849 #: ../src/guestfs.pod:2686
39850 msgid "To add a new API action there are two changes:"
39851 msgstr ""
39852
39853 #. type: textblock
39854 #: ../src/guestfs.pod:2692
39855 msgid ""
39856 "You need to add a description of the call (name, parameters, return type, "
39857 "tests, documentation) to C<generator/generator_actions.ml>."
39858 msgstr ""
39859
39860 #. type: textblock
39861 #: ../src/guestfs.pod:2695
39862 msgid ""
39863 "There are two sorts of API action, depending on whether the call goes "
39864 "through to the daemon in the appliance, or is serviced entirely by the "
39865 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
39866 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
39867 "an example of the latter, since a trace flag is maintained in the handle and "
39868 "all tracing is done on the library side."
39869 msgstr ""
39870
39871 #. type: textblock
39872 #: ../src/guestfs.pod:2703
39873 msgid ""
39874 "Most new actions are of the first type, and get added to the "
39875 "C<daemon_functions> list.  Each function has a unique procedure number used "
39876 "in the RPC protocol which is assigned to that action when we publish "
39877 "libguestfs and cannot be reused.  Take the latest procedure number and "
39878 "increment it."
39879 msgstr ""
39880
39881 #. type: textblock
39882 #: ../src/guestfs.pod:2709
39883 msgid ""
39884 "For library-only actions of the second type, add to the "
39885 "C<non_daemon_functions> list.  Since these functions are serviced by the "
39886 "library and do not travel over the RPC mechanism to the daemon, these "
39887 "functions do not need a procedure number, and so the procedure number is set "
39888 "to C<-1>."
39889 msgstr ""
39890
39891 #. type: textblock
39892 #: ../src/guestfs.pod:2717
39893 msgid "Implement the action (in C):"
39894 msgstr ""
39895
39896 #. type: textblock
39897 #: ../src/guestfs.pod:2719
39898 msgid ""
39899 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
39900 "C<daemon/> directory."
39901 msgstr ""
39902
39903 #. type: textblock
39904 #: ../src/guestfs.pod:2722
39905 msgid ""
39906 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
39907 "(note: double underscore) in the C<src/> directory."
39908 msgstr ""
39909
39910 #. type: textblock
39911 #: ../src/guestfs.pod:2725
39912 msgid "In either case, use another function as an example of what to do."
39913 msgstr ""
39914
39915 #. type: textblock
39916 #: ../src/guestfs.pod:2729
39917 msgid "After making these changes, use C<make> to compile."
39918 msgstr ""
39919
39920 #. type: textblock
39921 #: ../src/guestfs.pod:2731
39922 msgid ""
39923 "Note that you don't need to implement the RPC, language bindings, manual "
39924 "pages or anything else.  It's all automatically generated from the OCaml "
39925 "description."
39926 msgstr ""
39927
39928 #. type: =head2
39929 #: ../src/guestfs.pod:2735
39930 msgid "ADDING TESTS FOR AN API ACTION"
39931 msgstr ""
39932
39933 #. type: textblock
39934 #: ../src/guestfs.pod:2737
39935 msgid ""
39936 "You can supply zero or as many tests as you want per API call.  The tests "
39937 "can either be added as part of the API description "
39938 "(C<generator/generator_actions.ml>), or in some rarer cases you may want to "
39939 "drop a script into C<regressions/>.  Note that adding a script to "
39940 "C<regressions/> is slower, so if possible use the first method."
39941 msgstr ""
39942
39943 #. type: textblock
39944 #: ../src/guestfs.pod:2743
39945 msgid ""
39946 "The following describes the test environment used when you add an API test "
39947 "in C<generator_actions.ml>."
39948 msgstr ""
39949
39950 #. type: textblock
39951 #: ../src/guestfs.pod:2746
39952 msgid "The test environment has 4 block devices:"
39953 msgstr ""
39954
39955 #. type: =item
39956 #: ../src/guestfs.pod:2750
39957 msgid "C</dev/sda> 500MB"
39958 msgstr ""
39959
39960 #. type: textblock
39961 #: ../src/guestfs.pod:2752
39962 msgid "General block device for testing."
39963 msgstr ""
39964
39965 #. type: =item
39966 #: ../src/guestfs.pod:2754
39967 msgid "C</dev/sdb> 50MB"
39968 msgstr ""
39969
39970 #. type: textblock
39971 #: ../src/guestfs.pod:2756
39972 msgid ""
39973 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
39974 "operations."
39975 msgstr ""
39976
39977 #. type: =item
39978 #: ../src/guestfs.pod:2759
39979 msgid "C</dev/sdc> 10MB"
39980 msgstr ""
39981
39982 #. type: textblock
39983 #: ../src/guestfs.pod:2761
39984 msgid "Used in a few tests where two block devices are needed."
39985 msgstr ""
39986
39987 #. type: =item
39988 #: ../src/guestfs.pod:2763
39989 msgid "C</dev/sdd>"
39990 msgstr ""
39991
39992 #. type: textblock
39993 #: ../src/guestfs.pod:2765
39994 msgid "ISO with fixed content (see C<images/test.iso>)."
39995 msgstr ""
39996
39997 #. type: textblock
39998 #: ../src/guestfs.pod:2769
39999 msgid ""
40000 "To be able to run the tests in a reasonable amount of time, the libguestfs "
40001 "appliance and block devices are reused between tests.  So don't try testing "
40002 "L</guestfs_kill_subprocess> :-x"
40003 msgstr ""
40004
40005 #. type: textblock
40006 #: ../src/guestfs.pod:2773
40007 msgid ""
40008 "Each test starts with an initial scenario, selected using one of the "
40009 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
40010 "initialize the disks mentioned above in a particular way as documented in "
40011 "C<generator_types.ml>.  You should not assume anything about the previous "
40012 "contents of other disks that are not initialized."
40013 msgstr ""
40014
40015 #. type: textblock
40016 #: ../src/guestfs.pod:2779
40017 msgid ""
40018 "You can add a prerequisite clause to any individual test.  This is a "
40019 "run-time check, which, if it fails, causes the test to be skipped.  Useful "
40020 "if testing a command which might not work on all variations of libguestfs "
40021 "builds.  A test that has prerequisite of C<Always> means to run "
40022 "unconditionally."
40023 msgstr ""
40024
40025 #. type: textblock
40026 #: ../src/guestfs.pod:2785
40027 msgid ""
40028 "In addition, packagers can skip individual tests by setting environment "
40029 "variables before running C<make check>."
40030 msgstr ""
40031
40032 #. type: verbatim
40033 #: ../src/guestfs.pod:2788
40034 #, no-wrap
40035 msgid ""
40036 " SKIP_TEST_<CMD>_<NUM>=1\n"
40037 "\n"
40038 msgstr ""
40039
40040 #. type: textblock
40041 #: ../src/guestfs.pod:2790
40042 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
40043 msgstr ""
40044
40045 #. type: verbatim
40046 #: ../src/guestfs.pod:2794
40047 #, no-wrap
40048 msgid ""
40049 " SKIP_TEST_<CMD>=1\n"
40050 "\n"
40051 msgstr ""
40052
40053 #. type: textblock
40054 #: ../src/guestfs.pod:2796
40055 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
40056 msgstr ""
40057
40058 #. type: textblock
40059 #: ../src/guestfs.pod:2798
40060 msgid "Packagers can run only certain tests by setting for example:"
40061 msgstr ""
40062
40063 #. type: verbatim
40064 #: ../src/guestfs.pod:2800
40065 #, no-wrap
40066 msgid ""
40067 " TEST_ONLY=\"vfs_type zerofree\"\n"
40068 "\n"
40069 msgstr ""
40070
40071 #. type: textblock
40072 #: ../src/guestfs.pod:2802
40073 msgid ""
40074 "See C<capitests/tests.c> for more details of how these environment variables "
40075 "work."
40076 msgstr ""
40077
40078 #. type: =head2
40079 #: ../src/guestfs.pod:2805
40080 msgid "DEBUGGING NEW API ACTIONS"
40081 msgstr ""
40082
40083 #. type: textblock
40084 #: ../src/guestfs.pod:2807
40085 msgid "Test new actions work before submitting them."
40086 msgstr ""
40087
40088 #. type: textblock
40089 #: ../src/guestfs.pod:2809
40090 msgid "You can use guestfish to try out new commands."
40091 msgstr ""
40092
40093 #. type: textblock
40094 #: ../src/guestfs.pod:2811
40095 msgid ""
40096 "Debugging the daemon is a problem because it runs inside a minimal "
40097 "environment.  However you can fprintf messages in the daemon to stderr, and "
40098 "they will show up if you use C<guestfish -v>."
40099 msgstr ""
40100
40101 #. type: =head2
40102 #: ../src/guestfs.pod:2815
40103 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
40104 msgstr ""
40105
40106 #. type: textblock
40107 #: ../src/guestfs.pod:2817
40108 msgid ""
40109 "Our C source code generally adheres to some basic code-formatting "
40110 "conventions.  The existing code base is not totally consistent on this "
40111 "front, but we do prefer that contributed code be formatted similarly.  In "
40112 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
40113 "indentation level, and other than that, follow the K&R style."
40114 msgstr ""
40115
40116 #. type: textblock
40117 #: ../src/guestfs.pod:2823
40118 msgid ""
40119 "If you use Emacs, add the following to one of one of your start-up files "
40120 "(e.g., ~/.emacs), to help ensure that you get indentation right:"
40121 msgstr ""
40122
40123 #. type: verbatim
40124 #: ../src/guestfs.pod:2826
40125 #, no-wrap
40126 msgid ""
40127 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
40128 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
40129 " (add-hook 'find-file-hook\n"
40130 "     '(lambda () (if (and buffer-file-name\n"
40131 "                          (string-match \"/libguestfs\\\\>\"\n"
40132 "                              (buffer-file-name))\n"
40133 "                          (not (string-equal mode-name \"Change Log\"))\n"
40134 "                          (not (string-equal mode-name \"Makefile\")))\n"
40135 "                     (setq indent-tabs-mode nil))))\n"
40136 " \n"
40137 msgstr ""
40138
40139 #. type: verbatim
40140 #: ../src/guestfs.pod:2836
40141 #, no-wrap
40142 msgid ""
40143 " ;;; When editing C sources in libguestfs, use this style.\n"
40144 " (defun libguestfs-c-mode ()\n"
40145 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
40146 "   (interactive)\n"
40147 "   (c-set-style \"K&R\")\n"
40148 "   (setq c-indent-level 2)\n"
40149 "   (setq c-basic-offset 2))\n"
40150 " (add-hook 'c-mode-hook\n"
40151 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
40152 "                               (buffer-file-name))\n"
40153 "                           (libguestfs-c-mode))))\n"
40154 "\n"
40155 msgstr ""
40156
40157 #. type: textblock
40158 #: ../src/guestfs.pod:2848
40159 msgid "Enable warnings when compiling (and fix any problems this finds):"
40160 msgstr ""
40161
40162 #. type: verbatim
40163 #: ../src/guestfs.pod:2851
40164 #, no-wrap
40165 msgid ""
40166 " ./configure --enable-gcc-warnings\n"
40167 "\n"
40168 msgstr ""
40169
40170 #. type: textblock
40171 #: ../src/guestfs.pod:2853
40172 msgid "Useful targets are:"
40173 msgstr ""
40174
40175 #. type: verbatim
40176 #: ../src/guestfs.pod:2855
40177 #, no-wrap
40178 msgid ""
40179 " make syntax-check  # checks the syntax of the C code\n"
40180 " make check         # runs the test suite\n"
40181 "\n"
40182 msgstr ""
40183
40184 #. type: =head2
40185 #: ../src/guestfs.pod:2858
40186 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
40187 msgstr ""
40188
40189 #. type: textblock
40190 #: ../src/guestfs.pod:2860
40191 msgid ""
40192 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
40193 "which are used to do shell quoting."
40194 msgstr ""
40195
40196 #. type: =item
40197 #: ../src/guestfs.pod:2865
40198 msgid "%Q"
40199 msgstr ""
40200
40201 #. type: textblock
40202 #: ../src/guestfs.pod:2867
40203 msgid ""
40204 "Simple shell quoted string.  Any spaces or other shell characters are "
40205 "escaped for you."
40206 msgstr ""
40207
40208 #. type: =item
40209 #: ../src/guestfs.pod:2870
40210 msgid "%R"
40211 msgstr ""
40212
40213 #. type: textblock
40214 #: ../src/guestfs.pod:2872
40215 msgid ""
40216 "Same as C<%Q> except the string is treated as a path which is prefixed by "
40217 "the sysroot."
40218 msgstr ""
40219
40220 #. type: verbatim
40221 #: ../src/guestfs.pod:2879
40222 #, no-wrap
40223 msgid ""
40224 " asprintf (&cmd, \"cat %R\", path);\n"
40225 "\n"
40226 msgstr ""
40227
40228 #. type: textblock
40229 #: ../src/guestfs.pod:2881
40230 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
40231 msgstr ""
40232
40233 #. type: textblock
40234 #: ../src/guestfs.pod:2883
40235 msgid ""
40236 "I<Note:> Do I<not> use these when you are passing parameters to the "
40237 "C<command{,r,v,rv}()> functions.  These parameters do NOT need to be quoted "
40238 "because they are not passed via the shell (instead, straight to exec).  You "
40239 "probably want to use the C<sysroot_path()> function however."
40240 msgstr ""
40241
40242 #. type: =head2
40243 #: ../src/guestfs.pod:2889
40244 msgid "SUBMITTING YOUR NEW API ACTIONS"
40245 msgstr ""
40246
40247 #. type: textblock
40248 #: ../src/guestfs.pod:2891
40249 msgid ""
40250 "Submit patches to the mailing list: "
40251 "L<http://www.redhat.com/mailman/listinfo/libguestfs> and CC to "
40252 "L<rjones@redhat.com>."
40253 msgstr ""
40254
40255 #. type: =head2
40256 #: ../src/guestfs.pod:2895
40257 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
40258 msgstr ""
40259
40260 #. type: textblock
40261 #: ../src/guestfs.pod:2897
40262 msgid "We support i18n (gettext anyhow) in the library."
40263 msgstr ""
40264
40265 #. type: textblock
40266 #: ../src/guestfs.pod:2899
40267 msgid ""
40268 "However many messages come from the daemon, and we don't translate those at "
40269 "the moment.  One reason is that the appliance generally has all locale files "
40270 "removed from it, because they take up a lot of space.  So we'd have to readd "
40271 "some of those, as well as copying our PO files into the appliance."
40272 msgstr ""
40273
40274 #. type: textblock
40275 #: ../src/guestfs.pod:2905
40276 msgid ""
40277 "Debugging messages are never translated, since they are intended for the "
40278 "programmers."
40279 msgstr ""
40280
40281 #. type: =head2
40282 #: ../src/guestfs.pod:2908
40283 msgid "SOURCE CODE SUBDIRECTORIES"
40284 msgstr ""
40285
40286 #. type: =item
40287 #: ../src/guestfs.pod:2912
40288 msgid "C<align>"
40289 msgstr ""
40290
40291 #. type: textblock
40292 #: ../src/guestfs.pod:2914
40293 msgid "L<virt-alignment-scan(1)> command and documentation."
40294 msgstr ""
40295
40296 #. type: textblock
40297 #: ../src/guestfs.pod:2918
40298 msgid "The libguestfs appliance, build scripts and so on."
40299 msgstr ""
40300
40301 #. type: =item
40302 #: ../src/guestfs.pod:2920
40303 msgid "C<capitests>"
40304 msgstr ""
40305
40306 #. type: textblock
40307 #: ../src/guestfs.pod:2922
40308 msgid "Automated tests of the C API."
40309 msgstr ""
40310
40311 #. type: =item
40312 #: ../src/guestfs.pod:2924
40313 msgid "C<cat>"
40314 msgstr ""
40315
40316 #. type: textblock
40317 #: ../src/guestfs.pod:2926
40318 msgid ""
40319 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
40320 "documentation."
40321 msgstr ""
40322
40323 #. type: =item
40324 #: ../src/guestfs.pod:2929
40325 msgid "C<caution>"
40326 msgstr ""
40327
40328 #. type: textblock
40329 #: ../src/guestfs.pod:2931
40330 msgid ""
40331 "Safety and liveness tests of components that libguestfs depends upon (not of "
40332 "libguestfs itself).  Mainly this is for qemu and the kernel."
40333 msgstr ""
40334
40335 #. type: =item
40336 #: ../src/guestfs.pod:2934
40337 msgid "C<clone>"
40338 msgstr ""
40339
40340 #. type: textblock
40341 #: ../src/guestfs.pod:2936
40342 msgid ""
40343 "Tools for cloning virtual machines.  Currently contains L<virt-sysprep(1)> "
40344 "command and documentation."
40345 msgstr ""
40346
40347 #. type: =item
40348 #: ../src/guestfs.pod:2939
40349 msgid "C<contrib>"
40350 msgstr ""
40351
40352 #. type: textblock
40353 #: ../src/guestfs.pod:2941
40354 msgid "Outside contributions, experimental parts."
40355 msgstr ""
40356
40357 #. type: =item
40358 #: ../src/guestfs.pod:2943
40359 msgid "C<daemon>"
40360 msgstr ""
40361
40362 #. type: textblock
40363 #: ../src/guestfs.pod:2945
40364 msgid ""
40365 "The daemon that runs inside the libguestfs appliance and carries out "
40366 "actions."
40367 msgstr ""
40368
40369 #. type: =item
40370 #: ../src/guestfs.pod:2948
40371 msgid "C<df>"
40372 msgstr ""
40373
40374 #. type: textblock
40375 #: ../src/guestfs.pod:2950
40376 msgid "L<virt-df(1)> command and documentation."
40377 msgstr ""
40378
40379 #. type: =item
40380 #: ../src/guestfs.pod:2952
40381 msgid "C<edit>"
40382 msgstr ""
40383
40384 #. type: textblock
40385 #: ../src/guestfs.pod:2954
40386 msgid "L<virt-edit(1)> command and documentation."
40387 msgstr ""
40388
40389 #. type: =item
40390 #: ../src/guestfs.pod:2956
40391 msgid "C<examples>"
40392 msgstr ""
40393
40394 #. type: textblock
40395 #: ../src/guestfs.pod:2958
40396 msgid "C API example code."
40397 msgstr ""
40398
40399 #. type: =item
40400 #: ../src/guestfs.pod:2960
40401 msgid "C<extratests>"
40402 msgstr ""
40403
40404 #. type: textblock
40405 #: ../src/guestfs.pod:2962
40406 msgid ""
40407 "Extra tests.  These are not run by default because they require special "
40408 "tools or configuration."
40409 msgstr ""
40410
40411 #. type: =item
40412 #: ../src/guestfs.pod:2965
40413 msgid "C<fish>"
40414 msgstr ""
40415
40416 #. type: textblock
40417 #: ../src/guestfs.pod:2967
40418 msgid ""
40419 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
40420 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
40421 "L<virt-tar-out(1)>."
40422 msgstr ""
40423
40424 #. type: =item
40425 #: ../src/guestfs.pod:2971
40426 msgid "C<fuse>"
40427 msgstr ""
40428
40429 #. type: textblock
40430 #: ../src/guestfs.pod:2973
40431 msgid "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
40432 msgstr ""
40433
40434 #. type: =item
40435 #: ../src/guestfs.pod:2975
40436 msgid "C<generator>"
40437 msgstr ""
40438
40439 #. type: textblock
40440 #: ../src/guestfs.pod:2977
40441 msgid ""
40442 "The crucially important generator, used to automatically generate large "
40443 "amounts of boilerplate C code for things like RPC and bindings."
40444 msgstr ""
40445
40446 #. type: =item
40447 #: ../src/guestfs.pod:2980
40448 msgid "C<images>"
40449 msgstr ""
40450
40451 #. type: textblock
40452 #: ../src/guestfs.pod:2982
40453 msgid "Files used by the test suite."
40454 msgstr ""
40455
40456 #. type: textblock
40457 #: ../src/guestfs.pod:2984
40458 msgid "Some \"phony\" guest images which we test against."
40459 msgstr ""
40460
40461 #. type: =item
40462 #: ../src/guestfs.pod:2986
40463 msgid "C<inspector>"
40464 msgstr ""
40465
40466 #. type: textblock
40467 #: ../src/guestfs.pod:2988
40468 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
40469 msgstr ""
40470
40471 #. type: =item
40472 #: ../src/guestfs.pod:2990
40473 msgid "C<logo>"
40474 msgstr ""
40475
40476 #. type: textblock
40477 #: ../src/guestfs.pod:2992
40478 msgid "Logo used on the website.  The fish is called Arthur by the way."
40479 msgstr ""
40480
40481 #. type: =item
40482 #: ../src/guestfs.pod:2994
40483 msgid "C<m4>"
40484 msgstr ""
40485
40486 #. type: textblock
40487 #: ../src/guestfs.pod:2996
40488 msgid "M4 macros used by autoconf."
40489 msgstr ""
40490
40491 #. type: =item
40492 #: ../src/guestfs.pod:2998
40493 msgid "C<po>"
40494 msgstr ""
40495
40496 #. type: textblock
40497 #: ../src/guestfs.pod:3000
40498 msgid "Translations of simple gettext strings."
40499 msgstr ""
40500
40501 #. type: =item
40502 #: ../src/guestfs.pod:3002
40503 msgid "C<po-docs>"
40504 msgstr ""
40505
40506 #. type: textblock
40507 #: ../src/guestfs.pod:3004
40508 msgid ""
40509 "The build infrastructure and PO files for translations of manpages and POD "
40510 "files.  Eventually this will be combined with the C<po> directory, but that "
40511 "is rather complicated."
40512 msgstr ""
40513
40514 #. type: =item
40515 #: ../src/guestfs.pod:3008
40516 msgid "C<regressions>"
40517 msgstr ""
40518
40519 #. type: textblock
40520 #: ../src/guestfs.pod:3010
40521 msgid "Regression tests."
40522 msgstr ""
40523
40524 #. type: =item
40525 #: ../src/guestfs.pod:3012
40526 msgid "C<rescue>"
40527 msgstr ""
40528
40529 #. type: textblock
40530 #: ../src/guestfs.pod:3014
40531 msgid "L<virt-rescue(1)> command and documentation."
40532 msgstr ""
40533
40534 #. type: =item
40535 #: ../src/guestfs.pod:3016
40536 msgid "C<resize>"
40537 msgstr ""
40538
40539 #. type: textblock
40540 #: ../src/guestfs.pod:3018
40541 msgid "L<virt-resize(1)> command and documentation."
40542 msgstr ""
40543
40544 #. type: =item
40545 #: ../src/guestfs.pod:3020
40546 msgid "C<sparsify>"
40547 msgstr ""
40548
40549 #. type: textblock
40550 #: ../src/guestfs.pod:3022
40551 msgid "L<virt-sparsify(1)> command and documentation."
40552 msgstr ""
40553
40554 #. type: =item
40555 #: ../src/guestfs.pod:3024
40556 msgid "C<src>"
40557 msgstr ""
40558
40559 #. type: textblock
40560 #: ../src/guestfs.pod:3026
40561 msgid "Source code to the C library."
40562 msgstr ""
40563
40564 #. type: =item
40565 #: ../src/guestfs.pod:3028
40566 msgid "C<tools>"
40567 msgstr ""
40568
40569 #. type: textblock
40570 #: ../src/guestfs.pod:3030
40571 msgid "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
40572 msgstr ""
40573
40574 #. type: =item
40575 #: ../src/guestfs.pod:3032
40576 msgid "C<test-tool>"
40577 msgstr ""
40578
40579 #. type: textblock
40580 #: ../src/guestfs.pod:3034
40581 msgid ""
40582 "Test tool for end users to test if their qemu/kernel combination will work "
40583 "with libguestfs."
40584 msgstr ""
40585
40586 #. type: =item
40587 #: ../src/guestfs.pod:3037
40588 msgid "C<csharp>"
40589 msgstr ""
40590
40591 #. type: =item
40592 #: ../src/guestfs.pod:3039
40593 msgid "C<erlang>"
40594 msgstr ""
40595
40596 #. type: =item
40597 #: ../src/guestfs.pod:3041
40598 msgid "C<haskell>"
40599 msgstr ""
40600
40601 #. type: =item
40602 #: ../src/guestfs.pod:3043
40603 msgid "C<java>"
40604 msgstr ""
40605
40606 #. type: =item
40607 #: ../src/guestfs.pod:3045
40608 msgid "C<ocaml>"
40609 msgstr ""
40610
40611 #. type: =item
40612 #: ../src/guestfs.pod:3047
40613 msgid "C<php>"
40614 msgstr ""
40615
40616 #. type: =item
40617 #: ../src/guestfs.pod:3049
40618 msgid "C<perl>"
40619 msgstr ""
40620
40621 #. type: =item
40622 #: ../src/guestfs.pod:3051
40623 msgid "C<python>"
40624 msgstr ""
40625
40626 #. type: =item
40627 #: ../src/guestfs.pod:3053
40628 msgid "C<ruby>"
40629 msgstr ""
40630
40631 #. type: textblock
40632 #: ../src/guestfs.pod:3055
40633 msgid "Language bindings."
40634 msgstr ""
40635
40636 #. type: =head2
40637 #: ../src/guestfs.pod:3059
40638 msgid "MAKING A STABLE RELEASE"
40639 msgstr ""
40640
40641 #. type: textblock
40642 #: ../src/guestfs.pod:3061
40643 msgid ""
40644 "When we make a stable release, there are several steps documented here.  See "
40645 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
40646 "branch policy."
40647 msgstr ""
40648
40649 #. type: textblock
40650 #: ../src/guestfs.pod:3069
40651 msgid "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
40652 msgstr ""
40653
40654 #. type: textblock
40655 #: ../src/guestfs.pod:3074
40656 msgid "Finalize RELEASE-NOTES."
40657 msgstr ""
40658
40659 #. type: textblock
40660 #: ../src/guestfs.pod:3078
40661 msgid "Update ROADMAP."
40662 msgstr ""
40663
40664 #. type: textblock
40665 #: ../src/guestfs.pod:3082
40666 msgid "Run C<src/api-support/update-from-tarballs.sh>."
40667 msgstr ""
40668
40669 #. type: textblock
40670 #: ../src/guestfs.pod:3086
40671 msgid "Push and pull from Transifex."
40672 msgstr ""
40673
40674 #. type: verbatim
40675 #: ../src/guestfs.pod:3090
40676 #, no-wrap
40677 msgid ""
40678 " tx push -s\n"
40679 "\n"
40680 msgstr ""
40681
40682 #. type: textblock
40683 #: ../src/guestfs.pod:3092
40684 msgid "to push the latest POT files to Transifex.  Then run:"
40685 msgstr ""
40686
40687 #. type: verbatim
40688 #: ../src/guestfs.pod:3094
40689 #, no-wrap
40690 msgid ""
40691 " ./tx-pull.sh\n"
40692 "\n"
40693 msgstr ""
40694
40695 #. type: textblock
40696 #: ../src/guestfs.pod:3096
40697 msgid "which is a wrapper to pull the latest translated C<*.po> files."
40698 msgstr ""
40699
40700 #. type: textblock
40701 #: ../src/guestfs.pod:3100
40702 msgid ""
40703 "Create new stable and development directories under "
40704 "L<http://libguestfs.org/download>."
40705 msgstr ""
40706
40707 #. type: textblock
40708 #: ../src/guestfs.pod:3105
40709 msgid "Create the branch in git:"
40710 msgstr ""
40711
40712 #. type: verbatim
40713 #: ../src/guestfs.pod:3107
40714 #, no-wrap
40715 msgid ""
40716 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
40717 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
40718 " git branch stable-1.XX\n"
40719 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
40720 "\n"
40721 msgstr ""
40722
40723 #. type: =head1
40724 #: ../src/guestfs.pod:3114
40725 msgid "LIMITS"
40726 msgstr ""
40727
40728 #. type: =head2
40729 #: ../src/guestfs.pod:3116
40730 msgid "PROTOCOL LIMITS"
40731 msgstr ""
40732
40733 #. type: textblock
40734 #: ../src/guestfs.pod:3118
40735 msgid ""
40736 "Internally libguestfs uses a message-based protocol to pass API calls and "
40737 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
40738 "plenty more detail about this).  The maximum message size used by the "
40739 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
40740 "aware of this limit.  The API calls which may be affected are individually "
40741 "documented, with a link back to this section of the documentation."
40742 msgstr ""
40743
40744 #. type: textblock
40745 #: ../src/guestfs.pod:3126
40746 msgid ""
40747 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
40748 "a simple string.  Because this string is at some point internally encoded as "
40749 "a message, the maximum size that it can return is slightly under 4 MB.  If "
40750 "the requested file is larger than this then you will get an error."
40751 msgstr ""
40752
40753 #. type: textblock
40754 #: ../src/guestfs.pod:3132
40755 msgid ""
40756 "In order to transfer large files into and out of the guest filesystem, you "
40757 "need to use particular calls that support this.  The sections L</UPLOADING> "
40758 "and L</DOWNLOADING> document how to do this."
40759 msgstr ""
40760
40761 #. type: textblock
40762 #: ../src/guestfs.pod:3136
40763 msgid ""
40764 "You might also consider mounting the disk image using our FUSE filesystem "
40765 "support (L<guestmount(1)>)."
40766 msgstr ""
40767
40768 #. type: =head2
40769 #: ../src/guestfs.pod:3139
40770 msgid "MAXIMUM NUMBER OF DISKS"
40771 msgstr ""
40772
40773 #. type: textblock
40774 #: ../src/guestfs.pod:3141
40775 msgid "When using virtio disks (the default) the current limit is B<25> disks."
40776 msgstr ""
40777
40778 #. type: textblock
40779 #: ../src/guestfs.pod:3144
40780 msgid ""
40781 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
40782 "slots.  However febootstrap only understands disks with names C</dev/vda> "
40783 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
40784 "purposes."
40785 msgstr ""
40786
40787 #. type: textblock
40788 #: ../src/guestfs.pod:3149
40789 msgid ""
40790 "We are working to substantially raise this limit in future versions but it "
40791 "requires complex changes to qemu."
40792 msgstr ""
40793
40794 #. type: textblock
40795 #: ../src/guestfs.pod:3152
40796 msgid ""
40797 "In future versions of libguestfs it should also be possible to \"hot plug\" "
40798 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
40799 "requires changes to qemu."
40800 msgstr ""
40801
40802 #. type: =head2
40803 #: ../src/guestfs.pod:3156
40804 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
40805 msgstr ""
40806
40807 #. type: textblock
40808 #: ../src/guestfs.pod:3158
40809 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
40810 msgstr ""
40811
40812 #. type: textblock
40813 #: ../src/guestfs.pod:3160
40814 msgid ""
40815 "This is because it reserves 4 bits for the minor device number (thus "
40816 "C</dev/vda>, and C</dev/vda1> through C</dev/vda15>)."
40817 msgstr ""
40818
40819 #. type: textblock
40820 #: ../src/guestfs.pod:3163
40821 msgid ""
40822 "If you attach a disk with more than 15 partitions, the extra partitions are "
40823 "ignored by libguestfs."
40824 msgstr ""
40825
40826 #. type: =head2
40827 #: ../src/guestfs.pod:3166
40828 msgid "MAXIMUM SIZE OF A DISK"
40829 msgstr ""
40830
40831 #. type: textblock
40832 #: ../src/guestfs.pod:3168
40833 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
40834 msgstr ""
40835
40836 #. type: textblock
40837 #: ../src/guestfs.pod:3170
40838 msgid ""
40839 "We have tested block devices up to 1 exabyte (2**60 or "
40840 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
40841 "filesystem."
40842 msgstr ""
40843
40844 #. type: textblock
40845 #: ../src/guestfs.pod:3174
40846 msgid ""
40847 "Although libguestfs probably does not impose any limit, the underlying host "
40848 "storage will.  If you store disk images on a host ext4 filesystem, then the "
40849 "maximum size will be limited by the maximum ext4 file size (currently 16 "
40850 "TB).  If you store disk images as host logical volumes then you are limited "
40851 "by the maximum size of an LV."
40852 msgstr ""
40853
40854 #. type: textblock
40855 #: ../src/guestfs.pod:3180
40856 msgid ""
40857 "For the hugest disk image files, we recommend using XFS on the host for "
40858 "storage."
40859 msgstr ""
40860
40861 #. type: =head2
40862 #: ../src/guestfs.pod:3183
40863 msgid "MAXIMUM SIZE OF A PARTITION"
40864 msgstr ""
40865
40866 #. type: textblock
40867 #: ../src/guestfs.pod:3185
40868 msgid ""
40869 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
40870 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
40871 "address a partition located beyond 2 TB on the disk."
40872 msgstr ""
40873
40874 #. type: textblock
40875 #: ../src/guestfs.pod:3189
40876 msgid ""
40877 "It is recommended that you use GPT partitions on disks which are larger than "
40878 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
40879 "which are theoretically larger than the largest disk we could support."
40880 msgstr ""
40881
40882 #. type: =head2
40883 #: ../src/guestfs.pod:3194
40884 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
40885 msgstr ""
40886
40887 #. type: textblock
40888 #: ../src/guestfs.pod:3196
40889 msgid ""
40890 "This depends on the filesystem type.  libguestfs itself does not impose any "
40891 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
40892 "what these limits are."
40893 msgstr ""
40894
40895 #. type: =head2
40896 #: ../src/guestfs.pod:3200
40897 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
40898 msgstr ""
40899
40900 #. type: textblock
40901 #: ../src/guestfs.pod:3202
40902 msgid ""
40903 "The API functions L</guestfs_upload>, L</guestfs_download>, "
40904 "L</guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
40905 "uploads and downloads."
40906 msgstr ""
40907
40908 #. type: =head2
40909 #: ../src/guestfs.pod:3206
40910 msgid "INSPECTION LIMITS"
40911 msgstr ""
40912
40913 #. type: textblock
40914 #: ../src/guestfs.pod:3208
40915 msgid ""
40916 "The inspection code has several arbitrary limits on things like the size of "
40917 "Windows Registry hive it will read, and the length of product name.  These "
40918 "are intended to stop a malicious guest from consuming arbitrary amounts of "
40919 "memory and disk space on the host, and should not be reached in practice.  "
40920 "See the source code for more information."
40921 msgstr ""
40922
40923 #. type: textblock
40924 #: ../src/guestfs.pod:3234
40925 msgid ""
40926 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
40927 "effect as calling C<guestfs_set_verbose (g, 1)>."
40928 msgstr ""
40929
40930 #. type: textblock
40931 #: ../src/guestfs.pod:3246
40932 msgid ""
40933 "Set the path that libguestfs uses to search for a supermin appliance.  See "
40934 "the discussion of paths in section L</PATH> above."
40935 msgstr ""
40936
40937 #. type: textblock
40938 #: ../src/guestfs.pod:3255
40939 msgid "See also L</QEMU WRAPPERS> above."
40940 msgstr ""
40941
40942 #. type: textblock
40943 #: ../src/guestfs.pod:3259
40944 msgid ""
40945 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
40946 "effect as calling C<guestfs_set_trace (g, 1)>."
40947 msgstr ""
40948
40949 #. type: textblock
40950 #: ../src/guestfs.pod:3277
40951 msgid ""
40952 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, "
40953 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
40954 "L<guestfs-ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, "
40955 "L<virt-alignment-scan(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, "
40956 "L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, "
40957 "L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
40958 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
40959 "L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, "
40960 "L<virt-sysprep(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
40961 "L<virt-win-reg(1)>, L<guestfs-testing(1)>, L<qemu(1)>, L<febootstrap(1)>, "
40962 "L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<stap(1)>, "
40963 "L<http://libguestfs.org/>."
40964 msgstr ""
40965
40966 #. type: textblock
40967 #: ../src/guestfs.pod:3314
40968 msgid ""
40969 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, "
40970 "L<lvm(8)>, L<disktype(1)>."
40971 msgstr ""
40972
40973 #. type: =head1
40974 #: ../src/guestfs.pod:3321 ../tools/virt-make-fs.pl:571 ../tools/virt-win-reg.pl:772
40975 msgid "BUGS"
40976 msgstr ""
40977
40978 #. type: textblock
40979 #: ../src/guestfs.pod:3323
40980 msgid "To get a list of bugs against libguestfs use this link:"
40981 msgstr ""
40982
40983 #. type: textblock
40984 #: ../src/guestfs.pod:3325
40985 msgid "L<https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools>"
40986 msgstr ""
40987
40988 #. type: textblock
40989 #: ../src/guestfs.pod:3327
40990 msgid "To report a new bug against libguestfs use this link:"
40991 msgstr ""
40992
40993 #. type: textblock
40994 #: ../src/guestfs.pod:3329
40995 msgid "L<https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools>"
40996 msgstr ""
40997
40998 #. type: textblock
40999 #: ../src/guestfs.pod:3331
41000 msgid "When reporting a bug, please check:"
41001 msgstr ""
41002
41003 #. type: textblock
41004 #: ../src/guestfs.pod:3337
41005 msgid "That the bug hasn't been reported already."
41006 msgstr ""
41007
41008 #. type: textblock
41009 #: ../src/guestfs.pod:3341
41010 msgid "That you are testing a recent version."
41011 msgstr ""
41012
41013 #. type: textblock
41014 #: ../src/guestfs.pod:3345
41015 msgid "Describe the bug accurately, and give a way to reproduce it."
41016 msgstr ""
41017
41018 #. type: textblock
41019 #: ../src/guestfs.pod:3349
41020 msgid ""
41021 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
41022 "bug report."
41023 msgstr ""
41024
41025 #. type: textblock
41026 #: ../test-tool/libguestfs-test-tool.pod:5
41027 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
41028 msgstr ""
41029
41030 #. type: verbatim
41031 #: ../test-tool/libguestfs-test-tool.pod:9
41032 #, no-wrap
41033 msgid ""
41034 " libguestfs-test-tool [--options]\n"
41035 "\n"
41036 msgstr ""
41037
41038 #. type: textblock
41039 #: ../test-tool/libguestfs-test-tool.pod:13
41040 msgid ""
41041 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
41042 "to check basic libguestfs functionality is working.  This is needed because "
41043 "libguestfs occasionally breaks for reasons beyond our control: usually "
41044 "because of changes in the underlying qemu or kernel packages, or the host "
41045 "environment."
41046 msgstr ""
41047
41048 #. type: textblock
41049 #: ../test-tool/libguestfs-test-tool.pod:19
41050 msgid "If you suspect a problem in libguestfs, then just run:"
41051 msgstr ""
41052
41053 #. type: verbatim
41054 #: ../test-tool/libguestfs-test-tool.pod:21
41055 #, no-wrap
41056 msgid ""
41057 " libguestfs-test-tool\n"
41058 "\n"
41059 msgstr ""
41060
41061 #. type: textblock
41062 #: ../test-tool/libguestfs-test-tool.pod:23
41063 msgid "It will print lots of diagnostic messages."
41064 msgstr ""
41065
41066 #. type: textblock
41067 #: ../test-tool/libguestfs-test-tool.pod:25
41068 msgid "If it runs to completion successfully, you will see this near the end:"
41069 msgstr ""
41070
41071 #. type: verbatim
41072 #: ../test-tool/libguestfs-test-tool.pod:27
41073 #, no-wrap
41074 msgid ""
41075 " ===== TEST FINISHED OK =====\n"
41076 "\n"
41077 msgstr ""
41078
41079 #. type: textblock
41080 #: ../test-tool/libguestfs-test-tool.pod:29
41081 msgid "and the test tool will exit with code 0."
41082 msgstr ""
41083
41084 #. type: textblock
41085 #: ../test-tool/libguestfs-test-tool.pod:31
41086 msgid ""
41087 "If it fails (and/or exits with non-zero error code), please paste the "
41088 "I<complete, unedited> output of the test tool into a bug report.  More "
41089 "information about reporting bugs can be found on the "
41090 "L<http://libguestfs.org/> website."
41091 msgstr ""
41092
41093 #. type: textblock
41094 #: ../test-tool/libguestfs-test-tool.pod:42
41095 msgid "Display short usage information and exit."
41096 msgstr ""
41097
41098 #. type: =item
41099 #: ../test-tool/libguestfs-test-tool.pod:44
41100 msgid "B<--qemu qemu_binary>"
41101 msgstr ""
41102
41103 #. type: textblock
41104 #: ../test-tool/libguestfs-test-tool.pod:46
41105 msgid ""
41106 "If you have downloaded another qemu binary, point this option at the full "
41107 "path of the binary to try it."
41108 msgstr ""
41109
41110 #. type: =item
41111 #: ../test-tool/libguestfs-test-tool.pod:49
41112 msgid "B<--qemudir qemu_source_dir>"
41113 msgstr ""
41114
41115 #. type: textblock
41116 #: ../test-tool/libguestfs-test-tool.pod:51
41117 msgid ""
41118 "If you have compiled qemu from source, point this option at the source "
41119 "directory to try it."
41120 msgstr ""
41121
41122 #. type: =item
41123 #: ../test-tool/libguestfs-test-tool.pod:54
41124 msgid "B<-t N>"
41125 msgstr ""
41126
41127 #. type: =item
41128 #: ../test-tool/libguestfs-test-tool.pod:56
41129 msgid "B<--timeout N>"
41130 msgstr ""
41131
41132 #. type: textblock
41133 #: ../test-tool/libguestfs-test-tool.pod:58
41134 msgid ""
41135 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
41136 "minutes) which does not usually need to be adjusted."
41137 msgstr ""
41138
41139 #. type: =head1
41140 #: ../test-tool/libguestfs-test-tool.pod:63
41141 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
41142 msgstr ""
41143
41144 #. type: textblock
41145 #: ../test-tool/libguestfs-test-tool.pod:65
41146 msgid ""
41147 "If you have compiled another version of qemu from source and would like to "
41148 "try that, then you can use the I<--qemudir> option to point to the qemu "
41149 "source directory."
41150 msgstr ""
41151
41152 #. type: textblock
41153 #: ../test-tool/libguestfs-test-tool.pod:69
41154 msgid ""
41155 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
41156 "option to point to the binary."
41157 msgstr ""
41158
41159 #. type: textblock
41160 #: ../test-tool/libguestfs-test-tool.pod:72
41161 msgid ""
41162 "Note when using these options, you can ignore the business of qemu wrapper "
41163 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
41164 "wrapper script for you if one is needed."
41165 msgstr ""
41166
41167 #. type: =head1
41168 #: ../test-tool/libguestfs-test-tool.pod:76
41169 msgid "TRYING OUT A DIFFERENT KERNEL"
41170 msgstr ""
41171
41172 #. type: textblock
41173 #: ../test-tool/libguestfs-test-tool.pod:78
41174 msgid ""
41175 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
41176 "libguestfs tries.  You do this by setting the environment variables "
41177 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
41178 msgstr ""
41179
41180 #. type: textblock
41181 #: ../test-tool/libguestfs-test-tool.pod:82
41182 msgid ""
41183 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
41184 "information."
41185 msgstr ""
41186
41187 #. type: =head1
41188 #: ../test-tool/libguestfs-test-tool.pod:85
41189 msgid "SELF-DIAGNOSIS"
41190 msgstr ""
41191
41192 #. type: textblock
41193 #: ../test-tool/libguestfs-test-tool.pod:87
41194 msgid ""
41195 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
41196 "produced by libguestfs-test-tool and/or possible errors."
41197 msgstr ""
41198
41199 #. type: textblock
41200 #: ../test-tool/libguestfs-test-tool.pod:92
41201 msgid ""
41202 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
41203 "I<1> if there was an error."
41204 msgstr ""
41205
41206 #. type: textblock
41207 #: ../test-tool/libguestfs-test-tool.pod:97
41208 msgid ""
41209 "For the full list of environment variables which may affect libguestfs, "
41210 "please see the L<guestfs(3)> manual page."
41211 msgstr ""
41212
41213 #. type: textblock
41214 #: ../test-tool/libguestfs-test-tool.pod:102
41215 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
41216 msgstr ""
41217
41218 #. type: textblock
41219 #: ../tools/virt-list-filesystems.pl:32
41220 msgid "virt-list-filesystems - List filesystems in a virtual machine or disk image"
41221 msgstr ""
41222
41223 #. type: verbatim
41224 #: ../tools/virt-list-filesystems.pl:36
41225 #, no-wrap
41226 msgid ""
41227 " virt-list-filesystems [--options] domname\n"
41228 "\n"
41229 msgstr ""
41230
41231 #. type: verbatim
41232 #: ../tools/virt-list-filesystems.pl:38
41233 #, no-wrap
41234 msgid ""
41235 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
41236 "\n"
41237 msgstr ""
41238
41239 #. type: textblock
41240 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
41241 msgid ""
41242 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
41243 "replacement."
41244 msgstr ""
41245
41246 #. type: textblock
41247 #: ../tools/virt-list-filesystems.pl:45
41248 msgid ""
41249 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
41250 "are contained in a virtual machine or disk image."
41251 msgstr ""
41252
41253 #. type: textblock
41254 #: ../tools/virt-list-filesystems.pl:49
41255 msgid ""
41256 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
41257 "functionality.  For more complex cases you should look at the "
41258 "L<guestfish(1)> tool."
41259 msgstr ""
41260
41261 #. type: textblock
41262 #: ../tools/virt-list-filesystems.pl:112
41263 msgid ""
41264 "With this option, C<virt-list-filesystems> displays the type of each "
41265 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
41266 msgstr ""
41267
41268 #. type: =item
41269 #: ../tools/virt-list-filesystems.pl:119
41270 msgid "B<-a>"
41271 msgstr ""
41272
41273 #. type: textblock
41274 #: ../tools/virt-list-filesystems.pl:123
41275 msgid ""
41276 "Normally we only show mountable filesystems.  If this option is given then "
41277 "swap devices are shown too."
41278 msgstr ""
41279
41280 #. type: textblock
41281 #: ../tools/virt-list-filesystems.pl:197
41282 msgid ""
41283 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
41284 "L<virt-filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, "
41285 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41286 msgstr ""
41287
41288 #. type: textblock
41289 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
41290 msgid "Copyright (C) 2009 Red Hat Inc."
41291 msgstr ""
41292
41293 #. type: textblock
41294 #: ../tools/virt-list-partitions.pl:32
41295 msgid "virt-list-partitions - List partitions in a virtual machine or disk image"
41296 msgstr ""
41297
41298 #. type: verbatim
41299 #: ../tools/virt-list-partitions.pl:36
41300 #, no-wrap
41301 msgid ""
41302 " virt-list-partitions [--options] domname\n"
41303 "\n"
41304 msgstr ""
41305
41306 #. type: verbatim
41307 #: ../tools/virt-list-partitions.pl:38
41308 #, no-wrap
41309 msgid ""
41310 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
41311 "\n"
41312 msgstr ""
41313
41314 #. type: textblock
41315 #: ../tools/virt-list-partitions.pl:45
41316 msgid ""
41317 "C<virt-list-partitions> is a command line tool to list the partitions that "
41318 "are contained in a virtual machine or disk image.  It is mainly useful as a "
41319 "first step to using L<virt-resize(1)>."
41320 msgstr ""
41321
41322 #. type: textblock
41323 #: ../tools/virt-list-partitions.pl:50
41324 msgid ""
41325 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
41326 "functionality.  For more complex cases you should look at the "
41327 "L<guestfish(1)> tool."
41328 msgstr ""
41329
41330 #. type: textblock
41331 #: ../tools/virt-list-partitions.pl:113
41332 msgid "Show sizes in human-readable form (eg. \"1G\")."
41333 msgstr ""
41334
41335 #. type: textblock
41336 #: ../tools/virt-list-partitions.pl:123
41337 msgid ""
41338 "With this option, C<virt-list-partitions> displays the type and size of each "
41339 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
41340 msgstr ""
41341
41342 #. type: =item
41343 #: ../tools/virt-list-partitions.pl:130
41344 msgid "B<-t>"
41345 msgstr ""
41346
41347 #. type: =item
41348 #: ../tools/virt-list-partitions.pl:132
41349 msgid "B<--total>"
41350 msgstr ""
41351
41352 #. type: textblock
41353 #: ../tools/virt-list-partitions.pl:134
41354 msgid "Display the total size of each block device (as a separate row or rows)."
41355 msgstr ""
41356
41357 #. type: textblock
41358 #: ../tools/virt-list-partitions.pl:267
41359 msgid ""
41360 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, "
41361 "L<virt-list-filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, "
41362 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41363 msgstr ""
41364
41365 #. type: textblock
41366 #: ../tools/virt-list-partitions.pl:283
41367 msgid "Copyright (C) 2009-2010 Red Hat Inc."
41368 msgstr ""
41369
41370 #. type: textblock
41371 #: ../tools/virt-make-fs.pl:37
41372 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
41373 msgstr ""
41374
41375 #. type: verbatim
41376 #: ../tools/virt-make-fs.pl:41
41377 #, no-wrap
41378 msgid ""
41379 " virt-make-fs [--options] input.tar output.img\n"
41380 "\n"
41381 msgstr ""
41382
41383 #. type: verbatim
41384 #: ../tools/virt-make-fs.pl:43
41385 #, no-wrap
41386 msgid ""
41387 " virt-make-fs [--options] input.tar.gz output.img\n"
41388 "\n"
41389 msgstr ""
41390
41391 #. type: verbatim
41392 #: ../tools/virt-make-fs.pl:45
41393 #, no-wrap
41394 msgid ""
41395 " virt-make-fs [--options] directory output.img\n"
41396 "\n"
41397 msgstr ""
41398
41399 #. type: textblock
41400 #: ../tools/virt-make-fs.pl:49
41401 msgid ""
41402 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
41403 "archive or some files in a directory.  It is similar to tools like "
41404 "L<mkisofs(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, "
41405 "it can create common filesystem types like ext2/3 or NTFS, which can be "
41406 "useful if you want to attach these filesystems to existing virtual machines "
41407 "(eg. to import large amounts of read-only data to a VM)."
41408 msgstr ""
41409
41410 #. type: textblock
41411 #: ../tools/virt-make-fs.pl:57
41412 msgid "Basic usage is:"
41413 msgstr ""
41414
41415 #. type: verbatim
41416 #: ../tools/virt-make-fs.pl:59
41417 #, no-wrap
41418 msgid ""
41419 " virt-make-fs input output.img\n"
41420 "\n"
41421 msgstr ""
41422
41423 #. type: textblock
41424 #: ../tools/virt-make-fs.pl:61
41425 msgid ""
41426 "where C<input> is either a directory containing files that you want to add, "
41427 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
41428 "C<output.img> is a disk image.  The input type is detected automatically.  "
41429 "The output disk image defaults to a raw ext2 sparse image unless you specify "
41430 "extra flags (see L</OPTIONS> below)."
41431 msgstr ""
41432
41433 #. type: =head2
41434 #: ../tools/virt-make-fs.pl:67
41435 msgid "FILESYSTEM TYPE"
41436 msgstr ""
41437
41438 #. type: textblock
41439 #: ../tools/virt-make-fs.pl:69
41440 msgid ""
41441 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
41442 "libguestfs supports can be used (but I<not> read-only formats like "
41443 "ISO9660).  Here are some of the more common choices:"
41444 msgstr ""
41445
41446 #. type: =item
41447 #: ../tools/virt-make-fs.pl:75
41448 msgid "I<ext3>"
41449 msgstr ""
41450
41451 #. type: textblock
41452 #: ../tools/virt-make-fs.pl:77
41453 msgid ""
41454 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
41455 "you are not going to use the filesystem in a way that requires the journal, "
41456 "then this is just wasted overhead."
41457 msgstr ""
41458
41459 #. type: =item
41460 #: ../tools/virt-make-fs.pl:81
41461 msgid "I<ntfs> or I<vfat>"
41462 msgstr ""
41463
41464 #. type: textblock
41465 #: ../tools/virt-make-fs.pl:83
41466 msgid "Useful if exporting data to a Windows guest."
41467 msgstr ""
41468
41469 #. type: textblock
41470 #: ../tools/virt-make-fs.pl:85
41471 msgid ""
41472 "I<Note for vfat>: The tar archive or local directory must only contain files "
41473 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
41474 "program running within libguestfs is unable to change the ownership of "
41475 "non-root files, since vfat itself does not support this."
41476 msgstr ""
41477
41478 #. type: =item
41479 #: ../tools/virt-make-fs.pl:90
41480 msgid "I<minix>"
41481 msgstr ""
41482
41483 #. type: textblock
41484 #: ../tools/virt-make-fs.pl:92
41485 msgid ""
41486 "Lower overhead than C<ext2>, but certain limitations on filename length and "
41487 "total filesystem size."
41488 msgstr ""
41489
41490 #. type: =head3
41491 #: ../tools/virt-make-fs.pl:97 ../tools/virt-make-fs.pl:116 ../tools/virt-make-fs.pl:149
41492 msgid "EXAMPLE"
41493 msgstr ""
41494
41495 #. type: verbatim
41496 #: ../tools/virt-make-fs.pl:99
41497 #, no-wrap
41498 msgid ""
41499 " virt-make-fs --type=minix input minixfs.img\n"
41500 "\n"
41501 msgstr ""
41502
41503 #. type: =head2
41504 #: ../tools/virt-make-fs.pl:101
41505 msgid "TO PARTITION OR NOT TO PARTITION"
41506 msgstr ""
41507
41508 #. type: textblock
41509 #: ../tools/virt-make-fs.pl:103
41510 msgid "Optionally virt-make-fs can add a partition table to the output disk."
41511 msgstr ""
41512
41513 #. type: textblock
41514 #: ../tools/virt-make-fs.pl:105
41515 msgid ""
41516 "Adding a partition can make the disk image more compatible with certain "
41517 "virtualized operating systems which don't expect to see a filesystem "
41518 "directly located on a block device (Linux doesn't care and will happily "
41519 "handle both types)."
41520 msgstr ""
41521
41522 #. type: textblock
41523 #: ../tools/virt-make-fs.pl:110
41524 msgid ""
41525 "On the other hand, if you have a partition table then the output image is no "
41526 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
41527 "directly on a partitioned disk image.  (However libguestfs tools such as "
41528 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
41529 msgstr ""
41530
41531 #. type: textblock
41532 #: ../tools/virt-make-fs.pl:118
41533 msgid "Add an MBR partition:"
41534 msgstr ""
41535
41536 #. type: verbatim
41537 #: ../tools/virt-make-fs.pl:120
41538 #, no-wrap
41539 msgid ""
41540 " virt-make-fs --partition -- input disk.img\n"
41541 "\n"
41542 msgstr ""
41543
41544 #. type: textblock
41545 #: ../tools/virt-make-fs.pl:122
41546 msgid ""
41547 "If the output disk image could be terabyte-sized or larger, it's better to "
41548 "use an EFI/GPT-compatible partition table:"
41549 msgstr ""
41550
41551 #. type: verbatim
41552 #: ../tools/virt-make-fs.pl:125
41553 #, no-wrap
41554 msgid ""
41555 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
41556 "\n"
41557 msgstr ""
41558
41559 #. type: =head2
41560 #: ../tools/virt-make-fs.pl:127
41561 msgid "EXTRA SPACE"
41562 msgstr ""
41563
41564 #. type: textblock
41565 #: ../tools/virt-make-fs.pl:129
41566 msgid ""
41567 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
41568 "the files that it contains, but might have extra space.  Depending on how "
41569 "you are going to use the output, you might think this extra space is wasted "
41570 "and want to minimize it, or you might want to leave space so that more files "
41571 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
41572 "but you can use the I<--size> flag to leave space in the filesystem if you "
41573 "want it."
41574 msgstr ""
41575
41576 #. type: textblock
41577 #: ../tools/virt-make-fs.pl:137
41578 msgid ""
41579 "An alternative way to leave extra space but not make the output image any "
41580 "bigger is to use an alternative disk image format (instead of the default "
41581 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
41582 "image format (check your hypervisor supports this before using it).  This "
41583 "allows you to choose a large I<--size> but the extra space won't actually be "
41584 "allocated in the image until you try to store something in it."
41585 msgstr ""
41586
41587 #. type: textblock
41588 #: ../tools/virt-make-fs.pl:145
41589 msgid ""
41590 "Don't forget that you can also use local commands including L<resize2fs(8)> "
41591 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
41592 "to build another image from scratch."
41593 msgstr ""
41594
41595 #. type: verbatim
41596 #: ../tools/virt-make-fs.pl:151
41597 #, no-wrap
41598 msgid ""
41599 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
41600 "\n"
41601 msgstr ""
41602
41603 #. type: textblock
41604 #: ../tools/virt-make-fs.pl:179
41605 msgid "Enable debugging information."
41606 msgstr ""
41607
41608 #. type: =item
41609 #: ../tools/virt-make-fs.pl:185
41610 msgid "B<--size=E<lt>NE<gt>>"
41611 msgstr ""
41612
41613 #. type: =item
41614 #: ../tools/virt-make-fs.pl:187
41615 msgid "B<--size=+E<lt>NE<gt>>"
41616 msgstr ""
41617
41618 #. type: =item
41619 #: ../tools/virt-make-fs.pl:189
41620 msgid "B<-s E<lt>NE<gt>>"
41621 msgstr ""
41622
41623 #. type: =item
41624 #: ../tools/virt-make-fs.pl:191
41625 msgid "B<-s +E<lt>NE<gt>>"
41626 msgstr ""
41627
41628 #. type: textblock
41629 #: ../tools/virt-make-fs.pl:193
41630 msgid "Use the I<--size> (or I<-s>) option to choose the size of the output image."
41631 msgstr ""
41632
41633 #. type: textblock
41634 #: ../tools/virt-make-fs.pl:196
41635 msgid ""
41636 "If this option is I<not> given, then the output image will be just large "
41637 "enough to contain all the files, with not much wasted space."
41638 msgstr ""
41639
41640 #. type: textblock
41641 #: ../tools/virt-make-fs.pl:199
41642 msgid ""
41643 "To choose a fixed size output disk, specify an absolute number followed by "
41644 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
41645 "Petabytes or Exabytes.  This must be large enough to contain all the input "
41646 "files, else you will get an error."
41647 msgstr ""
41648
41649 #. type: textblock
41650 #: ../tools/virt-make-fs.pl:204
41651 msgid ""
41652 "To leave extra space, specify C<+> (plus sign) and a number followed by "
41653 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
41654 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
41655 "the input files, and (approximately) an extra 200 MB free space."
41656 msgstr ""
41657
41658 #. type: textblock
41659 #: ../tools/virt-make-fs.pl:210
41660 msgid ""
41661 "Note that virt-make-fs estimates free space, and therefore will not produce "
41662 "filesystems containing precisely the free space requested.  (It is much more "
41663 "expensive and time-consuming to produce a filesystem which has precisely the "
41664 "desired free space)."
41665 msgstr ""
41666
41667 #. type: =item
41668 #: ../tools/virt-make-fs.pl:219
41669 msgid "B<--format=E<lt>fmtE<gt>>"
41670 msgstr ""
41671
41672 #. type: =item
41673 #: ../tools/virt-make-fs.pl:221
41674 msgid "B<-F E<lt>fmtE<gt>>"
41675 msgstr ""
41676
41677 #. type: textblock
41678 #: ../tools/virt-make-fs.pl:223
41679 msgid "Choose the output disk image format."
41680 msgstr ""
41681
41682 #. type: textblock
41683 #: ../tools/virt-make-fs.pl:225
41684 msgid "The default is C<raw> (raw sparse disk image)."
41685 msgstr ""
41686
41687 #. type: textblock
41688 #: ../tools/virt-make-fs.pl:227
41689 msgid ""
41690 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
41691 "that would really make sense here is C<qcow2>."
41692 msgstr ""
41693
41694 #. type: =item
41695 #: ../tools/virt-make-fs.pl:234
41696 msgid "B<--type=E<lt>fsE<gt>>"
41697 msgstr ""
41698
41699 #. type: =item
41700 #: ../tools/virt-make-fs.pl:236
41701 msgid "B<-t E<lt>fsE<gt>>"
41702 msgstr ""
41703
41704 #. type: textblock
41705 #: ../tools/virt-make-fs.pl:238
41706 msgid "Choose the output filesystem type."
41707 msgstr ""
41708
41709 #. type: textblock
41710 #: ../tools/virt-make-fs.pl:240
41711 msgid "The default is C<ext2>."
41712 msgstr ""
41713
41714 #. type: textblock
41715 #: ../tools/virt-make-fs.pl:242
41716 msgid "Any filesystem which is supported read-write by libguestfs can be used here."
41717 msgstr ""
41718
41719 #. type: =item
41720 #: ../tools/virt-make-fs.pl:249
41721 msgid "B<--partition>"
41722 msgstr ""
41723
41724 #. type: =item
41725 #: ../tools/virt-make-fs.pl:251
41726 msgid "B<--partition=E<lt>parttypeE<gt>>"
41727 msgstr ""
41728
41729 #. type: textblock
41730 #: ../tools/virt-make-fs.pl:253
41731 msgid ""
41732 "If specified, this flag adds an MBR partition table to the output disk "
41733 "image."
41734 msgstr ""
41735
41736 #. type: textblock
41737 #: ../tools/virt-make-fs.pl:256
41738 msgid ""
41739 "You can change the partition table type, eg. I<--partition=gpt> for large "
41740 "disks."
41741 msgstr ""
41742
41743 #. type: textblock
41744 #: ../tools/virt-make-fs.pl:259
41745 msgid ""
41746 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
41747 "might consider the next parameter to be the partition type.  For example:"
41748 msgstr ""
41749
41750 #. type: verbatim
41751 #: ../tools/virt-make-fs.pl:263
41752 #, no-wrap
41753 msgid ""
41754 " virt-make-fs --partition input.tar output.img\n"
41755 "\n"
41756 msgstr ""
41757
41758 #. type: textblock
41759 #: ../tools/virt-make-fs.pl:265
41760 msgid ""
41761 "would cause virt-make-fs to think you wanted to use a partition type of "
41762 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
41763 "dash) between options and the input and output arguments:"
41764 msgstr ""
41765
41766 #. type: verbatim
41767 #: ../tools/virt-make-fs.pl:269
41768 #, no-wrap
41769 msgid ""
41770 " virt-make-fs --partition -- input.tar output.img\n"
41771 "\n"
41772 msgstr ""
41773
41774 #. type: textblock
41775 #: ../tools/virt-make-fs.pl:271
41776 msgid "For MBR, virt-make-fs sets the partition type byte automatically."
41777 msgstr ""
41778
41779 #. type: textblock
41780 #: ../tools/virt-make-fs.pl:559
41781 msgid ""
41782 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
41783 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
41784 "L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
41785 msgstr ""
41786
41787 #. type: textblock
41788 #: ../tools/virt-make-fs.pl:573 ../tools/virt-win-reg.pl:774
41789 msgid ""
41790 "When reporting bugs, please enable debugging and capture the I<complete> "
41791 "output:"
41792 msgstr ""
41793
41794 #. type: verbatim
41795 #: ../tools/virt-make-fs.pl:576
41796 #, no-wrap
41797 msgid ""
41798 " export LIBGUESTFS_DEBUG=1\n"
41799 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
41800 "\n"
41801 msgstr ""
41802
41803 #. type: textblock
41804 #: ../tools/virt-make-fs.pl:579
41805 msgid ""
41806 "Attach /tmp/virt-make-fs.log to a new bug report at "
41807 "L<https://bugzilla.redhat.com/>"
41808 msgstr ""
41809
41810 #. type: textblock
41811 #: ../tools/virt-tar.pl:33
41812 msgid "virt-tar - Extract or upload files to a virtual machine"
41813 msgstr ""
41814
41815 #. type: verbatim
41816 #: ../tools/virt-tar.pl:37
41817 #, no-wrap
41818 msgid ""
41819 " virt-tar [--options] -x domname directory tarball\n"
41820 "\n"
41821 msgstr ""
41822
41823 #. type: verbatim
41824 #: ../tools/virt-tar.pl:39
41825 #, no-wrap
41826 msgid ""
41827 " virt-tar [--options] -u domname tarball directory\n"
41828 "\n"
41829 msgstr ""
41830
41831 #. type: verbatim
41832 #: ../tools/virt-tar.pl:41
41833 #, no-wrap
41834 msgid ""
41835 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
41836 "\n"
41837 msgstr ""
41838
41839 #. type: verbatim
41840 #: ../tools/virt-tar.pl:43
41841 #, no-wrap
41842 msgid ""
41843 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
41844 "\n"
41845 msgstr ""
41846
41847 #. type: =head2
41848 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
41849 msgid "NOTE"
41850 msgstr ""
41851
41852 #. type: textblock
41853 #: ../tools/virt-tar.pl:47
41854 msgid ""
41855 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
41856 "L<virt-tar-in(1)>, L<virt-tar-out(1)> as replacements."
41857 msgstr ""
41858
41859 #. type: textblock
41860 #: ../tools/virt-tar.pl:52
41861 msgid "Download C</home> from the VM into a local tarball:"
41862 msgstr ""
41863
41864 #. type: verbatim
41865 #: ../tools/virt-tar.pl:54
41866 #, no-wrap
41867 msgid ""
41868 " virt-tar -x domname /home home.tar\n"
41869 "\n"
41870 msgstr ""
41871
41872 #. type: verbatim
41873 #: ../tools/virt-tar.pl:56
41874 #, no-wrap
41875 msgid ""
41876 " virt-tar -zx domname /home home.tar.gz\n"
41877 "\n"
41878 msgstr ""
41879
41880 #. type: textblock
41881 #: ../tools/virt-tar.pl:58
41882 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
41883 msgstr ""
41884
41885 #. type: verbatim
41886 #: ../tools/virt-tar.pl:60
41887 #, no-wrap
41888 msgid ""
41889 " virt-tar -u domname uploadstuff.tar /tmp\n"
41890 "\n"
41891 msgstr ""
41892
41893 #. type: verbatim
41894 #: ../tools/virt-tar.pl:62
41895 #, no-wrap
41896 msgid ""
41897 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
41898 "\n"
41899 msgstr ""
41900
41901 #. type: textblock
41902 #: ../tools/virt-tar.pl:66
41903 msgid ""
41904 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
41905 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
41906 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
41907 msgstr ""
41908
41909 #. type: textblock
41910 #: ../tools/virt-tar.pl:71
41911 msgid ""
41912 "You can use I<-x> (extract) on live virtual machines, but you might get "
41913 "inconsistent results or errors if there is filesystem activity inside the "
41914 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
41915 "work, but the only way to guarantee consistent results is if the virtual "
41916 "machine is shut down."
41917 msgstr ""
41918
41919 #. type: textblock
41920 #: ../tools/virt-tar.pl:79
41921 msgid ""
41922 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
41923 "parts of a guest filesystem.  There are many possibilities: making backups, "
41924 "uploading data files, snooping on guest activity, fixing or customizing "
41925 "guests, etc."
41926 msgstr ""
41927
41928 #. type: textblock
41929 #: ../tools/virt-tar.pl:84
41930 msgid ""
41931 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
41932 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
41933 "should look at the L<guestfish(1)> tool."
41934 msgstr ""
41935
41936 #. type: textblock
41937 #: ../tools/virt-tar.pl:88
41938 msgid ""
41939 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
41940 "its contents (recursively) from the virtual machine into a local tarball.  "
41941 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
41942 "virtual machine.  You cannot use these two options together."
41943 msgstr ""
41944
41945 #. type: textblock
41946 #: ../tools/virt-tar.pl:94
41947 msgid ""
41948 "In addition, you may need to use the I<-z> (gZip) option to enable "
41949 "compression.  When uploading, you have to specify I<-z> if the upload file "
41950 "is compressed because virt-tar won't detect this on its own."
41951 msgstr ""
41952
41953 #. type: textblock
41954 #: ../tools/virt-tar.pl:98
41955 msgid ""
41956 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
41957 "example it cannot do PKZip files or bzip2 compression.  If you want that "
41958 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
41959 "the L<libguestfs(3)> API)."
41960 msgstr ""
41961
41962 #. type: =item
41963 #: ../tools/virt-tar.pl:160
41964 msgid "B<--extract>"
41965 msgstr ""
41966
41967 #. type: =item
41968 #: ../tools/virt-tar.pl:162
41969 msgid "B<--download>"
41970 msgstr ""
41971
41972 #. type: =item
41973 #: ../tools/virt-tar.pl:164
41974 msgid "B<-u>"
41975 msgstr ""
41976
41977 #. type: =item
41978 #: ../tools/virt-tar.pl:166
41979 msgid "B<--upload>"
41980 msgstr ""
41981
41982 #. type: textblock
41983 #: ../tools/virt-tar.pl:168
41984 msgid ""
41985 "Use I<-x> to extract (download) a directory from a virtual machine to a "
41986 "local tarball."
41987 msgstr ""
41988
41989 #. type: textblock
41990 #: ../tools/virt-tar.pl:171
41991 msgid ""
41992 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
41993 "Please read the L</WARNING> section above before using this option."
41994 msgstr ""
41995
41996 #. type: textblock
41997 #: ../tools/virt-tar.pl:175
41998 msgid "You must specify exactly one of these options."
41999 msgstr ""
42000
42001 #. type: =item
42002 #: ../tools/virt-tar.pl:181
42003 msgid "B<-z>"
42004 msgstr ""
42005
42006 #. type: =item
42007 #: ../tools/virt-tar.pl:183
42008 msgid "B<--gzip>"
42009 msgstr ""
42010
42011 #. type: textblock
42012 #: ../tools/virt-tar.pl:185
42013 msgid "Specify that the input or output tarball is gzip-compressed."
42014 msgstr ""
42015
42016 #. type: textblock
42017 #: ../tools/virt-tar.pl:298
42018 msgid ""
42019 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
42020 "L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
42021 "L<virt-tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
42022 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42023 msgstr ""
42024
42025 #. type: textblock
42026 #: ../tools/virt-win-reg.pl:37
42027 msgid ""
42028 "virt-win-reg - Export and merge Windows Registry entries from a Windows "
42029 "guest"
42030 msgstr ""
42031
42032 #. type: verbatim
42033 #: ../tools/virt-win-reg.pl:41
42034 #, no-wrap
42035 msgid ""
42036 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
42037 "\n"
42038 msgstr ""
42039
42040 #. type: verbatim
42041 #: ../tools/virt-win-reg.pl:43
42042 #, no-wrap
42043 msgid ""
42044 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
42045 "\n"
42046 msgstr ""
42047
42048 #. type: verbatim
42049 #: ../tools/virt-win-reg.pl:45
42050 #, no-wrap
42051 msgid ""
42052 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
42053 "\n"
42054 msgstr ""
42055
42056 #. type: verbatim
42057 #: ../tools/virt-win-reg.pl:47
42058 #, no-wrap
42059 msgid ""
42060 " virt-win-reg --merge domname [input.reg ...]\n"
42061 "\n"
42062 msgstr ""
42063
42064 #. type: verbatim
42065 #: ../tools/virt-win-reg.pl:49
42066 #, no-wrap
42067 msgid ""
42068 " virt-win-reg [--options] disk.img ... # instead of domname\n"
42069 "\n"
42070 msgstr ""
42071
42072 #. type: textblock
42073 #: ../tools/virt-win-reg.pl:53
42074 msgid ""
42075 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
42076 "virtual machines.  If you do this, you I<will> get irreversible disk "
42077 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
42078 "but doesn't catch all cases."
42079 msgstr ""
42080
42081 #. type: textblock
42082 #: ../tools/virt-win-reg.pl:58
42083 msgid ""
42084 "Modifying the Windows Registry is an inherently risky operation.  The format "
42085 "is deliberately obscure and undocumented, and Registry changes can leave the "
42086 "system unbootable.  Therefore when using the I<--merge> option, make sure "
42087 "you have a reliable backup first."
42088 msgstr ""
42089
42090 #. type: textblock
42091 #: ../tools/virt-win-reg.pl:65
42092 msgid ""
42093 "This program can export and merge Windows Registry entries from a Windows "
42094 "guest."
42095 msgstr ""
42096
42097 #. type: textblock
42098 #: ../tools/virt-win-reg.pl:68
42099 msgid ""
42100 "The first parameter is the libvirt guest name or the raw disk image of a "
42101 "Windows guest."
42102 msgstr ""
42103
42104 #. type: textblock
42105 #: ../tools/virt-win-reg.pl:71
42106 msgid ""
42107 "If I<--merge> is I<not> specified, then the chosen registry key is "
42108 "displayed/exported (recursively).  For example:"
42109 msgstr ""
42110
42111 #. type: verbatim
42112 #: ../tools/virt-win-reg.pl:74
42113 #, no-wrap
42114 msgid ""
42115 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
42116 "\n"
42117 msgstr ""
42118
42119 #. type: textblock
42120 #: ../tools/virt-win-reg.pl:76
42121 msgid "You can also display single values from within registry keys, for example:"
42122 msgstr ""
42123
42124 #. type: verbatim
42125 #: ../tools/virt-win-reg.pl:79
42126 #, no-wrap
42127 msgid ""
42128 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
42129 " $ virt-win-reg Windows7 $cvkey ProductName\n"
42130 " Windows 7 Enterprise\n"
42131 "\n"
42132 msgstr ""
42133
42134 #. type: textblock
42135 #: ../tools/virt-win-reg.pl:83
42136 msgid ""
42137 "With I<--merge>, you can merge a textual regedit file into the Windows "
42138 "Registry:"
42139 msgstr ""
42140
42141 #. type: verbatim
42142 #: ../tools/virt-win-reg.pl:86
42143 #, no-wrap
42144 msgid ""
42145 " $ virt-win-reg --merge Windows7 changes.reg\n"
42146 "\n"
42147 msgstr ""
42148
42149 #. type: textblock
42150 #: ../tools/virt-win-reg.pl:90
42151 msgid ""
42152 "This program is only meant for simple access to the registry.  If you want "
42153 "to do complicated things with the registry, we suggest you download the "
42154 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
42155 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
42156 "L<hivexregedit(1)>."
42157 msgstr ""
42158
42159 #. type: =item
42160 #: ../tools/virt-win-reg.pl:159
42161 msgid "B<--merge>"
42162 msgstr ""
42163
42164 #. type: textblock
42165 #: ../tools/virt-win-reg.pl:161
42166 msgid ""
42167 "In merge mode, this merges a textual regedit file into the Windows Registry "
42168 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
42169 "displays or exports Registry entries instead."
42170 msgstr ""
42171
42172 #. type: textblock
42173 #: ../tools/virt-win-reg.pl:165
42174 msgid ""
42175 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
42176 "result in disk corruption.  However exporting (without this flag)  is always "
42177 "safe."
42178 msgstr ""
42179
42180 #. type: =item
42181 #: ../tools/virt-win-reg.pl:173
42182 msgid "B<--encoding> UTF-16LE|ASCII"
42183 msgstr ""
42184
42185 #. type: textblock
42186 #: ../tools/virt-win-reg.pl:175
42187 msgid ""
42188 "When merging (only), you may need to specify the encoding for strings to be "
42189 "used in the hive file.  This is explained in detail in "
42190 "L<Win::Hivex::Regedit(3)/ENCODING STRINGS>."
42191 msgstr ""
42192
42193 #. type: textblock
42194 #: ../tools/virt-win-reg.pl:179
42195 msgid ""
42196 "The default is to use UTF-16LE, which should work with recent versions of "
42197 "Windows."
42198 msgstr ""
42199
42200 #. type: =item
42201 #: ../tools/virt-win-reg.pl:186
42202 msgid "B<--unsafe-printable-strings>"
42203 msgstr ""
42204
42205 #. type: textblock
42206 #: ../tools/virt-win-reg.pl:188
42207 msgid ""
42208 "When exporting (only), assume strings are UTF-16LE and print them as strings "
42209 "instead of hex sequences.  Remove the final zero codepoint from strings if "
42210 "present."
42211 msgstr ""
42212
42213 #. type: textblock
42214 #: ../tools/virt-win-reg.pl:192
42215 msgid ""
42216 "This is unsafe and does not preserve the fidelity of strings in the original "
42217 "Registry for various reasons:"
42218 msgstr ""
42219
42220 #. type: textblock
42221 #: ../tools/virt-win-reg.pl:199
42222 msgid ""
42223 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
42224 "other encodings will be corrupted by this transformation."
42225 msgstr ""
42226
42227 #. type: textblock
42228 #: ../tools/virt-win-reg.pl:204
42229 msgid ""
42230 "Assumes that everything which has type 1 or 2 is really a string and that "
42231 "everything else is not a string, but the type field in real Registries is "
42232 "not reliable."
42233 msgstr ""
42234
42235 #. type: textblock
42236 #: ../tools/virt-win-reg.pl:210
42237 msgid ""
42238 "Loses information about whether a zero codepoint followed the string in the "
42239 "Registry or not."
42240 msgstr ""
42241
42242 #. type: textblock
42243 #: ../tools/virt-win-reg.pl:215
42244 msgid ""
42245 "This all happens because the Registry itself contains no information about "
42246 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
42247 msgstr ""
42248
42249 #. type: textblock
42250 #: ../tools/virt-win-reg.pl:219
42251 msgid ""
42252 "You should only use this option for quick hacking and debugging of the "
42253 "Registry contents, and I<never> use it if the output is going to be passed "
42254 "into another program or stored in another Registry."
42255 msgstr ""
42256
42257 #. type: =head1
42258 #: ../tools/virt-win-reg.pl:556
42259 msgid "SUPPORTED SYSTEMS"
42260 msgstr ""
42261
42262 #. type: textblock
42263 #: ../tools/virt-win-reg.pl:558
42264 msgid ""
42265 "The program currently supports Windows NT-derived guests starting with "
42266 "Windows XP through to at least Windows 7."
42267 msgstr ""
42268
42269 #. type: textblock
42270 #: ../tools/virt-win-reg.pl:561
42271 msgid "The following Registry keys are supported:"
42272 msgstr ""
42273
42274 #. type: =item
42275 #: ../tools/virt-win-reg.pl:565
42276 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
42277 msgstr ""
42278
42279 #. type: =item
42280 #: ../tools/virt-win-reg.pl:567
42281 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
42282 msgstr ""
42283
42284 #. type: =item
42285 #: ../tools/virt-win-reg.pl:569
42286 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
42287 msgstr ""
42288
42289 #. type: =item
42290 #: ../tools/virt-win-reg.pl:571
42291 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
42292 msgstr ""
42293
42294 #. type: =item
42295 #: ../tools/virt-win-reg.pl:573
42296 msgid "C<HKEY_USERS\\.DEFAULT>"
42297 msgstr ""
42298
42299 #. type: =item
42300 #: ../tools/virt-win-reg.pl:575
42301 msgid "C<HKEY_USERS\\I<SID>>"
42302 msgstr ""
42303
42304 #. type: textblock
42305 #: ../tools/virt-win-reg.pl:577
42306 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
42307 msgstr ""
42308
42309 #. type: =item
42310 #: ../tools/virt-win-reg.pl:579
42311 msgid "C<HKEY_USERS\\I<username>>"
42312 msgstr ""
42313
42314 #. type: textblock
42315 #: ../tools/virt-win-reg.pl:581
42316 msgid "where I<username> is a local user name (this is a libguestfs extension)."
42317 msgstr ""
42318
42319 #. type: textblock
42320 #: ../tools/virt-win-reg.pl:585
42321 msgid ""
42322 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
42323 "C<HKEY_USERS>."
42324 msgstr ""
42325
42326 #. type: textblock
42327 #: ../tools/virt-win-reg.pl:588
42328 msgid ""
42329 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
42330 "supported (there is no \"current user\")."
42331 msgstr ""
42332
42333 #. type: =head1
42334 #: ../tools/virt-win-reg.pl:591
42335 msgid "ENCODING"
42336 msgstr ""
42337
42338 #. type: textblock
42339 #: ../tools/virt-win-reg.pl:593
42340 msgid ""
42341 "C<virt-win-reg> expects that regedit files have already been reencoded in "
42342 "the local encoding.  Usually on Linux hosts, this means UTF-8 with "
42343 "Unix-style line endings.  Since Windows regedit files are often in UTF-16LE "
42344 "with Windows-style line endings, you may need to reencode the whole file "
42345 "before or after processing."
42346 msgstr ""
42347
42348 #. type: textblock
42349 #: ../tools/virt-win-reg.pl:599
42350 msgid ""
42351 "To reencode a file from Windows format to Linux (before processing it with "
42352 "the I<--merge> option), you would do something like this:"
42353 msgstr ""
42354
42355 #. type: verbatim
42356 #: ../tools/virt-win-reg.pl:602
42357 #, no-wrap
42358 msgid ""
42359 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
42360 "\n"
42361 msgstr ""
42362
42363 #. type: textblock
42364 #: ../tools/virt-win-reg.pl:604
42365 msgid ""
42366 "To go in the opposite direction, after exporting and before sending the file "
42367 "to a Windows user, do something like this:"
42368 msgstr ""
42369
42370 #. type: verbatim
42371 #: ../tools/virt-win-reg.pl:607
42372 #, no-wrap
42373 msgid ""
42374 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
42375 "\n"
42376 msgstr ""
42377
42378 #. type: textblock
42379 #: ../tools/virt-win-reg.pl:609
42380 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
42381 msgstr ""
42382
42383 #. type: textblock
42384 #: ../tools/virt-win-reg.pl:611
42385 msgid ""
42386 "If you are unsure about the current encoding, use the L<file(1)> command.  "
42387 "Recent versions of Windows regedit.exe produce a UTF-16LE file with "
42388 "Windows-style (CRLF) line endings, like this:"
42389 msgstr ""
42390
42391 #. type: verbatim
42392 #: ../tools/virt-win-reg.pl:615
42393 #, no-wrap
42394 msgid ""
42395 " $ file software.reg\n"
42396 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
42397 " with CRLF line terminators\n"
42398 "\n"
42399 msgstr ""
42400
42401 #. type: textblock
42402 #: ../tools/virt-win-reg.pl:619
42403 msgid "This file would need conversion before you could I<--merge> it."
42404 msgstr ""
42405
42406 #. type: =head1
42407 #: ../tools/virt-win-reg.pl:621
42408 msgid "CurrentControlSet etc."
42409 msgstr ""
42410
42411 #. type: textblock
42412 #: ../tools/virt-win-reg.pl:623
42413 msgid ""
42414 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
42415 "Registry at the level of the hive file, and therefore you cannot modify "
42416 "these."
42417 msgstr ""
42418
42419 #. type: textblock
42420 #: ../tools/virt-win-reg.pl:627
42421 msgid ""
42422 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
42423 "circumstances it might refer to another control set.  The way to find out is "
42424 "to look at the C<HKLM\\SYSTEM\\Select> key:"
42425 msgstr ""
42426
42427 #. type: verbatim
42428 #: ../tools/virt-win-reg.pl:631
42429 #, no-wrap
42430 msgid ""
42431 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
42432 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
42433 " \"Current\"=dword:00000001\n"
42434 " \"Default\"=dword:00000001\n"
42435 " \"Failed\"=dword:00000000\n"
42436 " \"LastKnownGood\"=dword:00000002\n"
42437 "\n"
42438 msgstr ""
42439
42440 #. type: textblock
42441 #: ../tools/virt-win-reg.pl:638
42442 msgid "\"Current\" is the one which Windows will choose when it boots."
42443 msgstr ""
42444
42445 #. type: textblock
42446 #: ../tools/virt-win-reg.pl:640
42447 msgid "Similarly, other C<Current...> keys in the path may need to be replaced."
42448 msgstr ""
42449
42450 #. type: =head1
42451 #: ../tools/virt-win-reg.pl:643
42452 msgid "DELETING REGISTRY KEYS AND VALUES"
42453 msgstr ""
42454
42455 #. type: textblock
42456 #: ../tools/virt-win-reg.pl:645
42457 msgid "To delete a whole registry key, use the syntax:"
42458 msgstr ""
42459
42460 #. type: verbatim
42461 #: ../tools/virt-win-reg.pl:647
42462 #, no-wrap
42463 msgid ""
42464 " [-HKEY_LOCAL_MACHINE\\Foo]\n"
42465 "\n"
42466 msgstr ""
42467
42468 #. type: textblock
42469 #: ../tools/virt-win-reg.pl:649
42470 msgid "To delete a single value within a key, use the syntax:"
42471 msgstr ""
42472
42473 #. type: verbatim
42474 #: ../tools/virt-win-reg.pl:651
42475 #, no-wrap
42476 msgid ""
42477 " [HKEY_LOCAL_MACHINE\\Foo]\n"
42478 " \"Value\"=-\n"
42479 "\n"
42480 msgstr ""
42481
42482 #. type: =head1
42483 #: ../tools/virt-win-reg.pl:654
42484 msgid "WINDOWS TIPS"
42485 msgstr ""
42486
42487 #. type: textblock
42488 #: ../tools/virt-win-reg.pl:656
42489 msgid ""
42490 "Note that some of these tips modify the guest disk image.  The guest I<must> "
42491 "be shut off, else you will get disk corruption."
42492 msgstr ""
42493
42494 #. type: =head2
42495 #: ../tools/virt-win-reg.pl:659
42496 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
42497 msgstr ""
42498
42499 #. type: textblock
42500 #: ../tools/virt-win-reg.pl:661
42501 msgid ""
42502 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
42503 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
42504 "is uploaded into C<C:\\>:"
42505 msgstr ""
42506
42507 #. type: verbatim
42508 #: ../tools/virt-win-reg.pl:665
42509 #, no-wrap
42510 msgid ""
42511 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
42512 "\n"
42513 msgstr ""
42514
42515 #. type: textblock
42516 #: ../tools/virt-win-reg.pl:667
42517 msgid "Prepare a regedit file containing the registry change:"
42518 msgstr ""
42519
42520 #. type: verbatim
42521 #: ../tools/virt-win-reg.pl:669
42522 #, no-wrap
42523 msgid ""
42524 " cat > test.reg <<'EOF'\n"
42525 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
42526 " \"Test\"=\"c:\\\\test.bat\"\n"
42527 " EOF\n"
42528 "\n"
42529 msgstr ""
42530
42531 #. type: textblock
42532 #: ../tools/virt-win-reg.pl:674
42533 msgid ""
42534 "In this example we use the key C<RunOnce> which means that the script will "
42535 "run precisely once when the first user logs in.  If you want it to run every "
42536 "time a user logs in, replace C<RunOnce> with C<Run>."
42537 msgstr ""
42538
42539 #. type: textblock
42540 #: ../tools/virt-win-reg.pl:678
42541 msgid "Now update the registry:"
42542 msgstr ""
42543
42544 #. type: verbatim
42545 #: ../tools/virt-win-reg.pl:680
42546 #, no-wrap
42547 msgid ""
42548 " virt-win-reg --merge WindowsGuest test.reg\n"
42549 "\n"
42550 msgstr ""
42551
42552 #. type: =head2
42553 #: ../tools/virt-win-reg.pl:682
42554 msgid "INSTALLING A SERVICE"
42555 msgstr ""
42556
42557 #. type: textblock
42558 #: ../tools/virt-win-reg.pl:684
42559 msgid ""
42560 "This section assumes you are familiar with Windows services, and you either "
42561 "have a program which handles the Windows Service Control Protocol directly "
42562 "or you want to run any program using a service wrapper like SrvAny or the "
42563 "free RHSrvAny."
42564 msgstr ""
42565
42566 #. type: textblock
42567 #: ../tools/virt-win-reg.pl:689
42568 msgid ""
42569 "First upload the program and optionally the service wrapper.  In this case "
42570 "the test program is called C<test.exe> and we are using the RHSrvAny "
42571 "wrapper:"
42572 msgstr ""
42573
42574 #. type: verbatim
42575 #: ../tools/virt-win-reg.pl:693
42576 #, no-wrap
42577 msgid ""
42578 " guestfish -i -d WindowsGuest <<EOF\n"
42579 "   upload rhsrvany.exe /rhsrvany.exe\n"
42580 "   upload test.exe /test.exe\n"
42581 " EOF\n"
42582 "\n"
42583 msgstr ""
42584
42585 #. type: textblock
42586 #: ../tools/virt-win-reg.pl:698
42587 msgid ""
42588 "Prepare a regedit file containing the registry changes.  In this example, "
42589 "the first registry change is needed for the service itself or the service "
42590 "wrapper (if used).  The second registry change is only needed because I am "
42591 "using the RHSrvAny service wrapper."
42592 msgstr ""
42593
42594 #. type: verbatim
42595 #: ../tools/virt-win-reg.pl:703
42596 #, no-wrap
42597 msgid ""
42598 " cat > service.reg <<'EOF'\n"
42599 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
42600 " \"Type\"=dword:00000010\n"
42601 " \"Start\"=dword:00000002\n"
42602 " \"ErrorControl\"=dword:00000001\n"
42603 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
42604 " \"DisplayName\"=\"RHSrvAny\"\n"
42605 " \"ObjectName\"=\"NetworkService\"\n"
42606 " \n"
42607 msgstr ""
42608
42609 #. type: verbatim
42610 #: ../tools/virt-win-reg.pl:712
42611 #, no-wrap
42612 msgid ""
42613 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
42614 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
42615 " \"PWD\"=\"c:\\\\Temp\"\n"
42616 " EOF\n"
42617 "\n"
42618 msgstr ""
42619
42620 #. type: textblock
42621 #: ../tools/virt-win-reg.pl:723
42622 msgid ""
42623 "For use of C<ControlSet001> see the section above in this manual page.  You "
42624 "may need to adjust this according to the control set that is in use by the "
42625 "guest."
42626 msgstr ""
42627
42628 #. type: textblock
42629 #: ../tools/virt-win-reg.pl:729
42630 msgid ""
42631 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
42632 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
42633 "privileged account."
42634 msgstr ""
42635
42636 #. type: textblock
42637 #: ../tools/virt-win-reg.pl:735
42638 msgid ""
42639 "For the meaning of the magic numbers, see this Microsoft KB article: "
42640 "L<http://support.microsoft.com/kb/103000>."
42641 msgstr ""
42642
42643 #. type: textblock
42644 #: ../tools/virt-win-reg.pl:740
42645 msgid "Update the registry:"
42646 msgstr ""
42647
42648 #. type: verbatim
42649 #: ../tools/virt-win-reg.pl:742
42650 #, no-wrap
42651 msgid ""
42652 " virt-win-reg --merge WindowsGuest service.reg\n"
42653 "\n"
42654 msgstr ""
42655
42656 #. type: textblock
42657 #: ../tools/virt-win-reg.pl:746
42658 msgid ""
42659 "Be careful when passing parameters containing C<\\> (backslash) in the "
42660 "shell.  Usually you will have to use 'single quotes' or double backslashes "
42661 "(but not both) to protect them from the shell."
42662 msgstr ""
42663
42664 #. type: textblock
42665 #: ../tools/virt-win-reg.pl:750
42666 msgid "Paths and value names are case-insensitive."
42667 msgstr ""
42668
42669 #. type: textblock
42670 #: ../tools/virt-win-reg.pl:759
42671 msgid ""
42672 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
42673 "L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
42674 "L<Sys::Guestfs::Lib(3)>, L<Win::Hivex(3)>, L<Win::Hivex::Regedit(3)>, "
42675 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42676 msgstr ""
42677
42678 #. type: verbatim
42679 #: ../tools/virt-win-reg.pl:777
42680 #, no-wrap
42681 msgid ""
42682 " export LIBGUESTFS_DEBUG=1\n"
42683 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
42684 "\n"
42685 msgstr ""
42686
42687 #. type: textblock
42688 #: ../tools/virt-win-reg.pl:780
42689 msgid ""
42690 "Attach /tmp/virt-win-reg.log to a new bug report at "
42691 "L<https://bugzilla.redhat.com/>"
42692 msgstr ""